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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #999;
    min-height: 100vh;
}

#music-section {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: linear-gradient(180deg, #1a1618 0%, #12100e 40%, #0a0908 100%);
    padding: 0;
    overflow: hidden;
}

.music-sidebar {
    width: 300px;
    min-width: 150px;
    max-width: 500px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px),
        linear-gradient(180deg, #2c251d 0%, #201a14 100%);
    border-right: 1px solid rgba(212, 165, 116, 0.15);
    padding: 30px 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    position: relative;
    transition: width 0.3s ease, min-width 0.3s ease, max-width 0.3s ease, padding 0.3s ease;
    scrollbar-width: none;
}

.music-sidebar::-webkit-scrollbar {
    display: none;
}

.music-sidebar.collapsed {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 30px 0;
}

.music-sidebar.collapsed .music-sidebar-title {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.music-sidebar.collapsed .song-list-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.music-sidebar.collapsed .song-list-num {
    display: none;
}

.music-sidebar.collapsed .song-list-item {
    justify-content: center;
    padding: 6px;
    gap: 0;
    border-color: transparent;
}

.music-sidebar.collapsed .song-list-item.active {
    background: rgba(212, 165, 116, 0.15);
    margin: 0 4px;
}

.music-sidebar.collapsed .song-list-vinyl {
    width: 50px;
    height: 50px;
}

.music-sidebar.collapsed .song-list-cover {
    width: 24px;
    height: 24px;
}

.music-sidebar.collapsed .song-actions {
    display: none;
}

.music-sidebar.collapsed .song-delete-btn {
    display: none;
}

.sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 10;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.dragging {
    background: rgba(212, 165, 116, 0.5);
}

.music-sidebar.collapsed .sidebar-resize-handle {
    display: none;
}

.sidebar-collapse-btn {
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a3530, #2a2520);
    border: 2px solid rgba(212, 165, 116, 0.4);
    color: #d4a574;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #4a4540, #3a3530);
    border-color: #d4a574;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.music-sidebar.collapsed .sidebar-collapse-btn {
    right: -16px;
}

.sidebar-header-area {
    padding: 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    padding-bottom: 16px;
    transition: opacity 0.2s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.music-sidebar.collapsed .sidebar-header-area {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.music-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #f2e8d8;
    margin-bottom: 4px;
    transition: opacity 0.2s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.sidebar-track-count {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(212, 165, 116, 0.55);
}

/* Vinyl Collection Room */
.vinyl-crate-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vinyl-crate-view.hidden {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    z-index: -1;
}

/* Room Background */
.room-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Contain decor z-indexes (speakers, plants, ...) so they can never
       paint above .room-content — the record cards scroll past them. */
    isolation: isolate;
}

.room-wall {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75%;
    background:
        linear-gradient(180deg, #2a2420 0%, #1e1a15 100%),
        repeating-linear-gradient(90deg, transparent 0px, transparent 100px, rgba(255,255,255,0.02) 100px, rgba(255,255,255,0.02) 101px);
}

.room-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg, #1a1510 0%, #12100c 100%);
}

.room-floor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.06), transparent);
}

/* Wall Art */
.wall-art {
    position: absolute;
    top: 12%;
    left: 6%;
}

.art-frame {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #1a1510, #0d0a08);
    border: 5px solid #2a2520;
    box-shadow:
        0 8px 30px rgba(0,0,0,0.6),
        inset 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 165, 116, 0.1);
}

.art-content {
    font-size: 3.5rem;
    color: #d4a574;
    opacity: 0.4;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

/* Wall Clock */
.wall-clock {
    position: absolute;
    top: 10%;
    right: 8%;
}

.clock-face {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #1a1510 0%, #0d0a08 100%);
    border: 5px solid #2a2520;
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(0,0,0,0.5);
}

.clock-face::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: #d4a574;
    border-radius: 2px;
    z-index: 2;
}

.clock-hand.hour {
    width: 4px;
    height: 22px;
    transform: translateX(-50%) rotate(0deg);
}

.clock-hand.minute {
    width: 3px;
    height: 30px;
    transform: translateX(-50%) rotate(0deg);
    z-index: 3;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #d4a574, #a67c4a);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.5);
    z-index: 4;
}

.clock-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clock-mark {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    background: #d4a574;
    transform-origin: 50% calc(40px - 7px);
    border-radius: 1px;
}

.clock-mark.major {
    height: 8px;
    width: 2.5px;
    margin-left: -1.25px;
    background: #e0c090;
}

/* Hanging Lights */
.hanging-lights {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 150px;
}

.light-bulb {
    width: 30px;
    height: 80px;
    position: relative;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #222 0%, #333 100%);
}

.light-bulb::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 32px;
    background: radial-gradient(ellipse at 30% 30%, #fff8e0 0%, #ffd89e 30%, #d4a574 60%, #a67c4a 100%);
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    box-shadow:
        0 0 30px rgba(255, 200, 100, 0.5),
        0 0 60px rgba(255, 180, 80, 0.2);
}

