/*
Theme Name: FILMES DIRETO MAGNET V10
Theme URI: https://example.com
Author: kendall
Description: Tema WordPress para site de catálogo de filmes/séries, com grade de pôsteres, badge de qualidade (HD/CAM) e página single de detalhes do filme. Cadastre filmes pelo CPT "Filme" (post_type = filme) e edite/poste por ID em /wp-admin/post.php?post=ID&action=edit.
Version: 2.0
Text Domain: porta
*/

:root{
  --bg: #23262c;
  --bg-elevated: #33373f;
  --header-bg: #2a2d34;
  --card-bg: #33373f;
  --dropdown-bg: #383c44;
  --accent: #79c142;
  --accent-hover: #62a82c;
  --accent-gradient: linear-gradient(to bottom, #79c142, #62a82c);
  --badge: #f5c518;
  --text-dark: #14210a;
  --text-light: #f5f5f5;
  --muted: #a2a7b2;
  --border: #565c67;
  --radius: 6px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  background:#09101c;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text-light);
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }

/* ---------- Header ---------- */
.site-header{
  background: rgba(9, 16, 28, 0.88);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
  transition: all .3s ease;
}
.header-inner{
  max-width:1440px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  gap:36px;
}
.site-logo img{ height:53px; }
.site-logo{
  font-weight:800;
  font-size:22px;
  letter-spacing:2px;
  color:var(--accent);
  flex-shrink:0;
}

/* Botão hamburguer (mobile) */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:transparent;
  border:0;
  width:34px;
  height:28px;
  padding:0;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:#fff;
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform:translateY(11px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform:translateY(-11px) rotate(-45deg); }

.main-nav{
  display:flex;
  align-items:center;
  gap:30px;
  flex:1;
}
.main-nav > a{
  font-size:17px;
  font-weight:600;
  color:#fff;
  white-space:nowrap;
}
.main-nav > a:hover{ color:var(--accent); }
.main-nav > a i,
.nav-toplink i{
  font-size:13px;
  color:var(--accent);
  margin-right:2px;
}

.nav-item{ position:relative; }
.nav-toplink{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:17px;
  font-weight:600;
  color:#fff;
  padding:8px 0;
  white-space:nowrap;
}
.nav-toplink .chevron{
  font-size:11px;
  color:var(--muted);
  transition:transform .2s ease;
}
.nav-item:hover .nav-toplink,
.nav-item.is-open .nav-toplink{ color:var(--accent); }
.nav-item:hover .chevron,
.nav-item.is-open .chevron{ transform:rotate(180deg); color:var(--accent); }

/* Painel do dropdown */
.dropdown-panel{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  background:var(--dropdown-bg);
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,.45);
  padding:14px;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:300;
}
.nav-item:hover .dropdown-panel,
.nav-item.is-open .dropdown-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.dropdown-single{
  display:flex;
  flex-direction:column;
  min-width:200px;
}
.dropdown-genres{
  display:grid;
  grid-template-columns:repeat(2, minmax(160px, 1fr));
  column-gap:28px;
}
.dropdown-panel a{
  font-size:14px;
  font-weight:500;
  color:#d7dbee;
  padding:9px 12px;
  border-radius:6px;
  white-space:nowrap;
}
.dropdown-panel a:hover{
  background:var(--header-bg);
  color:var(--accent);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}
.header-search{
  display:flex;
  align-items:center;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:999px;
  overflow:hidden;
  padding-left:4px;
}
.header-search input{
  border:0;
  background:transparent;
  padding:10px 4px 10px 14px;
  font-size:14px;
  width:180px;
  outline:none;
  color:#fff;
}
.header-search input::placeholder{ color:var(--muted); }
.header-search button{
  border:0;
  background:transparent;
  padding:0 14px;
  height:38px;
  display:flex;
  align-items:center;
  cursor:pointer;
  color:var(--muted);
}
.header-search button:hover{ color:var(--accent); }
.btn-signin{
  background:var(--accent-gradient);
  color:#06251f;
  padding:10px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:0;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease;
}
.btn-signin:hover{ background:var(--accent-hover); }

