/* ============================================
   RADIO MIXER — Sculpted Hardware Theme
   Deep shadows, grooves, rotary knob feel
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* djmixer.online navy palette (replacing wood/amber) */
    --wood-dark: #0e1428;
    --wood-mid: #101624;
    --wood-light: #1a2038;
    --wood-grain: #141a2e;

    --metal-dark: #111830;
    --metal-mid: #141a2e;
    --metal-light: #1e2642;
    --metal-highlight: #2a3a68;
    --metal-shine: #3a4a78;

    --surface: #101624;
    --surface-raised: #161c30;
    --surface-sunken: #0c1222;

    /* Teal accent (replacing amber) */
    --amber: #70f5d8;
    --amber-glow: #90fff0;
    --amber-dim: #2a5a50;
    --amber-bright: #a0ffe8;

    --cream: #dce2f0;
    --cream-dark: #8898b8;

    --red: #e05a4a;
    --red-glow: #ff7c7c;
    --green: #70f5d8;
    --green-glow: #90fff0;

    --text-primary: #70f5d8;
    --text-secondary: #2a5a50;
    --text-label: #5ab8a8;

    --font-mono: 'Share Tech Mono', 'Sometype Mono', 'Courier New', monospace;

    --panel-radius: 8px;
    --knob-size: 58px;
    --knob-size-sm: 44px;

    /* Keep the sculpting shadows but adjust for navy */
    --shadow-deep: 0 8px 24px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5);
    --shadow-inset-well: inset 0 2px 8px rgba(0,0,0,0.6), inset 0 -1px 2px rgba(112,245,216,0.03);
    --shadow-raised: 0 3px 8px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4), inset 0 1px 0 rgba(112,245,216,0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;

    /* Navy gradient background — matching mixer page brightness */
    background:
        repeating-linear-gradient(
            90deg,
            transparent, transparent 1px,
            rgba(0,0,0,0.04) 1px, rgba(0,0,0,0.04) 2px
        ),
        repeating-linear-gradient(
            88deg,
            transparent, transparent 2px,
            rgba(20,26,46,0.08) 2px, rgba(20,26,46,0.08) 4px
        ),
        radial-gradient(ellipse at 50% 20%, #1d2442 0%, #0c1020 65%);
}

/* --- Mixer Container --- */
#mixer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header Section --- */
.mixer-header {
    text-align: center;
    padding: 28px 24px;
    margin-bottom: 16px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(40,40,40,0.5) 0%, transparent 60%),
        linear-gradient(180deg, #0e1628 0%, #0e1322 50%, #080e1c 100%);
    border: 1px solid #1e2642;
    border-top-color: #243050;
    border-bottom-color: #080c18;
    border-radius: var(--panel-radius);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.6),
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.mixer-title {
    font-size: 28px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow:
        0 0 12px rgba(112,245,216,0.35),
        0 1px 0 rgba(0,0,0,0.8);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.mixer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(112,245,216,0.3));
    opacity: 0.9;
    transition: opacity 0.3s;
}

.mixer-logo:hover {
    opacity: 1;
}

/* --- Stream Controls --- */
.stream-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stream-url-input {
    width: 360px;
    padding: 10px 14px;
    background: var(--surface-sunken);
    border: 1px solid #1a2540;
    border-radius: 6px;
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(0,0,0,0.2),
        0 1px 0 rgba(255,255,255,0.04);
}

.stream-url-input:focus {
    border-color: var(--amber-dim);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.5),
        0 0 8px rgba(112,245,216,0.15);
}

.stream-url-input::placeholder {
    color: var(--text-secondary);
}

