/* AmostraLab DJ — pele do Stage (canvas preto, Outfit, pílula branca,
   azul só na seleção). Deck A azul, deck B coral, sempre com a letra. */

body.page-dj {
  background: #090909;
}
body.page-dj .noise,
body.page-dj .announce,
body.page-dj .top,
body.page-dj .foot,
body.page-dj .help-fab,
body.page-dj .flash {
  display: none !important;
}
body.page-dj .stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  min-height: 100dvh;
}

.dj {
  --bg: #090909;
  --panel: #121212;
  --panel-2: #1a1a1a;
  --well: #0a0a0a;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --ink: #ffffff;
  --muted: #999999;
  --dim: #8a8a8a;
  --a: #0099ff;
  --b: #ff5577;
  --ok: #22c55e;
  --warn: #f5a524;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}
.dj button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
.dj button:focus-visible,
.dj [role="slider"]:focus-visible,
.dj input:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}
.dj-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.dj-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dj-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Topo */
.dj-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #1a1a1a;
  background: #0d0d0d;
}
.dj-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.dj-brand em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.dj-proto {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 165, 36, 0.14);
  color: #f7b84f;
}
.dj-top-fill {
  flex: 1 1 20px;
}
.dj-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cccccc;
  cursor: pointer;
}
.dj-toggle input {
  accent-color: var(--a);
  width: 16px;
  height: 16px;
}
.dj-master-bpm {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.dj-master-bpm span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.dj-master-bpm strong {
  font-size: 18px;
}
.dj-master-vu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dj-master-vu .row {
  display: flex;
  gap: 2px;
}
.dj-master-vu i {
  width: 5px;
  height: 8px;
  border-radius: 1px;
  opacity: 0.13;
}
.dj-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 600;
}
.dj-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--b);
}
.dj-rec[aria-pressed="true"] .dj-rec-dot {
  animation: dj-blink 1s steps(2) infinite;
}
@keyframes dj-blink {
  50% {
    opacity: 0.2;
  }
}

/* Formas de onda */
.dj-waves {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 0;
}
.dj-wave {
  display: block;
  width: 100%;
  height: 72px;
  background: var(--well);
  border: 1px solid #161616;
  border-radius: 10px;
  cursor: grab;
}

/* Grelha principal */
.dj-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 20px;
}
@media (max-width: 1100px) {
  .dj-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Deck */
.dj-deck {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dj-deck[data-deck="A"] {
  --deck: var(--a);
  --deck-lo: #0b4f8a;
  --deck-hi: #9fd8ff;
  --deck-soft: rgba(0, 153, 255, 0.14);
}
.dj-deck[data-deck="B"] {
  --deck: var(--b);
  --deck-lo: #8a1f36;
  --deck-hi: #ffc2cf;
  --deck-soft: rgba(255, 85, 119, 0.14);
}
.dj-display {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
}
.dj-letter {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--deck);
  color: #000000;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dj-title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-bpm {
  font-family: "JetBrains Mono", monospace;
  font-size: 26px;
  font-weight: 700;
  text-align: right;
  line-height: 1;
}
.dj-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-badges {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  min-height: 18px;
}
.dj-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}
.dj-badge-master {
  background: #ffffff;
  color: #000000;
}
.dj-badge-sync {
  background: rgba(0, 153, 255, 0.18);
  color: #5cbcff;
}
.dj-meta {
  grid-column: span 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.dj-meta .dj-mono {
  color: var(--ink);
}
.dj-meta-push {
  margin-left: auto;
}
.dj-key {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--panel-2);
  color: #cccccc;
}
.dj-overview {
  display: block;
  width: 100%;
  height: 26px;
  background: var(--well);
  border-radius: 6px;
  cursor: pointer;
}

