:root { --red: #e4343c; --bg: #060607; --ink: #fff; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; cursor: none; }
body:hover { cursor: default; }
#stage { position: fixed; inset: 0; z-index: 1; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5vmin; overflow: hidden; isolation: isolate; --td: 900ms; will-change: opacity, transform; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* entrada de la escena nueva (la anterior se queda debajo = fundido cruzado, sin parpadeo negro) */
.scene.t-fade { animation: tfade var(--td) ease both; }
.scene.t-zoom { animation: tzoom var(--td) cubic-bezier(.2,.7,.2,1) both; }
.scene.t-slide { animation: tslide var(--td) cubic-bezier(.65,0,.2,1) both; }
.scene.t-blur { animation: tblur var(--td) ease both; }
.scene.t-wipe { animation: twipe var(--td) cubic-bezier(.65,0,.2,1) both; }
.scene.t-rise { animation: trise var(--td) cubic-bezier(.2,.7,.2,1) both; }
@keyframes tfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tzoom { from { opacity: 0; transform: scale(1.22); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes tslide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tblur { from { opacity: 0; filter: blur(34px) saturate(1.6); } to { opacity: 1; filter: none; } }
@keyframes twipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes trise { from { opacity: 0; transform: translateY(8vh) scale(.98); } to { opacity: 1; transform: none; } }
/* salida de la escena vieja */
.scene.leave { pointer-events: none; }
.scene.l-zoom { animation: lzoom var(--td) ease both; }
.scene.l-slide { animation: lslide var(--td) cubic-bezier(.65,0,.2,1) both; }
.scene.l-blur { animation: lblur var(--td) ease both; }
.scene.l-rise { animation: lrise var(--td) ease both; }
@keyframes lzoom { to { transform: scale(.92); opacity: 0; } }
@keyframes lslide { to { transform: translateX(-28%); opacity: .25; } }
@keyframes lblur { to { filter: blur(26px); opacity: 0; } }
@keyframes lrise { to { transform: translateY(-5vh); opacity: 0; } }
/* los textos entran escalonados y suaves */
.scene > .lbl, .scene > .title, .scene > .artist, .scene > .chips, .scene > .to, .scene > .who, .scene > .msg, .scene > .from, .scene > .big, .scene > .tag, .scene > .sub, .scene > h2, .scene > .time, .scene > .label, .scene > .cap { animation: in 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--td) * .35); }
.scene > .artist, .scene > .who { animation-delay: calc(var(--td) * .35 + 90ms); }
.scene > .chips, .scene > .msg, .scene > .sub { animation-delay: calc(var(--td) * .35 + 180ms); }
.scene > .from { animation-delay: calc(var(--td) * .35 + 270ms); }
#viz { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; } }
.bgfx { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60vmax 40vmax at 20% 10%, rgba(228,52,60,.22), transparent 60%), radial-gradient(50vmax 40vmax at 90% 100%, rgba(228,52,60,.14), transparent 60%); }
.bgfx::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }
h1, h2, .display { font-family: Unbounded, Inter, sans-serif; font-weight: 800; letter-spacing: -.02em; }