@media (max-width: 980px){
  .nav-toggle{ display:flex; order:2; }
  .header-inner{ flex-wrap:wrap; gap:14px 20px; }
  .header-actions{ order:3; width:100%; margin-left:0; }
  .header-search{ flex:1; }
  .header-search input{ width:100%; }
  .main-nav{
    order:4;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .main-nav.is-open{ max-height:600px; }
  .main-nav > a,
  .nav-toplink{ width:100%; padding:10px 0; }
  .nav-item{ width:100%; }
  .dropdown-panel{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    box-shadow:none;
    border:0;
    background:var(--header-bg);
    margin-bottom:6px;
  }
  .nav-item.is-open .dropdown-panel{ display:flex; flex-direction:column; }
  .dropdown-genres{ display:flex; flex-direction:column; }
}

/* ---------- Featured Movies ---------- */
.featured-wrap{
  max-width:1440px;
  margin:0 auto;
  padding:36px 24px 8px;
}
.featured-title{
  font-size:26px;
  font-weight:800;
  color:#fff;
  margin:0 0 22px;
}
.featured-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
}
@media (max-width:1100px){ .featured-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .featured-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Featured Movies: carrossel ---------- */
.featured-carousel{
  display:flex;
  align-items:center;
  gap:10px;
}
.featured-viewport{
  flex:1;
  overflow:hidden;
}
.featured-track{
  display:flex;
  gap:22px;
  transition:transform .5s cubic-bezier(.25,.8,.25,1);
}
.featured-track .featured-card{
  flex:0 0 calc((100% - 4 * 22px) / 5);
  min-width:0;
}
@media (max-width:1100px){
  .featured-track .featured-card{ flex-basis:calc((100% - 2 * 22px) / 3); }
}
@media (max-width:640px){
  .featured-track .featured-card{ flex-basis:calc((100% - 1 * 22px) / 2); }
}
.featured-nav{
  flex-shrink:0;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-elevated);
  color:#fff;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.featured-nav:hover{
  background:var(--accent-gradient);
  border-color:var(--accent);
  color:#06251f;
}
@media (max-width:640px){
  .featured-nav{ width:32px; height:32px; font-size:12px; }
}

.featured-card{ display:block; }
.featured-poster{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:2/3;
  background:var(--card-bg);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.featured-poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.featured-card:hover .featured-poster img{ transform:scale(1.05); }
.featured-year{
  position:absolute;
  top:10px;
  left:10px;
  background:var(--accent-gradient);
  color:#06251f;
  font-size:12px;
  font-weight:800;
  padding:3px 10px;
  border-radius:999px;
  opacity:1;
  z-index:3;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.featured-card-title{
  display:block;
  margin-top:12px;
  font-size:15px;
  font-weight:600;
  color:#fff;
  text-align:center;
}

/* ---------- Section title pill ---------- */
.section-title-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  max-width:1440px;
  margin:36px auto 28px;
  padding:0 24px;
}
.section-title{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--accent-gradient);
  color:#06251f;
  padding:10px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
}
.section-title-icon{
  width:18px;
  height:18px;
  flex:none;
}
.ver-mais-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  transition:color .2s ease;
}
.ver-mais-link svg{
  width:16px;
  height:16px;
  transition:transform .2s ease;
}
.ver-mais-link:hover{ color:var(--accent); }
.ver-mais-link:hover svg{ transform:translateX(3px); }
@media (max-width:520px){
  .section-title{ padding:8px 18px; font-size:13px; }
  .ver-mais-link{ font-size:13px; }
}

