/*
Theme Name: Orion
Theme URI: https://serveronlineplay.com/
Author: Server Online Play
Author URI: https://serveronlineplay.com/
Description: Tema WordPress para catalogo de filmes e series. Multi-idioma (PT-BR, EN, ES, RU), esquema escuro e claro, painel de downloads em duas colunas, trailer sob demanda e zero dependencia de framework externo.
Version: 1.0.1
License: Proprietary - Uso exclusivo, codigo particular nao distribuido publicamente
Text Domain: orion
*/

/* ==========================================================================
   BASE

   Sem Bootstrap, sem Swiper, sem Font Awesome. Os icones sao SVG inline e
   o layout usa grid e flex direto — nos temas anteriores essas bibliotecas
   somavam mais de 600 KB para meia duzia de classes utilitarias.
   ========================================================================== */

:root {
  --o-bg:       #0b0b0f;
  --o-surf:     #14141b;
  --o-surf-2:   #1c1c25;
  --o-borda:    #26262f;
  --o-borda-2:  #33333f;
  --o-txt:      #ffffff;
  --o-txt-2:    #9a9aa8;
  --o-marca:    #8b5cf6;
  --o-marca-2:  #6d28d9;
  --o-ouro:     #fbbf24;
  --o-raio:     14px;
  --o-larg:     1320px;
  --o-nav:      70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--o-bg);
  color: var(--o-txt);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.o-wrap {
  width: 100%;
  max-width: var(--o-larg);
  margin: 0 auto;
  padding: 0 22px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.o-pular {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--o-marca);
  border-radius: 8px;
}
.o-pular:focus { left: 8px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--o-bg); }
::-webkit-scrollbar-thumb { background: var(--o-borda-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--o-marca); }

/* ==========================================================================
   CABECALHO
   ========================================================================== */

.o-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 11, 15, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--o-borda);
  transition: box-shadow .25s ease, background .25s ease;
}

.admin-bar .o-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .o-header { top: 46px; } }

body.o-rolou .o-header {
  background: rgba(11, 11, 15, .97);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .5);
}

.o-barra {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--o-nav);
}

.o-logo {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.o-logo span { color: var(--o-marca); }

/* ---- navegacao ---- */
.o-nav { flex: 1 1 auto; min-width: 0; }

.o-nav .menu-items {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.o-nav .menu-items > li { position: relative; }

.o-nav .menu-items > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--o-txt-2);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.o-nav .menu-items > li > a:hover { color: var(--o-txt); background: var(--o-surf-2); }

.o-nav .menu-items > li.current-menu-item > a,
.o-nav .menu-items > li.current-menu-parent > a,
.o-nav .menu-items > li.current-menu-ancestor > a {
  color: var(--o-txt);
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
}

/* seta do submenu, desenhada em CSS */
.o-seta {
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
  opacity: .8;
}

.o-nav .menu-item-has-children:hover > a .o-seta { transform: translateY(1px) rotate(-135deg); }

/* ponte invisivel sobre o vao, para o mouse nao perder o hover */
.o-nav .menu-item-has-children:hover::after {
  content: "";
  position: absolute;
  top: 100%; left: -8px; right: -8px;
  height: 14px;
}

.o-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1px 4px;
  min-width: 430px;
  padding: 10px;
  list-style: none;
  background: var(--o-surf);
  border: 1px solid var(--o-borda);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  /* max-height:0 evita que o submenu escondido continue ocupando area de
     rolagem do documento — sem isso sobra uma faixa vazia no fim da pagina */
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease,
              visibility 0s linear .3s, max-height 0s linear .3s;
  z-index: 950;
}

.o-nav .menu-item-has-children:hover > .sub-menu,
.o-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 70vh;
  overflow-y: auto;
  transition: opacity .2s ease, transform .2s ease,
              visibility 0s linear 0s, max-height 0s linear 0s;
}

.o-nav .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--o-txt-2);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.o-nav .sub-menu a:hover { background: var(--o-marca-2); color: #fff; }

/* ---- acoes ---- */
.o-acoes {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.o-busca {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 40px;
}

.o-busca input {
  width: 0;
  min-width: 0;
  max-width: 100%;
  padding: 10px 0;
  background: var(--o-surf-2);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--o-txt);
  font-size: 13.5px;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: width .28s ease, padding .28s ease, opacity .2s ease, border-color .2s ease;
}

.o-busca input::placeholder { color: #6b6b7a; }

.o-busca.aberta input {
  width: 240px;
  padding: 10px 42px 10px 16px;
  opacity: 1;
  pointer-events: auto;
  border-color: var(--o-marca);
}

.o-busca button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--o-borda-2);
  border-radius: 50%;
  color: var(--o-txt-2);
  cursor: pointer;
  transition: .2s ease;
}

