/* ============================================
   AI MUSIC SHOW — Modern Retro-Futuristic Blend
   ============================================ */

:root {
    --bg-night: #05060b;
    --bg-deep: #0a0d14;
    --smoke: #15141a;
    --panel-base: #121116;
    --panel-dark: #0d0c11;

    --walnut-dark: #241712;
    --walnut-mid: #3c271d;
    --walnut-light: #5f4030;
    --metal-dark: #1d1d25;
    --metal-mid: #2e3038;
    --metal-light: #4b5061;

    --amber: #e3a458;
    --amber-hot: #ffc17b;
    --brass: #9a7042;

    --cyan: #44d4ff;
    --electric-blue: #6f8cff;
    --magenta: #e47aff;

    --text-main: #dad6d0;
    --text-dim: #9998a2;
    --text-faint: #646473;

    --line-subtle: rgba(255, 255, 255, 0.07);
    --line-soft: rgba(255, 255, 255, 0.12);

    --radius-frame: 16px;
    --radius-panel: 12px;

    --shadow-deep:
        0 36px 80px rgba(0, 0, 0, 0.72),
        0 10px 32px rgba(0, 0, 0, 0.5);

    --neon-edge:
        0 0 0 1px rgba(68, 212, 255, 0.2),
        0 0 18px rgba(68, 212, 255, 0.18),
        0 0 40px rgba(228, 122, 255, 0.1);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 18% 12%, rgba(228, 122, 255, 0.09) 0%, transparent 36%),
        radial-gradient(circle at 84% 26%, rgba(68, 212, 255, 0.08) 0%, transparent 36%),
        radial-gradient(circle at 50% 90%, rgba(227, 164, 88, 0.08) 0%, transparent 55%),
        linear-gradient(165deg, #020308 0%, #090b11 48%, #05060b 100%);
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ambient-glow {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 62%, rgba(227, 164, 88, 0.07), transparent 36%),
        radial-gradient(circle at 78% 40%, rgba(68, 212, 255, 0.07), transparent 36%),
        radial-gradient(circle at 50% 50%, rgba(228, 122, 255, 0.05), transparent 44%);
    animation: ambient-float 22s ease-in-out infinite alternate;
    z-index: 0;
}

.console-shell {
    position: relative;
    width: min(1480px, 100%);
    z-index: 1;
}

.console {
    position: relative;
    border-radius: var(--radius-frame);
    background:
        linear-gradient(180deg, #2b2c33 0%, #181920 7%, #101118 14%, #0e0f15 100%);
    border: 1px solid rgba(111, 140, 255, 0.16);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    padding: 18px 18px 14px;
}

.console::before,
.console::after {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 26px;
    z-index: 0;
}

.console::before {
    left: 8px;
    border-radius: 10px 0 0 10px;
    background:
        linear-gradient(180deg,
            var(--walnut-light) 0%,
            #4e3528 8%,
            var(--walnut-mid) 30%,
            var(--walnut-dark) 70%,
            #563b2d 100%
        );
    box-shadow:
        inset 1px 0 0 rgba(255, 209, 164, 0.2),
        inset 0 0 10px rgba(0, 0, 0, 0.35),
        -2px 0 8px rgba(0, 0, 0, 0.5);
}

.console::after {
    right: 8px;
    border-radius: 0 10px 10px 0;
    background:
        linear-gradient(180deg,
            var(--walnut-light) 0%,
            #4e3528 8%,
            var(--walnut-mid) 30%,
            var(--walnut-dark) 70%,
            #563b2d 100%
        );
    box-shadow:
        inset -1px 0 0 rgba(255, 209, 164, 0.2),
        inset 0 0 10px rgba(0, 0, 0, 0.35),
        2px 0 8px rgba(0, 0, 0, 0.5);
}

.console > * {
    position: relative;
    z-index: 1;
    margin-left: 24px;
    margin-right: 24px;
}

.top-ticker {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(68, 212, 255, 0.23);
    background:
        linear-gradient(180deg, rgba(18, 26, 39, 0.95), rgba(9, 13, 20, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 14px rgba(68, 212, 255, 0.14);
    margin-bottom: 10px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.08em;
    color: #9ec9d4;
    overflow: hidden;
}

.ticker-chevron {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--cyan);
    filter: drop-shadow(0 0 5px rgba(68, 212, 255, 0.6));
}

.ticker-label {
    color: #b2d7ea;
    text-transform: uppercase;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ticker-divider {
    color: var(--magenta);
}

.ticker-text {
    font-size: 0.84rem;
    color: #d6eff8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-panel);
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(45, 47, 59, 0.84), rgba(17, 18, 24, 0.9)),
        linear-gradient(90deg, rgba(68, 212, 255, 0.12), rgba(228, 122, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 0 22px rgba(111, 140, 255, 0.1);
}

.brand-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.04em;
    font-size: clamp(1.5rem, 2.3vw, 2.3rem);
    line-height: 1;
}

.logo-ai {
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(68, 212, 255, 0.45);
}

.logo-main {
    margin-left: 0.28em;
    color: #e4deef;
    text-shadow: 0 0 12px rgba(228, 122, 255, 0.3);
}

.logo-dot {
    margin-left: 0.22em;
    font-size: 0.55em;
    color: #afbdd9;
}

.model-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.74rem;
    color: #8f99b1;
    letter-spacing: 0.12em;
}

.brand-right {
    display: flex;
    align-items: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 147, 147, 0.2);
    background: rgba(35, 18, 24, 0.55);
    opacity: 0.55;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c1119;
}

.live-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: #b17f8a;
}