.dj-mid {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.dj-deck[data-deck="B"] .dj-mid {
  flex-direction: row-reverse;
}

/* Pitch */
.dj-pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  flex: 0 0 auto;
}
.dj-pitch-val {
  font-size: 13px;
  font-weight: 600;
}
.dj-pitch-val.is-off {
  color: #5cbcff;
}
.dj-pitch-body {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 160px;
}
.dj-scale {
  position: relative;
  width: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--dim);
}
.dj-scale span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  line-height: 1;
  white-space: nowrap;
}
.dj-chip {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

/* Sliders verticais (pitch e canal) */
.dj-vslider {
  position: relative;
  width: 12px;
  box-sizing: border-box;
  background: #0b0b0b;
  border: 1px solid #222222;
  border-radius: 6px;
  cursor: ns-resize;
  touch-action: none;
}
.dj-vslider i {
  position: absolute;
  left: -5px;
  width: 4px;
  height: 1px;
  background: #3a3a3a;
}
.dj-vslider-zero {
  position: absolute;
  left: -5px;
  right: -5px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--ok);
}
.dj-vslider-groove {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #000000;
}
.dj-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border-radius: 5px;
  background: linear-gradient(#3a3a3a, #1d1d1d);
  border: 1px solid #4a4a4a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.dj-cap b {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #ffffff;
}
.dj-cap-sm {
  width: 32px;
  height: 20px;
}
.dj-cap-lg {
  width: 34px;
  height: 46px;
  border-radius: 6px;
}
.dj-cap-lg b {
  left: 2px;
  right: 2px;
}
.dj-channel[data-channel="A"] .dj-cap-lg b {
  background: var(--a);
}
.dj-channel[data-channel="B"] .dj-cap-lg b {
  background: var(--b);
}
.dj-cap-ribs {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 6px;
  bottom: 6px;
  background: repeating-linear-gradient(to bottom, #555555 0 1px, transparent 1px 5px);
}

/* Jog */
.dj-jogcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.dj-jog {
  width: 186px;
  height: 186px;
  cursor: grab;
  touch-action: none;
}
.dj-jog:active {
  cursor: grabbing;
}
.dj-jog-prog {
  stroke: var(--deck);
}
.dj-jog-marker {
  stroke: var(--deck);
}
.dj-jog-time {
  fill: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}
.dj-jog-bpm {
  fill: var(--muted);
  font-size: 11px;
}
.dj-transport {
  display: flex;
  gap: 8px;
}
.dj-transport button {
  width: 56px;
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dj-btn-cue {
  border: 2px solid var(--warn);
  background: var(--panel-2);
  color: #f7b84f !important;
}
.dj-btn-play {
  border: 0;
  background: #ffffff;
  color: #000000 !important;
}
.dj-btn-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.dj-btn-play .dj-ico-pause,
.dj-deck.is-playing .dj-btn-play .dj-ico-play {
  display: none;
}
.dj-deck.is-playing .dj-btn-play .dj-ico-pause {
  display: block;
}
.dj-deck.is-playing .dj-btn-play {
  background: var(--deck);
  box-shadow: 0 0 0 4px var(--deck-soft);
}
.dj-btn-sync {
  border: 1px solid var(--line-2);
  background: transparent;
  letter-spacing: 0.4px;
}
.dj-btn-sync[aria-pressed="true"] {
  border-color: var(--a);
  background: rgba(0, 153, 255, 0.14);
}

/* Coluna lateral: loop e efeitos */
.dj-side {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-side .dj-label {
  margin-bottom: 0;
}
.dj-loop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dj-sq {
  width: 38px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-size: 14px;
}
.dj-loop-main {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dj-loop-main svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.dj-loop-main span {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.dj-loop-main[aria-pressed="true"] {
  border-color: var(--ok);
  background: rgba(34, 197, 94, 0.14);
  color: #5fe08f !important;
}
.dj-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dj-ghost {
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.dj-fx {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.dj-fx.is-on {
  border-color: color-mix(in srgb, var(--deck) 40%, transparent);
  background: color-mix(in srgb, var(--deck) 8%, transparent);
}
.dj-fx-power {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dj-fx-power svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.dj-fx.is-on .dj-fx-power {
  border: 0;
  background: var(--deck);
  color: #000000 !important;
}
.dj-fx-name {
  flex: 1;
  font-size: 13px;
}
.dj-beats {
  display: flex;
  gap: 4px;
}
.dj-beats button {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.dj-beats button[aria-pressed="true"] {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000 !important;
}

/* Knobs */
.dj-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.dj-knob {
  width: 52px;
  height: 52px;
  cursor: ns-resize;
  touch-action: none;
  border-radius: 50%;
}
.dj-knob svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dj-knob-sm {
  width: 30px;
  height: 30px;
}
.dj-knob-track {
  stroke: #232323;
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}
.dj-knob-sm .dj-knob-track,
.dj-knob-sm .dj-knob-arc {
  stroke-width: 7;
}
.dj-knob-arc {
  stroke: var(--knob, #0099ff);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}
.dj-knob-body {
  fill: #1b1b1b;
  stroke: #2e2e2e;
}
.dj-knob-cap {
  fill: #222222;
}
.dj-knob-ptr {
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
}
.dj-knob-label {
  font-size: 11px;
  color: var(--muted);
}
button.dj-kill {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--muted) !important;
}
button.dj-kill[aria-pressed="true"] {
  background: rgba(255, 85, 119, 0.18);
  color: #ff8099 !important;
}

/* Stems */
.dj-stems {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dj-stem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 8px;
  min-height: 46px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--stem);
  background: color-mix(in srgb, var(--stem) 12%, transparent);
}
.dj-stem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.dj-stem-top .dj-mono {
  font-size: 10px;
  opacity: 0.8;
}
.dj-stem-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--well);
  overflow: hidden;
}
.dj-stem-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--stem) 55%, transparent), var(--stem));
}
.dj-stem[aria-pressed="false"] {
  border-color: #262626;
  background: #0d0d0d;
  color: var(--dim) !important;
}
.dj-stem[aria-pressed="false"] .dj-stem-bar span {
  width: 0 !important;
}

/* Pads */
.dj-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dj-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--muted) !important;
}
.dj-tabs button[aria-selected="true"] {
  background: #ffffff;
  color: #000000 !important;
}
.dj-pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dj-pad {
  --pad: var(--deck);
  height: 56px;
  border-radius: 12px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--dim) !important;
  transition: transform 0.06s;
}
.dj-pad:active {
  transform: scale(0.97);
}
.dj-pad-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
}
.dj-pad-top .dj-mono {
  opacity: 0.8;
}
.dj-pad-label {
  font-size: 13px;
  font-weight: 600;
}
.dj-pad.is-set {
  border: 1px solid var(--pad);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pad) 20%, transparent), color-mix(in srgb, var(--pad) 7%, transparent));
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 var(--pad);
}
.dj-pad.is-lit {
  border: 1px solid var(--pad);
  background: var(--pad);
  color: #000000 !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--pad) 40%, transparent);
}