.o-busca.aberta button {
  position: absolute;
  right: 3px;
  width: 34px; height: 34px;
  border-color: transparent;
}

.o-busca button:hover { color: var(--o-txt); border-color: var(--o-marca); }

.o-hamb {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 40px;
  background: transparent;
  border: 1px solid var(--o-borda-2);
  border-radius: 10px;
  color: var(--o-txt-2);
  cursor: pointer;
  transition: .2s ease;
}

.o-hamb:hover { color: var(--o-txt); border-color: var(--o-marca); }
.o-header.compacto .o-nav { display: none; }
.o-header.compacto .o-hamb { display: flex; }

/* ---- gaveta ---- */
.o-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(2px);
  opacity: 0;
  z-index: 1100;
  transition: opacity .28s ease;
}
.o-overlay.visivel { opacity: 1; }

.o-gaveta {
  position: fixed;
  top: 0; right: 0;
  width: 310px; max-width: 86vw;
  height: 100%;
  padding: 18px;
  background: var(--o-surf);
  border-left: 1px solid var(--o-borda);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 1101;
}

.o-gaveta.aberta { transform: translateX(0); }
body.o-travado { overflow: hidden; }

.o-gaveta-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--o-borda);
}

.o-fechar {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--o-txt-2);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.o-fechar:hover { color: var(--o-marca); }

.o-gaveta form { position: relative; margin-bottom: 16px; }
.o-gaveta form input {
  width: 100%;
  padding: 11px 44px 11px 15px;
  background: var(--o-surf-2);
  border: 1px solid var(--o-borda-2);
  border-radius: 999px;
  color: var(--o-txt);
  font-size: 13.5px;
  outline: none;
}
.o-gaveta form input:focus { border-color: var(--o-marca); }
.o-gaveta form button {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: none;
  color: var(--o-txt-2);
  cursor: pointer;
}

.o-gaveta .menu-items-mobile { list-style: none; }
.o-gaveta .menu-items-mobile > li {
  position: relative;
  border-bottom: 1px solid var(--o-borda);
}
.o-gaveta .menu-items-mobile > li > a {
  display: block;
  padding: 13px 42px 13px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--o-txt);
}
.o-gaveta .menu-items-mobile > li > a:hover { color: var(--o-marca); }

.o-abre-sub {
  position: absolute;
  top: 5px; right: 0;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  color: var(--o-txt-2);
  cursor: pointer;
}
.o-abre-sub::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}
.o-gaveta .aberto > .o-abre-sub { color: var(--o-marca); }
.o-gaveta .aberto > .o-abre-sub::after { transform: translateY(2px) rotate(-135deg); }

.o-gaveta .sub-menu {
  display: none;
  list-style: none;
  margin: 4px 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--o-marca);
}
.o-gaveta .aberto > .sub-menu { display: block; }
.o-gaveta .sub-menu li { border: none; }
.o-gaveta .sub-menu a {
  display: block;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--o-txt-2);
}
.o-gaveta .sub-menu a:hover { color: var(--o-txt); }

/* ==========================================================================
   CARD

   O titulo fica SOBRE o poster, num degrade, em vez de numa faixa abaixo.
   Alem de mais compacto, evita o problema das faixas de altura irregular
   quando os titulos tem numero de linhas diferente.
   ========================================================================== */

.o-secao { margin: 34px 0; }

.o-secao-titulo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.o-secao-titulo::before {
  content: "";
  width: 4px; height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--o-marca), var(--o-marca-2));
}

.o-secao-titulo::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--o-borda), transparent);
}

.o-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 20px;
}

.o-card {
  position: relative;
  display: block;
  border-radius: var(--o-raio);
  overflow: hidden;
  background: var(--o-surf);
  border: 1px solid var(--o-borda);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.o-card:hover {
  transform: translateY(-6px);
  border-color: var(--o-marca);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
}

.o-poster { position: relative; background: var(--o-surf-2); }

.o-poster img {
  width: 100%;
  height: auto;                /* junto com aspect-ratio, senao e ignorado */
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.o-sem-capa {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--o-surf-2), var(--o-surf));
}

