/* ==========================================
   YouTube DJ Mixer - Modern CSS
   ========================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-console: #1a1a24;
    --bg-deck: #12121a;
    --accent-cyan: #00d4ff;
    --accent-magenta: #ff00aa;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #888899;
    --vinyl-dark: #111;
    --vinyl-groove: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================
   Animated Stars Background
   ========================================== */
#stars, #stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#stars {
    background: transparent;
    animation: animStars 100s linear infinite;
}

#stars:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 100px 50px, white, transparent),
        radial-gradient(1px 1px at 200px 150px, white, transparent),
        radial-gradient(1px 1px at 300px 250px, white, transparent),
        radial-gradient(1px 1px at 400px 100px, white, transparent),
        radial-gradient(1px 1px at 500px 300px, white, transparent),
        radial-gradient(1px 1px at 600px 200px, white, transparent),
        radial-gradient(1px 1px at 700px 350px, white, transparent),
        radial-gradient(1px 1px at 150px 400px, white, transparent),
        radial-gradient(1px 1px at 250px 500px, white, transparent),
        radial-gradient(1px 1px at 350px 450px, white, transparent),
        radial-gradient(1px 1px at 450px 550px, white, transparent),
        radial-gradient(1px 1px at 550px 480px, white, transparent),
        radial-gradient(1px 1px at 650px 520px, white, transparent),
        radial-gradient(1px 1px at 750px 600px, white, transparent),
        radial-gradient(1px 1px at 50px 300px, white, transparent),
        radial-gradient(1px 1px at 800px 400px, white, transparent);
    background-size: 800px 650px;
    opacity: 0.4;
}

#stars2:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 50px 200px, var(--accent-cyan), transparent),
        radial-gradient(2px 2px at 400px 400px, var(--accent-magenta), transparent),
        radial-gradient(2px 2px at 700px 100px, var(--accent-green), transparent);
    background-size: 800px 500px;
    opacity: 0.3;
    animation: animStars 150s linear infinite reverse;
}

@keyframes animStars {
    from { transform: translateY(0); }
    to { transform: translateY(-500px); }
}

/* ==========================================
   Main Container
   ========================================== */
.mixer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================
   Header
   ========================================== */
.mixer-header {
    text-align: center;
    padding: 20px 0 30px;
}

.mixer-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.mixer-header h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mixer-header .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    letter-spacing: 2px;
}

/* ==========================================
   Console Layout
   ========================================== */
