:root {
    --bg-chassis: #15171a;
    --bg-panel: #212429;
    --border-line: #343942;
}

* { box-sizing: border-box; user-select: none; }

body {
    margin: 0;
    padding: 12px;
    background: radial-gradient(circle at top, #181b20 0%, #090a0c 100%);
    color: #e5e7eb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================================
   LAYOUT STRAIGHT FIT (DEFAULT) & MODE FULL LAYAR
   ========================================================================= */
.mixer-wrapper {
    width: fit-content;
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

body.full-screen-mode {
    padding: 6px;
    overflow: hidden;
}
body.full-screen-mode .mixer-wrapper {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 12px);
}
body.full-screen-mode .mixer-console {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    justify-content: space-between;
}
body.full-screen-mode .bank-channels { flex: 1; }
body.full-screen-mode .channel-strip {
    flex: 1;
    width: auto;
    min-width: 68px;
    justify-content: space-between;
}
body.full-screen-mode .master-section {
    width: 350px;
    flex-shrink: 0;
    gap: 4px;
    padding: 6px;
    justify-content: space-between;
}
body.full-screen-mode .knob { width: 42px; height: 42px; }
body.full-screen-mode .knob-collar { width: 28px; height: 28px; }
body.full-screen-mode .knob-cap { width: 20px; height: 20px; }

/* Proporsi pas untuk layar 1366x768 ke atas saat Full Layar */
body.full-screen-mode .fader-track-area { height: 144px; }
body.full-screen-mode .ch-fader-wrap .pro-fader { height: 138px; width: 54px; }
body.full-screen-mode .ch-fader-wrap .pro-fader-cap,
body.full-screen-mode .master-faders .pro-fader-cap { width: 25px; height: 32px; }
body.full-screen-mode .ch-meter { height: 124px; }
body.full-screen-mode .pro-fader.pro-fader-master {
    flex: 1;
    height: auto;
    min-height: 112px;
    width: 100%;
    max-width: 56px;
}
body.full-screen-mode .pro-fader.pro-fader-eq { height: 74px; width: 100%; max-width: 40px; }
body.full-screen-mode .spectrum-signal-box { height: 74px; }

/* =========================================================================
   TOMBOL MEWAH BACKLIT HARDWARE
   ========================================================================= */
.lux-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(180deg, #323740 0%, #1c1f24 55%, #15171b 100%);
    color: #9ca3af;
    border: 1px solid #0b0d10;
    border-top-color: #4b5260;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 3px rgba(0, 0, 0, 0.55);
    transition: all 0.16s ease;
}

.lux-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.01) 100%);
    pointer-events: none;
}

.lux-btn:hover {
    color: #f3f4f6;
    border-top-color: #6b7280;
    background: linear-gradient(180deg, #3c424d 0%, #23272e 55%, #191c21 100%);
}

.lux-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(0, 0, 0, 0.65);
}

.btn-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111317;
    border: 1px solid #000;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
    flex-shrink: 0;
    transition: all 0.18s ease;
}

/* =========================================================================
   BAR ATAS (DETEKSI DEVICE, MODE FX FISIK, QUANTUM DSP, FULLSCREEN)
   ========================================================================= */
.device-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #1f2228 0%, #14161a 100%);
    border: 1px solid #2e333c;
    padding: 7px 12px;
    border-radius: 8px;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
