/* ═══════════════════════════════════════════════════════════
   KIKI — Music Room  (Pure Black Edition)
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Pure black surfaces */
    --bg-deepest:      #000000;
    --bg-dark:         #080808;
    --bg-mid:          #101010;
    --bg-light:        #181818;
    --bg-raised:       #202020;

    /* White / silver accent */
    --accent:          #d0d0d0;
    --accent-bright:   #f0f0f0;
    --accent-pale:     #ffffff;
    --accent-glow:     rgba(255, 255, 255, 0.07);

    /* Text */
    --text-bright:     #e8e8e8;
    --text-mid:        #888888;
    --text-dim:        #505050;
    --text-faint:      #2e2e2e;

    /* Alias for consistent refs across component styles */
    --silver:          var(--text-bright);
    --silver-soft:     var(--text-mid);
    --silver-dim:      var(--text-dim);
    --silver-faint:    var(--text-faint);

    /* Sizing */
    --sidebar-w:       240px;
    --transport-h:     88px;
}

html, body { height: 100%; }

body {
    background: var(--bg-deepest);
    color: var(--silver);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }
input  { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.salon {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: 1fr var(--transport-h);
    grid-template-areas:
        "sidebar main"
        "transport transport";
    height: 100vh;
    position: relative;
}

.sidebar       { grid-area: sidebar; }
.main          { grid-area: main; overflow: hidden; position: relative; z-index: 1; display: flex; flex-direction: column; }
.transport-bar { grid-area: transport; z-index: 50; }

/* ═══════════════════════════════════════════════════════════
   AMBIENT BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.orb-1 {
    width: 600px; height: 600px;
    top: -180px; right: -60px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
}

.orb-2 {
    width: 500px; height: 500px;
    bottom: 40px; left: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 65%);
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.97) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 26px 0 20px;
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 28px rgba(0,0,0,0.5);
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.10) 30%,
        rgba(255, 255, 255, 0.10) 70%,
        transparent 100%);
}

/* Brand */
.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 24px;
}

.brand-mark {
    width: 34px; height: 34px;
    color: var(--accent-bright);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 500;
    color: var(--accent-bright);
    line-height: 1;
    letter-spacing: 0.5px;
    font-variant-numeric: lining-nums;
    font-feature-settings: 'lnum' 1;
}

.brand-tagline {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--silver-dim);
    text-transform: uppercase;
    margin-top: 3px;
}

/* Sidebar content */
.sidebar-content {
    padding: 0 18px;
    margin-bottom: 24px;
}

.section-label {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--silver-dim);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Upload card */
.upload-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    width: 100%;
}

.upload-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.03);
}

.upload-card input[type="file"] { display: none; }

.upload-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    flex-shrink: 0;
}

.upload-card-title {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--silver);
}

.upload-card-hint {
    display: block;
    font-size: 10px;
    color: var(--silver-dim);
    margin-top: 1px;
    letter-spacing: 0.3px;
}

/* Spotify block */
.spotify-block {
    margin-bottom: 18px;
}

.spotify-block-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--silver-soft);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0 2px;
}

.spotify-input-row {
    display: flex;
    gap: 6px;
}

.spotify-input-row input[type="url"] {
    flex: 1;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--silver);
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
    min-width: 0;
}

.spotify-input-row input[type="url"]:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.spotify-input-row input[type="url"]::placeholder {
    color: var(--silver-dim);
    font-style: italic;
}

.spotify-go {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.spotify-go:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.spotify-note {
    font-size: 10px;
    color: var(--silver-dim);
    font-style: italic;
    margin-top: 6px;
    padding: 0 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
    opacity: 0;
}

.spotify-note.visible { max-height: 60px; opacity: 1; }

/* Add manually link */
.add-manual-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    color: var(--silver-dim);
    font-size: 11px;
    padding: 6px 4px;
    transition: color 0.15s;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.add-manual-btn:hover { color: var(--silver-soft); }

/* Track list section */
.track-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 4px;
    padding-top: 14px;
}

.track-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
}

.track-count {
    font-size: 9px;
    color: var(--silver-dim);
    font-family: 'DM Mono', monospace;
}

