:root {
  --bg: #0a0a0c;
  --bg-deep: #050507;
  --card: rgba(18, 18, 22, 0.88);
  --card-solid: #141418;
  --glass: rgba(16, 16, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --red: #ff2038;
  --red-soft: rgba(255, 32, 56, 0.18);
  --red-glow: rgba(255, 32, 56, 0.35);
  --crimson: #c41220;
  --amber: #f0a202;
  --purple: #a78bfa;
  --cyan: #3dd6c6;
  --line: rgba(255, 255, 255, 0.08);
  --ok: #22c55e;
  --warn: #eab308;
  --err: #f87171;
  --radius: 10px;
  --radius-lg: 12px;
  --discord-bg: rgba(22, 22, 26, 0.95);
  --discord-sidebar: #1a1a1f;
  --discord-hover: rgba(255, 255, 255, 0.04);
  --discord-active: rgba(255, 32, 56, 0.12);
  --discord-cat: #949ba4;
  --discord-channel: #949ba4;
  --discord-channel-on: #f2f3f5;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  position: relative;
}
body[data-site="dj"] {
  background: #040406;
}

.dc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 48% at 12% -6%, rgba(255, 32, 56, 0.34), transparent 58%),
    radial-gradient(ellipse 48% 42% at 92% 4%, rgba(255, 48, 72, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 108%, rgba(255, 32, 56, 0.14), transparent 60%),
    radial-gradient(ellipse 36% 28% at 78% 62%, rgba(80, 40, 90, 0.12), transparent 70%),
    linear-gradient(168deg, #16161c 0%, #0b0b10 38%, #07070b 68%, #040406 100%);
}
.dc-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 32, 56, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 32, 56, 0.03) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 192px 192px, 192px 192px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 10%, transparent 78%);
  transform: perspective(900px) rotateX(52deg) scale(1.35);
  transform-origin: 50% 0%;
}
.dc-bg-beam {
  position: absolute;
  top: -18%;
  left: 38%;
  width: 42%;
  height: 62%;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 32, 56, 0.16) 48%, transparent 64%);
  transform: rotate(-16deg);
  filter: blur(2px);
  animation: dcBeam 16s ease-in-out infinite alternate;
}
.dc-bg-beam-2 {
  top: 8%;
  left: -8%;
  width: 48%;
  height: 70%;
  background: linear-gradient(102deg, transparent 36%, rgba(255, 64, 96, 0.08) 50%, transparent 66%);
  transform: rotate(18deg);
  filter: blur(6px);
  animation: dcBeam2 22s ease-in-out infinite alternate;
}
.dc-bg-floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 48%;
  background:
    radial-gradient(ellipse 55% 40% at 50% 30%, rgba(255, 32, 56, 0.18), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(255, 32, 56, 0.05) 40%, rgba(0, 0, 0, 0.35) 100%);
  filter: blur(1px);
}
.dc-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, transparent 32%, rgba(0, 0, 0, 0.45) 78%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.35) 100%);
}
@keyframes dcBeam {
  from { opacity: 0.45; transform: rotate(-16deg) translateX(0); }
  to { opacity: 0.95; transform: rotate(-13deg) translateX(3%); }
}
@keyframes dcBeam2 {
  from { opacity: 0.35; transform: rotate(18deg) translateX(0); }
  to { opacity: 0.7; transform: rotate(21deg) translateX(-3%); }
}

.dc-shell,
.dc-shell-dj {
  position: relative;
  z-index: 1;
}
.dc-shell {
  width: min(720px, calc(100% - 28px));
  margin: 28px auto 48px;
}
.dc-shell-dj {
  width: min(1440px, calc(100% - 28px));
  margin: 18px auto 40px;
}

