/* ============================================================
   djanything.com — NEON CHROME theme layer
   Chunky hardware • CRT glow • arcade LEDs • playful texture
   Loaded AFTER styles.css so every selector here wins.
   ============================================================ */

:root {
  --bg-0: oklch(0.09 0.02 280);
  --bg-1: oklch(0.13 0.025 280);
  --neon-cyan: oklch(0.85 0.18 200);
  --neon-magenta: oklch(0.72 0.27 340);
  --neon-violet: oklch(0.68 0.24 290);
  --neon-green: oklch(0.85 0.22 145);
  --neon-amber: oklch(0.85 0.2 75);
  --neon-red: oklch(0.68 0.26 22);

  --chrome-hi: oklch(0.7 0.01 280);
  --chrome-mid: oklch(0.45 0.015 280);
  --chrome-lo: oklch(0.22 0.015 280);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-crt: 'VT323', 'JetBrains Mono', monospace;
}

/* ============ BACKGROUND: dance-floor haze + scanlines + grain ============ */
body {
  background:
    radial-gradient(1400px 900px at 10% -10%, oklch(0.4 0.22 300 / 0.35), transparent 55%),
    radial-gradient(1200px 800px at 95% 105%, oklch(0.48 0.25 340 / 0.32), transparent 55%),
    radial-gradient(900px 700px at 50% 55%, oklch(0.3 0.15 200 / 0.22), transparent 65%),
    linear-gradient(180deg, oklch(0.09 0.02 280), oklch(0.07 0.02 280));
  position: relative;
}
body::before {
  /* scanlines */
  content: '';
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      oklch(0 0 0 / 0.18) 0 1px,
      transparent 1px 3px);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
body::after {
  /* grain + vignette */
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, oklch(0 0 0 / 0.55) 100%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwLjM1IDAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbikiIG9wYWNpdHk9IjAuNiIvPjwvc3ZnPg==");
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.app { position: relative; z-index: 3; }

/* ============ LOGO: arcade marquee ============ */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo b {
  background: linear-gradient(180deg, #fff 0%, var(--neon-cyan) 45%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px oklch(0.7 0.25 310 / 0.6));
}
.logo-mark {
  background: conic-gradient(from 200deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta), var(--neon-amber), var(--neon-cyan));
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.5),
    0 0 20px oklch(0.7 0.25 310 / 0.7),
    inset 0 0 10px oklch(0 0 0 / 0.3);
  animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin { to { filter: hue-rotate(360deg); } }

/* ============ PANELS: tactile bezel ============ */
.panel {
  background:
    linear-gradient(180deg, oklch(0.22 0.04 280 / 0.8), oklch(0.14 0.03 280 / 0.85));
  border: 1px solid oklch(1 0 0 / 0.1);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    0 1px 0 oklch(1 0 0 / 0.04),
    0 18px 40px oklch(0 0 0 / 0.55);
}
.panel::before {
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.06), transparent 40%),
    radial-gradient(ellipse at 50% 0%, oklch(0.8 0.2 290 / 0.15), transparent 50%);
}

/* Deck edge light-strip */
.deck::after {
  width: 4px !important;
  filter: blur(0.3px);
  box-shadow: 0 0 14px currentColor;
}
.deck.a::after {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet)) !important;
  color: var(--neon-cyan);
}
.deck.b::after {
  background: linear-gradient(180deg, var(--neon-magenta), var(--neon-amber)) !important;
  color: var(--neon-magenta);
}

/* Deck labels — chunky arcade */
.deck-label {
  font-family: var(--font-display);
  font-size: 16px !important;
  width: 32px !important; height: 32px !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 -2px 0 oklch(0 0 0 / 0.4),
    inset 0 1px 0 oklch(1 0 0 / 0.3),
    0 0 16px currentColor;
}
.deck.a .deck-label {
  background: linear-gradient(180deg, var(--neon-cyan), oklch(0.5 0.2 240)) !important;
  color: oklch(0.15 0.04 260);
}
.deck.b .deck-label {
  background: linear-gradient(180deg, var(--neon-magenta), oklch(0.5 0.25 15)) !important;
  color: oklch(0.15 0.04 340);
}