/* degrade que garante leitura do titulo sobre qualquer poster */
.o-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 12px 12px;
  background: linear-gradient(to top,
              rgba(6, 6, 10, .96) 0%,
              rgba(6, 6, 10, .82) 42%,
              rgba(6, 6, 10, 0) 100%);
}

.o-card-titulo {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.o-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #b6b6c4;
}

.o-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* selos sobre o poster */
.o-selo {
  position: absolute;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.6;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.o-selo-q {
  top: 9px; left: 9px;
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
  color: #fff;
}

.o-selo-nota {
  top: 9px; right: 9px;
  background: rgba(6, 6, 10, .78);
  color: var(--o-ouro);
}

/* ==========================================================================
   FILTROS E PAGINACAO
   ========================================================================== */

.o-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.o-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--o-borda-2);
  background: var(--o-surf);
  color: var(--o-txt-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.o-chip:hover { color: var(--o-txt); border-color: var(--o-marca); }

.o-chip.ativo {
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
  border-color: transparent;
  color: #fff;
}

.o-pag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 36px 0 10px;
}

.o-pag .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--o-borda);
  background: var(--o-surf);
  color: var(--o-txt-2);
  font-size: 13px;
  font-weight: 600;
  transition: .18s ease;
}

.o-pag .page-numbers:hover { border-color: var(--o-marca); color: var(--o-txt); }

.o-pag .page-numbers.current {
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
  border-color: transparent;
  color: #fff;
}

.o-vazio {
  padding: 44px 20px;
  text-align: center;
  color: var(--o-txt-2);
  background: var(--o-surf);
  border: 1px dashed var(--o-borda-2);
  border-radius: var(--o-raio);
}

/* ==========================================================================
   PAGINA DO FILME
   ========================================================================== */

.o-single { margin: 30px 0 50px; }

.o-titulo {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.7px;
  line-height: 1.15;
}

.o-titulo::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--o-marca), var(--o-marca-2));
}

.o-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-left: 18px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--o-txt-2);
}

.o-sub span { display: inline-flex; align-items: center; gap: 6px; }

.o-topo {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 26px;
  align-items: start;
}

/* coluna estreita: poster + ficha */
.o-lateral { display: flex; flex-direction: column; gap: 18px; }

.o-ficha-caixa {
  padding: 18px;
  background: var(--o-surf);
  border: 1px solid var(--o-borda);
  border-radius: var(--o-raio);
}

.o-capa {
  border-radius: var(--o-raio);
  overflow: hidden;
  border: 1px solid var(--o-borda);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

.o-capa img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }

.o-painel {
  background: var(--o-surf);
  border: 1px solid var(--o-borda);
  border-radius: var(--o-raio);
  overflow: hidden;
}

/* ---- blocos da pagina do filme ----
   Substituem as abas: tudo visivel, empilhado. */

.o-bloco { padding: 22px; border-bottom: 1px solid var(--o-borda); }
.o-bloco:last-child { border-bottom: none; }

.o-bloco-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--o-txt-2);
}

.o-bloco-titulo::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--o-borda);
}

.o-ficha { list-style: none; }

/* Uma coluna so: em largura estreita, rotulo e valor lado a lado ficariam
   apertados demais, entao o rotulo vai acima, menor e em maiuscula. */
.o-ficha li {
  padding: 9px 0;
  border-bottom: 1px solid var(--o-borda);
  font-size: 13.5px;
}

.o-ficha li:last-child { border-bottom: none; padding-bottom: 0; }

.o-ficha strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--o-txt-2);
}

.o-ficha span { color: var(--o-txt); }
.o-ficha a { color: var(--o-marca); }
.o-ficha a:hover { text-decoration: underline; }

.o-sinopse { font-size: 14.5px; line-height: 1.7; color: #c8c8d4; }

/* ---- trailer sob demanda ---- */
.o-trailer {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.o-trailer img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.o-trailer:hover img { transform: scale(1.04); opacity: .8; }

.o-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 50px;
  border-radius: 13px;
  background: rgba(6, 6, 10, .74);
  transition: .2s ease;
}

.o-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}

