/* =========================================================
   Play Filmes — estilo geral
   Paleta: Preto / Cinza-escuro + Laranja (marca) e Azul-petróleo (destaque)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --white: #ffffff;
  --black: #0b0c10;
  --dark-1: #141414;
  --dark-2: #1c1c1c;
  --dark-3: #262626;
  --gray-line: #333333;
  --text-soft: #b3b3b3;

  /* ---- Cores de marca/status/badge ---- */
  --red: #ff6a00;
  --blue-accent: #17c3b2;
  --gold: #ffc107;

  --font-display: "Baloo 2", "Poppins", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =========================================================
   TELA DE CARREGAMENTO
   ========================================================= */
/* =========================================================
   TELA DE CARREGAMENTO — abertura estilo "vinheta de canal de TV"
   (flash + facho de luz cruzando a tela + logo entrando com força +
   selo vermelho estourando), só na tela cheia de carregamento
   (#loading-screen). O .loading-logo simples (sem essa festa toda)
   continua existindo à parte, pro logo da tela de login/menu lateral.
   ========================================================= */
#loading-screen {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(circle at 50% 45%, #1a0407 0%, var(--black) 62%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity .6s ease;
  overflow: hidden;
  /* CORRIGIDO: no celular e no computador dava pra arrastar o dedo/mouse
     e rolar o catálogo por baixo dessa tela enquanto ela ainda "carregava"
     — travamos o toque aqui (touch-action) e a rolagem da página inteira
     via "body.is-loading" (ver logo abaixo), os dois juntos garantem que
     nada rola até a animação de verdade terminar. */
  touch-action: none;
  /* "Chuvisco" de TV bem sutil atrás de tudo — sobe devagar o tempo
     inteiro, reforça a sensação de vinheta sem pesar (é só um degradê
     repetido, 0 KB de imagem). */
  animation: intro-flash .5s ease-out;
}
#loading-screen.hide { opacity: 0; pointer-events: none; }
/* Enquanto a tela de carregamento existe, ninguém rola a página por baixo
   dela — a classe já nasce junto com o <body> no HTML (não espera o JS
   carregar) e só é removida quando a animação termina de verdade. */
body.is-loading { overflow: hidden; height: 100%; }

/* Trava genérica de rolagem — usada na tela de login e no menu lateral (☰).
   Usa "position: fixed" no body (em vez de só overflow:hidden) porque no
   celular (Safari/iOS principalmente) só overflow:hidden não impede o dedo
   de arrastar e rolar o conteúdo por baixo do overlay. Ver cbBloquearScroll
   / cbLiberarScroll em js/common.js. */
body.cb-scroll-locked {
  position: fixed;
  left: 0; right: 0;
  width: 100%;
  overflow: hidden;
}
#loading-screen::before {
  content: ""; position: absolute; inset: -20% 0 0 0; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px, transparent 1px, transparent 3px);
  animation: intro-scan 5s linear infinite;
  opacity: .5;
}
@keyframes intro-flash {
  0% { background: #000; }
  12% { background: radial-gradient(circle at 50% 45%, #3a0a10 0%, #000 60%); }
  100% { background: radial-gradient(circle at 50% 45%, #1a0407 0%, var(--black) 62%); }
}
@keyframes intro-scan { from { transform: translateY(0); } to { transform: translateY(4px); } }

/* Parede de pôsteres aleatórios rolando atrás do logo (estilo prévia da
   lista de filmes/séries) — ver cbMontarParedeDePosteres() em common.js.
   Fica atrás de tudo (z-index 0, .intro-scene é 1) e escurecida por baixo
   do degradê pra não brigar com o logo/texto por cima. */
.intro-wall {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  opacity: .5; filter: saturate(1.15) brightness(.85);
}
.intro-wall-row {
  display: flex; gap: 10px; flex-shrink: 0;
  width: max-content;
  animation: intro-wall-scroll 32s linear infinite;
}
.intro-wall-row--reversa { animation-direction: reverse; }
.intro-wall-poster {
  width: 90px; height: 135px; flex-shrink: 0; border-radius: 6px;
  background-size: cover; background-position: center; background-color: var(--dark-2);
}
@keyframes intro-wall-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (min-width: 700px) {
  .intro-wall-poster { width: 120px; height: 180px; }
}

.intro-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; z-index: 1; }

/* Estouro de luz vermelho atrás do logo — cresce e some rápido, tipo
   flash de câmera/abertura de vinheta. */
.intro-burst {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(229,9,20,.85) 0%, rgba(229,9,20,0) 72%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: intro-burst-anim 1.1s cubic-bezier(.16,.84,.44,1) .05s forwards;
}
@keyframes intro-burst-anim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  60% { opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(11); opacity: 0; }
}

/* Facho de luz diagonal cruzando a tela inteira uma vez — igual "brilho
   de vidro" passando por cima do logo de vinhetas de TV. */
.intro-beam {
  position: absolute; top: -60%; left: -30%; width: 55%; height: 220%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 45%, rgba(255,255,255,.4) 50%, rgba(255,255,255,.12) 55%, transparent 100%);
  transform: translateX(-120%) rotate(8deg);
  animation: intro-beam-anim 1.3s ease-in .5s forwards;
  pointer-events: none;
}
@keyframes intro-beam-anim {
  to { transform: translateX(260%) rotate(8deg); }
}

.intro-logo {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: .5px;
  display: flex;
}
.intro-word { display: inline-block; opacity: 0; }
/* "Play" sobe e aparece primeiro, sóbrio. */
.intro-word--play {
  animation: intro-word-rise .55s cubic-bezier(.2,.8,.2,1) .15s forwards;
}
/* "Filmes" estoura em laranja um instante depois — escala exagerada
   caindo com "solavanco" (overshoot) + tremidinha rápida, igual selo
   batendo forte numa vinheta de abertura de TV. */
.intro-word--filmes {
  color: var(--red);
  transform: scale(2.6);
  text-shadow: 0 0 26px rgba(255,106,0,.9);
  animation:
    intro-word-punch .5s cubic-bezier(.34,1.56,.64,1) .48s forwards,
    intro-word-shake .3s ease-out .95s 1;
}
@keyframes intro-word-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes intro-word-punch {
  0%   { opacity: 0; transform: scale(2.6); }
  55%  { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes intro-word-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Barrinha embaixo do logo — sem número/porcentagem (a tela some depois
   de um tempo fixo via JS, não dá pra prometer 0-100% certinho), só um
   brilho correndo pra dar a sensação de "carregando" sem parar. */
.intro-bar {
  width: 130px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  opacity: 0;
  animation: intro-word-rise .5s ease 1.1s forwards;
}
.intro-bar-fill {
  width: 40%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: intro-bar-sweep 1.3s ease-in-out 1.2s infinite;
}
@keyframes intro-bar-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  #loading-screen, #loading-screen::before, .intro-burst, .intro-beam,
  .intro-word--play, .intro-word--filmes, .intro-bar, .intro-bar-fill,
  .intro-wall-row {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

.loading-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: .5px;
  opacity: 0;
  animation: logo-in 1s ease forwards .15s;
}
.loading-logo span { color: var(--red); }

/* Sem "scale" — só sobe e aparece, sem dar zoom. */
@keyframes logo-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loading-dots { display: flex; gap: 10px; }
.loading-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white);
  animation: dot-bounce 1.1s ease-in-out infinite;
}
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
  transition: background .25s ease, backdrop-filter .25s ease;
}
/* Estilo Apple: barra fixa minimalista e translúcida (vidro fosco) em vez
   de um preto sólido opaco — usada nas páginas sem hero (categoria,
   detalhe) pra manter legibilidade sem perder a leveza do menu. */
.site-header.solid {
  background: rgba(11,12,16,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-left {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.header-right {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}

.menu-toggle-mobile { flex-shrink: 0; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--red); }

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  font-size: .86rem; font-weight: 500; color: var(--text-soft);
  white-space: nowrap; letter-spacing: .01em;
  transition: color .15s ease, opacity .15s ease;
  opacity: .92;
}
.header-nav a:hover, .header-nav a.active { color: var(--white); }

.icon-btn {
  background: none; border: none; color: var(--white);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s ease;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .menu-toggle-mobile { display: none; }
  .header-nav { display: flex; }
  .site-header { padding: 0 40px; }
}

/* ---- Conta (avatar / entrar) no canto do cabeçalho ---- */
.header-auth-slot { display: flex; align-items: center; }

.header-login-btn {
  background: var(--white); color: var(--black); border: none; border-radius: 6px;
  padding: 8px 16px; font-weight: 700; font-size: .82rem;
  white-space: nowrap;
}
.header-login-btn:hover { background: #e2e2e2; }

.header-avatar-wrap { position: relative; }
.header-avatar-btn {
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--dark-3); padding: 0; background: var(--dark-3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.header-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.header-avatar-fallback {
  color: var(--white); font-weight: 700; font-size: .9rem;
  font-family: var(--font-display);
}

.header-avatar-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 75;
  background: rgba(18,18,18,.98); border: 1px solid var(--dark-3); border-radius: 10px;
  min-width: 180px; padding: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.header-avatar-menu[hidden] { display: none; }
.header-avatar-menu-info {
  font-size: .8rem; color: var(--text-soft); padding: 2px 4px 10px;
  border-bottom: 1px solid var(--dark-3); margin-bottom: 8px;
}
.header-avatar-menu-btn {
  width: 100%; text-align: left; background: var(--dark-2); border: 1px solid var(--dark-3);
  color: var(--white); padding: 9px 11px; border-radius: 7px;
  font-weight: 600; font-size: .82rem;
}
.header-avatar-menu-btn:hover { background: var(--dark-3); }

/* =========================================================
   MENU LATERAL (só existe/abre no celular e tablet estreito)
   ========================================================= */
.side-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  z-index: 70;
}
.side-menu-overlay.open { opacity: 1; pointer-events: auto; }

.side-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(300px, 82vw);
  background: var(--dark-1);
  border-right: 1px solid var(--dark-3);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 71;
  padding: 20px 18px;
  overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.side-menu-header .logo { font-size: 1.25rem; }

.side-menu nav { display: flex; flex-direction: column; gap: 2px; }
.side-menu .menu-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-soft); margin: 18px 4px 6px;
}
.side-menu a {
  display: block; padding: 12px 10px; border-radius: 8px;
  font-weight: 500; color: var(--white);
  transition: background .2s ease;
}
.side-menu a:hover, .side-menu a.active { background: var(--dark-3); }

.side-menu-footer {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--dark-3);
  display: flex; flex-direction: column; gap: 12px;
}
.side-menu-privacy {
  display: block; padding: 0 10px;
  font-size: .78rem; color: var(--text-soft);
  transition: color .2s ease;
}
.side-menu-privacy:hover { color: var(--white); }
.side-menu-auth-slot { padding: 0 10px; }
.side-menu-auth-btn {
  width: 100%; text-align: center;
}

/* =========================================================
   HERO / DESTAQUE (título único, sorteado, banner 16:9 fixo)
   ========================================================= */
