:root {
  --bg-dark: #020202;
  --panel-bg: #0b0b0b;
  --panel-border: #1f1f1f;
  --accent-red: #ff1e38;
  --accent-blue: #00f0ff;
  --sync-blue: #1646d8;
  --sync-blue-hi: #7fa8ff;
  --accent-orange: #ff9d00;
  --accent-green: #00ff55;
  --cdj-ring-orange: #ff9d00;
  --cdj-metal-hi: #4a4a4a;
  --cdj-metal-mid: #232323;
  --cdj-metal-low: #070707;
  --text-main: #e0e0e0;
  --text-muted: #666;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --clone-cool: #5EEAD4;
  --clone-warm: #FB923C;
}
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible,
[role="slider"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(0,240,255,0.72);
  outline-offset: 2px;
}
html, body { overflow-x: clip; scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; }
body {
  background: var(--bg-dark);
  background-image:
    radial-gradient(circle at 30% 0%, rgba(255,30,56,0.06) 0%, transparent 40%),
    radial-gradient(circle at 70% 100%, rgba(0,240,255,0.04) 0%, transparent 40%);
  font-family: var(--font-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
}
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--clone-cool);
}
.scroll-progress::-webkit-progress-bar {
  background: transparent;
}
.scroll-progress::-webkit-progress-value {
  background: linear-gradient(135deg, var(--clone-cool) 0%, var(--clone-warm) 100%);
}
.scroll-progress::-moz-progress-bar {
  background: linear-gradient(135deg, var(--clone-cool) 0%, var(--clone-warm) 100%);
}
body.has-launch-intro {
  min-height: 720vh;
}
body.has-launch-intro .top-nav {
  opacity: var(--mixer-chrome-opacity, 0);
  transform: translate3d(0, var(--mixer-chrome-y, -10px), 0);
  pointer-events: auto;
  transition: none;
}
body.has-launch-intro #kbHelp {
  opacity: var(--mixer-chrome-opacity, 0);
  transform: translate3d(0, var(--mixer-chrome-y, -10px), 0);
  pointer-events: var(--mixer-chrome-pe, none);
  transition: none;
}
body.has-launch-intro #immersiveScrollStage {
  position: fixed;
  inset: 0;
  height: 100vh;
  padding: 76px 20px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  opacity: var(--mixer-live-opacity, 0);
  transform: translate3d(0, var(--mixer-live-y, 18px), 0) scale(var(--mixer-live-scale, 0.992));
  filter: brightness(var(--mixer-live-brightness, 0.92)) saturate(var(--mixer-live-saturation, 0.92));
  pointer-events: var(--mixer-live-pe, none);
  z-index: 3;
  transition: none;
  will-change: opacity, transform, filter;
}
body.has-launch-intro #immersiveScrollStage .mixer-hardware {
  margin: 0 auto 16px;
}
body.has-launch-intro .mixer-launch-intro {
  pointer-events: var(--launch-intro-pe, auto);
}
body.intro-complete {
  min-height: 100vh;
}
body.intro-complete .mixer-launch-intro {
  display: none;
}
body.intro-complete #immersiveScrollStage {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
  pointer-events: auto;
  filter: none;
}
body.intro-complete .top-nav,
body.intro-complete #kbHelp,
body.intro-complete #immersiveScrollStage,
body.intro-complete #setPanel {
  opacity: 1;
  transform: none;
}
.mixer-launch-intro {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  z-index: 90;
  background: #02040a;
  opacity: var(--launch-intro-opacity, 1);
  transform: translate3d(0, var(--launch-intro-y, 0px), 0) scale(var(--launch-intro-scale, 1));
  filter: brightness(var(--launch-intro-brightness, 1)) saturate(var(--launch-intro-saturation, 1));
  will-change: opacity, transform, filter;
}
.mixer-launch-intro::before,
.mixer-launch-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}
.mixer-launch-intro::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72), transparent 19%, transparent 81%, rgba(0,0,0,0.72)),
    linear-gradient(180deg, rgba(0,0,0,0.54), transparent 24%, transparent 76%, rgba(0,0,0,0.72));
}
.mixer-launch-intro::after {
  opacity: 0.14;
  mix-blend-mode: overlay;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 6px, 6px 100%;
}
.launch-scene-media,
.launch-lock-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.launch-scene-media {
  z-index: 1;
  transform: scale(var(--launch-video-scale, 1.012)) translate3d(0, var(--launch-video-y, 0px), 0);
  filter: saturate(1.06) contrast(1.05) brightness(var(--launch-video-brightness, 1));
  will-change: transform, filter;
}
.launch-lock-frame {
  z-index: 2;
  opacity: var(--launch-lock-opacity, 0);
  transform: scale(var(--launch-lock-scale, 1)) translate3d(0, var(--launch-lock-y, 0px), 0);
  filter: saturate(1.08) contrast(1.04);
  will-change: opacity, transform;
  pointer-events: none;
}
.launch-lock-frame.is-wide { opacity: var(--launch-wide-opacity, 1); }
.launch-lock-frame.is-focus { opacity: var(--launch-focus-opacity, 0); }
.launch-particles {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  mix-blend-mode: screen;
  pointer-events: none;
}
.launch-depth-shade {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: var(--launch-shade-opacity, 0);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 0 34%, rgba(0,0,0,0.32) 57%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, transparent 0 62%, rgba(0,0,0,0.56) 100%);
}
.launch-gesture-guide {
  position: fixed;
  left: 26px;
  bottom: 28px;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(3,5,10,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(244,247,251,0.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: var(--launch-guide-opacity, 0.94);
  transform: translateY(var(--launch-guide-y, 0px));
  pointer-events: none;
}
.launch-gesture-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0,240,255,0.42);
  border-radius: 50%;
}
.launch-gesture-icon::before,
.launch-gesture-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.launch-gesture-icon::before {
  top: 5px;
  width: 2px;
  height: 11px;
  border-radius: 99px;
  background: rgba(0,240,255,0.9);
}
.launch-gesture-icon::after {
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(0,240,255,0.9);
  border-bottom: 2px solid rgba(0,240,255,0.9);
  transform: translateX(-50%) rotate(45deg);
  animation: launch-guide-drop 1.45s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes launch-guide-drop {
  0%, 100% { opacity: 0.34; translate: 0 -2px; }
  48% { opacity: 1; translate: 0 3px; }
}
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  body.has-launch-intro {
    min-height: 100vh;
  }
  body.has-launch-intro .top-nav,
  body.has-launch-intro #kbHelp,
  body.has-launch-intro #immersiveScrollStage {
    opacity: 1;
    transform: none;
  }
  .mixer-launch-intro {
    display: none;
  }
}
/* 动画 */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse-led { 0%,100% { box-shadow: 0 0 8px var(--accent-green); background: var(--accent-green); } 50% { box-shadow: 0 0 2px rgba(0,255,85,0.3); background: #005522; } }
@keyframes wave-flow { 0% { background-position: 0 0; } 100% { background-position: -200px 0; } }

/* 导航栏 */
.top-nav {
  width: 100%; padding: 12px 0; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, rgba(2,2,2,0.82), rgba(2,2,2,0.28));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: fixed; top: 0; left: 0; z-index: 100;
}
.top-nav a {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; transition: opacity 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 28px;
  padding-left: 0;
  text-transform: uppercase;
}
.top-nav .brand-red { color: #ff003c; }
.top-nav .brand-white { color: #fff; }
.top-nav a:hover { opacity: 0.7; }
.top-nav .nav-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  flex: 0 0 auto;
  background: #070707;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 22px rgba(255,30,56,0.18);
}
.top-nav .nav-spacer { margin-left: auto; }
.nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #333;
  background: linear-gradient(#1a1a1a, #0a0a0a);
  color: #777;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nav-action-btn:hover {
  color: #fff;
  border-color: rgba(0,240,255,0.52);
  box-shadow: 0 0 14px rgba(0,240,255,0.12);
}
.nav-action-btn.is-active,
.nav-action-btn:active {
  color: #fff;
  border-color: rgba(255,30,56,0.52);
  background: linear-gradient(#241014, #080808);
}
.nav-back-btn {
  margin-left: 16px;
  margin-right: -6px;
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.58);
  box-shadow: none;
}
.nav-back-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}
.nav-back-btn:hover,
.nav-back-btn:active,
.nav-back-btn.is-active {
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  box-shadow: none;
}

/* Mixer 业务工作台：直接进入双碟机与 DJ SET */
#kbHelp,
.mixer-immersive-scroll,
.set-panel {
  position: relative;
  z-index: 1;
}
#kbHelp {
  position: fixed;
  top: 58px;
  left: 50%;
  width: min(1120px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 120;
}
.kb-help-panel {
  max-width: 1120px;
  margin: 0 auto 8px;
  padding: 12px 16px;
  background: rgba(10,10,10,0.95);
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  font-size: 10px;
  color: #666;
  font-family: var(--font-mono);
}
.kb-help-panel[aria-hidden="true"] {
  display: none;
}
.kb-help-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.kb-help-section.is-deck-a {
  color: #FF1E38;
}
.kb-help-section.is-deck-b {
  color: #00E5FF;
}
.kb-help-section.is-global {
  color: #aaa;
}
.mixer-immersive-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0;
  padding: 86px 20px 70px;
  overflow: visible;
}
.mixer-immersive-scroll .mixer-hardware {
  transition: box-shadow 0.18s ease;
}