.track-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.track-list::-webkit-scrollbar { width: 3px; }
.track-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.track-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.track-item:hover { background: rgba(255,255,255,0.05); }

.track-item.active {
    background: rgba(255,255,255,0.07);
}

.track-num {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: var(--silver-dim);
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.track-item.active .track-num { color: var(--accent-bright); }

.track-name {
    flex: 1;
    font-size: 11px;
    color: var(--text-mid);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.track-item.active .track-name { color: var(--text-bright); }

.track-empty {
    font-size: 11px;
    color: var(--silver-dim);
    font-style: italic;
    padding: 12px 4px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════ */
.main {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%),
        linear-gradient(180deg, #080808 0%, #000000 100%);
    overflow-x: hidden;
}

.main::-webkit-scrollbar { width: 7px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.07); border-radius: 4px; }
.main::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px 8px;
    gap: 24px;
    flex-shrink: 0;
}

.top-greeting { display: flex; flex-direction: column; gap: 2px; }

.greeting-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: #666;
    line-height: 1.1;
    font-style: italic;
}

.greeting-sub {
    font-size: 12px;
    color: #555;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Immersive mode toggle */
.immersive-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--silver-dim);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.immersive-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--silver);
    border-color: rgba(255,255,255,0.18);
}

/* Exit immersive floating button */
.exit-immersive-btn {
    display: none;
    position: fixed;
    top: 18px; right: 18px;
    z-index: 200;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.45);
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.exit-immersive-btn:hover { color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.75); }

/* ═══ IMMERSIVE MODE ═══ */
body.immersive .sidebar,
body.immersive .top-bar,
body.immersive .transport-bar { display: none !important; }

body.immersive .salon {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "main";
}

body.immersive .main {
    grid-area: main;
    height: 100vh;
}

body.immersive .hero-stage {
    margin: 0;
    border-radius: 0;
    flex: 1;
    height: 100vh;
}

body.immersive .exit-immersive-btn { display: flex; }

/* cursor-idle hides it after 3s inactivity — works in both normal and fullscreen */

/* Idle cursor hide on normal mode */
body.cursor-idle,
body.cursor-idle * { cursor: none !important; }

body.immersive .cabinet-wrap {
    transform: scale(1.48);
    transform-origin: center center;
}

/* ═══════════════════════════════════════════════════════════
   HERO STAGE — Turntable as the center focus
   ═══════════════════════════════════════════════════════════ */
.hero-stage {
    position: relative;
    margin: 8px 24px 0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    /* Dark Sony-style walnut — cooler, richer, less orange */
    background:
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.08) 28%, rgba(0,0,0,0.28) 100%),
        repeating-linear-gradient(
            178deg,
            transparent 0px, transparent 4px,
            rgba(0,0,0,0.08) 4px, rgba(0,0,0,0.08) 5px,
            transparent 5px, transparent 10px,
            rgba(255,255,255,0.014) 10px, rgba(255,255,255,0.014) 11px
        ),
        repeating-linear-gradient(
            182deg,
            transparent 0px, transparent 18px,
            rgba(0,0,0,0.06) 18px, rgba(0,0,0,0.06) 22px,
            transparent 22px, transparent 46px
        ),
        linear-gradient(170deg,
            #4e321a 0%,
            #3c2610 18%,
            #2e1c09 36%,
            #3e2812 52%,
            #4a3018 68%,
            #382212 84%,
            #3c2610 100%);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.75),
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}

.stage-glow {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   CABINET
   ═══════════════════════════════════════════════════════════ */
.cabinet-wrap { position: relative; flex-shrink: 0; }

.cabinet {
    width: 560px;
    position: relative;
    filter: drop-shadow(0 24px 50px rgba(0,0,0,0.7));
}

.cabinet-top-trim {
    height: 8px;
    background: linear-gradient(180deg, #242424 0%, #141414 100%);
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.cabinet-bottom-trim {
    height: 6px;
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border-radius: 0 0 8px 8px;
}

.cabinet-face {
    /* Flat matte black — Sony-style */
    background: #0d0d0d;
    padding: 20px 30px 22px;
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.03);
    border-right: 1px solid rgba(0,0,0,0.5);
}

/* Brand badge */
.brand-badge {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-model {
    font-size: 8px;
    letter-spacing: 3px;
    color: #555;
    text-transform: uppercase;
    font-weight: 500;
}

/* ═══ PLATTER ═══ */
.platter-zone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 18px;
    height: 390px;
}

.platter-shadow {
    position: absolute;
    left: 26px; top: 11px;
    width: 368px; height: 368px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.75) 0%, transparent 65%);
    transform: translateY(24px) scaleX(1.18);
    filter: blur(20px);
    pointer-events: none;
}