.dc-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  letter-spacing: -.03em;
}
.dc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 4px 2px;
}
.dc-top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc-brand {
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--display);
}
.dc-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .1em;
}
.dc-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px var(--red-glow);
}
.dc-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}
.dc-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost {
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,0.03);
}
.ghost.sm { padding: 6px 10px; font-size: 12px; }
.primary {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
  box-shadow: 0 6px 18px var(--red-soft);
  transition: filter .15s ease, box-shadow .15s ease;
}
.primary:hover { filter: brightness(1.06); box-shadow: 0 8px 22px var(--red-glow); }

.dc-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.dc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.dc-card-titles { flex: 1 1 160px; min-width: 0; }
.dc-section-lead { margin: 4px 0 0; line-height: 1.4; }
.dc-card h1 { margin: 0 0 6px; font-size: 1.55rem; letter-spacing: -.02em; }
.dc-card h2 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -.01em; }
.dc-card-head h2 { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.err { color: var(--err); font-weight: 600; min-height: 1.2em; }
.hidden { display: none !important; }
label { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.9);
  color: var(--text);
  font-family: inherit;
}
textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.4;
}
select { cursor: pointer; appearance: auto; }
.dc-tts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 10px;
}
.dc-tts-voice-lbl {
  flex: 0 1 140px;
  margin-top: 0;
}
.dc-tts-voice-lbl select {
  display: block;
  width: 100%;
  margin-top: 4px;
}
.dc-tts-row .dc-transport { flex: 1 1 auto; }
.sm { font-size: 12px; }
.dc-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
}

/* ——— Console shell ——— */
.dc-console {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(255, 32, 56, 0.04), transparent 28%),
    rgba(14, 14, 18, 0.78);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 32, 56, 0.06),
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(255, 32, 56, 0.06);
  padding: 16px 16px 20px;
  overflow: hidden;
  animation: dcConsoleIn 0.45s ease both;
}
@keyframes dcConsoleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.dc-console-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dc-console-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.dc-console-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,32,56,0.35), 0 8px 20px var(--red-soft);
}
.dc-console-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.dc-console-brand h1 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -.02em;
}
.dc-console-meta { text-align: right; max-width: 100%; }
.dc-bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* ——— Hero player ——— */
.dc-nowplaying {
  display: grid;
  grid-template-columns: auto minmax(140px, 1.1fr) minmax(160px, 1.4fr) auto;
  gap: 16px 18px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 32, 56, 0.22);
  background:
    linear-gradient(120deg, rgba(255,32,56,0.1), transparent 45%),
    rgba(12, 12, 16, 0.85);
  box-shadow: 0 0 0 1px rgba(255,32,56,0.06), 0 12px 36px rgba(255,32,56,0.08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dc-nowplaying.is-live {
  border-color: rgba(255, 32, 56, 0.45);
  box-shadow: 0 0 28px var(--red-soft), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dc-hero-art-wrap {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.dc-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-hero-meta { min-width: 0; }
.dc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid rgba(255,32,56,0.45);
  color: #ff6b7a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dc-nowplaying.is-live .dc-live-badge { animation: dcLivePulse 1.8s ease-in-out infinite; }
@keyframes dcLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,32,56,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255,32,56,0); }
}
.dc-nowplaying-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-hero-status { margin: 4px 0 0; }
.dc-hero-wave-block { min-width: 0; }
.dc-vu {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-bottom: 8px;
}
.dc-vu span {
  flex: 1;
  min-width: 3px;
  max-width: 8px;
  height: 30%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff5a6a, var(--red));
  opacity: 0.35;
  transform-origin: bottom;
}
.dc-nowplaying.is-live .dc-vu span {
  opacity: 1;
  animation: dcVu 0.85s ease-in-out infinite alternate;
}
.dc-vu span:nth-child(2) { animation-delay: .08s; height: 40%; }
.dc-vu span:nth-child(3) { animation-delay: .16s; height: 70%; }
.dc-vu span:nth-child(4) { animation-delay: .04s; height: 50%; }
.dc-vu span:nth-child(5) { animation-delay: .2s; height: 85%; }
.dc-vu span:nth-child(6) { animation-delay: .12s; height: 45%; }
.dc-vu span:nth-child(7) { animation-delay: .24s; height: 60%; }
.dc-vu span:nth-child(8) { animation-delay: .1s; height: 30%; }
.dc-vu span:nth-child(9) { animation-delay: .18s; height: 75%; }
.dc-vu span:nth-child(10) { animation-delay: .06s; height: 55%; }
.dc-vu span:nth-child(11) { animation-delay: .22s; height: 40%; }
.dc-vu span:nth-child(12) { animation-delay: .14s; height: 65%; }
@keyframes dcVu {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}
.dc-hero-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.dc-hero-progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff6b7a);
  box-shadow: 0 0 10px var(--red-glow);
  transition: width .35s ease;
}
.dc-hero-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.dc-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.dc-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}
.dc-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.dc-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.dc-online-pill {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(34,197,94,0.35);
  color: var(--ok);
  background: rgba(34,197,94,0.12);
}
.dc-online-pill.is-off {
  border-color: rgba(248,113,113,0.35);
  color: var(--err);
  background: rgba(248,113,113,0.12);
}
.dc-online-pill.is-unknown {
  border-color: rgba(234,179,8,0.35);
  color: var(--warn);
  background: rgba(234,179,8,0.12);
}