.bulb-glow {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 250px;
    background: radial-gradient(ellipse at top, rgba(255, 200, 100, 0.1) 0%, rgba(255, 180, 80, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

/* Room Content */
.room-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    gap: 30px;
}

/* Left Side */
.room-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0.92;
    transition: opacity 0.3s ease;
    min-width: 230px;
}

.room-left:hover {
    opacity: 1;
}

.mini-turntable {
    width: 230px;
    height: 168px;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.mini-turntable:hover {
    transform: translateY(-3px);
}

.mini-turntable:hover .turntable-base {
    border-color: rgba(212, 165, 116, 0.35);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(212, 165, 116, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-turntable:hover .turntable-led {
    background: #00ff00;
    box-shadow: 0 0 12px #00ff00, 0 0 25px #00ff00;
    animation: none;
}

.turntable-base {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 90% at 25% 0%, rgba(255, 226, 183, 0.05) 0%, transparent 55%),
        linear-gradient(160deg, #2e2822 0%, #241f19 45%, #1b1712 100%);
    border: 1px solid rgba(212, 165, 116, 0.14);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Soft top sheen */
.turntable-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 240, 210, 0.18) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

.turntable-platter {
    width: 126px;
    height: 126px;
    background:
        radial-gradient(ellipse 120% 80% at 35% 25%, rgba(255, 235, 200, 0.07) 0%, transparent 45%),
        linear-gradient(145deg, #262019 0%, #1b1611 45%, #131009 100%);
    border-radius: 50%;
    position: absolute;
    left: 18px;
    top: 20px;
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 235, 200, 0.05),
        0 0 0 2px rgba(212, 165, 116, 0.18),
        0 0 0 3px rgba(0, 0, 0, 0.5),
        0 6px 18px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini strobe light glow */
.turntable-platter::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 35% 35%, #ffcc99 0%, #ff8844 25%, #ff5500 50%, #cc3300 75%, #881100 100%);
    border-radius: 50%;
    box-shadow:
        0 0 2px 1px rgba(255, 100, 30, 0.8),
        0 0 5px 2px rgba(255, 80, 20, 0.5),
        0 0 12px 3px rgba(255, 80, 20, 0.25);
    z-index: 3;
}

.platter-vinyl {
    width: 110px;
    height: 110px;
    position: absolute;
    top: 8px;
    left: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #181818 0%, #181818 12%, transparent 12%),
        conic-gradient(from 0deg at 50% 50%,
            rgba(255,255,255,0.04) 0deg, transparent 15deg,
            rgba(255,255,255,0.02) 30deg, transparent 60deg,
            rgba(255,255,255,0.05) 90deg, transparent 120deg,
            rgba(255,255,255,0.02) 150deg, transparent 180deg,
            rgba(255,255,255,0.04) 210deg, transparent 240deg,
            rgba(255,255,255,0.03) 280deg, transparent 320deg,
            rgba(255,255,255,0.04) 350deg, transparent 360deg
        ),
        repeating-radial-gradient(circle at center,
            #1e1e1e 0px, #1e1e1e 1px,
            #141414 1px, #141414 2px,
            #1a1a1a 2px, #1a1a1a 3px
        );
    animation: spin 2s linear infinite;
    animation-play-state: paused;
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.08),
        0 0 8px rgba(0,0,0,0.3) inset;
}

.platter-vinyl.spinning {
    animation-play-state: running;
}

.platter-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--label-color, #d4a574) 0%, color-mix(in srgb, var(--label-color, #d4a574) 70%, #000) 100%);
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 240, 210, 0.06),
        0 0 0 2px rgba(20, 15, 10, 0.9),
        0 0 0 3px rgba(212, 165, 116, 0.25),
        0 0 6px 4px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.platter-label img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Chrome spindle dot */
.platter-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 35% 35%, #ddd 0%, #aaa 40%, #555 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}

/* Mini strobe dots ring */
.mini-strobe-dots {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #888 0deg 3deg, transparent 3deg 7deg
    );
    mask-image: radial-gradient(circle, transparent 85%, black 86%, black 90%, transparent 91%);
    -webkit-mask-image: radial-gradient(circle, transparent 85%, black 86%, black 90%, transparent 91%);
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
}

/* Mini tonearm base (warm chrome pivot) */
.mini-tonearm-base {
    position: absolute;
    right: 34px;
    top: 14px;
    width: 20px;
    height: 20px;
    background:
        radial-gradient(ellipse 70% 50% at 28% 22%, rgba(255,245,225,0.35) 0%, transparent 45%),
        radial-gradient(circle at 35% 35%, #d0c8be 0%, #a09888 25%, #706860 50%, #484038 75%, #302820 100%);
    border-radius: 50%;
    z-index: 6;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.6),
        0 1px 4px rgba(0,0,0,0.4),
        inset 0 1px 3px rgba(255,240,210,0.2),
        inset 0 -1px 3px rgba(0,0,0,0.3),
        0 0 0 0.5px rgba(200,180,150,0.12);
}

.mini-tonearm-base::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background:
        radial-gradient(ellipse 60% 40% at 28% 22%, rgba(255,250,235,0.5) 0%, transparent 50%),
        radial-gradient(circle at 35% 35%, #f0e8dd 0%, #c0b0a0 30%, #807060 65%, #504840 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(255,240,210,0.35),
        0 1px 2px rgba(0,0,0,0.4);
}

/* Mini tonearm - S-curve style */
.turntable-arm {
    position: absolute;
    right: 42px;
    top: 26px;
    width: 44px;
    height: 3px;
    background: linear-gradient(180deg, #c0b8ae 0%, #908878 40%, #706860 60%, #585048 100%);
    transform: rotate(8deg);
    transform-origin: 100% center;
    border-radius: 2px;
    box-shadow:
        0 1px 4px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,240,210,0.15);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.turntable-arm.playing {
    transform: rotate(-26deg);
}

/* Front arm section (S-curve bend) */
.turntable-arm::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    transform-origin: right center;
    width: 28px;
    height: 2.5px;
    background: linear-gradient(180deg, #c0b8ae 0%, #807060 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,240,210,0.1);
}

/* Headshell at the tip */
.turntable-arm::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    width: 10px;
    height: 6px;
    background: linear-gradient(180deg, #908070 0%, #504840 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,240,210,0.08);
}

.speaker {
    width: 70px;
    height: 100px;
    background: linear-gradient(145deg, #1a1510 0%, #0d0a08 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    padding: 10px;
}

.speaker-cone {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #333 0%, #1a1a1a 50%, #111 100%);
    border-radius: 50%;
    box-shadow: inset 0 3px 12px rgba(0,0,0,0.8);
}

.speaker::after {
    content: '';
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #2a2a2a 0%, #151515 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6);
}

/* Center - Main Content */
.room-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex: 1;
    max-width: 900px;
}

.greeting-text {
    text-align: center;
}

.greeting-text h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.greeting-text p {
    color: #666;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: lowercase;
}

/* Records Display */
.records-display {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.record-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.record-card.now-playing {
    transform: translateY(-18px);
}

.record-card.now-playing::after {
    content: '\266A  NOW PLAYING';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4a574;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
    animation: nowPlayingPulse 2s ease-in-out infinite;
}

@keyframes nowPlayingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.record-card:hover {
    transform: translateY(-20px) scale(1.03);
}

.record-card:hover .vinyl-peek {
    transform: translateX(50px) rotate(8deg);
    opacity: 1;
}

.record-card:hover .cover-glow {
    opacity: 1;
}

.record-card:hover .play-hint {
    opacity: 0;
}

.record-card-vinyl {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.vinyl-peek {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0a0a0a 0%, #0a0a0a 12%, transparent 12%),
        repeating-radial-gradient(circle at center, #151515 0px, #151515 2px, #0a0a0a 2px, #0a0a0a 5px);
    box-shadow: -8px 8px 30px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateX(0) rotate(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0px, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 4px);
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--card-color);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-card-cover {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    z-index: 1;
}

.cover-art {
    width: 100%;
    height: 100%;
    position: relative;
}

.cover-art img.cover-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.cover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
}

.cover-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cover-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.cover-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at center, var(--card-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(25px);
}

.play-hint {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.play-hint span {
    color: #1a1510;
    font-size: 18px;
    margin-left: 4px;
}

/* Collection Stats */
.collection-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 45px;
    background: rgba(10, 8, 6, 0.8);
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4a574;
}

.stat-text {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* Right Side */
.room-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    opacity: 0.9;
    position: relative;
    transition: opacity 0.3s ease;
    min-width: 200px;
}

.room-right:hover {
    opacity: 1;
}


/* Floor Rug */
.floor-rug {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30%;
    background:
        radial-gradient(ellipse, rgba(139, 90, 43, 0.12) 0%, rgba(139, 90, 43, 0.06) 50%, transparent 70%);
    border-radius: 50%;
}

.floor-rug::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    right: 15%;
    bottom: 20%;
    border: 1px solid rgba(139, 90, 43, 0.08);
    border-radius: 50%;
}

/* Floor Speakers */
.floor-speaker {
    position: absolute;
    bottom: 8%;
    z-index: 4;
}

.floor-speaker.left-speaker { left: 20%; }
.floor-speaker.right-speaker { right: 20%; }

.speaker-body {
    width: 70px;
    height: 110px;
    background: linear-gradient(180deg, #1e1a16 0%, #161210 40%, #0e0c0a 100%);
    border-radius: 6px;
    border: 2px solid #2a2520;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.speaker-cone {
    border-radius: 50%;
    border: 2px solid #2a2520;
    position: relative;
}

.speaker-cone.large {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle, #1a1510 0%, #0d0a08 50%, #1a1510 100%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.speaker-cone.large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2520, #1a1510);
    border: 1px solid #333;
}

.speaker-cone.small {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #1a1510 0%, #0d0a08 60%);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.speaker-cone.small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #333;
}

.speaker-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4a574;
    box-shadow: 0 0 6px rgba(212, 165, 116, 0.4);
    margin-top: 2px;
}

/* Floor scattered records */
.floor-records {
    position: absolute;
    bottom: 6%;
    left: 30%;
    z-index: 3;
}

.floor-vinyl {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle, #111 20%, #0a0a0a 22%, #111 24%, #0d0d0d 60%, #0a0a0a 62%, #111 100%);
    border: 1px solid #222;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.floor-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4a574;
    border: 1px solid #a67c4a;
}

.floor-vinyl.v1 {
    bottom: 0;
    left: 0;
    transform: rotate(-15deg);
}

.floor-vinyl.v2 {
    bottom: 6px;
    left: 35px;
    transform: rotate(20deg);
    opacity: 0.8;
}

.floor-vinyl.v3 {
    bottom: -5px;
    left: 55px;
    transform: rotate(-5deg);
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

/* Floor Plant */
.floor-plant {
    position: absolute;
    bottom: 7%;
    right: 22%;
    z-index: 4;
}

.plant-pot {
    width: 30px;
    height: 28px;
    background: linear-gradient(180deg, #6b4226 0%, #5a3520 50%, #4a2a18 100%);
    border-radius: 2px 2px 6px 6px;
    clip-path: polygon(5% 0%, 95% 0%, 85% 100%, 15% 100%);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.plant-pot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    right: -3px;
    height: 6px;
    background: linear-gradient(180deg, #7a5030, #5a3520);
    border-radius: 3px;
}

.plant-stem {
    position: absolute;
    width: 2px;
    background: #3a6b3a;
    border-radius: 1px;
    transform-origin: bottom center;
    bottom: 24px;
    left: 50%;
    z-index: 1;
}

.plant-stem.s1 { height: 30px; transform: translateX(-50%) rotate(-8deg); }
.plant-stem.s2 { height: 36px; transform: translateX(-50%) rotate(12deg); }
.plant-stem.s3 { height: 26px; transform: translateX(-50%) rotate(-20deg); }

.plant-leaf {
    position: absolute;
    width: 16px;
    height: 8px;
    background: radial-gradient(ellipse, #4a8b4a, #3a6b3a);
    border-radius: 50%;
    z-index: 1;
}

.plant-leaf.l1 {
    bottom: 50px;
    left: 2px;
    transform: rotate(-30deg);
}

.plant-leaf.l2 {
    bottom: 56px;
    left: 18px;
    transform: rotate(25deg);
}

.plant-leaf.l3 {
    bottom: 42px;
    left: -6px;
    transform: rotate(-50deg);
    width: 14px;
    height: 7px;
}

/* Wall Poster */
.wall-poster {
    position: absolute;
    top: 15%;
    left: 17%;
}

.poster-content {
    width: 90px;
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #0f3460;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.poster-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(233, 69, 96, 0.1) 50%, transparent 60%);
}

.poster-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e94560;
    text-align: center;
    letter-spacing: 3px;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

/* Wall Shelf */
.wall-shelf {
    position: absolute;
    top: 22%;
    right: 12%;
}

.shelf-board {
    width: 130px;
    height: 12px;
    background: linear-gradient(180deg, #3d3028 0%, #2a2018 100%);
    border-radius: 3px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.shelf-board::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

.shelf-items {
    position: absolute;
    bottom: 12px;
    left: 10px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.shelf-book {
    width: 18px;
    height: 45px;
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border-radius: 2px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.shelf-book.b2 {
    height: 38px;
    background: linear-gradient(90deg, #2e4a62 0%, #3d5a80 50%, #2e4a62 100%);
}

.shelf-headphones {
    width: 35px;
    height: 30px;
    position: relative;
    margin-left: 5px;
}

.shelf-headphones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 25px;
    height: 15px;
    border: 4px solid #333;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.shelf-headphones::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 15px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-radius: 3px;
    box-shadow: 23px 0 0 linear-gradient(180deg, #333 0%, #222 100%);
}

/* Clock improvements */
/* String Lights */
.string-lights {
    position: absolute;
    top: 3%;
    left: 3%;
    right: 3%;
    height: 80px;
}

.string-wire {
    width: 100%;
    height: 100%;
    position: absolute;
}

.string-wire path {
    stroke: #444;
    stroke-width: 2;
}

.string-bulb {
    position: absolute;
    top: 30px;
    width: 12px;
    height: 18px;
    background: radial-gradient(ellipse at top, #fffbe8 0%, #ffd89e 40%, #d4a574 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow:
        0 0 15px rgba(255, 216, 158, 0.6),
        0 0 30px rgba(255, 200, 100, 0.3),
        0 0 50px rgba(255, 180, 80, 0.15);
    animation: stringGlow 3s ease-in-out infinite;
}

.string-bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 5px;
    background: #555;
    border-radius: 2px 2px 0 0;
}

.string-bulb:nth-child(2) { animation-delay: 0.5s; top: 35px; }
.string-bulb:nth-child(3) { animation-delay: 1s; top: 28px; }
.string-bulb:nth-child(4) { animation-delay: 1.5s; top: 32px; }
.string-bulb:nth-child(5) { animation-delay: 2s; top: 30px; }
.string-bulb:nth-child(6) { animation-delay: 2.5s; top: 35px; }
.string-bulb:nth-child(7) { animation-delay: 3s; top: 28px; }

@keyframes stringGlow {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 10px rgba(255, 216, 158, 0.4), 0 0 20px rgba(255, 200, 100, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(255, 216, 158, 0.8), 0 0 40px rgba(255, 200, 100, 0.4), 0 0 60px rgba(255, 180, 80, 0.2); }
}

/* Dust Particles */
.dust-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.dust-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 220, 150, 0.4);
    border-radius: 50%;
    animation: dustFloat 10s ease-in-out infinite;
}

.dust-particles span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.dust-particles span:nth-child(2) { left: 35%; top: 40%; animation-delay: 1s; }
.dust-particles span:nth-child(3) { left: 55%; top: 25%; animation-delay: 2s; }
.dust-particles span:nth-child(4) { left: 75%; top: 45%; animation-delay: 3s; }
.dust-particles span:nth-child(5) { left: 25%; top: 60%; animation-delay: 4s; }
.dust-particles span:nth-child(6) { left: 45%; top: 55%; animation-delay: 5s; }
.dust-particles span:nth-child(7) { left: 65%; top: 35%; animation-delay: 6s; }
.dust-particles span:nth-child(8) { left: 85%; top: 50%; animation-delay: 7s; }
.dust-particles span:nth-child(9) { left: 20%; top: 70%; animation-delay: 8s; }
.dust-particles span:nth-child(10) { left: 60%; top: 65%; animation-delay: 9s; }

@keyframes dustFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-15px) translateX(5px); opacity: 0.6; }
    50% { transform: translateY(-5px) translateX(-5px); opacity: 0.4; }
    75% { transform: translateY(-20px) translateX(3px); opacity: 0.5; }
}

/* Ambient Overlay */
.ambient-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, transparent 0%, transparent 40%, rgba(0,0,0,0.4) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 200, 100, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Vignette effect */
.room-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px 50px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Setup Stand - Left Side */
.setup-stand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stand-shelf {
    width: 230px;
    height: 78px;
    background:
        radial-gradient(ellipse 120% 90% at 25% 0%, rgba(255, 226, 183, 0.04) 0%, transparent 55%),
        linear-gradient(160deg, #262019 0%, #1c1712 55%, #161210 100%);
    border: 1px solid rgba(212, 165, 116, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.amp-unit {
    width: 100%;
    height: 100%;
    background: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.amp-display {
    width: 100%;
    height: 24px;
    background: linear-gradient(180deg, #160d03 0%, #201305 100%);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(255, 170, 80, 0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.amp-display-text {
    color: #ffc97a;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(255, 180, 90, 0.55);
    display: inline-block;
}

.amp-display-text.scrolling {
    animation: ampScroll 8s linear infinite;
}

@keyframes ampScroll {
    0% { transform: translateX(0); }
    10% { transform: translateX(0); }
    90% { transform: translateX(var(--scroll-distance)); }
    100% { transform: translateX(var(--scroll-distance)); }
}

.amp-knobs {
    display: flex;
    justify-content: space-evenly;
    margin-top: 8px;
}

.amp-knobs span {
    width: 20px;
    height: 20px;
    background:
        radial-gradient(circle at 32% 28%, #4c443a, #241f19 70%);
    border: 1px solid rgba(212, 165, 116, 0.18);
    border-radius: 50%;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 240, 210, 0.1);
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.amp-knobs span:hover {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(212, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 240, 210, 0.12);
}

.amp-knobs span:active {
    transform: scale(0.9);
}

.amp-knobs span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #d4a574;
    border-radius: 1px;
}

/* Mini pitch slider */
.mini-pitch-slider {
    position: absolute;
    right: 14px;
    top: 54%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 7;
    cursor: pointer;
}

.mini-pitch-track {
    width: 5px;
    height: 68px;
    background:
        linear-gradient(to right, rgba(0,0,0,0.3), transparent 30%, transparent 70%, rgba(0,0,0,0.3)),
        linear-gradient(to bottom, #161210 0%, #1e1a16 20%, #201c18 50%, #1e1a16 80%, #161210 100%);
    border-radius: 3px;
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.6),
        inset 0 -1px 2px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,240,210,0.06);
}

.mini-pitch-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -7px;
    margin-top: -3.5px;
    width: 14px;
    height: 7px;
    background: linear-gradient(to bottom,
        #e0d8d0 0%, #d0c8c0 8%, #b0a8a0 22%,
        #908880 40%, #706860 60%, #585048 78%, #484038 100%
    );
    border-radius: 2px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,240,210,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    cursor: grab;
}

.mini-pitch-thumb:hover {
    background: linear-gradient(to bottom,
        #f0e8e0 0%, #e0d8d0 8%, #c0b8b0 22%,
        #a09888 40%, #807870 60%, #686058 78%, #585048 100%
    );
}

.mini-pitch-detent {
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5px;
    background: linear-gradient(to right, #c09060, #d4a574);
    border-radius: 1px;
}

.mini-pitch-value {
    font-size: 0.5rem;
    color: #e0b888;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.turntable-led {
    position: absolute;
    bottom: 10px;
    left: 18px;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle at 35% 35%, #706860 0%, #484038 50%, #302820 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(255,240,210,0.08),
        inset 0 -1px 1px rgba(0,0,0,0.3),
        0 0 0 1px #1e1a16,
        0 0 0 1.5px #504840;
    transition: all 0.4s ease;
}

.turntable-led.on {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #aaffaa 15%, #44ff44 35%, #00dd00 55%, #00aa00 80%, #007700 100%);
    box-shadow:
        0 0 2px 1px #22ff22,
        0 0 5px 2px rgba(0,255,0,0.6),
        0 0 12px 3px rgba(0,255,0,0.3),
        0 0 25px 6px rgba(0,255,0,0.1),
        inset 0 -1px 1px rgba(0,80,0,0.3),
        0 0 0 1px rgba(0,255,0,0.4),
        0 0 0 1.5px rgba(0,80,0,0.3);
    animation: ledBlink 2s ease-in-out infinite;
}

@keyframes ledBlink {
    0%, 100% { box-shadow: 0 0 2px 1px #22ff22, 0 0 5px 2px rgba(0,255,0,0.6), 0 0 12px 3px rgba(0,255,0,0.3), 0 0 25px 6px rgba(0,255,0,0.1), 0 0 0 1px rgba(0,255,0,0.4), 0 0 0 1.5px rgba(0,80,0,0.3); }
    50% { box-shadow: 0 0 3px 1px #44ff44, 0 0 8px 3px rgba(0,255,0,0.7), 0 0 18px 5px rgba(0,255,0,0.4), 0 0 35px 10px rgba(0,255,0,0.15), 0 0 0 1px rgba(0,255,0,0.6), 0 0 0 1.5px rgba(0,80,0,0.4); }
}

/* Mode buttons: 2x2 grid under the deck, sized to match it */
.side-table {
    position: relative;
    width: 230px;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.side-table .loop-btn {
    margin: 0;   /* stacked-layout margins don't apply in the grid */
}

.loop-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px 10px;
    background:
        radial-gradient(ellipse 130% 100% at 30% 0%, rgba(255, 226, 183, 0.03) 0%, transparent 60%),
        linear-gradient(160deg, #241e17 0%, #191410 100%);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.loop-btn:hover {
    background:
        radial-gradient(ellipse 130% 100% at 30% 0%, rgba(255, 226, 183, 0.05) 0%, transparent 60%),
        linear-gradient(160deg, #2b241b 0%, #1e1813 100%);
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.loop-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #2a2015 0%, #191309 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.25);
}

.loop-svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.loop-btn:hover .loop-svg {
    transform: scale(1.1);
}

.loop-btn:active .loop-svg {
    transform: scale(0.92);
}

.loop-btn-label {
    font-size: 0.56rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Loop off */
.loop-btn[data-loop="off"] .loop-btn-icon {
    color: rgba(255,255,255,0.2);
}

/* Loop playlist */
.loop-btn[data-loop="playlist"] {
    border-color: rgba(212, 165, 116, 0.2);
}

.loop-btn[data-loop="playlist"] .loop-btn-icon {
    color: #d4a574;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.12) 0%, rgba(212, 165, 116, 0.04) 100%);
    border-color: rgba(212, 165, 116, 0.25);
    box-shadow: 0 0 16px rgba(212, 165, 116, 0.15);
    animation: loopGlowWarm 2.5s ease-in-out infinite;
}

@keyframes loopGlowWarm {
    0%, 100% { box-shadow: 0 0 12px rgba(212, 165, 116, 0.15); }
    50% { box-shadow: 0 0 22px rgba(212, 165, 116, 0.3); }
}

.loop-btn[data-loop="playlist"] .loop-btn-label {
    color: rgba(212, 165, 116, 0.6);
}

/* Loop single */
.loop-btn[data-loop="single"] {
    border-color: rgba(126, 184, 218, 0.2);
}

.loop-btn[data-loop="single"] .loop-btn-icon {
    color: #7eb8da;
    background: radial-gradient(circle, rgba(126, 184, 218, 0.12) 0%, rgba(126, 184, 218, 0.04) 100%);
    border-color: rgba(126, 184, 218, 0.25);
    box-shadow: 0 0 16px rgba(126, 184, 218, 0.15);
    animation: loopGlowCool 2.5s ease-in-out infinite;
}

@keyframes loopGlowCool {
    0%, 100% { box-shadow: 0 0 12px rgba(126, 184, 218, 0.15); }
    50% { box-shadow: 0 0 22px rgba(126, 184, 218, 0.3); }
}

.loop-btn[data-loop="single"] .loop-btn-label {
    color: rgba(126, 184, 218, 0.6);
}

/* Shuffle button */
.shuffle-btn {
    margin-top: 8px;
}

.shuffle-btn[data-shuffle="shuffle"] {
    border-color: rgba(180, 140, 200, 0.2);
}

.shuffle-btn[data-shuffle="shuffle"] .loop-btn-icon {
    color: #b88cc8;
    background: radial-gradient(circle, rgba(180, 140, 200, 0.12) 0%, rgba(180, 140, 200, 0.04) 100%);
    border-color: rgba(180, 140, 200, 0.25);
    box-shadow: 0 0 16px rgba(180, 140, 200, 0.15);
    animation: loopGlowPurple 2.5s ease-in-out infinite;
}

.shuffle-btn[data-shuffle="shuffle"] .loop-btn-label {
    color: rgba(180, 140, 200, 0.6);
}

@keyframes loopGlowPurple {
    0%, 100% { box-shadow: 0 0 12px rgba(180, 140, 200, 0.15); }
    50% { box-shadow: 0 0 22px rgba(180, 140, 200, 0.3); }
}

/* Smart Shuffle state */
.shuffle-btn[data-shuffle="smart"] {
    border-color: rgba(80, 200, 120, 0.2);
}

.shuffle-btn[data-shuffle="smart"] .loop-btn-icon {
    color: #50c878;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.12) 0%, rgba(80, 200, 120, 0.04) 100%);
    border-color: rgba(80, 200, 120, 0.25);
    box-shadow: 0 0 16px rgba(80, 200, 120, 0.15);
    animation: loopGlowGreen 2.5s ease-in-out infinite;
}

.shuffle-btn[data-shuffle="smart"] .loop-btn-label {
    color: rgba(80, 200, 120, 0.6);
}

@keyframes loopGlowGreen {
    0%, 100% { box-shadow: 0 0 12px rgba(80, 200, 120, 0.15); }
    50% { box-shadow: 0 0 22px rgba(80, 200, 120, 0.3); }
}

/* Radio song item in sidebar */
.radio-song-item {
    border-left: 3px solid rgba(80, 200, 120, 0.5) !important;
    background: rgba(80, 200, 120, 0.04) !important;
    position: relative;
}

.radio-song-item .song-list-num {
    display: none;
}

.radio-badge {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #50c878;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.song-save-btn {
    background: none;
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: #50c878;
    cursor: pointer;
    font-size: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    line-height: 1;
}

.song-save-btn:hover {
    background: rgba(80, 200, 120, 0.15);
    border-color: #50c878;
}

.song-save-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Radio loading indicator */
.radio-loading {
    padding: 6px 12px;
    font-size: 11px;
    color: rgba(80, 200, 120, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.radio-loading-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #50c878;
    animation: radioDot 1.2s ease-in-out infinite;
}

.radio-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.radio-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes radioDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

.coffee-mug {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.mug-body {
    width: 35px;
    height: 40px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 50%, #b0b0b0 100%);
    border-radius: 4px 4px 10px 10px;
    position: relative;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.mug-body::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 12px;
    background: linear-gradient(180deg, #3d2817 0%, #5a3d2a 100%);
    border-radius: 3px;
}

.mug-handle {
    position: absolute;
    right: -12px;
    top: 8px;
    width: 14px;
    height: 22px;
    border: 4px solid #c0c0c0;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.mug-steam {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.mug-steam span {
    position: absolute;
    width: 3px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    animation: steam 2.5s ease-in-out infinite;
}

.mug-steam span:nth-child(1) { left: -8px; animation-delay: 0s; }
.mug-steam span:nth-child(2) { left: 0; animation-delay: 0.4s; }
.mug-steam span:nth-child(3) { left: 8px; animation-delay: 0.8s; }

@keyframes steam {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.25; }
    50% { transform: translateY(-15px) scaleY(1.8); opacity: 0; }
}

/* Vinyl Crate Decoration */
.vinyl-crate-decor {
    position: relative;
}

.crate-box {
    width: 110px;
    height: 85px;
    background: linear-gradient(180deg, #4a3828 0%, #3d2d20 50%, #2a1f15 100%);
    border-radius: 5px;
    padding: 12px;
    box-shadow:
        inset 0 -3px 8px rgba(0,0,0,0.3),
        0 8px 25px rgba(0,0,0,0.5);
    perspective: 100px;
}

.crate-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255,255,255,0.05);
}

.crate-records {
    display: flex;
    gap: 4px;
    height: 100%;
    align-items: flex-end;
}

.crate-record {
    width: 18px;
    height: 90%;
    background: linear-gradient(90deg, #111 0%, #252525 50%, #111 100%);
    border-radius: 2px;
    position: relative;
    transform: rotateY(-5deg);
    cursor: pointer;
    transition: transform 0.2s ease, height 0.2s ease;
}

.crate-record:hover {
    transform: rotateY(-5deg) translateY(-8px);
    height: 95%;
}

.crate-record::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: var(--r-color);
    border-radius: 50%;
}

.crate-label {
    font-size: 0.6rem;
    color: #555;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Cat Silhouette */
.cat-silhouette {
    position: absolute;
    bottom: -70px;
    right: 10px;
    opacity: 0.4;
}

.cat-body {
    width: 60px;
    height: 38px;
    background: #151515;
    border-radius: 50% 50% 40% 40%;
}

.cat-head {
    position: absolute;
    top: -18px;
    left: -8px;
    width: 32px;
    height: 28px;
    background: #151515;
    border-radius: 50% 50% 45% 45%;
}

.cat-ear {
    position: absolute;
    top: -10px;
    width: 12px;
    height: 16px;
    background: #151515;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-ear.left { left: 2px; transform: rotate(-15deg); }
.cat-ear.right { right: 2px; transform: rotate(15deg); }

.cat-tail {
    position: absolute;
    right: -25px;
    top: 8px;
    width: 35px;
    height: 8px;
    background: #151515;
    border-radius: 4px;
    transform: rotate(-20deg);
    transform-origin: left center;
    animation: tailWag 3s ease-in-out infinite;
}

@keyframes tailWag {
    0%, 100% { transform: rotate(-25deg); }
    50% { transform: rotate(-5deg); }
}


/* Card improvements */
.vinyl-shine {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border-radius: 50%;
}

.vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0a0a0a;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.cover-texture {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
}

.cover-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cover-preview {
    margin-top: 4px;
}

.preview-track {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

.card-reflection {
    position: absolute;
    bottom: -30px;
    left: 5%;
    right: 5%;
    height: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    transform: scaleY(-1);
    opacity: 0.5;
    filter: blur(2px);
    pointer-events: none;
}

/* Stats improvements */
.stat-icon {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Music Player View */
.music-player-view {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.music-player-view.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Back to crate button */
.back-to-crate {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: #d4a574;
    padding: 8px 14px;
    margin: 15px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.back-to-crate:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: #d4a574;
}

.back-arrow {
    font-size: 1rem;
}

.music-sidebar.collapsed .back-to-crate {
    padding: 8px;
    margin: 10px auto;
    justify-content: center;
}

.music-sidebar.collapsed .back-text {
    display: none;
}

/* Record pull animation */
.record-card.pulling {
    animation: recordPull 0.6s ease forwards;
}

.record-card.pulling .vinyl-peek {
    opacity: 1;
    transform: translateX(30px) rotate(5deg);
}

@keyframes recordPull {
    0% { transform: translateY(-15px) scale(1.02); }
    50% { transform: translateY(-60px) scale(1.15); }
    100% { transform: translateY(-100px) scale(1.3); opacity: 0; }
}

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

.song-list {
    list-style: none;
    padding: 0 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.song-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    border: 1px solid transparent;
}

.song-list-item:hover {
    background: rgba(212, 165, 116, 0.06);
    border-color: rgba(212, 165, 116, 0.1);
}

.song-list-item.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12) 0%, rgba(212, 165, 116, 0.06) 100%);
    border-color: rgba(212, 165, 116, 0.2);
}

/* Mini vinyl record for each song */
.song-list-vinyl {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1510 0%, #111 40%, #1a1510 42%, #0d0a08 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.song-list-item.active .song-list-vinyl {
    animation: vinylSpin 3s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 2px 12px rgba(212, 165, 116, 0.2);
}

#music-section:has(.record.playing) .song-list-item.active .song-list-vinyl {
    animation-play-state: running;
}

.song-list-item:hover .song-list-vinyl {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

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

.song-list-vinyl-groove {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2.5px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1;
}

.song-list-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 0 0 1.5px rgba(40, 30, 20, 0.8);
}

.song-list-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2218;
    color: rgba(212, 165, 116, 0.3);
    font-size: 0.6rem;
}

.song-list-vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0d0a08;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.song-list-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease, width 0.3s ease;
}

.song-list-title {
    font-size: 0.82rem;
    color: rgba(242, 232, 216, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.25s ease;
    line-height: 1.3;
}

.song-list-item.active .song-list-title {
    color: #fff;
}

.song-list-item:hover .song-list-title {
    color: #f2e8d8;
}

.song-list-artist {
    font-size: 0.65rem;
    color: rgba(212, 165, 116, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.song-list-item.active .song-list-artist {
    color: rgba(212, 165, 116, 0.75);
}

/* Playing indicator bars */
.song-list-playing-indicator {
    display: none;
    gap: 2px;
    align-items: flex-end;
    height: 10px;
    margin-top: 4px;
}

.song-list-item.active .song-list-playing-indicator {
    display: flex;
}

.song-list-playing-indicator span {
    width: 2.5px;
    border-radius: 1px;
    background: #d4a574;
    animation: eqBounce 0.8s ease-in-out infinite;
}

.song-list-playing-indicator span:nth-child(1) {
    height: 3px;
    animation-delay: 0s;
}

.song-list-playing-indicator span:nth-child(2) {
    height: 7px;
    animation-delay: 0.12s;
}

.song-list-playing-indicator span:nth-child(3) {
    height: 5px;
    animation-delay: 0.24s;
}

.song-list-playing-indicator span:nth-child(4) {
    height: 8px;
    animation-delay: 0.36s;
}

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.song-list-num {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: rgba(212, 165, 116, 0.2);
    font-weight: 600;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.song-list-item:hover .song-list-num {
    color: rgba(212, 165, 116, 0.4);
}

.song-list-item.active .song-list-num {
    color: rgba(212, 165, 116, 0.6);
}

/* Song actions wrapper */
.song-actions {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease 0s;
    background: linear-gradient(90deg, transparent, rgba(20, 17, 13, 0.9) 20%);
    padding: 4px 4px 4px 16px;
    border-radius: 8px;
    pointer-events: none;
}

.song-list-item:hover .song-actions {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.35s;
}

/* Song send button */
.song-send-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(212, 165, 116, 0.12);
    color: rgba(212, 165, 116, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.song-send-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    color: #f2e8d8;
    transform: scale(1.1);
}

/* Song delete button */
.song-delete-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(180, 80, 80, 0.15);
    color: rgba(212, 165, 116, 0.4);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.song-delete-btn:hover {
    background: rgba(200, 60, 60, 0.5);
    color: #f2e8d8;
    transform: scale(1.1);
}

/* Empty playlist state (sidebar) */
.song-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 30px 16px;
    text-align: center;
    list-style: none;
}

.song-list-empty-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.06);
    border: 1px dashed rgba(212, 165, 116, 0.35);
    color: rgba(212, 165, 116, 0.5);
    font-size: 1.15rem;
}

.song-list-empty-text {
    font-size: 0.8rem;
    color: rgba(242, 232, 216, 0.45);
    letter-spacing: 0.3px;
}

.song-list-empty-add {
    border: 1px solid rgba(212, 165, 116, 0.4);
    background: none;
    color: #d4a574;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.song-list-empty-add:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: #d4a574;
}

/* Send menu popover */
.send-menu {
    z-index: 10001;
    min-width: 220px;
    background: linear-gradient(180deg, #2c251d 0%, #1e1a14 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 12px;
    padding: 10px 12px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.send-menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(212, 165, 116, 0.4);
    padding: 4px 6px 10px;
}

.send-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.send-menu-item:hover {
    background: rgba(212, 165, 116, 0.08);
}

.send-menu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.send-menu-name {
    color: #f2e8d8;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Copied flash animation */
.copied-flash {
    animation: copiedFlash 0.6s ease;
}

@keyframes copiedFlash {
    0% { background: transparent; }
    30% { background: rgba(92, 186, 92, 0.15); }
    100% { background: transparent; }
}

/* Playlist edit button on record cards */
.playlist-edit-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}

.record-card:hover .playlist-edit-btn {
    opacity: 1;
}

.playlist-edit-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Color swatch grid */
.color-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-swatch.selected {
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

/* Cover picker grid */
.cover-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    max-height: 140px;
    overflow-y: auto;
}

.cover-picker-item {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.cover-picker-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.cover-picker-item.selected {
    border-color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.cover-picker-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-picker-auto {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.cover-picker-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Sidebar header row */
.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Add Song button in sidebar header */
.add-song-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    background: rgba(212, 165, 116, 0.08);
    color: rgba(212, 165, 116, 0.5);
    font-size: 1rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

.add-song-btn:hover {
    border-color: #d4a574;
    background: rgba(212, 165, 116, 0.2);
    color: #f2e8d8;
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.25);
}

.music-sidebar.collapsed .add-song-btn {
    display: none;
}

/* Add Song Modal */
.add-song-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.add-song-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-song-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.add-song-modal-panel {
    position: relative;
    width: 440px;
    max-width: 92vw;
    background: linear-gradient(180deg, #2c251d 0%, #1e1a14 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.add-song-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(212, 165, 116, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.add-song-modal-close:hover {
    color: #d4a574;
}

.add-song-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.add-song-modal-icon {
    font-size: 1.5rem;
    color: #d4a574;
}

.add-song-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f2e8d8;
    letter-spacing: 0.5px;
    margin: 0;
}

.add-song-form-group {
    margin-bottom: 16px;
}

.add-song-form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(212, 165, 116, 0.6);
    margin-bottom: 6px;
}

.add-song-form-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    color: #f2e8d8;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.add-song-form-group input:focus {
    border-color: rgba(212, 165, 116, 0.5);
}

.add-song-form-group input::placeholder {
    color: rgba(212, 165, 116, 0.25);
}

.add-song-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.add-song-btn-cancel {
    padding: 10px 20px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    color: rgba(212, 165, 116, 0.7);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.add-song-btn-cancel:hover {
    background: rgba(212, 165, 116, 0.15);
    color: #d4a574;
}

.add-song-btn-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.15));
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: #f2e8d8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.add-song-btn-save:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.35), rgba(212, 165, 116, 0.25));
    border-color: #d4a574;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.2);
}

/* ============================================================
   Settings + Spotify UI (settings modal, source picker,
   connection panel, import modal). Reuses .add-song-modal shell.
   ============================================================ */
:root { --app-text-dim: rgba(242, 232, 216, 0.55); }

/* Gear button shares .add-song-btn base; tweak glyph size only */
.settings-gear-btn { font-size: 0.95rem; }

/* Source picker */
.settings-source-options {
    display: flex;
    gap: 8px;
}
.settings-source-btn {
    flex: 1;
    padding: 9px 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    color: rgba(242, 232, 216, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.settings-source-btn:hover { border-color: rgba(212, 165, 116, 0.45); }
.settings-source-btn.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.28), rgba(212, 165, 116, 0.15));
    border-color: #d4a574;
    color: #f2e8d8;
}

.settings-hint {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--app-text-dim);
    margin: 8px 0 0;
}
.settings-hint code {
    font-family: inherit;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    color: #d4a574;
}

.settings-spotify-group { margin-top: 20px; }
.spotify-state { margin-top: 4px; }

/* Connect button — Spotify green */
.spotify-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1db954, #159c44);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.spotify-connect-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(29, 185, 84, 0.35); }
.spotify-glyph { font-size: 1rem; }

/* Connected user chip */
.spotify-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.spotify-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(29, 185, 84, 0.25);
    flex-shrink: 0;
}
.spotify-user-name {
    font-size: 0.9rem;
    color: #f2e8d8;
    font-weight: 500;
}
.spotify-user-badge {
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
    border: 1px solid rgba(29, 185, 84, 0.4);
}
.spotify-connected-actions { display: flex; gap: 10px; }

/* Import modal */
.spotify-import-url-row { display: flex; gap: 8px; }
.spotify-import-url-row input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    color: #f2e8d8;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}
.spotify-import-url-row input:focus { border-color: rgba(212, 165, 116, 0.5); }
.spotify-import-url-row .add-song-btn-save { white-space: nowrap; }

.spotify-playlists-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spotify-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.spotify-playlist-item:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
}
.spotify-playlist-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(29, 185, 84, 0.2);
    flex-shrink: 0;
}
.spotify-playlist-info { min-width: 0; }
.spotify-playlist-name {
    font-size: 0.85rem;
    color: #f2e8d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spotify-playlist-meta {
    font-size: 0.7rem;
    color: var(--app-text-dim);
}

.spotify-import-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--app-text-dim);
    font-size: 0.85rem;
}
.spotify-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(29, 185, 84, 0.25);
    border-top-color: #1db954;
    border-radius: 50%;
    animation: spotify-spin 0.7s linear infinite;
}
@keyframes spotify-spin { to { transform: rotate(360deg); } }

.spotify-import-info { margin-bottom: 12px; color: #f2e8d8; }
.spotify-import-tracks {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spotify-import-track {
    font-size: 0.78rem;
    color: rgba(242, 232, 216, 0.75);
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spotify-import-track-title { color: #f2e8d8; font-weight: 500; }

.music-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    overflow-y: auto;
    position: relative;
}

/* Vignette -- much lighter so aurora shows through */
.music-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 65% at 48% 45%, transparent 30%, rgba(5, 3, 2, 0.4) 100%);
    box-shadow: inset 0 0 100px 30px rgba(5, 3, 2, 0.25);
    pointer-events: none;
    z-index: 2;
}

/* ---- Aurora gradient orbs ---- */
.aurora-orbs {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(100px);
    animation: auroraHueShift 30s linear infinite;
}

@keyframes auroraHueShift {
    0% { filter: blur(100px) hue-rotate(0deg); }
    100% { filter: blur(100px) hue-rotate(25deg); }
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: hard-light;
    will-change: transform;
}

/* Orb 1: Deep amber/orange -- dominant warm glow */
.aurora-orb-1 {
    width: 55vmax;
    height: 55vmax;
    top: -20%;
    left: 15%;
    background: radial-gradient(circle at center,
        rgba(255, 140, 50, 0.5) 0%,
        rgba(200, 100, 30, 0.3) 40%,
        transparent 70%
    );
    animation: auroraOrb1 18s ease-in-out infinite;
}

/* Orb 2: Hot magenta/rose -- exciting accent */
.aurora-orb-2 {
    width: 45vmax;
    height: 45vmax;
    bottom: -15%;
    right: 0%;
    background: radial-gradient(circle at center,
        rgba(180, 50, 100, 0.45) 0%,
        rgba(140, 30, 80, 0.25) 40%,
        transparent 70%
    );
    animation: auroraOrb2 22s ease-in-out infinite;
}

/* Orb 3: Warm purple -- bridges amber and magenta */
.aurora-orb-3 {
    width: 40vmax;
    height: 40vmax;
    top: 25%;
    right: 20%;
    background: radial-gradient(circle at center,
        rgba(120, 60, 160, 0.38) 0%,
        rgba(90, 40, 130, 0.2) 40%,
        transparent 70%
    );
    animation: auroraOrb3 25s ease-in-out infinite;
}

/* Orb 4: Hot coral/red -- concert spotlight */
.aurora-orb-4 {
    width: 35vmax;
    height: 35vmax;
    top: 60%;
    left: -5%;
    background: radial-gradient(circle at center,
        rgba(255, 80, 60, 0.42) 0%,
        rgba(200, 50, 40, 0.22) 40%,
        transparent 70%
    );
    animation: auroraOrb4 20s ease-in-out infinite;
}

/* Orb 5: Deep gold -- vinyl warmth */
.aurora-orb-5 {
    width: 50vmax;
    height: 50vmax;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle at center,
        rgba(255, 180, 50, 0.3) 0%,
        rgba(200, 140, 30, 0.15) 40%,
        transparent 70%
    );
    animation: auroraOrb5 28s ease-in-out infinite;
}

@keyframes auroraOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15%, 20%) scale(1.2); }
    50% { transform: translate(-10%, 15%) scale(0.9); }
    75% { transform: translate(20%, -10%) scale(1.15); }
}

@keyframes auroraOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-18%, -15%) scale(1.15); }
    50% { transform: translate(12%, -20%) scale(1.25); }
    75% { transform: translate(-15%, 10%) scale(0.85); }
}

@keyframes auroraOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20%, 18%) scale(1.3); }
    66% { transform: translate(18%, -15%) scale(0.85); }
}