.deck-title {
  font-family: var(--font-display);
  font-size: 14px !important;
  letter-spacing: 0.01em;
}

/* ============ BPM / KEY: LCD-display pills ============ */
.pill {
  font-family: var(--font-crt) !important;
  font-size: 13px !important;
  padding: 2px 8px !important;
  background:
    linear-gradient(180deg, oklch(0.06 0.02 260), oklch(0.04 0.01 260)) !important;
  border: 1px solid oklch(0 0 0 / 0.8) !important;
  box-shadow:
    inset 0 0 8px oklch(0 0 0 / 0.9),
    inset 0 1px 0 oklch(1 0 0 / 0.05),
    0 0 0 1px oklch(1 0 0 / 0.06);
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  letter-spacing: 0.08em !important;
}
.pill.bpm { color: var(--neon-cyan) !important; }
.pill.key { color: var(--neon-magenta) !important; }

/* ============ MANUAL BPM CONTROL ============ */
.bpm-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bpm-nudge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid oklch(0.35 0.05 250);
  background: linear-gradient(180deg, oklch(0.22 0.03 250), oklch(0.16 0.03 250));
  color: var(--neon-cyan);
  font-family: var(--font-display, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 1px 2px oklch(0 0 0 / 0.4);
  text-shadow: 0 0 4px var(--neon-cyan);
  transition: all 0.1s;
  padding: 0;
}
.bpm-nudge:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.15),
    0 0 8px oklch(0.85 0.18 200 / 0.5);
}
.bpm-nudge:active:not(:disabled) {
  transform: translateY(1px);
  background: linear-gradient(180deg, oklch(0.16 0.03 250), oklch(0.22 0.03 250));
}
.bpm-nudge:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Fine trim fader ±16% — like a CDJ pitch fader */
.bpm-fader {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 14px;
  background: transparent;
  cursor: pointer;
  margin: 0 4px;
}
.bpm-fader::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    oklch(0.25 0.05 250),
    oklch(0.4 0.05 250) 50%,
    oklch(0.25 0.05 250));
  border: 1px solid oklch(0.15 0.02 250);
  box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.6);
}
.bpm-fader::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    oklch(0.25 0.05 250),
    oklch(0.4 0.05 250) 50%,
    oklch(0.25 0.05 250));
  border: 1px solid oklch(0.15 0.02 250);
  box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.6);
}
.bpm-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 18px;
  margin-top: -8px;
  border-radius: 2px;
  background: linear-gradient(180deg, oklch(0.85 0 0), oklch(0.5 0 0));
  border: 1px solid oklch(0.2 0 0);
  box-shadow:
    0 0 6px var(--neon-cyan),
    inset 0 1px 0 oklch(1 0 0 / 0.5);
  cursor: grab;
}
.bpm-fader::-moz-range-thumb {
  width: 10px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, oklch(0.85 0 0), oklch(0.5 0 0));
  border: 1px solid oklch(0.2 0 0);
  box-shadow:
    0 0 6px var(--neon-cyan),
    inset 0 1px 0 oklch(1 0 0 / 0.5);
  cursor: grab;
}
.bpm-fader:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============ WAVEFORM: CRT screen ============ */
.waveform-phase {
  height: 126px !important;
  border-radius: 12px !important;
  background:
    radial-gradient(ellipse at center, oklch(0.09 0.03 260) 0%, oklch(0.04 0.01 260) 80%) !important;
  border: 1px solid oklch(0 0 0 / 0.7) !important;
  box-shadow:
    inset 0 0 30px oklch(0 0 0 / 0.9),
    inset 0 0 0 1px oklch(1 0 0 / 0.05),
    0 4px 12px oklch(0 0 0 / 0.4);
  position: relative;
}
.waveform-phase::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      oklch(0 0 0 / 0.35) 0 1px,
      transparent 1px 2px);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  mix-blend-mode: multiply;
}
.waveform-phase::after {
  /* CRT curvature glint */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% -20%, oklch(1 0 0 / 0.08), transparent 50%);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.waveform-phase-svg {
  filter: drop-shadow(0 0 3px oklch(0.8 0.2 290 / 0.55));
  z-index: 3;
}
.waveform-phase-playhead {
  background: var(--neon-green) !important;
  box-shadow: 0 0 14px var(--neon-green), 0 0 28px var(--neon-green) !important;
}
.waveform-phase-playhead::before {
  border-top-color: var(--neon-green) !important;
}
.waveform-phase-playhead::after {
  border-bottom-color: var(--neon-green) !important;
}
.waveform-bpm-badge {
  font-family: var(--font-crt) !important;
  font-size: 13px !important;
  color: var(--neon-amber) !important;
  background: oklch(0 0 0 / 0.7) !important;
  border: 1px solid oklch(0.88 0.18 80 / 0.4) !important;
  text-shadow: 0 0 6px var(--neon-amber);
  letter-spacing: 0.05em;
}