/* ——— 3-column grid ——— */
.dc-console-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 12px;
  align-items: start;
}

.dc-sidebar-rooms,
.dc-sidebar-queue {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(10, 10, 14, 0.72);
  padding: 12px;
  min-width: 0;
  max-height: min(78vh, 920px);
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.dc-sidebar-head { padding: 2px 2px 8px; margin-bottom: 4px; }
.dc-sidebar-head h2,
.dc-sidebar-queue h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.dc-ico-discord { color: #5865f2; width: 16px; height: 16px; }
.dc-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(34,197,94,0.35);
  color: var(--ok);
  background: rgba(34,197,94,0.12);
  white-space: nowrap;
}
.dc-conn-pill.is-off {
  border-color: rgba(248,113,113,0.35);
  color: var(--err);
  background: rgba(248,113,113,0.12);
}
.dc-conn-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dc-channel-pick-lbl {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dc-channel-pick-lbl select {
  margin-top: 4px;
  min-height: 40px;
}
.dc-sidebar-rooms #dcBotVoiceLine {
  margin: 0 0 8px;
  font-size: 12px;
}
.dc-discord-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dc-discord-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.dc-open-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
}

.dc-dcat { margin-bottom: 4px; }
.dc-dcat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--discord-cat);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.dc-dcat-head:hover { color: var(--discord-channel-on); }
.dc-dcat-chevron {
  display: inline-block;
  transition: transform .15s ease;
  font-size: 10px;
}
.dc-dcat.is-collapsed .dc-dcat-chevron { transform: rotate(-90deg); }
.dc-dcat.is-collapsed .dc-dcat-body { display: none; }

.dc-dch { margin: 2px 0; border-radius: 8px; }
.dc-dch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--discord-channel);
  min-height: 36px;
}
.dc-dch-row:hover { background: var(--discord-hover); color: var(--discord-channel-on); }
.dc-dch.is-active > .dc-dch-row,
.dc-dch.is-occupied > .dc-dch-row {
  background: var(--discord-active);
  color: var(--discord-channel-on);
}
.dc-dch.is-bot > .dc-dch-row {
  box-shadow: inset 2px 0 0 var(--red);
}
.dc-dch-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .85;
}
.dc-dch-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}
.dc-dch-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .12s ease;
}
.dc-dch-row:hover .dc-dch-actions,
.dc-dch.is-active .dc-dch-actions,
.dc-dch.is-bot .dc-dch-actions { opacity: 1; }
.dc-dch-actions .ghost,
.dc-dch-actions .primary {
  margin-top: 0;
  padding: 4px 8px;
  min-height: 28px;
  font-size: 11px;
  border-radius: 8px;
}
.dc-dch-actions .primary { box-shadow: none; }