/* ---------- Cabeçalho de arquivo (título + filtros) ---------- */
.archive-header{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.filtros-ordenacao{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 28px;
}
.filtro-item{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  padding:8px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-elevated);
  transition:color .2s ease, background .2s ease, border-color .2s ease;
}
.filtro-item:hover{ color:#fff; border-color:var(--accent); }
.filtro-item.is-active{
  background:var(--accent);
  color:#06251f;
  border-color:var(--accent);
}

/* ---------- Movie grid ---------- */
.movie-grid{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px 48px;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:24px;
}
@media (max-width:1100px){ .movie-grid{ grid-template-columns:repeat(4,1fr);} }
@media (max-width:800px){ .movie-grid{ grid-template-columns:repeat(3,1fr); gap:16px;} }
@media (max-width:520px){ .movie-grid{ grid-template-columns:repeat(2,1fr); gap:14px;} }

.movie-card{
  position:relative;
  background:var(--card-bg);
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:2/3;
  display:block;
}
.movie-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.92;
  transition:transform .25s ease, opacity .25s ease;
}
.movie-card:hover img{ transform:scale(1.04); opacity:1; }
.movie-card .badge-quality{
  position:absolute;
  top:8px;
  right:8px;
  background:var(--badge);
  color:#111;
  font-size:11px;
  font-weight:800;
  padding:2px 7px;
  border-radius:2px;
  letter-spacing:.5px;
  opacity:1;
  z-index:3;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.movie-card .movie-year{
  position:absolute;
  top:8px;
  left:8px;
  background:var(--accent-gradient);
  color:#06251f;
  font-size:11px;
  font-weight:800;
  padding:2px 9px;
  border-radius:999px;
  opacity:1;
  z-index:3;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.movie-card .badge-em-breve{
  position:absolute;
  top:8px;
  right:8px;
  background:#e5a100;
  color:#1a1200;
  font-size:11px;
  font-weight:800;
  padding:2px 7px;
  border-radius:2px;
  letter-spacing:.5px;
  text-transform:uppercase;
  z-index:3;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.movie-card--em-breve img{ opacity:.55; filter:grayscale(.25); }
.movie-card--em-breve:hover img{ opacity:.65; }
.movie-card .movie-comments{
  position:absolute;
  right:8px;
  bottom:8px;
  display:flex;
  align-items:center;
  gap:4px;
  background:rgba(42,45,52,.85);
  border:1px solid var(--border);
  color:var(--text-light);
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  z-index:3;
}
.movie-card .movie-caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:26px 10px 10px;
  background:linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,0));
  color:#fff;
  font-size:13px;
  font-weight:600;
  text-align:center;
  line-height:1.3;
  transition:opacity .2s ease;
}
.movie-card:hover .movie-caption{ opacity:0; }