.waveform-wrap {
  height: 48px !important;
  border-radius: 12px !important;
  background:
    radial-gradient(ellipse at center, oklch(0.09 0.03 260) 0%, oklch(0.04 0.01 260) 80%) !important;
  border: 1px solid oklch(0 0 0 / 0.7) !important;
  box-shadow:
    inset 0 0 30px oklch(0 0 0 / 0.9),
    inset 0 0 0 1px oklch(1 0 0 / 0.05),
    0 4px 12px oklch(0 0 0 / 0.4);
  position: relative;
}
.waveform-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      oklch(0 0 0 / 0.35) 0 1px,
      transparent 1px 2px);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  mix-blend-mode: multiply;
}
.waveform-wrap::after {
  /* CRT curvature glint */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% -20%, oklch(1 0 0 / 0.08), transparent 50%);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.waveform-bg { opacity: 0 !important; }
.waveform-svg {
  filter: drop-shadow(0 0 3px oklch(0.8 0.2 290 / 0.6));
  z-index: 3;
}
.waveform-empty {
  color: var(--neon-cyan) !important;
  opacity: 0.6 !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  text-shadow: 0 0 8px var(--neon-cyan) !important;
  z-index: 3 !important;
  animation: hintFade 3s ease-in-out infinite;
}
.waveform-time {
  font-family: var(--font-crt) !important;
  font-size: 14px !important;
  color: var(--neon-green) !important;
  background: oklch(0 0 0 / 0.6) !important;
  border: 1px solid oklch(0.85 0.22 145 / 0.3);
  text-shadow: 0 0 6px var(--neon-green);
  opacity: 1 !important;
  letter-spacing: 0.05em;
}
.waveform-playhead {
  background: var(--neon-green) !important;
  box-shadow: 0 0 12px var(--neon-green), 0 0 24px var(--neon-green) !important;
}
.waveform-cue {
  background: var(--neon-amber) !important;
  box-shadow: 0 0 10px var(--neon-amber), 0 0 20px var(--neon-amber) !important;
}

/* ============ TRANSPORT BUTTONS: injection-molded ============ */
.t-btn {
  height: 44px !important;
  border-radius: 10px !important;
  background:
    linear-gradient(180deg, oklch(0.28 0.02 280), oklch(0.14 0.02 280)) !important;
  border: 1px solid oklch(0 0 0 / 0.6) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.12),
    inset 0 -2px 0 oklch(0 0 0 / 0.5),
    0 2px 0 oklch(0 0 0 / 0.3),
    0 3px 6px oklch(0 0 0 / 0.4);
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  transition: transform .08s, box-shadow .1s, background .15s !important;
  position: relative;
}
.t-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, oklch(0.32 0.025 280), oklch(0.16 0.02 280)) !important;
}
.t-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px oklch(0 0 0 / 0.5),
    inset 0 -1px 0 oklch(1 0 0 / 0.05),
    0 0 0 oklch(0 0 0 / 0.3);
}
.t-btn::before {
  content: '';
  position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0 0 0 / 0.6);
  box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.8), 0 0 0 1px oklch(1 0 0 / 0.04);
}
.t-btn.play::before { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green), 0 0 16px var(--neon-green); animation: ledIdle 2s ease-in-out infinite; }
.t-btn.play.playing::before { background: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); animation: ledBlink 0.5s ease-in-out infinite; }
.t-btn.cue::before { background: var(--neon-amber); box-shadow: 0 0 8px var(--neon-amber); }
.t-btn.sync::before { background: oklch(0.3 0.01 280); }
.t-btn.sync.active::before { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green), 0 0 16px var(--neon-green); }