.hero {
  position: relative;
  aspect-ratio: 16 / 9; /* sem min-height: ele + aspect-ratio deixavam o banner mais largo que a tela no celular */
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
  background: #000;
}
.hero-track {
  display: flex; height: 100%;
  transition: transform .6s ease;
}
.hero-slide {
  min-width: 100%; height: 100%;
  position: relative;
  /* CORRIGIDO: "cover" + o "max-height" antigo cortavam boa parte da
     imagem no computador (a caixa deixava de ser 16:9 de verdade porque o
     max-height brigava com o aspect-ratio em telas largas). Sem o
     max-height, a caixa É 16:9 de verdade, e "contain" garante que a
     imagem inteira sempre apareça, sem cortar nada — quando sobra um
     pouquinho de espaço (banners que não são EXATAMENTE 16:9), fica uma
     borda preta fina, nunca um corte na imagem.
  */
  background-color: #000;
}
/* A imagem do banner (hero.js). "contain" no JS = banner completo. */
.hero-img {
  position: absolute; inset: 0;
  background-color: #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  background: #000;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 32%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%),
    linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%);
}

/* CORRIGIDO (de vez): a caixa de texto agora tem TOPO e BASE fixos —
   "top" começa sempre abaixo do cabeçalho, "bottom" fica a 64px do
   rodapé do banner. Como os dois lados são fixos, essa caixa nunca
   encosta no cabeçalho, não importa o zoom nem o tamanho da tela. Se
   ainda assim o conteúdo (título + sinopse etc.) for maior que o
   espaço, o que não couber é cortado (por isso o título abaixo é
   limitado a 2 linhas, e a sinopse — a maior parte do texto — só
   aparece a partir de telas maiores, ver .hero-sinopse-wrap). */
.hero-content {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--header-h) + 20px);
  bottom: 64px;
  padding: 0 24px;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  max-width: 640px;
  overflow: hidden;
}
/* Badge flutuante no banner hero (estilo Apple TV+/Netflix), sempre logo
   acima do título — ver .badge-lancamento / .badge-exclusivo mais abaixo,
   que compartilham a mesma base visual dos badges dos cards. */
.hero-badge-wrap { display: flex; margin-bottom: 6px; }
.hero-badge-wrap .badge { position: static; font-size: 12px; padding: 6px 12px; } /* .badge por padrão é absoluto (cards); aqui flui normal e um pouco maior */
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 5.5vw, 3.2rem);
  line-height: 1.1; text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0,0,0,.6);
  /* CORRIGIDO: limite de 2 linhas cortava título grande (ex: "Miraculous
     World: New York (Heróis Unidos)") no meio da frase. 3 linhas +
     fonte um pouco menor no clamp acima cobre praticamente todo caso. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta { font-size: .85rem; color: var(--text-soft); font-weight: 600; }

/* Sinopse: escondida no celular (fica só título + meta + botões, como
   no app oficial no celular) — aparece a partir de 700px, onde já
   sobra altura de sobra no banner pra ela caber sem invadir nada. */
.hero-sinopse-wrap {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.hero-sinopse-label { font-weight: 700; }
.hero-sinopse {
  font-size: .95rem; color: #e6e6e6; max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 700px) {
  .hero-sinopse-wrap { display: flex; }
}

.hero-actions { display: flex; gap: 12px; margin-top: 4px; }
.btn {
  border-radius: 8px; padding: 11px 22px; font-weight: 700; font-size: .92rem;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: #ff1c26; }
.btn-ghost {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.35);
  color: #0a0a0a;
}
.btn-ghost:hover { background: rgba(255,255,255,.3); }

/* barrinhas de progresso: por cima do banner (tablet/computador) */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 24px; z-index: 3; }
@media (min-width: 900px) { .hero-dots { padding: 0 48px; } }
.hero-progress-row {
  display: flex; gap: 6px;
}
.hero-progress-seg {
  flex: 1; max-width: 70px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.3);
  overflow: hidden; cursor: pointer;
}
.hero-progress-fill {
  height: 100%; width: 0%;
  background: var(--white);
  border-radius: 3px;
}


/* ---- CELULAR (< 700px): banner COMPLETO em cima, texto embaixo ----
   Antes o texto ficava por cima de um banner cortado. Agora a imagem 16:9
   aparece inteira, do tamanho da tela, e título/botões ficam logo abaixo,
   com um degradê suave ligando as duas partes. */
@media (max-width: 699px) {
  .hero, .hero-slide { background: var(--black); }
  .hero { aspect-ratio: auto; }
  .hero-track { height: auto; }
  .hero-slide { height: auto; display: flex; flex-direction: column; }
  .hero-slide::after { display: none; }
  .hero-img { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
  .hero-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, var(--black) 0%, rgba(11,12,16,0) 45%);
  }
  .hero-content {
    position: relative; top: auto; bottom: auto; left: auto; right: auto;
    max-width: none; overflow: visible; padding: 0 16px; gap: 6px;
    margin-top: -26px;
  }
  .hero-title { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .hero-actions { margin-top: 8px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 12px 10px; }
  .hero-actions .btn-ghost { color: var(--white); }
  .hero-dots { position: relative; bottom: auto; padding: 14px 16px 6px; }
}

/* =========================================================
   CATÁLOGO / LINHAS DE CARDS
   ========================================================= */
.catalog { padding: 8px 0 60px; }
.row-block { margin-top: 30px; }
.row-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; padding: 0 20px 12px;
  display: flex; align-items: center; gap: 10px;
}
.row-title::before {
  content: ""; display: inline-block; width: 4px; height: 1.1em;
  background: var(--red); border-radius: 2px; flex-shrink: 0;
}
/* Título de fileira virando link (ex: "Top 10 séries >" indo pra
   /series-populares) — mesma classe .row-title de base, só que como <a>. */
.row-title-link {
  text-decoration: none; color: inherit; width: fit-content;
  transition: opacity .2s ease;
}
.row-title-link:hover { opacity: .78; }
.row-title-chevron { width: 15px; height: 15px; margin-left: -4px; flex-shrink: 0; }

/* =========================================================
   BANNER PROMOCIONAL (colagem de capas + CTA) — mesma ideia visual do
   banner "Curta lançamentos toda semana" (Apple TV+), promovendo o
   catálogo/novidades do próprio Play Filmes.
   ========================================================= */
.promo-banner {
  position: relative; margin: 34px 20px 0; border-radius: 14px; overflow: hidden;
  min-height: 150px; display: flex; align-items: center;
  border: 1px solid var(--dark-3);
}
.promo-collage { position: absolute; inset: 0; display: flex; }
.promo-collage-tile { flex: 1 1 0; background-size: cover; background-position: center; }
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,12,16,.97) 0%, rgba(11,12,16,.88) 40%, rgba(11,12,16,.4) 76%, rgba(11,12,16,.18) 100%);
}
.promo-content {
  position: relative; z-index: 1; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px; max-width: 420px;
}
.promo-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.promo-logo span { color: var(--red); }
.promo-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.promo-btn { width: fit-content; }
@media (min-width: 700px) {
  .promo-banner { min-height: 190px; }
  .promo-title { font-size: 1.5rem; }
}
.row-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  /* Padding-right proposital em 0 aqui: fileiras flex com overflow não
     respeitam o padding-right depois do último item em scroll (bug de
     longa data do CSS em navegadores baseados em Chromium/WebKit) — o
     espaço acaba sendo "engolido" assim que a fileira passa a poder
     rolar, ficando os posters coladinhos na borda da tela. Resolvido com
     um item de verdade no fim da fileira (.row-scroll::after logo
     abaixo), que sempre ocupa espaço reservado, role ou não role. */
  padding: 4px 0 10px 20px;
  scroll-snap-type: x proximity;
  /* ESSENCIAL pro espaço do começo (alinhado com o título da fileira)
     nunca sumir: sem isso, o "encaixe" do scroll-snap (scroll-snap-type
     acima + scroll-snap-align nos cards) trata a borda do padding-box
     como o ponto de encaixe "0", e assim que a fileira tem itens
     suficientes pra rolar, o navegador reajusta sozinho o scroll pra
     colar o primeiro poster bem na borda, comendo aquele respiro inicial.
     "scroll-padding-left" avisa o motor de snap que o começo de verdade
     da fileira é 20px pra dentro — o respiro passa a ser parte do
     "encaixe", nunca é pulado, e os posters deslizam por baixo dele ao
     arrastar, sem nunca fazer esse espaço desaparecer. */
  scroll-padding-left: 20px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  /* CORRIGIDO: sem isso, o navegador reajusta o scroll sozinho (scroll
     anchoring) quando os posters terminam de carregar depois do primeiro
     paint — só ficava visível com itens suficientes pra fileira realmente
     poder rolar (por isso sumia com só 3 cards). */
  overflow-anchor: none;
}
.row-scroll::after { content: ""; flex: 0 0 20px; }
.row-scroll.is-scrolling { scrollbar-color: var(--dark-3) transparent; }
.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-thumb { background: transparent; }
.row-scroll.is-scrolling::-webkit-scrollbar-thumb { background: var(--dark-3); }
.card {
  flex: 0 0 auto; width: 148px; scroll-snap-align: start;
  cursor: pointer;
}
.card-poster {
  width: 148px; height: 222px; border-radius: 8px; /* proporção 2:3 (Netflix) */
  background: var(--dark-2);
  display: flex; align-items: flex-end; padding: 10px;
  position: relative; overflow: hidden;
  border: 1px solid var(--dark-3);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
  transform-origin: center bottom;
}
/* Zoom no hover (estilo Netflix) em vez do antigo "levantar" — mantém o
   card no lugar (não empurra os vizinhos) e ganha sombra pra se destacar
   da fileira. */
