/* ==========================================================================
   MARCELLIX — Plataforma de streaming
   Direção visual: Netflix Design System 2024 (tema escuro)
   Superfícies:  base #181818 · elevado/dropdown #020202 · seleção #2A2A2A
   Acentos da marca (estritos): Rosa #FF5FCC · Vermelho #FF2525
   Tipografia: Hanken Grotesk
   ========================================================================== */

/* ---------- Fontes locais (Netflix Sans) ---------- */
@font-face { font-family: "Netflix Sans"; src: url("../fonts/NetflixSans-Light.otf")   format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Netflix Sans"; src: url("../fonts/NetflixSans-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Netflix Sans"; src: url("../fonts/NetflixSans-Medium.otf")  format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Netflix Sans"; src: url("../fonts/NetflixSans-Bold.otf")    format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Superfícies */
  --bg:            #181818;
  --bg-deep:       #020202;   /* dropdowns, overlays, fundos profundos */
  --surface:       #2A2A2A;   /* caixas de opção / seleção / inputs */
  --surface-2:     #333333;
  --line:          rgba(255, 255, 255, .12);

  /* Marca */
  --pink:          #FF5FCC;
  --red:           #FF2525;
  --grad-hot:      linear-gradient(105deg, #FF5FCC 0%, #FF2525 100%);

  /* Texto */
  --text:          #ffffff;
  --text-dim:      rgba(255, 255, 255, .72);
  --text-mute:     rgba(255, 255, 255, .48);

  /* Botões Netflix */
  --btn-secondary: rgba(90, 90, 90, .55);
  --btn-secondary-h: rgba(120, 120, 120, .5);

  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 3px 10px rgba(0, 0, 0, .6);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, .75);
  --ring:          0 0 0 2px var(--pink);

  --font: "Netflix Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Bebas Neue", "Netflix Sans", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.25, .46, .3, 1);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}
::selection { background: var(--pink); color: #000; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
img { display: block; max-width: 100%; }

/* ---------- Splash de restauração de sessão ---------- */
#splash {
  position: fixed; inset: 0; z-index: 500; background: #000;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
}
#splash img { height: 140px; width: auto; max-width: 60%; filter: drop-shadow(0 8px 22px rgba(0,0,0,.6)); }
#splash .spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.16); border-top-color: var(--pink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
html.restoring #splash { display: flex; }
html.restoring #lock { display: none !important; }

/* ==========================================================================
   BOTÕES  (Netflix)
   ========================================================================== */
.btn {
  font-family: inherit; font-weight: 600; cursor: pointer;
  border: none; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.5rem; font-size: 1rem; line-height: 1;
  transition: background .2s var(--ease), opacity .2s, transform .12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { flex-shrink: 0; }

.btn-play {                     /* CTA branco (Assistir) */
  background: #fff; color: #000;
}
.btn-play:hover { background: rgba(255, 255, 255, .78); }

.btn-secondary {                /* cinza translúcido (Mais informações) */
  background: var(--btn-secondary); color: #fff;
}
.btn-secondary:hover { background: var(--btn-secondary-h); }

.btn-brand {                    /* rosa da marca (Entrar) */
  background: var(--pink); color: #2a0018; font-weight: 700;
}
.btn-brand:hover { background: #ff7ad6; }
.btn-brand:disabled { opacity: .6; cursor: default; }

.btn-icon {                     /* botão circular (play/add/expand) */
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  background: rgba(42, 42, 42, .6); color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .12s;
}
.btn-icon:hover { border-color: #fff; background: rgba(60, 60, 60, .8); transform: scale(1.06); }
.btn-icon.solid { background: #fff; color: #000; border-color: #fff; }
.btn-icon.solid:hover { background: rgba(255,255,255,.8); }

:focus-visible { outline: none; box-shadow: var(--ring); }

/* ==========================================================================
   TELA DE BLOQUEIO  (estilo tela de entrada Netflix)
   ========================================================================== */
#lock {
  min-height: 100vh; min-height: 100svh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem calc(1.25rem + env(safe-area-inset-right)) 2rem calc(1.25rem + env(safe-area-inset-left));
  overflow-y: auto;
}
#lock::before {           /* backdrop cinematográfico */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60vw 60vw at 78% 18%, rgba(255, 37, 37, .28), transparent 60%),
    radial-gradient(55vw 55vw at 20% 88%, rgba(255, 95, 204, .22), transparent 62%),
    #000;
}
#lock::after {            /* vinheta */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.85) 100%);
}
.lock-card {
  position: relative; z-index: 2; width: min(460px, 100%);
  background: rgba(0, 0, 0, .72); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 3rem 3rem 2.4rem;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
  animation: rise .6s var(--ease) both; text-align: center;
}
.lock-logo { display: block; height: 150px; width: auto; max-width: 72%; margin: 0 auto 1.6rem; filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.lock-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text-mute); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.lock-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.lock-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.4rem); font-weight: 400; line-height: .9;
  letter-spacing: .01em; margin-bottom: .5rem; text-transform: uppercase;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lock-tagline { color: var(--text-dim); font-size: 1rem; margin-bottom: 2rem; }