@keyframes ledIdle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.t-btn.play {
  background: linear-gradient(180deg, oklch(0.7 0.2 150), oklch(0.4 0.2 150)) !important;
  color: #061a12 !important;
  text-shadow: 0 1px 0 oklch(1 0 0 / 0.3);
  border-color: oklch(0 0 0 / 0.7) !important;
}
.t-btn.play.playing {
  background: linear-gradient(180deg, oklch(0.75 0.22 25), oklch(0.5 0.22 20)) !important;
  color: #1a0606 !important;
  animation: playPulse 1s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2), inset 0 -2px 0 oklch(0 0 0 / 0.5), 0 2px 0 oklch(0 0 0 / 0.3), 0 0 16px oklch(0.7 0.22 25 / 0.5); }
  50% { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2), inset 0 -2px 0 oklch(0 0 0 / 0.5), 0 2px 0 oklch(0 0 0 / 0.3), 0 0 28px oklch(0.7 0.22 25 / 0.9); }
}

/* ============ KNOBS: chunky metal ============ */
.knob {
  width: 60px !important; height: 60px !important;
  background:
    radial-gradient(circle at 35% 30%, oklch(0.55 0.01 280) 0%, oklch(0.25 0.01 280) 38%, oklch(0.12 0.01 280) 70%),
    conic-gradient(from 0deg, oklch(0.3 0.01 280), oklch(0.45 0.01 280), oklch(0.25 0.01 280), oklch(0.4 0.01 280), oklch(0.3 0.01 280)) !important;
  border: 1px solid oklch(0 0 0 / 0.7) !important;
  box-shadow:
    inset 0 2px 4px oklch(1 0 0 / 0.15),
    inset 0 -4px 8px oklch(0 0 0 / 0.7),
    inset 0 0 0 3px oklch(0 0 0 / 0.4),
    0 4px 10px oklch(0 0 0 / 0.55),
    0 1px 0 oklch(1 0 0 / 0.08) !important;
}
.knob::before {
  /* Center dimple */
  content: '';
  position: absolute;
  inset: 30% 30% 30% 30%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, oklch(0.35 0.01 280), oklch(0.12 0.01 280));
  box-shadow:
    inset 0 1px 2px oklch(0 0 0 / 0.8),
    0 1px 0 oklch(1 0 0 / 0.1);
}
.knob-indicator {
  width: 3px !important;
  height: 18px !important;
  top: 4px !important;
  background: linear-gradient(180deg, #fff, var(--neon-cyan)) !important;
  box-shadow:
    0 0 8px var(--neon-cyan),
    0 0 16px oklch(0.85 0.18 200 / 0.6) !important;
  transform-origin: center 26px !important;
}
.knob.filter {
  background:
    radial-gradient(circle at 35% 30%, oklch(0.55 0.08 300) 0%, oklch(0.2 0.04 300) 40%, oklch(0.1 0.02 300) 72%) !important;
}
.knob.filter .knob-indicator {
  background: linear-gradient(180deg, #fff, var(--neon-magenta)) !important;
  box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px oklch(0.72 0.27 340 / 0.6) !important;
}
.knob-label {
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  color: var(--ink-1) !important;
  font-weight: 700 !important;
}
.knob-value {
  font-family: var(--font-crt) !important;
  font-size: 12px !important;
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 4px var(--neon-cyan);
}

/* ============ SECTION HEADERS ============ */
.section-title {
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  color: var(--ink-1) !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
}
.section-title::before {
  background: var(--neon-cyan) !important;
  box-shadow: 0 0 6px var(--neon-cyan), 0 0 10px var(--neon-cyan) !important;
  width: 5px !important; height: 5px !important;
}

/* ============ LOOP BUTTONS: square arcade keycaps ============ */
.loop-rack {
  gap: 5px !important;
}
.loop-btn {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  background:
    linear-gradient(180deg, oklch(0.28 0.02 280), oklch(0.16 0.02 280)) !important;
  border: 1px solid oklch(0 0 0 / 0.6) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.1),
    inset 0 -2px 0 oklch(0 0 0 / 0.4),
    0 2px 4px oklch(0 0 0 / 0.4) !important;
}
.loop-btn.active {
  background: linear-gradient(180deg, var(--neon-green), oklch(0.45 0.2 150)) !important;
  color: #051a0f !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.3),
    inset 0 -2px 0 oklch(0 0 0 / 0.3),
    0 0 20px oklch(0.82 0.22 145 / 0.6) !important;
  text-shadow: 0 1px 0 oklch(1 0 0 / 0.3);
  animation: loopPulse 1.5s ease-in-out infinite;
}
@keyframes loopPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* ============ FX BUTTONS: arcade bulbs ============ */
.fx-rack { gap: 5px !important; }
.fx-btn {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  background:
    linear-gradient(180deg, oklch(0.28 0.02 280), oklch(0.14 0.02 280)) !important;
  border: 1px solid oklch(0 0 0 / 0.6) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.1),
    inset 0 -3px 0 oklch(0 0 0 / 0.4),
    0 3px 6px oklch(0 0 0 / 0.4) !important;
  padding-top: 6px !important;
  position: relative;
  overflow: hidden;
}
.fx-btn .fx-icon {
  width: 16px !important; height: 16px !important;
  border-radius: 50% !important;
  position: relative;
  box-shadow:
    inset 0 -2px 4px oklch(0 0 0 / 0.5),
    inset 0 1px 2px oklch(1 0 0 / 0.3) !important;
}
.fx-btn .fx-icon::after {
  /* bulb highlight */
  content: '';
  position: absolute;
  top: 2px; left: 3px;
  width: 4px; height: 3px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.6);
  filter: blur(0.5px);
}
.fx-btn.active {
  background:
    linear-gradient(180deg, oklch(0.35 0.12 290), oklch(0.2 0.08 290)) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.2),
    inset 0 -2px 0 oklch(0 0 0 / 0.5),
    0 0 20px oklch(0.7 0.25 290 / 0.6) !important;
}
.fx-btn.active .fx-icon {
  animation: bulbOn 1.6s ease-in-out infinite;
}
@keyframes bulbOn {
  0%, 100% { filter: brightness(1.1); }
  50% { filter: brightness(1.4) saturate(1.2); }
}
.fx-amount {
  height: 3px !important;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-magenta)) !important;
  box-shadow: 0 0 8px var(--neon-magenta);
}