@keyframes auroraOrb4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(25%, -10%) scale(1.1) rotate(120deg); }
    66% { transform: translate(-15%, 20%) scale(1.2) rotate(240deg); }
}

@keyframes auroraOrb5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20%, -15%) scale(1.15); }
}

/* ---- Vinyl groove background pattern ---- */
.vinyl-groove-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130vmax;
    height: 130vmax;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 7px,
        rgba(255, 200, 150, 0.025) 7px,
        rgba(255, 200, 150, 0.025) 8px
    );
    mask-image: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 30%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 30%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: grooveSpin 120s linear infinite;
}

@keyframes grooveSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- Film grain overlay ---- */
.music-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

/* Blurred album art backdrop */
.music-main-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.music-main-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(50px) saturate(2.5) brightness(0.55);
    transform: scale(1.6);
    opacity: 0.85;
    transition: opacity 1s ease, filter 1s ease;
    animation: backdropBreath 8s ease-in-out infinite;
}

@keyframes backdropBreath {
    0%, 100% { filter: blur(50px) saturate(2.5) brightness(0.55); transform: scale(1.6); }
    50% { filter: blur(55px) saturate(3) brightness(0.5); transform: scale(1.65); }
}

.music-main-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 48% 45%, transparent 10%, rgba(10, 8, 6, 0.35) 100%),
        linear-gradient(180deg, rgba(25, 20, 16, 0.1) 0%, rgba(10, 8, 6, 0.4) 100%);
}