.lock-hint { color: var(--text-mute); font-size: .85rem; margin-bottom: .7rem; font-weight: 600; }

.field { position: relative; margin-bottom: 1rem; }
.field input {
  width: 100%; background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius); color: #fff; font-family: inherit;
  font-size: 1.05rem; font-weight: 500; padding: 1.05rem 1rem;
  transition: border-color .2s, background .2s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus { outline: none; background: #333; border-color: rgba(255,255,255,.4); }
.lock-card .btn-brand { width: 100%; padding: 1rem; margin-top: .3rem; }

.lock-error {
  color: #ff8a8a; font-weight: 600; font-size: .9rem; margin-bottom: 1rem;
  min-height: 1.1em; opacity: 0; transition: opacity .3s;
}
.lock-error.show { opacity: 1; }
.lock-error.shake { animation: shake .4s; }
.lock-note { color: var(--text-mute); font-size: .78rem; margin-top: 1.6rem; line-height: 1.5; }

/* ==========================================================================
   NAV BAR
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  transition: background .3s var(--ease);
}
.nav.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav-left { display: flex; align-items: center; gap: 1.6rem; }
.logo { display: flex; align-items: center; text-decoration: none; user-select: none; }
.logo-h { height: 26px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
@media (max-width: 480px) { .logo-h { height: 22px; } }
.nav-tag {
  color: var(--text-mute); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}
@media (max-width: 640px) { .nav-tag { display: none; } }

/* Avatar + dropdown */
.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: .5rem; background: none; border: none;
  cursor: pointer; padding: .3rem; color: #fff; font-family: inherit;
}
.avatar {
  width: 34px; height: 34px; border-radius: 5px; object-fit: cover;
  background: var(--grad-hot); display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: .95rem; overflow: hidden;
}
.profile-caret { transition: transform .25s var(--ease); color: #fff; }
.profile.open .profile-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); right: 0; width: 240px;
  background: var(--bg-deep); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dropdown::before {   /* seta */
  content: ""; position: absolute; top: -6px; right: 16px; width: 12px; height: 12px;
  background: var(--bg-deep); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.profile.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dd-head {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem; margin-bottom: .3rem;
  border-bottom: 1px solid var(--line);
}
.dd-head .avatar { width: 40px; height: 40px; }
.dd-head .who { font-weight: 700; font-size: .9rem; }
.dd-head .who small { display: block; color: var(--text-mute); font-weight: 500; font-size: .74rem; margin-top: .15rem; }
.dd-item {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 500; text-align: left;
  padding: .7rem .6rem; border-radius: var(--radius); transition: background .15s, color .15s;
}
.dd-item:hover { background: var(--surface); color: #fff; }
.dd-item svg { flex-shrink: 0; opacity: .8; }
.dd-sep { height: 1px; background: var(--line); margin: .3rem 0; }

/* Grade de seleção de avatar (dentro do dropdown) */
.avatar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .6rem;
}
.avatar-grid button {
  aspect-ratio: 1; border-radius: 5px; border: 2px solid transparent; cursor: pointer;
  background: var(--surface); overflow: hidden; padding: 0;
  transition: border-color .15s, transform .12s;
}
.avatar-grid button:hover { transform: scale(1.06); border-color: rgba(255,255,255,.5); }
.avatar-grid button.active { border-color: var(--pink); }
.avatar-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: flex-end;
  padding: 0 clamp(1rem, 4vw, 3.5rem) clamp(2rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 20%;
  background-color: #000;
}
.hero-bg::after {  /* fades para o preto da base */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24,24,24,.95) 0%, rgba(24,24,24,.55) 32%, transparent 60%),
    linear-gradient(0deg, var(--bg) 6%, transparent 42%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; animation: rise .7s var(--ease) both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
  color: var(--text-dim); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem;
}
.hero-eyebrow .mk { height: 22px; width: auto; display: block; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6rem); line-height: .86;
  letter-spacing: .015em; margin-bottom: 1rem; text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.6); text-wrap: balance;
}
.hero-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-size: .9rem; color: var(--text-dim); }
.hero-rating {
  border: 1px solid rgba(255,255,255,.4); padding: .1rem .45rem; border-radius: 3px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.hero-progress { display: flex; align-items: center; gap: .7rem; color: var(--text-dim); font-size: .85rem; }
.hero-progress .track { width: 130px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.28); overflow: hidden; }
.hero-progress .track > i { display: block; height: 100%; background: var(--grad-hot); }
.hero-desc {
  font-size: 1.05rem; line-height: 1.5; color: rgba(255,255,255,.86); margin-bottom: 1.6rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 540px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* lado a lado quando cabe; empilhados ocupam 100% — sempre a mesma largura */
.hero-actions .btn { flex: 1 1 190px; padding: .85rem 2rem; font-size: 1.05rem; font-weight: 700; }

/* ==========================================================================
   SLIDERS (fileiras horizontais)
   ========================================================================== */
.rows { position: relative; z-index: 3; margin-top: -6vh; padding-bottom: 4rem; }
.row { margin: 0 0 2.4rem; }
.row-head {
  display: flex; align-items: baseline; gap: .8rem;
  padding: 0 clamp(1rem, 4vw, 3.5rem); margin-bottom: .8rem;
}
.row-head h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.row-head .sub { color: var(--text-mute); font-size: .9rem; font-weight: 500; }

.slider { position: relative; }
.slider-track {
  display: flex; gap: .55rem; overflow-x: auto; overflow-y: hidden;
  padding: 12px clamp(1rem, 4vw, 3.5rem); scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-arrow {
  position: absolute; top: 12px; bottom: 12px; width: clamp(2.4rem, 4vw, 3.5rem);
  z-index: 20; border: none; cursor: pointer; color: #fff;
  background: rgba(2, 2, 2, .55); display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(2, 2, 2, .85); }
.slider-arrow svg { width: 30px; height: 30px; transition: transform .15s; }
.slider-arrow:hover svg { transform: scale(1.25); }
.slider-arrow.left { left: 0; }
.slider-arrow.right { right: 0; }
@media (hover: none) { .slider-arrow { display: none; } }

/* Card de episódio */
.ep {
  position: relative; flex: 0 0 auto;
  width: clamp(220px, 26vw, 300px); aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface); border: none; padding: 0;
  transition: transform .25s var(--ease);
  animation: fade .5s var(--ease) both;
}
.ep img { width: 100%; height: 100%; object-fit: cover; }
.ep .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f2f2f, #1c1c1c);
  color: var(--text-mute); font-weight: 800; font-size: 2.4rem; letter-spacing: -.04em;
}
.ep-num {
  position: absolute; left: 8px; top: 6px; z-index: 2; font-weight: 800;
  font-size: .78rem; letter-spacing: .04em; color: #fff;
  background: rgba(2,2,2,.6); padding: .18rem .5rem; border-radius: 4px; backdrop-filter: blur(4px);
}
.ep-check {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 22px; height: 22px;
  border-radius: 50%; background: var(--grad-hot); display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}