/* ============ X/Y PAD: neon oscilloscope ============ */
.fxpad {
  min-height: 150px !important;
  background:
    radial-gradient(ellipse at center, oklch(0.12 0.06 290 / 0.6), oklch(0.04 0.02 280) 80%),
    linear-gradient(180deg, oklch(0.08 0.02 280), oklch(0.04 0.01 280)) !important;
  border: 1px solid oklch(0 0 0 / 0.7) !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 0 30px oklch(0 0 0 / 0.9),
    inset 0 0 0 1px oklch(1 0 0 / 0.06),
    0 4px 12px oklch(0 0 0 / 0.5) !important;
  position: relative;
}
.fxpad::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, oklch(0 0 0 / 0.25) 0 1px, transparent 1px 3px);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: multiply;
  z-index: 3;
}
.fxpad-grid {
  background-image:
    linear-gradient(var(--neon-violet) 1px, transparent 1px),
    linear-gradient(90deg, var(--neon-violet) 1px, transparent 1px) !important;
  background-size: 12.5% 12.5% !important;
  opacity: 0.14;
}
.fxpad-grid::before {
  background: var(--neon-violet) !important;
  box-shadow: 0 0 4px var(--neon-violet);
  opacity: 0.5;
}
.fxpad-grid::after {
  background: var(--neon-violet) !important;
  box-shadow: 0 0 4px var(--neon-violet);
  opacity: 0.5;
}
.fxpad-axis-x, .fxpad-axis-y {
  z-index: 2;
}
.fxpad-axis-x span:nth-child(2), .fxpad-axis-y span:nth-child(2) {
  font-family: var(--font-display) !important;
  font-weight: 700;
}
.fxpad-axis-x span:nth-child(2) { color: var(--neon-green) !important; text-shadow: 0 0 6px var(--neon-green); }
.fxpad-axis-y span:nth-child(2) { color: var(--neon-magenta) !important; text-shadow: 0 0 6px var(--neon-magenta); }