.device-bar-left, .device-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-scan {
    padding: 5px 10px;
    font-size: 11px;
    color: #dbeafe;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    border-top-color: #60a5fa;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-scan .btn-led { background: #93c5fd; box-shadow: 0 0 6px #60a5fa; }
.btn-scan:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.65), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Tombol Mode FX External (100% Wet) untuk Mixer Fisik */
.btn-fx-ext {
    padding: 5px 10px;
    font-size: 11px;
}
.btn-fx-ext.active {
    background: linear-gradient(180deg, #a855f7 0%, #7e22ce 55%, #581c87 100%);
    color: #faf5ff;
    border-color: #3b0764;
    border-top-color: #e9d5ff;
    text-shadow: 0 0 6px rgba(250, 245, 255, 0.85);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.78), 0 2px 5px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.btn-fx-ext.active .btn-led {
    background: #f3e8ff;
    box-shadow: 0 0 7px #f3e8ff, 0 0 12px #c084fc;
}

.btn-quantum { padding: 5px 10px; font-size: 11px; }
.btn-quantum.active {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 55%, #92400e 100%);
    color: #fffbeb;
    border-color: #78350f;
    border-top-color: #fde68a;
    text-shadow: 0 0 6px rgba(255, 251, 235, 0.8);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7), 0 2px 5px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255,255,255,0.45);
}
.btn-quantum.active .btn-led { background: #fef08a; box-shadow: 0 0 7px #fef08a, 0 0 12px #f59e0b; }

.btn-fullscreen { padding: 5px 10px; font-size: 11px; }
.btn-fullscreen.active {
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 55%, #115e59 100%);
    color: #f0fdfa;
    border-color: #134e4a;
    border-top-color: #5eead4;
    text-shadow: 0 0 6px rgba(240, 253, 250, 0.8);
    box-shadow: 0 0 14px rgba(20, 184, 166, 0.65), inset 0 1px 1px rgba(255,255,255,0.4);
}
.btn-fullscreen.active .btn-led { background: #99f6e4; box-shadow: 0 0 7px #5eead4; }

.engine-badge {
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: bold;
    color: #34d399;
    background: #08120e;
    border: 1px solid #065f46;
    padding: 3px 7px;
    border-radius: 4px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.8);
}

.limiter-led {
    font-size: 10px;
    font-weight: bold;
    color: #4b5563;
    background: #101216;
    border: 1px solid #2d323b;
    padding: 3px 7px;
    border-radius: 4px;
    transition: 0.08s;
}
.limiter-led.active {
    color: #fff;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    border-color: #fca5a5;
    text-shadow: 0 0 6px #fff;
    box-shadow: 0 0 12px #ef4444, 0 0 4px #fca5a5 inset;
}

.device-status { font-size: 11px; color: #9ca3af; }

.output-control {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #cbd5e1;
}
.output-control select {
    background: #14171c;
    color: #f3f4f6;
    border: 1px solid #3f4654;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    max-width: 210px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

/* =========================================================================
   CHASSIS MIXER & CHANNEL STRIP
   ========================================================================= */
.mixer-console {
    display: flex;
    flex-wrap: nowrap;
    background: linear-gradient(180deg, #1d2025 0%, #121417 100%);
    border: 3px solid #2d323b;
    border-top-color: #414854;
    border-radius: 10px;
    padding: 8px;
    gap: 4px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    max-width: 96vw;
}

.bank-channels { display: flex; gap: 2px; }

.channel-strip {
    width: 68px;
    background: var(--bg-panel);
    border: 1px solid var(--border-line);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.ch-top {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px 4px;
    background: #111317;
    border-bottom: 1px solid #2e333c;
}
.ch-num-badge {
    font-size: 10px;
    font-weight: 800;
    color: #e5e7eb;
    background: linear-gradient(180deg, #374151, #1f2937);
    border: 1px solid #4b5563;
    padding: 1px 7px;
    border-radius: 3px;
}

.ch-input-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 3px;
    background: #181a1f;
    border-bottom: 1px solid #2e333c;
}
.ch-device-sel {
    width: 100%;
    background: #0e1013;
    color: #e5e7eb;
    border: 1px solid #3b414d;
    border-radius: 3px;
    font-size: 8.5px;
    padding: 2px 1px;
    outline: none;
}

.btn-mic { width: 100%; font-size: 8px; padding: 3px 2px; border-radius: 4px; }
.btn-mic.live {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #991b1b 100%);
    color: #fff;
    border-color: #7f1d1d;
    border-top-color: #fca5a5;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8), 0 1px 3px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.btn-mic.live .btn-led { background: #fecaca; box-shadow: 0 0 6px #fff, 0 0 10px #ef4444; }

.ch-mustard-row { width: 100%; display: flex; gap: 3px; }
.btn-mustard { flex: 1; font-size: 7.5px; padding: 3px 0; border-radius: 3px; }
.btn-mustard.hpf.active {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 55%, #075985 100%);
    color: #f0f9ff;
    border-color: #0c4a6e;
    border-top-color: #bae6fd;
    text-shadow: 0 0 6px rgba(224, 242, 254, 0.95);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.btn-mustard.tube.active {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 55%, #92400e 100%);
    color: #fffbeb;
    border-color: #78350f;
    border-top-color: #fef08a;
    text-shadow: 0 0 6px rgba(254, 243, 199, 0.95);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.ch-section-dark {
    width: 100%;
    padding: 3px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: linear-gradient(180deg, #25282e 0%, #1c1f24 100%);
}
.ch-section-eq {
    width: 100%;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: linear-gradient(180deg, #343840 0%, #2a2d34 100%);
    border-top: 1px solid #4b5260;
    border-bottom: 1px solid #121417;
}

/* =========================================================================
   KNOB 3D PRO-CLUB STYLE
   ========================================================================= */
.knob-group { display: flex; flex-direction: column; align-items: center; gap: 0px; }
.lbl { font-size: 7px; font-weight: 700; color: #cbd5e1; letter-spacing: 0.5px; margin-bottom: -2px; z-index: 2; }
.lbl-green { color: #86efac; }
.lbl-dark { font-size: 7px; font-weight: 800; color: #e2e8f0; letter-spacing: 0.5px; margin-bottom: -2px; z-index: 2; }
.fx-meter-row .lbl-dark { color: #1e293b; }
.lbl-red-dark { color: #991b1b !important; }

.knob {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
}

.knob-scale { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.knob-scale .tick { stroke: rgba(226, 232, 240, 0.55); stroke-width: 1.1; stroke-linecap: round; }
.knob-scale .tick.major { stroke: #f8fafc; stroke-width: 1.6; }
.fx-meter-row .knob-scale .tick { stroke: rgba(30, 41, 59, 0.55); }
.fx-meter-row .knob-scale .tick.major { stroke: #0f172a; }

.knob-collar {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(from 140deg, #8a93a2 0deg, #323741 65deg, #15181d 140deg, #5b6370 215deg, #22262e 285deg, #8a93a2 360deg);
    border: 1px solid #090b0e;
    box-shadow: 4px 5px 7px rgba(0, 0, 0, 0.88), 2px 2px 3px rgba(0, 0, 0, 0.92), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transition: box-shadow 0.12s ease;
}

.ch-section-eq .knob-collar,
.knob.knob-blue .knob-collar {
    background: conic-gradient(from 135deg, #ffffff 0deg, #9ca3af 55deg, #4b5563 130deg, #e5e7eb 205deg, #6b7280 280deg, #ffffff 360deg);
    border-color: #1f242c;
    box-shadow: 4px 5px 7px rgba(0, 0, 0, 0.88), 2px 2px 3px rgba(0, 0, 0, 0.9), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

.knob.knob-green .knob-collar  { background: conic-gradient(from 135deg, #bbf7d0 0deg, #22c55e 70deg, #14532d 150deg, #86efac 230deg, #166534 300deg, #bbf7d0 360deg); }
.knob.knob-purple .knob-collar { background: conic-gradient(from 135deg, #e9d5ff 0deg, #a855f7 70deg, #3b0764 150deg, #d8b4fe 230deg, #581c87 300deg, #e9d5ff 360deg); }
.knob.knob-teal .knob-collar   { background: conic-gradient(from 135deg, #99f6e4 0deg, #14b8a6 70deg, #134e4a 150deg, #5eead4 230deg, #115e59 300deg, #99f6e4 360deg); }
.knob.knob-red .knob-collar    { background: conic-gradient(from 135deg, #fecaca 0deg, #ef4444 70deg, #450a0a 150deg, #fca5a5 230deg, #7f1d1d 300deg, #fecaca 360deg); }
.knob.knob-gold .knob-collar   { background: conic-gradient(from 135deg, #fef08a 0deg, #f59e0b 70deg, #451a03 150deg, #fde047 230deg, #92400e 300deg, #fef08a 360deg); }

.knob:hover .knob-collar,
.knob.dragging .knob-collar {
    box-shadow: 4px 5px 8px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.25), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

.knob-cap {
    position: relative;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #525864 0%, #23272e 42%, #0e1013 85%, #07080a 100%);
    border: 1px solid #050607;
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.knob-rotor { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.knob-pointer {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.2px;
    height: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 75%, rgba(226, 232, 240, 0.2) 100%);
    border-radius: 1px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.85);
}
.knob.dragging .knob-pointer { background: #ffffff; box-shadow: 0 0 6px #ffffff, 0 0 10px #38bdf8; }

/* =========================================================================
   TOMBOL CHANNEL ON/OFF BACKLIT AKRILIK
   ========================================================================= */
.ch-on-wrap {
    width: 100%;
    padding: 5px 0;
    background: linear-gradient(180deg, #d8dce2 0%, #bcc2cc 100%);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #4b5563;
}

.btn-on {
    position: relative;
    width: 36px;
    height: 28px;
    border-radius: 7px;
    border: 1.5px solid #1f2937;
    background: linear-gradient(180deg, #374151 0%, #1f242c 60%, #111318 100%);
    color: #6b7280;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 -2px 3px rgba(0, 0, 0, 0.65);
    transition: all 0.16s ease;
}

.btn-on::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.btn-on:active { transform: translateY(1px) scale(0.96); }
.on-led { width: 12px; height: 3px; border-radius: 2px; background: #111827; box-shadow: inset 0 1px 2px rgba(0,0,0,0.9); transition: all 0.16s ease; }

.btn-on.active {
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #15803d 100%);
    border-color: #14532d;
    border-top-color: #bbf7d0;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.9), 0 0 5px rgba(134, 239, 172, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.btn-on.active .on-led { background: #ecfdf5; box-shadow: 0 0 6px #ffffff, 0 0 10px #4ade80; }

/* =========================================================================
   FADER 3D GAYA KONSOL PRO (SKALA 0-10 + REL HITAM + CAP RIBBED P-LOCK)
   ========================================================================= */
.ch-fader-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5px 2px 4px;
    background: linear-gradient(180deg, #242122 0%, #181617 100%);
}
.fader-track-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 114px;
    gap: 2px;
}

.pro-fader {
    position: relative;
    width: 52px;
    height: 110px;
    cursor: ns-resize;
    touch-action: none;
    flex-shrink: 0;
}

.pro-fader-travel {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    right: 0;
}

.pro-fader-scale {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pf-tick {
    position: absolute;
    left: 0;
    right: 2px;
    height: 1px;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
}
.pf-num {
    width: 11px;
    font-size: 6px;
    font-weight: 700;
    color: #9ca3af;
    text-align: right;
    padding-right: 2px;
    line-height: 1;
}
.pf-line {
    flex: 1;
    height: 1px;
    background: rgba(215, 218, 224, 0.34);
}
.pf-tick.major .pf-num { color: #f8fafc; }
.pf-tick.major .pf-line { height: 1.8px; background: #f1f5f9; }

.pro-fader-slot {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: calc(50% + 5px);
    transform: translateX(-50%);
    width: 4.5px;
    background: #020203;
    border-radius: 2.5px;
    box-shadow: inset 1px 1px 3px #000000, 1px 0 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.pro-fader-cap {
    position: absolute;
    left: calc(50% + 5px);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 31px;
    border-radius: 2.5px;
    border: 1px solid #050607;
    border-top-color: #4b5260;
    border-bottom-color: #6b7280;
    background: linear-gradient(
        180deg,
        #32363f 0%,
        #17191d 14%,
        #0d0f12 46%,
        #191c22 54%,
        #23272f 68%,
        #13151a 74%,
        #4b525e 79%,
        #1c2026 84%,
        #68707d 89%,
        #22262d 94%,
        #7d8594 100%
    );
    box-shadow:
        3px 4px 7px rgba(0, 0, 0, 0.92),
        1px 2px 3px rgba(0, 0, 0, 0.95),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset -1px 0 0 rgba(0, 0, 0, 0.8);
    pointer-events: none;
    will-change: top;
}

/* Efek meluncur halus seperti motorized fader saat memilih preset EQ */
.pro-fader.preset-glide .pro-fader-cap {
    transition: top 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.pro-fader-cap::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 2.5px;
    border-radius: 1px;
    background: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 100%);
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.75);
}

.pro-fader-cap::after {
    content: '';
    position: absolute;
    top: 48%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 2.2px;
    background: linear-gradient(90deg, #d1d5db 0%, #ffffff 15%, #ffffff 85%, #d1d5db 100%);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.pro-fader:hover .pro-fader-cap,
.pro-fader.dragging .pro-fader-cap {
    border-top-color: #94a3b8;
    box-shadow:
        3px 4px 9px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(56, 189, 248, 0.3),
        inset 1px 0 0 rgba(255, 255, 255, 0.22);
}

.pro-fader.dragging .pro-fader-cap::before {
    background: #ffffff;
    box-shadow: 0 0 6px #ffffff, 0 0 10px #38bdf8;
}

/* Varian Master Fader (MP3, FX, GRP, L MIX, R MIX) — mengisi tinggi kotak penuh */
.pro-fader.pro-fader-master {
    width: 100%;
    max-width: 55px;
    flex: 1;
    height: auto;
    min-height: 104px;
}
.pro-fader.pro-fader-master .pro-fader-travel {
    top: 14px;
    bottom: 14px;
}

/* Varian Mini Pro-Fader untuk 7-Band Stereo Graphic Equalizer */
.pro-fader.pro-fader-eq {
    width: 100%;
    max-width: 36px;
    height: 72px;
}
.pro-fader.pro-fader-eq .pro-fader-travel {
    top: 10px;
    bottom: 10px;
}
.pro-fader.pro-fader-eq .pro-fader-slot {
    left: 50%;
    width: 3.5px;
    top: -4px;
    bottom: -4px;
}
.pro-fader.pro-fader-eq .pf-tick {
    left: 3px;
    right: 3px;
}
.pro-fader.pro-fader-eq .pro-fader-cap {
    left: 50%;
    width: 19px;
    height: 18px;
}
.pro-fader.pro-fader-eq .pro-fader-cap::before {
    top: 2px;
    width: 7px;
    height: 1.8px;
}
.pro-fader.pro-fader-eq .pro-fader-cap::after {
    height: 1.8px;
}

/* VU Meter Channel Bersegmen LED */
.ch-meter {
    position: relative;
    width: 6px;
    height: 92px;
    background: #090a0c;
    border: 1px solid #2f343d;
    border-radius: 2px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.ch-meter::after,
.vu-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to top,
        transparent 0px,
        transparent 3px,
        rgba(9, 10, 12, 0.85) 3px,
        rgba(9, 10, 12, 0.85) 5px
    );
    pointer-events: none;
}
.ch-meter-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #22c55e 0%, #22c55e 62%, #eab308 78%, #ef4444 100%);
    transition: height 0.05s;
}
.ch-footer-num {
    width: 82%;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    background: #22262c;
    border: 1px solid #3d434e;
    border-radius: 2px;
    padding: 1px 0;
}

/* =========================================================================
   MASTER SECTION TENGAH + MODUL USB MP3 PLAYER + PRESET FX + SPECTRUM
   ========================================================================= */
.master-section {
    width: 318px;
    background: #1c1f24;
    border: 1px solid var(--border-line);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 7px;
    gap: 5px;
    overflow: hidden;
}
.brand-box { flex-shrink: 0; text-align: center; padding: 3px; border-bottom: 1px solid #353b45; }
.brand-logo { display: inline-block; border: 1.5px solid #cbd5e1; padding: 1px 8px; font-weight: 800; letter-spacing: 1.5px; font-size: 11px; }
.brand-model { font-size: 10px; color: #fbbf24; margin-top: 2px; font-weight: 700; letter-spacing: 0.5px; }

.fx-ext-banner {
    display: none;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 50%, #4c1d95 100%);
    border: 1px solid #c084fc;
    color: #faf5ff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}
.fx-ext-banner strong {
    background: #0f0720;
    color: #e9d5ff;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.mp3-module {
    flex-shrink: 0;
    background: #0a0b0d;
    border: 2px solid #373c46;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9);
}
.dsp-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    color: #ff4500;
    text-shadow: 0 0 8px #ff4500;
}
.dsp-mode { font-size: 11px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 215px; }
.dsp-time { font-size: 13px; font-weight: bold; }
.mp3-progress { width: 100%; height: 5px; accent-color: #ff4500; cursor: pointer; margin: 0; }
.mp3-controls { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.mp3-btn { flex: 1; font-size: 10px; padding: 4px 2px; }
.mp3-btn.load-btn {
    flex: 1.5;
    color: #eff6ff;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 55%, #1e3a8a 100%);
    border-top-color: #93c5fd;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.45), inset 0 1px 1px rgba(255,255,255,0.3);
}
.mp3-btn.load-btn:hover { box-shadow: 0 0 12px rgba(59, 130, 246, 0.75); }
.mp3-btn.play-btn.playing {
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #14532d 100%);
    color: #ffffff;
    border-color: #14532d;
    border-top-color: #bbf7d0;
    text-shadow: 0 0 6px #fff;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* 7-Band Graphic EQ + Preset Selector */
.geq-box {
    flex-shrink: 0;
    background: linear-gradient(180deg, #242122 0%, #161415 100%);
    border: 1px solid #353b45;
    border-radius: 4px;
    padding: 5px 5px 4px;
    overflow: hidden;
}
.geq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.geq-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #e2e8f0;
    white-space: nowrap;
}
.geq-preset-select {
    background: linear-gradient(180deg, #1b1f26 0%, #0e1014 100%);
    color: #fbbf24;
    border: 1px solid #475569;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 9.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    max-width: 140px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}
.geq-preset-select:hover,
.geq-preset-select:focus { border-color: #fbbf24; }
.geq-preset-select option { background: #14171c; color: #f3f4f6; }
.geq-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 3px; width: 100%; }
.geq-band { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.geq-lbl { font-size: 8px; color: #94a3b8; font-weight: 600; }

/* Modul FX + Preset FX + Stereo VU Meter */
.fx-meter-row {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    background: linear-gradient(180deg, #dde0e5 0%, #c9cdd4 100%);
    padding: 5px 6px;
    border-radius: 4px;
    color: #111;
}
.fx-left-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fx-preset-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}
.fx-preset-lbl {
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #1e293b;
}
.fx-preset-select {
    flex: 1;
    max-width: 165px;
    background: #14171c;
    color: #e9d5ff;
    border: 1px solid #475569;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 9.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}
.fx-preset-select:hover,
.fx-preset-select:focus { border-color: #a855f7; }
.fx-knobs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 2px; justify-items: center; }
.master-vu-wrap {
    width: 42px;
    background: #0b0c0e;
    border: 1px solid #2e333c;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}
.vu-bar { position: relative; width: 10px; height: 100%; min-height: 86px; background: #1c1f24; display: flex; align-items: flex-end; border-radius: 2px; overflow: hidden; }
.vu-fill { width: 100%; height: 0%; background: linear-gradient(to top, #22c55e 0%, #22c55e 65%, #f59e0b 80%, #ef4444 100%); }

.pro-banner {
    flex-shrink: 0;
    background: linear-gradient(180deg, #f3f4f6 0%, #d1d5db 100%);
    color: #111827;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 11px;
    padding: 3px;
    border-radius: 3px;
}

/* Kotak Signal Audio Spectrum Bersegmen + Pantulan (Klik Ganti Model) */
.spectrum-signal-box {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #030304 0%, #090a0d 62%, #191b20 100%);
    border: 1px solid #2e333c;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.95);
}
.spectrum-signal-box.wave-mode {
    background: #060914;
    border-color: #3b3f66;
}
.spectrum-signal-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.spectrum-mode-tag {
    position: absolute;
    top: 3px;
    right: 5px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.72);
    background: rgba(9, 10, 13, 0.65);
    padding: 1px 4px;
    border-radius: 2px;
    pointer-events: none;
}

/* Master Faders mengisi penuh ruang bawah tanpa celah kosong */
.master-faders {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: linear-gradient(180deg, #242122 0%, #181617 100%);
    padding: 4px 4px 5px;
    border-radius: 4px;
    flex: 1;
    min-height: 116px;
    gap: 2px;
}
.m-fader-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.m-fader-lbl {
    flex-shrink: 0;
    font-size: 8.5px;
    font-weight: bold;
    background: #23272e;
    padding: 2px 5px;
    border-radius: 2px;
    border: 1px solid #3f4654;
}
.m-fader-lbl.mp3-lbl { background: linear-gradient(180deg, #2563eb, #1e40af); border-color: #60a5fa; color: #fff; }

/* =========================================================================
   MODE FX EKSTERNAL (100% WET) — TAMPILAN FOKUS UNTUK MIXER FISIK
   ========================================================================= */
body.fx-ext-mode .fx-ext-banner {
    display: flex;
}
body.fx-ext-mode #bankRight {
    display: none;
}
body.fx-ext-mode #bankLeft .channel-strip:not(:first-child) {
    display: none;
}
body.fx-ext-mode #bankLeft {
    flex: 0 0 auto !important;
}
body.fx-ext-mode .mixer-console,
body.full-screen-mode.fx-ext-mode .mixer-console {
    justify-content: center;
    gap: 10px;
}
body.fx-ext-mode #bankLeft .channel-strip:first-child,
body.full-screen-mode.fx-ext-mode #bankLeft .channel-strip:first-child {
    width: 104px;
    min-width: 104px;
    flex: 0 0 104px;
    border-color: #9333ea;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
}
body.fx-ext-mode #bankLeft .channel-strip:first-child .ch-num-badge {
    background: linear-gradient(180deg, #a855f7, #6b21a8);
    border-color: #e9d5ff;
    color: #ffffff;
}
body.fx-ext-mode .master-section,
body.full-screen-mode.fx-ext-mode .master-section {
    width: 410px;
    max-width: 92vw;
    border-color: #9333ea;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
}
body.fx-ext-mode .m-fader-col[data-mf-param="group"] {
    opacity: 0.34;
    position: relative;
}
body.fx-ext-mode .m-fader-col[data-mf-param="fxMaster"] .m-fader-lbl {
    background: linear-gradient(180deg, #9333ea, #6b21a8);
    border-color: #e9d5ff;
    color: #ffffff;
}