/* --- Buttons — Sculpted Hardware Push Buttons --- */
.btn {
    position: relative;
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    transition: all 0.1s;

    /* Raised button look: dark base with highlight edge */
    background:
        linear-gradient(180deg, #1a2540 0%, #141c32 40%, #0c1220 100%);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn:hover {
    background:
        linear-gradient(180deg, #243050 0%, #141a2e 40%, #141c32 100%);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(1px);
    background:
        linear-gradient(180deg, #141c32 0%, #0c1220 40%, #0e1322 100%);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(0,0,0,0.4),
        inset 0 -1px 0 rgba(255,255,255,0.03);
}

.btn--play {
    color: var(--green);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(51,170,51,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn--play:hover {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 0 12px rgba(51,170,51,0.2),
        inset 0 1px 0 rgba(51,170,51,0.2);
}

.btn--stop {
    color: var(--red);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(204,51,51,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn--stop:hover {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 0 12px rgba(204,51,51,0.2),
        inset 0 1px 0 rgba(204,51,51,0.2);
}

/* --- VU Meters Row --- */
.vu-meters-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 18px;
}

.vu-meter-container {
    text-align: center;
}

/* VU meter bezel — deep recessed black casing */
.vu-meter-container canvas {
    border-radius: 8px;
    border: 3px solid #080c18;
    box-shadow:
        /* Outer bezel ring */
        0 0 0 4px #141c32,
        0 0 0 5px #1e2642,
        /* Deep inset well */
        inset 0 3px 8px rgba(0,0,0,0.8),
        inset 0 -1px 3px rgba(0,0,0,0.4),
        /* Outer drop shadow */
        0 4px 16px rgba(0,0,0,0.5);
}

.vu-meter-label {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
}

/* --- Master Section --- */
.master-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 24px 32px;
    margin-bottom: 16px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(40,40,40,0.3) 0%, transparent 60%),
        linear-gradient(180deg, #0e1628 0%, #0e1322 50%, #080e1c 100%);
    border: 1px solid #1e2642;
    border-top-color: #243050;
    border-bottom-color: #080c18;
    border-radius: var(--panel-radius);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.6),
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.master-section .section-title {
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--amber-dim);
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

.master-divider {
    width: 1px;
    height: 90px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #222 15%,
        var(--metal-highlight) 40%,
        var(--amber-dim) 50%,
        var(--metal-highlight) 60%,
        #222 85%,
        transparent 100%
    );
    box-shadow: 1px 0 0 rgba(0,0,0,0.5), -1px 0 0 rgba(0,0,0,0.5);
}

/* --- Effects Rack --- */
.effects-rack {
    margin-bottom: 20px;
}

.effects-rack-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: 8px;
    color: var(--amber-dim);
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .effects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .effects-grid { grid-template-columns: 1fr; }
}

/* --- Effect Panel — Recessed Metal Tray --- */
.effect-panel {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(50,50,50,0.4) 0%, transparent 70%),
        linear-gradient(180deg, #141c32 0%, #0c1220 100%);
    border: 1px solid #1a2540;
    border-top-color: #243050;
    border-bottom-color: #080c18;
    border-radius: var(--panel-radius);
    padding: 16px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    transition: opacity 0.25s;
}

/* Bypassed panels — no more opacity dim, LED handles state indication */
.effect-panel--bypassed {
    /* intentionally no opacity change */
}

.effect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #141a2e;
    box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.effect-name {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-label);
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
    margin-left: 8px;
}

/* Effect LED — recessed hole with glow when active */
.effect-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.3s;

    /* Off state: dark recessed hole */
    background: #0c1222;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.6),
        0 1px 0 rgba(255,255,255,0.03);
}

.effect-led.on {
    background: var(--green);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 6px rgba(51,170,51,0.7),
        0 0 16px rgba(51,170,51,0.3);
}

/* Red LED variant for when bypassed but visible */
.effect-led.off {
    background: #2a0808;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 0 3px rgba(80,10,10,0.3);
}

.effect-knobs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ============================================
   KNOB — Deeply Sculpted Rotary
   Multi-layered: well → groove ring → cap → indicator
   ============================================ */
.knob-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.knob {
    width: var(--knob-size);
    height: var(--knob-size);
    border-radius: 50%;
    position: relative;
    cursor: grab;
    border: none;

    /* Sunken well the knob sits in */
    background: var(--surface-sunken);
    box-shadow:
        /* Deep outer well / groove */
        inset 0 3px 8px rgba(0,0,0,0.7),
        inset 0 -2px 4px rgba(255,255,255,0.03),
        /* Outer ring shadow */
        0 1px 0 rgba(255,255,255,0.05),
        0 4px 12px rgba(0,0,0,0.5);
}

.knob:active {
    cursor: grabbing;
}

/* Groove ring — the circular channel carved around the knob cap */
.knob-ring {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow:
        /* Outer groove carved into surface */
        inset 0 1px 3px rgba(0,0,0,0.6),
        inset 0 -1px 2px rgba(255,255,255,0.04),
        0 1px 2px rgba(0,0,0,0.3);
}

/* The raised knob cap — the part you grab */
.knob-ring::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;

    /* Metallic cap with 3D shading */
    background:
        radial-gradient(circle at 40% 35%, #2a3a68 0%, #1e2642 30%, #141c32 60%, #0e1322 100%);
    box-shadow:
        /* Top highlight — light hitting the cap */
        inset 0 2px 4px rgba(255,255,255,0.12),
        /* Bottom shadow — underside of cap */
        inset 0 -3px 6px rgba(0,0,0,0.5),
        /* Left highlight for 3D roundness */
        inset 2px 0 4px rgba(255,255,255,0.04),
        /* Raised above groove */
        0 2px 6px rgba(0,0,0,0.6),
        0 1px 2px rgba(0,0,0,0.4);
}

/* Knurled texture ring on the cap edge (subtle grip lines) */
.knob-ring::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.06);
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255,255,255,0.03) 0deg 3deg,
            transparent 3deg 6deg
        );
}