.dj-loading {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(9, 9, 9, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  z-index: 3;
}
.dj-loading[hidden] {
  display: none;
}
.dj-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #262626;
  border-top-color: var(--deck);
  animation: dj-spin 0.8s linear infinite;
}
@keyframes dj-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mixer */
.dj-mixer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dj-channels {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dj-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dj-channel .dj-fader-row {
  flex: 1 1 auto;
  min-height: 160px;
  height: auto;
}
.dj-channel[data-channel="A"] {
  --knob: var(--a);
}
.dj-channel[data-channel="B"] {
  --knob: var(--b);
}
.dj-channel-letter {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  color: #000000;
  background: var(--knob);
  margin-bottom: 2px;
}
.dj-fader-row {
  display: flex;
  gap: 8px;
  height: 160px;
  margin-top: 8px;
}
.dj-vslider-fader {
  height: 100%;
}
.dj-vu {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  height: 100%;
}
.dj-vu i {
  width: 8px;
  flex: 1 1 0;
  border-radius: 2px;
  opacity: 0.13;
}
.dj-xfade-wrap {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dj-xfade-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.dj-a {
  color: #5cbcff;
  font-weight: 700;
}
.dj-b {
  color: #ff8099;
  font-weight: 700;
}
.dj-hslider {
  position: relative;
  height: 12px;
  box-sizing: border-box;
  background: #0b0b0b;
  border: 1px solid #222222;
  border-radius: 6px;
  background-image: repeating-linear-gradient(90deg, transparent 0 23px, #2a2a2a 23px 24px);
  cursor: ew-resize;
  touch-action: none;
  margin: 12px 4px;
}
.dj-hslider-center {
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: #444444;
}
.dj-cap-x {
  width: 40px;
  height: 32px;
  border-radius: 6px;
}
.dj-cap-x b {
  left: 50%;
  right: auto;
  top: 3px;
  bottom: 3px;
  width: 2px;
  height: auto;
  margin: 0 0 0 -1px;
}

/* Biblioteca e sampler */
.dj-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 20px;
  flex: 1 1 auto;
}
.dj-folders {
  flex: 1 1 200px;
  max-width: 230px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dj-folders button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
  background: transparent;
  color: #cccccc !important;
}
.dj-folders button span:last-child {
  color: var(--muted);
  font-size: 12px;
}
.dj-folders button[aria-pressed="true"] {
  background: rgba(0, 153, 255, 0.14);
  color: #ffffff !important;
}
.dj-folders-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}
.dj-folders-cta:hover {
  border-color: #555555;
}
.dj-library {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-lib-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dj-search {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--well);
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 0 14px;
  height: 40px;
}
.dj-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
}
.dj-ghost-pill {
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  font-size: 13px;
}
.dj-ghost-pill[aria-pressed="true"] {
  border-color: var(--a);
  background: rgba(0, 153, 255, 0.14);
}
.dj-lib-head,
.dj-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 52px 44px 48px 82px 72px;
  gap: 10px;
  align-items: center;
  padding: 4px 10px;
}
.dj-lib-head {
  font-size: 12px;
  color: var(--muted);
}
.dj-lib-head span:nth-child(3),
.dj-lib-head span:nth-child(5),
.dj-lib-head span:nth-child(7) {
  text-align: right;
}
.dj-lib-head span:nth-child(4),
.dj-lib-head span:nth-child(6) {
  text-align: center;
}
.dj-lib-rows {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
}
.dj-row {
  padding: 7px 10px;
  border-radius: 10px;
}
.dj-row:hover {
  background: #161616;
}
.dj-row.on-A {
  background: rgba(0, 153, 255, 0.1);
}
.dj-row.on-B {
  background: rgba(255, 85, 119, 0.08);
}
.dj-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #333333;
}
.dj-row.on-A .dj-row-dot {
  background: var(--a);
  border-color: var(--a);
}
.dj-row.on-B .dj-row-dot {
  background: var(--b);
  border-color: var(--b);
}
.dj-row-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-row-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-row-bpm {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-align: right;
}
.dj-row-key {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 6px;
  background: var(--panel-2);
  color: #cccccc;
}
.dj-row-len {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.dj-row-stem {
  text-align: center;
  font-size: 11px;
  padding: 3px 0;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--dim);
}
.dj-row-stem.is-ready {
  background: rgba(0, 153, 255, 0.14);
  color: #5cbcff;
}
.dj-row-stem.is-working {
  background: rgba(245, 165, 36, 0.14);
  color: #f7b84f;
}
.dj-row-load {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.dj-row-load button {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  font-weight: 700;
  font-size: 12px;
}
.dj-row-load button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.dj-load-a {
  border: 1px solid var(--a);
  color: #5cbcff !important;
}
.dj-load-b {
  border: 1px solid var(--b);
  color: #ff8099 !important;
}
.dj-lib-empty {
  padding: 28px 16px;
  text-align: center;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
}
.dj-lib-empty a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  text-decoration: none;
}
.dj-sampler {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dj-sampler-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dj-sample {
  height: 74px;
  border-radius: 12px;
  border: 1px solid #262626;
  background: #181818;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
}
.dj-sample svg {
  width: 30px;
  height: 30px;
}
.dj-sample-ring-bg {
  fill: none;
  stroke: #262626;
  stroke-width: 2.5;
}
.dj-sample-ring {
  fill: none;
  stroke: var(--a);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 94.25;
}
.dj-sample.is-playing {
  border-color: var(--a);
  background: rgba(0, 153, 255, 0.12);
}
.dj-hint {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.dj-hint kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: #cccccc;
}

.dj-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.dj-toast[hidden] {
  display: none;
}

/* Créditos, tela cheia */
.dj-credits {
  font-size: 13px;
  color: #cccccc;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.dj-credits:hover {
  border-color: #555555;
}
.dj-credits .dj-mono {
  color: #ffffff;
  font-weight: 600;
}
.dj-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #262626;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dj-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dj-icon-btn .dj-ico-shrink,
.dj-icon-btn[aria-pressed="true"] .dj-ico-expand {
  display: none;
}
.dj-icon-btn[aria-pressed="true"] .dj-ico-shrink {
  display: block;
}
.dj:fullscreen {
  overflow-y: auto;
}
.dj:fullscreen .dj-main {
  flex: 1 1 auto;
}

/* Deck com faixa sem stems */
.dj-stems-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--line-2);
  font-size: 13px;
  color: #cccccc;
}
.dj-stems-cta[hidden] {
  display: none;
}
.dj-deck.is-mix .dj-stems {
  display: none;
}

