/* ---------- design tokens ---------- */
:root {
    --bg-start: #FFD700;
    --bg-end: #FFA500;
    --chassis-start: #FFD700;
    --chassis-end: #FFA500;
    --chassis-accent: #000000;
    --display-bg: #1a1a1a;
    --display-fg: #00FF00;
    --platter-center-ring: #FFD700;
    --accent: #000000;
    --accent-contrast: #FFFFFF;
    --modal-bg: #FFD700;
    --modal-fg: #111111;
    --dock-bg: #1a1a1a;
    --dock-fg: #f5f5f5;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px 60px;
    gap: 30px;
    overflow-x: hidden;
    transition: background 400ms ease;
}

.turntable-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* ---------- control panel ---------- */
.control-panel {
    width: 300px;
    height: 500px;
    background: linear-gradient(145deg, var(--chassis-start), var(--chassis-end));
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 400ms ease;
}

.speaker-grille {
    height: 120px;
    background: var(--chassis-start);
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background 400ms ease;
    overflow: hidden;
}

/* Speaker glow: scales with --volume-level, tinted by --bass-level.
   Gives the volume and bass knobs visible, physical feedback. */
.speaker-grille::after {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 180, 80, calc(0.35 * var(--volume-level, 0))) 0%,
        transparent 65%);
    filter: blur(4px);
    pointer-events: none;
    opacity: calc(0.4 + 0.3 * var(--bass-level, 0));
    transition: opacity 250ms ease;
}

.grille-holes {
    width: 200px;
    height: 80px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
    position: relative;
    z-index: 1;
}

.grille-holes::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 80px;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 20px 10px;
    background-position: 10px 5px;
    opacity: 0.85;
}

/* ---------- display screen ---------- */
.display-screen {
    height: 90px;
    background: var(--display-bg);
    margin: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
    transition: background 400ms ease;
}

.screen-content {
    color: var(--display-fg);
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 6px 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
    transition: color 400ms ease;
}
.screen-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-line.screen-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.screen-line:first-child { font-size: 10px; letter-spacing: 2px; opacity: 0.8; }
.screen-line.screen-album { font-size: 10px; opacity: 0.8; }

/* Transient status ticker. JS calls showTicker() to flash short
   messages ("VOL 72", "33 1/3 RPM", "SHUFFLE ON", ...) when any
   control is used, so every button gives visible feedback even when
   its real-world effect lives inside the Bandcamp embed. */
.screen-ticker {
    margin-top: 2px;
    min-height: 12px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 180ms ease, transform 180ms ease;
    color: inherit;
}
.screen-ticker.is-active { opacity: 1; transform: translateY(0); }

/* Display screen edge glow scales with the LEVELS faders so moving
   those sliders paints coloured rims around the screen. */
.display-screen {
    position: relative;
}
.display-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    pointer-events: none;
    box-shadow:
        inset 0  0 calc(8px * var(--eq-low, 0.5)) rgba(0, 204, 0, 0.6),
        inset 0  0 calc(6px * var(--eq-mid, 0.5)) rgba(204, 0, 0, 0.4),
        inset 0  0 calc(6px * var(--eq-high, 0.3)) rgba(0, 102, 204, 0.4);
    transition: box-shadow 200ms ease;
}