/* EQ Visualizer bars — full background overlay */
.player-eq-visualizer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 45%;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    gap: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    padding: 0;
    overflow: hidden;
}

.player-eq-visualizer.active {
    opacity: 0.1;
}

.player-eq-visualizer span {
    flex: 1;
    min-width: 2px;
    background: linear-gradient(to top, #d4a574, #e8c9a0);
    border-radius: 2px 2px 0 0;
    height: 6px;
    transition: height 0.15s ease;
    margin: 0 1px;
}

.player-eq-visualizer.active span {
    animation: eqBar 1.2s ease-in-out infinite;
}

/* Stagger delays across all bars using modular patterns */
.player-eq-visualizer span:nth-child(7n+1) { animation-delay: 0.00s; }
.player-eq-visualizer span:nth-child(7n+2) { animation-delay: 0.17s; }
.player-eq-visualizer span:nth-child(7n+3) { animation-delay: 0.34s; }
.player-eq-visualizer span:nth-child(7n+4) { animation-delay: 0.51s; }
.player-eq-visualizer span:nth-child(7n+5) { animation-delay: 0.68s; }
.player-eq-visualizer span:nth-child(7n+6) { animation-delay: 0.85s; }
.player-eq-visualizer span:nth-child(7n)   { animation-delay: 1.02s; }
/* Second layer of variation */
.player-eq-visualizer span:nth-child(3n+2) { animation-duration: 1.4s; }
.player-eq-visualizer span:nth-child(5n+3) { animation-duration: 1.0s; }
.player-eq-visualizer span:nth-child(11n)  { animation-duration: 1.6s; }

@keyframes eqBar {
    0%, 100% { height: 6px; opacity: 0.4; }
    25% { height: 60%; opacity: 1; }
    50% { height: 25%; opacity: 0.7; }
    75% { height: 85%; opacity: 1; }
}

.turntable-area {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Surface reflection / warm shelf glow beneath the deck */
.turntable-area::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-45%);
    width: 1050px;
    height: 100px;
    background:
        radial-gradient(ellipse 100% 100% at 50% 0%,
            rgba(160, 110, 60, 0.1) 0%,
            rgba(120, 80, 40, 0.06) 40%,
            transparent 80%
        );
    pointer-events: none;
    z-index: 0;
}

.record-player {
    position: relative;
    width: 1000px;
    height: 700px;
    filter: drop-shadow(0 6px 25px rgba(20,15,8,0.4));
}

.record-player-body {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(145deg, #484440 0%, #3a3632 15%, #302c28 40%, #28241f 70%, #201c18 100%);
    border-radius: 16px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.9),
        0 10px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 1px 0 0 rgba(255,255,255,0.06),
        inset -1px 0 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        0 0 0 1px rgba(180,160,130,0.12),
        0 0 0 2.5px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Brushed aluminum hairline texture */
.record-player-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.0) 0px,
            rgba(200,180,150,0.04) 1px,
            rgba(255,255,255,0.0) 2px,
            rgba(200,180,150,0.025) 3px,
            rgba(255,255,255,0.0) 4px,
            rgba(200,180,150,0.05) 5px,
            rgba(255,255,255,0.0) 6px,
            rgba(200,180,150,0.02) 8px,
            rgba(255,255,255,0.0) 9px,
            rgba(200,180,150,0.04) 11px,
            rgba(255,255,255,0.0) 12px
        ),
        radial-gradient(ellipse 90% 70% at 30% 20%, rgba(255,235,200,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 80%, rgba(255,235,200,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Top edge chamfer — warm aluminum highlight */
.record-player-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255,240,210,0.0) 0%,
        rgba(255,240,210,0.12) 10%,
        rgba(255,240,210,0.22) 30%,
        rgba(255,245,220,0.3) 50%,
        rgba(255,240,210,0.22) 70%,
        rgba(255,240,210,0.12) 90%,
        rgba(255,240,210,0.0) 100%
    );
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 25;
}