/* Logo idle */
.idle img { width: min(34vmin, 420px); filter: drop-shadow(0 0 40px rgba(228,52,60,.55)); animation: pulse 2.4s ease-in-out infinite; }
.idle .tag { margin-top: 4vmin; font: 800 clamp(18px, 3.2vmin, 40px)/1.2 Unbounded, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #fff; opacity: .9; }
.idle .sub { margin-top: 1.6vmin; font-size: clamp(14px, 2.2vmin, 28px); color: #ffffff99; letter-spacing: .12em; }
@keyframes pulse { 50% { transform: scale(1.04); filter: drop-shadow(0 0 70px rgba(228,52,60,.85)); } }

/* Ahora suena */
.now { align-items: flex-start; text-align: left; padding: 7vmin 8vmin; }
.now .lbl { font: 800 clamp(12px, 2vmin, 24px) Unbounded, sans-serif; letter-spacing: .4em; color: var(--red); display: flex; gap: 1.5vmin; align-items: center; }
.now .lbl i { width: 1.4vmin; height: 1.4vmin; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.now .title { margin-top: 3vmin; font: 800 clamp(34px, 9vmin, 150px)/1 Unbounded, sans-serif; letter-spacing: -.03em; max-width: 100%; word-break: break-word; }
.now .artist { margin-top: 2.4vmin; font: 600 clamp(20px, 4.6vmin, 70px)/1.1 Inter; color: #ffffffcc; }
.now .chips { margin-top: 4vmin; display: flex; gap: 1.6vmin; flex-wrap: wrap; }
.chip { border: 2px solid #ffffff33; border-radius: 99px; padding: .8vmin 2.4vmin; font: 700 clamp(12px, 2.4vmin, 30px) Inter; letter-spacing: .08em; }
.chip.r { background: var(--red); border-color: var(--red); }
.now .cover { position: absolute; right: 8vmin; top: 50%; transform: translateY(-50%); width: 34vmin; height: 34vmin; object-fit: cover; border-radius: 3vmin; box-shadow: 0 0 80px rgba(228,52,60,.4); }
.now.hascover .title, .now.hascover .artist { max-width: 56%; }
.bars { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; display: flex; align-items: flex-end; gap: .5vmin; padding: 0 2vmin; opacity: .85; }
.bars b { flex: 1; background: linear-gradient(to top, var(--red), #ff8a8f); border-radius: .6vmin .6vmin 0 0; height: 100%; transform-origin: bottom; animation: bar var(--d, .5s) ease-in-out infinite alternate; transform: scaleY(.1); }
@keyframes bar { to { transform: scaleY(var(--h, .8)); } }

/* Cola */
.queue { align-items: flex-start; text-align: left; justify-content: flex-start; padding: 6vmin 8vmin; }
.queue h2 { font-size: clamp(24px, 5vmin, 64px); margin-bottom: 4vmin; }
.queue h2 span { color: var(--red); }
.qrow { width: 100%; opacity: 1; display: grid; grid-template-columns: 7vmin 1fr auto; align-items: center; gap: 2vmin; padding: 1.8vmin 2vmin; border-bottom: 1px solid #ffffff1f; font-size: clamp(16px, 3.4vmin, 44px); animation: in .5s ease both; }
.qrow .n { font: 800 1em Unbounded; color: var(--red); }
.qrow .t b { font-weight: 800; }
.qrow .t small { display: block; font-size: .6em; color: #ffffff99; margin-top: .3vmin; }
.qrow .bk { font-size: .6em; color: #ffffffaa; }
.qrow.cur { background: linear-gradient(90deg, rgba(228,52,60,.3), transparent); border-radius: 1.4vmin; }
.empty { color: #ffffff77; font-size: 3vmin; }

/* Imagen / vídeo */
.media { padding: 0; background: #000; }
.media img, .media video, .media iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.media.cover img, .media.cover video { object-fit: cover; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6vmin 6vmin 4vmin; background: linear-gradient(transparent, rgba(0,0,0,.85)); font: 800 clamp(20px, 5vmin, 64px)/1.1 Unbounded, sans-serif; text-align: left; }

/* Dedicatoria */
.ded .to { font: 800 clamp(14px, 2.6vmin, 32px) Unbounded; letter-spacing: .4em; color: var(--red); text-transform: uppercase; }
.ded .who { margin: 2vmin 0 3vmin; font: 800 clamp(40px, 12vmin, 190px)/1 Unbounded; letter-spacing: -.03em; }
.ded .msg { font: 600 clamp(20px, 4.4vmin, 64px)/1.25 Inter; max-width: 80%; color: #ffffffdd; }
.ded .from { margin-top: 4vmin; font: 600 clamp(16px, 3vmin, 40px) Inter; color: #ffffff99; }
.ded .from b { color: #fff; }
.ded.neon .who { text-shadow: 0 0 .1em #fff, 0 0 .35em var(--red), 0 0 .9em var(--red); animation: flick 3s infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 49% { opacity: .6; } 51% { opacity: 1; } }
.ded.gold .who { background: linear-gradient(90deg, #f7d774, #fff2b8, #d9a520, #fff2b8, #f7d774); background-size: 200%; -webkit-background-clip: text; color: transparent; animation: shine 4s linear infinite; }
.ded.gold .to { color: #f0c24a; }
@keyframes shine { to { background-position: 200% 0; } }
.ded.party::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #e4343c, #8a2be2, #1e90ff, #e4343c); background-size: 300% 300%; animation: bgm 8s linear infinite; }
.ded.party .to { color: #fff; }
@keyframes bgm { to { background-position: 300% 0; } }
.ded.clean { background: #fff; color: #111; }
.ded.clean .msg, .ded.clean .from { color: #333; } .ded.clean .from b { color: #000; }

/* Texto grande / ticker */
.big { font: 800 clamp(34px, 11vmin, 200px)/1.05 Unbounded; letter-spacing: -.03em; max-width: 92%; }
.big em { font-style: normal; color: var(--red); }
.ticker { justify-content: center; padding: 0; }
.ticker .tk { white-space: nowrap; font: 800 clamp(60px, 22vmin, 340px)/1 Unbounded; animation: tk var(--s, 18s) linear infinite; }
.ticker .tk span { color: var(--red); margin: 0 .5em; }
@keyframes tk { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* Cuenta atrás */
.cd .time { font: 800 clamp(70px, 26vmin, 460px)/1 Unbounded; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 60px rgba(228,52,60,.6); }
.cd .label { margin-top: 3vmin; font: 800 clamp(16px, 3.6vmin, 44px) Unbounded; letter-spacing: .3em; text-transform: uppercase; color: var(--red); }

.black { background: #000; }
#wm { position: fixed; right: 3vmin; bottom: 3vmin; width: 8vmin; opacity: .8; z-index: 5; filter: drop-shadow(0 0 10px #000); pointer-events: none; }
#hint { position: fixed; top: 2vmin; left: 50%; transform: translateX(-50%); background: #000c; border: 1px solid #ffffff33; padding: 1vmin 2vmin; border-radius: 99px; font-size: 14px; z-index: 9; transition: opacity .6s; }
#hint.gone { opacity: 0; pointer-events: none; }
body.preview #hint { display: none; }

.viz { align-items: flex-start; justify-content: flex-end; text-align: left; padding: 5vmin 6vmin; }
.viz .cap2 { background: linear-gradient(90deg, #000a, transparent); padding: 1.2vmin 3vmin 1.2vmin 0; }
.viz .cap2 b { display: block; font: 800 clamp(18px, 3.6vmin, 48px) Unbounded, sans-serif; }
.viz .cap2 span { color: #fffc; font-size: clamp(13px, 2.4vmin, 32px); }
.now .title, .now .artist, .now .lbl, .ded .who, .ded .msg { text-shadow: 0 2px 30px #000c; }
