@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
    --bg: #0b0b10;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.66);
    --faint: rgba(255, 255, 255, 0.18);
    --lime: #ccff00;
    --indigo: #5200ff;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

/* --- Backdrop: the current cover, blurred; a brand gradient until (or unless) there is one --- */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(82, 0, 255, 0.55), transparent 60%),
        radial-gradient(ellipse at 85% 80%, rgba(204, 255, 0, 0.16), transparent 55%),
        var(--bg);
}
.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.85) 100%);
}
.backdrop-art {
    position: absolute;
    inset: -15%;
    background-size: cover;
    background-position: center;
    filter: blur(90px) saturate(1.5);
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s ease;
}
.state-playing .backdrop-art { opacity: 0.8; }

/* --- Header --- */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}
.name { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; }
.links { display: flex; gap: 0.35rem; }
.links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}
.links a:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* --- Stage --- */
.stage {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 1.5rem 4rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 3vh 2rem 0;
}

.cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: grid;
    place-items: center;
}
.cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fade-in 0.8s ease both;
}
.vinyl { width: 78%; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
.state-loading .vinyl { animation: spin 3s linear infinite; }
.cover.has-art .vinyl { visibility: hidden; }

.label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lime);
}
.eq { display: none; gap: 3px; align-items: flex-end; height: 14px; }
.eq i { display: block; width: 3px; height: 100%; background: var(--lime); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-delay: -0.75s; }
.is-live .eq { display: inline-flex; }

.track-title {
    margin: 0.7rem 0 0.2rem;
    font-size: clamp(2.6rem, 6.2vw, 5.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}
.track-title a:hover { color: var(--lime); }
.track-artist { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--muted); }
.track-title:empty, .track-artist:empty { display: none; }

.queue { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.queue li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.35rem 0;
    animation: rise 0.5s ease both;
}
.queue li:nth-child(2) { animation-delay: 0.06s; }
.queue li:nth-child(3) { animation-delay: 0.12s; }
.queue li:nth-child(4) { animation-delay: 0.18s; }
.thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-text { display: flex; flex-direction: column; min-width: 0; }
.q-title, .q-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-title { font-weight: 700; }
a.q-title:hover { color: var(--lime); }
.q-artist { font-size: 0.88rem; color: var(--muted); }
.q-when { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

.unavailable { margin: 1.5rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 32rem; }
.unavailable a { display: inline-block; color: var(--text); font-weight: 700; border-bottom: 2px solid var(--lime); }
.unavailable a:hover { color: var(--lime); }

.about {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--faint);
}
.about p { margin: 0; max-width: 44rem; font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, 0.85); }
.about a { color: var(--text); border-bottom: 1px solid var(--lime); }
.about a:hover { color: var(--lime); }
.flags { display: flex; gap: 0.5rem; flex-shrink: 0; padding-top: 0.35rem; }
.flags img { display: block; border-radius: 2px; }

.demo-badge {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--lime);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
}
.demo-badge[hidden] { display: none; }
.demo-badge a { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Phones and narrow windows --- */
@media (max-width: 820px) {
    .top { padding: 1.1rem 1.25rem; }
    .links a { padding: 0.5rem; }
    .links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .icon { width: 1.15rem; height: 1.15rem; }
    .stage { grid-template-columns: 1fr; padding: 0.5rem 1.25rem 0; gap: 1.75rem; }
    .cover { width: min(100%, 360px); }
    .about { flex-direction: column; gap: 1rem; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