/* Photorealistic aluminum platter */
.platter {
    width: 360px; height: 360px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            transparent 47%,
            rgba(255,255,255,0.18) 48.5%,
            rgba(255,255,255,0.04) 49.5%,
            transparent 50.5%),
        conic-gradient(from 215deg at 50% 50%,
            #2a2d33 0deg,
            #4a5058 30deg,
            #6a7180 70deg,
            #8a92a0 110deg,
            #5a6068 160deg,
            #3a3e44 210deg,
            #5a6068 260deg,
            #7a8090 300deg,
            #4a5058 340deg,
            #2a2d33 360deg),
        radial-gradient(circle at 35% 30%, #888, #333 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.14),
        0 0 0 4px rgba(0,0,0,0.75),
        0 8px 28px rgba(0,0,0,0.65),
        inset 0 2px 0 rgba(255,255,255,0.22),
        inset 0 -3px 6px rgba(0,0,0,0.5);
    flex-shrink: 0;
    margin-left: 30px;
}

/* Felt mat */
.platter::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%,
            rgba(0,0,0,0) 0deg, rgba(0,0,0,0.025) 0.4deg,
            rgba(0,0,0,0) 0.8deg),
        radial-gradient(circle, #1c1a18 0%, #141210 60%, #0a0807 100%);
    box-shadow: inset 0 0 14px rgba(0,0,0,0.6);
}

.platter-rings {
    position: absolute; inset: 0;
    border-radius: 50%; overflow: hidden;
    pointer-events: none; z-index: 1;
}

.pr {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.pr1 { width: 95%; height: 95%; border-color: rgba(255,255,255,0.08); }
.pr2 { width: 78%; height: 78%; border-color: rgba(255,255,255,0.04); }
.pr3 { width: 62%; height: 62%; border-color: rgba(255,255,255,0.06); }
.pr4 { width: 46%; height: 46%; border-color: rgba(255,255,255,0.04); }

/* Strobe dots */
.strobe-dots {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg,
            rgba(154, 202, 238, 0.0) 0deg, rgba(154, 202, 238, 0.0) 1deg,
            rgba(154, 202, 238, 0.35) 1deg, rgba(154, 202, 238, 0.35) 2deg,
            rgba(154, 202, 238, 0.0) 2deg, rgba(154, 202, 238, 0.0) 6deg);
    -webkit-mask: radial-gradient(circle,
        transparent calc(50% - 7px), black calc(50% - 7px),
        black calc(50% - 2px), transparent calc(50% - 2px));
    mask: radial-gradient(circle,
        transparent calc(50% - 7px), black calc(50% - 7px),
        black calc(50% - 2px), transparent calc(50% - 2px));
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.4s;
    z-index: 1;
}

.platter.powered .strobe-dots { opacity: 1; }

/* ═══ RECORD ═══ */
.record {
    width: 330px; height: 330px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    will-change: transform;
}

.record.loaded { opacity: 1; }

.record.dropping {
    animation: record-drop 0.85s cubic-bezier(0.34, 1.4, 0.6, 1) forwards;
}

@keyframes record-drop {
    0%   { transform: scale(1.18) translate(0, -36px) rotate(-8deg); opacity: 0; filter: blur(2px); }
    35%  { opacity: 1; filter: blur(0); }
    65%  { transform: scale(0.98) translate(0, 1px) rotate(2deg); }
    85%  { transform: scale(1.005) translate(0, -0.5px) rotate(-0.5deg); }
    100% { transform: scale(1) translate(0, 0) rotate(0); opacity: 1; }
}