.dc-dmembers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 6px 28px;
}
.dc-dmember {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
  min-height: 36px;
}
.dc-dmember:hover { background: var(--discord-hover); }
.dc-dmember-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.dc-dmember-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-dmember.is-bot .dc-dmember-name { color: var(--muted); }
.dc-dmember.is-dj .dc-dmember-name { color: #f5c542; }
.dc-dmember-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.dc-dmember-badges {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.dc-dbadge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,0.35);
}
.dc-dbadge.live {
  color: #f5c542;
  border-color: rgba(245,197,66,0.4);
  background: rgba(245,197,66,0.12);
}
.dc-dbadge.mute,
.dc-dbadge.deaf { color: #ed4245; }
.dc-dbadge.dj {
  color: #f5c542;
  border-color: rgba(245,197,66,0.45);
}

/* ——— Deck / faders ——— */
.dc-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dc-fader-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (min-width: 900px) {
  .dc-fader-bank {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, auto);
  }
  .dc-fader-bass { grid-column: 1 / 3; }
}
.dc-fader {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.dc-fader-name {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
}
.dc-fader-master .dc-fader-name { color: var(--amber); }
.dc-fader-music .dc-fader-name { color: var(--red); }
.dc-fader-sfx .dc-fader-name { color: var(--purple); }
.dc-fader-bass .dc-fader-name { color: #c084fc; }
.dc-fader input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--red);
  height: 28px;
}
.dc-fader-master input[type="range"] { accent-color: var(--amber); }
.dc-fader-music input[type="range"] { accent-color: var(--red); }
.dc-fader-sfx input[type="range"] { accent-color: var(--purple); }
.dc-fader-bass input[type="range"] { accent-color: #c084fc; }
.dc-fader-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.dc-fader-master .dc-fader-val { color: var(--amber); }
.dc-fader-music .dc-fader-val { color: #ff6b7a; }
.dc-fader-sfx .dc-fader-val { color: #c4b5fd; }
.dc-fader-bass .dc-fader-val { color: #e9d5ff; }
.dc-bass-boost-btn {
  margin-top: 2px;
  align-self: start;
  border-color: rgba(192, 132, 252, 0.35) !important;
  color: #e9d5ff !important;
}
.dc-bass-boost-btn.is-on {
  background: rgba(192, 132, 252, 0.22);
  border-color: rgba(192, 132, 252, 0.65) !important;
}

.dc-master-transport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  min-width: 148px;
}
.dc-transport-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #f4f6fb;
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(8,8,12,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.28);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
}
.dc-transport-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}
.dc-transport-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}
.dc-transport-pause {
  border-color: rgba(255, 32, 56, 0.45);
  color: #ff6b7a;
}
.dc-transport-pause:hover {
  border-color: rgba(255, 32, 56, 0.75);
  background: linear-gradient(165deg, rgba(255,32,56,0.22), rgba(8,8,12,0.9));
  box-shadow: 0 0 18px var(--red-soft);
}
.dc-transport-start {
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}
.dc-transport-start:hover {
  border-color: rgba(34, 197, 94, 0.75);
  background: linear-gradient(165deg, rgba(34,197,94,0.2), rgba(8,8,12,0.9));
}
.dc-transport-btn:active,
.dc-transport-btn.is-pressed { transform: scale(0.96); }
.dc-transport-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.dc-transport-btn.is-active-pause {
  background: linear-gradient(165deg, rgba(255,32,56,0.28), rgba(8,8,12,0.92));
  box-shadow: 0 0 0 1px rgba(255,32,56,0.35), 0 0 16px var(--red-soft);
}
.dc-transport-btn.is-active-play {
  background: linear-gradient(165deg, rgba(34,197,94,0.28), rgba(8,8,12,0.92));
  box-shadow: 0 0 0 1px rgba(34,197,94,0.35);
}
.dc-fader-refresh {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.dc-dj-section {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 12, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.dc-tile-section h3,
.dc-dj-section h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.dc-collapse {
  padding: 0;
  overflow: hidden;
}
.dc-collapse > *:not(summary) {
  padding-left: 14px;
  padding-right: 14px;
}
.dc-collapse > *:not(summary):last-child { padding-bottom: 14px; }
.dc-collapse-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}
.dc-collapse-sum::-webkit-details-marker { display: none; }
.dc-collapse-sum::after {
  content: "▾";
  color: var(--muted);
  font-size: 12px;
  transition: transform .15s ease;
}
.dc-collapse:not([open]) .dc-collapse-sum::after { transform: rotate(-90deg); }
.dc-collapse-sum strong {
  font-family: var(--display);
  font-size: 0.98rem;
  margin-right: 8px;
}
.dc-sfx-head { margin-bottom: 10px; align-items: flex-start; }
.dc-sfx-head h3 { margin: 0; }
.dc-sfx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.dc-sfx-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dc-sfx-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.16); }
.dc-sfx-tab.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 14px var(--red-soft);
}
.dc-sfx-transport { margin-bottom: 12px; }
.dc-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dc-transport .primary,
.dc-transport .ghost {
  margin-top: 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}