/* Indicator line — sits on top of the cap */
.knob-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 3px;
    height: 35%;
    margin-left: -1.5px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;

    background: var(--amber);
    box-shadow:
        0 0 6px rgba(112,245,216,0.7),
        0 0 12px rgba(112,245,216,0.3);
}

.knob-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

.knob-value {
    font-size: 9px;
    color: var(--amber-dim);
    min-height: 12px;
}

/* ============================================
   TOGGLE SWITCH — Recessed Channel
   ============================================ */
.toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    cursor: pointer;
}

.toggle-track {
    width: 100%;
    height: 100%;
    background: var(--surface-sunken);
    border: none;
    border-radius: 11px;
    transition: all 0.2s;
    box-shadow:
        inset 0 2px 5px rgba(0,0,0,0.7),
        inset 0 -1px 2px rgba(255,255,255,0.03),
        0 1px 0 rgba(255,255,255,0.04);
}

.toggle-switch.active .toggle-track {
    background: #081810;
    box-shadow:
        inset 0 2px 5px rgba(0,0,0,0.5),
        inset 0 0 8px rgba(112,245,216,0.1),
        0 1px 0 rgba(255,255,255,0.04);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s;

    /* Sculpted thumb */
    background:
        radial-gradient(circle at 40% 35%, #3a4a78 0%, #333 50%, #222 100%);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.15),
        inset 0 -1px 2px rgba(0,0,0,0.3);
}

.toggle-switch.active .toggle-thumb {
    left: 19px;
    background:
        radial-gradient(circle at 40% 35%, var(--amber-bright) 0%, var(--amber) 50%, var(--amber-dim) 100%);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(112,245,216,0.4),
        inset 0 1px 2px rgba(255,255,255,0.25),
        inset 0 -1px 2px rgba(0,0,0,0.3);
}

/* LED indicator — recessed hole with glow */
.toggle-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;

    background: #0c1222;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.03);
}

.toggle-switch.active + .toggle-led,
.toggle-led.on {
    background: var(--amber);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 6px rgba(112,245,216,0.6),
        0 0 14px rgba(112,245,216,0.25);
}

/* --- Select Dropdown — CDJ Hardware Selector --- */
.param-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    background-color: #080808;
    border: 1px solid #1e2642;
    border-top-color: #141c32;
    border-bottom-color: #1a2540;
    border-radius: 3px;
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 7px 30px 7px 10px;
    cursor: pointer;
    outline: none;
    min-width: 82px;
    letter-spacing: 1px;
    /* Up/down stacked triangles with divider line */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='3.5,0 7,3.5 0,3.5' fill='%2370f5d8'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='0,0 7,0 3.5,3.5' fill='%2370f5d8'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, #1e2642 15%, #1e2642 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 9px top calc(50% - 5px), right 9px top calc(50% + 2px), right 24px center;
    background-size: 7px 3.5px, 7px 3.5px, 1px 70%;
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.8),
        inset 0 0 12px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.param-select:hover {
    border-color: #2a3a68;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='3.5,0 7,3.5 0,3.5' fill='%2390fff0'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='0,0 7,0 3.5,3.5' fill='%2390fff0'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, #2a3a68 15%, #2a3a68 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 9px top calc(50% - 5px), right 9px top calc(50% + 2px), right 24px center;
    background-size: 7px 3.5px, 7px 3.5px, 1px 70%;
}

.param-select:focus {
    border-color: var(--amber-dim);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.8),
        0 0 8px rgba(112,245,216,0.15);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='3.5,0 7,3.5 0,3.5' fill='%23a0ffe8'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='3.5'%3E%3Cpolygon points='0,0 7,0 3.5,3.5' fill='%23a0ffe8'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, var(--amber-dim) 15%, var(--amber-dim) 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 9px top calc(50% - 5px), right 9px top calc(50% + 2px), right 24px center;
    background-size: 7px 3.5px, 7px 3.5px, 1px 70%;
}

.param-select option {
    background: #0c1222;
    color: var(--amber);
    padding: 4px 8px;
}

