/* ===== Base común de los temas ===== */
.tema{min-height:100vh;display:flow-root;-webkit-font-smoothing:antialiased}
.tema *{box-sizing:border-box}
.tema section{padding:0 20px;margin:30px 0}
.tema img{display:block;max-width:100%}
.tema [data-foto]{cursor:zoom-in}
.tema .vacio{opacity:.55;font-style:italic}
.tema .msj{line-height:1.6;font-size:17px;overflow-wrap:anywhere}
.ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:80px;font-size:28px}
.ph0{background:linear-gradient(135deg,#ff9a8b,#ff6a88)}.ph1{background:linear-gradient(135deg,#a1c4fd,#c2e9fb)}
.ph2{background:linear-gradient(135deg,#fbc2eb,#a6c1ee)}.ph3{background:linear-gradient(135deg,#fddb92,#d1fdff)}
.ct{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ct-c{display:flex;flex-direction:column;align-items:center;padding:10px 4px}
.ct-c b{font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.ct-c small{font-size:11px;margin-top:6px;text-transform:uppercase;letter-spacing:.08em;opacity:.8}
.yt-card{border-radius:16px;overflow:hidden}
.yt-marco{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;background:#000}
.yt-marco iframe,.yt-marco img{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.yt-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:44px;border-radius:12px;background:rgba(0,0,0,.7);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}
.yt-info{display:flex;flex-direction:column;gap:3px;padding:12px 14px}
.yt-info b{font-size:15px;line-height:1.3}.yt-info small{opacity:.7;font-size:13px}

/* Galería */
.galeria{position:fixed;inset:0;z-index:9999;background:rgba(5,3,10,.96);display:flex;align-items:center;justify-content:center;animation:gIn .2s ease}
.galeria img{max-width:100vw;max-height:88vh;object-fit:contain;user-select:none}
.galeria button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;width:46px;height:46px;font-size:26px;cursor:pointer}
.g-cerrar{top:14px;right:14px;font-size:20px!important}.g-ant{left:10px;top:50%;transform:translateY(-50%)}.g-sig{right:10px;top:50%;transform:translateY(-50%)}
.g-cont{position:absolute;bottom:18px;color:#fff;font:600 13px system-ui;opacity:.8}
@keyframes gIn{from{opacity:0}to{opacity:1}}

/* ===== TEMA: Nuestra serie (estética de app de series) ===== */
.tema-serie{background:#000;color:#fff;font-family:'DM Sans',system-ui,sans-serif;padding-bottom:30px}
.tema-serie .sec-t{font-size:19px;font-weight:700;margin:0 0 12px;display:flex;gap:10px;align-items:center}
.sr-hero{position:relative;aspect-ratio:3/4;max-height:78vh;width:100%;overflow:hidden}
.sr-hero>img,.sr-hero>.ph{width:100%;height:100%;object-fit:cover}
.sr-hero-sombra{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,transparent 22%,transparent 50%,rgba(0,0,0,.85) 82%,#000 100%);pointer-events:none}
.sr-hero-txt{position:absolute;left:0;right:0;bottom:0;padding:0 18px 8px;pointer-events:none}
.sr-tag{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.28em;color:#ddd}
.sr-tag i{display:inline-block;width:5px;height:18px;background:#e11d2e;border-radius:1px}
.sr-titulo{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:clamp(52px,16vw,84px);line-height:.88;margin:0;letter-spacing:.01em;text-transform:uppercase;text-shadow:0 4px 18px rgba(0,0,0,.6);overflow-wrap:anywhere}
.sr-cuerpo{padding:6px 18px 0}
.sr-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:14px;color:#bcbcbc;margin:8px 0 14px}
.sr-meta b{color:#4ad37a}
.sr-caja{border:1px solid #777;padding:0 5px;font-size:11px;border-radius:2px}
.sr-btn{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;border:0;border-radius:4px;padding:11px;font:700 16px 'DM Sans',sans-serif;margin-bottom:8px;cursor:pointer}
.sr-btn-play{background:#fff;color:#000}
.sr-btn-lista{background:#2b2b2b;color:#fff}
.sr-btn-lista.on{background:#3a3a3a}
.sr-desc{margin:12px 0 8px;font-size:15px!important;line-height:1.55!important;color:#eee}
.sr-reparto{font-size:13px;color:#aaa;margin:0}
.sr-reparto span{color:#777}
.sr-vivo{font-style:normal;font-size:11px;font-weight:800;background:#e11d2e;padding:3px 7px;border-radius:3px;letter-spacing:.05em;animation:parp 1.6s ease-in-out infinite}
.sr-ct .ct-c{background:#141414;border-radius:6px;border-top:3px solid #e11d2e}
.sr-ct b{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:34px}
.sr-ct small{color:#aaa}
.sr-fecha{font-size:13px;color:#888;margin:10px 0 0}
.sr-pest{border-top:1px solid #333;padding-top:2px}
.sr-pest span{font-size:14px;color:#888;padding-top:10px}
.sr-pest span.sel{color:#fff;border-top:4px solid #e11d2e;margin-top:-4px}
.sr-eps{display:flex;flex-direction:column;gap:16px}
.sr-ep{display:flex;gap:12px;align-items:center}
.sr-ep-img{position:relative;flex:0 0 128px;aspect-ratio:16/9;border-radius:4px;overflow:hidden;background:#222}
.sr-ep-img img,.sr-ep-img .ph{width:100%;height:100%;object-fit:cover;min-height:0;font-size:16px}
.sr-ep-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;font-size:12px;pointer-events:none}
.sr-ep-t{display:flex;flex-direction:column;min-width:0}
.sr-ep-t b{font-size:15px}.sr-ep-t span{font-size:14px;color:#ddd}.sr-ep-t small{font-size:12px;color:#888;margin-top:2px}
.sr-mas{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sr-mas-it{aspect-ratio:2/3;border-radius:4px;overflow:hidden;background:#222}
.sr-mas-it img,.sr-mas-it .ph{width:100%;height:100%;object-fit:cover}
.tema-serie .yt-card{background:#141414;border-radius:6px}
.sr-pie{text-align:center;font-size:12px;color:#666;padding:10px 18px}

/* ===== TEMA: Nuestra canción (estética de app de música) ===== */
.tema-cancion{background:linear-gradient(180deg,#7a2a4a 0%,#3b1530 30%,#121212 62%);color:#fff;font-family:'DM Sans',system-ui,sans-serif;padding-bottom:30px}
.tema-cancion .sec-t{font-size:18px;font-weight:700;margin:0 0 12px}
.mc-barra-sup{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 0;font-size:22px}
.mc-barra-sup small{text-align:center;font-size:10px;letter-spacing:.12em;color:#ddd;line-height:1.4}
.mc-barra-sup small b{font-size:13px;letter-spacing:0;color:#fff}
.mc-portada{margin:26px 24px 0;aspect-ratio:1;border-radius:8px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.55)}
.mc-portada>img,.mc-portada>.ph{width:100%;height:100%;object-fit:cover}
.mc-info{display:flex;align-items:center;gap:12px;padding:24px 24px 0}
.mc-info>div{flex:1;min-width:0}
.mc-titulo{font-size:24px;font-weight:700;margin:0;line-height:1.2;overflow-wrap:anywhere;font-family:'DM Sans',sans-serif}
.mc-artista{margin:4px 0 0;color:#b3b3b3;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-corazon{background:none;border:0;color:#b3b3b3;font-size:26px;cursor:pointer;padding:4px}
.mc-corazon.on{color:#2bd46a}
.mc-progreso{padding:16px 24px 0}
.mc-pista{height:4px;border-radius:2px;background:rgba(255,255,255,.25);overflow:hidden}
.mc-pista i{display:block;height:100%;background:#fff;border-radius:2px;transition:width 1s linear}
.mc-tiempos{display:flex;justify-content:space-between;font-size:11px;color:#b3b3b3;margin-top:6px}
.mc-controles{display:flex;align-items:center;justify-content:space-between;padding:8px 22px 0}
.mc-sec{font-size:20px;color:#2bd46a}.mc-sec:last-child{color:#b3b3b3}
.mc-sec2{font-size:26px}
.mc-play{width:64px;height:64px;border-radius:50%;border:0;background:#fff;color:#000;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mc-letra .msj{background:#c2415d;border-radius:12px;padding:20px;font-size:20px!important;font-weight:700;line-height:1.45!important}
.mc-letra .msj b{color:#ffe28a}
.mc-total{margin:0 0 12px;font-size:15px;color:#b3b3b3}
.mc-total b{font-size:36px;color:#2bd46a;font-weight:800;margin-right:4px}
.mc-ct .ct-c{background:#242424;border-radius:8px}
.mc-ct b{font-size:26px;font-weight:800}
.mc-ct small{color:#b3b3b3}
.mc-fecha{font-size:13px;color:#888;margin:10px 0 0}
.mc-lista{list-style:none;margin:0;padding:0}
.mc-lista li{display:flex;align-items:center;gap:12px;padding:8px 0;cursor:pointer}
.mc-n{width:18px;text-align:center;color:#b3b3b3;font-size:14px}
.mc-mini{width:46px;height:46px;flex:0 0 46px;border-radius:3px;overflow:hidden}
.mc-mini img,.mc-mini .ph{width:100%;height:100%;object-fit:cover;min-height:0;font-size:14px}
.mc-nom{flex:1;display:flex;flex-direction:column;min-width:0}
.mc-nom b{font-size:15px;font-weight:600}.mc-nom small{color:#b3b3b3;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-lista li.sonando .mc-nom b{color:#2bd46a}
.mc-dur{font-size:13px;color:#b3b3b3}
.mc-eq{display:inline-flex;gap:2px;align-items:flex-end;height:14px}
.mc-eq b{width:3px;background:#2bd46a;animation:eq .9s ease-in-out infinite}
.mc-eq b:nth-child(2){animation-delay:.3s}.mc-eq b:nth-child(3){animation-delay:.6s}
@keyframes eq{0%,100%{height:4px}50%{height:14px}}
.tema-cancion .yt-card{background:#242424;border-radius:10px}
.mc-pie{text-align:center;font-size:12px;color:#777;padding:10px 20px}

/* ===== TEMA: Videojuego ===== */
.tema-juego{background:#140b2e;color:#e8e6ff;font-family:'VT323',monospace;font-size:20px;padding-bottom:30px;position:relative}
.tema-juego::after{content:"";position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0 2px,rgba(0,0,0,.18) 2px 4px);z-index:1}
.tema-juego .sec-t{font-family:'Press Start 2P',monospace;font-size:11px;line-height:1.6;color:#ffd23f;margin:0 0 14px;text-align:center;text-shadow:2px 2px 0 #7a1fa2}
.jg-hud{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-family:'Press Start 2P',monospace;font-size:10px;background:#0b0620;border-bottom:3px solid #39ff88}
.jg-vidas{color:#ff4fd8;letter-spacing:2px;font-size:12px}
.jg-cab{text-align:center;padding:26px 18px 0}
.jg-pre{font-family:'Press Start 2P',monospace;font-size:9px;color:#39ff88;margin:0}
.jg-titulo{font-family:'Press Start 2P',monospace;font-weight:400;font-size:clamp(20px,6.4vw,30px);line-height:1.35;margin:16px 0;color:#fff;text-shadow:3px 3px 0 #ff4fd8,6px 6px 0 #3a1a8a;overflow-wrap:anywhere}
.jg-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.jg-stats div{border:3px solid #39ff88;background:#0b0620;padding:8px 4px}
.jg-stats small{display:block;font-family:'Press Start 2P',monospace;font-size:8px;color:#39ff88}
.jg-stats b{display:block;font-size:26px;color:#ffd23f;font-weight:400;margin-top:4px}
.jg-pantalla{position:relative;margin:24px 18px 0;border:4px solid #fff;box-shadow:0 0 0 4px #ff4fd8,0 0 0 8px #140b2e,0 0 0 11px #39ff88;aspect-ratio:4/3;overflow:hidden;image-rendering:auto}
.jg-pantalla>img,.jg-pantalla>.ph{width:100%;height:100%;object-fit:cover}
.jg-press{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);font-family:'Press Start 2P',monospace;font-size:9px;background:rgba(11,6,32,.85);padding:6px 8px;color:#ffd23f;white-space:nowrap}
.jg-ct .ct-c{background:#0b0620;border:3px solid #ff4fd8}
.jg-ct b{font-size:34px;color:#39ff88;font-weight:400}
.jg-ct small{font-size:14px}
.jg-fecha{text-align:center;color:#a9a3d9;margin:10px 0 0;font-size:18px}
.jg-dialogo{position:relative;background:#0b0620;border:4px solid #fff;box-shadow:inset 0 0 0 3px #3a1a8a;padding:16px 18px 26px;font-size:21px!important;line-height:1.35!important}
.jg-flecha{position:absolute;right:12px;bottom:4px;color:#ffd23f;animation:parp 1s steps(2) infinite}
.jg-logros{display:grid;gap:12px}
.jg-logro{display:flex;gap:12px;align-items:center;background:#0b0620;border:3px solid #39ff88;padding:8px}
.jg-logro img,.jg-logro .ph{width:76px;height:76px;flex:0 0 76px;object-fit:cover;min-height:0}
.jg-logro-t span{display:block;font-family:'Press Start 2P',monospace;font-size:8px;color:#ffd23f}
.jg-logro-t b{display:block;font-weight:400;font-size:22px;margin-top:6px}
.tema-juego .yt-card{border:4px solid #fff;border-radius:0;background:#0b0620;box-shadow:0 0 0 4px #39ff88}
.tema-juego .yt-info b{font-family:'VT323',monospace;font-size:20px;font-weight:400}
.jg-pie{text-align:center;padding:10px 18px}
.jg-pie p{font-family:'Press Start 2P',monospace;font-size:11px;color:#ff4fd8;margin:0 0 10px}
.jg-pie small{color:#a9a3d9}
.jg-parpadeo{animation:parp 1.1s steps(2) infinite}
@keyframes parp{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.mc-eq b,.sr-vivo,.jg-parpadeo,.jg-flecha{animation:none}}

/* ===== Serie v2: tendencia, en vivo, episodios, similares, pie ===== */
.sr-tendencia{margin:10px 0 2px;font-size:14px;color:#ddd}
.sr-tendencia b{color:#fff}
.sr-reparto{margin:6px 0 0!important;line-height:1.45}
.sr-ctr{margin-top:34px!important}
.sr-envivo{display:flex;align-items:center;gap:9px;margin:0 0 10px;color:#e50914;font-size:11.5px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;line-height:1.5}
.sr-punto{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#e50914;box-shadow:0 0 0 0 rgba(229,9,20,.7);animation:srlatido 1.4s ease-out infinite}
@keyframes srlatido{0%{box-shadow:0 0 0 0 rgba(229,9,20,.7);opacity:1}60%{box-shadow:0 0 0 8px rgba(229,9,20,0);opacity:.55}100%{box-shadow:0 0 0 0 rgba(229,9,20,0);opacity:1}}
.sr-grande{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;margin:0 0 14px}
.sr-grande b{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:46px;line-height:.9;color:#fff}
.sr-grande b.rojo{color:#e50914}
.sr-grande small{font-family:'Bebas Neue',Impact,sans-serif;font-size:17px;letter-spacing:.04em;color:#9a9a9a;text-transform:uppercase;margin-right:8px}
.sr-reloj{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.sr-reloj-caja{display:inline-flex;align-items:center;gap:8px;background:#141414;border:1px solid #2e2e2e;border-radius:10px;padding:8px 14px;font-family:'Space Mono',ui-monospace,monospace;font-size:20px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.sr-reloj-caja i{font-style:normal;color:#666;font-weight:400}
.sr-reloj-caja .rojo{color:#e50914}
.sr-reloj small{font-family:'Space Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.12em;color:#8a8a8a;text-transform:uppercase;line-height:1.5}
.sr-estreno{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:#bbb}
.sr-estreno i{font-style:normal;color:#e50914;font-size:12px}
.sr-estreno b{color:#fff}
.sr-eps{gap:12px!important}
.sr-ep{align-items:stretch!important;background:#141414;border-radius:8px;padding:8px;cursor:zoom-in}
.sr-ep-img{flex:0 0 116px!important;aspect-ratio:4/3!important;border-radius:6px!important}
.sr-ep-t{justify-content:center;gap:4px}
.sr-ep-cab{display:flex;align-items:center;gap:10px}
.sr-ep-n{font-family:'Bebas Neue',Impact,sans-serif;font-size:34px;line-height:1;color:#5a5a5a}
.sr-ep-cab small{display:block;font-size:11.5px;color:#8a8a8a;margin:0}
.sr-ep-cab b{display:block;font-size:15px;line-height:1.2;color:#fff}
.sr-ep-t p{margin:0;font-size:13px;line-height:1.4;color:#a8a8a8}
.sr-mas{display:flex!important;gap:8px!important;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px;padding:0 20px 6px;scrollbar-width:none}
.sr-mas::-webkit-scrollbar{display:none}
.sr-mas-it{flex:0 0 31%;scroll-snap-align:start}
.sr-pie{padding:26px 20px 10px!important;text-align:left!important;border-top:1px solid #1f1f1f;margin-top:10px}
.sr-pie-ligas{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;font-size:13px;color:#777;margin-bottom:16px}
.sr-pie p{margin:0 0 4px;font-size:13px;color:#999}
.sr-pie small{font-size:11.5px;color:#555}

/* ===== Mini barra de música (todos los temas) ===== */
.tema{--acento:#e50914}
.tema-cancion{--acento:#1ed760}
.tema-juego{--acento:#ff4fd8}
.tema.con-musica{padding-bottom:96px}
.mb{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:496px;display:flex;align-items:center;gap:11px;padding:8px 12px 8px 8px;border-radius:16px;background:rgba(20,20,24,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(0,0,0,.5);color:#fff;font-family:'DM Sans',system-ui,sans-serif}
.mb-play{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:0;background:var(--acento);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.tema-cancion .mb-play,.tema-juego .mb-play{color:#000}
.mb-play svg{width:20px;height:20px}
.mb-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.mb-txt b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-txt small{font-size:12px;color:#9a9a9a;font-variant-numeric:tabular-nums}
.mb.fallo .mb-txt small{color:var(--acento);font-weight:700}
.mb-nota{flex:0 0 auto;width:34px;height:34px;border:0;background:none;color:var(--acento);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.mb-nota svg{width:20px;height:20px}
.mb.sonando .mb-nota svg{animation:mbnota 1s ease-in-out infinite}
@keyframes mbnota{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-3px) rotate(-8deg)}75%{transform:translateY(-1px) rotate(8deg)}}
.tema-juego .mb{border-radius:4px;border:2px solid #39ff88;font-family:'VT323',monospace}
.tema-juego .mb-txt b{font-size:18px;font-weight:400}
.tema-juego .mb-txt small{font-size:15px}
.yt-oculto{position:fixed;left:-10000px;top:0;width:200px;height:200px;overflow:hidden;pointer-events:none}
.yt-oculto iframe{width:200px;height:200px;border:0}
.mb-modal{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;padding:16px}
.mb-modal-caja{position:relative;width:100%;max-width:520px;background:#141414;border-radius:14px;overflow:hidden;color:#fff;font-family:'DM Sans',system-ui,sans-serif}
.mb-video{position:relative;aspect-ratio:16/9;background:#000}
.mb-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mb-modal-caja p{margin:0;padding:12px 16px;font-size:14px;font-weight:700}
.mb-cerrar{position:absolute;top:-2px;right:-2px;z-index:2;width:36px;height:36px;border:0;border-radius:0 0 0 12px;background:rgba(0,0,0,.7);color:#fff;font-size:16px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.sr-punto,.mb.sonando .mb-nota svg{animation:none}}
.sr-mas{scroll-padding-inline:20px}