.card:hover .card-poster {
  transform: scale(1.08);
  border-color: #4d4d4d;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
  z-index: 3;
}
.card-poster span {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  line-height: 1.15; color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
/* =========================================================
   BADGES DE STATUS — estilo Netflix/Disney+: retângulos pequenos,
   cantos levemente arredondados (nunca "pill" cheia), microcopy em
   caixa alta/negrito, sempre no canto superior esquerdo do poster/banner.
   ========================================================= */
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center;
  background: rgba(20,20,20,.82);
  border: 1px solid rgba(255,255,255,.45);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px; font-weight: 800; line-height: 1;
  padding: 5px 10px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.card-caption { font-size: .8rem; color: var(--text-soft); margin-top: 6px; }
.card-title {
  font-weight: 700; color: var(--white); font-size: .82rem;
  line-height: 1.25; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-genero { color: var(--text-soft); }

/* "Novidade" / "Lançamento" — vermelho vibrante (padrão Netflix), sólido,
   sem borda translúcida (só o "Em Breve" acima mantém a borda fina). */
.badge-novidade, .badge-lancamento, .badge-chegou-agora {
  background: var(--red); border-color: var(--red); color: var(--white);
}
/* "Exclusivo" / featured no hero — azul elétrico, mesma estrutura sólida. */
.badge-exclusivo {
  background: var(--blue-accent); border-color: var(--blue-accent); color: var(--white);
}
/* "Novo Episódio" / "Nova Temporada" — dourado, sólido, texto escuro pro
   contraste ficar alto mesmo sobre fundo claro. */
.badge-novo-episodio {
  background: var(--gold); border-color: var(--gold); color: #1a1400;
}
/* "Indisponível" (episódio sem fonte de vídeo cadastrada) — neutro. */

/* =========================================================
   SELO EM BARRA NA BASE DO PÔSTER (estilo Apple TV+) — Em Breve /
   Novidade / Novo Episódio / Nova Temporada. Substitui o "pill" flutuante
   do canto (a classe .badge acima continua existindo só pro selo do hero
   e da lista de episódios da página de detalhes). Usado por buildCard() e
   buildCardTop10() em common.js, e pelos cards de episódio novo/em breve
   em catalog.js.
   A barra encosta nas 3 bordas do poster (esquerda/direita/base) — como
   .card-poster já tem overflow:hidden + border-radius, os 2 cantos de
   baixo saem arredondados sozinhos (acompanhando a curva do poster), sem
   precisar repetir o raio aqui. Quando tem 2 barras empilhadas (ex: "Novo
   Episódio" + "Assista já"), só a de baixo encosta no canto arredondado —
   igual ao print de referência. */
.badge-stack {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column;
}
.badge-bar {
  padding: 7px 8px;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 800; line-height: 1.2;
  text-align: center;
}
.badge-bar--vermelho { background: var(--red); color: var(--white); }
.badge-bar--branco { background: var(--white); color: #111; font-weight: 700; }
.badge-bar--em-breve { background: rgba(30,30,30,.94); color: var(--white); }

/* "Top 10 Mais Vistos" — número grande do lado do poster, estilo Netflix.
   Usado por buildCardTop10() em common.js. */
/* CORRIGIDO: antes tinha a mesma especificidade da regra ".card" (500px+)
   lá embaixo, e como ela vem depois no arquivo, vencia — o card do Top 10
   ficava espremido em 178px de largura total (número + poster), esmagando
   o poster. Com ".card.card-top10" (2 classes) a especificidade é maior e
   sempre vence, não importa a ordem no arquivo. */
/* Top 10: número grande | pôster, e a legenda (título + classificação) EMBAIXO
   do pôster — uma grade de 2 colunas x 2 linhas, em vez de uma fileira só
   (que jogava o título pro lado). */
.card.card-top10 {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  column-gap: 4px; align-items: end; width: auto;
}
.card-top10 .card-top10-numero { grid-column: 1; grid-row: 1; }
.card-top10 .card-poster { grid-column: 2; grid-row: 1; flex-shrink: 0; }
.card-top10 .card-caption { grid-column: 2; grid-row: 2; align-self: start; width: 148px; min-width: 0; }
@media (min-width: 700px) { .card-top10 .card-caption { width: 178px; } }
.card-top10-numero {
  font-family: var(--font-display); font-weight: 800;
  font-size: 4.2rem; line-height: 1; color: var(--dark-3);
  -webkit-text-stroke: 2px var(--text-soft);
  flex-shrink: 0; padding-bottom: 4px; user-select: none;
}
@media (min-width: 700px) {
  .card-top10-numero { font-size: 5.6rem; }
}

/* Selo "TOP 10" — canto superior esquerdo do pôster (faixinha vermelha, estilo Netflix) */
.top10-selo {
  position: absolute; top: 0; left: 8px; z-index: 3;
  width: 30px; padding: 4px 0 5px;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  background: var(--red); color: var(--white);
  border-radius: 0 0 5px 5px; box-shadow: 0 2px 6px rgba(0,0,0,.45);
  pointer-events: none;
}
.top10-selo small { font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.top10-selo b { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-top: 1px; }

/* Selinho quadrado de classificação etária (L / 10 / 12 / 14 / 16 / 18) */
.classif-quadro {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 4px; margin-top: 3px;
  border-radius: 4px; border: 1px solid transparent;
  font-size: .72rem; font-weight: 800; line-height: 1;
  background: #444; color: var(--white);
}
.classif-quadro.classif-livre { background: #2ecc71; color: #06210f; border-color: #2ecc71; }
.classif-quadro.classif-10    { background: #5bc8f5; color: #052733; border-color: #5bc8f5; }
.classif-quadro.classif-12    { background: #ffd23f; color: #3a2c00; border-color: #ffd23f; }
.classif-quadro.classif-14    { background: #ff8a00; color: #331b00; border-color: #ff8a00; }
.classif-quadro.classif-16    { background: #e5352b; color: #fff;    border-color: #e5352b; }
.classif-quadro.classif-18    { background: #111;    color: #fff;    border-color: #555; }

@media (min-width: 700px) {
  .card, .card-poster { width: 178px; }
  .card-poster { height: 267px; } /* 2:3 */
}

/* =========================================================
   HUBS DE CATEGORIAS (estilo Disney+) — blocos retangulares logo
   abaixo do hero, pra eixos temáticos (ex: "Nordeste Pop", "Cinema
   Novo", "Produção Independente"). Cada bloco leva pra uma página de
   categoria (mesma grade usada em Filmes/Séries Populares etc).
   ========================================================= */
.hub-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 18px 0 6px 20px;
  scroll-snap-type: x proximity; scroll-padding-left: 20px; scrollbar-width: none;
}
.hub-row::after { content: ""; flex: 0 0 20px; }
.hub-row::-webkit-scrollbar { display: none; }
.hub-card {
  position: relative; flex: 0 0 auto; width: 220px; height: 108px;
  border-radius: 10px; overflow: hidden; scroll-snap-align: start;
  background: linear-gradient(135deg, var(--dark-2), var(--dark-1));
  border: 1px solid var(--dark-3);
  display: flex; align-items: flex-end; padding: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Gradiente de cor por posição — cada hub ganha uma identidade própria
   mesmo sem banner próprio cadastrado ainda (ver js/catalog.js). */
.hub-card:nth-of-type(3n+1) { background: linear-gradient(135deg, #3a0a0f, var(--dark-1)); }
.hub-card:nth-of-type(3n+2) { background: linear-gradient(135deg, #062038, var(--dark-1)); }
.hub-card:nth-of-type(3n+3) { background: linear-gradient(135deg, #3a2c00, var(--dark-1)); }
.hub-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05));
}
.hub-card-label {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hub-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0,122,255,.55);
  box-shadow: 0 0 0 1px rgba(0,122,255,.35), 0 10px 26px rgba(0,122,255,.25);
}
@media (min-width: 700px) {
  .hub-row { padding-left: 48px; scroll-padding-left: 48px; }
  .hub-row::after { flex-basis: 48px; }
  .hub-card { width: 260px; height: 128px; }
}

/* =========================================================
   "GÊNEROS POPULARES" — um cabeçalho com sub-fileiras (Comédia
   Nacional, Suspense/Policial, Drama, Documentários Biográficos).
   ========================================================= */
.genre-section { margin-top: 30px; }
.genre-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; padding: 0 20px 4px;
  display: flex; align-items: center; gap: 10px;
}
.genre-section-title::before {
  content: ""; display: inline-block; width: 4px; height: 1.1em;
  background: var(--blue-accent); border-radius: 2px; flex-shrink: 0;
}
.genre-subrow { margin-top: 14px; }
.genre-subrow-title {
  font-weight: 600; font-size: .92rem; color: var(--text-soft);
  padding: 0 20px 10px;
  display: flex; align-items: center; gap: 8px;
}
.genre-subrow-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
/* Uma cor de destaque por gênero, na ordem em que são gerados em
   js/catalog.js (GENEROS_POPULARES) — só um toque visual pra diferenciar
   as sub-fileiras de "Gêneros Populares" de relance. */
.genre-subrow:nth-of-type(1) .genre-subrow-title::before { background: var(--gold); }
.genre-subrow:nth-of-type(2) .genre-subrow-title::before { background: var(--blue-accent); }
.genre-subrow:nth-of-type(3) .genre-subrow-title::before { background: var(--red); }
.genre-subrow:nth-of-type(4) .genre-subrow-title::before { background: #2ecc71; }
@media (min-width: 900px) {
  .genre-section-title, .genre-subrow-title { padding-left: 48px; padding-right: 48px; }
}

/* ============ PÁGINA DE CATEGORIA (Filmes/Séries Populares, Top 10,
   Em Breve, Adicionados Recentemente, Para Toda Família) ============
   Não tinha NENHUM CSS antes — os cards ficavam empilhando sem grade. */
.categoria-page { padding: 24px 20px 60px; }
.categoria-titulo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; margin-bottom: 18px;
}
.categoria-grid {
  display: flex; flex-wrap: wrap; gap: 20px 14px;
}
.categoria-vazio { color: var(--text-soft); padding: 20px 0; }
@media (min-width: 700px) {
  .categoria-page { padding: 32px 48px 60px; }
}

/* =========================================================
   PÁGINA DE DETALHE (filme / série)
   ========================================================= */
.detail-banner {
  position: relative;
  height: min(56vh, 460px);
  background-size: cover; background-position: center;
}
.detail-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 4%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.2) 100%);
}
.detail-back {
  position: absolute; top: 16px; left: 16px; z-index: 4;
}
.detail-content {
  position: relative; z-index: 2;
  padding: 0 20px; margin-top: -90px;
}
.detail-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  text-transform: uppercase; line-height: 1.05;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--text-soft); font-weight: 600; font-size: .85rem; margin: 10px 0 14px;
}
.detail-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-soft); }
.tag-classificacao {
  border: 1px solid var(--text-soft); border-radius: 4px; padding: 1px 8px;
  font-size: .75rem; font-weight: 700;
}
/* Cores por faixa etária (classificação indicativa) */
.tag-classificacao.classif-livre { background: #2ecc71; color: #06210f; border-color: #2ecc71; }
.tag-classificacao.classif-10    { background: #5bc8f5; color: #052733; border-color: #5bc8f5; }
.tag-classificacao.classif-12    { background: #ffd23f; color: #3a2c00; border-color: #ffd23f; }
.tag-classificacao.classif-14    { background: #ff8a00; color: #331b00; border-color: #ff8a00; }
.tag-classificacao.classif-16    { background: #e5352b; color: #fff; border-color: #e5352b; }
.tag-classificacao.classif-18    { background: #111; color: #fff; border-color: #555; }
.detail-sinopse { color: #dcdcdc; line-height: 1.6; max-width: 680px; margin-bottom: 20px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.em-breve-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: var(--dark-2); border: 1px solid var(--dark-3);
  color: var(--text-soft); font-size: .88rem; max-width: 520px;
}
.countdown-detail {
  margin-top: 6px; font-weight: 700; color: var(--white); font-size: .85rem;
}
.countdown-mini {
  font-size: .72rem; font-weight: 700; color: var(--white); margin-top: 4px;
}
.badge-novo {
  display: inline-block; margin-top: 4px;
  background: var(--gold); color: #1a1400;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 4px 8px; border-radius: 5px;
}

/* Seções de temporada / episódios */
.season-section { padding: 34px 20px 60px; }
.season-select-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.season-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.season-select {
  background: var(--dark-2); color: var(--white); border: 1px solid var(--dark-3);
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .85rem;
}

.episode-list { display: flex; flex-direction: column; gap: 16px; }
.episode-row {
  display: flex; gap: 14px; align-items: center;
  background: var(--dark-1); border: 1px solid var(--dark-3);
  border-radius: 12px; padding: 10px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.episode-row:hover { background: var(--dark-2); border-color: #444; }

.episode-thumb {
  position: relative;
  width: 168px; height: 96px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
}
.episode-sinopse {
  color: var(--text-soft); font-size: .82rem; line-height: 1.4; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) {
  .episode-row { flex-wrap: wrap; }
  .episode-thumb { width: 100%; height: 190px; }
  .episode-sinopse { -webkit-line-clamp: 3; }
}
.episode-thumb img, .episode-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.episode-thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
}
.episode-thumb .play-badge svg { width: 26px; height: 26px; }
.episode-thumb .thumb-loading {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white); border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.episode-info { flex: 1; min-width: 0; }
.episode-number { font-size: .72rem; color: var(--text-soft); font-weight: 700; text-transform: uppercase; }
.episode-title { font-weight: 700; font-size: .95rem; margin-top: 2px; }

.episode-row-locked { cursor: default; opacity: .6; }
.episode-row-locked:hover { background: var(--dark-1); border-color: var(--dark-3); }
.episode-thumb-locked { display: flex; align-items: center; justify-content: center; position: relative; }
.episode-thumb-locked .badge { position: static; }

.badge-indisponivel { background: rgba(120,120,120,.55); border-color: rgba(255,255,255,.2); }

.detail-indisponivel {
  display: inline-flex; align-items: center;
  background: var(--dark-2); border: 1px solid var(--dark-3); color: var(--text-soft);
  font-size: .85rem; font-weight: 600;
  padding: 10px 20px; border-radius: 24px;
}

.detail-divider { border: none; border-top: 1px solid var(--dark-3); margin: 30px 0 0; }
.detail-similares .row-title { margin-top: 20px; }

/* Sub-título (nome da série) mostrado acima do título quando a página
   está em "modo continuar assistindo" (mostrando dados do episódio) */
.detail-subtitle-serie {
  color: var(--text-soft); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}

/* Seção "Detalhes" */
.detail-detalhes { padding: 0 20px; max-width: 680px; margin: 26px auto 0; }
.detail-detalhes .row-title { margin-bottom: 12px; }
.detail-detalhes-item {
  font-size: .9rem; color: #dcdcdc; line-height: 1.6; margin-bottom: 8px;
}
.detail-detalhes-item strong { color: var(--white); }
@media (min-width: 700px) { .detail-detalhes { padding: 0 48px; } }

/* Seção "Extras" (trailer em formato de card, igual às fileiras) */
.extra-card { width: 260px; flex-shrink: 0; cursor: pointer; }
.extra-card-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px;
  overflow: hidden; background: var(--dark-3);
}
.extra-card-thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
}
.extra-card-thumb .play-badge svg { width: 32px; height: 32px; }
.extra-card-label { margin-top: 8px; font-weight: 700; font-size: .85rem; }

/* =========================================================
   PLAYER
   ========================================================= */
.player-page { background: var(--black); min-height: 100vh; }
.player-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; position: sticky; top: 0; z-index: 5;
  background: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
}
.player-top .title { font-weight: 700; font-size: .95rem; }
.player-top .subtitle { font-size: .78rem; color: var(--text-soft); }

.player-wrap {
  width: 100%; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16/9; background: #000;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.player-wrap video { width: 100%; height: 100%; }

.player-info { padding: 20px; max-width: 1100px; margin: 0 auto; }
.player-info h1 {
  font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 6px;
}
.player-info p { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  text-align: center; padding: 26px 16px 40px;
  color: var(--text-soft); font-size: .82rem;
  border-top: 1px solid var(--dark-2); margin-top: 20px;
}

/* =========================================================
   BUSCA
   ========================================================= */
.search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 80; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--dark-3);
}
.search-bar input {
  flex: 1; background: none; border: none; color: var(--white);
  font-size: 1.1rem; outline: none; font-family: var(--font-body);
}
.search-bar input::placeholder { color: var(--text-soft); }
.search-results {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-content: flex-start;
}
.search-empty { color: var(--text-soft); padding: 30px 4px; }

@media (min-width: 900px) {
  .hero-content { max-width: 720px; padding: 0 48px; }
  .row-title { padding-left: 48px; padding-right: 48px; }
  .row-scroll { padding-left: 48px; scroll-padding-left: 48px; }
  .row-scroll::after { flex-basis: 48px; }
  .detail-content, .season-section { padding-left: 48px; padding-right: 48px; }
}

/* =========================================================
   TELA DE ASSISTIR — embutida na própria página
   ========================================================= */
.watch-mount[hidden] { display: none; }
.watch-mount { padding-bottom: 10px; }

.watch-video-box {
  position: sticky; top: var(--header-h); z-index: 55;
  width: 100%; aspect-ratio: 16/9;
  background: #000; overflow: hidden;
}
.watch-video-box video,
.watch-video-box iframe { width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; }

/* =========================================================
   PLAYER — layout estilo Netflix, com as cores/fontes do site.
   Topo: seta de voltar + título (+ Minha Lista e tela cheia).
   Meio: voltar 10s · play/pause · avançar 10s.
   Baixo: barra de progresso + tempo restante, e a fileira
   Velocidade · Idioma e legendas · episódio anterior/próximo.

   IMPORTANTE (corrige o "clique fantasma"): quando as informações
   estão escondidas (.watch-ui-oculto) NADA dentro delas recebe
   toque/clique — antes ficavam só transparentes (opacity:0) mas
   continuavam clicáveis, e um toque "no vazio" acionava o botão
   invisível que estava ali.
   ========================================================= */
.watch-ui {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
.watch-ui button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* escurece levemente o vídeo só no player próprio (não no modo iframe) */
#watch-ui { background: rgba(0,0,0,.38); }
.watch-ui.watch-ui-oculto {
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.watch-ui.watch-ui-oculto,
.watch-ui.watch-ui-oculto * { pointer-events: none !important; }

.watch-top,
.watch-bottom,
.watch-next-ep { pointer-events: auto; }

/* ---------- topo ---------- */
.watch-top {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,0));
}
.watch-top-titles { min-width: 0; flex: 1; }
.watch-top-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.watch-top-sub {
  font-weight: 600; font-size: .8rem; color: #ddd; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.watch-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.watch-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; flex-shrink: 0;
  background: rgba(38,38,38,.78); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.watch-icon-btn svg { width: 20px; height: 20px; }
.watch-cast {
  width: auto; min-width: 36px; padding: 0 10px; gap: 6px; border-radius: 20px;
  font-size: .76rem; font-weight: 700;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.watch-cast.is-connected { background: var(--blue-accent); color: #061414; }
.watch-cast.is-busy { opacity: .65; }
.watch-cast-label { white-space: nowrap; }
.watch-back { background: none; width: 34px; }
.watch-back svg { width: 24px; height: 24px; }
.watch-pill {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 36px; padding: 0 12px;
  background: rgba(38,38,38,.78); border: none; color: var(--white);
  font-size: .76rem; font-weight: 600; border-radius: 20px; white-space: nowrap;
}
.watch-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.watch-pill.is-on { background: var(--red); color: var(--white); }

/* Texto "Voltar" do modo iframe (player embutido de terceiros) */
.watch-voltar {
  display: inline-block; margin-top: 6px; font-size: .82rem;
  color: var(--text-soft); background: none; border: none; padding: 0; cursor: pointer;
}
.watch-voltar:hover { color: var(--white); text-decoration: underline; }

/* ---------- meio ---------- */
.watch-center {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(26px, 12vw, 110px);
  pointer-events: none;
}
.watch-center button {
  pointer-events: auto; background: none; border: none; color: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: transform .15s ease;
}
.watch-center button:active { transform: scale(.92); }
.watch-skip svg { width: 38px; height: 38px; }
.watch-center-play svg { width: 54px; height: 54px; }

/* ---------- baixo ---------- */
.watch-bottom {
  display: flex; flex-direction: column; gap: 0;
  padding: 0 14px 6px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.watch-seekrow { display: flex; align-items: center; gap: 12px; }
.watch-time {
  font-size: .78rem; color: var(--white); font-variant-numeric: tabular-nums;
  white-space: nowrap; min-width: 52px; text-align: right; flex-shrink: 0;
}
.watch-seek {
  --p: 0%;
  flex: 1; min-width: 0; margin: 0; height: 24px;
  -webkit-appearance: none; appearance: none; background: transparent;
  outline: none; cursor: pointer;
}
.watch-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--red) var(--p), rgba(255,255,255,.3) var(--p));
}
.watch-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: var(--red); border: none;
  box-shadow: 0 0 0 3px rgba(255,106,0,.28);
}
.watch-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.watch-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red); }
.watch-seek::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: none;
  box-shadow: 0 0 0 3px rgba(255,106,0,.28);
}

.watch-actions { display: flex; align-items: center; justify-content: space-around; gap: 4px; }
.watch-act {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--white);
  font-size: .72rem; font-weight: 600; padding: 6px 6px; white-space: nowrap;
}
.watch-act svg { width: 19px; height: 19px; flex-shrink: 0; }
.watch-act[disabled] { opacity: .35; }

/* ---------- legenda (por cima do vídeo; sobe quando os controles aparecem) ---------- */
.watch-legenda-overlay {
  position: absolute; left: 0; right: 0; bottom: 12%; z-index: 3;
  text-align: center; pointer-events: none; padding: 0 20px;
  transition: bottom .25s ease;
}
#watch-ui:not(.watch-ui-oculto) ~ .watch-legenda-overlay { bottom: 88px; }
.watch-legenda-overlay span {
  display: inline-block; background: none; color: var(--white);
  font-size: .85rem; line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.7);
}
.watch-legenda-overlay:empty { display: none; }

/* ---------- painel (Velocidade / Idioma e legendas) ---------- */
.watch-panel {
  position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78); padding: 10px;
}
.watch-panel[hidden] { display: none; }
.watch-panel-box {
  position: relative; display: flex; gap: 28px; max-height: 100%; overflow: auto;
  background: rgba(20,20,20,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 44px 14px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.watch-panel-col { min-width: 130px; }
.watch-panel-col h4 {
  margin: 0 0 6px; font-family: var(--font-display); font-size: .95rem; color: var(--text-soft);
}
.watch-panel-col button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; color: var(--white);
  padding: 8px 2px; font-size: .88rem; font-family: inherit;
}
.watch-panel-col button::before { content: ""; display: inline-block; width: 14px; flex-shrink: 0; }
.watch-panel-col button.is-selected { font-weight: 700; color: var(--red); }
.watch-panel-col button.is-selected::before { content: "✓"; color: var(--red); }
.watch-panel-vazio { margin: 6px 0 0; font-size: .78rem; color: var(--text-soft); max-width: 160px; }
.watch-panel-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(60,60,60,.8); border: none; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.watch-panel-close svg { width: 14px; height: 14px; }
/* Aviso curto da conexão com a TV, sem interromper o vídeo com alert(). */
.watch-cast-toast {
  position: absolute; left: 50%; bottom: 18%; z-index: 8;
  max-width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 10px 14px; border-radius: 9px;
  background: rgba(20,20,20,.94); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); font-size: .82rem; font-weight: 600; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  pointer-events: none;
}
.watch-cast-toast.is-error { border-color: rgba(255,106,0,.72); }
.watch-cast-toast[hidden] { display: none; }

/* Aviso de "-10 / +10" que pisca do lado que a pessoa deu o toque duplo. */
.watch-seek-flash {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); pointer-events: none;
  background: rgba(0,0,0,.55); border-radius: 50%;
  width: 84px; height: 84px;
  animation: cbSeekFlash .55s ease-out;
  z-index: 4;
}
.watch-seek-flash--esq { left: 10%; }
.watch-seek-flash--dir { right: 10%; }
.watch-seek-flash svg { width: 40px; height: 40px; }
@keyframes cbSeekFlash {
  0% { opacity: 0; transform: translateY(-50%) scale(.8); }
  25% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(1); }
}

