/* Cine · interfaz de 10 pies para Samsung Tizen 5.5 (Chromium 69).
   Sin backdrop-filter ni flex gap: el vidrio se simula con capas translúcidas y borde de luz. */
@font-face { font-family: "Inter"; src: url("fuentes/inter.woff2") format("woff2"); font-weight: 100 900; font-display: block; }

:root {
  --fondo: #08080a;
  --texto: #f5f5f7;
  --texto-2: rgba(235, 235, 245, .66);
  --texto-3: rgba(235, 235, 245, .42);
  --rojo: #e5332a;
  --vidrio: rgba(255, 255, 255, .13);
  --vidrio-borde: rgba(255, 255, 255, .22);
  --margen: 96px;
  --resorte: cubic-bezier(.22, .9, .25, 1);
  --resorte-suave: cubic-bezier(.3, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--fondo); }
body { font-family: "Inter", "SamsungOne", "Helvetica Neue", Arial, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
.oculto { display: none !important; }

#escenario { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 0 0; background: var(--fondo); }
body.reproduciendo, body.reproduciendo #escenario { background: transparent; }

#avplayer, #video5 { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: none; background: #000; }
body.reproduciendo #avplayer.usado, body.reproduciendo #video5.usado { display: block; }
#avplayer { background: transparent; }

/* ───────── vistas ───────── */
.vista { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--resorte-suave), visibility 0s linear .45s; }
.vista.activa { opacity: 1; visibility: visible; transition: opacity .45s var(--resorte-suave), visibility 0s; }
#reproductor { z-index: 5; }

/* ───────── fondo con dos capas para fundir ───────── */
.fondo { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; }
.capa { position: absolute; right: 0; top: 0; width: 1600px; height: 900px; background-size: cover; background-position: center top;
  opacity: 0; transform: scale(1.04); transition: opacity .9s var(--resorte-suave), transform 9s linear; will-change: opacity, transform; }
.capa.visible { opacity: 1; transform: scale(1); }
.velo { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  background:
    linear-gradient(90deg, var(--fondo) 0%, var(--fondo) 18%, rgba(8,8,10,.78) 28%, rgba(8,8,10,.4) 44%, rgba(8,8,10,0) 64%),
    linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,0) 18%, rgba(8,8,10,0) 48%, rgba(8,8,10,.86) 70%, var(--fondo) 83%); }
.velo-detalle { background:
    linear-gradient(90deg, var(--fondo) 0%, var(--fondo) 18%, rgba(8,8,10,.88) 28%, rgba(8,8,10,.5) 50%, rgba(8,8,10,.05) 75%),
    linear-gradient(180deg, rgba(8,8,10,.5) 0%, rgba(8,8,10,0) 20%, rgba(8,8,10,.15) 55%, rgba(8,8,10,.9) 80%, var(--fondo) 92%); }

/* ───────── barra superior ───────── */
#barra { position: absolute; left: var(--margen); right: var(--margen); top: 44px; height: 64px; display: flex; align-items: center; justify-content: space-between; z-index: 3;
  transition: opacity .4s var(--resorte), transform .5s var(--resorte); }
.modo-filas #barra { opacity: 0; transform: translateY(-24px); }
.marca { font-size: 34px; font-weight: 700; letter-spacing: -.035em; display: flex; align-items: center; width: 260px; }
.marca .punto { width: 14px; height: 14px; border-radius: 50%; background: var(--rojo); margin-right: 12px; box-shadow: 0 0 18px rgba(229,51,42,.7); }
#pestanas { display: flex; padding: 6px; border-radius: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.pestana { height: 52px; padding: 0 30px; border-radius: 26px; font-size: 25px; font-weight: 600; color: var(--texto-2);
  transition: background-color .25s var(--resorte), color .25s var(--resorte), transform .3s var(--resorte); }
.pestana.elegida { color: var(--texto); background: rgba(255,255,255,.12); }
.pestana.foco { color: #111; background: #fff; transform: scale(1.06); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.reloj { width: 260px; text-align: right; font-size: 28px; font-weight: 500; color: var(--texto-2); letter-spacing: -.01em; }

/* ───────── héroe ───────── */
#heroe { position: absolute; left: var(--margen); top: 236px; width: 860px; z-index: 2;
  transition: transform .55s var(--resorte); }