/* --- Preset Bar --- */
.preset-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    margin-bottom: 16px;
    background:
        linear-gradient(180deg, #0e1628 0%, #0e1322 50%, #080e1c 100%);
    border: 1px solid #1e2642;
    border-top-color: #303030;
    border-bottom-color: #080c18;
    border-radius: var(--panel-radius);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.preset-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #080808;
    border: 1px solid #1e2642;
    border-top-color: #141c32;
    border-bottom-color: #1a2540;
    border-radius: 4px;
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 9px 36px 9px 14px;
    min-width: 190px;
    cursor: pointer;
    outline: none;
    letter-spacing: 1px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='4,0 8,4 0,4' fill='%2370f5d8'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='0,0 8,0 4,4' fill='%2370f5d8'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, #1e2642 15%, #1e2642 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 11px top calc(50% - 6px), right 11px top calc(50% + 3px), right 28px center;
    background-size: 8px 4px, 8px 4px, 1px 70%;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.8),
        inset 0 0 16px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.preset-select:hover {
    border-color: #2a3a68;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='4,0 8,4 0,4' fill='%2390fff0'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='0,0 8,0 4,4' fill='%2390fff0'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, #2a3a68 15%, #2a3a68 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 11px top calc(50% - 6px), right 11px top calc(50% + 3px), right 28px center;
    background-size: 8px 4px, 8px 4px, 1px 70%;
}

.preset-select:focus {
    border-color: var(--amber-dim);
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.8),
        0 0 10px rgba(112,245,216,0.15);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='4,0 8,4 0,4' fill='%23a0ffe8'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpolygon points='0,0 8,0 4,4' fill='%23a0ffe8'/%3E%3C/svg%3E"),
        linear-gradient(0deg, transparent 15%, var(--amber-dim) 15%, var(--amber-dim) 85%, transparent 85%);
    background-repeat: no-repeat;
    background-position: right 11px top calc(50% - 6px), right 11px top calc(50% + 3px), right 28px center;
    background-size: 8px 4px, 8px 4px, 1px 70%;
}

.preset-select option {
    background: #0c1222;
    color: var(--amber);
    padding: 4px 8px;
}

.preset-label {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

/* --- Power indicator — Recessed LED --- */
.power-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;

    background: #0c1222;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.03);
}

.power-indicator.on {
    background: var(--green);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 8px rgba(51,170,51,0.6),
        0 0 20px rgba(51,170,51,0.2);
}

/* --- Tooltip --- */
.knob-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #080e1c;
    border: 1px solid var(--amber-dim);
    color: var(--amber);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.knob-wrapper:hover .knob-tooltip,
.knob-wrapper.dragging .knob-tooltip {
    opacity: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--wood-dark); }
::-webkit-scrollbar-thumb {
    background: var(--metal-mid);
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

/* ============================================
   PANEL SCREWS — Decorative detail
   ============================================ */
.mixer-header::before,
.mixer-header::after,
.master-section::before,
.master-section::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, #2a3a68 0%, #222 60%, #0e1322 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.1),
        inset 0 -1px 1px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4);
}

.mixer-header,
.master-section {
    position: relative;
}

.mixer-header::before { top: 10px; left: 12px; }
.mixer-header::after { top: 10px; right: 12px; }
.master-section::before { top: 50%; left: 14px; transform: translateY(-50%); }
.master-section::after { top: 50%; right: 14px; transform: translateY(-50%); }

/* ============================================
   SPECTRUM ANALYZER — Vintage CRT / Radar
   ============================================ */
.spectrogram-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #080c18;
    box-shadow:
        0 0 0 4px #141c32,
        0 0 0 5px #1e2642,
        inset 0 3px 8px rgba(0,0,0,0.8),
        inset 0 -1px 3px rgba(0,0,0,0.4),
        0 4px 16px rgba(0,0,0,0.5),
        0 0 20px rgba(112,245,216,0.05);
}

.spectrogram-canvas {
    display: block;
    border-radius: 10px;
    background: #000f14;
}

/* CRT scanline overlay */
.spectrogram-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 10px;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0,0,0,0.15) 1px,
        rgba(0,0,0,0.15) 2px
    );
    z-index: 1;
}

/* Vignette — dark edges simulating CRT curvature */
.spectrogram-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 10px;
    background: radial-gradient(
        ellipse at 50% 50%,
        transparent 55%,
        rgba(0,0,0,0.4) 85%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
}

/* Spectrum toggle button */
.btn--spectrum {
    color: #70f5d8;
    font-size: 10px;
    letter-spacing: 3px;
    padding: 7px 18px;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 1px 3px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(112,245,216,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.btn--spectrum:hover {
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 0 12px rgba(112,245,216,0.15),
        inset 0 1px 0 rgba(112,245,216,0.15);
}

.btn--spectrum.active {
    background:
        linear-gradient(180deg, #0a1e2a 0%, #071218 40%, #050e14 100%);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        0 0 16px rgba(112,245,216,0.15),
        inset 0 2px 4px rgba(0,0,0,0.4),
        inset 0 0 8px rgba(112,245,216,0.08);
    text-shadow: 0 0 8px rgba(112,245,216,0.5);
}