.record-player-platter {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 570px;
    height: 570px;
    background:
        radial-gradient(circle,
            transparent 0%, transparent 85.5%,
            #4a4540 86%, #706860 86.8%, #908070 87.2%, #a09080 87.5%, #908070 87.8%, #706860 88.2%,
            #504840 88.8%, #605850 89.3%, #807060 89.8%, #a09080 90.2%, #807060 90.7%, #605850 91.2%,
            #504840 91.8%, #605850 92.3%, #908070 92.8%, #b0a090 93.2%, #908070 93.6%, #706860 94%,
            #605850 94.5%, #807060 95%, #a09888 95.5%, #c0b0a0 96%, #a09888 96.5%,
            #706860 97.2%, #504840 98%, #3a3530 100%
        ),
        radial-gradient(ellipse 120% 80% at 35% 25%, rgba(255,235,200,0.1) 0%, transparent 45%),
        conic-gradient(from 45deg,
            rgba(255,240,210,0.04), rgba(255,240,210,0.0),
            rgba(255,240,210,0.05), rgba(255,240,210,0.0),
            rgba(255,240,210,0.03), rgba(255,240,210,0.0),
            rgba(255,240,210,0.04)
        ),
        linear-gradient(145deg, #2a2520 0%, #1e1a16 40%, #161310 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.9),
        inset 0 3px 8px rgba(255,235,200,0.06),
        inset 0 -3px 6px rgba(0,0,0,0.5),
        0 0 0 2px #5a5045,
        0 0 0 3.5px #3a3530,
        0 0 0 5px #6a6055,
        0 0 0 6.5px #3a3530,
        0 0 0 8px #28231e,
        0 8px 30px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-player-platter::after {
    content: '';
    position: absolute;
    bottom: 28px;
    left: 28px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 35% 35%, #ffcc99 0%, #ff8844 25%, #ff5500 50%, #cc3300 75%, #881100 100%);
    border-radius: 50%;
    box-shadow:
        0 0 2px 1px rgba(255, 100, 30, 0.9),
        0 0 6px 2px rgba(255, 80, 20, 0.7),
        0 0 15px 4px rgba(255, 80, 20, 0.35),
        0 0 30px 6px rgba(255, 60, 10, 0.12);
    z-index: 3;
}

.record-player-led {
    position: absolute;
    bottom: 25px;
    left: 50px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #706860 0%, #484038 50%, #302820 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow:
        inset 0 1px 3px rgba(255,240,210,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.4),
        0 0 0 1.5px #1e1a16,
        0 0 0 2.5px #504840;
}

.record-player-body:has(.record.playing) .record-player-led {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #aaffaa 15%, #44ff44 35%, #00dd00 55%, #00aa00 80%, #007700 100%);
    box-shadow:
        0 0 3px 1px #22ff22,
        0 0 8px 2px rgba(0,255,0,0.7),
        0 0 20px 4px rgba(0,255,0,0.4),
        0 0 40px 8px rgba(0,255,0,0.15),
        0 0 60px 16px rgba(0,255,0,0.05),
        inset 0 -1px 2px rgba(0,80,0,0.3),
        0 0 0 1.5px rgba(0,255,0,0.5),
        0 0 0 2.5px rgba(0,80,0,0.4);
    animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { box-shadow: 0 0 3px 1px #22ff22, 0 0 8px 2px rgba(0,255,0,0.7), 0 0 20px 4px rgba(0,255,0,0.4), 0 0 40px 8px rgba(0,255,0,0.15), 0 0 0 1.5px rgba(0,255,0,0.5), 0 0 0 2.5px rgba(0,80,0,0.4); }
    50% { box-shadow: 0 0 4px 2px #44ff44, 0 0 12px 4px rgba(0,255,0,0.8), 0 0 30px 8px rgba(0,255,0,0.5), 0 0 55px 16px rgba(0,255,0,0.2), 0 0 0 1.5px rgba(0,255,0,0.7), 0 0 0 2.5px rgba(0,80,0,0.5); }
}

.record {
    width: 530px;
    height: 530px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #181818 0%, #181818 12%, transparent 12%),
        conic-gradient(from 0deg at 50% 50%,
            rgba(255,255,255,0.04) 0deg, transparent 15deg,
            rgba(255,255,255,0.02) 30deg, transparent 60deg,
            rgba(255,255,255,0.05) 90deg, transparent 120deg,
            rgba(255,255,255,0.02) 150deg, transparent 180deg,
            rgba(255,255,255,0.04) 210deg, transparent 240deg,
            rgba(255,255,255,0.03) 280deg, transparent 320deg,
            rgba(255,255,255,0.04) 350deg, transparent 360deg
        ),
        repeating-radial-gradient(circle at center,
            #1e1e1e 0px, #1e1e1e 1px,
            #141414 1px, #141414 2px,
            #1a1a1a 2px, #1a1a1a 3px
        );
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.08),
        0 0 15px rgba(0,0,0,0.3) inset;
    animation: spin 2s linear infinite;
    animation-play-state: paused;
    transition: opacity 0.4s ease;
}

.record.lifting {
    opacity: 0;
    animation-play-state: paused !important;
}

.record.dropping {
    opacity: 0;
}

.record.dropping-in {
    opacity: 1;
}

.song-info.changing {
    opacity: 0;
}

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

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

.record-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,240,210,0.08),
        0 0 0 2px #28201a,
        0 0 0 3px #605040,
        0 0 0 4.5px #908070,
        0 0 0 5.5px #605040,
        0 0 0 6.5px #3a3028,
        0 0 8px 7px rgba(0,0,0,0.3);
}

.record-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-label-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4a574 0%, #8b6914 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.record-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background:
        radial-gradient(circle at 28% 28%, rgba(255,250,235,0.65) 0%, transparent 40%),
        radial-gradient(circle at 35% 35%, #f0e8dd 0%, #c8b8a8 25%, #a09080 50%, #706050 100%);
    border-radius: 50%;
    z-index: 5;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.6),
        inset 0 1px 2px rgba(255,240,210,0.45),
        0 0 0 1px #3a3028,
        0 0 0 2px #706050;
}

.tonearm-base {
    position: absolute;
    top: 50px;
    right: 150px;
    width: 65px;
    height: 65px;
    background:
        radial-gradient(ellipse 70% 50% at 28% 22%, rgba(255,245,225,0.4) 0%, transparent 45%),
        radial-gradient(circle at 35% 35%, #d0c8be 0%, #a09888 25%, #706860 50%, #484038 75%, #302820 100%);
    border-radius: 50%;
    z-index: 15;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.8),
        0 3px 8px rgba(0,0,0,0.5),
        inset 0 2px 6px rgba(255,240,210,0.25),
        inset 0 -3px 6px rgba(0,0,0,0.4),
        0 0 0 1px rgba(200,180,150,0.15);
    animation: baseShine 4s ease-in-out infinite;
}

@keyframes baseShine {
    0%, 100% {
        box-shadow:
            0 8px 20px rgba(0,0,0,0.8),
            0 3px 8px rgba(0,0,0,0.5),
            inset 0 2px 6px rgba(255,240,210,0.25),
            inset 0 -3px 6px rgba(0,0,0,0.4),
            0 0 0 1px rgba(200,180,150,0.15);
    }
    50% {
        box-shadow:
            0 8px 20px rgba(0,0,0,0.8),
            0 3px 8px rgba(0,0,0,0.5),
            inset 0 2px 6px rgba(255,240,210,0.4),
            inset 0 -3px 6px rgba(0,0,0,0.4),
            0 0 0 1px rgba(200,180,150,0.15),
            0 0 12px rgba(255, 240, 210, 0.12),
            0 0 25px rgba(255, 240, 210, 0.06);
    }
}

.tonearm-base::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background:
        radial-gradient(ellipse 60% 40% at 28% 22%, rgba(255,250,235,0.65) 0%, transparent 50%),
        radial-gradient(circle at 35% 35%, #f0e8dd 0%, #c0b0a0 30%, #807060 65%, #504840 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 3px rgba(255,240,210,0.45),
        inset 0 -1px 2px rgba(0,0,0,0.3),
        0 1px 4px rgba(0,0,0,0.5),
        0 0 0 1px #6a6055;
}

.tonearm {
    position: absolute;
    top: 82px;
    right: 182px;
    width: 190px;
    height: 10px;
    background: linear-gradient(to bottom,
        #e8e0d8 0%, #d8d0c8 8%, #b8b0a8 20%,
        #989088 35%, #787068 50%, #605850 65%,
        #484038 80%, #383028 95%, #2a2218 100%
    );
    border-radius: 4px;
    transform-origin: 100% center;
    transform: rotate(15deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 12;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.7),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,240,210,0.3);
    animation: tonearmShine 4s ease-in-out infinite;
}

@keyframes tonearmShine {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(0,0,0,0.7),
            0 1px 3px rgba(0,0,0,0.4),
            inset 0 1px 0 rgba(255,240,210,0.3);
    }
    50% {
        box-shadow:
            0 4px 12px rgba(0,0,0,0.7),
            0 1px 3px rgba(0,0,0,0.4),
            inset 0 1px 0 rgba(255,240,210,0.3),
            0 0 8px rgba(255, 240, 210, 0.15),
            0 0 20px rgba(255, 240, 210, 0.08);
    }
}

.tonearm.playing {
    transform: rotate(-28deg);
}

.record-player-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}


/* Recessed control bay panel */
.record-player-right::before {
    content: '';
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    right: 8px;
    width: 234px;
    height: 440px;
    background:
        radial-gradient(ellipse 100% 50% at 50% 8%, rgba(255,235,200,0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.22) 100%);
    border-radius: 10px;
    box-shadow:
        inset 0 4px 12px rgba(0,0,0,0.6),
        inset 0 1px 3px rgba(0,0,0,0.4),
        inset 0 -1px 0 rgba(255,235,200,0.06),
        inset 1px 0 0 rgba(0,0,0,0.15),
        inset -1px 0 0 rgba(0,0,0,0.15),
        0 1px 0 rgba(255,235,200,0.05);
    border: 1px solid rgba(0,0,0,0.35);
    border-top-color: rgba(0,0,0,0.5);
    border-bottom-color: rgba(255,235,200,0.05);
    pointer-events: none;
    z-index: 0;
}

.record-player-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.rp-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,180,150,0.18);
    background:
        radial-gradient(ellipse 80% 50% at 45% 20%, rgba(255,240,210,0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 35%, #504840 0%, #3a3228 30%, #282420 70%, #1e1a16 100%);
    color: rgba(255,235,200,0.75);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.6),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,240,210,0.15),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 0 0 1px rgba(0,0,0,0.3);
}

.rp-btn:hover {
    background:
        radial-gradient(ellipse 80% 50% at 45% 20%, rgba(255,240,210,0.28) 0%, transparent 50%),
        radial-gradient(circle at 40% 35%, #605848 0%, #484030 30%, #302820 70%, #282018 100%);
    border-color: rgba(212, 165, 116, 0.55);
    color: #e8c090;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.6),
        0 0 15px rgba(212, 165, 116, 0.2),
        0 0 30px rgba(212, 165, 116, 0.08),
        inset 0 1px 2px rgba(255,240,210,0.22),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 0 0 1px rgba(212, 165, 116, 0.25);
}

.rp-btn:active {
    transform: translateY(1px) scale(0.97);
    background:
        radial-gradient(ellipse 80% 50% at 45% 30%, rgba(255,240,210,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #3a3228 0%, #282420 50%, #1e1a16 100%);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.5),
        inset 0 3px 6px rgba(0,0,0,0.5),
        inset 0 1px 2px rgba(0,0,0,0.3);
}

.rp-btn.rp-play {
    width: 52px;
    height: 52px;
    border-color: rgba(200,180,150,0.22);
    font-size: 1.1rem;
}

.rp-btn.rp-play.playing {
    background:
        radial-gradient(ellipse 80% 50% at 45% 20%, rgba(255,240,210,0.22) 0%, transparent 50%),
        radial-gradient(circle at 40% 35%, #5a4830 0%, #3a3020 40%, #2a2210 80%, #221a08 100%);
    border-color: rgba(212, 165, 116, 0.6);
    color: #e8c090;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.6),
        0 0 15px rgba(212, 165, 116, 0.25),
        inset 0 1px 2px rgba(255,240,210,0.15),
        inset 0 -2px 3px rgba(0,0,0,0.3);
}

.record-player-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.volume-knob-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
    cursor: grab;
}

.volume-knob-wrapper:active {
    cursor: grabbing;
}

.volume-knob {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 45% at 28% 18%, rgba(255,245,225,0.3) 0%, transparent 45%),
        repeating-conic-gradient(
            from 0deg,
            rgba(255,240,210,0.07) 0deg, rgba(255,240,210,0.07) 2deg,
            rgba(0,0,0,0.05) 2deg, rgba(0,0,0,0.05) 4deg
        ),
        conic-gradient(from 0deg, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840, #706860, #504840),
        radial-gradient(circle at 35% 35%, #807060 0%, #484038 60%, #282018 100%);
    background-blend-mode: normal, overlay, overlay, normal;
    box-shadow:
        0 5px 15px rgba(0,0,0,0.8),
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 3px 5px rgba(255,240,210,0.25),
        inset 0 -3px 5px rgba(0,0,0,0.4),
        0 0 0 2px #201c18,
        0 0 0 3px #605848,
        0 0 0 4px #383028;
    position: relative;
    transform: rotate(130deg);
}

.knob-indicator {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 14px;
    background: linear-gradient(to bottom, #fff 0%, #e8c8a0 20%, #d4a574 50%, #c09060 80%, #a07040 100%);
    border-radius: 2px;
    box-shadow:
        0 0 4px rgba(212, 165, 116, 0.9),
        0 0 8px rgba(212, 165, 116, 0.5),
        0 0 16px rgba(212, 165, 116, 0.2);
}

.knob-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    border: 2px solid rgba(200,180,150,0.1);
    box-shadow:
        inset 0 1px 2px rgba(255,240,210,0.06),
        0 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
}

.volume-label {
    font-size: 0.65rem;
    color: #a09080;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Tonearm counterweight (chrome disc behind pivot) */
.tonearm-counterweight {
    position: absolute;
    top: 68px;
    right: 162px;
    width: 34px;
    height: 34px;
    background:
        radial-gradient(ellipse 60% 40% at 28% 22%, rgba(255,245,225,0.5) 0%, transparent 45%),
        radial-gradient(circle at 35% 35%, #d8d0c8 0%, #a09888 25%, #706860 55%, #484038 80%, #383028 100%);
    border-radius: 50%;
    z-index: 11;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.7),
        inset 0 2px 3px rgba(255,240,210,0.3),
        inset 0 -2px 3px rgba(0,0,0,0.4),
        0 0 0 1px rgba(200,180,150,0.1);
}

/* Tonearm rest (metallic clip to the right of platter) */
.tonearm-rest {
    position: absolute;
    top: 65px;
    right: 90px;
    width: 12px;
    height: 38px;
    cursor: pointer;
    transition: filter 0.2s ease;
    background: linear-gradient(to right,
        #585048 0%, #908880 20%, #b0a8a0 50%, #908880 80%, #585048 100%
    );
    border-radius: 3px;
    z-index: 10;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,240,210,0.15);
}

.tonearm-rest:hover {
    filter: brightness(1.3);
}

.tonearm-rest:active {
    filter: brightness(0.8);
}

.tonearm-rest::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 14px;
    height: 6px;
    background: linear-gradient(to bottom, #c0b8b0 0%, #908880 40%, #585048 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
}

/* Deck feet at 4 corners */
.deck-foot {
    position: absolute;
    width: 26px;
    height: 26px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,240,210,0.18) 0%, transparent 40%),
        repeating-radial-gradient(
            circle at center,
            transparent 0px, transparent 1.5px,
            rgba(200,180,150,0.06) 1.5px, rgba(200,180,150,0.06) 2.5px
        ),
        radial-gradient(circle at 40% 35%, #504840 0%, #383028 35%, #282018 60%, #1a1610 100%);
    border-radius: 50%;
    z-index: 20;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.7),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 2px 3px rgba(255,240,210,0.12),
        inset 0 -2px 3px rgba(0,0,0,0.4),
        0 0 0 1px rgba(200,180,150,0.08);
}

.deck-foot-tl { top: 12px; left: 12px; }
.deck-foot-tr { top: 12px; right: 12px; }
.deck-foot-bl { bottom: 12px; left: 12px; }
.deck-foot-br { bottom: 12px; right: 12px; }

/* Strobe dots ring around platter edge */
.strobe-dots {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #c0b0a0 0deg 1.5deg, transparent 1.5deg 5deg
    );
    mask-image: radial-gradient(circle, transparent 86%, black 86.5%, black 87.5%, transparent 88%);
    -webkit-mask-image: radial-gradient(circle, transparent 86%, black 86.5%, black 87.5%, transparent 88%);
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

/* Rubber mat overlay on vinyl */
.rubber-mat {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at center,
            transparent 0px, transparent 6px,
            rgba(255,255,255,0.035) 6px, rgba(255,255,255,0.035) 7px
        ),
        radial-gradient(circle, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.03) 70%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

/* Pitch slider (interactive - controls playback rate) */
.pitch-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.pitch-track {
    width: 8px;
    height: 80px;
    background:
        linear-gradient(to right, rgba(0,0,0,0.35), transparent 30%, transparent 70%, rgba(0,0,0,0.35)),
        linear-gradient(to bottom, #161210 0%, #1e1a16 20%, #201c18 50%, #1e1a16 80%, #161210 100%);
    border-radius: 4px;
    position: relative;
    box-shadow:
        inset 0 4px 8px rgba(0,0,0,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.5),
        inset 2px 0 4px rgba(0,0,0,0.3),
        inset -2px 0 4px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,240,210,0.06);
}

.pitch-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -6px;
    width: 24px;
    height: 12px;
    background: linear-gradient(to bottom,
        #e0d8d0 0%, #d0c8c0 8%, #b0a8a0 22%,
        #908880 40%, #706860 60%, #585048 78%, #484038 100%
    );
    border-radius: 3px;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.6),
        0 1px 2px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,240,210,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.25);
    cursor: grab;
    transition: all 0.15s ease;
    z-index: 2;
}

