/* MIX-ED — DJ Booth simulator
 * Pioneer-style booth aesthetic in CSS.
 */

.simulator-page main { max-width: 1500px; }

.booth-wrap {
  background:
    radial-gradient(ellipse 1000px 250px at 50% -80px, rgba(255,255,255,0.08), transparent 75%),
    radial-gradient(ellipse 600px 500px at 12% 105%, rgba(238, 61, 139, 0.11), transparent 60%),
    radial-gradient(ellipse 700px 500px at 88% -10%, rgba(61, 95, 236, 0.08), transparent 60%),
    linear-gradient(180deg, #18181d 0%, #07070a 55%, #0a0a0c 100%);
  color: #e8e8ed;
  padding: 32px 28px 50px;
  border: 1px solid #1a1a20;
  border-radius: 6px;
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
}
.booth-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0px, rgba(255,255,255,0.005) 1px, transparent 2px, transparent 4px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.booth-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(238,61,139,0.06) 60%, transparent 100%);
  pointer-events: none;
}

/* ---------- Toolbar ---------- */
.booth-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
  align-items: center; justify-content: space-between; position: relative;
}
.booth-toolbar .left, .booth-toolbar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.booth-toolbar .status {
  font-size: 0.74rem; color: #b0b0b8;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.audio-on  { color: #4ade80; text-shadow: 0 0 8px rgba(74,222,128,0.55); }
.audio-off { color: #facc15; text-shadow: 0 0 6px rgba(250,204,21,0.4); }

.booth-btn {
  font: inherit; font-size: 0.8rem; font-weight: 500;
  padding: 9px 16px; border-radius: 3px;
  background: linear-gradient(180deg, #2a2a30 0%, #14141a 100%);
  color: #f0f0f5;
  border: 1px solid #4a4a55;
  cursor: pointer; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.5);
}
.booth-btn:hover { background: linear-gradient(180deg, #35353c 0%, #22222a 100%); }
.booth-btn.primary {
  background: linear-gradient(180deg, #f56db0 0%, #ee3d8b 100%);
  color: #0a0a0c; border-color: #ee3d8b;
  box-shadow: 0 0 14px rgba(238,61,139,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ---------- Track pickers ---------- */
.track-pickers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 22px;
  position: relative;
}
.track-picker {
  background: linear-gradient(180deg, #15151a 0%, #0d0d11 100%);
  border: 1px solid #25252e;
  border-radius: 5px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.track-picker .label {
  font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase; color: #d0d0d6;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.track-picker .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.track-picker select {
  background: #050507; color: #ffb347;
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem;
  border: 1px solid #2a2a30; border-radius: 3px; padding: 7px 8px; flex: 1;
  text-shadow: 0 0 6px rgba(255,179,71,0.3);
}
.track-picker.dragover {
  border-color: #ee3d8b;
  box-shadow: 0 0 16px rgba(238,61,139,0.3);
  background: linear-gradient(180deg, #1f1611 0%, #150c08 100%);
}

/* ===========================================
   THE GEAR ROW
   =========================================== */
.gear-row {
  display: grid;
  grid-template-columns: 1.15fr 310px 1.15fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
}

/* ===========================================
   DECK
   =========================================== */
.deck {
  background: linear-gradient(135deg, #25252b 0%, #14141a 30%, #0d0d11 100%);
  border: 1px solid #2a2a32;
  border-radius: 8px;
  padding: 14px 12px 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    0 8px 30px rgba(0,0,0,0.7);
}

/* Top utility row */
.deck-utility-row {
  display: flex; gap: 4px; align-items: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: #d0d0d6;
}
.util-btn {
  padding: 5px 9px;
  background: linear-gradient(180deg, #25252c 0%, #14141a 100%);
  border: 1px solid #4a4a55;
  border-radius: 2px;
  color: #d0d0d6;
}
/* The Browse "button" is actually a <select> wired to STARTER_TRACKS so kids
   can pick a bundled track in one click. Style it to match the other util-btn
   chips: same gradient, same border, same metrics, plus a small chevron. */
.util-btn-select {
  font-family: inherit;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 18px;
  background-image:
    linear-gradient(180deg, #25252c 0%, #14141a 100%),
    linear-gradient(135deg, transparent 50%, #d0d0d6 50%),
    linear-gradient(45deg,  transparent 50%, #d0d0d6 50%);
  background-repeat: no-repeat;
  background-position: 0 0, calc(100% - 8px) 55%, calc(100% - 5px) 55%;
  background-size: 100% 100%, 3px 3px, 3px 3px;
  max-width: 150px;
  text-overflow: ellipsis;
}
.util-btn-select:hover { border-color: #6a6a75; color: #fff; }
.util-btn-select option {
  background: #1a1a22;
  color: #d0d0d6;
  letter-spacing: 0.5px;
  text-transform: none;
  font-size: 12px;
}

/* LCD screen */
.deck-screen {
  background: linear-gradient(180deg, #0a0a0e 0%, #050507 100%);
  border: 1px solid #2a2a32;
  border-radius: 4px;
  padding: 14px 16px;
  min-height: 140px;
  min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 2px #050507,
    0 0 0 3px #1a1a20;
  position: relative;
  overflow: hidden;
}
.deck-screen-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem; letter-spacing: 2px; color: #c8c8d0;
  padding-bottom: 6px;
  border-bottom: 1px solid #25252e;
}
.deck-title {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem; font-weight: 500;
  color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.deck-artist {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem; color: #d0d0d6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.deck-time {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem; color: #ffffff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
}

.deck-screen:hover { border-color: #ee3d8b; }
.deck-screen.dragover {
  border-color: #ee3d8b;
  box-shadow:
    inset 0 0 30px rgba(238,61,139,0.18),
    0 0 0 2px #050507,
    0 0 0 3px #ee3d8b,
    0 0 22px rgba(238,61,139,0.4);
}
.waveform {
  height: 28px;
  background: linear-gradient(180deg, #050303 0%, #080404 100%);
  border: 1px solid #1a1006;
  border-radius: 2px;
  position: relative; overflow: hidden;
}
.waveform::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 11px, rgba(255,179,71,0.07) 12px, rgba(255,179,71,0.07) 13px);
}
.waveform { --wave-color: rgba(255,179,71,0.8); }
.waveform.has-wave::before { content: none; }
.waveform .wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.waveform .progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, rgba(238,61,139,0.18) 0%, rgba(238,61,139,0.32) 100%);
  border-right: 1.5px solid #ee3d8b;
  box-shadow: 0 0 12px rgba(238,61,139,0.6);
}
.waveform .cue-marker {
  position: absolute; top: 1px; bottom: 1px; width: 2px;
  background: #3d5fec; box-shadow: 0 0 8px rgba(61,95,236,0.8);
}

/* HOT CUE BAR — horizontal, under the screen */
.hot-cue-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  background: linear-gradient(180deg, #14141a 0%, #0a0a0d 100%);
  border: 1px solid #25252e;
  border-radius: 4px;
}
.hot-cue-bar .hot-cue-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.55rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #d0d0d6; padding-left: 6px;
}
.hot-cue-pads {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 5px; flex: 1;
}
.pad {
  aspect-ratio: 1.4 / 1; min-height: 28px;
  background: linear-gradient(180deg, #2a2a32 0%, #14141a 100%);
  border: 1px solid #4a4a55;
  border-radius: 3px;
  cursor: pointer; position: relative;
  font: inherit; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem; font-weight: 600; color: #f0f0f5;
  letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}
.pad:hover { background: linear-gradient(180deg, #34343c 0%, #1a1a1f 100%); }
.pad.set {
  background: linear-gradient(180deg, #f56db0 0%, #ee3d8b 100%);
  border-color: #ee3d8b;
  color: #0a0a0c;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 12px rgba(238,61,139,0.65);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

/* Deck body: left controls | jog (huge) | pitch column */
.deck-body {
  display: grid;
  grid-template-columns: 108px 1fr 96px;
  gap: 12px;
  align-items: stretch;
  min-height: 440px;
  min-width: 0;
}

/* Bottom strip — track search / search buttons (decorative) */
.deck-bottom-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px 4px 4px;
  border-top: 1px solid #25252e;
  margin-top: 4px;
}

/* Left controls — loop buttons at top, round Cue+Play at bottom (CDJ-3000X) */
.left-controls {
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: stretch;
  gap: 10px; padding: 2px;
  min-width: 0;
}
.loop-section { display: flex; flex-direction: column; gap: 5px; }
.mini-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mini-btn {
  font: inherit; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.58rem; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 6px 2px; border-radius: 2px;
  background: linear-gradient(180deg, #25252c, #14141a);
  border: 1px solid #4a4a55;
  color: #d0d0d6;
  text-align: center; cursor: default; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.mini-btn.loop {
  color: #ffb347; border-color: #6a4d2a;
  text-shadow: 0 0 4px rgba(255,179,71,0.35);
}
.mini-btn.sync {
  color: #3d5fec; border-color: #2a3b78;
  text-shadow: 0 0 4px rgba(61,95,236,0.35);
}
/* Pitch-bend buttons — real buttons, not cosmetic chips. Light up cyan
   while held so kids can see the nudge is active. */
button.mini-btn.pitch-bend {
  cursor: pointer;
  color: #6bd1ff;
  border-color: #2a4d6a;
  text-shadow: 0 0 3px rgba(107,209,255,0.25);
  user-select: none;
}
button.mini-btn.pitch-bend:hover {
  border-color: #4a7da0;
}
button.mini-btn.pitch-bend.active {
  background: linear-gradient(180deg, #2a4d6a, #14242a);
  color: #fff;
  text-shadow: 0 0 8px rgba(107,209,255,0.85);
  border-color: #6bd1ff;
}
.round-transports {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; padding-bottom: 2px;
}
.round-transports .round-btn { margin-top: 0; }

/* Old loop row above jog — no longer rendered, kept for safety */
.loop-row { display: none; }

/* Transport row no longer used — buttons live in .left-controls */
.deck-transport { display: none; }

/* ROUND CUE + PLAY */
.round-btn {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f0f0f5 0%, #c8c8d0 35%, #8a8a92 70%, #5a5a62 100%);
  border: 4px solid #2a2a32;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  font: inherit;
  transition: box-shadow 0.15s, background 0.15s;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn .round-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #1a1a1f;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.round-btn.cue {
  border-color: #f56db0;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    0 0 0 1px rgba(238,61,139,0.3),
    0 0 18px rgba(238,61,139,0.6),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.cue:hover {
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    0 0 0 1px rgba(238,61,139,0.4),
    0 0 22px rgba(238,61,139,0.75),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.cue.active {
  background: radial-gradient(circle at 35% 28%, #ffd0e2 0%, #f56db0 50%, #ee3d8b 100%);
  border-color: #ee3d8b;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(0,0,0,0.15),
    0 0 0 2px rgba(238,61,139,0.5),
    0 0 32px rgba(238,61,139,0.9),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.cue.active .round-label { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.round-btn.play {
  border-color: #4ade80;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    0 0 0 1px rgba(74,222,128,0.3),
    0 0 18px rgba(74,222,128,0.6),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.play:hover {
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.25),
    0 0 0 1px rgba(74,222,128,0.4),
    0 0 22px rgba(74,222,128,0.75),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.play.active {
  background: radial-gradient(circle at 35% 28%, #d6f5e2 0%, #6ce695 50%, #4ade80 100%);
  border-color: #4ade80;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(0,0,0,0.15),
    0 0 0 2px rgba(74,222,128,0.5),
    0 0 32px rgba(74,222,128,0.9),
    0 4px 10px rgba(0,0,0,0.75);
}
.round-btn.play.active .round-label { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.round-btn:active { transform: translateY(2px); }

/* JOG WHEEL — huge */
.jog-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.jog-wheel {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, #4a4a52 0%, #25252b 25%, #14141a 50%, #0a0a0c 75%, #050506 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 0 6px #050506,
    inset 0 0 0 7px #1a1a20,
    inset 0 0 38px rgba(238,61,139,0.2),
    0 0 0 1px #2a2a30,
    0 8px 28px rgba(0,0,0,0.75);
  transition: transform 0.1s linear;
}
.jog-wheel::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px solid rgba(238,61,139,0.45);
  box-shadow: 0 0 26px rgba(238,61,139,0.2);
}
.jog-rotor {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
}
.jog-rotor::after {
  content: ""; position: absolute; top: 16px; left: 50%;
  width: 7px; height: 26px;
  background: #ee3d8b;
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(238,61,139,0.95);
}
.jog-center {
  width: 42%; height: 42%; border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(255,179,71,0.05) 0px, rgba(255,179,71,0.05) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at center, #0c0808 0%, #050303 100%);
  border: 1px solid #2a1a0a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 26px rgba(238,61,139,0.2);
}
.jog-letter {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.8rem; font-weight: 500; color: #ffd690;
  text-shadow: 0 0 16px rgba(255,179,71,0.7);
  line-height: 1;
}
.jog-bpm {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem; font-weight: 500; color: #ffb347;
  text-shadow: 0 0 6px rgba(255,179,71,0.5);
  margin-top: 6px; letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.jog-bpm .bpm-label {
  font-size: 0.6rem; letter-spacing: 2px; color: #b8835a; margin-left: 2px;
}
.jog-bpm .bpm-pulse { animation: bpmPulse 1s ease-in-out infinite; }
@keyframes bpmPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }
/* Rotor rotation is now driven from JS (true platter position) — no CSS spin. */
.jog-wheel { cursor: grab; touch-action: none; }
.jog-wheel:active { cursor: grabbing; }

/* PITCH column on the right */
.pitch-column {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: linear-gradient(180deg, #14141a 0%, #0a0a0d 100%);
  border: 1px solid #2a2a30;
  border-radius: 4px;
  padding: 8px 5px;
}
.tempo-controls {
  display: flex; flex-direction: column; gap: 4px; width: 100%; margin-bottom: 4px;
}
.tempo-btn {
  font: inherit; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.55rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 0; border-radius: 2px;
  background: linear-gradient(180deg, #25252c, #14141a);
  border: 1px solid #4a4a55;
  color: #d0d0d6; cursor: default;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.tempo-btn.sync {
  color: #3d5fec; border-color: #2a5563;
  text-shadow: 0 0 4px rgba(61,95,236,0.4);
}
.tempo-range {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem; letter-spacing: 1px; color: #ffd690;
  text-align: center; padding: 4px 0;
  background: #050303; border: 1px solid #2a1a0a; border-radius: 2px;
  text-shadow: 0 0 4px rgba(255,179,71,0.4);
}
.pitch-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: #d0d0d6;
  margin-top: 2px;
}
.pitch-readout {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem; font-weight: 500;
  color: #ffd690; text-shadow: 0 0 6px rgba(255,179,71,0.4);
  background: #050303; padding: 4px 8px; border-radius: 2px;
  border: 1px solid #2a1a0a; min-width: 56px; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ====== CUSTOM FADERS (Pioneer-style chrome cap) ====== */
.custom-fader {
  position: relative;
  background: linear-gradient(180deg, #050507 0%, #0a0a0d 100%);
  border: 1px solid #1a1a20;
  border-radius: 2px;
  cursor: ns-resize;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.75);
}
.custom-fader.vert { width: 30px; height: 180px; margin: 0 auto; }
.custom-fader.vert::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1px; background: #ee3d8b;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(238,61,139,0.6);
}
.custom-fader.horz { width: 100%; height: 30px; cursor: ew-resize; }
.custom-fader.horz::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 1px; height: 18px; background: #ee3d8b;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(238,61,139,0.6);
}
.fader-cap {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 18px;
  background: linear-gradient(180deg, #f5f5f5 0%, #c0c0c0 45%, #888 100%);
  border: 1px solid #444;
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: none; z-index: 2;
}
.fader-cap::after {
  content: ""; position: absolute; left: 4px; right: 4px;
  top: 50%; height: 1px; background: #4a4a4a;
  transform: translateY(-50%);
}
.custom-fader.horz .fader-cap {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 26px;
}
.custom-fader.horz .fader-cap::after {
  left: 50%; top: 4px; bottom: 4px;
  width: 1px; height: auto; right: auto;
  transform: translateX(-50%);
}

/* Bottom branding */
.deck-brand-bottom {
  text-align: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem; letter-spacing: 3px; color: #b0b0b8;
  margin-top: 4px;
}

/* ===========================================
   MIXER
   =========================================== */
.mixer {
  background: linear-gradient(135deg, #25252b 0%, #14141a 30%, #0d0d11 100%);
  border: 1px solid #2a2a32;
  border-radius: 8px;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    0 8px 30px rgba(0,0,0,0.7);
}
.mixer-header {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: #d0d0d6; text-align: center; padding-bottom: 4px;
  border-bottom: 1px solid #2a2a32;
  display: flex; justify-content: space-between; align-items: center;
}
.mixer-header .indicator { color: #4ade80; font-size: 0.7rem; text-shadow: 0 0 6px rgba(74,222,128,0.6); }

/* Legacy — old 2-col channel grid no longer used */
.channels-row { display: none; }

/* 3-column mixer layout: CH1 | Master (centre VU) | CH2 */
.mixer-strips {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  gap: 6px;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

/* Knob + label as a single fixed-height row so all 3 columns align */
.knob-row {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  height: 60px;
}
.master-knob-row { height: 76px; }
.channel,
.master-strip {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px 4px;
  background: linear-gradient(180deg, #14141a 0%, #0a0a0d 100%);
  border: 1px solid #25252e;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  min-width: 0;
}
.channel { padding: 8px 3px; }
.master-strip { gap: 4px; }

.vu-section {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; width: 100%;
  margin-top: 6px; gap: 4px;
}
.vu-clip {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.55rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #ef4444; text-shadow: 0 0 4px rgba(239,68,68,0.4);
}
.vu-group-4 {
  display: flex; gap: 3px;
  align-items: stretch;
  flex: 1;
  padding: 0 4px;
}
.master-strip .vu-meter {
  width: 7px;
  height: auto;
  min-height: 170px;
}
.vu-labels-row {
  display: flex; gap: 1px; width: 100%; padding: 0 2px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.5rem; text-transform: uppercase; color: #d0d0d6;
  letter-spacing: 0.5px;
}
.vu-labels-row span { flex: 1; text-align: center; }
.vu-labels-row .mstr { color: #ffd690; flex: 2; }

.cue-btn {
  width: 84%; padding: 5px 4px; margin: 4px 0;
  font: inherit; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f56db0 0%, #ee3d8b 100%);
  color: #ffffff;
  border: 1px solid #ee3d8b; border-radius: 2px;
  cursor: default;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  box-shadow: 0 0 6px rgba(238,61,139,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ch-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem; letter-spacing: 2px; color: #ffd690;
  text-shadow: 0 0 4px rgba(255,179,71,0.4);
}
.knob-grid { display: grid; gap: 6px; justify-items: center; }

/* KNOBS */
.knob {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4a4a52 0%, #2a2a30 35%, #15151a 75%, #0a0a0c 100%);
  position: relative; cursor: ns-resize;
  border: 1px solid #25252e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.55);
}
.knob:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    0 0 0 1px #ee3d8b,
    0 2px 8px rgba(238,61,139,0.35);
}
.knob::after {
  content: ""; position: absolute; top: 4px; left: 50%;
  width: 4px; height: 14px;
  background: #f0f0f5; border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(240,240,245,0.5);
}
.knob.hi-knob::after,
.knob.mid-knob::after,
.knob.lo-knob::after { background: #ee3d8b; box-shadow: 0 0 6px rgba(238,61,139,0.75); }
.knob.color::after { background: #3d5fec; box-shadow: 0 0 6px rgba(61,95,236,0.75); }
.knob.master { width: 56px; height: 56px; }
.knob.master::after { background: #ffb347; box-shadow: 0 0 8px rgba(255,179,71,0.7); width: 5px; height: 18px; top: 5px; }

.knob-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.52rem; letter-spacing: 1.5px; text-transform: uppercase; color: #d0d0d6;
  margin-top: -2px;
}

.knob-grid { gap: 3px !important; }

/* VU METERS */
.vu-row { display: flex; gap: 4px; justify-content: center; align-items: end; }
.vu-meter {
  width: 6px; height: 110px;
  background: linear-gradient(180deg, #050507 0%, #0c0c10 100%);
  border: 1px solid #2a2a32;
  border-radius: 2px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.7);
}
.vu-fill {
  position: absolute; left: 1px; right: 1px; bottom: 1px; height: 0%;
  background: linear-gradient(to top,
    #4ade80 0%, #4ade80 55%,
    #facc15 55%, #facc15 80%,
    #ef4444 80%, #ef4444 100%);
  border-radius: 1px;
  transition: height 0.05s linear;
}
.vu-meter::before {
  content: ""; position: absolute; inset: 1px;
  background: repeating-linear-gradient(0deg,
    transparent 0px, transparent 6px,
    rgba(0,0,0,0.55) 6px, rgba(0,0,0,0.55) 7px);
  pointer-events: none; z-index: 2;
}

/* Sound Color FX strip */
.fx-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, #14141a 0%, #0a0a0d 100%);
  border: 1px solid #25252e;
  border-radius: 4px;
}
.fx-btn {
  padding: 6px 0; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(180deg, #25252c 0%, #14141a 100%);
  border: 1px solid #4a4a55; border-radius: 2px;
  color: #3d5fec; text-shadow: 0 0 4px rgba(61,95,236,0.4);
  cursor: default; text-align: center;
}
.fx-strip-label {
  grid-column: 1 / -1;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.58rem; letter-spacing: 2px; text-transform: uppercase;
  color: #b0b0b8; text-align: center;
  margin-top: 2px;
}

/* Legacy master-strip / master-vu styles — superseded by mixer-strips above */
.master-vu { display: flex; gap: 4px; }

/* CROSSFADER block */
.crossfader-wrap {
  background: linear-gradient(180deg, #050507 0%, #0a0a0d 100%);
  border: 1px solid #1a1a20; border-radius: 4px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.crossfader-wrap label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  color: #d0d0d6; text-align: center;
}
.crossfader-labels {
  display: flex; justify-content: space-between;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem; color: #ffd690; letter-spacing: 1.5px;
  text-shadow: 0 0 4px rgba(255,179,71,0.4);
}

.mixer-brand {
  text-align: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem; letter-spacing: 3px; color: #b0b0b8;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .gear-row { grid-template-columns: 1fr; }
  .mixer { order: -1; }
  .deck-body { grid-template-columns: 70px 1fr 64px; }
  .custom-fader.vert { height: 180px; }
  .vu-meter { height: 100px; }
  .jog-wheel { max-width: 240px; }
  .track-pickers { grid-template-columns: 1fr; }
}

/* Loop region on the waveform (loop engaged) */
.waveform .loop-band {
  position: absolute;
  top: 0; bottom: 0;
  display: none;
  background: rgba(238,61,139,.20);
  border-left: 2px solid #ee3d8b;
  border-right: 2px solid #ee3d8b;
  pointer-events: none;
}