.modo-filas #heroe { transform: translateY(-150px); }
.heroe-titulo { min-height: 120px; display: flex; align-items: flex-end; margin-bottom: 26px; transition: opacity .35s var(--resorte-suave); }
.heroe-titulo img { max-width: 640px; max-height: 190px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); transition: max-height .5s var(--resorte); }
.modo-filas .heroe-titulo img { max-height: 140px; }
.heroe-titulo h1 { font-size: 92px; line-height: .98; font-weight: 750; letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: font-size .5s var(--resorte); }
.modo-filas .heroe-titulo h1 { font-size: 72px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 25px; font-weight: 500; color: var(--texto-2); margin-bottom: 20px; }
.meta > * { margin-right: 18px; margin-bottom: 6px; }
.meta .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--texto-3); }
.meta .chip { font-size: 18px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px 3px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.45); color: var(--texto); }
.meta .estrella { color: #ffd60a; margin-right: 6px; }
.meta .nuevo { color: var(--rojo); font-weight: 700; }
.sinopsis { font-size: 27px; line-height: 1.45; color: rgba(245,245,247,.86); font-weight: 400; max-width: 800px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 36px; transition: opacity .35s var(--resorte-suave); }
.modo-filas .sinopsis { -webkit-line-clamp: 2; }
.cambiando .heroe-titulo, .cambiando .sinopsis, .cambiando .meta { opacity: 0; }
.meta { transition: opacity .35s var(--resorte-suave); }

.botones { display: flex; transition: opacity .35s var(--resorte), transform .45s var(--resorte); }
.modo-filas #heroeBotones { opacity: 0; transform: translateY(16px); }
.boton { height: 72px; padding: 0 36px 0 30px; margin-right: 18px; border-radius: 36px; display: flex; align-items: center; font-size: 26px; font-weight: 600;
  background: var(--vidrio); border: 1px solid var(--vidrio-borde); box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s var(--resorte), background-color .25s var(--resorte), color .25s var(--resorte), box-shadow .3s var(--resorte); }
.boton svg { width: 30px; height: 30px; fill: currentColor; margin-right: 14px; }
.boton.primario { background: rgba(255,255,255,.9); color: #111; border-color: transparent; }
.boton.foco { background: #fff; color: #111; transform: scale(1.07); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.18); }
.boton small { font-size: 20px; font-weight: 500; margin-left: 12px; opacity: .6; }

/* ───────── filas ───────── */
#filasMarco { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; pointer-events: none; }
#filas { position: absolute; left: 0; top: 0; width: 1920px; transition: transform .55s var(--resorte); will-change: transform; }
.fila { position: relative; padding-left: var(--margen); margin-bottom: 46px; transition: opacity .45s var(--resorte-suave); }
.fila.arriba { opacity: 0; }
.fila h2 { font-size: 29px; font-weight: 650; letter-spacing: -.012em; margin-bottom: 32px; color: rgba(245,245,247,.92); transition: color .3s; }
.fila.activa h2 { color: #fff; }
.pista { white-space: nowrap; transition: transform .45s var(--resorte); will-change: transform; height: auto; }
.tarjeta { position: relative; display: inline-block; vertical-align: top; margin-right: 26px; border-radius: 14px; background: #1b1b1f;
  transition: transform .35s var(--resorte), box-shadow .35s var(--resorte); transform-origin: 50% 50%; }
.tarjeta .img { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 14px; background-size: cover; background-position: center; }
.tarjeta.poster { width: 212px; height: 318px; }
.tarjeta.ancha { width: 400px; height: 225px; }
.tarjeta .rotulo { position: absolute; left: 18px; right: 18px; bottom: 16px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: normal;
  text-shadow: 0 2px 14px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta .rotulo img { max-width: 70%; max-height: 72px; display: block; }
.tarjeta .sombra { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78)); }
.tarjeta .barrita { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.tarjeta .barrita i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rojo); border-radius: 3px; }
.tarjeta .etiqueta { position: absolute; left: 16px; bottom: 26px; font-size: 20px; font-weight: 600; color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.tarjeta .marco { position: absolute; left: -7px; top: -7px; right: -7px; bottom: -7px; border-radius: 19px; border: 4px solid #fff; opacity: 0; transition: opacity .25s var(--resorte); }
.tarjeta.foco { transform: scale(1.09); box-shadow: 0 24px 50px rgba(0,0,0,.65); z-index: 2; }
.tarjeta.ancha.foco, .episodio .tarjeta.foco { transform: scale(1.06); }
.tarjeta.foco .marco { opacity: 1; }
.tarjeta .insignia { position: absolute; right: 12px; top: 12px; font-size: 15px; font-weight: 800; letter-spacing: .05em; padding: 4px 8px 3px; border-radius: 6px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); }
.tarjeta .insignia.roja { background: var(--rojo); border-color: transparent; }

/* tarjeta tipográfica cuando no hay portada */
.tarjeta.sin-img .img { background-image: linear-gradient(160deg, #2a2a33 0%, #141418 100%); }
.tarjeta.sin-img .sombra { display: none; }

/* ───────── vacío ───────── */
#vacio { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vacio-icono svg { width: 120px; height: 120px; color: rgba(255,255,255,.5); margin-bottom: 36px; }
#vacio h1 { font-size: 64px; font-weight: 750; letter-spacing: -.035em; margin-bottom: 22px; }
#vacio p { font-size: 28px; line-height: 1.55; color: var(--texto-2); }
#vacio b { color: var(--texto); font-weight: 600; }

/* ───────── detalle ───────── */
#detalleContenido { position: absolute; left: var(--margen); top: 150px; width: 1728px; height: 930px; }
#detalleContenido .heroe-titulo, #detalleContenido .meta, #detalleContenido .sinopsis { width: 860px; }
#detalleContenido .sinopsis { -webkit-line-clamp: 4; margin-bottom: 40px; }
.es-serie #detalleContenido { top: 110px; }
.es-serie #detalleContenido .sinopsis { -webkit-line-clamp: 3; margin-bottom: 32px; }
#temporadas { display: flex; margin-top: 44px; margin-bottom: 26px; }
#temporadas:empty { display: none; }
.temporada { height: 52px; padding: 0 26px; margin-right: 12px; border-radius: 26px; font-size: 24px; font-weight: 600; color: var(--texto-2);
  transition: background-color .25s, color .25s, transform .3s var(--resorte); }
.temporada.elegida { color: var(--texto); background: rgba(255,255,255,.12); }
.temporada.foco { background: #fff; color: #111; transform: scale(1.06); }
#episodiosMarco { margin-left: -12px; padding-left: 12px; overflow: visible; }
#episodios { white-space: nowrap; transition: transform .45s var(--resorte); }
.episodio { display: inline-block; vertical-align: top; width: 384px; margin-right: 34px; white-space: normal; }
.episodio .tarjeta { width: 384px; height: 216px; margin-right: 0; }
.episodio .ep-titulo { margin-top: 16px; font-size: 23px; font-weight: 600; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.episodio .ep-titulo span { color: var(--texto-3); margin-right: 8px; }
.episodio.foco .ep-titulo { color: var(--texto); }
.episodio .visto { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.episodio .visto svg { width: 20px; height: 20px; fill: #fff; }
.episodio-sinopsis { margin-top: 12px; width: 1100px; font-size: 22px; line-height: 1.45; color: var(--texto-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 64px; }

/* ───────── reproductor ───────── */
#reproductor { background: transparent; }
#controles { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; transition: opacity .4s var(--resorte-suave);
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.82) 100%); }
#controles.visible { opacity: 1; }
.ctl-arriba { position: absolute; left: var(--margen); right: var(--margen); top: 60px; display: flex; justify-content: space-between; align-items: flex-start; }
.ctl-titulo { font-size: 34px; font-weight: 700; letter-spacing: -.02em; max-width: 1300px; }
.ctl-titulo small { display: block; font-size: 24px; font-weight: 500; color: var(--texto-2); margin-top: 6px; letter-spacing: 0; }
.ctl-pista { font-size: 22px; color: var(--texto-2); padding: 10px 20px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.ctl-abajo { position: absolute; left: var(--margen); right: var(--margen); bottom: 72px; }
.barra-tiempo { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); }
.barra-tiempo .avance { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: #fff; }
.barra-tiempo .cabezal { position: absolute; top: -8px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.5); left: 0;
  transition: transform .2s var(--resorte); }
.buscando .barra-tiempo .cabezal { transform: scale(1.3); }
.barra-tiempo .globo { position: absolute; bottom: 28px; margin-left: -70px; width: 140px; text-align: center; font-size: 26px; font-weight: 700; padding: 8px 0; border-radius: 12px; background: #fff; color: #111; opacity: 0; left: 0; transition: opacity .2s; }
.buscando .barra-tiempo .globo { opacity: 1; }
.tiempos { display: flex; justify-content: space-between; margin-top: 18px; font-size: 24px; font-weight: 600; color: var(--texto-2); }
#subtitulo { position: absolute; left: 160px; right: 160px; bottom: 80px; text-align: center; font-size: 44px; font-weight: 600; line-height: 1.3; color: #fff;
  text-shadow: 0 0 6px #000, 0 2px 4px #000, 0 0 2px #000; transition: bottom .4s var(--resorte); z-index: 1; }
#subtitulo span { display: inline; padding: 2px 12px; background: rgba(0,0,0,.35); border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#subtitulo:empty { display: none; }
.controles-visibles #subtitulo { bottom: 230px; }
#cargando { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.aro { width: 84px; height: 84px; border-radius: 50%; border: 6px solid rgba(255,255,255,.2); border-top-color: #fff; animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#pausaGrande { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
#pausaGrande svg { width: 64px; height: 64px; fill: #fff; }
#panelPistas { position: absolute; right: 0; top: 0; bottom: 0; width: 900px; padding: 120px 80px; display: flex; z-index: 3;
  background: linear-gradient(90deg, rgba(10,10,12,0) 0%, rgba(10,10,12,.92) 22%, rgba(10,10,12,.97) 100%); }
#panelPistas .columna { width: 50%; padding-left: 40px; }
#panelPistas h3 { font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 24px; }
.opcion { display: flex; align-items: center; height: 62px; padding: 0 22px; margin-bottom: 8px; border-radius: 14px; font-size: 26px; font-weight: 500; color: var(--texto-2); transition: background-color .2s, color .2s, transform .25s var(--resorte); }
.opcion .palomita { width: 28px; margin-right: 12px; opacity: 0; }
.opcion.elegida .palomita { opacity: 1; }
.opcion.elegida { color: var(--texto); }
.opcion.foco { background: #fff; color: #111; transform: scale(1.04); }
.opcion small { margin-left: 10px; font-size: 19px; opacity: .6; }
#siguiente { position: absolute; right: var(--margen); bottom: 200px; width: 620px; display: flex; align-items: center; padding: 18px; border-radius: 22px; z-index: 3;
  background: rgba(20,20,24,.92); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
#siguiente.foco { border-color: #fff; box-shadow: 0 0 0 3px #fff, 0 30px 70px rgba(0,0,0,.6); }
.sig-img { width: 220px; height: 124px; border-radius: 12px; background-size: cover; background-position: center; margin-right: 22px; flex: none; background-color: #222; }
.sig-texto small { display: block; font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 6px; }
.sig-texto b { display: block; font-size: 27px; font-weight: 650; margin-bottom: 8px; }
.sig-texto span { font-size: 21px; color: var(--texto-2); }
#aviso { position: absolute; left: 50%; top: 50%; width: 1100px; margin-left: -550px; transform: translateY(-50%); text-align: center; padding: 50px 60px; border-radius: 28px; z-index: 4;
  background: rgba(20,20,24,.95); border: 1px solid rgba(255,255,255,.14); font-size: 30px; line-height: 1.5; color: var(--texto-2); }
#aviso b { display: block; font-size: 40px; color: var(--texto); margin-bottom: 14px; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .capa { transition: opacity .4s; transform: none !important; }
  .tarjeta, .boton, #filas, .pista, #heroe { transition-duration: .01s !important; }
}