/* ---------- telas pequenas ---------- */
@media (max-width: 480px) {
  .watch-pill span { display: none; }
  .watch-pill { padding: 0; width: 36px; }
  .watch-cast-label { display: none; }
  .watch-cast { width: 36px; padding: 0; }
  .watch-act { font-size: .68rem; gap: 4px; padding: 4px 2px; }
  .watch-act svg { width: 17px; height: 17px; }
  .watch-act--ep span { display: none; }
  .watch-panel-box { gap: 18px; padding: 12px 40px 10px 14px; }
  .watch-panel-col { min-width: 108px; }
  .watch-panel-col button { padding: 6px 2px; font-size: .82rem; }
}
/* ---------- telas maiores (PC/tablet) ---------- */
@media (min-width: 700px) {
  .watch-top { padding: 14px 20px; }
  .watch-top-title { font-size: 1.2rem; }
  .watch-top-sub { font-size: .92rem; }
  .watch-icon-btn, .watch-pill { height: 40px; }
  .watch-icon-btn { width: 40px; }
  .watch-cast { width: auto; padding: 0 12px; }
  .watch-skip svg { width: 52px; height: 52px; }
  .watch-center-play svg { width: 72px; height: 72px; }
  .watch-bottom { padding: 0 20px 10px; }
  .watch-act { font-size: .85rem; gap: 8px; }
  .watch-act svg { width: 22px; height: 22px; }
  .watch-legenda-overlay span { font-size: 1.1rem; }
  #watch-ui:not(.watch-ui-oculto) ~ .watch-legenda-overlay { bottom: 110px; }
}
/* ---------- tela cheia (classe .watch-fs posta pelo JS) ---------- */
.watch-fs .watch-top { padding: 18px 28px; }
.watch-fs .watch-top-title { font-size: 1.5rem; }
.watch-fs .watch-top-sub { font-size: 1.05rem; }
.watch-fs .watch-icon-btn, .watch-fs .watch-pill { height: 46px; }
.watch-fs .watch-icon-btn { width: 46px; }
.watch-fs .watch-cast { width: auto; padding: 0 14px; }
.watch-fs .watch-icon-btn svg { width: 24px; height: 24px; }
.watch-fs .watch-pill span { display: inline; }
.watch-fs .watch-pill { width: auto; padding: 0 16px; font-size: .9rem; }
.watch-fs .watch-skip svg { width: 64px; height: 64px; }
.watch-fs .watch-center-play svg { width: 88px; height: 88px; }
.watch-fs .watch-bottom { padding: 0 28px 16px; }
.watch-fs .watch-act { font-size: .95rem; }
.watch-fs .watch-act--ep span { display: inline; }
.watch-fs .watch-time { font-size: .95rem; }
.watch-fs .watch-legenda-overlay span { font-size: 1.5rem; }
.watch-fs #watch-ui:not(.watch-ui-oculto) ~ .watch-legenda-overlay { bottom: 130px; }
.watch-fs .watch-legenda-overlay { bottom: 8%; }
.watch-fs .watch-next-ep { bottom: 120px; }