.fxpad-dot {
  width: 30px !important; height: 30px !important;
  z-index: 6;
}
.fxpad-dot-inner {
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, var(--neon-magenta) 45%, oklch(0.4 0.25 340) 100%) !important;
  box-shadow:
    0 0 14px var(--neon-magenta),
    0 0 28px var(--neon-magenta),
    0 0 48px oklch(0.72 0.27 340 / 0.4),
    inset 0 -2px 4px oklch(0 0 0 / 0.5) !important;
  animation: dotPulse 1.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}
.fxpad-crosshair-h {
  background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent) !important;
  box-shadow: 0 0 6px var(--neon-magenta);
  height: 1.5px !important;
}
.fxpad-crosshair-v {
  background: linear-gradient(0deg, transparent, var(--neon-magenta), transparent) !important;
  box-shadow: 0 0 6px var(--neon-magenta);
  width: 1.5px !important;
}
.fxpad.active {
  border-color: oklch(0.72 0.27 340 / 0.5) !important;
  box-shadow:
    inset 0 0 30px oklch(0.5 0.25 340 / 0.25),
    inset 0 0 0 1px oklch(0.72 0.27 340 / 0.3),
    0 0 30px oklch(0.6 0.25 340 / 0.35),
    0 4px 12px oklch(0 0 0 / 0.5) !important;
}
/* Soft lighting glow that follows pointer on X/Y pad */
.fxpad-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    oklch(0.85 0.25 var(--glow-hue, 180) / 0.45) 0%,
    oklch(0.75 0.28 var(--glow-hue, 180) / 0.22) 18%,
    oklch(0.65 0.26 var(--glow-hue, 180) / 0.08) 38%,
    transparent 60%
  );
  mix-blend-mode: screen;
  transition: background 60ms linear;
}
.fxpad-hint {
  color: var(--neon-cyan) !important;
  opacity: 0.5;
  font-family: var(--font-display) !important;
  animation: hintFade 3s ease-in-out infinite;
}
@keyframes hintFade {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}
.fxpad-select, .fxpad-latch {
  font-family: var(--font-display) !important;
  font-weight: 700;
}
.fxpad-latch.on {
  background: linear-gradient(180deg, var(--neon-red), oklch(0.4 0.22 20)) !important;
  box-shadow: 0 0 12px var(--neon-red), inset 0 1px 0 oklch(1 0 0 / 0.3) !important;
  animation: ledBlink 0.8s ease-in-out infinite;
}

/* ============ MIXER: center console ============ */
.mixer-title {
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  letter-spacing: 0.25em !important;
  background: linear-gradient(180deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 8px oklch(0.85 0.18 200 / 0.5));
}

.vu-meter {
  background:
    linear-gradient(180deg, oklch(0.04 0.01 260), oklch(0.02 0.005 260)) !important;
  border: 1px solid oklch(0 0 0 / 0.8) !important;
  box-shadow: inset 0 0 8px oklch(0 0 0 / 0.9), inset 0 0 0 1px oklch(1 0 0 / 0.04) !important;
}
.vu-fill {
  background:
    linear-gradient(0deg,
      var(--neon-green) 0%,
      var(--neon-green) 55%,
      var(--neon-amber) 75%,
      var(--neon-red) 92%,
      var(--neon-red) 100%) !important;
  box-shadow: 0 0 8px currentColor;
  filter: drop-shadow(0 0 4px var(--neon-green));
}