.ep-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.6rem .7rem .5rem; font-weight: 600; font-size: .92rem; color: #fff;
  background: linear-gradient(0deg, rgba(2,2,2,.9), transparent);
  opacity: 0; transition: opacity .2s;
}
.ep:hover .ep-caption { opacity: 1; }
.ep-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255,255,255,.28); }
.ep-bar > i { display: block; height: 100%; background: var(--grad-hot); }

/* ==========================================================================
   HOVER PREVIEW (popup flutuante — desktop)
   ========================================================================== */
#hoverPreview {
  position: fixed; z-index: 90; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow-lg);
  opacity: 0; transform: scale(.86); transform-origin: center bottom;
  pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
#hoverPreview.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.pv-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface); }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,24,24,.55), transparent 50%); }
.pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 2; }
.pv-bar > i { display: block; height: 100%; background: var(--grad-hot); }
.pv-body { padding: .9rem 1rem 1.1rem; }
.pv-actions { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.pv-actions .spacer { flex: 1; }
.pv-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.pv-meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-dim); flex-wrap: wrap; }
.pv-meta .tag-watched { color: #7ee081; font-weight: 600; }
.pv-syn { color: var(--text-mute); font-size: .84rem; line-height: 1.4; margin-top: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: none) { #hoverPreview { display: none !important; } }

/* ==========================================================================
   CARD DE SÉRIE (fileira "Séries" na home)
   ========================================================================== */
.series-card {
  position: relative; flex: 0 0 auto; width: clamp(150px, 20vw, 190px);
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface); border: none; padding: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: fade .5s var(--ease) both;
}
.series-card:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); z-index: 5; }
.series-card img { width: 100%; height: 100%; object-fit: cover; }
.series-card .ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(150deg, #3a2233, #1c1c1c);
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--pink); line-height: .95;
}
.series-card .sc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .55rem;
  background: linear-gradient(0deg, rgba(2,2,2,.9), transparent); color: #fff;
  font-weight: 700; font-size: .92rem; opacity: 0; transition: opacity .2s;
}
.series-card:hover .sc-cap { opacity: 1; }