.watch-below { max-width: 1100px; margin: 0 auto; padding: 22px 16px 0; }
.watch-below h1 {
  font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 4px;
}
.watch-below p { color: var(--text-soft); font-size: .92rem; line-height: 1.5; margin: 0; }
.watch-subtitulo { font-weight: 700; font-size: .95rem; color: var(--text-soft); margin: 0 0 12px; }

/* ---- Fileira de chips (ano / classificação / temporadas-duração) ----
   Estilo "Prime Video": pastilhas discretas logo abaixo do título, em vez
   de tudo espremido numa linha de texto só. */
.watch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.watch-chip {
  font-size: .78rem; font-weight: 600; color: var(--text-soft);
  border: 1px solid var(--dark-3); border-radius: 5px; padding: 3px 9px;
}
.watch-chip-classif { color: var(--white); border-color: transparent; }

.watch-sinopse { max-width: 760px; margin-bottom: 22px !important; }

/* ---- Grade de informações (gênero / direção / elenco) ---- */
.watch-info-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 16px 0; margin-bottom: 8px;
  border-top: 1px solid var(--dark-3); border-bottom: 1px solid var(--dark-3);
}
.watch-info-item { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.watch-info-rotulo { color: var(--text-soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 700px) {
  .watch-info-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---- Fileira de episódios (temporada atual) — igual Prime Video: os
   episódios ficam logo abaixo do player, dá pra trocar sem sair da tela. */
.watch-episodios { margin-top: 26px; }
.watch-episodios h2 { font-family: var(--font-display); font-size: 1.05rem; margin: 0; }
.watch-episodios-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 4px; flex-wrap: wrap;
}
.watch-season-select-wrap { flex-shrink: 0; min-width: 150px; }
.watch-episodios-scroll { padding-left: 0 !important; padding-right: 0 !important; }
.watch-episodios-scroll::after { display: none; }
.watch-ep-card {
  flex-shrink: 0; width: 168px; background: none; border: none; padding: 0;
  text-align: left; color: var(--text-soft); font: inherit; cursor: pointer;
}
.watch-ep-card[disabled] { cursor: default; opacity: .45; }
.watch-ep-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 8px;
  background-size: cover; background-position: center; overflow: hidden;
  background-color: var(--dark-2); margin-bottom: 6px;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .15s ease;
}
.watch-ep-card.is-atual .watch-ep-thumb { outline-color: var(--red); }
.watch-ep-card:not([disabled]):hover .watch-ep-thumb { outline-color: rgba(255,255,255,.5); }
.watch-ep-num {
  position: absolute; top: 6px; left: 8px; font-weight: 800; font-size: .85rem;
  color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.watch-ep-selo {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--red); color: var(--white);
  font-size: .72rem; font-weight: 800; text-align: center; padding: 4px 6px;
}
.watch-ep-selo--em-breve { background: rgba(30,30,30,.94); }
.watch-ep-titulo { font-size: .82rem; line-height: 1.3; color: var(--white); }

/* ---- Tela de carregamento do vídeo — cobre o player enquanto ele
   carrega de verdade (ver abrirPlayer() em js/player.js) ---- */
.watch-loading {
  position: absolute; inset: 0; z-index: 5;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
}
.watch-loading-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 5vw, 1.8rem); letter-spacing: .5px;
}
.watch-loading-logo span { color: var(--red); }
.watch-loading-dots { display: flex; gap: 8px; }
.watch-loading-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--white);
  animation: dot-bounce 1.1s ease-in-out infinite;
}
.watch-loading-dots i:nth-child(2) { animation-delay: .15s; }
.watch-loading-dots i:nth-child(3) { animation-delay: .3s; }

/* ---- Tela de erro do vídeo — cobre o site inteiro quando o caminho do
   vídeo está errado/ausente ou o link não responde (ver
   cbMostrarErroVideo() em js/player.js) ---- */
.watch-erro {
  position: fixed; inset: 0; z-index: 970;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
  overflow-y: auto;
  animation: watch-erro-in .25s ease both;
}
@keyframes watch-erro-in { from { opacity: 0; } to { opacity: 1; } }
.watch-erro-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: .5px;
  margin-bottom: 10px;
}
.watch-erro-logo span { color: var(--red); }
.watch-erro-icone { width: 54px; height: 54px; color: var(--red); }
.watch-erro-titulo { margin: 0; font-size: 1.2rem; font-weight: 700; }
.watch-erro-texto {
  margin: 0; max-width: 340px;
  color: var(--text-soft); font-size: .95rem; line-height: 1.5;
}
.watch-erro-acoes {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 10px;
}
/* .btn-ghost padrão tem texto escuro (feito pra ficar sobre o hero) —
   aqui o fundo é preto, então o texto fica branco. */
.watch-erro .btn-ghost { color: var(--white); }

/* =========================================================
   PROTEÇÃO CONTRA DOWNLOAD (nível "desestímulo")
   ========================================================= */
.card-poster, .detail-banner, .hero-slide, .episode-thumb img {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; user-drag: none; }
video::-webkit-media-controls-download-button { display: none !important; }

button.card { background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; }

/* =========================================================
   TELA DE LOGIN
   ========================================================= */
.login-screen {
  position: fixed; inset: 0; z-index: 950;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  overflow-y: auto; padding: 24px 0;
}
.login-screen.show { opacity: 1; pointer-events: auto; }
.login-screen.hide { opacity: 0; pointer-events: none; }
.login-box {
  width: min(380px, 88vw);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  margin: auto;
}
.login-desc { color: var(--text-soft); font-size: .9rem; margin: 0 0 6px; }
.login-btn { width: 100%; justify-content: center; }
.login-btn svg { flex-shrink: 0; }
.login-aviso {
  font-size: .78rem; color: var(--text-soft);
  background: var(--dark-2); border: 1px solid var(--dark-3);
  border-radius: 8px; padding: 10px 12px;
}

/* ---- Lista de benefícios de criar conta (explica por que vale a pena
   fazer login, em vez de só pedir e-mail/senha sem contexto nenhum) ---- */