/* ---------- Overlay de hover: nota IMDB + sinopse (fundo semi-transparente) ---------- */
.movie-card .movie-hover-overlay{
  position:absolute;
  inset:0;
  z-index:6;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  padding:16px 14px 14px;
  background:linear-gradient(to top, rgba(6,10,26,.94) 55%, rgba(6,10,26,.55) 85%, rgba(6,10,26,.25) 100%);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .22s ease, transform .22s ease;
  pointer-events:none;
  text-align:left;
}
.movie-card:hover .movie-hover-overlay{
  opacity:1;
  transform:translateY(0);
}
.movie-card .movie-hover-title{
  color:#fff;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.movie-card .movie-hover-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:11.5px;
  font-weight:800;
}
.movie-card .movie-hover-nota{ color:var(--badge); }
.movie-card .movie-hover-ano{ color:#c9cfe0; font-weight:600; }
.movie-card .movie-hover-badge{
  background:var(--accent-gradient);
  color:#06251f;
  font-size:10px;
  font-weight:800;
  padding:1px 7px;
  border-radius:999px;
}
.movie-card .movie-hover-badge--em-breve{ background:#e5a100; color:#1a1200; }
.movie-card .movie-hover-sinopse{
  color:#c7cddb;
  font-size:11.5px;
  font-weight:400;
  line-height:1.42;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@media (hover:none){
  .movie-card .movie-hover-overlay{ display:none; }
  .movie-card:hover .movie-caption{ opacity:1; }
}

/* ---------- Resultados de referência (TMDB) na busca sem catálogo local ---------- */
.tmdb-aviso{
  grid-column:1/-1;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  text-align:center;
  max-width:760px;
  margin:0 auto 8px;
}
.movie-card--tmdb{
  cursor:default;
}
.movie-card--tmdb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 55%);
  pointer-events:none;
  z-index:2;
}
.movie-card--tmdb .movie-caption{
  padding-bottom:46px;
}
.movie-card--tmdb .tmdb-solicitar-btn{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  z-index:4;
  background:var(--accent-gradient);
  color:#06251f;
  border:none;
  border-radius:999px;
  padding:8px 6px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease, opacity .2s ease, transform .15s ease;
}
.movie-card--tmdb .tmdb-solicitar-btn:hover{ background:var(--accent-hover); }
.movie-card--tmdb .tmdb-solicitar-btn:active{ transform:scale(.97); }
.movie-card--tmdb .tmdb-solicitar-btn:disabled{ cursor:default; opacity:.9; }
.movie-card--tmdb.is-solicitado .tmdb-solicitar-btn{ background:#2ecc71; }

.tmdb-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%, 16px);
  max-width:min(92%, 420px);
  background:var(--card-bg);
  border:1px solid var(--accent);
  color:#fff;
  padding:14px 22px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  text-align:center;
  box-shadow:0 8px 30px rgba(0,0,0,.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  z-index:999;
}
.tmdb-toast.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
  pointer-events:auto;
}
.tmdb-toast-texto{ display:block; }
.tmdb-toast-acao{
  display:inline-block;
  margin-top:10px;
  background:var(--accent, #f5c518);
  color:#0d0d10;
  border:none;
  padding:7px 20px;
  border-radius:18px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}
.tmdb-toast-acao:hover{ transform:translateY(-1px); }
.tmdb-toast-acao:disabled{ opacity:.7; cursor:default; transform:none; }

/* ---------- Pagination ---------- */
.porta-pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  padding-bottom:40px;
}
.porta-pagination a, .porta-pagination span{
  padding:8px 14px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  color:#fff;
}
.porta-pagination .current{ background:var(--accent-gradient); color:#06251f; border-color:var(--accent);}

/* ---------- Single Filme ---------- */
.filme-single{
  background:#09101c;
  color:#e8e8e8;
  padding:28px 0 64px;
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
.filme-single-inner{
  max-width:1400px;
  margin:0 auto;
  padding:0 24px;
}
.filme-tags-resumo{
  color:#9aa0a6;
  font-size:13px;
  margin:0 0 20px;
}

.filme-layout{
  display:grid;
  grid-template-columns:1fr 440px;
  gap:40px;
  align-items:start;
}
@media (max-width:960px){ .filme-layout{ grid-template-columns:1fr; } }

.filme-hero{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:32px;
}
@media (max-width:600px){ .filme-hero{ grid-template-columns:1fr; } }
.filme-poster{ position:relative; border-radius:6px; overflow:hidden; align-self:start; }
.filme-poster img{ width:100%; height:auto; object-fit:cover; }

.filme-nome{ margin:0 0 14px; font-size:30px; font-weight:700; color:#fff; }

.filme-badges{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}
.filme-badges .badge-quality{
  position:static;
  background:var(--badge);
  color:#111;
  font-size:12px;
  font-weight:800;
  padding:4px 10px;
  border-radius:3px;
}
.badge-nota{ color:var(--badge); font-weight:700; font-size:14px; }
.badge-duracao{ color:#ccc; font-size:14px; }

.filme-ficha{
  display:grid;
  grid-template-columns:170px 1fr;
  row-gap:10px;
  column-gap:12px;
  margin:0 0 22px;
  font-size:14px;
}
.filme-ficha dt{ color:#fff; font-weight:700; }
.filme-ficha dd{ margin:0; color:var(--accent); }
.link-imdb{
  color:var(--badge);
  font-weight:700;
  text-decoration:underline;
}
.link-imdb:hover{ color:#fff; }

.filme-share{
  display:flex;
  gap:14px;
  margin-bottom:22px;
  font-size:18px;
}
.filme-share a{
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08);
  border-radius:4px;
}
.filme-share a:hover{ background:var(--accent); color:#06251f; }

.filme-sinopse-box{ margin-top:32px; }
.filme-sinopse-box h3{ font-size:18px; margin-bottom:10px; color:#fff; }
.filme-sinopse{ line-height:1.7; color:#c7c7c7; }

.filme-trailer-box{ margin-top:36px; }
.filme-trailer-box h3{ font-size:18px; margin-bottom:12px; color:#fff; }
.trailer-wrap{
  position:relative;
  width:100%;
  max-width:800px;
  padding-top:45%;
  background:#000;
  border-radius:6px;
  overflow:hidden;
}
.trailer-wrap iframe{
  position:absolute; top:0; left:0; width:100%; height:100%; border:0;
}
.filme-servidores{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

/* ---------- Aviso "Ainda não foi lançado" no lugar do download ---------- */
.filme-em-breve-aviso{
  margin-top:28px;
  padding:26px 22px;
  border:1px dashed #e5a100;
  border-radius:10px;
  background:rgba(229,161,0,.08);
  text-align:center;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}
.filme-em-breve-icone{
  display:block;
  font-size:32px;
  margin-bottom:8px;
}
.filme-em-breve-titulo{
  color:#e5a100;
  font-weight:800;
  font-size:16px;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin:0 0 8px;
}
.filme-em-breve-texto{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  margin:0;
}

/* ---------- Filmes / links avulsos: continuam como botão único centralizado ---------- */
.servidores-avulsos{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  text-align:center;
}
.servidores-avulsos + .servidores-lista,
.servidores-lista + .servidores-avulsos{
  margin-top:20px;
}
.servidor-item{
  text-align:center;
  width:100%;
  max-width:440px;
}
.servidor-titulo{
  color:#3aa64a;
  font-weight:800;
  font-style:italic;
  font-size:15px;
  margin:0 0 8px;
}
.btn-watch{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#3aa64a;
  color:#fff;
  font-weight:800;
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  padding:13px 28px;
  border-radius:6px;
  width:100%;
  transition:background .2s ease, transform .2s ease;
}
.btn-watch .icon-magnet{
  font-size:17px;
  line-height:1;
}
.btn-watch:hover{
  background:#2f8f3d;
  transform:translateY(-1px);
}

/* ---------- Séries: lista simples "EPISÓDIO 01: 1080p | 4K" ---------- */
.servidores-lista{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  width:100%;
  max-width:520px;
  margin:0 auto;
}
.servidor-linha{
  margin:0;
  font-size:15px;
}
.servidor-linha-rotulo{
  color:#fff;
  font-weight:800;
  margin-right:4px;
}
.servidor-linha-link{
  color:#3aa64a;
  font-weight:700;
  text-decoration:none;
}
.servidor-linha-link:hover{
  text-decoration:underline;
}
.servidor-linha-sep{
  color:var(--border);
}

@media (max-width:480px){
  .servidores-lista{ max-width:100%; }
}

/* ---------- Sidebar "Você pode gostar" ---------- */
.filme-sidebar{ min-width:0; }
.sidebar-title{
  color:#fff;
  font-size:20px;
  font-weight:700;
  margin:0 0 18px;
}
.sidebar-grid{
  display:grid;
  grid-template-columns:repeat(2, 3fr);
  gap:14px;
}
@media (max-width:960px){
  /* nesse ponto a sidebar já ocupa a largura toda da página (ver .filme-layout) */
  .sidebar-grid{ grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:18px; }
}
@media (max-width:480px){
  .sidebar-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
}

.related-card{ display:block; }
.related-poster{
  position:relative;
  border-radius:6px;
  overflow:hidden;
  aspect-ratio:2/3;
  background:var(--card-bg);
}
.related-poster img{ width:100%; height:100%; object-fit:cover; }
.related-rating{
  position:absolute;
  top:6px; right:6px;
  background:#0d0d10;
  color:var(--badge);
  border:2px solid var(--badge);
  border-radius:50%;
  width:30px; height:30px;
  display:flex; align-items:center; justify-content:center;
  font-size:11px;
  font-weight:800;
}
.related-comments{
  position:absolute;
  left:6px; bottom:6px;
  display:flex;
  align-items:center;
  gap:3px;
  background:rgba(42,45,52,.85);
  border:1px solid var(--border);
  color:var(--text-light);
  font-size:10px;
  font-weight:700;
  padding:2px 6px;
  border-radius:999px;
}
.related-card-title{
  display:block;
  margin-top:8px;
  font-size:13px;
  font-weight:700;
  color:#fff;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.related-card-tags{
  display:flex;
  gap:6px;
  margin-top:6px;
  flex-wrap:wrap;
}
.related-card-tags .tag-ano{
  background:#1e824c;
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:2px 7px;
  border-radius:3px;
}
.related-card-tags .tag-dual{
  background:#242832;
  color:#c7c7c7;
  font-size:9px;
  font-weight:700;
  padding:2px 7px;
  border-radius:3px;
  letter-spacing:.3px;
}
.related-card-tags .tag-tipo{ text-transform:uppercase; }

/* ---------- Footer ---------- */
.site-footer{
  background:#09101c;
  color:#8892b0;
  text-align:center;
  padding:24px;
  font-size:13px;
  border-top:1px solid var(--border);
}
/* ---------- Sistema de comentários ---------- */
.porta-comments-wrap{
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.porta-comments-title{
  font-size:20px;
  font-weight:800;
  color:var(--text-light);
  margin:0 0 20px;
}
.porta-comment-list{
  list-style:none;
  margin:0 0 28px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.porta-comment-list .children{
  list-style:none;
  margin:14px 0 0;
  padding:0 0 0 28px;
  border-left:2px solid var(--border);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.porta-comment-card{
  display:flex;
  gap:14px;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}
.porta-comment-avatar img{
  width:48px;
  height:48px;
  border-radius:50%;
  border:2px solid var(--border);
}
.porta-comment-body{
  flex:1;
  min-width:0;
}
.porta-comment-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.porta-comment-author{
  font-weight:700;
  color:var(--text-light);
  font-size:14px;
}
.porta-comment-date a{
  color:var(--muted);
  font-size:12px;
}
.porta-comment-date a:hover{ color:var(--accent); }
.porta-comment-pendente{
  color:var(--badge);
  font-size:12px;
  font-style:italic;
  margin:0 0 8px;
}
.porta-comment-text{
  color:#c7c7c7;
  font-size:14px;
  line-height:1.6;
}
.porta-comment-text p{ margin:0 0 8px; }
.porta-comment-text p:last-child{ margin-bottom:0; }
.porta-comment-actions{
  margin-top:10px;
  display:flex;
  gap:16px;
}
.porta-comment-reply a,
.porta-comment-edit a{
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
}
.porta-comment-reply a:hover,
.porta-comment-edit a:hover{ color:var(--accent-hover); }
.porta-comments-pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-bottom:28px;
  flex-wrap:wrap;
}
.porta-comments-pagination a,
.porta-comments-pagination span{
  padding:6px 12px;
  border-radius:4px;
  background:var(--card-bg);
  border:1px solid var(--border);
  color:var(--text-light);
  font-size:13px;
}
.porta-comments-pagination .current{
  background:var(--accent-gradient);
  color:var(--text-dark);
  font-weight:700;
  border-color:var(--accent);
}
.porta-comments-fechados{
  color:var(--muted);
  font-size:14px;
  font-style:italic;
}

/* Formulário de novo comentário */
.porta-comment-form{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
}
.comment-reply-title{
  font-size:18px;
  font-weight:800;
  color:var(--text-light);
  margin:0 0 16px;
}
.comment-reply-title small a{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin-left:10px;
}
.comment-reply-title small a:hover{ color:var(--accent); }
.porta-comment-form-row{
  margin:0 0 14px;
}
.porta-comment-form .comment-form-cookies-consent{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  margin-bottom:14px;
}
.porta-comment-form .comment-notes,
.porta-comment-form .logged-in-as{
  color:var(--muted);
  font-size:13px;
  margin:0 0 14px;
}
.porta-comment-form .logged-in-as a{ color:var(--accent); }
.comment-form-author,
.comment-form-email{
  display:inline-block;
  width:100%;
}
@media (min-width: 560px){
  .porta-comment-form-row--half{
    display:inline-block;
    width:calc(50% - 7px);
  }
  .porta-comment-form-row--half:first-of-type{ margin-right:14px; }
}
.porta-comment-input,
.porta-comment-textarea{
  width:100%;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:4px;
  color:var(--text-light);
  font-family:inherit;
  font-size:14px;
  padding:11px 14px;
  transition:border-color .2s ease;
}
.porta-comment-textarea{
  resize:vertical;
  min-height:110px;
}
.porta-comment-input:focus,
.porta-comment-textarea:focus{
  outline:none;
  border-color:var(--accent);
}
.porta-comment-input::placeholder,
.porta-comment-textarea::placeholder{ color:var(--muted); }
.porta-comment-submit{
  width:auto;
  display:inline-flex;
  border:none;
  cursor:pointer;
  padding:12px 30px;
}

/* ---------- Toolbar de emoji / GIF no formulário de comentário ---------- */
.porta-comment-toolbar{
  position:relative;
  display:flex;
  gap:8px;
  margin:8px 0 14px;
}
.porta-toolbar-btn{
  background:var(--card-bg);
  border:1px solid var(--border);
  color:var(--text-light);
  font-size:13px;
  font-weight:600;
  padding:7px 14px;
  border-radius:20px;
  cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}
.porta-toolbar-btn:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.porta-toolbar-panel{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:20;
  width:280px;
  max-width:90vw;
  background:var(--dropdown-bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
}
.porta-emoji-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:4px;
  max-height:180px;
  overflow-y:auto;
}
.porta-emoji-item{
  background:transparent;
  border:none;
  font-size:20px;
  line-height:1;
  padding:6px;
  border-radius:6px;
  cursor:pointer;
  transition:background .15s ease;
}
.porta-emoji-item:hover{ background:rgba(34,211,197,.15); }
.porta-gif-search{
  width:100%;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:4px;
  color:var(--text-light);
  font-size:13px;
  padding:8px 10px;
  margin-bottom:10px;
}
.porta-gif-search:focus{ outline:none; border-color:var(--accent); }
.porta-gif-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:6px;
  max-height:220px;
  overflow-y:auto;
}
.porta-gif-thumb{
  width:100%;
  height:70px;
  object-fit:cover;
  border-radius:4px;
  cursor:pointer;
  border:1px solid transparent;
  transition:border-color .15s ease;
}
.porta-gif-thumb:hover{ border-color:var(--accent); }
.porta-gif-status{
  color:var(--muted);
  font-size:12px;
  margin:8px 0 0;
  text-align:center;
}

/* GIF embutido dentro de um comentário já publicado */
.porta-comment-text .porta-comment-gif{
  max-width:100%;
  width:220px;
  border-radius:6px;
  margin-top:8px;
  border:1px solid var(--border);
}
/* ==========================================================================
   PWA — Banner de instalação (barra inferior responsiva)
   ========================================================================== */
.fd-pwa-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:var(--header-bg);
  border-top:1px solid var(--border);
  box-shadow:0 -8px 24px rgba(0,0,0,.35);
  transform:translateY(110%);
  transition:transform .32s cubic-bezier(.22,.9,.32,1);
}
.fd-pwa-banner.is-visible{
  transform:translateY(0);
}
.fd-pwa-banner__inner{
  max-width:720px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
}
.fd-pwa-banner__icon{
  width:44px;
  height:44px;
  border-radius:12px;
  flex-shrink:0;
  background:var(--card-bg);
  border:1px solid var(--border);
}
.fd-pwa-banner__text{
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
  min-width:0;
}
.fd-pwa-banner__text strong{
  color:var(--text-light);
  font-size:14px;
  font-weight:700;
}
.fd-pwa-banner__text span{
  color:var(--muted);
  font-size:12.5px;
  line-height:1.3;
}
.fd-pwa-banner__actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.fd-pwa-banner__install{
  background:var(--accent-gradient);
  color:var(--text-dark);
  border:0;
  border-radius:var(--radius);
  padding:9px 18px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
  transition:background-color .15s ease;
  white-space:nowrap;
}
.fd-pwa-banner__install:hover{
  background:var(--accent-hover);
}
.fd-pwa-banner__close{
  background:transparent;
  border:0;
  color:var(--muted);
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius:50%;
  transition:background-color .15s ease, color .15s ease;
}
.fd-pwa-banner__close:hover{
  background:rgba(245,245,245,.08);
  color:var(--text-light);
}
.fd-pwa-banner__ios-steps{
  color:var(--text-light);
  font-size:12.5px;
  line-height:1.35;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.fd-pwa-banner__ios-steps svg{
  color:var(--accent);
  flex-shrink:0;
}
.fd-pwa-banner__ios-steps strong{
  color:var(--badge);
}

@media (min-width: 640px){
  .fd-pwa-banner{
    left:50%;
    right:auto;
    bottom:20px;
    width:calc(100% - 32px);
    max-width:520px;
    transform:translate(-50%, 130%);
    border-radius:14px;
    border:1px solid var(--border);
  }
  .fd-pwa-banner.is-visible{
    transform:translate(-50%, 0);
  }
}

@media (max-width: 420px){
  .fd-pwa-banner__text span{ display:none; }
  .fd-pwa-banner__ios-steps{ font-size:11.5px; }
}
