/* DAJAI.IO — DJ DECK · the desk where she plays for fans
   ============================================================ */

:root {
  --deck-a: #ff2a3c;
  --deck-b: #2da4ff;
  --gold: #ffd166;
  --pink: #ff4d8a;
  --plasma-2: #74e3a3;
  --metal-1: #1a1518;
  --metal-2: #0a0708;
  --metal-3: #2a2225;
}

body.dj-body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,42,60,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(45,164,255,0.10) 0%, transparent 55%),
    #050304;
  cursor: default;
  overflow-x: hidden;
}

/* FAN MODE — controls are read-only, decks still animate */
body.fan-mode .knob,
body.fan-mode .fader-cap,
body.fan-mode .xfader-cap,
body.fan-mode .tempo-cap,
body.fan-mode .btn,
body.fan-mode .pad,
body.fan-mode .crate-chip,
body.fan-mode .search-input,
body.fan-mode .tr-load,
body.fan-mode .req-btn {
  pointer-events: none !important;
  cursor: not-allowed !important;
}
body.fan-mode .fan-watermark {
  position: fixed; top: 14px; right: 14px; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,42,60,0.12);
  border: 1px solid #ff2a3c;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.28em;
  color: #ff2a3c;
  text-shadow: 0 0 6px #ff2a3c;
  backdrop-filter: blur(8px);
}
body.fan-mode .fan-watermark::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #ff2a3c; box-shadow: 0 0 8px #ff2a3c;
  animation: onAirBlink 1.2s steps(2) infinite;
}
body:not(.fan-mode) .fan-watermark { display: none !important; }

/* brushed-metal panel */
.panel {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--metal-3) 0%, var(--metal-1) 50%, var(--metal-2) 100%);
  border: 1px solid #2a1518;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 4px 14px rgba(0,0,0,0.5);
  position: relative;
}
.panel::after {
  content: ''; position: absolute; inset: 4px; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.025);
}
.panel-screws {
  position: absolute; pointer-events: none; inset: 0;
}
.screw {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #555 0%, #1a0d0e 60%, #000 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 2px rgba(0,0,0,0.6);
}
.screw::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(var(--rot, 38deg));
  width: 6px; height: 1px; background: rgba(0,0,0,0.7);
}
.screw.tl { top: 6px; left: 6px; }
.screw.tr { top: 6px; right: 6px; --rot: -22deg; }
.screw.bl { bottom: 6px; left: 6px; --rot: 14deg; }
.screw.br { bottom: 6px; right: 6px; --rot: -48deg; }

/* tiny LED */
.led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, #ff2a3c);
  box-shadow: 0 0 6px var(--c, #ff2a3c), inset 0 0 2px rgba(0,0,0,0.4);
  vertical-align: middle;
}
.led.off { opacity: 0.18; box-shadow: none; }