.record.settling { animation: settle 0.4s ease-out; }

@keyframes settle {
    0%, 100% { transform: rotate(0); }
    33%       { transform: rotate(0.4deg); }
    66%       { transform: rotate(-0.2deg); }
}

.grooves-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
}

/* Label disc */
.label-disc {
    position: absolute;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--label-color, #8b3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 2px rgba(0,0,0,0.4);
    overflow: hidden;
}

.label-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 32% 25%, rgba(255,255,255,0.22) 0%, transparent 55%);
    border-radius: 50%;
}

.label-arc-text {
    position: absolute;
    top: 7px; width: 100%;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 6.5px;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.label-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    z-index: 1;
    padding: 0 10px;
}

.label-artist {
    font-family: 'Cormorant Garamond', serif;
    font-size: 10px; font-weight: 500;
    color: rgba(255,255,255,0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 84px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.1;
}

.label-divider {
    width: 30px; height: 1px;
    background: rgba(255,255,255,0.4);
}

.label-album {
    font-family: 'Inter', sans-serif;
    font-size: 7px; font-weight: 400;
    color: rgba(255,255,255,0.7);
    max-width: 84px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.1; font-style: italic;
}

.label-spindle {
    position: absolute;
    bottom: 9px; left: 50%;
    transform: translateX(-50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 30%, #000 100%);
    border: 1px solid rgba(0,0,0,0.6);
}

.spindle-pin {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e0e8f4, #8898a8);
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ═══ TONEARM REST CRADLES ═══ */
/* Large rest — cup cradle under the upper arm body */
.tonearm-rest {
    position: absolute;
    top: 96px; right: 64px;
    width: 16px; height: 26px;
    z-index: 4;
    pointer-events: none;
}

/* Cup — concave upward to cradle the arm */
.tonearm-rest::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 8px;
    background: radial-gradient(ellipse at 50% 0%, #2a2a2a 0%, #111111 60%, #080808 100%);
    border-radius: 0 0 7px 7px;
    box-shadow:
        inset 0 -2px 4px rgba(0,0,0,0.7),
        inset 0 2px 0 rgba(255,255,255,0.08),
        0 2px 6px rgba(0,0,0,0.6);
}

/* Post — vertical support below the cup */
.tonearm-rest::after {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 18px;
    background: linear-gradient(90deg, #181818 0%, #0e0e0e 40%, #141414 70%, #1c1c1c 100%);
    border-radius: 3px;
    box-shadow:
        inset 1px 0 0 rgba(255,255,255,0.08),
        1px 0 3px rgba(0,0,0,0.6);
}

/* Small rest — middle right, next to vinyl */
.tonearm-rest-small {
    position: absolute;
    top: 170px; right: 65px;
    width: 13px; height: 24px;
    z-index: 5;
    pointer-events: none;
}

.tonearm-rest-small::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 13px; height: 7px;
    background: radial-gradient(ellipse at 50% 0%, #2a2a2a 0%, #111111 60%, #080808 100%);
    border-radius: 0 0 6px 6px;
    box-shadow:
        inset 0 -2px 4px rgba(0,0,0,0.7),
        inset 0 2px 0 rgba(255,255,255,0.08),
        0 2px 6px rgba(0,0,0,0.6);
}

.tonearm-rest-small::after {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 17px;
    background: linear-gradient(90deg, #181818 0%, #0e0e0e 40%, #141414 70%, #1c1c1c 100%);
    border-radius: 3px;
    box-shadow:
        inset 1px 0 0 rgba(255,255,255,0.08),
        1px 0 3px rgba(0,0,0,0.6);
}

/* ═══ TONEARM ASSEMBLY ═══ */
.tonearm-assembly {
    position: absolute;
    top: -8px; right: 2px;
    width: 130px; height: 400px;
    z-index: 6;
    pointer-events: auto;
    cursor: pointer;
}

/* Pivot bearing housing — large round cap like Sony photo */
.tonearm-pivot {
    position: absolute;
    top: 8px; right: 44px;
    width: 42px; height: 42px;
}

/* Outer bearing ring */
.pivot-base {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%,
            #2a2a2a 0%, #181818 40%, #080808 75%, #0e0e0e 100%);
    box-shadow:
        0 3px 10px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}

/* Inner bearing cap with concentric ring detail */
.pivot-cap {
    width: 28px; height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 32%,
            #323232 0%, #1e1e1e 30%,
            #0e0e0e 65%, #060606 100%);
    position: absolute;
    top: 7px; left: 7px;
    z-index: 12;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.16),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Concentric ring groove on bearing cap */
.pivot-cap::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.55);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.04), inset 0 0 0 2px rgba(0,0,0,0.3);
}

/* Center screw/pin of bearing */
.pivot-cap::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #222, #050505);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ═══ TONEARM — rotates around pivot center ═══ */
.tonearm {
    position: absolute;
    top: 11px;
    left: -12px;
    width: 56px;
    height: 0;
    transform-origin: 28px 0;
    transform: rotate(0deg);
    transition: transform 1.2s cubic-bezier(0.45, 0.05, 0.25, 1);
    cursor: pointer;
    z-index: 11;
    pointer-events: auto;
}

.tonearm.cued-up        { transform: rotate(0deg)  translateY(-8px); }
.tonearm.over-record-up { transform: rotate(16deg) translateY(-8px); }
.tonearm.over-record    { transform: rotate(16deg) translateY(0); transition-duration: 0.45s; }

/* SVG arm — full single-piece arm from pivot to stylus */
.arm-svg {
    position: absolute;
    top: 0; left: 0;
    width: 56px; height: 307px;
    overflow: visible;
    pointer-events: none;
}


/* ═══ MOTOR STATUS LED ═══ */
.motor-status {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #1a2030;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
    transition: all 0.4s;
}

.motor-status.running {
    background: #6ee27a;
    box-shadow: 0 0 6px rgba(110,226,122,0.7), 0 0 12px rgba(110,226,122,0.3);
}

/* ═══ CIRCULAR CONTROL DIALS ═══ */
.ctrl-dial {
    position: absolute;
    right: -24px;
    width: 78px;
    z-index: 4;
    cursor: pointer;
    user-select: none;
}
.ctrl-dial-size  { top: 150px; }
.ctrl-dial-speed { top: 220px; }

.ctrl-dial-hd {
    font-size: 5.5px;
    letter-spacing: 2px;
    color: #3e3e3e;
    text-transform: uppercase;
    font-weight: 500;
    text-align: right;
    margin-bottom: 4px;
    padding-right: 1px;
}
.ctrl-dial-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.ctrl-dial-marks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
}
.cdm {
    font-size: 7px;
    color: #2e2e2e;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.2s;
    line-height: 1;
}
.cdm::after {
    content: '';
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 1px;
    background: #282828;
}
.cdm.active { color: #666; }

.ctrl-dial-body {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background: radial-gradient(circle at 38% 32%, #252525 0%, #111 55%, #060606 100%);
    box-shadow:
        0 3px 10px rgba(0,0,0,0.8),
        0 0 0 1.5px rgba(0,0,0,0.9),
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}
.ctrl-dial-body::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}
.ctrl-dial-ptr {
    position: absolute;
    width: 2px; height: 40%;
    background: linear-gradient(180deg, rgba(160,160,160,0.95) 0%, rgba(90,90,90,0.6) 100%);
    border-radius: 1px;
    left: calc(50% - 1px);
    top: 30%;
    transform-origin: center center;
    transform: rotate(var(--pa, -45deg));
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ═══ BLUETOOTH BUTTON ═══ */
.bt-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.bt-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #1c1c1c, #070707);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 3px 10px rgba(0,0,0,0.75);
    transition: all 0.3s;
}
.bt-btn:hover .bt-circle { color: #555; }
.bt-btn.active .bt-circle {
    color: #4a8fe8;
    border-color: rgba(74,143,232,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 3px 10px rgba(0,0,0,0.75),
        0 0 12px rgba(74,143,232,0.25);
}
.bt-label {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: #2e2e2e;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}
.bt-btn.active .bt-label { color: #4a8fe8; }

/* ═══ CABINET CONTROLS ═══ */
.cabinet-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.speed-cluster, .vu-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ctrl-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.ctrl-label {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--silver-dim);
    text-transform: uppercase;
    font-weight: 500;
}

.power-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1c1c1c, #080808);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.7);
    position: relative;
}

.power-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(110,226,122,0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.power-btn:hover { color: #555; }
.power-btn.on { color: #6ee27a; border-color: rgba(110,226,122,0.2); }
.power-btn.on::after { opacity: 1; }

.speed-pills {
    display: flex;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 3px; gap: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.speed-pill {
    background: none;
    border: none;
    border-radius: 12px;
    color: #444;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 5px 12px;
    transition: all 0.25s;
    text-transform: uppercase;
}

.speed-pill sup { font-size: 8px; }

.speed-pill.active {
    background: rgba(255,255,255,0.06);
    color: #666;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 3px rgba(0,0,0,0.5);
}

.speed-pill:hover:not(.active) { color: #555; }

/* VU meter */
.vu-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.vu-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 1px;
    transition: background 0.1s, height 0.1s;
}

.vu-bar:nth-child(1) { height: 4px; }
.vu-bar:nth-child(2) { height: 6px; }
.vu-bar:nth-child(3) { height: 8px; }
.vu-bar:nth-child(4) { height: 10px; }
.vu-bar:nth-child(5) { height: 12px; }
.vu-bar:nth-child(6) { height: 14px; }
.vu-bar:nth-child(7) { height: 16px; }
.vu-bar:nth-child(8) { height: 16px; }

.vu-bar.lit { background: var(--accent-bright); box-shadow: 0 0 5px var(--accent-glow); }
.vu-bar:nth-child(7).lit, .vu-bar:nth-child(8).lit {
    background: #f08850;
    box-shadow: 0 0 5px rgba(240, 120, 60, 0.5);
}

/* Cabinet feet */
.cabinet-feet {
    display: flex;
    justify-content: space-around;
    margin-top: -2px;
    padding: 0 70px;
}

.foot {
    width: 38px; height: 13px;
    background: linear-gradient(180deg, #1c1c1c, #0a0a0a);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.7);
}

/* ═══════════════════════════════════════════════════════════
   COLLECTION
   ═══════════════════════════════════════════════════════════ */
.library-section { padding: 0 40px 24px; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    color: var(--silver);
    letter-spacing: 0.3px;
}

.see-all {
    background: none; border: none;
    color: var(--silver-dim);
    font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 6px;
}

.see-all:hover { color: var(--accent-bright); }

.album-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.album-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.5));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.album-card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}

.album-card.active {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 24px var(--accent-glow);
}

.album-cover {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.album-cover-art {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cover-bg, #8b3a3a);
    overflow: hidden;
}

.album-cover-art::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18) 0%, transparent 55%),
        linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.album-cover-art::after {
    content: '';
    position: absolute;
    right: -30%; top: 50%;
    transform: translateY(-50%);
    width: 100%; height: 130%;
    background:
        radial-gradient(circle at center, #1a1a1a 36%, #0a0a0a 38%, transparent 40%),
        repeating-radial-gradient(circle,
            transparent 0, transparent 3px,
            rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.04) 4px);
    border-radius: 50%;
    opacity: 0.65;
}

.album-cover-text {
    position: relative; z-index: 2;
    text-align: center; padding: 14px; width: 60%;
}

.cover-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px; font-weight: 500; font-style: italic;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.15; margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.cover-artist {
    font-size: 9px; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 500;
}

.album-cover-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0; transition: opacity 0.25s; z-index: 3;
}

.album-card:hover .album-cover-overlay { opacity: 1; }

.cover-play-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-bright);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.cover-play-btn:hover { transform: scale(1.08); background: var(--accent-pale); }

.album-info { padding: 0 2px; }

.album-info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-style: italic;
    color: var(--silver);
    line-height: 1.2; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.album-info-artist {
    font-size: 11px; color: var(--silver-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: 0.5px;
}

.empty-collection {
    text-align: center;
    padding: 40px 20px;
    color: var(--silver-dim);
    font-size: 13px; font-style: italic;
}

.text-link {
    background: none; border: none;
    color: var(--accent-bright);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px; font-style: italic; font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   TRANSPORT BAR
   ═══════════════════════════════════════════════════════════ */
.transport-bar {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
    position: relative;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
}

.transport-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.tb-now-playing {
    display: flex; align-items: center;
    gap: 14px; min-width: 0;
}

.tb-art {
    width: 56px; height: 56px;
    border-radius: 6px;
    background: var(--art-bg, linear-gradient(135deg, #141414, #0a0a0a));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    flex-shrink: 0; overflow: hidden; position: relative;
    transition: background 0.5s;
}

.tb-art::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.tb-art-default { width: 60%; height: 60%; opacity: 0.5; }

/* Transport sleeve art — vinyl box preview */
.tb-art-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

.tb-sleeve-wrap {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.tb-sleeve-shine {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0.04) 30%,
            transparent 60%);
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
}

.tb-sleeve-vinyl {
    position: absolute;
    right: -18%;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #1a1a1a 36%, #0a0a0a 38%, transparent 40%),
        repeating-radial-gradient(circle,
            transparent 0, transparent 3px,
            rgba(255,255,255,0.05) 3px, rgba(255,255,255,0.05) 4px);
    opacity: 0.7;
    z-index: 1;
}

.tb-sleeve-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 4px 6px 5px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 4;
}

.tb-sleeve-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 9px;
    font-style: italic;
    color: rgba(255,255,255,0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.tb-sleeve-artist {
    font-size: 8px;
    color: rgba(255,255,255,0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.tb-info { min-width: 0; flex: 1; }

.tb-track {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-style: italic;
    color: var(--silver);
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tb-artist {
    font-size: 11px; color: var(--silver-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: 0.3px;
}

.tb-controls {
    display: flex; flex-direction: column; gap: 8px;
}

.tb-buttons {
    display: flex; align-items: center;
    justify-content: center; gap: 16px;
}

.tb-btn {
    background: none; border: none;
    color: var(--silver-soft);
    transition: color 0.15s;
    display: flex; align-items: center; justify-content: center;
}

.tb-btn:hover { color: var(--silver); }
.tb-btn-sm svg { width: 18px; height: 18px; }

.tb-btn-play {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1e1e1e, #080808);
    border: 1px solid rgba(255,255,255,0.08);
    color: #888;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 2px 10px rgba(0,0,0,0.6);
    transition: all 0.2s;
}

.tb-btn-play:hover {
    color: #bbb;
    transform: scale(1.06);
    border-color: rgba(255,255,255,0.15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 4px 16px rgba(0,0,0,0.7);
}

.tb-btn-play svg { width: 14px; height: 14px; }

.tb-progress {
    display: flex; align-items: center; gap: 12px;
}

.tb-time {
    font-size: 10px; color: var(--silver-dim);
    font-family: 'DM Mono', monospace;
    min-width: 32px; text-align: center;
}

.tb-progress-bar {
    flex: 1; height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    position: relative; cursor: pointer;
    transition: height 0.15s;
}

.tb-progress-bar:hover { height: 6px; }

.tb-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-pale));
    border-radius: 2px;
    transition: width 0.3s linear;
    box-shadow: 0 0 8px var(--accent-glow);
}

.tb-progress-head {
    position: absolute;
    top: 50%; left: 0%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-pale);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s, left 0.3s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

.tb-progress-bar:hover .tb-progress-head { transform: translate(-50%, -50%) scale(1); }

.tb-extras {
    display: flex; align-items: center;
    justify-content: flex-end; gap: 16px;
}

.tb-icon-btn {
    background: none; border: none;
    color: var(--silver-dim);
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    padding: 6px; border-radius: 6px;
}

.tb-icon-btn:hover { color: var(--silver); background: rgba(255,255,255,0.04); }
.tb-icon-btn[data-on="true"] { color: var(--accent-bright); }

.tb-volume {
    display: flex; align-items: center; gap: 10px;
    color: var(--silver-dim);
}

.tb-volume input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100px; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px; outline: none; cursor: pointer;
}

.tb-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-bright);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
}

.tb-volume input[type="range"]::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-bright);
    cursor: pointer; border: none;
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 24px;
}

.modal-overlay.hidden { display: none; }

.modal-card {
    width: 100%; max-width: 460px;
    background:
        linear-gradient(160deg, rgba(20, 20, 20, 0.98), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px; padding: 32px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.75),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.modal-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 26px;
}

.modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 500; font-style: italic;
    color: var(--accent-bright); letter-spacing: 0.5px;
}

.modal-close {
    background: none; border: none;
    color: var(--silver-dim); font-size: 24px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.15s;
}

.modal-close:hover { color: var(--silver); background: rgba(255,255,255,0.05); }

.form-row {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px;
}

.form-row label {
    font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver-dim); font-weight: 500;
}

.form-row input[type="text"] {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px; padding: 12px 16px;
    color: var(--silver); font-size: 14px; font-weight: 300;
    outline: none; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-row input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.form-row input[type="text"]::placeholder { color: var(--silver-dim); font-style: italic; }

.color-swatches {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

.swatch {
    width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.swatch:hover { transform: scale(1.15); }

.swatch.active {
    border-color: var(--silver);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 4px 10px rgba(0,0,0,0.5);
}

input[type="color"] {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: none; padding: 0;
    overflow: hidden; -webkit-appearance: none; cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }

.file-drop {
    display: flex; align-items: center; gap: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px dashed rgba(255, 255, 255, 0.10);
    border-radius: 10px; padding: 16px 18px;
    cursor: pointer; transition: all 0.2s;
    color: var(--silver-dim); font-size: 13px;
}

.file-drop:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--silver-soft);
    background: rgba(0,0,0,0.35);
}

.file-drop input[type="file"] { display: none; }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }

.btn-cancel {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--silver-dim); font-size: 13px;
    padding: 12px 20px; transition: all 0.2s; font-weight: 500;
}