.o-trailer:hover .o-play {
  background: var(--o-marca);
  transform: translate(-50%, -50%) scale(1.08);
}

.o-bloco iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* ---- elenco ---- */
.o-elenco {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 16px;
  list-style: none;
}

.o-elenco img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--o-surf-2);
  margin-bottom: 8px;
}

.o-elenco b { display: block; font-size: 12.5px; font-weight: 700; }
.o-elenco small { display: block; font-size: 11.5px; color: var(--o-txt-2); }

.o-aviso { padding: 20px; text-align: center; color: var(--o-txt-2); font-size: 13.5px; }

/* ==========================================================================
   PAINEL DE DOWNLOADS — duas colunas

   Layout proprio, diferente dos temas anteriores:
     Kinema -> linhas empilhadas
     Atlas  -> abas horizontais + grade de cartoes
     Vega   -> tabela com colunas
     Lumen  -> acordeao
     Orion  -> MESTRE/DETALHE: idiomas numa coluna a esquerda, arquivos
               do idioma selecionado a direita.

   No celular vira acordeao, porque duas colunas nao cabem.
   ========================================================================== */

.o-frase {
  margin: 26px 0 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #c8c8d4;
  text-align: center;
}

.o-frase b { color: var(--o-txt); font-weight: 800; }

.o-dl {
  background: var(--o-surf);
  border: 1px solid var(--o-borda);
  border-radius: var(--o-raio);
  overflow: hidden;
}

.o-dl-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
}

.o-dl-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.o-dl-conta {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.o-dl-corpo {
  display: grid;
  grid-template-columns: 210px 1fr;
  /* sem min-height: com um unico idioma, a coluna da esquerda sobrava
     vazia e o painel ficava com um buraco embaixo */
  align-items: start;
}

/* coluna dos idiomas */
.o-idiomas {
  border-right: 1px solid var(--o-borda);
  background: var(--o-bg);
  padding: 10px;
}

.o-idioma {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--o-txt-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.o-idioma:hover { background: var(--o-surf-2); color: var(--o-txt); }

.o-idioma.ativo {
  background: linear-gradient(135deg, rgba(139, 92, 246, .18), transparent);
  color: var(--o-txt);
  box-shadow: inset 3px 0 0 var(--o-marca);
}

.o-idioma-nome { flex: 1 1 auto; min-width: 0; }

.o-idioma-qtd {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--o-surf-2);
  color: var(--o-txt-2);
  font-size: 10.5px;
}

.o-idioma.ativo .o-idioma-qtd { background: var(--o-marca); color: #fff; }

/* coluna dos arquivos */
.o-arquivos { padding: 14px; }
.o-lista { display: none; }
.o-lista.ativa { display: block; }

.o-legendas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--o-borda);
  font-size: 12px;
  color: var(--o-txt-2);
}

.o-legendas a, .o-legendas .o-legenda-link {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .34);
  background: rgba(251, 191, 36, .1);
  color: var(--o-ouro);
  font-size: 11.5px;
  font-weight: 700;
}

.o-legendas a:hover, .o-legendas .o-legenda-link:hover { background: var(--o-ouro); color: #1a1a1a; }

.o-arquivo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--o-surf-2);
  border: 1px solid var(--o-borda);
  border-radius: 11px;
  transition: border-color .18s ease, background .18s ease;
}

