:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --accent: #ff496e;
    --accent-soft: #ff8a73;
    --panel: rgba(18, 15, 28, 0.82);
    --text: #fff8fb;
    --muted: #aaa3b7;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    overflow: hidden;
    background: #0d0b14;
    color: var(--text);
}

.stage {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: clamp(10px, 1.8vw, 28px);
    place-items: center;
    isolation: isolate;
}

.backdrop {
    position: fixed;
    inset: -42px;
    z-index: -4;
    background-position: center;
    background-size: cover;
    filter: blur(34px) saturate(1.25);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 800ms ease, background-image 500ms ease;
}

.backdrop::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(8, 7, 13, 0.82), rgba(20, 12, 26, 0.68));
    content: "";
}

.backdrop.active { opacity: 0.48; }

.ambient {
    position: fixed;
    z-index: -3;
    width: min(60vw, 700px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.ambient-one { top: -30%; left: -15%; background: #a62866; }
.ambient-two { right: -20%; bottom: -40%; background: #783bdb; }

.player-card {
    width: min(1480px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: clamp(22px, 3vw, 38px);
    background: var(--panel);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(28px);
}

.brand-row,
footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px clamp(22px, 4vw, 44px);
}

.brand-row { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }

.brand-mark {
    display: flex;
    align-items: end;
    gap: 3px;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}

.brand-mark span {
    width: 4px;
    border-radius: 9px;
    background: white;
    animation: brand-wave 900ms ease-in-out infinite alternate;
}

.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 100%; animation-delay: -400ms; }
.brand-mark span:nth-child(3) { height: 70%; animation-delay: -200ms; }

.eyebrow, .room { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; }
.room { margin-top: 2px; color: var(--muted); font-size: 13px; }

.live-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #817b8d; }
.live-pill.live { color: #ffafbd; border-color: rgba(255, 73, 110, 0.28); background: rgba(255, 73, 110, 0.08); }
.live-pill.live i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.content {
    display: grid;
    grid-template-columns: minmax(520px, 2.4fr) minmax(250px, 0.8fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    padding: clamp(22px, 3vw, 44px);
}

.art-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    border-radius: clamp(20px, 3vw, 34px);
    background: linear-gradient(145deg, #30283f, #16121f);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.art-shell.has-video { aspect-ratio: 16 / 9; background: #050507; }

.art-shell img,
.art-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 500ms ease, transform 8s ease;
}

.art-shell video {
    z-index: 2;
    object-fit: contain;
    transform: none;
    transition: opacity 300ms ease;
}

.art-shell.loaded img { opacity: 1; transform: scale(1.025); }
.art-shell.video-ready video { opacity: 1; }
.art-shell.video-ready img { opacity: 0; }
.art-placeholder { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.18); font-size: clamp(70px, 15vw, 150px); }
.art-shine { position: absolute; inset: 0; z-index: 3; background: linear-gradient(145deg, rgba(255,255,255,.16), transparent 28%, transparent 72%, rgba(0,0,0,.2)); pointer-events: none; }
.art-shell.video-ready .art-shine { display: none; }

.video-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: none;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 650;
    pointer-events: none;
}

.art-shell.video-ready .video-label,
.art-shell.video-unavailable .video-label { display: block; }

.platform {
    margin: 0 0 12px;
    color: #ff93a8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.artist { overflow: hidden; margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 22px); text-overflow: ellipsis; white-space: nowrap; }

.equalizer {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 54px;
    margin: clamp(24px, 5vw, 48px) 0 20px;
}

.equalizer span {
    width: 5px;
    height: var(--height);
    min-height: 5px;
    border-radius: 10px;
    background: linear-gradient(to top, var(--accent), #ffab81);
    animation: equalize var(--speed) ease-in-out infinite alternate;
    animation-delay: var(--delay);
    transform-origin: center;
}

.equalizer.paused span { animation-play-state: paused; opacity: .42; }

.progress-track { overflow: hidden; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress-value { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffad7a); box-shadow: 0 0 18px rgba(255,73,110,.5); }
.times, .meta-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.times { margin-top: 9px; font-variant-numeric: tabular-nums; }
.meta-row { justify-content: flex-start; gap: 10px; margin-top: 21px; }
.dot { opacity: .4; }

footer { justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #777180; font-size: 12px; }

@keyframes equalize { from { transform: scaleY(.24); } to { transform: scaleY(1); } }
@keyframes brand-wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

@media (max-width: 820px) {
    body { overflow: auto; }
    .stage { padding: 12px; }
    .content { grid-template-columns: 1fr; padding: 24px; }
    .art-shell { width: min(68vw, 360px); justify-self: center; }
    .art-shell.has-video { width: min(92vw, 640px); }
    h1 { font-size: clamp(30px, 10vw, 48px); -webkit-line-clamp: 2; }
    .equalizer { margin-top: 26px; }
    footer { display: none; }
}

@media (min-width: 821px) and (max-height: 760px) {
    .brand-row,
    footer { padding-top: 14px; padding-bottom: 14px; }
    .content { padding-top: 18px; padding-bottom: 18px; }
    .equalizer { height: 38px; margin: 20px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