.live-indicator.active {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 80, 80, 0.25);
}

.live-indicator.active .led {
    background: #ff4d4d;
    box-shadow:
        0 0 8px rgba(255, 77, 77, 0.85),
        0 0 20px rgba(255, 77, 77, 0.45);
    animation: led-pulse 1.8s ease-in-out infinite;
}

.live-indicator.active .live-text {
    color: #ffc2c2;
}

.main-stage {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 240px minmax(520px, 1fr) 330px;
    gap: 14px;
    min-height: 640px;
}

.side-module {
    border-radius: var(--radius-panel);
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(20, 21, 29, 0.94), rgba(11, 12, 17, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 8px 26px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.side-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.speaker-stack {
    display: grid;
    gap: 16px;
}

.speaker {
    --bass: 0;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 50%, #0a0b10 0%, #181a22 30%, #2a2d38 52%, #13151b 72%, #0b0d11 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 0 22px rgba(0, 0, 0, 0.62),
        0 6px 18px rgba(0, 0, 0, 0.5);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.speaker-large {
    height: 214px;
}

.speaker-small {
    height: 168px;
}

.speaker::before {
    content: '';
    width: 68%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #3a3f4b 0%, #1a1f2a 45%, #0b0d13 100%);
    border: 2px solid rgba(116, 125, 151, 0.3);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 calc(10px + (var(--bass) * 18px)) rgba(68, 212, 255, 0.16);
    transform: scale(calc(1 + (var(--bass) * 0.09)));
    transition: transform 40ms linear, box-shadow 70ms linear;
}

.speaker::after {
    content: '';
    position: absolute;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(20, 22, 30, 0.95) 68%);
    border: 1px solid rgba(121, 130, 154, 0.24);
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.6),
        0 0 calc(8px + (var(--bass) * 10px)) rgba(255, 193, 123, 0.22);
    transform: scale(calc(1 + (var(--bass) * 0.13)));
    transition: transform 40ms linear, box-shadow 70ms linear;
}

.speaker-ring {
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(255, 193, 123, 0.34);
    box-shadow:
        0 0 calc(10px + (var(--bass) * 12px)) rgba(227, 164, 88, 0.26),
        0 0 calc(14px + (var(--bass) * 18px)) rgba(68, 212, 255, 0.2);
    transform: scale(calc(1 + (var(--bass) * 0.18)));
    opacity: calc(0.42 + (var(--bass) * 0.52));
    transition: transform 40ms linear, opacity 55ms linear, box-shadow 75ms linear;
}

.engage-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 123, 0.26);
    background:
        linear-gradient(180deg, rgba(43, 31, 23, 0.9), rgba(20, 16, 14, 0.95));
    padding: 14px 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 204, 0.18),
        0 0 14px rgba(227, 164, 88, 0.15);
}

.engage-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.22rem;
    color: #f9d6ad;
    letter-spacing: 0.06em;
    text-shadow: 0 0 10px rgba(227, 164, 88, 0.3);
}

.engage-sub {
    margin-top: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: #a88a6d;
    letter-spacing: 0.08em;
}