.pitch-thumb:hover {
    background: linear-gradient(to bottom,
        #f0e8e0 0%, #e0d8d0 8%, #c0b8b0 22%,
        #a09888 40%, #807870 60%, #686058 78%, #585048 100%
    );
    box-shadow:
        0 2px 6px rgba(0,0,0,0.6),
        0 0 8px rgba(212, 165, 116, 0.15),
        inset 0 1px 0 rgba(255,240,210,0.45),
        inset 0 -1px 0 rgba(0,0,0,0.25);
}

.pitch-thumb:active {
    cursor: grabbing;
    transform: scale(0.96);
}

.pitch-detent {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 5px;
    height: 2px;
    background: linear-gradient(to right, #c09060, #d4a574, #e8c8a0);
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.5);
}

.pitch-value {
    font-size: 0.55rem;
    color: #e0b888;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 28px;
    text-align: center;
}

.pitch-label {
    font-size: 0.5rem;
    color: #907860;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Tonearm front section (S-curve bend) */
.tonearm::before {
    content: '';
    position: absolute;
    left: -118px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    transform-origin: right center;
    width: 124px;
    height: 8px;
    background: linear-gradient(to bottom,
        #e0d8d0 0%, #d0c8c0 10%, #b0a8a0 25%,
        #908880 40%, #706860 55%, #585048 70%,
        #484038 85%, #383028 100%
    );
    border-radius: 3px;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,240,210,0.25);
}

/* Headshell/cartridge at the tip */
.tonearm::after {
    content: '';
    position: absolute;
    left: -155px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    width: 40px;
    height: 24px;
    background:
        linear-gradient(to right, rgba(255,240,210,0.06) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.1) 100%),
        linear-gradient(to bottom, #d0c8c0 0%, #b0a8a0 15%, #807870 40%, #585048 70%, #484038 100%);
    border-radius: 3px 3px 2px 2px;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,240,210,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Vinyl Sleeve - Song Info Display */
.vinyl-sleeve {
    width: 300px;
    min-width: 300px;
    height: 740px;
    background: linear-gradient(145deg, #3a3228 0%, #2c2418 100%);
    border-radius: 3px 12px 12px 3px;
    border-right: 4px solid #201a14;
    box-shadow:
        5px 3px 15px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    transform: rotate(-2deg);
    transform-origin: bottom right;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin-right: -8px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Cardboard texture overlay */
.vinyl-sleeve::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Subtle spine highlight */
.vinyl-sleeve::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.02) 50%,
        rgba(255,255,255,0.04) 100%
    );
    pointer-events: none;
}

.sleeve-art {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #2a2218, #1a1510);
}

.sleeve-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05) brightness(1.05);
    transition: opacity 0.3s ease;
}

.sleeve-art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(212, 165, 116, 0.35);
    background: linear-gradient(135deg, #2a2218, #1a1510);
}

.sleeve-info {
    padding: 20px 18px 16px;
    border-top: 1px solid rgba(212, 165, 116, 0.18);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.sleeve-info.changing {
    opacity: 0;
}

/* Lyrics container on vinyl sleeve */
.sleeve-lyrics {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 16px 18px;
    border-top: 1px solid rgba(212, 165, 116, 0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sleeve-lyrics::-webkit-scrollbar {
    display: none;
}

.sleeve-lyrics {
    scrollbar-width: none;
}

.lyrics-line {
    font-size: 1rem;
    line-height: 2.2;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.3);
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    padding: 4px 0;
    cursor: pointer;
    text-align: center;
    filter: blur(2.5px);
}

.lyrics-line:hover {
    color: rgba(212, 165, 116, 0.5);
    filter: blur(0px);
}

.lyrics-line.active {
    color: #f2e8d8;
    transform: scale(1.08);
    font-weight: 700;
    filter: blur(0px);
}

.lyrics-line.active ~ .lyrics-line {
    filter: blur(2.5px);
}

/* Word-level highlighting */
.lyrics-word {
    transition: color 0.1s ease, text-shadow 0.1s ease;
}

.lyrics-line.active .lyrics-word {
    color: rgba(212, 165, 116, 0.35);
    text-shadow: none;
}

.lyrics-line.active .lyrics-word.word-active {
    color: #f2e8d8;
    text-shadow:
        0 0 8px rgba(242, 232, 216, 0.6),
        0 0 20px rgba(212, 165, 116, 0.4),
        0 0 35px rgba(212, 165, 116, 0.2);
}

/* Plain lyrics lines (no sync, same visual style) */
.lyrics-line.lyrics-line-plain {
    filter: blur(0px);
    color: rgba(212, 165, 116, 0.45);
    cursor: default;
}

.lyrics-placeholder {
    color: rgba(212, 165, 116, 0.3);
    font-size: 0.7rem;
    font-style: italic;
    text-align: center;
    margin: auto 0;
    letter-spacing: 1px;
}


/* Song info on right panel */
.rp-song-info {
    text-align: center;
    z-index: 1;
    padding: 0 12px;
    max-width: 220px;
    margin-top: 120px;
}

.rp-song-info .sleeve-now-playing {
    margin-bottom: 6px;
}

.rp-song-info .song-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
}

.rp-song-info .song-artist {
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.rp-song-info .song-album {
    font-size: 0.6rem;
}

.sleeve-now-playing {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 165, 116, 0.6);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sleeve-now-playing::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4a574;
    animation: sleevePulse 2s ease-in-out infinite;
}

@keyframes sleevePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.song-info {
    transition: opacity 0.3s ease;
}

.song-info.changing {
    opacity: 0;
}

.song-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f2e8d8;
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-artist {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4a574;
    margin-bottom: 8px;
    font-weight: 500;
}

.song-album {
    font-size: 0.7rem;
    font-style: italic;
    color: rgba(212, 165, 116, 0.6);
}

/* Sleeve Progress / Timeline */
.sleeve-progress {
    padding: 16px 18px 10px;
    margin-top: auto;
}

.sleeve-progress-times {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(212, 165, 116, 0.55);
    margin-bottom: 8px;
}

.sleeve-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(212, 165, 116, 0.12);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.sleeve-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a574, #e8c9a0);
    border-radius: 2px;
    transition: width 0.3s linear;
    position: relative;
}

.sleeve-progress-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 9px;
    height: 9px;
    background: #f2e8d8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(212, 165, 116, 0.4);
    opacity: 0;
    transition: opacity 0.2s, left 0.3s linear;
}

.sleeve-progress:hover .sleeve-progress-knob {
    opacity: 1;
}