/* ============ FADERS: REKORDBOX-STYLE STEEL ============ */
/* Track: deeply-undercut slot with metallic shadow + colored LED line */
.fader-track {
  background:
    linear-gradient(90deg,
      oklch(0 0 0 / 0.9) 0%,
      oklch(0.05 0.005 280) 45%,
      oklch(0.05 0.005 280) 55%,
      oklch(0 0 0 / 0.9) 100%) !important;
  width: 4px !important;
  left: calc(50% - 2px) !important;
  box-shadow:
    inset 0 0 6px oklch(0 0 0 / 0.95),
    inset 1px 0 0 oklch(0 0 0 / 0.8),
    inset -1px 0 0 oklch(1 0 0 / 0.04),
    0 0 0 1px oklch(0 0 0 / 0.6) !important;
  border-radius: 2px;
  top: 6px !important;
  bottom: 6px !important;
}

/* Colored LED line "played" portion */
.fader {
  width: 40px !important;
  position: relative;
}
.fader::after {
  content: '';
  position: absolute;
  left: calc(50% + 3.5px);
  top: 8px; bottom: 8px;
  width: 2px;
  background: oklch(0 0 0 / 0.6);
  border-radius: 1px;
  box-shadow: inset 0 0 2px oklch(0 0 0 / 0.8);
  pointer-events: none;
}
.fader-a::after {
  background: linear-gradient(180deg, transparent 0%, transparent var(--fader-gap, 50%),
    oklch(0.85 0.18 200) var(--fader-gap, 50%), oklch(0.85 0.18 200) 100%);
  box-shadow: 0 0 6px oklch(0.85 0.18 200 / 0.7);
}
.fader-b::after {
  background: linear-gradient(180deg, transparent 0%, transparent var(--fader-gap, 50%),
    var(--neon-magenta) var(--fader-gap, 50%), var(--neon-magenta) 100%);
  box-shadow: 0 0 6px var(--neon-magenta);
}

/* Ticks — precision hash marks, both sides */
.fader-ticks { inset: 6px !important; }
.fader-tick {
  background: oklch(1 0 0 / 0.28) !important;
  height: 1px !important;
  right: auto !important;
  left: 4px !important;
  width: 6px !important;
  box-shadow: 28px 0 0 oklch(1 0 0 / 0.28);
}

/* Chunky brushed-steel cap */
.fader-handle {
  height: 24px !important;
  left: 2px !important;
  right: 2px !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg,
      oklch(0.88 0.005 280) 0%,
      oklch(0.78 0.005 280) 18%,
      oklch(0.5 0.01 280) 38%,
      oklch(0.32 0.01 280) 50%,
      oklch(0.5 0.01 280) 62%,
      oklch(0.72 0.005 280) 82%,
      oklch(0.82 0.005 280) 100%) !important;
  border: 1px solid oklch(0 0 0 / 0.85) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    inset 1px 0 0 oklch(1 0 0 / 0.15),
    inset -1px 0 0 oklch(0 0 0 / 0.3),
    0 3px 4px oklch(0 0 0 / 0.65),
    0 1px 0 oklch(0 0 0 / 0.5) !important;
  position: relative;
}
/* remove the old LED dash */
.fader-handle::before {
  display: none !important;
}
/* brushed-metal horizontal lines across cap */
.fader-handle::after {
  content: '';
  position: absolute;
  inset: 2px 3px;
  background:
    repeating-linear-gradient(180deg,
      oklch(0 0 0 / 0.15) 0 1px,
      transparent 1px 3px),
    linear-gradient(180deg, transparent, oklch(0 0 0 / 0.5) 50%, transparent);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.6;
}
/* tiny colored indicator LED at top of cap */
.fader-a .fader-handle {
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    inset 1px 0 0 oklch(1 0 0 / 0.15),
    inset -1px 0 0 oklch(0 0 0 / 0.3),
    0 0 10px oklch(0.85 0.18 200 / 0.3),
    0 3px 4px oklch(0 0 0 / 0.65) !important;
}
.fader-b .fader-handle {
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    inset 1px 0 0 oklch(1 0 0 / 0.15),
    inset -1px 0 0 oklch(0 0 0 / 0.3),
    0 0 10px var(--neon-magenta),
    0 3px 4px oklch(0 0 0 / 0.65) !important;
}