/* ==========================================================================
   VIEW DE SÉRIE (detalhe: banner + temporadas + episódios)
   ========================================================================== */
.sv { animation: fade .35s var(--ease); }
.sv-hero {
  position: relative; min-height: 68vh; display: flex; align-items: flex-end;
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(2rem, 5vh, 3.5rem); overflow: hidden;
}
.sv-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-color: #000; }
.sv-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* degradê preto da esquerda p/ direita, até ~metade, p/ legibilidade */
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 26%, rgba(0,0,0,0) 52%),
    linear-gradient(0deg, var(--bg) 4%, transparent 45%);
}
.sv-back {
  position: absolute; top: calc(var(--nav-h) + 10px); left: clamp(1rem, 5vw, 4rem); z-index: 4;
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: rgba(2,2,2,.55); border: 1px solid var(--line); color: #fff;
  font-family: inherit; font-weight: 600; font-size: .9rem; padding: .5rem .9rem;
  border-radius: 999px; backdrop-filter: blur(6px); transition: background .2s;
}
.sv-back:hover { background: rgba(2,2,2,.85); }
.sv-inner { position: relative; z-index: 2; max-width: 640px; animation: rise .6s var(--ease) both; }
.sv-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: .86; letter-spacing: .015em;
  margin-bottom: .9rem; text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.sv-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--text-dim); font-size: .92rem; font-weight: 500; }
.sv-meta .rating { border: 1px solid rgba(255,255,255,.4); padding: .1rem .45rem; border-radius: 3px; font-size: .78rem; font-weight: 600; }
.sv-meta .genre { color: var(--text-mute); }
.sv-syn { color: rgba(255,255,255,.86); font-size: 1.02rem; line-height: 1.5; margin-bottom: 1.5rem; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sv-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.sv-actions .btn { flex: 1 1 190px; padding: .85rem 2rem; font-size: 1.05rem; font-weight: 700; }

.sv-body { padding: 1.5rem clamp(1rem, 5vw, 4rem) 5rem; }
.sv-eptop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.sv-eptop h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }

/* Dropdown de temporada (caixa de seleção #2A2A2A) */
.season-select { position: relative; }
.season-dd {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface); color: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: .65rem 2.5rem .65rem 1.1rem; transition: border-color .2s, background .2s;
}
.season-dd:hover { background: var(--surface-2); }
.season-dd:focus { outline: none; border-color: rgba(255,255,255,.5); }
.season-caret { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: #fff; }

/* Lista de episódios (linha estilo Netflix) */
.epi-list { display: flex; flex-direction: column; }
.epi-row {
  display: grid; grid-template-columns: 42px 168px 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1.1rem .6rem; border-bottom: 1px solid var(--line); cursor: pointer;
  border-radius: var(--radius); transition: background .15s; text-align: left;
  background: none; border-left: none; border-right: none; border-top: none; color: inherit; font-family: inherit;
  width: 100%; animation: fade .4s var(--ease) both;
}
.epi-row:hover { background: var(--surface); }
.epi-idx { font-size: 1.5rem; font-weight: 700; color: var(--text-mute); text-align: center; }
.epi-thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.epi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.epi-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-mute); font-weight: 800; font-size: 1.4rem; }
.epi-thumb .play-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2,2,2,.35); opacity: 0; transition: opacity .2s; color: #fff; }
.epi-row:hover .epi-thumb .play-ov { opacity: 1; }
.epi-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.28); }
.epi-thumb .bar > i { display: block; height: 100%; background: var(--pink); }
.epi-thumb .check { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #2a0018; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.epi-info h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.epi-info p { color: var(--text-mute); font-size: .88rem; line-height: 1.4; margin-top: .25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.epi-dur { color: var(--text-dim); font-size: .88rem; font-weight: 500; white-space: nowrap; }

@media (max-width: 640px) {
  .epi-row { grid-template-columns: 30px 120px 1fr; gap: .7rem; padding: .8rem .3rem; }
  .epi-dur { display: none; }
  .epi-idx { font-size: 1.1rem; }
  /* mobile: banner usa a imagem do card (quadrada), com altura confortável */
  .sv-hero { min-height: 76vh; padding-bottom: 1.4rem; }
  .sv-bg { background-position: center; }
  .sv-bg::after {
    background: linear-gradient(0deg, var(--bg) 2%, rgba(0,0,0,.5) 30%, rgba(0,0,0,0) 62%);
  }
  .sv-title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .sv-syn { -webkit-line-clamp: 2; }
}

/* Aviso de configuração pendente */
.notice {
  margin: 1rem clamp(1rem, 4vw, 3.5rem) 2rem; padding: 1rem 1.2rem;
  background: var(--surface); border-left: 3px solid var(--red); border-radius: var(--radius);
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
}
.notice b { color: #fff; }

/* ==========================================================================
   PLAYER
   ========================================================================== */
#player {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s var(--ease);
}
.player-top, .player-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
}
.player-top { background: linear-gradient(180deg, rgba(0,0,0,.8), transparent); }
.player-top .lbl { color: var(--pink); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.player-top h2 { font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.player-close {
  border: none; cursor: pointer; background: rgba(42,42,42,.6); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.player-close:hover { background: var(--red); transform: rotate(90deg); }

.player-stage { display: grid; place-items: center; padding: 0 clamp(1rem, 4vw, 3rem); min-height: 0; }
.player-frame {
  width: min(1180px, 100%); aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; background: #000; box-shadow: var(--shadow-lg); position: relative;
}
.player-frame video, .player-frame iframe { width: 100%; height: 100%; display: block; border: none; background: #000; }
.player-fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: var(--text-dim); padding: 2rem; }
.player-fallback.show { display: grid; }

.player-bottom .autoplay { display: flex; align-items: center; gap: .7rem; color: var(--text-dim); font-weight: 600; font-size: .9rem; }
.switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; border-radius: 999px; background: var(--surface); cursor: pointer; border: none; transition: background .25s; }
.player-bottom .autoplay { min-width: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--pink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.next-toast {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 6.4rem; z-index: 5;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .9rem 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem;
  max-width: 360px; transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.next-toast.show { transform: none; opacity: 1; pointer-events: auto; }
.next-toast .thumb { width: 72px; height: 44px; border-radius: 5px; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.next-toast .k { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.next-toast .t { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; line-height: 1.1; margin-top: .1rem; }
.next-toast .go { border: none; cursor: pointer; background: #fff; color: #000; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; transition: background .2s, transform .15s; }
.next-toast .go:hover { transform: scale(1.08); }

/* Modal de instruções de instalação (PWA) */
.ih {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); animation: fade .2s var(--ease);
}
.ih-card {
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; max-width: 360px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.ih-icon { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 1.1rem; box-shadow: var(--shadow); }
.ih-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .7rem; }
.ih-card p { color: var(--text-dim); line-height: 1.55; font-size: .95rem; margin-bottom: 1.5rem; }
.ih-card p b { color: #fff; }
.ih-card .btn { width: 100%; }

/* Sync indicator */
.sync-dot {
  position: fixed; bottom: 1.1rem; left: 1.1rem; z-index: 200; display: flex; align-items: center; gap: .5rem;
  background: var(--bg-deep); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: var(--text-dim);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.sync-dot.show { opacity: 1; transform: none; }
.sync-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: pulse 1.2s infinite; }

/* Animações */
@keyframes rise  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }

/* Responsivo */
@media (max-width: 640px) {
  .hero { min-height: 72vh; }
  .hero-desc { -webkit-line-clamp: 2; font-size: .95rem; }
  .ep { width: 44vw; }
  .row-head h2 { font-size: 1.1rem; }
  .lock-card { padding: 2.2rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