.dc-upload-lbl {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 0;
}

.dc-dj-pads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.dc-pad {
  --pad-color: #ff2038;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 96px;
  aspect-ratio: 1 / 1;
  padding: 12px 10px 10px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--pad-color) 45%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--pad-color) 48%, transparent), #0c0c10 62%),
    #0c0c10;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--pad-color) 28%, rgba(255, 255, 255, 0.05)),
    0 6px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  font-family: inherit;
}
.dc-pad-swatch {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pad-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pad-color) 70%, transparent);
}
.dc-pad-label {
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.dc-pad:hover:not(.missing) { transform: translateY(-1px); filter: brightness(1.08); }
.dc-pad:active:not(.missing),
.dc-pad.is-pressed:not(.missing) {
  transform: scale(0.96);
  filter: brightness(1.12);
}
.dc-pad:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dc-pad.missing { opacity: .42; cursor: not-allowed; filter: grayscale(0.35); }
.dc-pad.is-playing {
  border-color: rgba(255,32,56,0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255,32,56,0.35),
    0 0 18px var(--red-soft);
}
.dc-pad-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.dc-pad-del:hover { color: #fecaca; }
.dc-media-pads { margin-top: 8px; }
.dc-media-pad {
  background-size: cover;
  background-position: center;
  min-height: 110px;
}
div.dc-media-pad { font: inherit; }
.dc-media-pad .dc-pad-label,
.dc-sfx-pad .dc-pad-label {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.92), 0 0 12px rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.dc-sfx-pad {
  overflow: hidden;
  background-color: #0c0e14;
  background-image:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--pad-color) 78%, transparent) 0%,
      color-mix(in srgb, var(--pad-color) 38%, #0c0e14) 42%,
      #0a0c12 100%
    );
  background-size: cover;
  background-position: center;
  border-color: color-mix(in srgb, var(--pad-color) 65%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--pad-color) 45%, transparent),
    inset 0 -28px 36px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 22px color-mix(in srgb, var(--pad-color) 22%, transparent);
}
.dc-sfx-pad:hover:not(.missing) {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--pad-color) 55%, transparent),
    inset 0 -28px 36px rgba(0, 0, 0, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.32),
    0 0 28px color-mix(in srgb, var(--pad-color) 34%, transparent);
}
.dc-sfx-pad.is-playing {
  border-color: color-mix(in srgb, var(--pad-color) 85%, #fff);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--pad-color) 50%, transparent),
    0 0 26px color-mix(in srgb, var(--pad-color) 45%, transparent);
}
.dc-media-pad.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 32, 56, 0.55),
    0 0 0 1px rgba(255, 32, 56, 0.25),
    0 10px 22px rgba(255, 32, 56, 0.18);
}
.dc-media-ord {
  position: absolute;
  top: 10px;
  left: 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.dc-media-move {
  position: absolute;
  top: 6px;
  right: 38px;
  display: flex;
  gap: 2px;
  z-index: 1;
}
.dc-pad-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.dc-pad-icon:hover { color: var(--text); }

/* ——— Queue sidebar ——— */
.dc-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  min-height: 80px;
}
.dc-queue-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dc-queue-note { margin: 6px 0 0; }
.dc-track {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(0,0,0,0.2);
  min-height: 52px;
}
.dc-track.is-current {
  border-color: rgba(255,32,56,0.35);
  background: rgba(255,32,56,0.08);
}
.dc-track-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.dc-track.is-current .dc-track-num { color: var(--red); }
.dc-track-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1a1f;
}
.dc-track-body { min-width: 0; }
.dc-track-title {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-track-sub {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-track-dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.dc-queue-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.dc-queue-empty {
  padding: 16px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.dc-recent-block { margin-top: 16px; }
.dc-recent { display: flex; flex-direction: column; gap: 6px; }

/* YouTube mini */
.yt-mini { margin-top: 4px; }
.yt-mini-stage {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0c10;
}
.yt-mini-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  background: #000;
}
.yt-mini-frame,
.yt-mini-frame iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.yt-mini-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 32, 56, 0.15), transparent 50%),
    #0a0a10;
}
.yt-mini-placeholder[hidden] { display: none !important; }
.yt-mini-meta { padding: 10px 12px 12px; }
.yt-mini-title { font-weight: 650; font-size: 14px; line-height: 1.35; }
.yt-mini-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 200px;
  overflow: auto;
}
.yt-mini-result-row,
.yt-mini-fav {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.yt-mini-result,
.yt-mini-fav-main {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c10;
  color: var(--text);
  padding: 6px 8px;
  cursor: pointer;
  font-family: inherit;
}
.yt-mini-result:hover,
.yt-mini-fav-main:hover { border-color: rgba(255, 32, 56, 0.35); }
.yt-mini-result img,
.yt-mini-fav-main img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #000;
}
.yt-mini-result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
}
.yt-mini-result-text strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yt-mini-favs-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.yt-mini-favs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.yt-mini-favs-title { margin: 0; font-size: 13px; font-weight: 650; }
.yt-mini-favs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
}
.yt-mini-favs-empty { margin: 4px 0 0; }
.yt-mini-fav-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.yt-mini-star {
  min-width: 36px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}