.login-beneficios {
  width: 100%; list-style: none; margin: 0 0 4px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: 10px;
  text-align: left;
}
.login-beneficios li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .82rem; line-height: 1.4; color: var(--text-soft);
}
.login-beneficio-icone { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
.login-beneficios a { color: var(--white); text-decoration: underline; }

/* ---- Abas "Entrar" / "Criar conta" ---- */
.login-tabs {
  display: flex; width: 100%; background: var(--dark-2);
  border: 1px solid var(--dark-3); border-radius: 8px; padding: 3px; gap: 3px;
}
.login-tab {
  flex: 1; background: none; border: none; color: var(--text-soft);
  font-weight: 700; font-size: .85rem; padding: 8px 0; border-radius: 6px;
}
.login-tab.is-active { background: var(--white); color: var(--black); }

.login-form {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.login-form[hidden] { display: none; }
.login-codigo-desc { color: var(--text-soft); font-size: .85rem; line-height: 1.4; margin: 0 0 4px; text-align: left; }
.login-codigo-input { text-align: center; letter-spacing: .35em; font-size: 1.1rem; font-weight: 700; }
.login-input {
  width: 100%; background: var(--dark-2); border: 1px solid var(--dark-3);
  color: var(--white); padding: 11px 14px; border-radius: 8px;
  font-size: .9rem; font-family: var(--font-body);
}
.login-input::placeholder { color: var(--text-soft); }
.login-input:focus { outline: none; border-color: #666; }

.login-erro {
  margin: 0; font-size: .8rem; color: #ff8a8a;
  background: rgba(255,60,60,.1); border: 1px solid rgba(255,80,80,.35);
  border-radius: 8px; padding: 8px 10px;
}
.login-link-esqueci {
  align-self: flex-end; background: none; border: none;
  color: var(--text-soft); font-size: .8rem; padding: 0; margin: -4px 0 2px;
  text-decoration: underline;
}
.login-link-esqueci:hover { color: var(--white); }

/* =========================================================
   CONFIGURAÇÕES (foto/nome da tela, telas, idioma, e-mail)
   ========================================================= */
.config-box {
  width: min(440px, 92vw); max-height: 88vh; overflow-y: auto;
  align-items: stretch; text-align: left; gap: 8px;
  background: var(--dark-1); border: 1px solid var(--dark-3);
  border-radius: 14px; padding: 28px 24px 24px; position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.config-fechar { position: absolute; top: 10px; right: 10px; }
.config-titulo { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 12px; }
.config-label {
  color: var(--text-soft); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; margin: 18px 0 8px;
}
.config-box > .config-label:first-of-type { margin-top: 4px; }
.config-form-inline { flex-direction: row; gap: 8px; }
.config-form-inline .login-input { flex: 1; }
.config-form-inline .login-btn { width: auto; padding-left: 18px; padding-right: 18px; }
.config-btn-tela { margin-top: 4px; }

.config-idioma-opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.config-idioma-btn {
  flex: 1; min-width: 130px; background: var(--dark-2); border: 1px solid var(--dark-3);
  color: var(--white); padding: 10px 12px; border-radius: 8px; font-size: .85rem;
}
.config-idioma-btn.is-active { border-color: var(--white); background: var(--dark-3); font-weight: 700; }

.config-radio-opcoes { display: flex; flex-direction: column; gap: 6px; margin: 2px 0; }
.config-radio-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-soft); }
.config-radio-label input { accent-color: var(--red); }

.config-privacidade-link { margin-top: 22px; text-decoration: none; }

/* =========================================================
   "QUEM ESTÁ ASSISTINDO" (telas/perfis)
   ========================================================= */
.perfis-box { width: min(520px, 92vw); margin: auto; text-align: center; }
.perfis-titulo { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 28px; }
.perfis-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 18px; justify-content: center;
}
.perfil-item {
  background: none; border: none; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 4px; cursor: pointer;
}
.perfil-item img {
  width: 96px; height: 96px; border-radius: 10px; object-fit: cover;
  border: 2px solid transparent; background: var(--dark-2);
  transition: border-color .15s ease;
}
.perfil-item:hover img { border-color: var(--white); }
.perfil-item span { font-size: .85rem; color: var(--text-soft); }
.perfil-item--add .perfil-item-add-icone {
  width: 96px; height: 96px; border-radius: 10px; background: var(--dark-2);
  border: 2px dashed var(--dark-3); display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--text-soft); line-height: 1;
}
.perfil-item--add:hover .perfil-item-add-icone { border-color: var(--white); color: var(--white); }
.perfis-erro {
  margin: 20px auto 0; max-width: 380px; font-size: .85rem; color: #ff8a8a;
  background: rgba(255,60,60,.1); border: 1px solid rgba(255,80,80,.35);
  border-radius: 8px; padding: 8px 10px;
}

/* =========================================================
   EDITAR PERFIL (janela de escolher ícone)
   ========================================================= */
.profile-modal {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.profile-modal[hidden] { display: none; }

.profile-modal-box {
  width: min(480px, 100%);
  max-height: 80vh;
  background: var(--dark-1); border: 1px solid var(--dark-3);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.profile-modal-header {
  display: flex; align-items: center; justify-content: space-between;
}
.profile-modal-header h2 {
  font-family: var(--font-display); font-size: 1.15rem; margin: 0;
}
.profile-modal-desc {
  color: var(--text-soft); font-size: .85rem; margin: 4px 0 14px;
}
.profile-icons-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 12px; overflow-y: auto; padding: 2px;
}
.profile-icons-msg { grid-column: 1 / -1; color: var(--text-soft); font-size: .85rem; }

.profile-icon-btn {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--dark-2); padding: 0;
}
.profile-icon-btn img { width: 100%; height: 100%; object-fit: cover; }
.profile-icon-btn.is-selected { border-color: var(--white); }


/* =========================================================
   CONTINUAR ASSISTINDO: botão de remover (×) e barra de progresso
   ========================================================= */
.card-remove {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.card:hover .card-remove, .card:focus-within .card-remove { opacity: 1; }
.card-remove:hover { background: rgba(0,0,0,.9); }
@media (hover: none) { .card-remove { opacity: 1; } }

.card-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,.25);
}
.card-progress-fill { height: 100%; background: var(--white); }

/* =========================================================
   SUGESTÕES NA BUSCA (lupa aberta, sem nada digitado ainda)
   ========================================================= */
.search-suggest-label {
  width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-soft); font-weight: 700; margin: 4px 0 2px;
}

/* =========================================================
   SELETOR PEQUENO PERSONALIZADO
   ========================================================= */