.center-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-display {
    --bass-glow: 0;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(88, 125, 166, 0.5);
    background:
        radial-gradient(circle at 18% 90%, rgba(227, 164, 88, 0.1), transparent 45%),
        radial-gradient(circle at 78% 20%, rgba(228, 122, 255, 0.12), transparent 42%),
        linear-gradient(170deg, #08101b 0%, #090e17 34%, #06080f 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 0 42px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(68, 212, 255, 0.13),
        0 0 calc(20px + var(--bass-glow) * 30px) rgba(68, 212, 255, calc(0.13 + var(--bass-glow) * 0.25)),
        0 0 calc(24px + var(--bass-glow) * 40px) rgba(228, 122, 255, calc(0.09 + var(--bass-glow) * 0.18)),
        0 0 calc(var(--bass-glow) * 60px) rgba(227, 164, 88, calc(var(--bass-glow) * 0.15));
    overflow: hidden;
    padding: 22px 24px 14px;
    transition: box-shadow 0.08s ease-out;
}

.main-display::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 48% 58%, rgba(255, 255, 255, 0.05), transparent 55%),
        radial-gradient(circle at 70% 25%, rgba(68, 212, 255, 0.06), transparent 45%);
}

.main-display::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.13) 3px,
        rgba(0, 0, 0, 0.13) 4px
    );
    mix-blend-mode: soft-light;
    animation: scan-drift 5.8s linear infinite;
    opacity: 0.45;
}

.display-content {
    position: relative;
    z-index: 2;
}

.display-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.station-freq {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    color: #71c0df;
    text-shadow: 0 0 8px rgba(68, 212, 255, 0.25);
}

.display-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #8f7c62;
    letter-spacing: 0.12em;
}

.display-status.active {
    color: #b8f2ff;
    text-shadow: 0 0 8px rgba(68, 212, 255, 0.38);
}

.track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #dcecff;
    text-shadow:
        0 0 10px rgba(111, 140, 255, 0.35),
        0 0 24px rgba(68, 212, 255, 0.2);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    margin-top: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: #8b9eb8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.track-artist.active {
    color: #d4c0a3;
    text-shadow: 0 0 8px rgba(227, 164, 88, 0.3);
}

.track-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.genre-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    color: #e7dccb;
    border: 1px solid rgba(227, 164, 88, 0.38);
    background: rgba(227, 164, 88, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 215, 168, 0.28);
}

.equalizer-canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 104px;
    min-height: 104px;
    display: block;
    margin-top: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(11, 17, 27, 0.68), rgba(6, 9, 14, 0.88));
    border: 1px solid rgba(116, 125, 151, 0.18);
}

.progress-section {
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    border: 1px solid var(--line-subtle);
    background: linear-gradient(180deg, rgba(20, 23, 33, 0.95), rgba(12, 13, 19, 0.94));
    padding: 11px 12px;
}

.time-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    color: #9fa5b8;
    min-width: 40px;
}

.progress-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 193, 123, 0.08), rgba(68, 212, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.progress-track:hover {
    box-shadow:
        0 0 16px rgba(68, 212, 255, 0.2),
        0 0 10px rgba(227, 164, 88, 0.2);
    transform: translateY(-1px);
}

.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(227, 164, 88, 0.95) 0%, rgba(68, 212, 255, 0.95) 65%, rgba(228, 122, 255, 0.95) 100%);
    box-shadow:
        0 0 10px rgba(68, 212, 255, 0.38),
        0 0 12px rgba(227, 164, 88, 0.34);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7f2ff;
    box-shadow:
        0 0 10px rgba(68, 212, 255, 0.5),
        0 0 16px rgba(228, 122, 255, 0.35);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.progress-track:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

.control-panel {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(43, 31, 23, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(19, 21, 28, 0.95), rgba(10, 10, 14, 0.96));
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 18px;
    align-items: center;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.knob {
    width: 76px;
    height: 76px;
    cursor: ns-resize;
}

.knob-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, #5d6272 0%, #303341 46%, #191b24 76%, #0f1118 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.17),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.5);
    display: grid;
    place-items: center;
    position: relative;
}

.knob-body::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(68, 212, 255, 0.2);
    box-shadow:
        0 0 8px rgba(68, 212, 255, 0.18),
        0 0 10px rgba(227, 164, 88, 0.13);
}

