/*
Theme Name: FV Video Theme
Version: 1.2.6
Description: Player MP4/HLS + embed, proxy HLS, grid 16:9, menu topo, infinite scroll.
Author: ChatGPT
*/

:root{--bg:#111;--fg:#eee;--accent:#f9c400;--card:#1c1c1c;--gap:14px;--radius:8px;}
body{margin:0;background:var(--bg);color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;}
a{color:var(--accent);text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* Header Styles - Recriado do zero */
#site-header{
  background:#000;
  color:#fff;
  padding:12px 16px;
  position:sticky;
  top:0;
  z-index:999;
}

.header-container{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* Logo */
.logo a{
  color:#f9c400;
  font-weight:700;
  font-size:18px;
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
}

/* Search Container */
.search-container{
  flex:1;
  max-width:400px;
  display:flex;
  justify-content:flex-end;
}

.search-form{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:300px;
}

.search-form input[type=search]{
  flex:1;
  padding:8px 12px;
  border-radius:4px;
  border:1px solid #444;
  background:#222;
  color:#fff;
  font-size:14px;
}

.search-form button{
  padding:8px 12px;
  border:0;
  background:var(--accent);
  color:#000;
  border-radius:4px;
  cursor:pointer;
  font-weight:600;
  white-space:nowrap;
  flex-shrink:0;
}

/* Desktop Menu */
.desktop-menu{
  flex-shrink:0;
}

#primary-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

#primary-menu li a{
  color:#fff;
  font-size:14px;
  text-transform:uppercase;
  text-decoration:none;
  padding:4px 8px;
  border-radius:4px;
  transition:background 0.2s;
}

#primary-menu li a:hover{
  background:#333;
}

/* Mobile Menu Button */
.mobile-menu-btn{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  flex-direction:column;
  gap:4px;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex-shrink:0;
}

.mobile-menu-btn span{
  display:block;
  width:24px;
  height:3px;
  background:#fff;
  transition:all 0.3s ease;
}

.mobile-menu-btn:hover span{
  background:var(--accent);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.9);
  z-index:1000;
  padding:80px 20px 20px;
}

.mobile-menu-content{
  max-width:400px;
  margin:0 auto;
}

#mobile-menu{
  list-style:none;
  margin:0;
  padding:0;
}

#mobile-menu li{
  border-bottom:1px solid #333;
}

#mobile-menu li a{
  display:block;
  color:#fff;
  font-size:18px;
  text-decoration:none;
  padding:16px 0;
  text-transform:uppercase;
}

#mobile-menu li a:hover{
  color:var(--accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container{
    gap:0px;
  }
  
  .logo a{
    font-size:16px;
  }
  
  .search-container{
    max-width:60px;
    justify-content:flex-start;
    margin-left:8px;
  }
  
  .search-form{
    max-width:50px;
  }
  
  .search-form input[type=search]{
    font-size:12px;
    padding:4px 6px;
    min-width:30px;
  }
  
  .search-form button{
    padding:4px 6px;
    font-size:10px;
    min-width:20px;
  }
  
  .desktop-menu{
    display:none;
  }
  
  .mobile-menu-btn{
    display:flex;
    margin-left:auto;
  }
}

@media (max-width: 480px) {
  .header-container{
    gap:0px;
  }
  
  .logo a{
    font-size:14px;
  }
  
  .search-container{
    max-width:50px;
    margin-left:6px;
  }
  
  .search-form{
    max-width:40px;
  }
  
  .search-form input[type=search]{
    font-size:10px;
    padding:3px 4px;
    min-width:25px;
  }
  
  .search-form button{
    padding:3px 4px;
    font-size:8px;
    min-width:15px;
  }
  
  .mobile-menu-btn{
    width:32px;
    height:32px;
    margin-left:auto;
  }
  
  .mobile-menu-btn span{
    width:18px;
    height:2px;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .mobile-menu-btn{
    display:none;
  }
  
  .mobile-menu-overlay{
    display:none !important;
  }
  
  .search-container{
    justify-content:center;
  }
  
  /* Ocultar apenas links especÃ­ficos do footer no desktop */
  .footer-links .faixa{
    display:none !important;
  }
}

/* Grid Posts */
.grid-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--gap);padding:20px;max-width:1280px;margin:0 auto;}
.grid-post{background:var(--card);border-radius:var(--radius);overflow:hidden;position:relative;}
.grid-post .thumb{aspect-ratio:16/9;background:#000;overflow:hidden;}
.grid-post img{width:100%;height:100%;object-fit:cover}
.grid-post h2{font-size:14px;line-height:1.25;margin:8px 10px 10px;}
.fv-player-wrapper{max-width:960px;margin:0 auto 24px;position:relative;background:#000;aspect-ratio:16/9;}
.fv-player-wrapper video{width:100%;height:100%;object-fit:contain;}
@media(min-width:1024px){
  .fv-player-wrapper{max-height:calc(100vh - 180px);height:auto;aspect-ratio:auto;}
  .fv-player-wrapper video{height:100%;width:100%;object-fit:contain;}
}
.fv-embed-wrapper iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;}
.footer-links{list-style:none;margin:24px auto;padding:0;max-width:1280px;display:flex;flex-wrap:wrap;gap:8px;font-size:13px;}
.footer-links li{display:inline-block}
.footer-links a{color:var(--accent)}
#infinite-loader{text-align:center;padding:20px;color:#888;font-size:14px;}

/* Home Title */
.home-title{
  text-align:center;
  margin:32px auto 24px;
  max-width:1280px;
  padding:0 20px;
  font-size:32px;
  font-weight:700;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:1px;
}

@media (max-width: 768px) {
  .home-title{
    font-size:24px;
    margin:24px auto 20px;
  }
}