.o-arquivo:last-child { margin-bottom: 0; }
.o-arquivo:hover { background: #22222c; border-color: var(--o-marca); }

.o-q {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 42px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #3a3a48;
}

.o-q.q-8k  { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.o-q.q-4k  { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.o-q.q-2k  { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.o-q.q-fhd { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.o-q.q-hd  { background: linear-gradient(135deg, #10b981, #047857); }

.o-arquivo-info { flex: 1 1 auto; min-width: 0; }
.o-arquivo-info b { display: block; font-size: 15px; font-weight: 700; }
.o-arquivo-info small {
  display: block;
  font-size: 12px;
  color: var(--o-txt-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.o-acoes-dl { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

.o-baixar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  white-space: nowrap;
  transition: filter .18s ease;
}

.o-baixar:hover { filter: brightness(1.18); color: #fff; }

.o-copiar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--o-surf);
  border: 1px solid var(--o-borda-2);
  color: var(--o-txt-2);
  cursor: pointer;
  transition: .18s ease;
}

.o-copiar:hover { color: var(--o-txt); border-color: var(--o-marca); }
.o-copiar.copiado { background: #10b981; border-color: #10b981; color: #fff; }

/* Downloads sob demanda: botoes visualmente iguais aos links originais. */
.o-baixar {
  border: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.o-baixar:disabled, .o-copiar:disabled, .o-legenda-link:disabled { opacity: .65; cursor: progress; }
.o-baixar:focus-visible, .o-copiar:focus-visible, .o-legenda-link:focus-visible {
  outline: 2px solid var(--o-ouro);
  outline-offset: 3px;
}
.o-arquivo { flex-wrap: wrap; }
.o-legenda-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.o-legendas .o-legenda-link { font-family: inherit; cursor: pointer; }
.o-copiar-legenda { width: 29px; height: 29px; border-radius: 999px; }
.o-link-feedback { flex: 0 0 100%; font-size: 11.5px; color: var(--o-txt-2); }
.o-link-feedback.o-link-erro { color: #f59e0b; }
.o-link-manual {
  display: block;
  margin-top: 7px;
  width: min(100%, 480px);
  padding: 8px;
  font: inherit;
  background: var(--o-bg);
  color: var(--o-txt);
  border: 1px solid var(--o-borda-2);
  border-radius: 6px;
}
.o-link-feedback[hidden], .o-link-manual[hidden] { display: none !important; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 900px) {
  .o-topo { grid-template-columns: 1fr; gap: 20px; }
  .o-lateral { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
  .o-titulo { font-size: 25px; }
}

@media (max-width: 560px) {
  /* poster e ficha empilham: lado a lado a ficha fica ilegivel */
  .o-lateral { grid-template-columns: 1fr; }
  .o-capa { max-width: 210px; }
}

@media (max-width: 780px) {
  /* duas colunas nao cabem: a lista de idiomas vira cabecalho de acordeao */
  .o-dl-corpo { grid-template-columns: 1fr; }

  .o-idiomas {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--o-borda);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .o-idiomas::-webkit-scrollbar { display: none; }

  .o-idioma {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--o-surf-2);
  }

  .o-idioma.ativo {
    background: linear-gradient(135deg, var(--o-marca), var(--o-marca-2));
    box-shadow: none;
  }

  .o-arquivo { flex-wrap: wrap; }
  .o-acoes-dl { width: 100%; }
  .o-baixar { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 640px) {
  .o-wrap { padding: 0 14px; }
  .o-grade { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .o-titulo { font-size: 22px; padding-left: 13px; }
  .o-sub { padding-left: 13px; }
  .o-secao-titulo { font-size: 17px; }
  .o-bloco { padding: 16px; }
  .o-frase { font-size: 13.5px; text-align: center; }
  .o-busca.aberta input { width: min(46vw, 170px); }
}

/* ---- rodape ---- */
.o-footer {
  margin-top: 50px;
  padding: 26px 0;
  border-top: 1px solid var(--o-borda);
  background: var(--o-surf);
  color: var(--o-txt-2);
  font-size: 13px;
  text-align: center;
}

.o-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.o-footer-links a {
  color: var(--o-txt-2);
  font-weight: 600;
  transition: color .18s ease;
}

.o-footer-links a:hover { color: var(--o-marca); }

.o-footer-copy { margin: 0; }

/* ==========================================================================
   ESQUEMA DE CORES: LIGHT
   Ativado em Opções do Tema. Adiciona .o-light no <body>.

   O tema todo usa variaveis, entao o claro e basicamente uma troca de
   valores — nao uma lista de sobrescritas por seletor. Foi o que faltou
   nos temas anteriores, onde cada superficie precisou ser caçada uma a uma.
   ========================================================================== */

body.o-light {
  --o-bg:      #f6f6f9;
  --o-surf:    #ffffff;
  --o-surf-2:  #eeeef4;
  --o-borda:   #e3e3ec;
  --o-borda-2: #cfcfdd;
  --o-txt:     #15151d;
  --o-txt-2:   #5f5f72;
  --o-marca:   #6d28d9;
  --o-marca-2: #5b21b6;
}

body.o-light .o-header { background: rgba(255, 255, 255, .9); }
body.o-light.o-rolou .o-header,
body.o-rolou.o-light .o-header { background: rgba(255, 255, 255, .97); box-shadow: 0 4px 18px rgba(21, 21, 29, .07); }

body.o-light .o-card:hover { box-shadow: 0 16px 32px rgba(21, 21, 29, .14); }
body.o-light .o-capa { box-shadow: 0 14px 32px rgba(21, 21, 29, .14); }

/* O degrade do card continua escuro nos dois esquemas: ele existe para o
   titulo ficar legivel sobre QUALQUER poster, e poster e sempre colorido. */

body.o-light .o-idiomas { background: var(--o-surf-2); }
body.o-light .o-idioma.ativo { background: linear-gradient(135deg, rgba(109, 40, 217, .14), transparent); }
body.o-light .o-arquivo:hover { background: var(--o-surf-2); }
body.o-light .o-q { background: var(--o-borda-2); color: var(--o-txt-2); }
body.o-light .o-copiar.copiado { background: #059669; border-color: #059669; }

body.o-light .o-legendas a, .o-legendas .o-legenda-link { color: #8a6100; background: rgba(251, 191, 36, .16); border-color: rgba(251, 191, 36, .5); }
body.o-light .o-legendas a:hover, .o-legendas .o-legenda-link:hover { background: var(--o-ouro); color: #1a1a1a; }

body.o-light .o-sinopse { color: #3c3c4c; }
body.o-light .o-frase { color: #3c3c4c; }
body.o-light .o-play { background: rgba(21, 21, 29, .74); }

/* As tres abas cabem sem rolagem: sem o elenco, o painel ficou mais enxuto */



/* ---- Downloads dentro do painel ----
   Como agora ele mora dentro de .o-painel, que ja tem borda e cantos
   arredondados, o card proprio viraria borda dupla. Aqui ele vira mais
   um bloco da coluna. */

.o-painel .o-dl {
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--o-borda);
}

.o-painel .o-frase {
  margin: 0;
  padding: 20px 22px 0;
  text-align: center;
}

.o-painel .o-idiomas {
  background: transparent;
  border-right: 1px solid var(--o-borda);
}

.o-painel .o-arquivos { padding: 14px 16px; }

/* a coluna de idiomas acompanha a altura da lista, sem esticar */
.o-painel .o-dl-corpo > * { align-self: start; }

/* ========================================================================== 
   DOWNLOADS COMPLETOS — todos os grupos visiveis + avisos de anuncios
   ========================================================================== */

.o-dl-corpo.o-dl-todos {
  display: block;
}

.o-arquivos.o-arquivos-todos {
  width: 100%;
  padding: 16px;
}

.o-lista.o-lista-aberta {
  display: block;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--o-borda);
}

.o-lista.o-lista-aberta:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.o-grupo-cabecalho {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.o-grupo-nome {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: var(--o-txt);
}

.o-grupo-qtd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--o-surf-2);
  color: var(--o-txt-2);
  font-size: 10.5px;
  font-weight: 800;
}

.o-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 999px;
  background: rgba(245, 158, 11, .10);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.o-ad-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-left: 4px solid #f59e0b;
  border-radius: 9px;
  background: rgba(245, 158, 11, .08);
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.45;
}

.o-ad-inline {
  margin-top: 4px;
  color: #fbbf24 !important;
  font-size: 10.5px !important;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
}

.o-arquivo.o-arquivo-anuncio {
  border-color: rgba(245, 158, 11, .20);
}

body.o-light .o-ad-badge,
body.o-light .o-ad-warning,
body.o-light .o-ad-inline {
  color: #9a5d00 !important;
}

body.o-light .o-ad-badge,
body.o-light .o-ad-warning {
  background: rgba(245, 158, 11, .10);
  border-color: rgba(180, 110, 0, .28);
}

/* Dentro da single, os grupos ocupam toda a coluna; nada fica escondido em abas. */
.o-painel .o-dl-corpo.o-dl-todos,
.o-painel .o-dl-corpo.o-dl-todos > * {
  width: 100%;
}

.o-painel .o-arquivos.o-arquivos-todos {
  padding: 16px 18px 18px;
}

@media (max-width: 640px) {
  .o-arquivos.o-arquivos-todos,
  .o-painel .o-arquivos.o-arquivos-todos {
    padding: 13px;
  }

  .o-grupo-cabecalho {
    align-items: flex-start;
  }

  .o-ad-badge {
    max-width: 100%;
  }
}