/* ---------- controls ---------- */
.controls-section {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
}
.levels-section { flex: 1; }
.levels-section h3,
.dock-control-section h3 {
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.faders { display: flex; flex-direction: column; gap: 15px; }
.fader { display: flex; align-items: center; gap: 10px; }
.fader-track {
    width: 8px;
    height: 60px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}
.fader-track.blue  { background: #0066CC; }
.fader-track.red   { background: #CC0000; }
.fader-track.green { background: #00CC00; }

.fader-knob {
    width: 16px; height: 16px;
    background: #CCC;
    border-radius: 50%;
    position: absolute;
    left: -4px;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.fader-knob:active { cursor: grabbing; }

.dock-control-section { flex: 1; }
.control-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.indicator-light {
    width: 8px; height: 8px;
    background: #FFF;
    border-radius: 50%;
    margin: 2px;
    transition: background 200ms ease, box-shadow 200ms ease;
}
.indicator-light.is-on {
    background: #38ff6c;
    box-shadow: 0 0 6px rgba(56, 255, 108, 0.9);
}
.control-button {
    width: 20px; height: 20px;
    background: #CCC;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.control-button:hover { background: #AAA; transform: scale(1.1); }
.control-button:active,
.control-button.is-pressed {
    transform: scale(0.9);
    background: #FFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
/* Persistent "on" state for shuffle, repeat, play, pause buttons. */
.control-button.is-active {
    background: #38ff6c;
    box-shadow: 0 0 8px rgba(56, 255, 108, 0.9);
}

.control-knobs {
    display: flex;
    justify-content: space-around;
    gap: 14px;
    margin-top: 6px;
}
.control-knob {
    --knob-angle: 0deg;
    position: relative;
    width: 34px; height: 34px;
    background: radial-gradient(circle at 32% 32%, #555 0%, #1a1a1a 60%, #0a0a0a 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: rotate(var(--knob-angle));
}
.control-knob:hover { transform: rotate(var(--knob-angle)) scale(1.08); }
.control-knob .knob-tick {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #f5f5f5;
    border-radius: 1.5px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
}
.control-knob.is-on {
    box-shadow: 0 0 10px rgba(56, 255, 108, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.control-knob.is-muted .knob-tick {
    background: #ff5050;
    box-shadow: 0 0 4px rgba(255, 80, 80, 0.8);
}
.control-knob[data-action="bass"][data-level="1"] {
    box-shadow: 0 0 10px rgba(255, 160, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.control-knob[data-action="bass"][data-level="2"] {
    box-shadow: 0 0 14px rgba(255, 80, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* ---------- connection cable ---------- */
.connection-cable {
    width: 8px;
    height: 60px;
    background: var(--accent);
    border-radius: 4px;
    position: relative;
}
.connection-cable::before {
    content: '';
    position: absolute;
    top: -10px; left: -4px;
    width: 16px; height: 20px;
    background: var(--accent);
    border-radius: 8px;
}

/* ---------- turntable ---------- */
.turntable {
    width: 450px;
    height: 500px;
    background: linear-gradient(145deg, var(--chassis-start), var(--chassis-end));
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    transition: background 400ms ease;
}

.platter {
    --platter-spin-duration: 3s;
    width: 280px; height: 280px;
    background:
        radial-gradient(circle at center, #333 0%, #000 70%, #000 100%),
        repeating-conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.02) 1deg,
            transparent 2deg);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-top: 20px;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.3);
    /* Keep the animation running but paused when not playing so the
       platter can resume rotation from its current angle instead of
       snapping back to zero when play/pause is toggled. */
    animation: rotate var(--platter-spin-duration) linear infinite;
    animation-play-state: paused;
    overflow: hidden;
}

.platter::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        transparent 0%, transparent 60%,
        rgba(255, 255, 255, 0.05) 70%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.platter.playing {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.platter-art {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}
.platter-art.is-visible { opacity: 1; }

.platter-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 22px; height: 22px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--platter-center-ring);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

/* ---------- tonearm ---------- */
/*
 * Geometry follows a real turntable:
 *
 *   - Pivot (transform-origin) is the top of the vertical support, which
 *     sits just outside the top-right edge of the platter.
 *   - The arm extends from the pivot across the record. The cartridge
 *     (needle) is at the far LEFT tip of the arm, over the groove.
 *   - The counterweight hangs past the pivot on the opposite side,
 *     balancing the arm the way a real counterweight does.
 *   - The cueing lift lever is a small tab mounted beside the support.
 *
 * `data-state` swaps between the parked angle (arm swung up & right onto
 * its rest) and the playing angle (arm swept left-down so the cartridge
 * sits over the outer groove of the record).
 */
.tonearm {
    position: absolute;
    top: 38px;
    right: 42px;
    width: 200px;
    height: 110px;
    /* Pivot at the top of the support column, which lives on the right
       side of the container. Numbers match the support position below. */
    transform-origin: 170px 22px;
    transition: transform 1.05s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(30deg);
    z-index: 4;
    pointer-events: none;
}
.tonearm > * { pointer-events: auto; }

/* Rest: arm swung clockwise — tip raised up and clear of the record.
   Playing: arm swept counter-clockwise so the cartridge drops over
   the outer groove of the record. The angles were tuned against the
   actual DOM geometry so the stylus lands on the record ring, not
   off the platter or over the spindle. */
.tonearm[data-state="rest"]    { transform: rotate(28deg); }
.tonearm[data-state="playing"] { transform: rotate(-6deg); }

/* Vertical pivot column on the right side of the container. */
.tonearm-support {
    position: absolute;
    top: 14px;
    left: 160px;
    width: 20px;
    height: 72px;
    background: linear-gradient(180deg, #555 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 4px 4px 2px 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset -2px 0 2px rgba(0, 0, 0, 0.4);
}

/* Pivot disc sitting on top of the support — the visible hinge.
   Its centre is placed on the tonearm's transform-origin so the arm
   really does swing from the disc, not from somewhere nearby. */
.tonearm-support::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #a8a8a8 0%, #555 55%, #1b1b1b 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Cueing lift lever: small tab clipped to the right side of the
   support so it's an obvious click target without rotating off the arm. */
.tonearm-lift {
    position: absolute;
    top: 30px;
    left: 100%;
    margin-left: 3px;
    width: 20px;
    height: 12px;
    background: linear-gradient(180deg, #a8a8a8 0%, #666 100%);
    border-radius: 2px 7px 7px 2px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.tonearm-lift:hover {
    background: linear-gradient(180deg, #c0c0c0 0%, #777 100%);
    transform: translateX(2px);
}

/* Counterweight: dark cylinder past the pivot on the right side. */
.counterweight {
    position: absolute;
    top: 10px;
    left: calc(100% + 6px);
    width: 26px;
    height: 20px;
    background: radial-gradient(circle at 32% 38%, #555 0%, #1b1b1b 70%, #050505 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* The horizontal arm shaft — starts at the pivot and runs LEFT across
   the platter. Vertical center of the shaft lines up with the pivot
   so there's no visual kink when the arm rotates. */
.tonearm-arm {
    position: absolute;
    top: 19px;
    left: 20px;
    width: 148px;
    height: 6px;
    background: linear-gradient(180deg, #e8e8e8 0%, #b8b8b8 50%, #8a8a8a 100%);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Subtle S-bend at the headshell end so the arm doesn't look like a
   straight stick. Purely cosmetic. */
.tonearm-arm::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -1px;
    width: 26px;
    height: 7px;
    background: linear-gradient(180deg, #e8e8e8 0%, #b8b8b8 50%, #8a8a8a 100%);
    border-radius: 3px;
    transform: rotate(-14deg);
    transform-origin: right center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Cartridge / headshell: block at the FAR tip of the arm where the
   needle meets the record. Positioned absolutely on the arm so the
   whole cartridge rotates with the arm. */
.cartridge {
    position: absolute;
    top: 28px;
    left: 4px;
    width: 26px;
    height: 13px;
    background: linear-gradient(180deg, #bcbcbc 0%, #6a6a6a 100%);
    border-radius: 2px 2px 3px 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    transform: rotate(-14deg);
    transform-origin: top right;
}
/* Stylus / needle tip pointing down onto the record. */
.cartridge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    width: 1.5px;
    height: 5px;
    background: #111;
    border-radius: 1px;
}

/* ---------- turntable controls ---------- */
.turntable-controls {
    position: absolute;
    bottom: 50px; right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.main-knob {
    width: 70px; height: 70px;
    background: radial-gradient(circle at 30% 30%, #333 0%, #000 70%, #000 100%);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255,255,255,0.1);
}
.main-knob:hover { transform: scale(1.05); }
.knob-indicator {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 25px;
    background: #FFF;
    border-radius: 1.5px;
}
.speed-markings { position: absolute; inset: 0; border-radius: 50%; }
.speed-markings::before, .speed-markings::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 8px;
    background: #333;
}
.speed-markings::before { top: 5px; }
.speed-markings::after  { bottom: 5px; }

.control-buttons { display: flex; gap: 15px; }
.control-btn {
    width: 24px; height: 24px;
    background: #FFF;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 700;
    color: #333;
}
.control-btn::before {
    content: attr(data-action);
}
.control-btn:hover { background: #DDD; transform: scale(1.1); }
.control-btn.is-active {
    background: #38ff6c;
    color: #1a1a1a;
    box-shadow: 0 0 8px rgba(56, 255, 108, 0.9);
}

.status-lights { display: flex; gap: 8px; }
.status-light {
    width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: background 200ms ease, box-shadow 200ms ease;
}
.status-light.is-on {
    background: #38ff6c;
    box-shadow: 0 0 6px rgba(56, 255, 108, 0.9);
}

/* ---------- Bandcamp dock ---------- */
.bandcamp-dock {
    width: min(820px, calc(100% - 40px));
    background: var(--dock-bg);
    color: var(--dock-fg);
    border-radius: 15px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 400ms ease, color 400ms ease;
}
.bandcamp-dock-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}
.bandcamp-dock-label {
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-contrast);
    padding: 2px 8px;
    border-radius: 4px;
}
.bandcamp-dock-hint { flex: 1; opacity: 0.85; }
.bandcamp-dock-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bandcamp-embed-wrap {
    min-height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bandcamp-embed {
    width: 100%;
    height: 120px;
    border: 0;
    display: block;
}
.bandcamp-placeholder {
    padding: 18px 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

/* ---------- palette picker ---------- */
.palette-picker {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 8px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1200;
}
.palette-picker-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #333;
    padding-right: 4px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    margin-right: 2px;
}
.palette-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    outline-offset: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.palette-swatch:hover { transform: scale(1.1); }
.palette-swatch.is-active {
    border-color: #111;
    transform: scale(1.15);
}

/* ---------- modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 16px;
    overflow-y: auto;
}
.modal.is-open { display: block; }

.modal-content {
    background: var(--modal-bg);
    color: var(--modal-fg);
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    width: min(640px, 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: background 400ms ease, color 400ms ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.modal-header h2 { margin: 0; font-size: 24px; }
.modal-subtitle { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.modal-subtitle a { color: inherit; }
.close-modal {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.close-modal:hover { transform: scale(1.05); }

.album-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.album-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 12px;
}
.album-art {
    width: 90px; height: 90px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.album-body { flex: 1; min-width: 0; }
.album-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.album-title { font-size: 16px; font-weight: 700; margin: 0; }
.album-meta { font-size: 11px; opacity: 0.7; font-family: 'Courier New', monospace; }

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.track-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
}
.track-item:hover,
.track-item:focus-visible {
    background: rgba(0, 0, 0, 0.1);
    outline: none;
}
.track-item.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}
.track-num { font-family: 'Courier New', monospace; opacity: 0.6; }
.track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-duration { font-family: 'Courier New', monospace; opacity: 0.7; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .turntable-container {
        flex-direction: column;
        gap: 20px;
    }
    .control-panel { width: min(360px, 100%); height: auto; }
    .turntable { width: min(360px, 100%); height: 420px; padding: 20px; }
    .platter { width: 220px; height: 220px; }
    .platter-art { width: 90px; height: 90px; }
    .tonearm { right: 36px; top: 28px; }
    .turntable-controls { bottom: 24px; right: 24px; }
    .connection-cable { display: none; }
    .palette-picker { top: auto; bottom: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .platter {
        animation: none !important;
    }
    .tonearm { transition: none; }
}