/* ============ CROSSFADER: same steel family ============ */
.crossfader-track {
  height: 5px !important;
  top: calc(50% - 2.5px) !important;
  background:
    linear-gradient(180deg,
      oklch(0 0 0 / 0.9) 0%,
      oklch(0.05 0.005 280) 45%,
      oklch(0.05 0.005 280) 55%,
      oklch(0 0 0 / 0.9) 100%) !important;
  border-radius: 2px;
  box-shadow:
    inset 0 0 6px oklch(0 0 0 / 0.95),
    inset 0 1px 0 oklch(0 0 0 / 0.8),
    inset 0 -1px 0 oklch(1 0 0 / 0.04),
    0 0 0 1px oklch(0 0 0 / 0.6) !important;
}
.crossfader-center {
  background: oklch(1 0 0 / 0.35) !important;
  box-shadow: 0 0 6px oklch(1 0 0 / 0.4);
}
.crossfader-handle {
  width: 36px !important;
  top: 2px !important; bottom: 2px !important;
  border-radius: 4px !important;
  background:
    linear-gradient(90deg,
      oklch(0.88 0.005 280) 0%,
      oklch(0.78 0.005 280) 18%,
      oklch(0.5 0.01 280) 38%,
      oklch(0.32 0.01 280) 50%,
      oklch(0.5 0.01 280) 62%,
      oklch(0.72 0.005 280) 82%,
      oklch(0.82 0.005 280) 100%) !important;
  border: 1px solid oklch(0 0 0 / 0.85) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    inset 1px 0 0 oklch(1 0 0 / 0.15),
    inset -1px 0 0 oklch(0 0 0 / 0.3),
    0 3px 5px oklch(0 0 0 / 0.6),
    0 1px 0 oklch(0 0 0 / 0.4) !important;
}
.crossfader-handle::before {
  display: none !important;
}
.crossfader-handle::after {
  content: '';
  position: absolute;
  inset: 3px 2px;
  background:
    repeating-linear-gradient(90deg,
      oklch(0 0 0 / 0.18) 0 1px,
      transparent 1px 4px);
  border-radius: 2px;
  pointer-events: none;
}

.fader-channel-label {
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px currentColor;
}

.match-indicator {
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em;
}
.match-indicator .dot {
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation: ledIdle 2s ease-in-out infinite;
}
.match-indicator.ok {
  color: var(--neon-green) !important;
  text-shadow: 0 0 8px var(--neon-green);
}
.match-indicator.ok .dot {
  background: var(--neon-green) !important;
  box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

.time-display {
  font-family: var(--font-crt) !important;
  font-size: 22px !important;
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px var(--neon-cyan), 0 0 16px oklch(0.85 0.18 200 / 0.4);
  letter-spacing: 0.05em;
}
.master-mini {
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  letter-spacing: 0.2em;
  color: var(--ink-1);
}

/* ============ TOP BAR ============ */
.topbar {
  background:
    linear-gradient(180deg, oklch(0.22 0.04 280 / 0.7), oklch(0.13 0.03 280 / 0.85)) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    inset 0 -1px 0 oklch(0 0 0 / 0.6),
    0 8px 24px oklch(0 0 0 / 0.5) !important;
}
.top-url {
  background: oklch(0 0 0 / 0.5) !important;
  box-shadow: inset 0 2px 4px oklch(0 0 0 / 0.5) !important;
}
.top-url-btn {
  font-family: var(--font-display) !important;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.3),
    0 0 14px oklch(0.7 0.2 290 / 0.4);
}
.top-url-btn:not(:disabled):hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.4),
    0 0 20px oklch(0.7 0.2 290 / 0.7);
}

.rec-btn.recording {
  background: linear-gradient(180deg, oklch(0.3 0.1 25), oklch(0.18 0.08 25)) !important;
  box-shadow: 0 0 16px oklch(0.6 0.22 25 / 0.5), inset 0 1px 0 oklch(1 0 0 / 0.1);
}

/* ============ QUEUE ============ */
.queue-title, .queue-head {
  font-family: var(--font-display) !important;
}

/* ============ AUDIO GATE ============ */
.ag-mark {
  background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-magenta), var(--neon-amber), var(--neon-cyan)) !important;
  animation: logoSpin 4s linear infinite;
}