.console {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    background: var(--bg-console);
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   Deck Styles
   ========================================== */
.deck {
    background: var(--bg-deck);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.deck-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.deck-a .deck-label { color: var(--accent-cyan); }
.deck-b .deck-label { color: var(--accent-magenta); }

.deck-time {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
    background: #000;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ==========================================
   Turntable / Vinyl
   ========================================== */
.turntable {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.platter {
    position: relative;
    width: 220px;
    height: 220px;
}

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #333 0%, #333 15%, transparent 15%),
        repeating-radial-gradient(circle at center, var(--vinyl-dark) 0px, var(--vinyl-dark) 2px, var(--vinyl-groove) 2px, var(--vinyl-groove) 4px);
    box-shadow:
        0 0 0 3px #000,
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    transition: transform 0.1s linear;
}

.vinyl.spinning {
    animation: spin 1.8s linear infinite;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, #444 0%, #222 100%);
    border: 2px solid #555;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.vinyl-label .vinyl-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.vinyl-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #888 0%, #333 100%);
    border-radius: 50%;
    border: 2px solid #222;
    z-index: 5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* YouTube Player in video layer */
.video-layer iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    pointer-events: none;
}

/* Tonearm */
.tonearm {
    position: absolute;
    top: 15px;
    right: 20px;
    width: calc(50% - 10px);
    min-width: 80px;
    max-width: 140px;
    height: 6px;
    background: linear-gradient(90deg, #555, #888, #666);
    border-radius: 3px;
    transform-origin: calc(100% - 8px) center;
    transform: rotate(-30deg);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Pivot point (base del braccetto) */
.tonearm::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #999, #555);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Puntina (headshell) */
.tonearm::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 14px;
    background: linear-gradient(180deg, #aaa, #777);
    border-radius: 3px 3px 6px 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tonearm.playing {
    transform: rotate(-15deg);
}

/* Deck A - tonearm a destra */
.deck-a .tonearm {
    right: 20px;
    left: auto;
}

/* Deck B - tonearm a sinistra (speculare) */
.deck-b .tonearm {
    left: 20px;
    right: auto;
    transform-origin: 8px center;
    transform: rotate(30deg);
}

.deck-b .tonearm::after {
    left: 0;
    right: auto;
}

.deck-b .tonearm::before {
    left: auto;
    right: -4px;
}

.deck-b .tonearm.playing {
    transform: rotate(15deg);
}

/* ==========================================
   Seek Bar
   ========================================== */
.seek-bar {
    margin-top: 15px;
    padding: 0 10px;
}

.seek-slider-container {
    position: relative;
    width: 100%;
}

.autofade-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff3333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.autofade-marker.visible {
    opacity: 1;
}

.seek-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    transition: transform 0.1s ease;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.seek-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.seek-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.deck-a .seek-slider::-webkit-slider-thumb {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.deck-b .seek-slider::-webkit-slider-thumb {
    background: var(--accent-magenta);
    box-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
}

.seek-time {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ==========================================
   Deck Controls
   ========================================== */
.deck-controls {
    margin-top: 15px;
}

.track-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.track-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transport-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-play, .btn-stop {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-green), #00cc66);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.btn-play.playing {
    background: linear-gradient(135deg, #ff6600, #ff3300);
    box-shadow: 0 4px 15px rgba(255, 100, 0, 0.3);
}

.btn-stop {
    background: linear-gradient(135deg, #444, #333);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-stop:hover {
    background: linear-gradient(135deg, #555, #444);
}

.btn-play svg, .btn-stop svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.volume-control label {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.volume-control input[type="range"] {
    flex: 1;
}

.volume-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--accent-green);
    min-width: 30px;
    text-align: right;
}

/* ==========================================
   Mixer Center Panel
   ========================================== */
.mixer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}

/* Video Preview con Crossfade */
.video-preview {
    position: relative;
    width: 280px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.video-layer-a {
    z-index: 1;
    opacity: 1;
}

.video-layer-b {
    z-index: 2;
    opacity: 0.5;
}


.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 10;
}

.video-label-a, .video-label-b {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    transition: opacity 0.3s ease;
}

.video-label-a {
    background: rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
}

.video-label-b {
    background: rgba(255, 0, 170, 0.3);
    color: var(--accent-magenta);
}

/* Channel Volume Faders (Vertical) */
.channel-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    align-self: stretch;
}

.channel-volume .volume-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.channel-volume-a .volume-label { color: var(--accent-cyan); }
.channel-volume-b .volume-label { color: var(--accent-magenta); }

.channel-volume .volume-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: var(--accent-green);
    min-width: 30px;
    text-align: center;
}

.channel-volume .volume-min {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* Vertical Slider */
.volume-slider-vertical {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    flex: 1;
    min-height: 100px;
    background: linear-gradient(to top, rgba(0,255,136,0.3), rgba(255,255,255,0.1));
    border-radius: 6px;
    cursor: pointer;
    writing-mode: vertical-lr;
    direction: rtl; /* 100 at top, 0 at bottom */
}

.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 12px;
    background: linear-gradient(180deg, #fff, #ccc);
    border-radius: 3px;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.volume-slider-vertical::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.volume-slider-vertical::-moz-range-thumb {
    width: 24px;
    height: 12px;
    background: linear-gradient(180deg, #fff, #ccc);
    border-radius: 3px;
    cursor: grab;
    border: none;
}

.channel-volume-a .volume-slider-vertical::-webkit-slider-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), #0099bb);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.channel-volume-a .volume-slider-vertical::-moz-range-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), #0099bb);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.channel-volume-b .volume-slider-vertical::-webkit-slider-thumb {
    background: linear-gradient(180deg, var(--accent-magenta), #bb0077);
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

.channel-volume-b .volume-slider-vertical::-moz-range-thumb {
    background: linear-gradient(180deg, var(--accent-magenta), #bb0077);
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

.mixer-panel {
    display: flex;
    align-items: stretch;
    gap: 15px;
    background: linear-gradient(180deg, #2a2a35 0%, #1a1a24 100%);
    border-radius: 15px;
    padding: 20px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mixer-panel-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 120px;
}

/* VU Meters */
.vu-meters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.vu-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.vu-meter span {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.vu-bar {
    width: 12px;
    height: 70px;
    background: #111;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
}

.vu-bar .vu-segment {
    flex: 1;
    border-radius: 1px;
    background: #333;
    transition: background 0.05s ease;
}

/* Colori segmenti quando attivi (1-2 in alto=rosso, 3-4=giallo, 5-8=verde) */
.vu-bar .vu-segment.active:nth-child(1),
.vu-bar .vu-segment.active:nth-child(2) {
    background: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

.vu-bar .vu-segment.active:nth-child(3),
.vu-bar .vu-segment.active:nth-child(4) {
    background: #ffaa00;
    box-shadow: 0 0 5px #ffaa00;
}

.vu-bar .vu-segment.active:nth-child(5),
.vu-bar .vu-segment.active:nth-child(6),
.vu-bar .vu-segment.active:nth-child(7),
.vu-bar .vu-segment.active:nth-child(8) {
    background: var(--accent-green);
    box-shadow: 0 0 5px var(--accent-green);
}

/* Peak indicator */
.vu-bar .vu-peak {
    position: absolute;
    left: 2px;
    right: 2px;
    height: 3px;
    background: #ff0000;
    border-radius: 1px;
    transition: bottom 0.05s ease;
    box-shadow: 0 0 8px #ff0000;
}

/* EQ Section */
.eq-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.eq-channel {
    display: flex;
    gap: 8px;
}

.eq-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 20px;
    height: 60px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
}

/* Crossfader */
.crossfader-section {
    text-align: center;
}

.crossfader-section label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.crossfader {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--accent-cyan), #333 45%, #333 55%, var(--accent-magenta));
    border-radius: 4px;
    cursor: pointer;
}

.crossfader::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 4px;
    cursor: grab;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.crossfader::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.crossfader::-moz-range-thumb {
    width: 30px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 4px;
    cursor: grab;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.crossfader-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
}

.crossfader-labels span:first-child { color: var(--accent-cyan); }
.crossfader-labels span:last-child { color: var(--accent-magenta); }

/* Autofade Button */
.autofade-section {
    margin-top: 15px;
    text-align: center;
}

.btn-autofade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-autofade:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-autofade.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 170, 0.2));
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-autofade.active .autofade-icon {
    animation: spin 2s linear infinite;
}

.autofade-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-autofade.fading {
    animation: pulse-glow 1s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 136, 0.6); }
}

/* ==========================================
   Range Slider Global Styles
   ========================================== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

input[type="range"]:focus {
    outline: none;
}

/* ==========================================
   Playlist Section
   ========================================== */
.playlist-section {
    margin-top: 30px;
    background: var(--bg-console);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.playlist-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.playlist-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.playlist-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.playlist-search input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.playlist-search input::placeholder {
    color: var(--text-secondary);
}

.playlist-search button {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.playlist-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.playlist-container {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.playlist-empty small {
    display: block;
    margin-top: 10px;
    opacity: 0.6;
    font-size: 0.75rem;
}

/* Playlist Track */
.playlist-track {
    display: grid;
    grid-template-columns: auto 60px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.playlist-track:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-track .track-number {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 25px;
}

.playlist-track .track-thumb {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    object-fit: cover;
    background: #333;
}

.playlist-track .track-details {
    overflow: hidden;
}

.playlist-track .track-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.playlist-track .track-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.playlist-track .track-cue {
    width: 60px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
}

.playlist-track .track-actions {
    display: flex;
    gap: 8px;
}

.btn-load {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-a {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-load-a:hover {
    background: var(--accent-cyan);
    color: #000;
}

.btn-load-b {
    background: rgba(255, 0, 170, 0.2);
    color: var(--accent-magenta);
    border: 1px solid var(--accent-magenta);
}

.btn-load-b:hover {
    background: var(--accent-magenta);
    color: #000;
}

/* ==========================================
   Keyboard Shortcuts Hint
   ========================================== */
.shortcuts-hint {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.shortcuts-hint span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.shortcuts-hint kbd {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    margin-right: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-magenta);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1000px) {
    .console {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mixer-center {
        order: -1;
    }

    .mixer-panel {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .crossfader-section {
        width: 100%;
    }

    .platter {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .mixer-container {
        padding: 10px;
    }

    .console {
        padding: 15px;
    }

    .deck {
        padding: 15px;
    }

    .platter {
        width: 150px;
        height: 150px;
    }

    .playlist-header {
        flex-direction: column;
        align-items: stretch;
    }

    .playlist-search {
        max-width: 100%;
    }

    .playlist-track {
        grid-template-columns: auto 50px 1fr;
    }

    .playlist-track .track-cue,
    .playlist-track .track-actions {
        grid-column: span 3;
        justify-content: center;
    }

    .shortcuts-hint {
        display: none;
    }
}