.yt-mini-star.is-fav { color: #f5c542; }
.yt-mini-advanced {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.yt-mini-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .dc-console-grid {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .dc-sidebar-queue {
    grid-column: 1 / -1;
    max-height: none;
  }
  .dc-nowplaying {
    grid-template-columns: auto 1fr;
  }
  .dc-hero-wave-block,
  .dc-hero-stats { grid-column: 1 / -1; }
  .dc-hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .dc-stat { flex: 1 1 120px; }
}
@media (max-width: 760px) {
  .dc-console-grid { grid-template-columns: 1fr; }
  .dc-sidebar-rooms,
  .dc-sidebar-queue { max-height: none; }
  .dc-nowplaying { grid-template-columns: auto 1fr; gap: 12px; }
  .dc-dch-actions { opacity: 1; }
  .dc-console-meta { text-align: left; }
  .dc-fader-bank { grid-template-columns: 1fr 1fr; }
  .dc-fader-bass { grid-column: 1 / -1; }
  .dc-master-transport { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dc-shell,
  .dc-shell-dj { width: calc(100% - 16px); margin-top: 10px; }
  .dc-console { padding: 12px; border-radius: 12px; }
  .dc-hero-art-wrap { width: 72px; height: 72px; }
  .dc-dj-pads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dc-pad {
    min-height: 92px;
    aspect-ratio: auto;
  }
  .dc-track {
    grid-template-columns: 22px 36px minmax(0, 1fr);
  }
  .dc-track-dur { grid-column: 3; justify-self: start; }
}