.cb-select { position: relative; }
.cb-select-btn {
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
  background: var(--dark-2); color: var(--white); border: 1px solid var(--dark-3);
  padding: 6px 10px; border-radius: 6px; font-size: .78rem; font-weight: 600;
  min-width: 92px; max-width: 150px; width: 100%;
}
.cb-select-btn .cb-select-value {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-select-btn svg {
  width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s ease;
}
.cb-select.open .cb-select-btn svg { transform: rotate(180deg); }
.cb-select-list {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  background: rgba(18,18,18,.98); border: 1px solid var(--dark-3); border-radius: 8px;
  min-width: 150px; max-height: 180px; overflow-y: auto;
  padding: 4px; margin: 0; list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.cb-select-list[hidden] { display: none; }
.cb-select-list li {
  padding: 8px 10px; border-radius: 6px; font-size: .8rem; color: var(--white);
  cursor: pointer;
}
.cb-select-list li:hover { background: var(--dark-3); }
.cb-select-list li.is-selected { background: rgba(255,255,255,.14); font-weight: 700; }

.season-select-row .cb-select-btn {
  padding: 8px 12px; font-size: .85rem; min-width: 140px; max-width: none;
}
.season-select-row .cb-select-list { left: 0; right: auto; min-width: 160px; }

/* =========================================================
   PRÓXIMO EPISÓDIO (só série — nunca em filme nem trailer)
   ========================================================= */
.watch-next-ep {
  position: absolute; right: 14px; bottom: 84px; z-index: 4;
}
.watch-next-ep[hidden] { display: none; }
.watch-next-ep-card {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(20,20,20,.94); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 8px 12px 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  max-width: 280px;
}
.watch-next-ep-thumb {
  position: relative; width: 84px; height: 48px; border-radius: 6px; overflow: hidden;
  background: var(--dark-3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.watch-next-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.watch-next-ep-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}
.watch-next-ep-play svg { width: 20px; height: 20px; color: var(--white); }
.watch-next-ep-info { min-width: 0; }
.watch-next-ep-label {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-soft); font-weight: 700;
}
.watch-next-ep-title {
  font-size: .8rem; font-weight: 700; color: var(--white); line-height: 1.2; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 160px;
}
.watch-next-ep-count { font-size: .72rem; color: var(--text-soft); margin-top: 3px; }
.watch-next-ep-close {
  position: absolute; top: -8px; right: -8px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.88); border: 1px solid rgba(255,255,255,.3); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.watch-next-ep-close svg { width: 12px; height: 12px; }

@media (max-width: 480px) {
  .watch-next-ep { right: 10px; bottom: 74px; }
  .watch-next-ep-card { max-width: 220px; padding: 6px 10px 6px 6px; gap: 8px; }
  .watch-next-ep-thumb { width: 64px; height: 38px; }
  .watch-next-ep-title { max-width: 118px; font-size: .74rem; }
  .watch-next-ep-label { font-size: .6rem; }
}
@media (min-width: 700px) {
  .watch-next-ep { bottom: 104px; }
}

/* =========================================================
   PÁGINA DE DETALHE — layout novo (Episódios/Sugestões/Extras/Detalhes
   em abas). Proposital: fica EXATAMENTE igual em celular, tablet e PC —
   por isso não tem nenhum @media aqui embaixo. Só a barra do topo do
   site (.site-header, logo/≡/busca) continua se adaptando normalmente.
   ========================================================= */
.dp-hero {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  max-width: 720px; margin: 0 auto;
}
.dp-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 2%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
}
.dp-selo {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}

.dp-page { max-width: 720px; margin: 0 auto; }
.dp-content { padding: 16px 16px 4px; }
.dp-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 7vw, 2rem);
  text-transform: uppercase; line-height: 1.05; margin: 0 0 8px;
}
.dp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dp-format-badge {
  border: 1px solid var(--text-soft); color: var(--text-soft);
  font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase;
}
.dp-meta { color: var(--text-soft); font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.dp-tagline { color: #dcdcdc; font-size: .92rem; line-height: 1.5; margin: 0 0 14px; }

.dp-continuar { margin-bottom: 14px; }
.dp-continuar-rotulo { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.dp-continuar-sinopse { color: #dcdcdc; font-size: .88rem; line-height: 1.45; margin: 0 0 8px; }
.dp-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.dp-progress-fill { height: 100%; background: var(--white); }
.dp-restam { color: var(--text-soft); font-size: .74rem; margin-top: 5px; }

.dp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dp-add-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); font-size: 1.2rem; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.dp-add-btn.is-on { background: rgba(255,255,255,.92); color: var(--black); }

.dp-tabs {
  display: flex; gap: 22px; padding: 18px 16px 0; margin-top: 6px;
  border-bottom: 1px solid var(--dark-3);
  overflow-x: auto;
}
.dp-tab {
  background: none; border: none; color: var(--text-soft); white-space: nowrap;
  font-weight: 700; font-size: .78rem; letter-spacing: .03em;
  padding: 0 0 12px; border-bottom: 2px solid transparent; flex-shrink: 0;
}
.dp-tab.is-active { color: var(--white); border-bottom-color: var(--white); }

.dp-tab-panel { padding: 18px 16px 40px; }
.dp-tab-panel[hidden] { display: none; }
.dp-vazio { color: var(--text-soft); font-size: .88rem; }

/* ---- Episódios: grid de 2 colunas, sempre (não vira 3+ em telas maiores) ---- */
.dp-classif-linha { color: var(--text-soft); font-size: .78rem; margin: -6px 0 14px; }
.dp-ep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.dp-ep-card { cursor: pointer; }
.dp-ep-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--dark-3); display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.dp-ep-thumb img, .dp-ep-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.dp-ep-thumb .thumb-loading {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white); border-radius: 50%; animation: spin .9s linear infinite;
}
.dp-ep-thumb .badge { position: absolute; top: 6px; left: 6px; }
.dp-ep-num-title { font-weight: 700; font-size: .85rem; line-height: 1.25; margin-bottom: 3px; }
.dp-ep-desc {
  color: var(--text-soft); font-size: .76rem; line-height: 1.4; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dp-ep-foot { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: .72rem; }
.dp-ep-card-locked { cursor: default; opacity: .6; }

/* ---- Sugestões: grid de 3 colunas, sempre ---- */
.dp-sugestoes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-sugestao-card { display: block; }
.dp-sugestao-thumb {
  width: 100%; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden;
  background: var(--dark-2); border: 1px solid var(--dark-3);
  display: flex; align-items: flex-end; padding: 6px;
}
.dp-sugestao-thumb span {
  font-family: var(--font-display); font-weight: 700; font-size: .68rem; color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,.7); line-height: 1.15;
}
.dp-sugestao-title {
  font-size: .68rem; color: var(--text-soft); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Extras (filme) — reaproveita .extra-card já existente ---- */
.dp-extras-scroll { padding-left: 0; padding-right: 0; }

/* ---- Detalhes ---- */
.dp-detalhes-sinopse { color: #dcdcdc; font-size: .92rem; line-height: 1.6; margin: 0 0 10px; }
.dp-aviso { color: var(--text-soft); font-size: .82rem; margin: 0 0 18px; }
.dp-detalhes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.dp-detalhes-item { margin-bottom: 14px; font-size: .84rem; }
.dp-detalhes-item:last-child { margin-bottom: 0; }
.dp-detalhes-label { display: block; color: var(--text-soft); font-size: .74rem; margin-bottom: 3px; }
.dp-elenco-list { display: flex; flex-direction: column; gap: 2px; }

/* =========================================================
   AVISO EM DESTAQUE (tela inicial) — publicado no painel de
   administração (/admin); ver js/aviso.js e /api/aviso
   ========================================================= */
.aviso-destaque[hidden] { display: none; }
.aviso-destaque {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #ffc107, #ffb300);
  color: #141414;
  border-bottom: 2px solid rgba(0,0,0,.25);
  box-shadow: 0 4px 18px rgba(255,193,7,.25);
}
.aviso-icone { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; }
.aviso-corpo { min-width: 0; flex: 1; }
.aviso-rotulo {
  display: block; font-size: .68rem; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; opacity: .7;
  margin-bottom: 2px;
}
.aviso-texto {
  margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.4;
  white-space: pre-line; overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .aviso-destaque { justify-content: center; padding: 14px 32px; }
  .aviso-corpo { flex: 0 1 900px; }
  .aviso-texto { font-size: 1rem; }
}

/* Links do painel de administração dentro dos menus de conta */
.header-avatar-menu-link { display: block; text-decoration: none; margin-top: 6px; }
.side-menu-auth-slot .side-menu-auth-btn + .side-menu-auth-btn { margin-top: 8px; justify-content: center; }


/* ===== Configurações: preferências de e-mail (chaves liga/desliga) ===== */
.config-emails { display: grid; gap: 2px; margin-bottom: 14px; }
.config-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; border-top: 1px solid var(--dark-3); }
.config-toggle:first-child { border-top: 0; }
.config-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.config-toggle-chave { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #3a3a3a; position: relative; transition: background .2s; margin-top: 2px; }
.config-toggle-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.config-toggle input:checked + .config-toggle-chave { background: var(--red); }
.config-toggle input:checked + .config-toggle-chave::after { transform: translateX(18px); }
.config-toggle input:focus-visible + .config-toggle-chave { outline: 2px solid #fff; outline-offset: 2px; }
.config-toggle-texto strong { display: block; font-size: .9rem; color: var(--white); }
.config-toggle-texto small { display: block; font-size: .76rem; color: var(--text-soft); line-height: 1.4; margin-top: 2px; }
#config-emails-wrap[hidden] { display: none; }

/* =========================================================
   PAINEL (js/painel.js) — chips de categoria na home, painel
   "Categorias", folha "Minha conta" e página "Conta".
   Só o modelo da Netflix, com as cores do Play Filmes.
   ========================================================= */

/* ---- Chips de categoria: linha própria entre o cabeçalho e o banner ---- */
.cat-chips { position: relative; z-index: 5; width: 100%; }
.cat-chips-inner {
  display: flex; gap: 8px; padding: 4px 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-chips-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 15px; border-radius: 999px;
  font: 600 .86rem var(--font-body); color: var(--white); white-space: nowrap;
  background: rgba(30,30,30,.62); border: 1px solid rgba(255,255,255,.28);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.cat-chip:hover { background: rgba(70,70,70,.75); }
.cat-chip.is-active { background: var(--white); color: var(--black); border-color: var(--white); }
.cat-chip svg { width: 18px; height: 18px; margin-right: -4px; }
/* Com os chips na tela (< 900px) o banner começa ABAIXO deles — nada por cima do filme */
@media (max-width: 899px) {
  body.has-chips .hero { margin-top: 0; }
}
@media (min-width: 900px) {
  /* no computador o menu do cabeçalho já tem os atalhos + "Categorias ▾" */
  .cat-chips { display: none; }
}

/* "Categorias ▾" no menu do cabeçalho (computador) */
.header-nav-categorias {
  display: inline-flex; align-items: center; gap: 2px; padding: 0;
  background: none; border: 0; cursor: pointer; opacity: .92;
  font: 500 .86rem var(--font-body); color: var(--text-soft); white-space: nowrap;
}
.header-nav-categorias:hover { color: var(--white); }
.header-nav-categorias svg { width: 18px; height: 18px; }

/* ---- Painel "Categorias" em tela cheia ---- */
.cat-panel {
  position: fixed; inset: 0; z-index: 945;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(8,8,8,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .22s ease;
}
.cat-panel[hidden] { display: none; }
.cat-panel.is-open { opacity: 1; }
.cat-panel-lista {
  flex: 1; width: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 120px;
}
.cat-panel-item {
  width: 100%; max-width: 420px; text-align: center;
  padding: 11px 12px; border-radius: 10px;
  font: 500 1.08rem var(--font-body); color: #9a9a9a;
  transition: color .15s ease;
}
.cat-panel-item:first-child { margin-top: auto; }
.cat-panel-item:last-child { margin-bottom: auto; }
.cat-panel-item:hover { color: var(--white); }
.cat-panel-item.is-atual { color: var(--white); font-weight: 800; font-size: 1.3rem; }
.cat-panel-fechar {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.55);
}
.cat-panel-fechar svg { width: 26px; height: 26px; }

/* ---- Folha "Minha conta" ---- */
.conta-sheet-overlay {
  position: fixed; inset: 0; z-index: 935;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); transition: background .25s ease;
}
.conta-sheet-overlay[hidden] { display: none; }
.conta-sheet-overlay.is-open { background: rgba(0,0,0,.66); }
.conta-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  overscroll-behavior: contain;
  background: #232323; border-radius: 22px 22px 0 0;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.conta-sheet-overlay.is-open .conta-sheet { transform: none; }
.conta-sheet-topo {
  position: sticky; top: 0; z-index: 1; background: #232323;
  padding: 24px 0 14px; text-align: center; touch-action: none;
}
.conta-sheet-alca {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 4px; background: #6b6b6b;
}
.conta-sheet-titulo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0; }
.conta-sheet-x {
  position: absolute; right: 0; top: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.conta-sheet-x svg { width: 20px; height: 20px; }

.conta-perfil-card {
  position: relative; background: #2d2d2d; border-radius: 22px;
  padding: 22px 16px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.conta-perfil-foto { width: 78px; height: 78px; border-radius: 15px; object-fit: cover; background: var(--dark-3); }
.conta-perfil-nome { font-size: 1.05rem; }
.conta-perfil-editar {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  background: none; border: 0; color: var(--white); border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.conta-perfil-editar:hover { background: rgba(255,255,255,.1); }
.conta-perfil-editar svg { width: 22px; height: 22px; }

.conta-outros { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 20px; margin: 22px 0 6px; }
.conta-outro {
  width: 78px; background: none; border: 0; color: var(--white); cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600;
}
.conta-outro img, .conta-outro-mais {
  width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: var(--dark-3);
  transition: transform .15s ease;
}
.conta-outro:hover img, .conta-outro:hover .conta-outro-mais { transform: scale(1.06); }
.conta-outro-mais { display: flex; align-items: center; justify-content: center; background: #3a3a3a; font-size: 1.8rem; font-weight: 400; }
.conta-outro span:last-child { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.conta-gerenciar-wrap { display: flex; justify-content: center; margin: 20px 0 22px; }
.conta-gerenciar {
  background: #2d2d2d; color: var(--white); border: 0; border-radius: 999px;
  padding: 13px 26px; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.conta-gerenciar:hover { background: #383838; }

.conta-menu { display: flex; flex-direction: column; gap: 8px; }
.conta-menu-linha {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; border: 0; border-radius: 14px; background: #2d2d2d;
  color: var(--white); font: 600 1rem var(--font-body); text-align: left;
  text-decoration: none; cursor: pointer;
}
.conta-menu-linha:hover { background: #383838; }
.conta-menu-ico { display: flex; }
.conta-menu-ico svg { width: 24px; height: 24px; }
.conta-menu-seta { margin-left: auto; color: #b3b3b3; display: flex; }
.conta-menu-seta svg { width: 20px; height: 20px; }

@media (min-width: 700px) {
  .conta-sheet-overlay { align-items: center; }
  .conta-sheet { border-radius: 22px; max-height: 88vh; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .conta-sheet-overlay.is-open .conta-sheet { opacity: 1; }
  .conta-sheet-alca { display: none; }
}

/* ---- Página "Conta" ---- */
.conta-page {
  position: fixed; inset: 0; z-index: 940; background: var(--black);
  overflow-y: auto; overscroll-behavior: contain;
}
.conta-page[hidden] { display: none; }
.conta-topbar {
  position: sticky; top: 0; z-index: 2; height: 60px; padding: 0 12px;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  background: rgba(11,12,16,.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.conta-topbar .logo { justify-self: center; }
.conta-wrap { max-width: 640px; margin: 0 auto; padding: 26px 20px 90px; }
.conta-h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0; }
.conta-sub { color: var(--text-soft); font-size: .95rem; line-height: 1.5; margin: 8px 0 8px; }
.conta-secao { font-size: .95rem; font-weight: 600; color: var(--text-soft); margin: 28px 0 10px; }
.conta-secao--perigo { color: #ff8a8a; }

.conta-card {
  background: var(--dark-2); border: 1px solid var(--dark-3);
  border-radius: 14px; overflow: hidden;
}
.conta-card-topo { padding: 18px 16px 16px; }
.conta-selo {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(90deg, #1d3fa8, var(--blue-accent));
  font-size: .78rem; font-weight: 700; color: var(--white);
}
.conta-plano { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.conta-plano-sub { margin-top: 4px; color: var(--text-soft); font-size: .88rem; }

.conta-linha {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 16px; background: none; border: 0; border-top: 1px solid var(--dark-3);
  color: var(--white); text-align: left; font-family: var(--font-body);
}
.conta-card > .conta-linha:first-child { border-top: 0; }
button.conta-linha { cursor: pointer; }
button.conta-linha:hover { background: var(--dark-3); }
.conta-linha-ico { display: flex; color: var(--text-soft); flex: none; }
.conta-linha-ico svg { width: 22px; height: 22px; }
.conta-linha-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.conta-linha-txt strong { font-size: .95rem; }
.conta-linha-txt small { font-size: .84rem; color: var(--text-soft); overflow-wrap: anywhere; }
.conta-linha-seta { display: flex; color: var(--text-soft); flex: none; }
.conta-linha-seta svg { width: 20px; height: 20px; }

.conta-card--perigo { border-color: rgba(229,9,20,.4); padding: 16px; }
.conta-perigo-txt { margin: 0 0 14px; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.conta-perigo-txt--aviso { margin: 0; }
.conta-btn-perigo {
  background: transparent; color: #ff6b6b; border: 1px solid rgba(255,90,90,.65);
  justify-content: center; cursor: pointer;
}
.conta-btn-perigo:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.conta-btn-perigo:disabled { opacity: .6; cursor: default; }
.conta-page .profile-modal .conta-btn-perigo { background: var(--red); border-color: var(--red); color: var(--white); }
.conta-page .profile-modal .conta-btn-perigo:hover { background: #ff1c26; }
.conta-page .btn-ghost { color: var(--white); }
.conta-page .profile-modal-box { overflow-y: auto; }
.conta-page .profile-modal .login-form { margin-top: 6px; }

.conta-excluida { text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.conta-excluida-ico { color: #4cd964; display: flex; }
.conta-excluida-ico svg { width: 64px; height: 64px; }
.conta-excluida .login-btn { max-width: 320px; margin-top: 10px; }

/* ---- Gêneros: códigos de busca ---- */
.categoria-codigo { color: var(--text-soft); font-size: .88rem; margin: -8px 0 18px; }
.categoria-codigo strong { color: var(--white); letter-spacing: .06em; }

.cat-panel-sep {
  width: 100%; max-width: 420px; margin: 18px 0 4px; padding-top: 14px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777;
}
.cat-panel-cod { margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #666; }
.cat-panel-item.is-atual .cat-panel-cod { color: #aaa; }

.search-generos { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.search-genero-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font: 600 .8rem var(--font-body);
  color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
}
.search-genero-chip:hover { background: rgba(255,255,255,.16); }
.search-genero-chip small { color: var(--text-soft); font-weight: 700; letter-spacing: .05em; }


/* =========================================================
   HOME — layout baseado na nova referência PlayFilmes
   Mantido escopado à página inicial para não alterar as páginas internas.
   ========================================================= */
.home-redesign {
  --home-orange: #ff6a00;
  background: #080a0c;
}
.home-redesign .site-header {
  z-index: 62;
  background: rgba(8,10,12,.94);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.home-redesign .logo span { color: var(--home-orange); }
.home-redesign .header-nav a.active {
  color: #111;
  background: var(--home-orange);
  border-radius: 5px;
  padding: 8px 14px;
}
.home-redesign .header-nav { gap: 18px; }
.home-redesign .header-nav a { padding: 8px 10px; }
.home-redesign .header-nav a.active { padding: 8px 14px; }
.home-redesign .hero {
  margin-top: 0;
  aspect-ratio: auto;
  height: clamp(330px, 34vw, 560px);
  max-height: calc(100vh - var(--header-h) - 30px);
}
.home-redesign .hero-img { background-size: cover !important; background-position: center 38% !important; }
.home-redesign .hero-slide::after {
  background:
    linear-gradient(0deg, rgba(0,0,0,.78), transparent 48%),
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.66) 33%, rgba(0,0,0,.1) 72%),
    linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%);
}
.home-redesign .hero-content {
  top: 0; bottom: 0; max-width: 620px;
  padding: 38px clamp(24px, 4vw, 68px) 66px;
  justify-content: center; gap: 10px;
}
.home-redesign .hero-title { font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: -.025em; }
.home-redesign .hero-badge-wrap .badge { background: var(--home-orange); color: #17100b; border-color: var(--home-orange); }
.home-redesign .hero-meta { color: #e1e1e1; }
.home-redesign .hero-sinopse-wrap { max-width: 470px; }
.home-redesign .hero-actions .btn-solid { background: var(--home-orange); color: #17100b; }
.home-redesign .hero-actions .btn-ghost { background: rgba(255,255,255,.15); color: white; border-color: rgba(255,255,255,.22); }
.home-redesign .hero-dots { padding-left: clamp(24px, 4vw, 68px); }
.home-redesign .hero-progress-fill { background: var(--home-orange); }
.home-redesign .catalog { padding-top: 8px; padding-bottom: 100px; }
.home-redesign .row-block { margin-top: 22px; }
.home-redesign .row-title {
  color: #f5f5f5; font-family: var(--font-body); font-size: 1.05rem;
  padding-bottom: 8px; letter-spacing: -.02em;
}
.home-redesign .row-title::before { display: none; }
.home-redesign .row-title-link { width: auto; justify-content: space-between; }
.home-redesign .row-title-link::after {
  content: "Ver tudo  ›"; margin-left: auto; color: #c6c6c6;
  font-size: .76rem; font-weight: 500;
}
.home-redesign .row-title-chevron { display: none; }
.home-redesign .row-scroll { gap: 10px; }
.home-redesign .card-poster { border-color: rgba(255,255,255,.13); border-radius: 6px; }
.home-redesign .card:hover .card-poster { border-color: rgba(255,255,255,.38); }
.home-redesign .card-caption { color: #e0e0e0; }
.home-redesign .hub-row { display: none; }
.home-redesign .home-rail { display: none; }
.home-redesign .home-bottom-nav { display: none; }
.home-redesign .cat-chips { display: none !important; }

/* Os cards deitados são banners 16:9; cards de filmes/séries permanecem pôster 2:3. */
.home-redesign .row-block--banners .card { width: clamp(220px, 29vw, 340px); }
.home-redesign .row-block--banners .card-poster {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  align-items: flex-end; background-size: cover !important; background-position: center !important;
}
.home-redesign .row-block--banners .card-caption { font-size: .76rem; margin-top: 5px; }
.home-redesign .row-block--banners .card-poster::after {
  content: ""; position: absolute; inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.68)); pointer-events: none;
}
.home-redesign .row-block--banners .badge-stack,
.home-redesign .row-block--banners .badge { z-index: 2; }
.home-redesign .row-block--banners .card-poster > span { position: relative; z-index: 2; }
.home-redesign .row-block--banners .card-poster > .banner-art {
  position: absolute; inset: 0; z-index: 0; display: block;
  background-color: var(--dark-2); background-position: center; background-size: cover;
}
.home-redesign .row-block--banners .card-banner .card-poster { background-color: var(--dark-2); }
.home-redesign .row-block--banners .card-banner .card-poster::after { z-index: 1; }
.home-redesign .row-block--banners .card-banner .badge { z-index: 2; }

@media (min-width: 900px) {
  .home-redesign { padding-left: 132px; }
  .home-redesign .site-header { padding: 0 32px; }
  .home-redesign .home-rail {
    position: fixed; z-index: 61; left: 0; top: var(--header-h); bottom: 0;
    width: 132px; display: flex; flex-direction: column; gap: 5px;
    padding: 16px 10px 14px; background: #0a0c0e;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .home-redesign .home-rail a {
    min-height: 42px; display: flex; align-items: center; gap: 11px;
    padding: 0 10px; border-radius: 7px; color: #c3c8cc;
    font-size: .76rem; white-space: nowrap; transition: color .18s, background .18s;
  }
  .home-redesign .home-rail a svg { width: 19px; height: 19px; flex: 0 0 19px; }
  .home-redesign .home-rail a:hover,
  .home-redesign .home-rail a.is-active { color: var(--home-orange); background: rgba(255,106,0,.11); }
  .home-redesign .home-rail a.is-active { border-bottom: 1px solid var(--home-orange); }
  .home-redesign .home-rail-settings { margin-top: auto; }
  .home-redesign .hero { height: clamp(320px, 32vw, 510px); }
  .home-redesign .row-title { padding-left: 26px; padding-right: 26px; }
  .home-redesign .row-scroll { padding-left: 26px; scroll-padding-left: 26px; }
  .home-redesign .row-scroll::after { flex-basis: 26px; }
  .home-redesign .genre-section-title,
  .home-redesign .genre-subrow-title { padding-left: 26px; padding-right: 26px; }
}

@media (max-width: 699px) {
  .home-redesign .site-header {
    height: 58px; padding: 0 12px; background: rgba(8,10,12,.96);
  }
  .home-redesign .logo { font-size: 1.2rem; }
  .home-redesign .header-nav { display: none; }
  .home-redesign .hero {
    height: auto; max-height: none; aspect-ratio: auto;
    margin-top: 0; overflow: hidden;
  }
  .home-redesign .hero-track { height: auto; }
  .home-redesign .hero-slide { min-height: 0; }
  .home-redesign .hero-img { aspect-ratio: 16 / 9; }
  .home-redesign .hero-slide::after { display: block; }
  .home-redesign .hero-content {
    position: absolute; left: 0; right: 0; top: auto; bottom: 34px;
    max-width: none; padding: 12px 16px 0; margin: 0;
    justify-content: flex-end; gap: 5px;
  }
  .home-redesign .hero-title { font-size: clamp(1.55rem, 7vw, 2.4rem); }
  .home-redesign .hero-sinopse-wrap { display: none; }
  .home-redesign .hero-actions { margin-top: 5px; gap: 8px; }
  .home-redesign .hero-actions .btn { padding: 9px 10px; font-size: .78rem; }
  .home-redesign .hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; padding: 0 16px; }
  .home-redesign .catalog { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .home-redesign .row-block { margin-top: 18px; }
  .home-redesign .row-title { font-size: .98rem; padding-left: 16px; padding-right: 16px; }
  .home-redesign .row-scroll { padding-left: 16px; scroll-padding-left: 16px; gap: 9px; }
  .home-redesign .row-scroll::after { flex-basis: 16px; }
  .home-redesign .row-block--banners .card { width: min(78vw, 320px); }
  .home-redesign .row-block--banners .card-poster { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .home-redesign .home-bottom-nav {
    position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-around; gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8,10,12,.97); border-top: 1px solid rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .home-redesign .home-bottom-nav a {
    min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #bfc4c8; font-size: .64rem; padding: 2px 5px;
  }
  .home-redesign .home-bottom-nav a svg { width: 20px; height: 20px; }
  .home-redesign .home-bottom-nav a.is-active { color: var(--home-orange); }
  .home-redesign .site-footer { margin-bottom: 12px; }
}