.knob-cap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, #2e2d37 0%, #1d1d24 55%, #101116 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.08s ease;
}

.knob:active .knob-cap {
    transform: scale(0.97);
}

.knob-indicator {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 12px;
    border-radius: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--amber-hot), var(--amber));
    box-shadow:
        0 0 7px rgba(255, 193, 123, 0.75),
        0 0 14px rgba(68, 212, 255, 0.35);
}

.knob-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    color: #c3b29b;
    text-transform: uppercase;
}

.transport-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.transport-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, #363c48 0%, #1f222c 58%, #151820 100%);
    color: #cfdbf5;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.transport-btn:hover {
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 14px rgba(68, 212, 255, 0.28),
        0 0 10px rgba(227, 164, 88, 0.25);
}

.transport-btn:active {
    transform: scale(0.95);
}

.play-btn {
    width: 64px;
    height: 64px;
    border-color: rgba(255, 193, 123, 0.34);
    color: #ffe3bc;
    background:
        linear-gradient(180deg, #473427 0%, #291f1a 45%, #1c1513 100%);
}

.play-btn.active {
    animation: play-breathe 2.8s ease-in-out infinite;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 20px rgba(255, 193, 123, 0.32),
        0 0 12px rgba(68, 212, 255, 0.22);
}

.dj-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.45s ease, padding 0.45s ease;
    margin-top: 0;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(15, 18, 26, 0.95), rgba(9, 12, 17, 0.95));
}

.dj-section.active {
    max-height: 132px;
    opacity: 1;
    margin-top: 12px;
    padding: 12px 14px;
    border-color: rgba(255, 193, 123, 0.22);
}

.dj-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dj-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber-hot);
    box-shadow: 0 0 8px rgba(255, 193, 123, 0.7);
    animation: dj-pulse 1.6s ease-in-out infinite;
}

.dj-name {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.13em;
    color: #e4be8e;
    font-size: 0.78rem;
}

.dj-speech {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #cdd4e3;
    border-left: 2px solid rgba(255, 193, 123, 0.25);
    padding-left: 10px;
}

.dj-speech .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--amber-hot);
    animation: cursor-blink 0.8s step-end infinite;
}

.side-right {
    display: grid;
    grid-template-rows: 1fr minmax(180px, 230px);
    gap: 12px;
    padding: 12px;
    min-height: 0;
}

.chat-panel,
.queue-panel {
    min-height: 0;
    border-radius: 10px;
    border: 1px solid var(--line-subtle);
    background:
        linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(8, 10, 15, 0.96));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-panel {
    box-shadow: var(--neon-edge);
}

.rack-panel {
    border-color: rgba(255, 193, 123, 0.2);
    box-shadow: 0 0 16px rgba(227, 164, 88, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: #9eb7ce;
    text-transform: uppercase;
}

.terminal-header {
    color: #b9dbeb;
}

.header-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(68, 212, 255, 0.7);
}

.listener-count {
    margin-left: auto;
    color: #9e91a3;
    letter-spacing: 0.05em;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.38;
}

.chat-msg {
    color: #bbc6da;
    word-break: break-word;
}

.chat-msg .chat-user {
    color: #86c9f0;
    margin-right: 6px;
}

.chat-msg .chat-user.dj {
    color: #ffd29c;
}

.system-msg {
    color: #9b9db1;
    font-style: italic;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 20, 30, 0.5);
}

.prompt-char {
    font-family: 'Share Tech Mono', monospace;
    color: var(--cyan);
    font-size: 1.1rem;
    opacity: 0.8;
}

.chat-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Share Tech Mono', monospace;
    color: #d9e4ff;
    font-size: 0.82rem;
    caret-color: var(--cyan);
}

.chat-input-row input::placeholder {
    color: #6d7893;
}

.queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    transition: background 0.2s ease;
}

.queue-item:hover {
    background: rgba(255, 193, 123, 0.06);
}

.queue-num {
    font-family: 'Share Tech Mono', monospace;
    color: #877a70;
    min-width: 16px;
    font-size: 0.76rem;
}

.queue-info {
    min-width: 0;
}

.queue-title {
    font-size: 0.85rem;
    color: #e1d1bf;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-genre {
    margin-top: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #8b9ab1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.console-footer {
    margin-top: 14px;
    border-radius: 9px;
    border: 1px solid var(--line-subtle);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: #8b8f9f;
    background: linear-gradient(180deg, rgba(18, 19, 25, 0.92), rgba(10, 10, 15, 0.9));
}