.btn-cancel:hover { border-color: rgba(255,255,255,0.25); color: var(--silver-soft); }

.btn-save {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border: none; border-radius: 8px;
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 12px 20px; transition: all 0.2s;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 4px 16px rgba(255, 255, 255, 0.10);
}

.btn-save:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 6px 22px rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Utilities */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Mobile playlist button — hidden on desktop */
.mobile-playlist-btn {
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: var(--text-mid);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 5px 12px 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
}
.mobile-playlist-btn svg { flex-shrink: 0; }

/* Overlay for playlist sheet */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    backdrop-filter: blur(2px);
}
.mobile-overlay.visible { display: block; }

@media (max-width: 720px) {
    .salon {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr var(--transport-h);
        grid-template-areas: "main" "transport";
    }

    /* Sidebar becomes a slide-up bottom sheet */
    .sidebar {
        display: flex !important;
        position: fixed;
        bottom: var(--transport-h);
        left: 0; right: 0;
        height: 58vh;
        max-height: 520px;
        transform: translateY(110%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 200;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.8);
        flex-direction: column;
    }
    .sidebar.mobile-open { transform: translateY(0); }

    /* Handle bar at top of sheet */
    .sidebar::before {
        content: '';
        display: block;
        width: 36px; height: 4px;
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .mobile-playlist-btn { display: flex; }
    .immersive-btn { display: none; }

    .top-bar { padding: 12px 16px 8px; }
    .hero-stage { margin: 4px 8px 0; padding: 0; }
    .library-section { padding: 0 16px 20px; }
    .transport-bar { grid-template-columns: 1fr auto; gap: 12px; padding: 0 12px; }
    .tb-extras { display: none; }
    .tb-progress { display: none; }
}

@media (max-width: 500px) {
    /* Reset the 700px intermediate overrides — we'll scale from desktop dimensions */
    .cabinet { width: 560px; }
    .platter, .platter-shadow { width: 360px; height: 360px; }
    .record { width: 330px; height: 330px; }
    .label-disc { width: 110px; height: 110px; }
    .platter-zone { height: 390px; }
    .tonearm-rest { top: 96px; right: 64px; }

    /* Scale the whole cabinet proportionally to fit the screen */
    .cabinet-wrap { zoom: 0.62; }

    /* Tighten the stage so there's no wasted space */
    .hero-stage { margin: 0 4px 0; padding: 0; }
}