/* segmented LCD-style readout */
.lcd {
  background: linear-gradient(180deg, #0a1410 0%, #050a08 100%);
  border: 1px solid rgba(116, 227, 163, 0.2);
  box-shadow: inset 0 0 20px rgba(116,227,163,0.08), 0 1px 0 rgba(0,0,0,0.6);
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  color: #74e3a3;
  text-shadow: 0 0 6px rgba(116,227,163,0.6);
  position: relative; overflow: hidden;
}
.lcd::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
}
.lcd.red    { border-color: rgba(255,42,60,0.3); color: #ff2a3c; text-shadow: 0 0 6px rgba(255,42,60,0.6); background: linear-gradient(180deg, #14060a 0%, #0a0305 100%); box-shadow: inset 0 0 20px rgba(255,42,60,0.12); }
.lcd.amber  { border-color: rgba(255,209,102,0.3); color: var(--gold); text-shadow: 0 0 6px rgba(255,209,102,0.6); background: linear-gradient(180deg, #140e08 0%, #0a0805 100%); box-shadow: inset 0 0 20px rgba(255,176,32,0.12); }
.lcd.cobalt { border-color: rgba(45,164,255,0.3); color: #6fc8ff; text-shadow: 0 0 6px rgba(45,164,255,0.6); background: linear-gradient(180deg, #061014 0%, #03080a 100%); box-shadow: inset 0 0 20px rgba(45,164,255,0.12); }
.lcd.pink   { border-color: rgba(255,77,138,0.3); color: var(--pink); text-shadow: 0 0 6px rgba(255,77,138,0.6); background: linear-gradient(180deg, #14060c 0%, #0a0307 100%); }

/* knob */
.knob {
  width: var(--sz, 42px); height: var(--sz, 42px); border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #6a5a5e 0%, #2a1a1d 55%, #0a0506 100%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.18),
    inset 0 -3px 5px rgba(0,0,0,0.6),
    0 3px 6px rgba(0,0,0,0.6),
    0 0 0 1px #1a0d0e;
  position: relative; cursor: ns-resize; flex-shrink: 0;
  transition: box-shadow 0.15s;
}
.knob:hover { box-shadow: inset 0 2px 3px rgba(255,255,255,0.22), inset 0 -3px 5px rgba(0,0,0,0.6), 0 3px 8px rgba(0,0,0,0.7), 0 0 12px var(--hue, rgba(255,255,255,0.15)); }
.knob::before {
  content: ''; position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a0d0e 0%, #050304 100%);
  border: 1px solid rgba(255,255,255,0.05);
}
.knob::after {
  content: ''; position: absolute;
  top: 8%; left: 50%;
  width: 2px; height: 30%;
  background: var(--hue, var(--ink));
  box-shadow: 0 0 4px var(--hue, transparent);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(calc((var(--v, 0.5) - 0.5) * 270deg));
  transition: transform 0.18s cubic-bezier(0.5, 1.5, 0.5, 1);
  border-radius: 1px;
}
.knob.center::after {
  /* center detent — at 0.5 the line points straight up */
}

/* knob tick marks around */
.knob-cluster {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
}
.knob-cluster .knob-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: var(--faint);
}
.knob-cluster .knob-val {
  font-family: 'VT323', monospace; font-size: 12px; color: var(--ink); line-height: 1;
}

/* fader */
.fader-slot {
  width: 26px; height: var(--h, 160px);
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  border: 1px solid rgba(0,0,0,0.6);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}
.fader-slot::before {
  /* center line */
  content: ''; position: absolute; top: 6px; bottom: 6px; left: 50%;
  width: 1px; background: rgba(255,255,255,0.18);
}
.fader-slot .fader-tick {
  position: absolute; left: -6px; right: -6px; height: 1px;
  background: rgba(255,255,255,0.12);
}
.fader-cap {
  position: absolute; left: -8px; right: -8px; height: 22px;
  background:
    linear-gradient(180deg, #2a2225 0%, #1a1518 100%);
  border: 1px solid #3a2a2d;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 3px 6px rgba(0,0,0,0.5),
    0 0 14px var(--hue, transparent);
  cursor: ns-resize;
  transform: translateY(calc(-50% + (1 - var(--v, 1)) * (var(--h, 160px) - 22px)));
  transition: transform 0.12s ease-out;
  display: flex; align-items: center; justify-content: center;
}
.fader-cap::after {
  content: ''; height: 2px; width: 18px; background: var(--hue, #fff); box-shadow: 0 0 4px var(--hue, transparent);
  border-radius: 1px;
}

/* horizontal crossfader */
.xfader-slot {
  width: 100%; height: 26px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  border: 1px solid rgba(0,0,0,0.6);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}
.xfader-slot::before {
  content: ''; position: absolute; left: 6px; right: 6px; top: 50%;
  height: 1px; background: rgba(255,255,255,0.18);
}
.xfader-cap {
  position: absolute; top: -8px; bottom: -8px; width: 28px;
  background: linear-gradient(180deg, #3a2a2d 0%, #1a1518 100%);
  border: 1px solid #4a3a3d;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 4px 8px rgba(0,0,0,0.5),
    0 0 14px rgba(255,255,255,0.05);
  cursor: ew-resize;
  left: calc(var(--v, 0.5) * 100% - 14px);
  display: flex; align-items: center; justify-content: center;
  transition: left 0.12s ease-out;
}
.xfader-cap::after {
  content: ''; width: 2px; height: 22px;
  background: linear-gradient(180deg, #ff2a3c 0%, #fff 50%, #2da4ff 100%);
  border-radius: 1px;
}

/* JOG WHEEL */
.jog {
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #2a2225 0%, #1a1518 40%, #0a0506 100%);
  box-shadow:
    0 0 0 6px #050304,
    0 0 0 7px var(--hue),
    0 0 30px color-mix(in oklch, var(--hue) 40%, transparent),
    inset 0 4px 8px rgba(0,0,0,0.8),
    inset 0 -2px 4px rgba(255,255,255,0.04);
}
.jog-platter {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a0d10 0%, #050304 80%);
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 0 0 1px var(--hue), inset 0 0 30px rgba(0,0,0,0.9);
  /* concentric grooves */
}
.jog-vinyl {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, #1a0d10 0%, #050304 60%, #000 100%);
  animation: jogSpin var(--rpm, 1.85s) linear infinite;
  animation-play-state: var(--play, paused);
}
.jog-vinyl::before {
  /* the position marker — bright slash at top */
  content: ''; position: absolute; top: 4%; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 30%;
  background: var(--hue);
  box-shadow: 0 0 8px var(--hue);
  border-radius: 2px;
}
.jog-vinyl::after {
  /* counter-marker on the bottom */
  content: ''; position: absolute; bottom: 18%; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 12%;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.jog-spindle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 22%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a5a5e 0%, #2a1a1d 60%, #050304 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 4px 8px rgba(0,0,0,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid #1a0d0e;
}
.jog-spindle .num {
  font-family: 'VT323', monospace; font-size: 22px; line-height: 0.85;
  color: var(--hue); text-shadow: 0 0 6px var(--hue);
}
.jog-spindle .lbl {
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em;
  color: var(--faint); margin-top: 2px;
}
@keyframes jogSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ring around jog with cue points */
.jog-ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
}
.jog-ring .cue-marker {
  position: absolute; top: 50%; left: 50%;
  width: 4px; height: 14px;
  background: var(--c, var(--gold));
  box-shadow: 0 0 6px var(--c, var(--gold));
  transform-origin: 50% 0;
  transform: translate(-50%, calc(var(--r, 130px) * -1)) rotate(var(--ang, 0deg));
  transform: rotate(var(--ang, 0deg)) translateY(calc(var(--r, 130px) * -1)) translateX(-50%);
  border-radius: 1px;
}

/* WAVEFORM */
.wave {
  display: flex; align-items: center;
  height: 88px;
  gap: 1px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  padding: 0 2px;
}
.wave-bar {
  flex-shrink: 0; width: 2px; min-height: 2px;
  background: var(--bar, var(--hue));
  opacity: 0.8;
}
.wave-bar.played { opacity: 0.35; }
.wave-bar.bass { background: var(--hue); }
.wave-bar.mid  { background: color-mix(in oklch, var(--hue) 70%, #fff); }
.wave-playhead {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: #fff; box-shadow: 0 0 8px #fff, 0 0 18px var(--hue);
  z-index: 4;
  transition: left 0.06s linear;
}
.wave-cue {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--c, var(--gold));
  box-shadow: 0 0 8px var(--c, var(--gold));
  z-index: 3;
}
.wave-cue::before {
  content: attr(data-num);
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: 'VT323', monospace; font-size: 11px;
  color: var(--c, var(--gold));
  text-shadow: 0 0 4px var(--c, var(--gold));
}

/* zoomed waveform — scrolling, centered playhead */
.wave-zoom {
  height: 56px; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.85)),
    var(--metal-2);
  border: 1px solid rgba(255,255,255,0.06);
}
.wave-zoom-track {
  display: flex; align-items: center; height: 100%;
  position: absolute; top: 0; bottom: 0;
  gap: 1px; padding: 0 50%;
  transition: left 0.06s linear;
  will-change: left;
}
.wave-zoom-track .wb {
  flex-shrink: 0; width: 3px; min-height: 3px;
  background: var(--bar);
}
.wave-zoom-playhead {
  position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px;
  background: #fff; box-shadow: 0 0 8px #fff, 0 0 18px var(--hue);
  z-index: 5;
}
/* beat grid lines */
.wave-zoom-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: repeating-linear-gradient(90deg, transparent 0 var(--beat, 32px), rgba(255,255,255,0.08) var(--beat, 32px) calc(var(--beat, 32px) + 1px));
}

/* hot cue pads */
.pads {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.pads.eight { grid-template-columns: repeat(8, 1fr); }
.pad {
  aspect-ratio: 1.4 / 1;
  background: linear-gradient(180deg, color-mix(in oklch, var(--c) 30%, #1a0d0e) 0%, #050304 100%);
  border: 1px solid color-mix(in oklch, var(--c) 50%, #2a1518);
  border-radius: 4px;
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px 8px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 4px rgba(0,0,0,0.4);
  transition: all 0.1s;
  user-select: none;
}
.pad:hover {
  background: linear-gradient(180deg, color-mix(in oklch, var(--c) 50%, #1a0d0e) 0%, #1a0d0e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 16px color-mix(in oklch, var(--c) 50%, transparent);
}
.pad.lit {
  background: var(--c);
  color: #000;
  box-shadow: 0 0 18px var(--c), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: padFlash 0.4s ease-out;
}
.pad.armed { box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c); }
.pad-num {
  font-family: 'VT323', monospace; font-size: 16px; line-height: 1;
  color: var(--c);
  text-shadow: 0 0 4px var(--c);
}
.pad.lit .pad-num { color: #000; text-shadow: none; }
.pad-name {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em;
  color: var(--ink); opacity: 0.8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pad.lit .pad-name { color: #000; opacity: 1; font-weight: 700; }
@keyframes padFlash {
  0%   { box-shadow: 0 0 28px var(--c), inset 0 1px 0 rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 12px var(--c), inset 0 1px 0 rgba(255,255,255,0.3); }
}

/* button — generic deck button */
.btn {
  background: linear-gradient(180deg, #2a2225 0%, #0a0506 100%);
  border: 1px solid #3a2a2d;
  color: var(--ink); font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  padding: 8px 10px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.4);
  transition: all 0.12s; text-transform: uppercase; min-width: 0;
  border-radius: 3px;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: linear-gradient(180deg, #3a2a2d, #1a1518); }
.btn.active {
  background: var(--c, var(--deck-a));
  color: #000;
  box-shadow: 0 0 14px var(--c, var(--deck-a)), inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: var(--c, var(--deck-a));
  font-weight: 700;
}
.btn.play { background: linear-gradient(180deg, #2da55c, #0d4528); border-color: #2da55c; }
.btn.play.active { background: #74e3a3; box-shadow: 0 0 16px #74e3a3; color: #000; }
.btn.cue  { background: linear-gradient(180deg, #c8a02a, #3a2a08); border-color: #c8a02a; color: #ffd166; }
.btn.cue.active { background: #ffd166; color: #000; box-shadow: 0 0 16px #ffd166; }
.btn.sync { background: linear-gradient(180deg, #c8323e, #3a0a0e); border-color: #c8323e; }
.btn.sync.active { background: #ff5b6e; color: #000; box-shadow: 0 0 16px #ff5b6e; }

/* big BPM display */
.bpm-display {
  font-family: 'VT323', monospace;
  font-size: 56px; line-height: 0.85;
  color: var(--hue);
  text-shadow: 0 0 12px var(--hue);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.bpm-display .dec { font-size: 28px; opacity: 0.6; }

/* time display */
.time-display {
  font-family: 'VT323', monospace;
  font-size: 30px; line-height: 0.9;
  color: var(--hue);
  text-shadow: 0 0 8px var(--hue);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* VU meter */
.vu {
  display: flex; flex-direction: column-reverse; gap: 1px;
  width: 14px; height: 100%;
  background: rgba(0,0,0,0.6); padding: 2px;
  border: 1px solid rgba(0,0,0,0.5);
}
.vu-seg {
  height: 4%; background: var(--c, #74e3a3);
  opacity: 0.15;
  box-shadow: 0 0 0 transparent;
  transition: opacity 0.08s;
}
.vu-seg.lit { opacity: 0.95; box-shadow: 0 0 4px var(--c); }

/* beat phase indicator (4 dots that fill on each beat) */
.beat-phase {
  display: flex; gap: 4px;
}
.beat-phase .bp-dot {
  width: 14px; height: 6px; border-radius: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.08s;
}
.beat-phase .bp-dot.lit {
  background: var(--hue);
  box-shadow: 0 0 6px var(--hue);
}
.beat-phase .bp-dot.lit.one { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* track row */
.track-row {
  display: grid;
  grid-template-columns: 32px 28px 1.6fr 60px 70px 60px 60px 70px 70px 60px;
  gap: 12px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.12s;
  position: relative;
}
.track-row:hover { background: rgba(255,42,60,0.05); }
.track-row.in-deck-a { background: linear-gradient(90deg, rgba(255,42,60,0.16), transparent 60%); border-left: 3px solid var(--deck-a); }
.track-row.in-deck-b { background: linear-gradient(90deg, rgba(45,164,255,0.16), transparent 60%); border-left: 3px solid var(--deck-b); }
.track-row.head { background: rgba(0,0,0,0.4); font-size: 8px; letter-spacing: 0.22em; color: var(--faint); cursor: default; }
.track-row.head:hover { background: rgba(0,0,0,0.4); }
.tr-num { font-family: 'VT323', monospace; font-size: 16px; color: var(--gold); }
.tr-name { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.tr-sub  { font-size: 9px; color: var(--dim); letter-spacing: 0.14em; margin-top: 2px; }
.tr-num-val { font-variant-numeric: tabular-nums; color: var(--ink); }
.tr-up { color: #74e3a3; }
.tr-dn { color: #ff6b8a; }
.tr-load {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em;
  padding: 4px 6px; cursor: pointer; border: 1px solid currentColor;
  border-radius: 2px; background: transparent;
}
.tr-load.a { color: var(--deck-a); }
.tr-load.b { color: var(--deck-b); }
.tr-load:hover { background: currentColor; color: #000; }

/* art tile (album block) */
.art-tile {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--art);
  position: relative;
}
.art-tile::after {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(255,255,255,0.4);
}
.art-tile .num {
  position: absolute; top: 4px; left: 6px;
  font-family: 'VT323', monospace; font-size: 18px; color: #fff; line-height: 1;
  text-shadow: 0 1px 3px black;
}

/* fan request item */
.req-item {
  display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  align-items: center;
  background: rgba(255,255,255,0.012);
}
.req-item .req-art {
  width: 30px; height: 30px; background: var(--art);
  position: relative;
}
.req-item .req-art::after { content:''; position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,0.3); }
.req-item .req-name { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: -0.01em; line-height: 1.05; }
.req-item .req-fan { font-family: var(--mono); font-size: 8px; color: var(--dim); letter-spacing: 0.14em; margin-top: 2px; }
.req-item .req-btn { font-size: 8px; padding: 4px 6px; border: 1px solid var(--c); color: var(--c); background: transparent; cursor: pointer; letter-spacing: 0.14em; }
.req-item .req-btn:hover { background: var(--c); color: #000; }

/* fan chat msg */
.chat-msg {
  display: flex; gap: 8px; padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px; line-height: 1.4;
  animation: chatIn 0.4s ease-out;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-handle { color: var(--c, var(--gold)); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; flex-shrink: 0; min-width: 80px; }
.chat-text { color: var(--ink); }
.chat-text.heart { color: var(--pink); }

/* heart float */
@keyframes heartFloat {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { transform: translateY(-10px) scale(1); opacity: 1; }
  100% { transform: translateY(-180px) scale(0.5); opacity: 0; }
}
.heart-stream {
  position: absolute; bottom: 8px; left: 0; right: 0; height: 200px; pointer-events: none;
  overflow: hidden;
}
.heart {
  position: absolute; bottom: 0; font-size: 16px;
  color: var(--pink); text-shadow: 0 0 6px var(--pink);
  animation: heartFloat 2.4s ease-out forwards;
}

/* spectrum mini */
.spectrum {
  display: flex; align-items: end; gap: 2px; height: 100%;
}
.spec-bar { flex: 1; min-width: 2px; background: var(--hue); border-radius: 1px 1px 0 0; box-shadow: 0 0 4px var(--hue); transition: height 0.06s; }

/* ON AIR badge */
.on-air-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #ff2a3c; color: #000;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.28em;
  box-shadow: 0 0 14px #ff2a3c;
  animation: onAirPulse 1.6s ease-in-out infinite;
}
@keyframes onAirPulse { 0%, 100% { box-shadow: 0 0 14px #ff2a3c; } 50% { box-shadow: 0 0 28px #ff2a3c; } }
.on-air-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #000;
  animation: onAirBlink 1s steps(2) infinite;
}
@keyframes onAirBlink { 50% { opacity: 0.2; } }

/* FX SLOT */
.fx-slot {
  background: linear-gradient(180deg, rgba(20,8,12,0.85), rgba(5,3,4,0.95));
  border: 1px solid var(--c);
  padding: 14px;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: center;
}
.fx-slot::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--c); box-shadow: 0 0 8px var(--c);
  opacity: 0.4;
}
.fx-slot.on::before { opacity: 1; animation: fxPulse 0.5s ease-in-out infinite; }
@keyframes fxPulse { 50% { opacity: 0.6; } }

/* tempo fader (vertical bar with center detent) */
.tempo {
  position: relative; height: 160px; width: 28px;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  border: 1px solid #2a1518;
  border-radius: 3px;
  margin: 0 auto;
}
.tempo .center-dent { position: absolute; top: 50%; left: -3px; right: -3px; height: 1px; background: var(--gold); box-shadow: 0 0 4px var(--gold); }
.tempo-cap {
  position: absolute; left: -8px; right: -8px; height: 14px;
  background: linear-gradient(180deg, #c8323e, #3a0a0e);
  border: 1px solid #ff5b6e;
  box-shadow: 0 0 12px var(--hue), inset 0 1px 0 rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: ns-resize;
  transform: translateY(calc(50% - 7px + (var(--v, 0.5) - 0.5) * (160px - 14px)));
}

/* status strip */
.status-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #1a0d0e 0%, #0a0506 100%);
  border-bottom: 1px solid #2a1518;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
}

/* search input */
.search-input {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 8px 12px; outline: none;
  width: 100%;
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 8px rgba(255,209,102,0.2); }

/* crate chip */
.crate-chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  padding: 5px 10px; border: 1px solid var(--line); color: var(--dim);
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
  background: rgba(0,0,0,0.3);
}
.crate-chip:hover { color: var(--ink); border-color: var(--ink); }
.crate-chip.active { background: var(--gold); color: #000; border-color: var(--gold); }