/* 主控台外壳 */
.mixer-hardware {
  display: grid; grid-template-columns: minmax(500px, 1.24fr) 300px minmax(500px, 1.24fr); gap: 6px;
  background: #000; padding: 8px; border-radius: 18px; margin: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.95), inset 0 1px 2px rgba(255,255,255,0.08), 0 0 0 2px #0a0a0a;
  max-width: 1480px; width: 100%;
}

@media (max-height: 820px) and (min-width: 861px) {
  .mixer-immersive-scroll {
    padding-top: 70px;
    padding-bottom: 42px;
  }
  .mixer-hardware {
    grid-template-columns: minmax(360px, 1fr) 284px minmax(360px, 1fr);
    padding: 6px;
  }
  .module { padding: 14px; }
  .deck-content { gap: 8px; }
  .screen { padding: 10px; }
  .cdj-display { min-height: 176px; }
  .waveform-box { height: 38px; }
  .deck-load-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .load-btn { padding: 6px; }
  .deck-control-grid {
    grid-template-columns: 58px minmax(0, 1fr) 102px;
    min-height: 336px;
  }
  .jog-container { margin-top: 0; justify-self: center; align-self: start; }
  .jog-wheel { width: min(360px, calc(100% + 50px)); height: auto; }
  .jog-center { width: 84px; height: 84px; }
  .pitch-container { width: 112px; margin-top: 0; transform: translate(16px, 0); }
  .pitch-top-controls { width: 122px; left: -40px; }
  .pitch-label { margin-top: -36px; }
  .pitch-track-wrap { height: 300px; }
  .btn-sync { min-height: 36px; padding: 0 7px; font-size: 8.4px; }
  .btn-hw { width: 78px; height: 78px; }
  .transport { margin-left: -10px; margin-top: 180px; }
  .fader-vu { height: 190px; margin-top: 3px; }
  .knob-stack { gap: 10px; }
  .master-vu-bridge { height: 282px; margin-top: 0; margin-bottom: -58px; }
  .set-panel { margin-top: 8px; }
}