/* Importação */
.dj-import {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dj-import-url {
  flex: 1 1 320px;
}
.dj-pill-white {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 13px;
  font-weight: 600;
}
.dj-pill-white:disabled {
  opacity: 0.5;
  cursor: progress;
}
.dj-file-btn {
  cursor: pointer;
  color: #ffffff;
}
.dj-import-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dj-import-note strong {
  color: #cccccc;
  font-weight: 600;
}
.dj-playlists {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 10px;
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
}
.dj-playlists:empty {
  display: none;
}
.dj-folders .dj-playlists button {
  min-height: 32px;
  font-size: 13px;
  padding: 0 10px;
}
.dj-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.dj-row-act {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.dj-row-act:disabled {
  opacity: 0.4;
  cursor: progress;
}
.dj-row-stem.is-mix {
  background: rgba(155, 140, 255, 0.14);
  color: #b9adff;
}
.dj-lib-head,
.dj-row {
  grid-template-columns: 8px minmax(0, 1fr) 52px 44px 48px 92px minmax(72px, auto);
}

/* Sampler do usuário */
.dj-sampler-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dj-sampler-head .dj-label {
  margin: 0;
}
.dj-sampler-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--well);
  border: 1px solid var(--line);
}
.dj-sampler-add[hidden],
.dj-field[hidden] {
  display: none;
}
.dj-seg {
  display: flex;
  gap: 4px;
}
.dj-seg button {
  flex: 1;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 600;
}
.dj-seg button[aria-selected="true"] {
  background: #ffffff;
  color: #000000 !important;
}
.dj-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.dj-field input {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  padding: 8px;
  min-width: 0;
}
.dj-field-row {
  display: flex;
  gap: 8px;
}
.dj-hint-tight {
  margin: 0;
  padding: 0;
}
.dj-sampler-grid {
  max-height: 260px;
  overflow-y: auto;
}
.dj-sample.is-user {
  border-color: #3a3550;
  background: #17151f;
}
.dj-sample.is-user .dj-sample-ring {
  stroke: #9b8cff;
}
.dj-sample.is-loading {
  opacity: 0.6;
  cursor: progress;
}
.dj-sample span {
  max-width: 100%;
  max-height: 2.4em;
  padding: 0 2px;
  overflow: hidden;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Knobs de efeito na cor do próprio deck. */
.dj-deck[data-deck="A"] {
  --knob: var(--a);
}
.dj-deck[data-deck="B"] {
  --knob: var(--b);
}
