:root {
    --bg: #030304;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #6e6e73;
    --accent: #635bff;
    --accent-bright: #8b7fff;
    --live: #ff453a;
    --border: rgba(255, 255, 255, 0.08);
    --surface: rgba(255, 255, 255, 0.045);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', ui-sans-serif, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background glow - pure decoration, no interaction */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.glow-a {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: drift-a 22s ease-in-out infinite;
}

.glow-b {
    width: 520px;
    height: 520px;
    bottom: -220px;
    right: -160px;
    background: radial-gradient(circle, #2c1e6b 0%, transparent 70%);
    animation: drift-b 26s ease-in-out infinite;
}

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .glow-a, .glow-b { animation: none; }
}

/* Page layout */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Announcement banner */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px auto 0;
    padding: 10px 18px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--text-primary);
    max-width: fit-content;
    animation: banner-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes banner-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement-banner button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.announcement-banner button:hover {
    color: var(--text-primary);
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.wordmark-mark {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    box-shadow: 0 0 12px rgba(139, 127, 255, 0.7);
}

.admin-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.admin-link:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0 96px;
    gap: 28px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-secondary);
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
    display: inline-flex;
}

.status-dot-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
}

.status-dot.active {
    background: var(--live);
}

.status-dot.active .status-dot-core {
    animation: pulse-ring 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: var(--live);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(255, 69, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.03;
    background: linear-gradient(180deg, #ffffff 0%, #c9c9d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 34ch;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Player */
.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.play-orb {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, var(--accent-bright), var(--accent) 65%);
    box-shadow:
        0 8px 30px rgba(99, 91, 255, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Tied to the audio element's real 'playing' event (not just a click), so
   this only animates once sound is actually reaching the speaker - giving
   an honest signal during the multi-second buffering gap instead of
   implying playback that hasn't started yet. */
.play-orb.audio-active::before,
.play-orb.audio-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-bright);
    opacity: 0;
    animation: orb-ring 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
    pointer-events: none;
}
.play-orb.audio-active::after {
    animation-delay: 1.2s;
}

@keyframes orb-ring {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .play-orb.audio-active::before,
    .play-orb.audio-active::after { animation: none; display: none; }
}

.play-orb svg {
    margin-left: 3px;
}

.play-orb:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(99, 91, 255, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.play-orb:active {
    transform: scale(0.96);
}

.play-orb.disabled {
    cursor: default;
    pointer-events: none;
    background: linear-gradient(145deg, #4a4a52, #2c2c33 65%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.play-label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Meta row / badges */
.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 28px 0 40px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.hidden { display: none !important; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .topbar, .status-label, .hero-title, .hero-subtitle, .player, .meta-row, .announcement-banner {
        animation: none;
    }
}

@media (max-width: 560px) {
    .topbar { padding: 24px 0; }
    .hero { padding: 32px 0 64px; gap: 22px; }
    .play-orb { width: 92px; height: 92px; }
}
