/* [2026-10-07] LIVE — mismo sistema de diseño que la landing AR+ (tokens.css: #0C0C16, rojo #E11D48, rosa #FF5A78, Outfit/Manrope). Mobile-first. — Elvis Alas */
:root {
  --accent: var(--red);
  --accent-2: var(--pink);
  --muted: var(--ink-muted);
  --card-r: 14px;
  --nav-h: 66px;
  --cats-w: 340px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font-text); -webkit-tap-highlight-color: transparent; }
a { color: var(--pink-soft); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Marca */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: auto; }
.brand--sm img { width: 46px; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 28px; border-radius: var(--radius-full); border: 1px solid transparent; font: 700 15px/1 var(--font-text); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform var(--dur-instant) linear, filter var(--dur-instant) linear; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--gradient-brand); color: var(--on-red); box-shadow: 0 10px 30px -8px #E11D48B3; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--primary:active { background: var(--red-press); transform: scale(.98); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--pink-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.chip { min-height: 38px; padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; white-space: nowrap; font-weight: 700; font-size: 13px; }
.chip:hover { border-color: var(--pink-soft); }
.chip[aria-pressed="true"] { border-color: var(--pink-soft); color: var(--pink-soft); }
.circle { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.circle:hover { border-color: var(--pink-soft); background: #FFFFFF14; }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field > span { color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.field input, .field select { min-height: 48px; padding: 0 var(--space-4); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
.field select { border-radius: var(--radius-sm); }
.field input:focus, .field select:focus { border-color: var(--pink-soft); outline: none; box-shadow: var(--focus-ring); }
.field--sm input, .field--sm select { min-height: 42px; }
.field--grow { flex: 1 1 200px; min-width: 0; }
.msg { margin: 0; padding: var(--space-3); border-radius: var(--radius-sm); background: #E11D4826; border: 1px solid #E11D4880; color: #FFC2CE; font-size: 14px; }
.msg--ok { background: #3DDC9726; border-color: #3DDC9780; color: #A7F3D0; }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); font: 700 12px/1.35 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: var(--glow-live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* Login */
.login { min-height: 100%; display: grid; place-items: center; padding: var(--space-5) var(--space-4);
  background: radial-gradient(900px 520px at 15% 0%, #E11D4826, transparent 60%), radial-gradient(800px 500px at 92% 100%, #FF5A781F, transparent 60%), var(--bg); }
.login__card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-5); background: #151520E6; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); backdrop-filter: blur(var(--blur-focus)); }
.login__card .brand img { width: 84px; }
.login__card h1 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.login__lead { margin: 0; color: var(--ink-muted); }
.login__foot { margin: 0; color: var(--ink-subtle); font-size: 13px; text-align: center; }

/* Barra superior */
.app { min-height: 100%; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-2) var(--space-4); min-height: var(--nav-h); background: #0C0C16E6; backdrop-filter: blur(var(--blur-nav)); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; }
.tab { min-height: 42px; padding: 0 var(--space-4); background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--ink-muted); font: 700 15px/1 var(--font-display); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.acct { color: var(--ink-subtle); font-size: 12px; max-width: 180px; }
.acct a { color: var(--pink-soft); font-weight: 700; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; pointer-events: none; }
.i-fill { fill: currentColor; }
.tab .i { width: 20px; height: 20px; }
.circle .i { width: 20px; height: 20px; }
.fav .i, .rm .i { width: 17px; height: 17px; }
.ep__ico .i { width: 20px; height: 20px; }
.btn .i, .chip .i { vertical-align: middle; }
.chip { display: inline-flex; align-items: center; gap: 6px; }

/* Layout: categorías anchas (estilo panel del Roku) + contenido */
.layout { flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
.cats { display: none; padding: var(--space-3) var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); max-height: 55vh; overflow: auto; }
.cats.is-open { display: block; }
.cats__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cats__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 8px var(--space-4); border-radius: var(--radius-full); cursor: pointer; color: var(--ink-muted); font: 700 15px/1.25 var(--font-text); overflow-wrap: anywhere; border: 1px solid transparent; transition: background var(--dur-instant) linear, color var(--dur-instant) linear; }
.cats__list li:hover { background: var(--surface-raised); color: var(--ink); }
.cats__list li:focus-visible { box-shadow: var(--focus-ring); }
.cats__list li[aria-selected="true"] { background: #E11D4829; border-color: #E11D4899; color: var(--ink); }
.cats__list li.cat--special { color: var(--ink); }
.cats__list li.cat--special .cat__name .i { margin-right: 8px; color: var(--pink); vertical-align: -.25em; }
.cat__name { min-width: 0; }
.cat__n { flex: none; min-width: 30px; padding: 2px 9px; border-radius: var(--radius-full); background: #FFFFFF14; color: var(--ink-subtle); font: 700 12px/1.5 var(--font-text); text-align: center; }
.cats__list li[aria-selected="true"] .cat__n { background: var(--red); color: var(--on-red); }
.cats__list .muted { cursor: default; }
.content { padding: var(--space-4); min-width: 0; }
.content__bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.content__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; flex: 1 1 100%; }
.chip--cats { display: inline-flex; align-items: center; }
@media (min-width: 860px) {
  .layout { grid-template-columns: var(--cats-w) 1fr; }
  .cats { display: block; border-bottom: 0; border-right: 1px solid var(--line); max-height: none; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); padding: var(--space-4); scrollbar-width: thin; scrollbar-color: #FFFFFF33 transparent; }
  .chip--cats { display: none; }
  .content { padding: var(--space-5); }
  .content__title { flex: 0 1 auto; }
}
@media (min-width: 1500px) { :root { --cats-w: 420px; } }

/* Estados y rejilla */
.state { padding: var(--space-6) var(--space-4); text-align: center; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.state strong { display: block; color: var(--ink); margin-bottom: var(--space-2); font-family: var(--font-display); }
.state .btn { margin-top: var(--space-3); }
.spinner, .player__spinner { width: 34px; height: 34px; margin: 0 auto var(--space-3); border-radius: 50%; border: 3px solid #FFFFFF26; border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fichas al estilo Roku: pósters 2:3, canales 16:9, título en 2 líneas, foco con anillo rosa y escala */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2) 0; }
.grid--live { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); } .grid--live { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); } }
/* El relleno de 10 px deja espacio al anillo de foco y a la escala (content-visibility recorta lo que sobresale) */
.card { position: relative; display: flex; flex-direction: column; padding: 10px; content-visibility: auto; contain-intrinsic-size: 300px; }
.card__open { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; width: 100%; border-radius: var(--card-r); }
.card__open:focus-visible { box-shadow: none; }
.card__img { position: relative; aspect-ratio: 2 / 3; border-radius: var(--card-r); overflow: hidden; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) linear; }
.card__open:hover .card__img, .card__open:focus-visible .card__img { transform: scale(1.06); border-color: var(--pink-soft); box-shadow: var(--focus-ring), var(--shadow-lift); z-index: 2; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__ph { font: 800 28px var(--font-display); color: #FFFFFF26; }
.card__name { color: var(--ink); font: 700 14px/1.3 var(--font-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card__sub { color: var(--ink-subtle); font-size: 12px; margin-top: -4px; }
.card--live .card__img { aspect-ratio: 324 / 198; }
.card--live .card__img img { object-fit: contain; padding: 12%; }
.badge { position: absolute; left: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-full); background: var(--live); color: #fff; font: 800 10px/1.3 var(--font-text); letter-spacing: .08em; }
.badge--kind { background: #0C0C16CC; border: 1px solid var(--line-strong); color: var(--ink); }
.card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #FFFFFF33; z-index: 1; }
.card__bar i { display: block; height: 100%; background: var(--gradient-brand); }
.rm { position: absolute; right: 58px; top: 18px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: #0C0C16CC; color: var(--ink); font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity var(--dur-instant) linear; }
.card:hover .rm, .card:focus-within .rm { opacity: 1; }
.rm:hover { border-color: var(--pink-soft); }
@media (hover: none) { .rm { opacity: 1; } }
.fav { position: absolute; right: 18px; top: 18px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: #0C0C16CC; color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: .0; transition: opacity var(--dur-instant) linear, transform var(--dur-instant) linear; }
.card:hover .fav, .card:focus-within .fav, .fav[aria-pressed="true"] { opacity: 1; }
.fav[aria-pressed="true"] { color: var(--pink); border-color: var(--pink-soft); background: #E11D4840; }
.fav:hover { transform: scale(1.12); }
@media (hover: none) { .fav { opacity: 1; } }

/* Modal de detalle */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--space-4); }
.modal__scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(var(--blur-modal)); }
.modal__box { position: relative; width: 100%; max-width: 880px; max-height: 92vh; overflow: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lift); }
.modal__x { position: absolute; right: 12px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.det { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .det { grid-template-columns: 210px 1fr; } }
.det__poster { aspect-ratio: 2 / 3; max-width: 210px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.det__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det__body h2 { margin: 0 0 var(--space-2); font-size: 26px; line-height: 1.1; font-weight: 800; padding-right: 44px; overflow-wrap: anywhere; }
.det__meta { margin: 0 0 var(--space-3); color: var(--pink-soft); font-weight: 700; font-size: 13px; }
.det__plot { margin: 0 0 var(--space-4); color: var(--ink-muted); line-height: 1.65; }
.det__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.det__cast h3 { margin: 0 0 var(--space-2); font-size: 15px; color: var(--pink-soft); }

/* Reproductor (estilo AlasTV: barra superior, panel lateral 310 px, herramientas) */
.player { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--bg-deep); }
.player__bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); background: #0C0C16F2; border-bottom: 1px solid var(--line); }
.player__heading { flex: 1; min-width: 0; }
.player__title { margin: 0; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { margin: 0; color: var(--ink-subtle); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__status { color: var(--ink-subtle); font-size: 12px; }
.player__main { flex: 1; min-height: 0; display: flex; position: relative; }
.player__stage { position: relative; flex: 1; min-width: 0; background: #000; }
.player__stage video { width: 100%; height: 100%; background: #000; }
.player__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5); text-align: center; background: #000000B8; pointer-events: none; }
.player__overlay .btn { pointer-events: auto; }
.player__overlay p { margin: 0; max-width: 46ch; }
.toast { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); max-width: 90%; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: #151520F2; border: 1px solid var(--line-strong); font-size: 14px; text-align: center; }
.player__tools { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom)); background: #0C0C16F2; border-top: 1px solid var(--line); }
.pl-resume { position: absolute; left: var(--space-4); bottom: 76px; z-index: 3; display: flex; align-items: center; gap: var(--space-3); padding: 8px 8px 8px var(--space-4); border-radius: var(--radius-full); background: #151520F2; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 700; }
.pl-next { position: absolute; right: var(--space-4); bottom: 76px; z-index: 4; width: min(340px, calc(100% - 32px)); padding: var(--space-4); border-radius: var(--radius-md); background: #151520F7; border: 1px solid var(--pink-soft); box-shadow: var(--shadow-lift); }
.pl-next p { margin: 0 0 var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.pl-next__k { color: var(--pink-soft); font: 700 12px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.pl-next strong { font-family: var(--font-display); overflow-wrap: anywhere; }
.pl-next__btns { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Panel lateral del reproductor: Episodios / Info */
.pside { flex: none; width: 310px; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); min-height: 0; }
.pside__tabs { display: flex; align-items: center; gap: 2px; padding: var(--space-2) var(--space-2) 0; border-bottom: 1px solid var(--line); }
.pside__tab { min-height: 42px; padding: 0 var(--space-3); background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink-muted); font: 700 14px/1 var(--font-display); cursor: pointer; }
.pside__tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.pside__x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--ink-muted); font-size: 22px; cursor: pointer; }
.pside__x:hover { color: var(--ink); }
.pside__pane { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); scrollbar-width: thin; scrollbar-color: #FFFFFF33 transparent; }
.pside__pane[hidden] { display: none !important; }
.pside__pane h3 { margin: 0; font-size: 17px; }
.pside__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pep { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 6px; text-align: left; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink); }
.pep:hover { background: var(--surface-raised); }
.pep[aria-current="true"] { background: #E11D4829; border-color: #E11D4899; }
.pep__th { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-raised); display: grid; place-items: center; }
.pep__th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pep__n { position: absolute; left: 4px; top: 4px; z-index: 1; padding: 0 6px; border-radius: 6px; background: var(--red); color: #fff; font: 800 11px/18px var(--font-text); }
.pep__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 700 13px/1.25 var(--font-text); }
.pep__t span { color: var(--ink-subtle); font-weight: 500; font-size: 12px; }
.pep__t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-weight: 700; }
@media (max-width: 859px) {
  .pside { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 62%; z-index: 6; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: var(--radius-md) var(--radius-md) 0 0; box-shadow: var(--shadow-lift); }
}
.tracks { position: absolute; right: var(--space-4); bottom: 70px; z-index: 8; width: min(360px, calc(100% - 32px)); max-height: 70vh; overflow: auto; padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.tracks h3 { margin: 0 0 var(--space-2); font-size: 14px; color: var(--pink-soft); }
.tracks__list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tracks__list button { width: 100%; text-align: left; min-height: 42px; padding: 0 var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; }
.tracks__list button[aria-checked="true"] { border-color: var(--pink-soft); color: var(--pink-soft); }
.tracks__file { display: flex; width: 100%; cursor: pointer; }
.tracks .modal__x { top: 6px; right: 6px; width: 34px; height: 34px; font-size: 18px; }
.muted { color: var(--ink-subtle); }
@media (prefers-reduced-motion: reduce) { .spinner, .player__spinner, .dot { animation-duration: 2.5s; } .badge--new { animation: none; } .card__img, .fav { transition: none; } .card__open:hover .card__img { transform: none; } }

/* Búsqueda global, reparto y tráiler */
.gsearch { display: flex; gap: var(--space-2); flex: 1 1 260px; max-width: 480px; order: 3; }
.gsearch input { flex: 1; min-width: 0; min-height: 40px; padding: 0 var(--space-4); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
.gsearch input:focus { border-color: var(--pink-soft); outline: none; box-shadow: var(--focus-ring); }
@media (min-width: 1100px) { .gsearch { order: 0; margin-left: var(--space-4); } }
.cast { list-style: none; margin: 0 0 var(--space-3); padding: 0 0 var(--space-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-4) var(--space-3); }
.cast li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 12px; min-width: 0; }
.cast img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--line-strong); }
.cast__ph { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--pink-soft); font: 800 26px var(--font-display); }
.cast__n { font-weight: 700; overflow-wrap: anywhere; }
.cast__c { color: var(--ink-subtle); overflow-wrap: anywhere; }
.modal--top { z-index: 120; }
.modal__box--video { max-width: 960px; padding: var(--space-3); background: #000; }
.trailer { position: relative; aspect-ratio: 16 / 9; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

/* Pantalla de serie (≈90 % de la pantalla): carátula grande a la izquierda, ficha y episodios a la derecha */
.sview { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overflow-x: hidden; background: radial-gradient(1000px 600px at 12% 0%, #E11D4824, transparent 60%), radial-gradient(900px 600px at 100% 100%, #FF5A7814, transparent 60%), var(--bg); }
.sview__bar { position: sticky; top: 0; z-index: 3; padding: var(--space-2) var(--space-4); background: #0C0C16EB; backdrop-filter: blur(var(--blur-nav)); border-bottom: 1px solid var(--line); }
.sv { width: 94vw; max-width: 2000px; margin: 0 auto; padding: var(--space-4) 0 var(--space-6); display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.sv__left { display: grid; place-items: center; }
.sv__poster { width: min(62vw, 340px); aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.sv__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv__title { margin: 0 0 var(--space-2); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.sv__right { min-width: 0; }
@media (min-width: 900px) {
  .sview { overflow-y: hidden; }
  .sv { width: 90vw; height: calc(100vh - 56px); padding: var(--space-4) 0; grid-template-columns: 38% 1fr; gap: 3vw; }
  .sv__left { height: 100%; }
  .sv__poster { width: auto; height: min(100%, calc(38vw * 1.5 * 0.9)); max-width: 100%; }
  .sv__right { height: 100%; overflow-y: auto; padding-right: var(--space-3); scrollbar-width: thin; scrollbar-color: #FFFFFF33 transparent; }
}
.sview__epsTitle { margin: var(--space-2) 0 var(--space-3); font-size: 18px; color: var(--pink-soft); }
.seasons { display: flex; gap: var(--space-2); overflow-x: auto; padding: 6px 6px var(--space-3); scrollbar-width: thin; }
.season { flex: 0 0 auto; min-height: 42px; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.season:hover { border-color: var(--pink-soft); color: var(--ink); }
.season[aria-pressed="true"] { background: var(--gradient-brand); border-color: transparent; color: #fff; }
/* Fichas de episodios */
.epl { list-style: none; margin: 0; padding: 6px 6px var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.ep { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-r); overflow: hidden; transition: border-color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out-expo); }
.ep:hover, .ep:focus-within { border-color: var(--pink-soft); transform: translateY(-2px); }
.ep__play { display: flex; flex-direction: column; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); width: 100%; }
.ep__play:focus-visible { box-shadow: none; }
.ep__thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--surface-raised), var(--bg)); display: grid; place-items: center; overflow: hidden; }
.ep__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep__n { position: absolute; left: 8px; top: 8px; z-index: 1; min-width: 30px; height: 26px; padding: 0 8px; border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; }
.ep__ico { position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0C0C16B3; color: #fff; font-size: 18px; opacity: 0; transition: opacity var(--dur-instant) linear; }
.ep:hover .ep__ico, .ep__play:focus-visible .ep__ico { opacity: 1; }
.ep__ph { font: 800 22px var(--font-display); color: #FFFFFF26; }
.ep__info { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); min-width: 0; }
.ep__t { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ep__d { color: var(--ink-subtle); font-size: 12px; }
.ep__dl { position: absolute; right: 8px; top: 8px; z-index: 2; min-height: 30px; width: 34px; padding: 0; display: grid; place-items: center; background: #0C0C16BF; }

/* [2026-10-08] Entrada/salida de la pantalla de serie y película (arquetipo Premium: sin rebote, solo opacity + transform).
   Entra al quitar [hidden] (CSS puro); sale con .is-leaving que pone live.js antes de ocultarla — Elvis Alas */
@keyframes sv-fade { from { opacity: 0; } }
@keyframes sv-pop { from { opacity: 0; transform: translateY(44px) scale(.93); } }
@keyframes sv-slide { from { opacity: 0; transform: translateX(44px); } }
@keyframes sv-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes sv-out { to { opacity: 0; transform: translateY(14px) scale(.985); } }
.sview:not([hidden]) { animation: sv-fade 400ms cubic-bezier(.4, 0, .2, 1) backwards; }
/* Dos bloques entran: el póster sube y crece (650 ms) y la columna de datos llega desde la derecha 120 ms después. Total ≈ 770 ms */
.sview:not([hidden]) .sv__poster { animation: sv-pop 650ms cubic-bezier(.16, 1, .3, 1) backwards; }
.sview:not([hidden]) .sv__right { animation: sv-slide 650ms cubic-bezier(.16, 1, .3, 1) 120ms backwards; }
/* Episodios llegan tras la carga: solo los 6 primeros en cascada (70 ms); el resto y el reparto aparecen ya asentados */
.sview:not([hidden]) .ep:nth-child(-n+6) { animation: sv-rise 420ms cubic-bezier(.16, 1, .3, 1) backwards; }
.sview:not([hidden]) .ep:nth-child(2) { animation-delay: 70ms; }
.sview:not([hidden]) .ep:nth-child(3) { animation-delay: 140ms; }
.sview:not([hidden]) .ep:nth-child(4) { animation-delay: 210ms; }
.sview:not([hidden]) .ep:nth-child(5) { animation-delay: 280ms; }
.sview:not([hidden]) .ep:nth-child(6) { animation-delay: 350ms; }
.sview.is-leaving { animation: sv-out 260ms cubic-bezier(.3, 0, 1, 1) forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sview:not([hidden]) { animation-duration: 150ms; }
  .sview:not([hidden]) .sv__poster, .sview:not([hidden]) .sv__right, .sview:not([hidden]) .ep:nth-child(n) { animation: sv-fade 150ms linear backwards; animation-delay: 0s; }
  .sview.is-leaving { animation: sv-fade 120ms linear reverse forwards; }
  .ep:hover, .ep:focus-within { transform: none; }
}

/* Login: ver/ocultar contraseña y recordar datos (2026-10-08) */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 52px; }
.pw__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.pw__btn:hover { color: var(--ink); background: #FFFFFF14; }
.pw__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pw__btn[aria-pressed="true"] { color: var(--pink-soft); }
.pw__btn .i { width: 20px; height: 20px; }
.remember { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #E11D48; cursor: pointer; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--pink-soft); font: 700 13px var(--font-text); text-decoration: underline; cursor: pointer; }
.modal__box--sm { max-width: 520px; }
.rm__title { margin: 0 0 var(--space-3); font-size: 22px; line-height: 1.2; font-weight: 800; }
.rm__body { color: var(--ink-muted); line-height: 1.55; font-size: 14px; }
.rm__body p { margin: 0 0 var(--space-3); }
.rm__body ul { margin: 0 0 var(--space-3); padding-left: 20px; display: grid; gap: var(--space-2); }
.rm__body strong { color: var(--ink); }
.rm__btns { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* NUEVO: cinta diagonal en la esquina superior izquierda (la recorta overflow:hidden de .card__img) con borde parpadeante */
.badge--new { top: 18px; left: -30px; width: 120px; box-sizing: border-box; z-index: 3; justify-content: center; padding: 2px 0; border-radius: 0; background: #0F7A46; color: #fff; font-size: 11px; letter-spacing: .12em; border: 2px solid #FFE14D; transform: rotate(-45deg); animation: newblink .9s ease-in-out infinite; }
@keyframes newblink { 0%, 100% { border-color: #FFE14D; box-shadow: 0 0 10px #FFE14DF2; } 50% { border-color: #FFFFFF00; box-shadow: 0 0 0 #FFE14D00; } }
/* La etiqueta LIVE/PELÍCULA/SERIE baja a la esquina inferior para no quedar bajo la cinta */
.card__img:has(.badge--new) .badge:not(.badge--new) { top: auto; bottom: 8px; }