.sleeve-progress:hover .sleeve-progress-fill {
    background: linear-gradient(90deg, #ddb07e, #f0d5ae);
}

.sleeve-progress:hover .sleeve-progress-bar {
    height: 4px;
}

.sleeve-catalog {
    padding: 14px 18px;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(212, 165, 116, 0.45);
    text-transform: uppercase;
}

.youtube-player-container {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.volume-icon {
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.volume-icon:hover {
    opacity: 1;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: rgba(212, 165, 116, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4a574;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4a574;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .record-player {
        width: 380px;
        height: 300px;
    }

    .record-player-platter {
        width: 240px;
        height: 240px;
        left: 15px;
    }

    .record-player-platter::after {
        display: none;
    }

    .record {
        width: 220px;
        height: 220px;
    }

    .record-label {
        width: 80px;
        height: 80px;
    }

    .tonearm {
        width: 90px;
        right: 40px;
        top: 40px;
    }

    .tonearm::before {
        width: 60px;
        left: -55px;
        height: 5px;
    }

    .tonearm::after {
        left: -75px;
        width: 22px;
        height: 12px;
    }

    .tonearm-base {
        width: 40px;
        height: 40px;
        top: 20px;
        right: 50px;
    }

    /* Hide decorative-only elements on mobile */
    .strobe-dots,
    .tonearm-rest,
    .deck-foot,
    .pitch-slider,
    .rubber-mat,
    .tonearm-counterweight {
        display: none;
    }

    .record-player-right {
        width: 130px;
        padding-bottom: 20px;
        gap: 12px;
    }

    /* The recessed control plate is sized for the 250px desktop bay
       (234x440); left unchecked it juts across the platter and draws a
       hard vertical seam through the deck. */
    .record-player-right::before {
        width: auto;
        left: 4px;
        right: 4px;
        height: 270px;
    }

    .record-player-controls {
        gap: 8px;
    }

    .rp-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .rp-btn.rp-play {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .volume-knob-wrapper {
        width: 40px;
        height: 40px;
    }

    .turntable-area {
        flex-direction: column;
        align-items: center;
    }

    .player-eq-visualizer.active {
        opacity: 0.07;
    }

    .vinyl-sleeve {
        width: 100%;
        min-width: unset;
        max-width: 380px;
        height: auto;
        flex-direction: row;
        transform: none;
        margin-right: 0;
        margin-bottom: 16px;
        border-radius: 8px;
        border-right: none;
        border-bottom: 3px solid #15110d;
    }

    .vinyl-sleeve::after {
        display: none;
    }

    .sleeve-art {
        width: 100px;
        min-width: 100px;
        aspect-ratio: 1;
    }

    .sleeve-lyrics {
        border-top: none;
        border-left: 1px solid rgba(212, 165, 116, 0.1);
        padding: 10px 12px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .sleeve-catalog {
        display: none;
    }

    .sleeve-progress {
        display: none;
    }

    .rp-song-info {
        display: none;
    }

    .song-title {
        font-size: 0.9rem;
    }

    /* Laravel port: the row-flex container is .music-player-view (it gets
       .active), not #music-section as in the legacy markup. */
    .music-player-view.active {
        flex-direction: column;
    }

    .music-sidebar {
        width: 100% !important;
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 4px 0 0;   /* desktop 30px eats the strip's height budget */
    }

    .sidebar-resize-handle,
    .sidebar-collapse-btn {
        display: none;
    }

    .sidebar-header-area {
        padding: 10px 15px 4px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .sidebar-track-count {
        margin-top: 0;
    }

    .song-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .song-list-item {
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        border-radius: 8px;
        width: 80px;
        text-align: center;
        gap: 6px;
    }

    .song-list-item.active {
        background: rgba(212, 165, 116, 0.2);
    }

    .song-list-num {
        display: none;
    }

    .song-list-vinyl {
        width: 52px;
        height: 52px;
    }

    .song-list-cover {
        width: 26px;
        height: 26px;
    }

    .song-list-playing-indicator {
        display: none !important;
    }

    .song-list-info {
        width: 100%;
    }

    .song-list-title {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .song-list-artist {
        font-size: 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* No hover on phones — pin the actions to the tile corners, always
       visible: delete top-right, send-to-playlist top-left. */
    .song-actions {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: none;
        padding: 0;
        gap: 0;
        transition: none;
    }

    .song-send-btn,
    .song-delete-btn {
        position: absolute;
        top: 2px;
        width: 24px;
        height: 24px;
        background: rgba(28, 22, 16, 0.92);
        border: 1px solid rgba(212, 165, 116, 0.25);
        color: rgba(212, 165, 116, 0.75);
        z-index: 3;
    }

    .song-send-btn {
        left: 2px;
    }

    .song-delete-btn {
        right: 2px;
        border-color: rgba(200, 80, 80, 0.45);
        color: rgba(232, 140, 140, 0.9);
        font-size: 1rem;
    }

    .song-list-empty {
        flex: 1 0 auto;
        min-width: 100%;
        flex-direction: row;
        padding: 16px 20px;
        gap: 12px;
    }

    .song-list-empty-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    /* Mobile vinyl room */
    .room-left, .room-right {
        display: none;
    }

    .floor-speaker, .floor-records, .floor-plant {
        display: none;
    }

    .room-content {
        padding: 10px 12px;
        justify-content: center;
    }

    .wall-art, .wall-clock, .wall-poster, .wall-shelf {
        display: none;
    }

    /* The hanging/string lights dangle over the playlist cards and greeting
       on a phone — keep the room clean, nothing may overlay the playlists. */
    .string-lights,
    .hanging-lights,
    .dust-particles {
        display: none;
    }

    /* The crate content (greeting + filter + 2 conveyor rows + stats) is
       taller than a phone viewport. Centered flex inside overflow:hidden
       clips both ends — scroll from the top instead. */
    .room-center {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 18px;
        padding: 12px 0 30px;
        -webkit-overflow-scrolling: touch;
    }

    /* Tame the now-playing lift so it stays inside its conveyor row and
       the label doesn't overlap the row below. */
    .record-card.now-playing {
        transform: translateY(-6px);
    }

    .record-card.now-playing::after {
        bottom: -16px;
        font-size: 0.5rem;
    }

    .conveyor-row {
        padding: 14px 0 22px;
    }

    /* No hover on phones — the playlist edit (pencil) button must be visible. */
    .playlist-edit-btn {
        opacity: 0.9;
    }

    .greeting-text h1 {
        font-size: 1.8rem;
    }

    .greeting-text p {
        font-size: 0.9rem;
    }

    .records-display {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .record-card-cover {
        width: 130px;
        height: 130px;
    }

    .vinyl-peek {
        width: 115px;
        height: 115px;
    }

    .vinyl-label {
        width: 40px;
        height: 40px;
    }

    .cover-title {
        font-size: 0.9rem;
    }

    .cover-badge {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .cover-preview {
        display: none;
    }

    .card-reflection {
        display: none;
    }

    .collection-stats {
        padding: 12px 20px;
        gap: 20px;
    }

    .stat-icon {
        font-size: 1rem;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .stat-text {
        font-size: 0.65rem;
    }

    .floor-rug {
        display: none;
    }

    .music-player-view {
        flex-direction: column;
    }

}

/* Pause animations when section is not visible */
.section-hidden .platter-vinyl,
.section-hidden .cat-tail,
.section-hidden .turntable-led,
.section-hidden .string-bulb,
.section-hidden .dust-particles span,
.section-hidden .clock-hand,
.section-hidden .steam,
.section-hidden .bulb-glow,
.section-hidden .amp-display-text.scrolling {
    animation-play-state: paused !important;
}

/* ==== Phase C: responsive breakpoints ==== */
/* ── Music/vinyl-room graduated responsive breakpoints — tablets & mid-screens ── */

/* Wall decorations overlap functional side panels — hide below ultrawide */
@media (max-width: 1800px) {
    .wall-poster, .wall-art, .wall-shelf {
        display: none;
    }

    .floor-records, .floor-plant {
        display: none;
    }
}

@media (max-width: 1100px) {
    .wall-clock {
        display: none;
    }

    .floor-speaker {
        display: none;
    }

    .room-left, .room-right {
        transform: scale(0.85);
        transform-origin: center center;
    }

    .room-content {
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .room-left {
        display: none;
    }

    .room-right {
        display: none;
    }

    .room-content {
        justify-content: center;
    }

    .record-card-cover {
        width: clamp(140px, 22vw, 180px);
        height: clamp(140px, 22vw, 180px);
    }

    .vinyl-peek {
        width: clamp(130px, 21vw, 170px);
        height: clamp(130px, 21vw, 170px);
    }
}

/* Short screens (laptops at 768px, small windows): the room scene is composed
   for tall viewports — compact it so the title and stats bar don't clip. */
@media (max-height: 860px) {
    .room-center {
        gap: 18px;
    }

    .greeting-text h1 {
        font-size: 2rem;
    }

    .greeting-text p {
        font-size: 0.9rem;
    }

    .collection-stats {
        gap: 28px;
        padding: 12px 32px;
    }

    .record-card-cover {
        width: clamp(120px, 16vh, 160px);
        height: clamp(120px, 16vh, 160px);
    }

    .vinyl-peek {
        width: clamp(110px, 15vh, 150px);
        height: clamp(110px, 15vh, 150px);
    }

    .conveyor-row {
        padding: 18px 0 12px;
    }
}

/* ==== Phase C: crackle SFX ==== */

/* Crackle button */
.crackle-btn {
    margin-top: 8px;
}

.crackle-btn[data-crackle="on"] {
    border-color: rgba(212, 180, 130, 0.2);
}

.crackle-btn[data-crackle="on"] .loop-btn-icon {
    color: #d4b482;
    background: radial-gradient(circle, rgba(212, 180, 130, 0.12) 0%, rgba(212, 180, 130, 0.04) 100%);
    border-color: rgba(212, 180, 130, 0.25);
    box-shadow: 0 0 16px rgba(212, 180, 130, 0.15);
    animation: loopGlowAmber 2.5s ease-in-out infinite;
}

.crackle-btn[data-crackle="on"] .loop-btn-label {
    color: rgba(212, 180, 130, 0.6);
}

@keyframes loopGlowAmber {
    0%, 100% { box-shadow: 0 0 12px rgba(212, 180, 130, 0.15); }
    50% { box-shadow: 0 0 22px rgba(212, 180, 130, 0.3); }
}

/* ==== Phase C: scan importer ==== */

/* ============================================================
   SONG SCANNER (folder-scan local import)
   The modal frame reuses the .add-song-modal shell; only the scan-specific
   inner content and the sidebar trigger button are styled here.
   ============================================================ */

.scan-songs-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    background: rgba(212, 165, 116, 0.08);
    color: rgba(212, 165, 116, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.scan-songs-btn:hover {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.5);
}

/* Scan modal: widen the shared shell panel and allow it to scroll. */
#scanModal .add-song-modal-panel {
    width: 560px;
    max-height: 80vh;
    overflow-y: auto;
}

#scanModal .add-song-btn-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scan-step-desc {
    color: rgba(212, 165, 116, 0.5);
    font-size: 0.85rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.scan-folder-btn {
    width: 100%;
    padding: 28px;
    background: rgba(212, 165, 116, 0.05);
    border: 2px dashed rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    color: rgba(212, 165, 116, 0.6);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.scan-folder-btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
    color: #d4a574;
}

.scan-or-divider {
    text-align: center;
    color: rgba(212, 165, 116, 0.25);
    font-size: 0.75rem;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scan-files-btn {
    width: 100%;
    padding: 12px;
    background: rgba(212, 165, 116, 0.04);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 8px;
    color: rgba(212, 165, 116, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    transition: all 0.25s;
}

.scan-files-btn:hover {
    background: rgba(212, 165, 116, 0.08);
    border-color: rgba(212, 165, 116, 0.3);
    color: #d4a574;
}

.scan-capture-row {
    display: flex;
    gap: 10px;
}

.scan-capture-btn {
    flex: 1;
    padding: 14px 12px;
    background: rgba(212, 165, 116, 0.04);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 8px;
    color: rgba(212, 165, 116, 0.45);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    transition: all 0.25s;
}

.scan-capture-btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
    color: #d4a574;
}

/* Progress */
.scan-progress-label {
    color: #f2e8d8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.scan-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.scan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a574, #e8c49a);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.scan-progress-detail {
    color: rgba(212, 165, 116, 0.4);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Results */
.scan-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.scan-results-count {
    color: rgba(212, 165, 116, 0.6);
    font-size: 0.8rem;
}

.scan-select-all {
    color: rgba(212, 165, 116, 0.5);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.scan-select-all input {
    accent-color: #d4a574;
}

.scan-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 4px;
}

.scan-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(212, 165, 116, 0.04);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 10px;
    transition: background 0.2s;
}

.scan-result-item:hover {
    background: rgba(212, 165, 116, 0.08);
}

.scan-result-item.no-match {
    opacity: 0.4;
}

.scan-result-check {
    flex-shrink: 0;
}

.scan-result-check input {
    accent-color: #d4a574;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.scan-result-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.scan-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-result-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 165, 116, 0.3);
    font-size: 1.2rem;
}

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

.scan-result-title {
    color: #f2e8d8;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scan-result-artist {
    color: rgba(212, 165, 116, 0.5);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scan-result-source {
    color: rgba(212, 165, 116, 0.25);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.scan-result-youtube {
    flex-shrink: 0;
    max-width: 160px;
    text-align: right;
}

.scan-result-yt-title {
    color: rgba(212, 165, 116, 0.45);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scan-result-yt-channel {
    color: rgba(212, 165, 116, 0.25);
    font-size: 0.65rem;
}

.scan-result-yt-select {
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    color: rgba(212, 165, 116, 0.6);
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    max-width: 150px;
    cursor: pointer;
}

/* ==== Phase C: vinyl GIF maker ==== */

/* =================================================
   Vinyl GIF Maker Modal
   ================================================= */
.vgm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10100;
}
.vgm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.vgm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}
.vgm-panel {
    position: relative;
    width: 920px;
    max-width: 95vw;
    max-height: 92vh;
    background: linear-gradient(180deg, #2c251d 0%, #1a1610 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.vgm-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(212, 165, 116, 0.5);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    z-index: 5;
    line-height: 1;
}
.vgm-close:hover { color: #d4a574; }

.vgm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px 16px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.12);
}
.vgm-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #3a2f22 0%, #1d1610 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
}
.vgm-header-icon svg { width: 22px; height: 22px; }
.vgm-header-text h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f2e8d8;
    letter-spacing: 0.4px;
}
.vgm-header-text p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: rgba(212, 165, 116, 0.55);
    letter-spacing: 0.3px;
}

.vgm-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px 28px 24px;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

/* ---------- Preview side ---------- */
.vgm-preview-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.vgm-preview-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(ellipse at center, #1f1812 0%, #100c08 75%);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.4);
}
.vgm-preview-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.vgm-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(212, 165, 116, 0.35);
    pointer-events: none;
}
.vgm-preview-empty-icon {
    width: 56px;
    height: 56px;
    color: rgba(212, 165, 116, 0.3);
}
.vgm-preview-empty-icon svg { width: 100%; height: 100%; }
.vgm-preview-empty p {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.vgm-preview-stage.ready .vgm-preview-empty { display: none; }

.vgm-progress {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
}
.vgm-progress.active { display: flex; }
.vgm-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(212, 165, 116, 0.12);
    border-radius: 999px;
    overflow: hidden;
}
.vgm-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a574, #e8c089);
    transition: width 0.2s ease;
}
.vgm-progress-text {
    font-size: 0.72rem;
    color: rgba(212, 165, 116, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}
.vgm-result-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(ellipse at center, #1f1812 0%, #100c08 75%);
    z-index: 2;
}
.vgm-result-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}
.vgm-result-actions .vgm-btn { flex: 1; }
.vgm-result-actions .vgm-btn-primary { text-decoration: none; }
.vgm-result-meta {
    font-size: 0.72rem;
    color: rgba(212, 165, 116, 0.55);
    text-align: center;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Controls side ---------- */
.vgm-controls-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: auto;
    padding-right: 4px;
}
.vgm-controls-side::-webkit-scrollbar { width: 6px; }
.vgm-controls-side::-webkit-scrollbar-track { background: transparent; }
.vgm-controls-side::-webkit-scrollbar-thumb { background: rgba(212, 165, 116, 0.2); border-radius: 999px; }

.vgm-section {}
.vgm-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(212, 165, 116, 0.65);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.vgm-speed-value {
    color: #f2e8d8;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.vgm-speed-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vgm-speed-tick {
    font-size: 0.66rem;
    color: rgba(212, 165, 116, 0.45);
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
}
.vgm-speed-slider {
    flex: 1;
    accent-color: #d4a574;
    height: 4px;
}

.vgm-tab-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 12px;
}
.vgm-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(212, 165, 116, 0.45);
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s;
}
.vgm-tab:hover { color: rgba(212, 165, 116, 0.7); }
.vgm-tab.active {
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.18), rgba(212, 165, 116, 0.08));
    color: #f2e8d8;
}

.vgm-input-row {
    display: flex;
    gap: 8px;
}
.vgm-input-row input,
.vgm-text-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    color: #f2e8d8;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.vgm-text-input { width: 100%; }
.vgm-input-row input:focus,
.vgm-text-input:focus { border-color: rgba(212, 165, 116, 0.5); }
.vgm-input-row input::placeholder,
.vgm-text-input::placeholder { color: rgba(212, 165, 116, 0.3); }

.vgm-thumb-variants {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.vgm-thumb-variants.active { display: grid; }
.vgm-thumb-variant {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    padding: 0;
}
.vgm-thumb-variant:hover { transform: scale(1.03); }
.vgm-thumb-variant.active { border-color: #d4a574; }
.vgm-thumb-variant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vgm-thumb-variant-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    font-size: 0.6rem;
    color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.vgm-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    border: 1.5px dashed rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(212, 165, 116, 0.55);
    cursor: pointer;
    transition: all 0.2s;
}
.vgm-upload-drop:hover {
    border-color: rgba(212, 165, 116, 0.55);
    background: rgba(0, 0, 0, 0.3);
    color: #d4a574;
}
.vgm-upload-icon { font-size: 1.6rem; }
.vgm-upload-text {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.vgm-cropper {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vgm-cropper-stage {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    background: #0a0805;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 116, 0.2);
}
.vgm-cropper-stage canvas { display: block; touch-action: none; cursor: grab; }
.vgm-cropper-stage canvas:active { cursor: grabbing; }
.vgm-cropper-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(212, 165, 116, 0.5);
    border-radius: 10px;
}
.vgm-cropper-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vgm-slider-label {
    font-size: 0.72rem;
    color: rgba(212, 165, 116, 0.6);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.vgm-cropper-controls input[type=range] {
    flex: 1;
    accent-color: #d4a574;
}

.vgm-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.vgm-style-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 10px;
    color: rgba(212, 165, 116, 0.6);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}
.vgm-style-chip:hover {
    background: rgba(0, 0, 0, 0.45);
    color: #f2e8d8;
    border-color: rgba(212, 165, 116, 0.3);
}
.vgm-style-chip.active {
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.08));
    border-color: rgba(212, 165, 116, 0.55);
    color: #f2e8d8;
}
.vgm-chip-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.vgm-swatch-classic {
    background:
        radial-gradient(circle, #d4a574 0 22%, transparent 22%),
        repeating-radial-gradient(circle, #2a1f14 0 1px, #0a0805 1px 2px);
}
.vgm-swatch-colored {
    background:
        radial-gradient(circle, #d4a574 0 22%, transparent 22%),
        repeating-radial-gradient(circle, #b53850 0 1px, #6f1a2a 1px 2px);
}
.vgm-swatch-picture {
    background:
        radial-gradient(circle, rgba(0,0,0,0.15) 0 50%, transparent 50%),
        linear-gradient(135deg, #d4a574, #e85d75);
}
.vgm-swatch-gold {
    background:
        radial-gradient(circle, #f5d896 0 22%, transparent 22%),
        repeating-radial-gradient(circle, #1a140a 0 1px, #0a0805 1px 2px);
    box-shadow: inset 0 0 0 1px rgba(245,216,150,0.4);
}
.vgm-swatch-translucent {
    background:
        radial-gradient(circle, #d4a574 0 22%, transparent 22%),
        repeating-radial-gradient(circle, rgba(126, 184, 218, 0.6) 0 1px, rgba(126, 184, 218, 0.2) 1px 2px);
    box-shadow: inset 0 0 0 1px rgba(126, 184, 218, 0.3);
}
.vgm-swatch-aura {
    background:
        radial-gradient(circle, #d4a574 0 22%, transparent 22%),
        repeating-radial-gradient(circle, rgba(255,255,255,0.06) 0 1px, transparent 1px 2px),
        radial-gradient(circle at 30% 30%, #c77dff 0%, #7b2cbf 35%, #2d124a 70%, #0d0a07 100%);
    box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.35);
}

/* Toggle row (e.g., center-hole switch) */
.vgm-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    cursor: pointer;
    user-select: none;
}
.vgm-toggle-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vgm-toggle-switch {
    width: 32px;
    height: 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.vgm-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: transform 0.2s, background 0.2s;
}
.vgm-toggle-row input[type="checkbox"]:checked + .vgm-toggle-switch {
    background: rgba(212, 165, 116, 0.35);
    border-color: rgba(212, 165, 116, 0.55);
}
.vgm-toggle-row input[type="checkbox"]:checked + .vgm-toggle-switch::after {
    transform: translateX(14px);
    background: #f2e8d8;
}
.vgm-toggle-label {
    font-size: 0.78rem;
    color: rgba(242, 232, 216, 0.75);
    letter-spacing: 0.4px;
}

.vgm-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.vgm-color-row-label {
    font-size: 0.7rem;
    color: rgba(212, 165, 116, 0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.vgm-color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.vgm-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s;
    padding: 0;
}
.vgm-color-swatch:hover { transform: scale(1.1); }
.vgm-color-swatch.active {
    border-color: #f2e8d8;
    box-shadow: 0 0 0 1px #1a1610;
}
/* Custom color wheel — round chip with a conic gradient indicating "any color" */
.vgm-color-wheel {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(
        from 0deg,
        #ff2a92, #fff700, #5cba5c, #00e7ff,
        #7b2cbf, #ff2a92);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.vgm-color-wheel:hover { transform: scale(1.1); }
.vgm-color-wheel.active {
    border-color: #f2e8d8;
    box-shadow: 0 0 0 1px #1a1610;
}
.vgm-color-wheel input[type="color"] {
    /* hide the native color input but keep it functional & clickable */
    position: absolute;
    inset: -4px;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}

.vgm-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.vgm-quality-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 10px;
    color: rgba(212, 165, 116, 0.55);
    cursor: pointer;
    transition: all 0.2s;
}
.vgm-quality-chip:hover {
    background: rgba(0, 0, 0, 0.45);
    color: #f2e8d8;
}
.vgm-quality-chip.active {
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.08));
    border-color: rgba(212, 165, 116, 0.55);
    color: #f2e8d8;
}
.vgm-quality-name {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.vgm-quality-meta {
    font-size: 0.65rem;
    opacity: 0.65;
    letter-spacing: 0.4px;
}

.vgm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
    margin-top: auto;
}
.vgm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}
.vgm-btn-small { padding: 7px 12px; font-size: 0.78rem; }
.vgm-btn-primary {
    background: linear-gradient(180deg, #d4a574, #b88a5c);
    color: #1a1610;
    border-color: rgba(245, 216, 150, 0.4);
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.3);
}
.vgm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #e0b585, #c89a6c);
    transform: translateY(-1px);
}
.vgm-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.vgm-btn-secondary {
    background: rgba(212, 165, 116, 0.12);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.3);
}
.vgm-btn-secondary:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
}
.vgm-btn-ghost {
    background: transparent;
    color: rgba(212, 165, 116, 0.6);
    border-color: rgba(212, 165, 116, 0.2);
}
.vgm-btn-ghost:hover {
    background: rgba(212, 165, 116, 0.08);
    color: #f2e8d8;
}

/* "make gif" side-table button hover (gold accent to match MP's loop-btn palette) */
#music-section .loop-btn.make-gif-btn:hover {
    border-color: rgba(212, 165, 116, 0.5) !important;
    box-shadow: 0 0 16px rgba(212, 165, 116, 0.35);
}
#music-section .loop-btn.make-gif-btn:hover .loop-btn-icon { color: #d4a574; }
#music-section .loop-btn.make-gif-btn:hover .loop-btn-label { color: #d4a574; }

/* Responsive */
@media (max-width: 760px) {
    .vgm-panel { width: 96vw; max-height: 95vh; }
    .vgm-body { grid-template-columns: 1fr; }
    .vgm-preview-stage { aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto; }
}

/* ==== Phase C: records conveyor + source filter ==== */
/* =================================================
   Records conveyor — 2 horizontal scrolling rows
   Layered onto MP's crate view (replaces .records-display grid).
   ================================================= */
.records-conveyor {
    position: relative;
    width: 100%;
    max-width: min(1100px, 92vw);
    margin: 0 auto;
    /* Edge fade so cards fade in/out at the sides */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
.conveyor-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 1.8vw, 28px);
}
.conveyor-row {
    overflow: hidden;
    padding: 24px 0 18px;   /* vertical breathing room for hover-lift */
}
.conveyor-track {
    display: flex;
    gap: clamp(18px, 2vw, 28px);
    width: max-content;
    will-change: transform;
}
.conveyor-track > .record-card { flex-shrink: 0; }

/* Auto-scrolling conveyor marquee. Animate -50% because the cards are rendered twice. */
@keyframes conveyor-forward {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes conveyor-reverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
.conveyor-row[data-row="1"] .conveyor-track {
    animation: conveyor-forward 55s linear infinite;
}
.conveyor-row[data-row="2"] .conveyor-track {
    animation: conveyor-reverse 65s linear infinite;
}
.records-conveyor:hover .conveyor-track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .conveyor-row[data-row="1"] .conveyor-track,
    .conveyor-row[data-row="2"] .conveyor-track { animation: none; }
}

/* =================================================
   Toolbar above the conveyor: source filter (+ optional inline stats)
   ================================================= */
.collection-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 auto 14px;
}
.collection-stats-inline {
    display: inline-flex;
    gap: 6px;
}
.collection-stats-inline .stat-chip {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(212, 165, 116, 0.55);
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* =================================================
   Source filter (Spotify / Local toggle)
   ================================================= */
.source-filter {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 999px;
    margin: 0 auto 18px;
    align-self: center;
}
.source-filter-btn {
    background: none;
    border: none;
    padding: 6px 16px;
    color: rgba(212, 165, 116, 0.55);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.source-filter-btn:hover {
    color: #f2e8d8;
}
.source-filter-btn.active {
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.22), rgba(212, 165, 116, 0.1));
    color: #f2e8d8;
}
/* Spotify-only highlight */
.source-filter-btn[data-source-filter="spotify"].active {
    background: linear-gradient(180deg, rgba(29, 185, 84, 0.25), rgba(29, 185, 84, 0.12));
    color: #1db954;
}

/* Filtering rules — applied via data-active-source on the room-center */
.room-center[data-active-source="user"]    .record-card[data-source="spotify"] { display: none; }
.room-center[data-active-source="spotify"] .record-card[data-source="user"]    { display: none; }

/* ============================================================
   Auth pages (login / register / verify-email) — Laravel port.
   Vinyl aesthetic matching the modal design language
   (.add-song-modal-panel gradient card, amber labels, and the
   .add-song-btn-save / .add-song-btn-cancel button styles).
   ============================================================ */
body.auth-page {
    background: #1a1510;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-vinyl-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-vinyl-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 720px;
    margin: -360px 0 0 -360px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            #d4a574 0%, #d4a574 9%,
            #14100c 9.5%, #14100c 100%),
        #14100c;
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.8);
    opacity: 0.35;
    animation: authVinylSpin 90s linear infinite;
}

.auth-vinyl-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center,
        rgba(212, 165, 116, 0.05) 0px,
        rgba(212, 165, 116, 0.05) 2px,
        transparent 2px,
        transparent 8px);
}

.auth-vinyl-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #1a1510;
}

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

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #2c251d 0%, #1e1a14 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #d4a574 0%, #d4a574 28%, #14100c 32%, #14100c 100%);
    color: #14100c;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.auth-brand-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(212, 165, 116, 0.8);
}

.auth-heading {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f2e8d8;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}

.auth-sub {
    font-size: 0.85rem;
    color: rgba(242, 232, 216, 0.55);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.auth-sub strong {
    color: #d4a574;
    font-weight: 600;
}

.auth-errors {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(232, 93, 117, 0.08);
    border: 1px solid rgba(232, 93, 117, 0.35);
    border-radius: 8px;
}

.auth-error {
    font-size: 0.8rem;
    color: #e88a9b;
    line-height: 1.5;
}

.auth-status {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(92, 186, 92, 0.08);
    border: 1px solid rgba(92, 186, 92, 0.35);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #8fd08f;
    line-height: 1.5;
}

.auth-status-error {
    background: rgba(232, 93, 117, 0.08);
    border-color: rgba(232, 93, 117, 0.35);
    color: #e88d9d;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 0.8rem;
    color: rgba(242, 232, 216, 0.55);
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    accent-color: #d4a574;
}

.auth-submit {
    display: block;
    width: 100%;
    text-align: center;
}

.auth-submit-ghost {
    display: block;
    width: 100%;
    text-align: center;
}

.auth-logout-form {
    margin-top: 12px;
}

.auth-alt {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(242, 232, 216, 0.45);
}

.auth-alt a {
    color: #d4a574;
    text-decoration: none;
    font-weight: 600;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* Account group in the Settings modal (Laravel session auth) */
.settings-account-group .settings-hint {
    margin-bottom: 10px;
}

/* The deck is fixed-pixel art (300px sleeve + 1000px turntable, plus the
   300px sidebar = ~1600px). Between phone and full desktop it clips the
   controls off-screen — zoom the whole composition down to fit. */
@media (min-width: 601px) and (max-width: 1700px) {
    .turntable-area {
        zoom: 0.8;
    }
}

@media (min-width: 601px) and (max-width: 1440px) {
    .turntable-area {
        zoom: 0.66;
    }
}

/* ============================================================
   Phone layout for the player view (Laravel port).
   The legacy @600px rules already restack everything (horizontal
   song strip, sleeve as a wide card, shrunken deck) — this block
   only trims what those rules assumed the WebView would provide.
   ============================================================ */
@media (max-width: 600px) {
    .music-main {
        padding: 16px 12px 24px;   /* desktop 40/32 overflows a 390px phone */
        /* Centered flex + overflow:auto clips the sleeve off the top when the
           deck is taller than the viewport — align to top and scroll. */
        justify-content: flex-start;
    }

    .record-player {
        width: min(94vw, 380px);   /* fixed 380px clips on small phones */
    }

    .vinyl-sleeve {
        max-width: min(94vw, 380px);
    }

    .turntable-area::after {
        display: none;             /* 1050px-wide shelf glow forces h-scroll */
    }
}

/* Any touch device (incl. tablets wider than 600px): hover-revealed controls
   would otherwise be unreachable — keep them visible. */
@media (hover: none) and (pointer: coarse) {
    .song-actions {
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    .playlist-edit-btn {
        opacity: 0.9;
    }
}

/* ============================================================
   Playlist create / delete
   ============================================================ */

.new-playlist-btn {
    background: rgba(212, 165, 116, 0.08);
    border: 1px dashed rgba(212, 165, 116, 0.45);
    color: #d4a574;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-playlist-btn:hover {
    background: rgba(212, 165, 116, 0.16);
    border-color: #d4a574;
}

.playlist-delete-btn {
    background: rgba(180, 60, 60, 0.12);
    border: 1px solid rgba(200, 80, 80, 0.4);
    color: #e88a9b;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: auto;   /* park it left, away from Cancel/Save */
}

.playlist-delete-btn:hover {
    background: rgba(200, 60, 60, 0.3);
    color: #fff;
}

/* ============================================================
   Uploads + offline (PWA)
   ============================================================ */

/* "Or upload an audio file" button in the Add Song modal (MP3 source) */
.upload-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(212, 165, 116, 0.06);
    border: 1px dashed rgba(212, 165, 116, 0.4);
    border-radius: 10px;
    color: #d4a574;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-audio-btn:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: #d4a574;
}

.upload-progress {
    margin-top: 10px;
    height: 6px;
    border-radius: 3px;
    background: rgba(212, 165, 116, 0.12);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #d4a574, #e8c398);
    transition: width 0.15s ease;
}

.upload-status {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(212, 165, 116, 0.7);
    min-height: 1em;
}

.upload-status.upload-error {
    color: #e88a9b;
}

.upload-hint {
    margin-top: 8px;
    font-size: 0.72rem;
    color: rgba(242, 232, 216, 0.4);
    line-height: 1.5;
}

/* Full-page drop zone for audio files */
.drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(10, 8, 6, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.drop-overlay.visible {
    opacity: 1;
    /* Keep pointer-events off: drop fires on document; letting the overlay
       swallow pointer events breaks dragleave depth tracking. */
}

.drop-overlay-box {
    border: 2px dashed rgba(212, 165, 116, 0.6);
    border-radius: 20px;
    padding: 48px 64px;
    text-align: center;
    background: rgba(30, 24, 18, 0.6);
}

.drop-overlay-icon {
    font-size: 2.4rem;
    color: #d4a574;
    margin-bottom: 12px;
}

.drop-overlay-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f2e8d8;
    margin-bottom: 6px;
}

.drop-overlay-sub {
    font-size: 0.8rem;
    color: rgba(242, 232, 216, 0.55);
}

/* Import progress toast */
.import-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    z-index: 10006;
    max-width: min(92vw, 480px);
    background: linear-gradient(180deg, #2c251d 0%, #1e1a14 100%);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 12px;
    padding: 12px 20px;
    color: #f2e8d8;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.import-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.import-toast.import-toast-error {
    border-color: rgba(232, 93, 117, 0.5);
    color: #e88a9b;
}

/* Sidebar "save playlist offline" toggle */
.offline-toggle-btn.offline-saved {
    color: #5cba5c;
    border-color: rgba(92, 186, 92, 0.5);
}

.offline-toggle-btn.offline-saving {
    animation: offlineSavingPulse 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes offlineSavingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* While disconnected: online-only songs (YouTube/Spotify) grey out.
   Uploaded/MP3 songs stay fully interactive. */
body.offline-mode .song-list-item:not([data-src="mp3"]) {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.7);
}

body.offline-mode .song-list-item:not([data-src="mp3"])::after {
    content: 'online only';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(242, 232, 216, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 7px;
    border-radius: 8px;
    pointer-events: none;
}

@media (max-width: 600px) {
    /* On the phone tiles the badge sits over the vinyl, not off-screen right */
    body.offline-mode .song-list-item:not([data-src="mp3"])::after {
        right: 50%;
        transform: translate(50%, -50%);
    }
}