/* 模块通用 */
.module {
  background: linear-gradient(to bottom, #0f0f0f, #080808);
  border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 20px; position: relative;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.8);
}
.deck-faceplate {
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 15%, rgba(0,0,0,0.22) 52%, rgba(255,255,255,0.025)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 5px),
    linear-gradient(160deg, #151515 0%, #080808 54%, #030303 100%);
  border-color: #242424;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -28px 48px rgba(0,0,0,0.62),
    inset 0 0 0 1px rgba(255,255,255,0.025);
}
.deck-faceplate::before {
  content: ''; position: absolute; inset: 8px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.025);
  box-shadow: inset 0 0 45px rgba(0,0,0,0.55);
  pointer-events: none; z-index: 0;
}
.deck-faceplate .deck-content { position: relative; z-index: 1; }
.deck-faceplate .deck-content { overflow: visible; }
.cdj-status-strip {
  position: absolute; top: 9px; right: 14px; z-index: 3;
  display: flex; align-items: center; justify-content: flex-end; gap: 7px; height: 16px; margin: 0;
  padding: 0 6px; border-radius: 4px; background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.035);
  font-family: var(--font-mono); font-size: 8px; color: #6f6f6f; letter-spacing: 0.08em;
}
.cdj-led-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green);
  box-shadow: 0 0 7px rgba(0,255,85,0.65);
}
/* 螺丝 */
.screw {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #111, #333);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.1);
  z-index: 5;
}
.screw::after { content: ''; position: absolute; top: 2.5px; left: 0.5px; width: 5px; height: 1.5px; background: #050505; transform: rotate(45deg); }
.module .screw:nth-child(1) { top: 7px; left: 7px; }
.module .screw:nth-child(2) { top: 7px; right: 7px; }
.module .screw:nth-child(3) { bottom: 7px; left: 7px; }
.module .screw:nth-child(4) { bottom: 7px; right: 7px; }

/* ===== Deck 区域 ===== */
.deck-content { display: flex; flex-direction: column; gap: 12px; }

/* 屏幕 */
.screen {
  background: #030303; border: 2px solid #111; border-radius: 8px;
  padding: 12px; box-shadow: inset 0 8px 20px #000;
  position: relative;
}
.screen-bezel {
  background:
    linear-gradient(180deg, rgba(0,240,255,0.035), transparent 35%),
    #020404;
  border-color: #050505;
  box-shadow:
    inset 0 0 0 1px rgba(0,240,255,0.08),
    inset 0 10px 28px #000,
    0 1px 0 rgba(255,255,255,0.08),
    0 9px 18px rgba(0,0,0,0.45);
}
.cdj-display {
  min-height: 176px;
  display: grid;
  grid-template-rows: auto auto 42px auto 18px;
  gap: 6px;
  padding: 12px;
}
.track-info {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
  padding-right: 104px;
}
.screen-track-cover {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,30,56,0.46) 0 30%, transparent 31%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.08)),
    #070707;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 10px rgba(0,0,0,0.28);
  overflow: hidden;
}
.screen-track-cover.is-empty {
  background-size: auto, auto, auto;
}
.screen-track-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.screen-track-cover-img.is-hidden {
  display: none;
}
.track-title { font-size: 14px; font-weight: 900; color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.track-artist { font-size: 9px; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 2px; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-stat-row {
  display: grid;
  grid-template-columns: 64px 64px minmax(42px, 1fr);
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.05em;
}
.track-bpm,
.track-duration,
.track-key-value { color: rgba(255,255,255,0.76); }
.track-bpm {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  text-shadow: none;
}
.track-bpm .bpm-unit,
.screen-live-bpm .bpm-unit {
  color: rgba(255,255,255,0.9);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 5px rgba(255,255,255,0.22);
}
.track-key-value { text-align: right; color: var(--accent-blue); text-shadow: 0 0 7px rgba(0,240,255,0.22); }
.screen-playback-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 17px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: rgba(255,255,255,0.74);
  letter-spacing: 0.03em;
}
.track-time { color: #fff; font-family: var(--font-mono); }
.screen-pitch { color: var(--accent-green); text-shadow: 0 0 7px rgba(0,255,85,0.28); }
.screen-live-bpm {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent-red);
  text-shadow: 0 0 8px rgba(255,30,56,0.35);
}
.waveform-overview {
  position: relative;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #111;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 5px),
    #030303;
  box-shadow: inset 0 2px 8px #000;
}
.waveform-overview canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.waveform-overview::after {
  content: none;
}
.screen-key-readout {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 18px;
  padding-left: 10px;
  background: linear-gradient(90deg, transparent, #020404 38%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.06em;
}
.screen-key-readout span { color: var(--accent-blue); text-shadow: 0 0 7px rgba(0,240,255,0.28); }

/* 波形 */
.waveform-box {
  height: 42px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #050505, #020202);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid #111;
  cursor: pointer;
}
.waveform-box canvas { width: 100%; height: 100%; display: block; }
.playhead-line {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 9px rgba(255,255,255,0.56);
  pointer-events: none;
  z-index: 3;
}
.deck-empty-cta {
  position: absolute; left: 12px; right: 12px; top: 70px; bottom: auto; z-index: 4;
  display: grid; grid-template-columns: 112px 112px; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 6px;
  background: transparent;
  opacity: 1; pointer-events: auto;
  transition: opacity 0.16s ease;
}
.deck.has-track .deck-empty-cta { opacity: 0; pointer-events: none; }
.deck-empty-primary {
  width: 112px; min-height: 32px; padding: 0;
  border-radius: 6px; border: 1px solid rgba(255,30,56,0.42);
  background: rgba(255,30,56,0.12); color: #fff;
  font-family: var(--font-main); font-size: 10px; font-weight: 900;
  letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 18px rgba(255,30,56,0.12);
}
.deck-empty-primary:hover { border-color: var(--accent-red); color: var(--accent-red); }
.deck-empty-secondary {
  width: 112px; min-height: 32px; padding: 0;
  border-radius: 6px; border: 1px solid #242424;
  background: rgba(10,10,10,0.78); color: #777;
  font-family: var(--font-main); font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
}
.deck-empty-secondary:hover { color: #ddd; border-color: #444; }

/* 加载按钮 */
.deck-load-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px;
}
.load-btn {
  width: 100%; padding: 8px; background: linear-gradient(#1a1a1a, #0a0a0a);
  border: 1px solid #2c2c2c; border-radius: 6px; color: rgba(255,255,255,0.74);
  font-size: 11px; font-weight: 850; cursor: pointer; text-align: center;
  letter-spacing: 0.04em; transition: all 0.2s;
  text-shadow: 0 0 7px rgba(255,255,255,0.16);
}
.load-btn:hover { color: var(--accent-red); border-color: var(--accent-red); }
.load-btn.loaded { color: var(--accent-green); border-color: rgba(0,255,85,0.3); }
.load-btn.is-loading {
  animation: pulse 1s ease infinite;
  pointer-events: none;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* Jog / Pitch / Transport 主控行 */
.deck-control-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 108px;
  align-items: start;
  gap: 8px;
  min-height: 422px;
  overflow: visible;
  position: relative;
}

/* 缓动盘 */
.jog-container {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  margin-top: -42px;
  position: relative;
  z-index: 4;
}
	.jog-wheel {
	  width: min(440px, calc(100% + 46px)); height: auto; aspect-ratio: 1 / 1; flex: 0 0 auto; border-radius: 50%;
	  background:
	    radial-gradient(circle at 50% 50%, #050505 0 58%, #181818 59% 62%, #030303 63% 100%);
	  border: 6px solid #000; position: relative;
	  box-shadow:
	    0 18px 34px rgba(0,0,0,0.92),
	    inset 0 0 0 2px #2b2b2b,
	    inset 0 0 0 14px #050505,
	    inset 0 0 0 28px rgba(255,255,255,0.055),
	    inset 0 0 44px rgba(0,0,0,0.88),
	    0 0 0 1px rgba(255,255,255,0.10);
	  cursor: grab;
	  touch-action: none;
	  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
	}
	.jog-wheel.is-touching {
	  cursor: grabbing;
	  transform: scale(0.992);
	  box-shadow:
	    0 12px 26px rgba(0,0,0,0.96),
	    inset 0 0 0 2px #242424,
	    inset 0 0 0 14px #050505,
	    inset 0 0 0 28px rgba(255,255,255,0.055),
	    inset 0 0 46px rgba(0,0,0,0.92),
	    0 0 18px rgba(0,240,255,0.12);
	}
	.jog-wheel.is-scratching {
	  border-color: rgba(0,240,255,0.32);
	  box-shadow:
	    0 14px 30px rgba(0,0,0,0.96),
	    inset 0 0 0 2px rgba(0,240,255,0.18),
	    inset 0 0 0 14px #050505,
	    inset 0 0 0 28px rgba(0,240,255,0.045),
	    inset 0 0 48px rgba(0,0,0,0.92),
	    0 0 22px rgba(0,240,255,0.18);
	}
	.jog-ring-depth {
	  background:
	    radial-gradient(circle at 50% 50%, transparent 0 26%, #101010 27% 56%, #1c1c1c 57% 60%, #050505 61% 100%),
	    #050505;
  border-width: 6px;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.92),
    inset 0 0 0 2px #303030,
    inset 0 0 0 16px #050505,
    inset 0 0 0 34px rgba(255,255,255,0.058),
    inset 0 0 48px rgba(0,0,0,0.86),
    0 0 0 1px rgba(255,255,255,0.14);
}
.jog-ring-depth::before {
  content: ''; position: absolute; inset: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 0 26px rgba(0,0,0,0.2),
    inset 0 0 24px rgba(0,0,0,0.82);
  pointer-events: none; z-index: 1;
}
.jog-ring-depth::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 28%, rgba(0,0,0,0.26) 65%);
  mix-blend-mode: screen; opacity: 0.42; pointer-events: none; z-index: 3;
}
	.jog-disc {
	  position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px;
	  border-radius: 50%;
	  background:
	    radial-gradient(circle at 50% 50%, transparent 0 25%, rgba(255,255,255,0.07) 25.6% 26.2%, transparent 26.8% 55%, rgba(255,255,255,0.055) 55.5% 56.2%, transparent 56.8%),
	    radial-gradient(circle at 44% 34%, rgba(255,255,255,0.10), transparent 22%),
	    radial-gradient(circle at 50% 50%, #151515 0 26%, #0d0d0d 27% 56%, #050505 57% 100%);
	  transform: rotate(var(--jog-disc-rotation, 0deg));
	  box-shadow: inset 0 0 28px #000, inset 0 0 70px rgba(0,0,0,0.72); transition: none;
	}
	.jog-disc::before {
	  content: ''; position: absolute; inset: 29%; border-radius: 50%;
	  border: 1px solid rgba(255,255,255,0.07);
	  background:
	    radial-gradient(circle at 50% 50%, #070707 0 5%, transparent 6%),
	    radial-gradient(circle at 50% 50%, rgba(255,30,56,0.92) 0 54%, rgba(92,0,14,0.9) 55% 100%);
	  box-shadow:
	    inset 0 0 18px rgba(255,255,255,0.055),
	    inset 0 0 0 10px rgba(0,0,0,0.12),
	    0 0 0 18px rgba(0,0,0,0.18);
	  pointer-events: none;
	}
.jog-disc::after {
  content: none;
}
/* 唱片中心 — 显示专辑封面 */
.jog-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 108px; height: 108px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #060606 0 5%, transparent 6%),
    radial-gradient(circle at 48% 38%, rgba(255,255,255,0.16), transparent 22%),
    radial-gradient(circle at 50% 50%, #e6002d 0 58%, #6d0010 59% 100%);
  border: 3px solid #130005; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.7), 0 0 0 10px rgba(0,0,0,0.18);
  pointer-events: none; overflow: hidden;
}
.jog-art {
  width: 100%; height: 100%; border-radius: 50%; background-size: cover;
  background-position: center;
  background-color: transparent;
  overflow: hidden;
  position: relative;
}
.jog-art.has-cover {
  width: 62%; height: 62%;
  background-color: #0c0c0c;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.10),
    0 0 0 7px rgba(0,0,0,0.22),
    0 8px 18px rgba(0,0,0,0.38);
}
.jog-art-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.jog-art-cover.is-hidden {
  display: none;
}
.jog-art:not(.has-cover) {
  background:
    radial-gradient(circle at 50% 50%, #060606 0 5%, transparent 6%),
    radial-gradient(circle at 42% 30%, rgba(255,255,255,0.18), transparent 24%),
    radial-gradient(circle at 50% 50%, #e6002d 0 58%, #740010 59% 100%);
}
/* 播放时封面跟着唱片转 */
.deck.is-playing .jog-art { animation: spin 3s linear infinite; }
.jog-art:not(.has-cover)::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 10px rgba(0,0,0,0.7);
}
.deck.is-playing .jog-disc { animation: spin 2.5s linear infinite; }

/* SYNC / KEY LOCK / SCRATCH pitch 控制 */
.pitch-top-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 124px;
  max-width: none;
  position: absolute;
  top: -104px;
  left: -40px;
}
.btn-sync {
  width: 100%; min-height: 38px; padding: 0 8px; background: linear-gradient(#1d1d1d, #080808);
  border: 1px solid #303030; border-radius: 5px; color: rgba(255,255,255,0.76);
  font-size: 8.8px; font-weight: 900; cursor: pointer; font-family: var(--font-main);
  letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: clip;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  text-shadow: 0 0 7px rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 5px 9px rgba(0,0,0,0.45);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-sync:active { transform: translateY(1px); }
	.btn-sync.active { color: var(--sync-blue-hi); border-color: rgba(42,94,255,0.82);
	  text-shadow: 0 0 6px rgba(127,168,255,0.8); background: rgba(10,35,145,0.52); box-shadow: 0 0 12px rgba(42,94,255,0.30), inset 0 0 10px rgba(18,60,190,0.28); }
	.btn-sync.master { color: var(--accent-orange); border-color: var(--accent-orange);
	  text-shadow: 0 0 7px var(--accent-orange); background: rgba(255,176,0,0.10); }
	.btn-scratch.active { color: var(--accent-blue); border-color: var(--accent-blue);
	  text-shadow: 0 0 6px var(--accent-blue); background: rgba(0,240,255,0.08); box-shadow: 0 0 12px rgba(0,240,255,0.18); }
.btn-keylock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  width: 104px;
  padding: 0 8px;
  border-color: #222;
  color: rgba(255,255,255,0.78);
  background: linear-gradient(#151515, #070707);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-shadow: none;
  box-shadow: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(calc(-50% - 20px));
}
.btn-keylock.active {
  color: #ddd;
  border-color: #333;
  background: linear-gradient(#1a1a1a, #080808);
  text-shadow: none;
  box-shadow: none;
}
.keylock-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7d7d7;
  box-shadow: 0 0 5px rgba(255,255,255,0.34), inset 0 0 0 1px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.btn-keylock.active .keylock-led {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(255,30,56,0.75), 0 0 0 1px rgba(255,30,56,0.22);
}

/* Pitch 推子刻度线 */
.pitch-tick {
  position: absolute; left: -22px; width: 54px; height: 1px;
  background: rgba(255,255,255,0.86); pointer-events: none;
  box-shadow: 0 0 6px rgba(255,255,255,0.28);
}
.pitch-tick.is-upper { top: 25%; }
.pitch-tick.is-lower { top: 75%; }
.pitch-tick::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 1px;
  background: rgba(255,255,255,0.28);
}

/* 速度推子 */
.pitch-container {
  width: 116px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  align-self: stretch;
  margin-top: 0;
  transform: translate(22px, 0);
  position: relative;
  z-index: 7;
}
.pitch-label { margin-top: -42px; font-size: 8px; color: rgba(255,255,255,0.72); font-weight: 900; letter-spacing: 0.12em; }
.pitch-track-wrap {
  width: 8px; height: 336px; background: #000; border-radius: 5px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,1); position: relative;
}
.pitch-rail {
  width: 10px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 10px, rgba(255,255,255,0.5) 10px 11px, transparent 11px 20px),
    linear-gradient(90deg, #020202, #151515 46%, #000 54%, #070707);
  border: 1px solid #242424;
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,1),
    0 0 0 5px rgba(0,0,0,0.24),
    0 0 0 6px rgba(255,255,255,0.025);
}
.pitch-zero { position: absolute; top: 50%; left: -18px; width: 48px; height: 2px; background: rgba(255,157,0,0.92); box-shadow: 0 0 8px rgba(255,157,0,0.35); }
.pitch-cap {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: var(--pitch-cap-top, calc(50% - 9px));
  width: 54px; height: 18px; background: linear-gradient(#464646, #1b1b1b);
  border-radius: 3px; cursor: grab;
  box-shadow: 0 8px 16px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.3);
  touch-action: none;
  will-change: top, transform;
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.16s ease;
}
.pitch-cap.is-dragging { cursor: grabbing; transform: translateX(-50%) scale(1.055) skewY(var(--fader-tilt, 0deg)); box-shadow: 0 12px 18px rgba(0,0,0,0.95), 0 0 16px rgba(255,255,255,0.08); }
.pitch-cap::before { content: ''; display: block; width: calc(100% - 8px); height: 2px; background: #fff; margin: 8px auto 0; box-shadow: 0 0 4px rgba(255,255,255,0.55); }
.pitch-value { font-size: 10px; font-family: var(--font-mono); color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.22); }

/* Hot CUE 按钮 */
.hotcue-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 12px 8px;
  background: #050505; border-radius: 7px; border: 1px solid #1a1a1a;
}
.performance-strip {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 7px 7px;
  background: #040404;
  border: 1px solid #171717;
  border-radius: 8px;
  position: relative;
}
.performance-strip::before {
  content: 'Hot Cue';
  display: block;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: none;
  text-align: center;
  text-shadow: 0 0 6px rgba(255,255,255,0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.68), rgba(255,255,255,0.68)) left 50% / calc(50% - 34px) 1px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.68), rgba(255,255,255,0.68)) right 50% / calc(50% - 34px) 1px no-repeat;
}
.performance-strip .hotcue-row,
.performance-strip .loop-section {
  margin-bottom: 0;
}
.hotcue-btn {
  width: 92%; min-width: 0; height: 30px; justify-self: center; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--hc-color) 78%, #242424);
  font-size: 12px; font-weight: 900; font-family: var(--font-mono);
  cursor: pointer; transition: all 0.15s;
  background:
    linear-gradient(180deg, #1b1b1b 0%, #101010 48%, #050505 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--hc-color) 12%, transparent), transparent 52%, color-mix(in srgb, var(--hc-color) 8%, transparent));
  color: var(--hc-color);
  position: relative; overflow: hidden;
  text-shadow: 0 0 8px color-mix(in srgb, var(--hc-color) 78%, transparent), 0 1px 1px rgba(0,0,0,0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -8px 12px rgba(0,0,0,0.76),
    inset 0 0 9px color-mix(in srgb, var(--hc-color) 12%, transparent),
    0 4px 8px rgba(0,0,0,0.62),
    0 0 12px color-mix(in srgb, var(--hc-color) 20%, transparent);
}
.hotcue-btn::before {
  content: none;
}
.hotcue-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--hc-color) 86%, rgba(255,255,255,0.18));
  box-shadow: 0 0 10px color-mix(in srgb, var(--hc-color) 38%, transparent), inset 0 0 6px color-mix(in srgb, var(--hc-color) 18%, transparent);
  pointer-events: none;
}
.hotcue-btn.set { border-color: var(--hc-color); color: var(--hc-color); text-shadow: 0 0 13px var(--hc-color), 0 0 3px rgba(255,255,255,0.72), 0 1px 1px rgba(0,0,0,0.9); }
.hotcue-btn[data-slot="0"] { --hc-color: #00E5FF; }
.hotcue-btn[data-slot="1"] { --hc-color: #FF2D55; }
.hotcue-btn[data-slot="2"] { --hc-color: #FFB000; }
.hotcue-btn[data-slot="3"] { --hc-color: #00FF55; }
.hotcue-btn.set[data-slot="0"] { color: #00E5FF; }
.hotcue-btn.set[data-slot="1"] { color: #FF2D55; }
.hotcue-btn.set[data-slot="2"] { color: #FFB000; }
.hotcue-btn.set[data-slot="3"] { color: #00FF55; }
.hotcue-btn:hover { border-color: #444; }

/* Loop 区 */
.loop-section {
  display: grid;
  grid-template-columns: 36px 22px 36px 22px 36px minmax(12px, 1fr);
  grid-template-areas:
    "in line1 out line2 exit ."
    "beat4 beatlink beat8 . . .";
  align-items: center;
  justify-content: start;
  gap: 6px 4px;
  padding: 6px 7px;
  background: #050505;
  border-radius: 5px; border: 1px solid #1a1a1a;
  min-height: 64px;
}
.loop-section::before,
.loop-section::after {
  content: '';
  height: 2px;
  width: 82%;
  justify-self: center;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 0 7px rgba(255,255,255,0.32);
}
.loop-section::before { grid-area: line1; }
.loop-section::after { grid-area: line2; }
.btn-sm {
  flex: 1; background: linear-gradient(#1e1e1e, #111); color: var(--text-muted);
  border: 1px solid #000; border-radius: 4px; font-size: 8px; font-weight: 800;
  padding: 4px 0; cursor: pointer; font-family: var(--font-main);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-sm:active { transform: translateY(2px); }
.btn-sm.active { color: var(--accent-orange); text-shadow: 0 0 5px var(--accent-orange); border-bottom: 2px solid var(--accent-orange); }
.loop-in-btn,
.loop-out-btn {
  justify-self: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--accent-orange);
  border-color: rgba(255,157,0,0.72);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(145deg, #1c1510, #080604);
  text-shadow: 0 0 7px rgba(255,157,0,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1px rgba(255,157,0,0.15), 0 0 10px rgba(255,157,0,0.14);
}
.loop-exit-btn {
  justify-self: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  border-color: rgba(255,255,255,0.54);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-orange) 0 4px, transparent 4.5px),
    linear-gradient(145deg, #171717, #050505);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -9px 16px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.14), 0 0 9px rgba(255,255,255,0.06), 0 5px 10px rgba(0,0,0,0.55);
}
.loop-exit-btn.loop-ended {
  border-color: rgba(255,30,56,0.92);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-red) 0 4px, transparent 4.5px),
    linear-gradient(145deg, #211014, #050303);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -9px 16px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,30,56,0.36), 0 0 13px rgba(255,30,56,0.28), 0 5px 10px rgba(0,0,0,0.55);
}
.loop-in-btn { grid-area: in; }
.loop-out-btn { grid-area: out; }
.loop-exit-btn { grid-area: exit; }
.loop-utility-btn { min-width: 0; }
.loop-beat-btn {
  min-width: 0;
  justify-self: center;
  width: 30px;
  min-height: 30px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-orange);
  border-radius: 50%;
  border: 1px solid rgba(255,157,0,0.52);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(145deg, #1c1510, #050505);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -9px 16px rgba(0,0,0,0.72),
    0 0 0 1px rgba(255,157,0,0.14),
    0 0 10px rgba(255,157,0,0.14),
    0 5px 10px rgba(0,0,0,0.55);
  text-shadow: 0 0 7px rgba(255,157,0,0.62), 0 1px 1px rgba(0,0,0,0.85);
}
.loop-beat-btn[data-beats="4"] { grid-area: beat4; }
.loop-beat-btn[data-beats="4"]::after {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  width: 20px;
  height: 0;
  transform: translateY(-50%);
  border-top: 2px dashed rgba(255,255,255,0.68);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.20));
  pointer-events: none;
}
.loop-beat-btn[data-beats="8"] { grid-area: beat8; }

/* 传输按钮 */
.transport {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: end;
  justify-self: start;
  gap: 9px;
  margin-left: 4px;
  margin-top: 208px;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.btn-hw {
  flex: 0 0 auto; width: 88px; height: 88px;
  background: transparent;
  border: 0; border-radius: 50%; color: var(--accent-orange);
  font-size: 13px; font-weight: 900; cursor: pointer; position: relative;
  font-family: var(--font-main); overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: none;
  isolation: isolate;
}
.btn-hw .btn-label {
  position: relative;
  z-index: 2;
}
.btn-hw::before {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  border: 2px solid rgba(255,157,0,0.78);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(145deg, #1c1510, #070504);
  box-shadow: inset 0 0 0 1px rgba(255,157,0,0.12), inset 0 -8px 14px rgba(0,0,0,0.55), 0 0 12px rgba(255,157,0,0.24);
  pointer-events: none;
}
.cue-btn { color: var(--accent-orange); }
.play-btn { color: var(--accent-green); text-shadow: 0 0 7px rgba(0,255,85,0.42), 0 1px 1px rgba(0,0,0,0.8); }
.cue-btn::before { border-color: var(--cdj-ring-orange); box-shadow: inset 0 0 0 1px rgba(255,157,0,0.18), 0 0 12px rgba(255,157,0,0.28); }
.play-btn::before { border-color: var(--accent-green); box-shadow: inset 0 0 0 1px rgba(0,255,85,0.16), inset 0 -8px 14px rgba(0,0,0,0.55), 0 0 14px rgba(0,255,85,0.28); }
.btn-hw::after {
  content: none;
}
.btn-hw .led {
  position: absolute; top: 8px; left: 50%; width: 7px; height: 7px;
  transform: translateX(-50%);
  border-radius: 50%; background: #111;
  z-index: 4;
}
.btn-hw { text-shadow: 0 0 6px rgba(255,157,0,0.36), 0 1px 1px rgba(0,0,0,0.8); }
.btn-hw:active { transform: translateY(3px); box-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.btn-hw.playing { color: var(--accent-green); }
.btn-hw.playing .led { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.deck.is-playing .btn-hw.play-btn .led { animation: pulse-led 1s infinite; }
.btn-hw.cue-btn .led { background: var(--accent-orange); box-shadow: 0 0 6px var(--accent-orange); }
.btn-hw.cue-btn .led { display: none; }

@media (max-height: 820px) and (min-width: 861px) {
  .jog-container { margin-top: 0; justify-self: stretch; align-self: start; }
}

/* ===== 中央混音区 ===== */
.mixer-center { display: flex; flex-direction: column; gap: 12px; }

/* FX 区 */
.fx-bar {
  background: #050505; border: 1px solid #1a1a1a; border-radius: 6px;
  padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
}
.fx-label { font-size: 10px; font-weight: 800; color: #555; letter-spacing: 1px; }
	.fx-screen {
	  background: #000; border: 1px solid #222; padding: 3px 8px;
	  font-family: var(--font-mono); color: var(--accent-blue); font-size: 11px;
	}

/* 通道列 */
.channels-row { display: grid; grid-template-columns: minmax(92px, 1fr) 58px minmax(92px, 1fr); gap: 10px; align-items: start; flex: 1; padding-bottom: 58px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.ch-header {
  font-weight: 900; color: #555; font-size: 12px; background: #000;
  padding: 2px 14px; border-radius: 10px; border: 1px solid #111;
}

/* 旋钮 */
	.knob-stack { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
	.knob-wrap {
	  display: flex; flex-direction: column; align-items: center;
	  position: relative;
	  padding: 4px 0 0;
	}
	.knob-wrap::before {
	  content: '';
	  position: absolute;
	  top: -3px;
	  left: 50%;
	  width: 52px;
	  height: 52px;
	  transform: translateX(-50%);
	  border-radius: 50%;
	  background:
	    radial-gradient(circle, transparent 0 62%, #060606 63% 70%, transparent 71%),
	    repeating-conic-gradient(from -150deg, rgba(255,255,255,0.86) 0deg 2deg, transparent 2deg 21deg);
	  -webkit-mask: conic-gradient(from -150deg, #000 0deg 300deg, transparent 300deg 360deg);
	  mask: conic-gradient(from -150deg, #000 0deg 300deg, transparent 300deg 360deg);
	  filter: drop-shadow(0 0 4px rgba(255,255,255,0.18));
	  pointer-events: none;
	  opacity: 0.95;
	}
.knob {
  width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(from 180deg, #151515, #3a3a3a, #151515);
  border: 2px solid #000; position: relative; cursor: grab;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8), inset 0 0 0 5px #111, inset 0 2px 2px rgba(255,255,255,0.12);
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.18s ease;
  will-change: transform;
  z-index: 1;
}
.knob::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #111, #3a3a3a, #151515, #111);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.10), inset 0 -8px 12px rgba(0,0,0,0.68);
}
.knob.is-dragging {
  cursor: grabbing;
  transform: scale(1.045) rotate(var(--knob-drag-tilt, 0deg));
  box-shadow: 0 8px 14px rgba(0,0,0,0.9), 0 0 12px rgba(255,255,255,0.10), inset 0 0 0 5px #111, inset 0 2px 2px rgba(255,255,255,0.14);
}
.knob .dot {
  position: absolute; top: 3px; left: 50%; transform: translateX(-50%) rotate(var(--knob-dot-angle, 0deg));
  width: 2px; height: 10px; background: #fff; box-shadow: 0 0 4px #fff;
  transform-origin: 1px var(--knob-dot-origin-y, 17px);
  z-index: 1;
}
	.knob-lbl { font-size: 9px; font-weight: 700; color: var(--text-muted); margin-top: 4px; }
.knob-lbl.is-filter { color: var(--accent-blue); }

/* 大滤镜旋钮 */
.filter-wrap { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #222; width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; }
.filter-wrap::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    conic-gradient(from -132deg,
      rgba(0,240,255,0.04) 0deg 20deg,
      rgba(0,240,255,0.72) 26deg,
      rgba(94,234,212,1) 54deg,
      rgba(0,136,255,1) 78deg,
      rgba(94,234,212,0.68) 104deg,
      rgba(0,240,255,0.08) 126deg 222deg,
      rgba(0,136,255,0.66) 230deg,
      rgba(0,240,255,1) 258deg,
      rgba(94,234,212,1) 284deg,
      rgba(0,240,255,0.08) 304deg,
      transparent 310deg 360deg);
  -webkit-mask:
    radial-gradient(circle, transparent 0 57%, #000 58% 74%, transparent 75%),
    conic-gradient(from -132deg, #000 0 128deg, transparent 128deg 218deg, #000 218deg 312deg, transparent 312deg 360deg);
  mask:
    radial-gradient(circle, transparent 0 57%, #000 58% 74%, transparent 75%),
    conic-gradient(from -132deg, #000 0 128deg, transparent 128deg 218deg, #000 218deg 312deg, transparent 312deg 360deg);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: drop-shadow(0 0 10px rgba(0,240,255,0.58)) drop-shadow(0 0 18px rgba(94,234,212,0.24));
  pointer-events: none;
  opacity: 0.98;
}
.filter-wrap::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%) rotate(180deg);
  border-radius: 50%;
  background:
    conic-gradient(from -132deg,
      rgba(0,240,255,0.18) 0deg 28deg,
      rgba(0,240,255,0.38) 38deg,
      rgba(94,234,212,0.72) 78deg,
      rgba(0,240,255,0.20) 116deg,
      rgba(0,240,255,0.04) 138deg 222deg,
      rgba(0,240,255,0.36) 236deg,
      rgba(94,234,212,0.76) 272deg,
      rgba(0,240,255,0.18) 304deg,
      transparent 326deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 61%, #000 62% 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 0 61%, #000 62% 66%, transparent 67%);
  filter: drop-shadow(0 0 8px rgba(0,240,255,0.42));
  pointer-events: none;
  opacity: 0.68;
}
.knob.big {
  --knob-dot-origin-y: 23px;
  position: relative;
  z-index: 1;
  width: 50px; height: 50px; border-color: #050505;
  background:
    conic-gradient(from 180deg, rgba(0,229,255,0.18), #232323, rgba(94,234,212,0.2), #111);
  box-shadow: 0 7px 14px rgba(0,0,0,0.85), 0 0 16px rgba(0,229,255,0.12), inset 0 0 0 6px #071012, inset 0 2px 3px rgba(255,255,255,0.12);
}
.knob.big::before {
  inset: 6px;
  background: radial-gradient(circle at 42% 30%, rgba(255,255,255,0.16), transparent 30%), conic-gradient(from 180deg, #071012, #252d2f, #081012);
  box-shadow: inset 0 0 12px rgba(0,229,255,0.14), inset 0 -8px 12px rgba(0,0,0,0.7);
}
.knob.big .dot { height: 14px; background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }

/* 通道推子 */
.fader-vu { display: flex; gap: 10px; height: 222px; margin-top: 21px; }
.vu {
  width: 10px; height: 100%; background: #000; border-radius: 3px; padding: 1px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,1); display: flex; flex-direction: column; justify-content: flex-end;
}
.vu-fill {
  height: 0%;
  width: 100%; transition: height 0.08s;
  background: linear-gradient(to top, var(--accent-green) 0%, var(--accent-green) 65%, var(--accent-orange) 66%, var(--accent-orange) 85%, var(--accent-red) 86%);
  mask-image: repeating-linear-gradient(to bottom, #000 0px, #000 2px, transparent 2px, transparent 3.5px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0px, #000 2px, transparent 2px, transparent 3.5px);
}
.fader-col { width: 72px; height: 100%; display: flex; justify-content: center; position: relative; }
.fader-col::before {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 66px;
  transform: translateX(-50%);
  background:
    linear-gradient(to bottom,
      transparent 0 calc(10% - 1px),
      rgba(255,255,255,1) calc(10% - 1px) calc(10% + 1px),
      transparent calc(10% + 1px) calc(25% - 0.5px),
      rgba(255,255,255,0.55) calc(25% - 0.5px) calc(25% + 0.5px),
      transparent calc(25% + 0.5px) calc(50% - 1px),
      rgba(255,255,255,1) calc(50% - 1px) calc(50% + 1px),
      transparent calc(50% + 1px) calc(75% - 0.5px),
      rgba(255,255,255,0.55) calc(75% - 0.5px) calc(75% + 0.5px),
      transparent calc(75% + 0.5px) calc(90% - 1px),
      rgba(255,255,255,1) calc(90% - 1px) calc(90% + 1px),
      transparent calc(90% + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 calc(12.5% - 0.5px), rgba(255,255,255,0.34) calc(12.5% - 0.5px) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px) 25%);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.26));
  pointer-events: none;
}
.fader-rail {
  width: 6px; height: 100%; background: #000; border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,1);
  position: relative;
  background-image: linear-gradient(90deg, #020202, #171717 44%, #000 56%, #050505);
  z-index: 1;
}
/* 中间零线标记 — 表示 unity gain 位置 */
.fader-rail::after {
  content: ''; position: absolute; left: -12px; right: -12px;
  top: 50%; transform: translateY(-50%);
  height: 2px; background: var(--accent-red); opacity: 0.85;
  border-radius: 1px;
}
.fader-knob {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: var(--volume-cap-top, 0px);
  width: 46px; height: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), transparent 28%),
    linear-gradient(90deg, #262626 0%, #3f3f3f 28%, #484848 50%, #3f3f3f 72%, #262626 100%);
  border-radius: 4px;
  border: 1px solid #050505;
  border-top-color: #646464;
  cursor: grab;
  box-shadow: 0 9px 14px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -7px 10px rgba(0,0,0,0.58);
  touch-action: none;
  will-change: top, transform;
  z-index: 3;
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.16s ease;
}
.fader-knob.is-dragging {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.055) skewY(var(--fader-tilt, 0deg));
  box-shadow: 0 12px 18px rgba(0,0,0,0.95), 0 0 16px rgba(255,255,255,0.08);
}
.fader-knob::before { content: ''; display: block; width: calc(100% - 4px); height: 4px; background: #fff; margin: 11px auto 0; border-radius: 1px; opacity: 0.96; box-shadow: 0 0 5px rgba(255,255,255,0.42); }

/* 中央独立通道电平表：参考 DDJ 混音区，位于 CH1/CH2 三频 EQ 之间 */
.master-vu-bridge {
  align-self: stretch;
  display: grid;
  grid-template-columns: 10px 10px;
  grid-template-rows: 1fr;
  justify-content: center;
  column-gap: 10px;
  height: 282px;
  padding: 10px 8px 12px;
  margin-top: 0;
  margin-bottom: -58px;
  border-radius: 8px;
  border: 1px solid #181818;
  position: relative;
  background: linear-gradient(180deg, #060606, #010101);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.02);
  opacity: 0.55;
  transform: translateY(0);
  pointer-events: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.mixer-center.is-metering .master-vu-bridge {
  border-color: rgba(0,255,85,0.28);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.95), 0 0 12px rgba(0,255,85,0.12);
  opacity: 1;
}
.master-vu-bridge .vu {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 100%;
  border-radius: 3px;
  background: #020202;
  padding: 1px;
}
.master-vu-bridge .vu::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 2px;
  opacity: 0;
  background:
    linear-gradient(to top, #26f06b 0 45%, #ffbd38 46% 72%, #ff334f 73% 100%);
  mask-image: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 10px);
  -webkit-mask-image: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 10px);
}
.master-vu-bridge .vu-fill { height: var(--vu-fill-height, 0%); background: transparent; }
.mixer-center.is-metering .master-vu-bridge .vu::before { opacity: 0.2; }
.mixer-center.is-metering .master-vu-bridge .vu-fill {
  background: linear-gradient(to top, var(--accent-green) 0%, var(--accent-green) 65%, var(--accent-orange) 66%, var(--accent-orange) 85%, var(--accent-red) 86%);
}

/* Beat FX 区域增强 */
.fx-bar {
  flex-wrap: wrap; gap: 6px; padding: 10px 12px;
}
	.fx-row { display: flex; align-items: center; gap: 6px; width: 100%; }
.fx-row.is-spaced { justify-content: space-between; }
	.fx-select-wrap { position: relative; flex: 1; min-width: 122px; }
	.fx-screen {
	  cursor: pointer; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
	  min-width: 110px; width: 100%; min-height: 28px; text-align: center;
	  border-radius: 4px;
	}
	.fx-screen:hover { border-color: var(--accent-blue); }
	.fx-screen.fx-off { color: #555; }
	.fx-screen.is-open {
	  border-color: var(--accent-blue);
	  box-shadow: 0 0 14px rgba(0,240,255,0.12);
	}
	.fx-menu {
	  position: absolute;
	  top: calc(100% + 6px);
	  left: 0;
	  right: 0;
	  z-index: 40;
	  display: none;
	  grid-template-columns: repeat(2, minmax(0, 1fr));
	  gap: 4px;
	  padding: 6px;
	  border-radius: 6px;
	  border: 1px solid #242424;
	  background: rgba(3,3,3,0.98);
	  box-shadow: 0 12px 24px rgba(0,0,0,0.82), inset 0 1px 0 rgba(255,255,255,0.04);
	}
	.fx-menu.is-open { display: grid; }
	.fx-menu button {
	  min-height: 28px;
	  border: 1px solid #222;
	  border-radius: 4px;
	  background: linear-gradient(#181818, #070707);
	  color: #777;
	  font-family: var(--font-mono);
	  font-size: 8px;
	  font-weight: 900;
	  cursor: pointer;
	  letter-spacing: 0;
	}
	.fx-menu button:hover,
	.fx-menu button.active {
	  color: var(--accent-blue);
	  border-color: rgba(0,240,255,0.45);
	  text-shadow: 0 0 5px rgba(0,240,255,0.75);
	}
.fx-ch-btns { display: flex; gap: 3px; }
.fx-ch-btn {
  background: linear-gradient(#1a1a1a, #0a0a0a); border: 1px solid #222; border-radius: 3px;
  color: #555; font-size: 8px; font-weight: 800; padding: 2px 6px; cursor: pointer;
  font-family: var(--font-main); transition: all 0.2s; letter-spacing: 0.5px;
}
.fx-ch-btn.active { color: var(--accent-orange); border-color: var(--accent-orange); text-shadow: 0 0 4px var(--accent-orange); }
.fx-beat-btns { display: flex; gap: 3px; }
.fx-beat-btn {
  background: linear-gradient(#1a1a1a, #0a0a0a); border: 1px solid #222; border-radius: 3px;
  color: #555; font-size: 8px; font-weight: 800; padding: 2px 5px; cursor: pointer;
  font-family: var(--font-mono); transition: all 0.2s;
}
.fx-beat-btn.active { color: var(--accent-blue); border-color: var(--accent-blue); text-shadow: 0 0 4px var(--accent-blue); }
	.fx-knob-wrap { display: flex; flex-direction: column; align-items: center; }
.fx-knob-label { font-size: 7px; color: var(--accent-orange); margin-top: 2px; font-weight: 700; font-family: var(--font-mono); }
	.knob.fx-wet-lit {
	  --fx-wet: 0;
	  --knob-dot-angle: -150deg;
	  --knob-dot-origin-y: 12px;
	  width: 28px;
	  height: 28px;
	  --fx-wet-glow: calc(6px + (var(--fx-wet) * 18px));
	  --fx-wet-alpha: calc(0.18 + (var(--fx-wet) * 0.48));
	  --fx-wet-border: calc(0.34 + (var(--fx-wet) * 0.56));
	  box-shadow:
	    0 5px 10px rgba(0,0,0,0.8),
	    inset 0 2px 2px rgba(255,255,255,0.12),
	    0 0 var(--fx-wet-glow, 4px) rgba(255,176,0,var(--fx-wet-alpha,0.18)),
	    0 0 calc(var(--fx-wet-glow, 6px) * 1.6) rgba(255,95,0,calc(var(--fx-wet-alpha,0.18) * 0.36));
	  border-color: rgba(255,176,0,var(--fx-wet-border,0.18));
	}
.knob.fx-wet-lit .dot {
  height: 8px;
}

/* Crossfader */
.xfader-module {
  padding: 12px 16px 7px; margin-top: -86px; overflow: hidden; background: #050505; border-radius: 8px;
  border: 1px solid #1a1a1a; box-shadow: inset 0 8px 16px rgba(0,0,0,0.8);
  transform: translateY(-10px);
  width: calc(100% + 76px);
  margin-left: -38px;
  margin-right: -38px;
}
.xfader-label { font-size: 9px; color: #444; text-align: center; margin-bottom: 8px; font-weight: 700; letter-spacing: 2px; }
.xfader-track-wrap { width: 100%; height: 38px; display: flex; align-items: center; position: relative; }
.xfader-track-wrap::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 32px;
  transform: translateY(-50%);
  background:
    linear-gradient(to right,
      transparent 0 calc(10% - 1px),
      rgba(255,255,255,1) calc(10% - 1px) calc(10% + 1px),
      transparent calc(10% + 1px) calc(25% - 0.5px),
      rgba(255,255,255,0.58) calc(25% - 0.5px) calc(25% + 0.5px),
      transparent calc(25% + 0.5px) calc(50% - 1px),
      rgba(255,255,255,1) calc(50% - 1px) calc(50% + 1px),
      transparent calc(50% + 1px) calc(75% - 0.5px),
      rgba(255,255,255,0.58) calc(75% - 0.5px) calc(75% + 0.5px),
      transparent calc(75% + 0.5px) calc(90% - 1px),
      rgba(255,255,255,1) calc(90% - 1px) calc(90% + 1px),
      transparent calc(90% + 1px)),
    repeating-linear-gradient(to right, transparent 0 calc(12.5% - 0.5px), rgba(255,255,255,0.36) calc(12.5% - 0.5px) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px) 25%);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.24));
  pointer-events: none;
}
.xfader-rail {
  width: 100%; height: 8px; background: #000; border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,1);
  background-image: linear-gradient(180deg, #050505, #000);
  position: relative;
  z-index: 1;
}
.xfader-knob {
  position: absolute; top: 1px; width: 34px; height: 36px;
  left: var(--xfader-left, calc(50% - 17px));
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), transparent 30%),
    linear-gradient(90deg, #262626 0%, #3f3f3f 28%, #484848 50%, #3f3f3f 72%, #262626 100%);
  border-radius: 4px;
  border: 1px solid #050505;
  border-top-color: #666;
  cursor: grab;
  box-shadow: 0 7px 13px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -7px 10px rgba(0,0,0,0.58);
  touch-action: none;
  will-change: left, transform;
  z-index: 3;
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.16s ease;
}
.xfader-knob.is-dragging {
  cursor: grabbing;
  transform: translateY(-1px) scale(1.06) skewX(var(--xfader-skew, 0deg));
  box-shadow: 0 10px 18px rgba(0,0,0,0.95), 0 0 16px rgba(255,255,255,0.08);
}
.xfader-knob::before {
  content: '';
  display: block;
  width: 5px;
  height: calc(100% - 8px);
  margin: 4px auto 0;
  border-radius: 2px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 6px rgba(255,255,255,0.54);
}
/* 曲库弹窗 */
.library-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); z-index: 200;
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.library-modal[aria-hidden="true"] {
  display: none;
}
.library-content {
  background: #0a0a0a; border: 1px solid #222; border-radius: 12px;
  width: 90%; max-width: 500px; max-height: 70vh; overflow: hidden;
}
.library-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid #1a1a1a;
  font-weight: 800; font-size: 13px; color: #888;
}
.library-header button {
  background: none; border: none; color: #666; font-size: 18px; cursor: pointer;
  transition: color 0.2s;
}
.library-header button:hover { color: #fff; }
.library-tools {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid #111;
  background: #070707;
}
.library-search {
  flex: 1; min-width: 0; height: 34px;
  background: #050505; border: 1px solid #1c1c1c; border-radius: 6px;
  color: #ddd; font-size: 12px; font-family: var(--font-main);
  padding: 0 10px; outline: none;
}
.library-search::placeholder { color: #444; }
.library-search:focus { border-color: #333; color: #fff; }
.library-result-count {
  min-width: 72px; text-align: right;
  color: #555; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}
.library-list { overflow-y: auto; max-height: 60vh; }
.library-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #111; cursor: pointer;
  transition: background 0.2s;
}
.library-item:hover { background: #151515; }
.library-item .song-info { flex: 1; }
.library-item .song-title { font-size: 13px; font-weight: 600; color: #ddd; }
.library-item .song-meta { font-size: 10px; color: #666; margin-top: 2px; }
.library-item .song-bpm {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--accent-red); min-width: 60px; text-align: right;
}
.library-empty {
  padding: 40px 16px; text-align: center; color: #444; font-size: 12px;
}
.library-empty-action {
  display: inline-block; margin-top: 14px; padding: 8px 12px;
  color: #ddd; text-decoration: none; font-size: 11px; font-weight: 800;
  border: 1px solid #2a2a2a; border-radius: 6px;
  background: linear-gradient(#181818, #0a0a0a);
}
.library-empty-action:hover { color: #fff; border-color: #444; }
.library-loading {
  padding: 40px 16px; text-align: center; color: #555; font-size: 12px;
}

/* Jog Wheel 拖拽高亮 */
.jog-wheel.drag-over {
  border-color: var(--accent-red) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9), inset 0 0 0 2px #1a1a1a, 0 0 20px rgba(255,30,56,0.3) !important;
}

@media (max-width: 860px) {
  .mixer-hardware {
    grid-template-columns: 1fr;
    max-width: 560px;
    width: min(100%, 560px);
    margin: 10px auto;
    gap: 8px;
    padding: 6px;
  }
  .mixer-immersive-scroll {
    padding: 72px 10px 32px;
  }
  .module { padding: 14px; border-radius: 14px; }
  .cdj-status-strip { top: 8px; right: 12px; height: 15px; }
  .deck-content { gap: 10px; }
  .screen { padding: 9px; }
  .cdj-display { min-height: 174px; grid-template-rows: auto auto 46px auto 18px; gap: 5px; }
  .track-title { max-width: min(58vw, 280px); }
  .deck-empty-cta { left: 10px; right: 10px; top: 70px; grid-template-columns: 108px 108px; justify-content: space-between; }
  .deck-empty-primary,
  .deck-empty-secondary { width: 108px; min-height: 32px; }
  .deck:not(.has-track) .load-btn { display: none; }
  .deck.has-track .load-btn { display: block; padding: 7px; font-size: 10px; }
  .deck-load-actions { grid-template-columns: 1fr; gap: 6px; }
  .deck-control-grid {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 102px;
    align-items: stretch;
    gap: 8px;
    min-height: 328px;
  }
  .jog-container { margin-top: -42px; }
  .jog-wheel { width: min(68vw, 320px); height: min(68vw, 320px); }
  .jog-center { width: 84px; height: 84px; }
  .pitch-container { width: 112px; gap: 5px; margin-top: 0; transform: translate(10px, 0); }
  .pitch-top-controls { width: 122px; gap: 6px; top: -94px; left: -38px; }
  .pitch-label { margin-top: -34px; }
  .pitch-track-wrap { height: 302px; }
  .btn-sync { min-height: 36px; padding: 0 7px; font-size: 8.2px; }
  .performance-strip { grid-template-columns: 1fr; }
  .hotcue-row { margin-bottom: 0; gap: 16px; padding: 7px 10px; }
  .hotcue-btn { width: 92%; height: 30px; }
  .loop-section {
    grid-template-columns: 34px 18px 34px 18px 34px minmax(12px, 1fr);
    grid-template-areas:
      "in line1 out line2 exit ."
      "beat4 beatlink beat8 . . .";
    gap: 6px;
  }
  .loop-in-btn,
  .loop-out-btn,
  .loop-exit-btn { width: 30px; min-height: 30px; }
  .loop-beat-btn { grid-column: auto; min-height: 28px; width: 28px; }
  .loop-beat-btn[data-beats="4"]::after { left: calc(100% + 5px); width: 18px; }
  .btn-sm { min-height: 30px; }
  .transport { gap: 9px; margin-left: 4px; margin-top: 178px; }
  .btn-hw { width: 72px; height: 72px; font-size: 12px; }
  .mixer-center { gap: 10px; }
  .channels-row { grid-template-columns: minmax(86px, 1fr) 54px minmax(86px, 1fr); gap: 12px; }
  .channel { min-width: 0; }
  .knob-stack { gap: 12px; }
  .fader-vu { height: 190px; margin-top: -2px; }
  .master-vu-bridge { height: 284px; grid-template-columns: 9px 9px; padding-inline: 6px; margin-top: 0; margin-bottom: -42px; }
  .master-vu-bridge .vu { width: 9px; }
  .xfader-module { width: auto; margin-left: 0; margin-right: 0; }
  .library-content { width: calc(100% - 24px); max-height: 82vh; }
  .library-list { max-height: 64vh; }
}
@media (max-width: 560px) {
  .mixer-hardware { margin: 8px auto; }
  .module { padding: 12px; }
  .deck-content { gap: 8px; }
  .cdj-display { min-height: 158px; grid-template-rows: auto auto 42px auto 16px; }
  .waveform-box { height: 34px; }
  .deck-empty-cta { top: 62px; grid-template-columns: 106px 106px; gap: 6px; justify-content: space-between; }
  .deck-empty-primary,
  .deck-empty-secondary { width: 106px; min-height: 30px; }
  .deck:not(.has-track) .deck-load-actions { display: none; }
  .deck-control-grid {
    grid-template-columns: 76px minmax(0, 1fr) 78px;
    gap: 6px;
    min-height: 314px;
  }
  .jog-container { margin-top: -10px; justify-self: center; align-self: start; }
  .jog-wheel { width: min(56vw, 250px); height: min(56vw, 250px); }
  .jog-center { width: 80px; height: 80px; }
  .pitch-container { width: 86px; gap: 4px; transform: translate(0, 0); }
  .pitch-top-controls { width: 104px; gap: 5px; top: -84px; left: -30px; }
  .pitch-label { margin-top: -24px; }
  .pitch-track-wrap { height: 232px; }
  .pitch-cap { width: 46px; height: 16px; }
  .pitch-cap::before { margin-top: 7px; }
  .pitch-value { margin-bottom: 14px; }
  .btn-keylock { width: 88px; min-height: 32px; transform: translateX(-50%); }
  .transport { align-self: end; gap: 7px; margin-left: 4px; margin-top: 0; }
  .btn-hw { width: 68px; height: 68px; font-size: 11px; }
  .performance-strip { padding: 5px; gap: 6px; }
  .hotcue-row { gap: 14px; padding: 6px 8px; }
  .hotcue-btn { height: 29px; }
  .loop-section {
    grid-template-columns: 32px 16px 32px 16px 32px minmax(10px, 1fr);
    gap: 5px 4px;
    min-height: 58px;
    padding: 5px;
  }
  .loop-in-btn,
  .loop-out-btn,
  .loop-exit-btn { width: 30px; min-height: 30px; }
  .loop-beat-btn { width: 28px; min-height: 28px; }
  .loop-beat-btn[data-beats="4"]::after { left: calc(100% + 5px); width: 18px; }
  .mixer-center { gap: 8px; }
  .channels-row { grid-template-columns: minmax(82px, 1fr) 50px minmax(82px, 1fr); gap: 10px; }
  .knob-stack { gap: 10px; }
  .fader-vu { height: 182px; margin-top: -4px; }
  .master-vu-bridge { height: 270px; margin-bottom: -38px; }
  .xfader-module { padding: 9px 10px 4px; margin-top: -68px; }
}
/* 手机端进一步优化 */
@media (max-width: 480px) {
  .mixer-hardware { max-width: 100%; padding: 4px; gap: 8px; border-radius: 14px; }
  .module { border-radius: 12px; padding: 10px; }
  .jog-wheel { width: min(66vw, 268px); height: min(66vw, 268px); }
  .jog-center { width: 72px; height: 72px; }
  .top-nav { padding: 10px 0; gap: 10px; font-size: 11px; }
  .top-nav a { font-size: 11px; }
  .top-nav .nav-logo { width: 22px; height: 22px; border-radius: 50%; }
  .nav-action-btn { min-width: 32px; min-height: 32px; padding: 0 8px; }
  .nav-back-btn { margin-left: 10px; margin-right: -6px; min-width: 28px; min-height: 28px; width: 28px; height: 28px; padding: 0; }
  .mixer-immersive-scroll { margin-top: 0; padding-top: 72px; }
  .deck-empty-primary,
  .deck-empty-secondary { width: 102px; min-height: 30px; padding: 0; font-size: 9px; }
  .deck-empty-cta { grid-template-columns: 102px 102px; gap: 6px; justify-content: space-between; }
  .cdj-display { min-height: 168px; }
  .track-info { padding-right: 90px; }
  .track-stat-row { grid-template-columns: 55px 55px minmax(36px, 1fr); gap: 7px; font-size: 9px; }
  .screen-playback-row { gap: 7px; font-size: 9px; }
  .deck-control-grid {
    grid-template-columns: 72px minmax(0, 1fr) 76px;
    gap: 6px;
    min-height: 306px;
  }
  .jog-container { margin-top: -6px; justify-self: center; align-self: start; }
  .jog-wheel { width: min(50vw, 220px); height: min(50vw, 220px); }
  .pitch-container { width: 82px; gap: 4px; margin-top: 0; transform: translate(0, 0); }
  .pitch-top-controls { width: 98px; gap: 4px; top: -82px; left: -28px; }
  .pitch-label { margin-top: -24px; }
  .pitch-track-wrap { height: 224px; }
  .pitch-cap { width: 44px; height: 16px; }
  .pitch-cap::before { margin-top: 7px; }
  .pitch-value { margin-bottom: 16px; }
  .btn-sync { min-height: 34px; padding: 0 5px; font-size: 7.8px; }
  .btn-keylock { width: 84px; min-height: 32px; padding: 0 5px; font-size: 7.2px; transform: translateX(-50%); }
  .performance-strip { padding: 5px; }
  .hotcue-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; gap: 12px; }
  .hotcue-btn { width: 92%; height: 28px; font-size: 10px; }
  .loop-section { padding: 5px; grid-template-columns: 30px 14px 30px 14px 30px minmax(10px, 1fr); }
  .loop-in-btn,
  .loop-out-btn,
  .loop-exit-btn { width: 30px; min-height: 30px; }
  .loop-beat-btn { width: 28px; min-height: 28px; }
  .transport { align-self: end; margin-left: 4px; margin-top: 0; gap: 7px; }
  .btn-hw { width: 68px; height: 68px; font-size: 11px; }
  .fx-row { gap: 4px; }
  .fx-screen { min-width: 92px; font-size: 10px; padding: 3px 6px; }
  .fx-beat-btn { padding: 3px 4px; }
  .xfader-module { padding: 10px 12px 5px; margin-top: -74px; overflow: hidden; }
  /* 防止 iOS 输入框自动放大 */
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck.is-playing .jog-art,
  .deck.is-playing .jog-disc,
  .deck.is-playing .btn-hw.play-btn .led {
    animation: none;
  }
}

#mixerToast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
}
.mixer-toast-message {
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-main);
  margin-bottom: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: auto;
  max-width: 400px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.mixer-toast-message.is-error {
  background: rgba(255,30,56,0.9);
}
.mixer-toast-message.is-success {
  background: rgba(0,200,80,0.9);
}
.mixer-toast-message.is-info {
  background: rgba(40,40,40,0.95);
}
.mixer-toast-message.is-leaving {
  opacity: 0;
}

/* ===== SET 面板 — 与碟机等宽、边缘对齐 ===== */
.set-panel {
  /* 对齐 Deck A / Deck B 模块外边界，而不是主控台黑色外壳边界 */
  width: min(1464px, calc(100% - 16px)); margin: 0 auto 32px;
  padding: 16px 20px 12px;
  background: rgba(10,10,10,0.92); border: 1px solid #222;
  border-radius: 14px; backdrop-filter: blur(12px);
  box-sizing: border-box;
}
.set-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 10px; border-bottom: 1px solid #222; margin-bottom: 0;
}
.set-header-left {
  display: flex; align-items: baseline; gap: 10px;
}
.set-title {
  /* 和导航栏 ← SONIC EXTRACT 保持一致的大小感 */
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  letter-spacing: 3px; color: var(--accent-red); text-transform: uppercase;
}
.set-count { font-size: 12px; color: #555; font-family: var(--font-mono); }
.set-actions { display: flex; gap: 8px; }
.set-btn {
  background: linear-gradient(#1a1a1a, #0d0d0d); border: 1px solid #333;
  color: #bbb; padding: 6px 14px; border-radius: 5px; font-size: 11px;
  font-weight: 700; cursor: pointer; transition: all 0.15s;
  font-family: var(--font-mono); letter-spacing: 1px;
}
.set-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }
.set-btn-rec { color: #bbb; }
.set-btn-rec.recording {
  color: var(--accent-red); border-color: var(--accent-red);
  animation: pulse-led 1.2s infinite;
}
.set-btn-export {
  background: linear-gradient(135deg, rgba(255,30,56,0.08), rgba(255,30,56,0.02));
  border-color: rgba(255,30,56,0.3); color: var(--accent-red);
}
.set-btn-export:hover {
  background: linear-gradient(135deg, rgba(255,30,56,0.15), rgba(255,30,56,0.05));
  border-color: var(--accent-red);
}
.set-btn-danger:hover { border-color: #ff4444; color: #ff4444; }
/* 列标题行 — 可排序 */
.set-col-header {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px;
  border-bottom: 1px solid #1a1a1a; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #777; letter-spacing: 1.5px; text-transform: uppercase;
}
.set-col-header > span { cursor: default; }
.set-col-header > span[data-sort-column] {
  cursor: pointer; transition: color 0.15s;
}
.set-col-header > span[data-sort-column]:hover { color: var(--accent-red); }
.sch-num { width: 32px; text-align: right; flex-shrink: 0; }
.sch-cover { width: 44px; text-align: center; flex-shrink: 0; }
.sch-title { flex: 1; min-width: 0; }
.sch-artist { width: 180px; flex-shrink: 0; }
.sch-bpm { width: 60px; text-align: right; flex-shrink: 0; }
.sch-key { width: 48px; text-align: center; flex-shrink: 0; }
.sch-actions { width: 32px; flex-shrink: 0; }
.sort-arrow { font-size: 10px; color: var(--accent-red); }

/* 歌曲列表容器 */
.set-list { min-height: 48px; }
.set-empty {
  text-align: center; padding: 32px 20px; color: #444;
  font-size: 14px; font-style: italic;
}

/* 单首歌曲行 */
.set-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 6px; cursor: grab; transition: background 0.15s;
  border: 1px solid transparent;
}
.set-item:hover { background: rgba(255,255,255,0.03); border-color: #222; }
.set-item.dragging { opacity: 0.4; }
.set-item .set-num {
  font-family: var(--font-mono); font-size: 14px; color: #888;
  width: 32px; text-align: right; flex-shrink: 0; font-weight: 600;
}
.set-item .set-cover {
  width: 36px; height: 36px; border-radius: 4px; flex-shrink: 0;
  object-fit: cover; background: #111; border: 1px solid #222;
}
.set-item .set-cover.is-hidden { display: none; }
.set-item .set-cover-wrap {
  width: 44px; flex-shrink: 0; display: flex; justify-content: center;
}
.set-item .set-song-title {
  font-size: 14px; color: #f0f0f0; font-weight: 700; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-item .set-song-artist {
  font-size: 13px; color: #999; width: 180px; flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-item .set-song-bpm {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent-red);
  width: 60px; text-align: right; flex-shrink: 0; font-weight: 700;
}
.set-item .set-song-key {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-green);
  width: 48px; text-align: center; flex-shrink: 0; font-weight: 700;
}
.set-item .set-remove {
  color: #444; cursor: pointer; font-size: 18px; flex-shrink: 0;
  width: 32px; text-align: center; transition: color 0.15s;
}
.set-item .set-remove:hover { color: #ff4444; }

/* 响应式适配 */
@media (max-width: 768px) {
  .set-panel { padding: 12px 10px; }
  .set-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .set-title { font-size: 12px; letter-spacing: 2px; }
  .set-btn { padding: 5px 10px; font-size: 10px; }
  .sch-artist, .set-item .set-song-artist { display: none; }
  .sch-cover, .set-item .set-cover-wrap { display: none; }
}

.mixer-file-input {
  display: none;
}