.footer-center {
    color: #ced5e8;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    filter: url(#noise);
    opacity: 0.025;
    z-index: 5;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 124, 158, 0.55);
    border-radius: 999px;
}

::selection {
    background: rgba(68, 212, 255, 0.25);
    color: #ffffff;
}

@media (max-width: 1320px) {
    .main-stage {
        grid-template-columns: 210px minmax(440px, 1fr) 300px;
    }

    .control-panel {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
    }
}

@media (max-width: 1080px) {
    body {
        padding: 16px;
        overflow-y: auto;
        align-items: flex-start;
    }

    .main-stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .side-left {
        order: 2;
        display: grid;
        grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .speaker-stack {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 12px;
    }

    .speaker-large,
    .speaker-small {
        height: 160px;
    }

    .side-right {
        order: 3;
        grid-template-rows: 1fr 180px;
    }
}

@media (max-width: 760px) {
    .console {
        padding: 12px 10px 10px;
    }

    .console::before,
    .console::after {
        width: 14px;
        top: 6px;
        bottom: 6px;
    }

    .console > * {
        margin-left: 10px;
        margin-right: 10px;
    }

    .top-ticker {
        height: 34px;
        font-size: 0.74rem;
    }

    .brand-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        font-size: 1.45rem;
    }

    .side-left {
        grid-template-columns: 1fr;
    }

    .speaker-stack {
        grid-template-columns: 1fr 1fr;
    }

    .control-panel {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        row-gap: 14px;
    }

    .transport-controls {
        grid-column: span 2;
        order: 3;
    }

    .console-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ========================
   MOBILE CONTROLS & TAB BAR
   Hidden on desktop, shown on mobile
   ======================== */
.mobile-controls,
.mobile-tab-bar {
    display: none;
}

@media (max-width: 520px) {
    /* --- FULL VIEWPORT, NO SCROLL --- */
    body {
        padding: 0;
        overflow: hidden;
        align-items: stretch;
        justify-content: stretch;
        height: 100dvh;
        min-height: 0;
    }

    .console-shell {
        width: 100%;
        height: 100dvh;
    }

    .console {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: max(6px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
        border-radius: 0;
        border: none;
        overflow: hidden;
    }

    .console::before,
    .console::after {
        display: none;
    }

    .console > * {
        margin-left: 6px;
        margin-right: 6px;
    }

    /* --- HIDE AMBIENT GLOW ON MOBILE (perf) --- */
    .ambient-glow {
        display: none;
    }

    /* --- TOP TICKER --- */
    .top-ticker {
        height: 26px;
        min-height: 26px;
        margin-bottom: 2px;
        font-size: 0.68rem;
        padding: 0 8px;
        flex-shrink: 0;
    }

    .ticker-label,
    .ticker-divider {
        display: none;
    }

    .ticker-text {
        font-size: 0.68rem;
    }

    /* --- BRAND BAR --- */
    .brand-bar {
        flex-direction: row;
        align-items: center;
        padding: 4px 10px;
        gap: 8px;
        flex-shrink: 0;
    }

    .model-badge {
        display: none;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-dot {
        font-size: 0.7em;
    }

    .live-indicator {
        padding: 3px 8px;
        gap: 5px;
    }

    .live-indicator .live-text {
        font-size: 0.62rem;
    }

    .led {
        width: 6px;
        height: 6px;
    }

    /* --- MAIN STAGE: flex column instead of grid --- */
    .main-stage {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        gap: 4px;
        margin-top: 4px;
    }

    /* --- HIDE SPEAKERS --- */
    .side-left {
        display: none !important;
    }

    /* --- CENTER STACK: compact, no grow --- */
    .center-stack {
        flex: none;
    }

    /* --- MAIN DISPLAY: compact --- */
    .main-display {
        padding: 8px 12px 6px;
        border-radius: 8px;
    }

    .main-display::after {
        display: none;
    }

    .display-top-row {
        display: none;
    }

    .track-title {
        font-size: 1.05rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-artist {
        margin-top: 2px;
        font-size: 0.72rem;
    }

    .track-genre-tags {
        display: none;
    }

    .equalizer-canvas {
        display: block;
        height: 36px;
        min-height: 36px;
        margin-top: 4px;
    }

    /* --- PROGRESS BAR: compact --- */
    .progress-section {
        margin-top: 4px;
        padding: 5px 10px;
        gap: 8px;
        border-radius: 6px;
    }

    .time-display {
        font-size: 0.7rem;
        min-width: 30px;
    }

    /* --- DESKTOP KNOBS: HIDE --- */
    .control-panel {
        display: none !important;
    }

    /* --- DJ SECTION: HIDE (speech still shows in chat) --- */
    .dj-section {
        display: none !important;
    }

    /* --- MOBILE CONTROLS: SHOW --- */
    .mobile-controls {
        display: grid;
        grid-template-columns: 1fr auto 1fr 1fr;
        gap: 6px;
        align-items: center;
        padding: 6px 10px;
        margin-top: 4px;
        border-radius: 8px;
        border: 1px solid var(--line-subtle);
        background: linear-gradient(180deg, rgba(19, 21, 28, 0.95), rgba(10, 10, 14, 0.96));
    }

    .mobile-slider-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .slider-label {
        font-family: 'Share Tech Mono', monospace;
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        color: #c3b29b;
        text-transform: uppercase;
    }

    .mobile-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 5px;
        border-radius: 3px;
        background: linear-gradient(90deg, rgba(255, 193, 123, 0.15), rgba(68, 212, 255, 0.12));
        border: 1px solid rgba(255, 255, 255, 0.06);
        outline: none;
    }

    .mobile-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 28%, #2e2d37, #1d1d24 55%, #101116);
        border: 1px solid rgba(255, 193, 123, 0.4);
        box-shadow: 0 0 6px rgba(255, 193, 123, 0.3), 0 0 3px rgba(68, 212, 255, 0.2);
    }

    .mobile-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 28%, #2e2d37, #1d1d24 55%, #101116);
        border: 1px solid rgba(255, 193, 123, 0.4);
        box-shadow: 0 0 6px rgba(255, 193, 123, 0.3), 0 0 3px rgba(68, 212, 255, 0.2);
    }

    .mobile-transport {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .mobile-transport-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(180deg, #363c48 0%, #1f222c 58%, #151820 100%);
        color: #cfdbf5;
        display: grid;
        place-items: center;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 3px 8px rgba(0, 0, 0, 0.4);
        padding: 0;
    }

    .mobile-play-btn {
        width: 40px;
        height: 40px;
        border-color: rgba(255, 193, 123, 0.34);
        color: #ffe3bc;
        background: linear-gradient(180deg, #473427 0%, #291f1a 45%, #1c1513 100%);
    }

    /* --- SIDE RIGHT: fills remaining space --- */
    .side-right {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: 0;
        gap: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--line-subtle);
        background: linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(8, 10, 15, 0.96));
    }

    /* --- TAB BAR --- */
    .mobile-tab-bar {
        display: flex;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-tab {
        flex: 1;
        padding: 7px 0;
        font-family: 'Share Tech Mono', monospace;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-dim);
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s;
    }

    .mobile-tab.active {
        color: var(--amber);
        border-bottom-color: var(--amber);
    }

    /* --- PANEL HEADERS: hidden (tab bar replaces) --- */
    .chat-panel .panel-header,
    .queue-panel .panel-header {
        display: none;
    }

    /* --- CHAT & QUEUE PANELS --- */
    .chat-panel,
    .queue-panel {
        border-radius: 0;
        border: none;
        background: transparent;
    }

    .chat-panel {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .queue-panel {
        flex: 1;
        min-height: 0;
    }

    .chat-input-row {
        padding: 6px 10px;
    }

    .chat-messages {
        font-size: 0.78rem;
    }

    /* --- FOOTER: HIDE --- */
    .console-footer {
        display: none;
    }
}

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

@keyframes ambient-float {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.04) translate3d(1.5%, -1.5%, 0);
    }
}

@keyframes scan-drift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

@keyframes led-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

@keyframes play-breathe {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            0 0 20px rgba(255, 193, 123, 0.32),
            0 0 12px rgba(68, 212, 255, 0.22);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            0 0 24px rgba(255, 193, 123, 0.45),
            0 0 18px rgba(68, 212, 255, 0.3);
    }
}

@keyframes dj-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.88);
    }
}

@keyframes cursor-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
