:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #12171e;
  --panel2: #171f2a;
  --line: #29313c;
  --text: #f2f5f9;
  --muted: #8794a5;
  --cyan: #58e8cc;
  --purple: #a094ff;
  --red: #fb687b;
  --yellow: #f5d17c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 22% -8%, #18313266, transparent 30%),
    radial-gradient(ellipse at 92% -2%, #24203c55, transparent 31%), var(--bg);
  color: var(--text);
  font-family:
    Inter,
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.37;
}
input,
select {
  color: inherit;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #65e8cb66;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
code {
  color: #b3eadc;
  background: #1e3034;
  padding: 2px 5px;
  border-radius: 4px;
}
.overline,
.section-kicker {
  display: block;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--cyan);
}
.section-kicker {
  letter-spacing: 1.25px;
  font-size: 9px;
}
.muted,
.subtext {
  color: var(--muted);
}
.subtext {
  font-size: 11px;
  line-height: 1.6;
}
.tag {
  display: inline-block;
  border: 1px solid #327c72;
  background: #1b403b;
  border-radius: 7px;
  padding: 6px 8px;
  font-weight: 750;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.tag.cyan {
  color: var(--cyan);
}
.button {
  border-radius: 8px;
  padding: 11px 14px;
  background: #222b37;
  border: 1px solid #34404f;
  font-weight: 750;
  letter-spacing: 0.3px;
  transition: 0.14s;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(1.18);
}
.button.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #0c2824;
}
.button.subtle {
  background: #151e29;
  color: #cad6e5;
  border-color: #2a3746;
}
.button.outlined {
  background: transparent;
  border-color: #344454;
  color: #bfcbd7;
}
.button.danger {
  background: #35222d;
  color: #f5abb7;
  border-color: #653344;
}
.button.small {
  padding: 9px 11px;
  font-size: 11px;
}
.button.tiny {
  padding: 7px 9px;
  font-size: 10px;
}
.button.full {
  width: 100%;
}
input:not([type='range']):not([type='checkbox']),
select {
  border: 1px solid #304151;
  background: #0e151e;
  border-radius: 8px;
  min-height: 39px;
  padding: 9px 12px;
  max-width: 100%;
}
input[type='range'] {
  accent-color: var(--cyan);
  cursor: pointer;
  width: 100%;
}
input[type='checkbox'] {
  accent-color: var(--cyan);
}
.auth-screen {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, #233d42 0, #080b10 52%);
  padding: 15px;
}
.auth-card {
  background: #151d26;
  padding: 45px;
  width: min(430px, 100%);
  border: 1px solid #33404e;
  border-radius: 22px;
  box-shadow: 0 35px 90px #0009;
}
.auth-card .brand-mark {
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 22px;
}
.brand-mark span {
  color: var(--purple);
}
.auth-card h1 {
  font-size: 34px;
  letter-spacing: -1.6px;
  margin: 8px 0;
}
.auth-card h1 .color {
  color: var(--cyan);
}
.auth-card h1 b {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  vertical-align: top;
  letter-spacing: 0;
}
.auth-card p {
  color: var(--muted);
  margin: 0 0 26px;
}
.auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 750;
  font-size: 12px;
}
.auth-card label input {
  margin-bottom: 14px;
}
.error-text {
  color: #ff9ea8;
  display: block;
  margin-top: 12px;
  min-height: 16px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid #222a34;
  background: #0d1118e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
}
.logo-signet {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: linear-gradient(140deg, #49e4c5, #748ff9);
  color: #102329;
  font-size: 24px;
  font-weight: 900;
}
.logo-signet span {
  color: #0c4352;
}
.logo strong {
  display: block;
  font-size: 22px;
  letter-spacing: -1.1px;
}
.logo strong span {
  color: var(--cyan);
  font-weight: 400;
}
.logo small {
  display: block;
  color: #9aa7b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo small em {
  font-style: normal;
  color: #729b91;
  font-size: 8px;
  margin-left: 8px;
}
.topcenter {
  display: flex;
  align-items: center;
  color: #bdc8d4;
  gap: 11px;
  font-size: 11px;
  font-weight: 700;
}
.live-dot {
  height: 7px;
  width: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #58e8cc13;
}
.top-sep {
  height: 18px;
  width: 1px;
  background: #35404e;
}
.top-actions,
.head-right,
.stage-toolbar,
.toolbar-right,
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.page {
  padding: 32px;
  max-width: 1820px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 40px;
  letter-spacing: -1.8px;
  margin: 6px 0 4px;
}
.page-head h1 span,
.library-header h2 span {
  color: var(--cyan);
}
.page-head p,
.library-header p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.head-right {
  gap: 10px;
}
.stat-chip {
  background: #151d27;
  border: 1px solid #27323f;
  border-radius: 11px;
  padding: 11px 17px;
  display: flex;
  flex-direction: column;
  min-width: 100px;
}
.stat-chip span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 800;
}
.stat-chip strong {
  font-size: 19px;
  margin-top: 3px;
  font-weight: 800;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}
.stage {
  min-width: 0;
}
.stage-toolbar {
  justify-content: space-between;
  margin-bottom: 13px;
}
.toolbar-left .muted {
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 750;
}
.toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.7px;
  font-weight: 750;
}
.toggle input {
  display: none;
}
.toggle-slider {
  width: 32px;
  height: 18px;
  border-radius: 30px;
  background: #3d4552;
  position: relative;
  transition: 0.15s;
}
.toggle-slider:after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  left: 3px;
  top: 3px;
  transition: 0.2s;
}
.toggle input:checked + .toggle-slider {
  background: #1e9a87;
}
.toggle input:checked + .toggle-slider:after {
  transform: translateX(14px);
}
.decks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.deck {
  background: linear-gradient(160deg, #161e28, #0f151d 65%);
  border: 1px solid #2b3543;
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.deck[data-deck='0'] {
  --deck: #59e5ca;
}
.deck[data-deck='1'] {
  --deck: #a29afa;
}
.deck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.deck-num {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #bbc7d5;
}
.deck-num b {
  font-size: 17px;
  color: var(--deck);
}
.source-label {
  font-size: 9px;
  color: #b9c8d7;
  background: #202b36;
  border: 1px solid #374455;
  border-radius: 20px;
  padding: 5px 9px;
  letter-spacing: 1px;
  font-weight: 800;
}
.deck-art {
  height: 171px;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(140deg, #142527, #252138);
  border: 1px solid #34404e;
}
.deck[data-deck='1'] .deck-art {
  background: linear-gradient(140deg, #211e31, #141e2d);
}
.art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.art-placeholder span {
  font-size: 72px;
  line-height: 1;
  color: var(--deck);
  opacity: 0.75;
}
.art-placeholder small {
  color: #9ca5b5;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 10px;
  font-weight: 800;
}
.yt-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}
.yt-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.track-info {
  height: 73px;
  padding-top: 16px;
}
.track-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  font-size: 16px;
}
.track-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.waveform {
  height: 54px;
  background: repeating-linear-gradient(
    90deg,
    #2f4852 0,
    #2f4852 2px,
    transparent 2px,
    transparent 6px
  );
  position: relative;
  opacity: 0.65;
  border-radius: 3px;
  overflow: hidden;
}
.deck[data-deck='1'] .waveform {
  background: repeating-linear-gradient(
    90deg,
    #3e3a55 0,
    #3e3a55 2px,
    transparent 2px,
    transparent 6px
  );
}
.wave-tag {
  font-size: 9px;
  position: absolute;
  top: 6px;
  left: 8px;
  color: #aecbd1;
  letter-spacing: 1px;
  z-index: 2;
}
.wave-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--deck) 35%, transparent);
  width: 0%;
  transition: width 0.6s linear;
}
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa5b3;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin: 9px 0 12px;
}
.bpm-value {
  color: var(--deck);
  font-weight: 750;
}
.deck-transport {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}
.control {
  height: 37px;
  min-width: 42px;
  background: #202b36;
  border: 1px solid #364653;
  border-radius: 8px;
  font-weight: 800;
}
.control.play {
  background: var(--deck);
  border-color: var(--deck);
  color: #0e1d22;
  min-width: 59px;
}
.control:hover {
  filter: brightness(1.19);
}
.eq-header,
.eq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.eq-header {
  border-top: 1px solid #2b3440;
  padding: 14px 0 15px;
  font-weight: 850;
  letter-spacing: 1.2px;
  font-size: 10px;
}
.eq-indicator {
  font-size: 9px;
  color: #79918f;
}
.eq-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.eq-band {
  min-width: 0;
  text-align: center;
}
.eq-band label {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #cdd6e1;
  font-weight: 750;
}
.eq-band input {
  margin: 12px 0;
}
.eq-band strong {
  display: block;
  color: var(--deck);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.filter-wrap {
  background: #0d141c;
  border-radius: 9px;
  padding: 13px;
  margin: 16px 0 12px;
}
.filter-name {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 900;
  margin-bottom: 9px;
}
.filter-names {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #7e90a1;
  font-weight: 750;
  letter-spacing: 0.6px;
}
.eq-footer span {
  color: #79919b;
  font-size: 10px;
}
.mixer-panel {
  background: linear-gradient(145deg, #17212a, #121821);
  border: 1px solid #30404c;
  border-radius: 16px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 24px;
  padding: 22px;
}
.transition-controls {
  display: grid;
  gap: 15px;
  margin-top: 17px;
}
.transition-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: #9aabbb;
  font-weight: 800;
  letter-spacing: 1px;
}
.transition-controls select {
  font-size: 12px;
  font-weight: 650;
}
.transition-controls label strong {
  color: var(--cyan);
}
.mixer-flags {
  display: flex;
  gap: 11px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mixer-flags label {
  font-size: 10px;
  color: #b6c4d1;
}
.mixer-flags sup {
  color: #e3c47b;
}
.mixer-center {
  background: #0e141d;
  border: 1px solid #293745;
  border-radius: 13px;
  padding: 20px;
}
.crosshead,
.cross-dashes {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crosshead strong {
  font-size: 11px;
  letter-spacing: 1.3px;
}
.crosshead span {
  font-size: 10px;
  color: #b6c6d1;
}
.cross-dashes {
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 850;
  margin-top: 18px;
  color: #8bafaf;
}
.cross-dashes span:last-child {
  color: var(--purple);
}
.crossfader {
  margin: 12px 0 20px;
  height: 8px;
}
.master-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.master-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  color: #a4afbd;
  font-size: 10px;
  font-weight: 800;
}
.master-line b {
  min-width: 33px;
  text-align: right;
}
.modes-panel,
.log-panel {
  display: flex;
  background: #141b24;
  border: 1px solid #293545;
  border-radius: 14px;
  margin-top: 14px;
  padding: 16px 20px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.modes-panel strong {
  display: block;
  font-size: 13px;
  margin: 8px 0;
}
.modes-panel p {
  font-size: 10px;
  color: #8997a7;
  margin: 0;
  max-width: 550px;
  line-height: 1.6;
}
.modes-buttons {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 7px;
}
.modes-buttons button {
  padding: 9px;
  background: #252e3a;
  border: 1px solid #39424e;
  border-radius: 7px;
  font-size: 9px;
}
.log-panel {
  display: block;
}
.log-panel .section-head {
  margin-bottom: 9px;
}
.debug-log {
  font:
    10px/1.6 ui-monospace,
    Consolas,
    monospace;
  height: 85px;
  overflow: auto;
  color: #9cb9b7;
  white-space: pre-wrap;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card {
  background: #141c26;
  border: 1px solid #2b3645;
  border-radius: 15px;
  padding: 19px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head h2 {
  font-size: 20px;
  letter-spacing: -0.65px;
  margin: 5px 0 0;
}
.section-head h2 span {
  background: #344c4d;
  color: var(--cyan);
  font-size: 11px;
  vertical-align: middle;
  padding: 4px 7px;
  border-radius: 7px;
}
.queue-list {
  min-height: 160px;
  max-height: 472px;
  overflow: auto;
  margin-top: 14px;
}
.queue-item {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 3px;
  border-top: 1px solid #2d3744;
  cursor: grab;
}
.queue-item.dragging {
  opacity: 0.4;
}
.queue-item.dragover {
  border-top: 2px solid var(--cyan);
}
.queue-num {
  font-size: 11px;
  color: #8d9dad;
  font-variant-numeric: tabular-nums;
}
.q-art {
  height: 40px;
  width: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #24443f, #2e364b);
  font-size: 15px;
}
.q-item-main {
  min-width: 0;
}
.q-item-main strong,
.q-item-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-item-main strong {
  font-size: 11px;
}
.q-item-main small {
  color: #8192a3;
  font-size: 9px;
  margin-top: 5px;
}
.q-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.q-actions button {
  border: 0;
  background: none;
  padding: 3px 4px;
  color: #acb9cb;
  font-size: 12px;
}
.q-actions button:hover {
  color: var(--cyan);
}
.q-score {
  font-size: 10px;
  color: #a0d8c9;
}
.empty {
  padding: 23px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.queue-footer {
  border-top: 1px solid #32404c;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  color: #8193a2;
  font-size: 10px;
}
.quick-add {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.quick-add input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.quick-add button {
  font-size: 10px;
}
.radio-icon {
  font-size: 24px;
  color: var(--red);
}
.radio-card select {
  width: 100%;
  margin: 15px 0 11px;
}
.radio-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.status-card h2 {
  margin: 7px 0;
  font-size: 17px;
}
.status-card p {
  font-size: 11px;
  color: #acbccd;
  line-height: 1.6;
}
.subtle-note {
  background: #152832;
  border: 1px solid #28414b;
  color: #9dbdbe;
  border-radius: 9px;
  padding: 11px;
  font-size: 10px;
  line-height: 1.6;
}
.library-section {
  margin-top: 26px;
  border-radius: 18px;
  background: #101720;
  border: 1px solid #283545;
  overflow: hidden;
}
.library-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 28px 25px 20px;
}
.library-header h2 {
  font-size: 31px;
  letter-spacing: -1.2px;
  margin: 6px 0;
}
.lib-controls {
  display: flex;
  gap: 8px;
}
.library-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #2b3540;
  padding: 0 22px;
  overflow-x: auto;
}
.lib-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 15px 18px;
  color: #a1afbd;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.lib-tab.active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.lib-tab span {
  background: #25373c;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 5px;
}
.library-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  flex-wrap: wrap;
}
.library-tools #library-search {
  flex: 1;
  min-width: 220px;
}
.library-tools select {
  font-size: 11px;
}
.col-options {
  position: relative;
  border: 1px solid #324252;
  border-radius: 8px;
  padding: 10px;
  background: #18232e;
  font-size: 11px;
  font-weight: 800;
}
.col-options[open] > div {
  position: absolute;
  right: 0;
  top: 41px;
  width: 180px;
  background: #1d2b37;
  border: 1px solid #455566;
  z-index: 25;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 20px 35px #0008;
}
.col-options label {
  display: flex;
  gap: 9px;
  padding: 7px;
}
.library-table-wrap {
  overflow: auto;
  max-height: 640px;
}
.music-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 690px;
}
.music-table th {
  font-size: 9px;
  letter-spacing: 1.1px;
  text-align: left;
  color: #8899a7;
  background: #17212b;
  padding: 13px 12px;
  position: sticky;
  top: 0;
  z-index: 3;
}
.music-table th[data-sort] {
  cursor: pointer;
}
.music-table td {
  border-bottom: 1px solid #26313d;
  padding: 9px 12px;
  font-size: 11px;
}
.music-table tr:hover td {
  background: #1a2833;
}
.music-table .song-cell {
  font-weight: 700;
}
.music-table .muted {
  font-size: 10px;
}
.music-table tr.dragover td {
  border-top: 2px solid var(--cyan);
}
.music-table .lib-id {
  color: #8291a4;
}
.music-table .lib-action {
  display: flex;
  gap: 4px;
}
.music-table .lib-action button {
  background: #25323f;
  border: 1px solid #3a4956;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
}
.music-table .lib-action button:hover {
  color: var(--cyan);
}
.music-table.compact td {
  padding: 5px 10px;
  font-size: 10px;
}
.library-bottom {
  padding: 15px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #93a4b2;
}
.playlist-list-row {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #2b3641;
}
.playlist-list-row strong {
  font-size: 13px;
}
.playlist-list-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.playlist-pill {
  background: #253d3f;
  color: var(--cyan);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 9px;
}
footer {
  padding: 28px 2px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6e7b89;
  font-size: 10px;
}
.footer-logo {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.footer-logo span {
  color: var(--cyan);
}
.footer-logo small {
  font-size: 8px;
  color: var(--muted);
}
.modal {
  width: min(620px, calc(100% - 30px));
  border-radius: 18px;
  background: #16202b;
  color: white;
  border: 1px solid #3d4c5a;
  box-shadow: 0 20px 80px #000b;
  padding: 0;
}
.modal::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #34414d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 {
  margin: 5px 0 0;
}
.modal-body {
  padding: 24px;
}
.modal-body h3 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.modal-body p {
  color: #9aaaba;
  line-height: 1.7;
  font-size: 12px;
}
.modal-body hr {
  border: 0;
  border-top: 1px solid #36414d;
  margin: 25px 0;
}
.modal-form {
  display: grid;
  gap: 10px;
}
.modal-form input,
.modal-form select {
  width: 100%;
}
.station-edit {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  padding: 8px;
  background: #1f303b;
  border-radius: 7px;
}
.station-edit span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 13px 18px;
  background: #1d3f39;
  color: #d8fff2;
  border: 1px solid #3c8e7f;
  border-radius: 9px;
  box-shadow: 0 12px 40px #0009;
  z-index: 110;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .page {
    padding: 22px;
  }
  .mixer-panel {
    grid-template-columns: 1fr;
  }
  .modes-panel {
    flex-wrap: wrap;
  }
}
@media (max-width: 1020px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-card {
    grid-row: span 2;
  }
  .topcenter {
    display: none;
  }
}
@media (max-width: 680px) {
  .topbar {
    padding: 13px;
    height: auto;
    flex-wrap: wrap;
  }
  .top-actions .button {
    padding: 7px;
    font-size: 10px;
  }
  .page {
    padding: 15px;
  }
  .page-head {
    align-items: start;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .head-right {
    display: none;
  }
  .decks {
    grid-template-columns: 1fr;
  }
  .deck-art {
    height: 200px;
  }
  .sidebar {
    display: flex;
  }
  .mixer-panel {
    padding: 14px;
    gap: 12px;
  }
  .library-header {
    padding: 21px;
    display: block;
  }
  .library-header h2 {
    font-size: 27px;
  }
  .lib-controls {
    margin-top: 15px;
  }
  .library-tools {
    padding: 13px;
  }
  .library-tabs {
    padding: 0 8px;
  }
  .lib-tab {
    padding: 12px 11px;
  }
  .modes-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modes-panel {
    display: block;
  }
  .modes-buttons {
    margin-top: 12px;
  }
  footer {
    display: block;
  }
  .library-section {
    margin-top: 15px;
  }
}

.radio-autofallback {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  font-size: 10px;
  color: #a8bac7;
  line-height: 1.5;
}

/* v3.0.1: keep authenticated app open and show actual loading problem */
.app-alert {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 16px 32px 0;
  padding: 18px 22px;
  background: #301f28;
  border: 1px solid #a25e72;
  border-radius: 12px;
  color: #ffe0e4;
}
.app-alert[hidden] {
  display: none !important;
}
.app-alert strong {
  font-size: 15px;
}
.app-alert p {
  margin: 8px 0;
  color: #f4c4ce;
  font-size: 12px;
  line-height: 1.6;
}
.app-alert summary {
  cursor: pointer;
  font-size: 12px;
  opacity: 0.9;
}
.app-alert pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 900px;
  background: #18131b;
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #f3d4df;
}
.app-alert button {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .app-alert {
    margin: 10px 12px;
    flex-direction: column;
  }
}

/* HuberBox 3.1 · hardware-inspired mixer surface + library navigator */
:root {
  --metal-hi: #e1e7ef;
  --metal-low: #677281;
  --chassis: #0c1118;
}
.library-section {
  margin-top: 14px;
  border: 1px solid #364453;
  background: linear-gradient(150deg, #131c27, #0d141e);
  box-shadow: 0 12px 38px #0003;
}
.library-header {
  padding: 19px 20px 16px;
  border-bottom: 1px solid #293a48;
}
.library-header h2 {
  font-size: 26px;
  margin: 5px 0;
}
.library-shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 340px;
}
.library-nav {
  padding: 14px 10px 18px;
  border-right: 1px solid #2c3b4a;
  background: linear-gradient(145deg, #151f2b, #0e1620);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nav-group-caption {
  color: #7e90a0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.6px;
  padding: 10px 9px 6px;
}
.nav-space {
  margin-top: 13px;
  border-top: 1px solid #2a3a49;
  padding-top: 17px;
}
.library-nav .lib-tab,
.playlist-nav-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  width: 100%;
  background: transparent;
  color: #bdcbd8;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}
.library-nav .lib-tab span,
.playlist-nav-item span {
  font-weight: 700;
  color: #8ca1b1;
  background: #202e3b;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
}
.library-nav .lib-tab:hover,
.playlist-nav-item:hover {
  background: #203341;
  color: #f3fcfb;
}
.library-nav .lib-tab.active,
.playlist-nav-item.active {
  background: #173b3b;
  border-color: #317c71;
  color: #83f2d8;
  box-shadow: inset 3px 0 #57e7ca;
}
.nav-sublist {
  margin: 0 0 5px 8px;
  display: grid;
  gap: 2px;
}
.nav-sublist .playlist-nav-item {
  font-size: 10px;
  padding: 8px;
  color: #b2becb;
}
.music-folder-list {
  min-width: 0;
  max-height: 250px;
  overflow-y: auto;
  flex: 0 0 auto;
  width: 100%;
}
.music-folder-row {
  display: flex;
  align-items: stretch;
}
.music-folder-row .music-folder-link {
  width: 100% !important;
  min-width: 0;
  padding: 6px 5px;
}
.music-folder-row .music-folder-name {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-folder-toggle {
  flex: 0 0 19px;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 5px;
}
.music-folder-toggle:hover,
.music-folder-toggle:focus-visible {
  background: #203341;
}
.music-folder-children {
  margin-inline-start: 8px;
  border-inline-start: 1px solid #2a3a49;
  padding-inline-start: 3px;
}
.nav-empty {
  color: #758392;
  font-size: 10px;
  padding: 5px 10px;
  font-style: italic;
}
.library-sidebar-footer {
  color: #6c8b92;
  font-size: 9px;
  line-height: 1.6;
  margin-top: auto;
  padding: 14px 10px 5px;
}
.library-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.library-tools-head {
  padding: 16px 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.library-tools-head strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.4px;
  margin-top: 3px;
}
.library-result-count {
  font-size: 10px;
  color: #92a3b3;
  white-space: nowrap;
}
.library-tools {
  padding: 12px 16px;
  gap: 7px;
}
.library-tools #library-search {
  min-width: 145px;
  width: 35%;
}
.library-tools select {
  max-width: 160px;
  padding: 6px 8px;
  font-size: 10px;
}
.library-table-wrap {
  max-height: 465px;
}
.music-table {
  min-width: 655px;
}
.music-table th {
  padding: 10px 9px;
  font-size: 8px;
}
.music-table td {
  padding: 8px 9px;
  font-size: 10px;
}
.music-table .lib-action button {
  padding: 5px 6px;
  font-size: 9px;
  white-space: nowrap;
}
.library-bottom {
  padding: 12px 15px;
  font-size: 10px;
}
.autoplay-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.5fr);
  gap: 20px;
  margin-top: 14px;
  padding: 19px 21px;
  background: linear-gradient(115deg, #163330, #14212b);
  border: 1px solid #2d615d;
  border-radius: 14px;
  box-shadow: 0 8px 25px #0002;
}
.autoplay-description strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 17px;
}
.autoplay-description p {
  margin: 0;
  color: #9db8b6;
  font-size: 11px;
  line-height: 1.6;
  max-width: 350px;
}
.autoplay-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  align-items: start;
}
.autoplay-settings label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.6px;
  color: #9fb4c0;
}
.autoplay-settings select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  background: #101c25;
}
.autoplay-status {
  grid-column: 1/-1;
  background: #112b2b;
  border: 1px solid #2e4f4b;
  color: #83d9c4;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
}
.autoplay-settings label[hidden] {
  display: none !important;
}
/* Each EQ lane is a vertical fader just like a real mixer. */
.eq-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: linear-gradient(145deg, #0d151e, #171c27);
  border: 1px solid #2b3644;
  border-radius: 12px;
  padding: 12px 8px 11px;
  min-height: 195px;
}
.eq-band.mixer-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.eq-band.mixer-slider label {
  font-size: 10px;
  color: var(--deck);
  font-weight: 900;
  letter-spacing: 1.35px;
}
.eq-band.mixer-slider strong {
  font-size: 10px;
  background: #10171f;
  border: 1px solid #2b3b49;
  border-radius: 5px;
  min-width: 52px;
  padding: 6px 3px;
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}
input[type='range'].dj-fader-input {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 28px !important;
  height: 113px;
  margin: 1px auto;
  border-radius: 3px;
  outline: none;
  background: linear-gradient(
    90deg,
    #3e4a5a 0 13%,
    #0d1119 20% 42%,
    #000 46% 53%,
    #0d1119 58% 80%,
    #3c4655 91%
  );
  border: 1px solid #34404f;
  box-shadow:
    inset 0 3px 9px #000b,
    0 1px 0 #ffffff08;
}
input[type='range'].dj-fader-input::-webkit-slider-runnable-track {
  width: 100%;
  background: transparent;
  border: none;
}
input[type='range'].dj-fader-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid #b0bccc;
  background: linear-gradient(
    0deg,
    #576a7d 0 22%,
    #d9e1e9 24% 32%,
    #687b8e 34% 41%,
    #e5e9eb 44% 55%,
    #687b8e 58% 68%,
    #d3dce7 71% 80%,
    #576a7d 85%
  );
  box-shadow:
    0 3px 6px #000c,
    0 0 0 1px #101621;
  cursor: ns-resize;
}
input[type='range'].dj-fader-input::-moz-range-track {
  width: 8px;
  background: #080d12;
  border: 1px solid #3b4957;
  border-radius: 3px;
}
input[type='range'].dj-fader-input::-moz-range-thumb {
  width: 42px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid #aab5c4;
  background: linear-gradient(#d2d9e1, #667a8b 48%, #e2e8ed 53%, #728291);
  box-shadow: 0 3px 7px #000a;
}
/* Machined horizontal slider with a physical metal fader cap. */
input[type='range'].crossfader,
input[type='range'].filter-range,
input[type='range']#fade-sec,
input[type='range']#master-volume {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  height: 11px;
  cursor: ew-resize;
  background: linear-gradient(#3e4959, #060c12 45%, #060c12 57%, #344252);
  border: 1px solid #44505d;
  box-shadow:
    inset 0 2px 5px #000,
    0 1px 0 #ffffff09;
  max-width: 100%;
}
input[type='range'].crossfader::-webkit-slider-runnable-track,
input[type='range'].filter-range::-webkit-slider-runnable-track,
input[type='range']#fade-sec::-webkit-slider-runnable-track,
input[type='range']#master-volume::-webkit-slider-runnable-track {
  background: transparent;
  height: 10px;
}
input[type='range'].crossfader::-webkit-slider-thumb,
input[type='range'].filter-range::-webkit-slider-thumb,
input[type='range']#fade-sec::-webkit-slider-thumb,
input[type='range']#master-volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  width: 23px;
  border-radius: 4px;
  border: 1px solid #aebac9;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, #36465470 5px 6px, transparent 7px 10px),
    linear-gradient(90deg, #526173, #e2e9ee 19%, #899cad 55%, #e7edf2 75%, #4a5a6c);
  box-shadow:
    0 2px 9px #000b,
    0 0 0 1px #27313e;
  cursor: ew-resize;
}
input[type='range'].crossfader::-moz-range-thumb,
input[type='range'].filter-range::-moz-range-thumb,
input[type='range']#fade-sec::-moz-range-thumb,
input[type='range']#master-volume::-moz-range-thumb {
  height: 34px;
  width: 23px;
  border: 1px solid #adb8c3;
  border-radius: 4px;
  background: linear-gradient(90deg, #526173, #d5e0ea, #65778c);
  box-shadow: 0 2px 8px #000b;
}
.crossfader {
  margin: 18px 0 22px !important;
}
.filter-range {
  margin: 15px 0 17px !important;
}
@media (max-width: 1420px) {
  .autoplay-panel {
    grid-template-columns: 1fr;
  }
  .autoplay-description p {
    max-width: none;
  }
}
@media (max-width: 1180px) {
  .library-shell {
    grid-template-columns: 152px minmax(0, 1fr);
  }
  .library-nav .lib-tab {
    font-size: 10px;
    padding: 9px 7px;
  }
  .autoplay-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .library-shell {
    grid-template-columns: 1fr;
  }
  .library-nav {
    border-right: 0;
    border-bottom: 1px solid #2b3a48;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 9px;
  }
  .library-nav .lib-tab {
    width: auto;
    font-size: 10px;
    padding: 8px;
  }
  .library-nav .nav-group-caption,
  .library-sidebar-footer {
    display: none;
  }
  .nav-sublist {
    display: contents;
  }
  .playlist-nav-item {
    width: auto !important;
  }
  .library-tools-head {
    padding: 15px 13px 0;
  }
  .library-header {
    padding: 16px;
  }
  .library-tools {
    padding: 11px;
  }
  .autoplay-panel {
    padding: 16px;
    gap: 10px;
  }
  .autoplay-settings {
    grid-template-columns: 1fr;
  }
  .autoplay-settings select {
    width: 100%;
  }
  .eq-bands {
    min-height: 176px;
  }
  .dj-fader-input {
    height: 93px !important;
  }
  .library-result-count {
    font-size: 9px;
  }
}

/* HuberBox 3.2 — compact deck controls, mid-deck fader, physical mode keys, full virtual library */
.decks {
  grid-template-columns: minmax(0, 1fr) 148px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.decks > .deck[data-deck='0'] {
  grid-column: 1;
}
.decks > .deck[data-deck='1'] {
  grid-column: 3;
}
.deck {
  padding: 13px 14px;
  border-radius: 13px;
}
.deck-top {
  margin-bottom: 9px;
}
.deck-art {
  height: 128px;
}
.track-info {
  height: 55px;
  padding-top: 11px;
}
.track-title {
  font-size: 13px;
}
.waveform {
  height: 34px;
}
.time-row {
  margin: 5px 0 7px;
}
.deck-transport {
  gap: 5px;
  margin-bottom: 9px;
}
.deck-transport .control {
  height: 32px;
  min-width: 33px;
  font-size: 11px;
}
.deck-transport .control.play {
  min-width: 43px;
}
.eq-header {
  padding: 8px 0 7px;
  font-size: 9px;
}
.eq-bands {
  gap: 6px !important;
  min-height: 0 !important;
}
.eq-band.mixer-slider {
  min-height: 117px !important;
  padding: 6px 4px 4px;
  gap: 2px;
}
.eq-band.mixer-slider label {
  font-size: 9px;
}
.eq-band.mixer-slider strong {
  padding: 3px;
  min-width: 47px;
  font-size: 9px;
}
input[type='range'].dj-fader-input {
  height: 65px !important;
  width: 22px !important;
  margin: 0 auto !important;
}
input[type='range'].dj-fader-input::-webkit-slider-thumb {
  height: 18px;
  width: 36px;
}
.filter-wrap {
  margin: 8px 0 7px;
  padding: 7px 10px;
}
.filter-name {
  font-size: 8px;
  margin-bottom: 3px;
}
.filter-range {
  margin: 7px 0 6px !important;
}
.filter-names {
  font-size: 7px;
}
.eq-footer {
  font-size: 9px;
}
.eq-footer .button {
  padding: 5px 7px;
}
.crossfader-bridge {
  grid-column: 2;
  grid-row: 1;
  background: linear-gradient(160deg, #1b2631, #0b121b 78%);
  border: 1px solid #415163;
  border-radius: 13px;
  padding: 14px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px;
  box-shadow: inset 0 1px 0 #ffffff12;
}
.bridge-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 850;
  color: var(--cyan);
}
.bridge-channels {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  font-size: 15px;
}
.bridge-channels b:first-child {
  color: var(--cyan);
}
.bridge-channels b:last-child {
  color: var(--purple);
}
.bridge-channels span {
  font-size: 13px;
  color: #697f8d;
}
.bridge-slot {
  width: 100%;
  padding: 15px 5px;
  border: 1px solid #263746;
  border-radius: 8px;
  background: linear-gradient(#0b1119, #172130);
}
.bridge-slot input.crossfader {
  width: 100%;
  margin: 4px 0 !important;
  height: 10px;
}
.bridge-value {
  text-align: center;
  font-size: 10px;
  color: #d4e3eb;
  font-weight: 800;
  letter-spacing: 0.1px;
  min-height: 13px;
}
.bridge-caption {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: #7b91a2;
  line-height: 1.7;
}
.mixer-panel {
  padding: 13px 15px;
  grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr);
  gap: 13px;
  margin-top: 10px;
}
.mixer-center {
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.mixer-command-head {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #83b1a8;
  font-weight: 850;
  text-align: center;
}
.master-controls {
  gap: 5px;
}
.master-controls .button.small {
  padding: 7px 9px;
  font-size: 10px;
}
.master-line {
  margin-top: 2px;
}
.transition-controls {
  gap: 8px;
  margin-top: 8px;
}
.transition-controls label {
  gap: 4px;
}
.style-picker-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 900;
  color: #c8d5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.style-picker-label span {
  font-size: 8px;
  color: #738698;
}
.style-button-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.style-button {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 1px solid #384653;
  border-radius: 9px;
  background: linear-gradient(#273342, #16212b);
  box-shadow:
    0 3px 0 #080c11,
    inset 0 1px 0 #ffffff15;
  min-height: 52px;
  padding: 5px 2px;
  transition: 0.12s;
}
.style-button:hover {
  background: linear-gradient(#344454, #1b2c39);
  filter: brightness(1.15);
}
.style-button.is-active {
  color: #102621;
  border-color: #68e9d1;
  background: linear-gradient(135deg, #8df6df, #4ecab8);
  box-shadow:
    0 0 0 2px #3fe9cc1c,
    0 4px 0 #235c56,
    inset 0 1px #e6fff8;
}
.style-icon {
  font-size: 17px;
  line-height: 1;
}
.style-button strong {
  font-size: 9px;
  letter-spacing: 0.2px;
}
.style-button small {
  font-size: 8px;
  opacity: 0.68;
}
.mixer-flags {
  margin-top: 9px;
}
.library-table-wrap {
  height: clamp(410px, 57vh, 800px) !important;
  max-height: none !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.library-expanded .library-table-wrap {
  height: calc(88vh - 240px) !important;
  min-height: 430px;
}
.library-expanded .library-header {
  padding: 12px 18px;
}
.library-expanded .library-header p {
  display: none;
}
.music-table tbody tr:not(.virtual-spacer) {
  height: 44px;
  max-height: 44px;
}
.music-table.compact tbody tr:not(.virtual-spacer) {
  height: 37px;
  max-height: 37px;
}
.music-table td {
  padding: 3px 9px !important;
  line-height: 1.18;
}
.music-table td.lib-action {
  display: table-cell;
  white-space: nowrap;
}
.music-table .lib-action button {
  padding: 4px 6px;
}
.music-table .song-cell {
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-table tr.virtual-spacer:hover td {
  background: transparent;
}
.music-table tr.dragging td {
  opacity: 0.45;
}
.playlist-nav-item.drop-ready {
  outline: 2px dashed var(--cyan);
  outline-offset: -2px;
  background: #174d48;
  color: #e2fff7;
  transform: translateX(1px);
}
.library-bottom {
  padding: 10px 14px;
}
@media (max-width: 1350px) {
  .decks {
    grid-template-columns: minmax(0, 1fr) 125px minmax(0, 1fr);
  }
  .crossfader-bridge {
    padding: 10px 6px;
  }
  .deck-art {
    height: 105px;
  }
  .deck {
    padding: 11px;
  }
  .style-button-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1040px) {
  .decks {
    grid-template-columns: minmax(0, 1fr) 135px minmax(0, 1fr);
  }
  .mixer-panel {
    grid-template-columns: 1fr;
  }
  .deck-art {
    height: 135px;
  }
}
@media (max-width: 680px) {
  .decks {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .decks > .deck[data-deck='0'] {
    grid-column: 1;
    grid-row: 1;
  }
  .decks > .deck[data-deck='1'] {
    grid-column: 2;
    grid-row: 1;
  }
  .deck-art {
    height: 95px;
  }
  .deck {
    padding: 8px;
  }
  .track-info {
    height: 55px;
  }
  .deck-transport {
    gap: 2px;
  }
  .deck-transport .control {
    min-width: 25px;
    height: 30px;
  }
  .deck-transport .control.play {
    min-width: 33px;
  }
  .crossfader-bridge {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 7px 12px;
  }
  .bridge-kicker,
  .bridge-caption {
    display: none;
  }
  .bridge-channels {
    width: 60px;
    font-size: 12px;
    gap: 4px;
  }
  .bridge-channels span {
    display: none;
  }
  .bridge-slot {
    padding: 4px 10px;
  }
  .bridge-value {
    width: 90px;
  }
  .eq-band.mixer-slider {
    padding: 5px 0;
  }
  .eq-bands {
    gap: 1px !important;
  }
  .eq-footer span {
    display: none;
  }
  .style-button-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .style-button {
    min-height: 48px;
  }
  .style-button strong {
    font-size: 8px;
  }
  .style-button small {
    display: none;
  }
  .library-table-wrap {
    height: 62vh !important;
  }
  .library-expanded .library-table-wrap {
    height: 75vh !important;
  }
  .library-tools {
    flex-wrap: wrap;
  }
}

/* HuberBox 3.2.1 – stili znotraj osrednjega CROSSFADE modula */
.decks {
  grid-template-columns: minmax(0, 1fr) 184px minmax(0, 1fr);
}
.crossfader-bridge {
  padding: 12px 9px;
  gap: 10px;
  justify-content: center;
}
.crossfader-bridge .style-picker {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}
.crossfader-bridge .style-picker-label {
  font-size: 8px;
  margin: 0 0 8px;
  letter-spacing: 0.7px;
  justify-content: center;
}
.crossfader-bridge .style-picker-label span {
  display: none;
}
.crossfader-bridge .style-button-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.crossfader-bridge .style-button {
  min-height: 39px;
  border-radius: 7px;
  gap: 1px;
  padding: 5px 3px;
}
.crossfader-bridge .style-icon {
  font-size: 13px;
}
.crossfader-bridge .style-button strong {
  font-size: 8px;
  letter-spacing: 0;
}
.crossfader-bridge .style-button small {
  display: none;
}
.crossfader-bridge .style-button:last-child {
  grid-column: 1/-1;
  min-height: 32px;
  flex-direction: row;
  gap: 6px;
}
.crossfader-bridge .bridge-slot {
  padding: 10px 6px;
  width: 100%;
}
.crossfader-bridge .bridge-kicker {
  font-size: 10px;
}
.transition-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
}
.transition-controls > label {
  min-width: 165px;
  max-width: 260px;
  flex: 1;
}
@media (max-width: 1350px) {
  .decks {
    grid-template-columns: minmax(0, 1fr) 166px minmax(0, 1fr);
  }
  .crossfader-bridge {
    padding: 10px 6px;
  }
}
@media (max-width: 1040px) {
  .decks {
    grid-template-columns: minmax(0, 1fr) 162px minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .decks {
    grid-template-columns: 1fr 1fr;
  }
  .crossfader-bridge {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 90px;
    gap: 6px 10px;
    padding: 10px 12px;
    align-items: center;
  }
  .crossfader-bridge .style-picker {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .crossfader-bridge .style-picker-label {
    justify-content: flex-start;
    margin: 0 0 6px;
  }
  .crossfader-bridge .style-button-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .crossfader-bridge .style-button,
  .crossfader-bridge .style-button:last-child {
    min-height: 42px;
    grid-column: auto;
    flex-direction: column;
    gap: 2px;
    padding: 5px 1px;
  }
  .crossfader-bridge .style-icon {
    font-size: 14px;
  }
  .crossfader-bridge .style-button strong {
    font-size: 7px;
  }
  .crossfader-bridge .bridge-channels {
    grid-row: 2;
    grid-column: 1;
    width: auto;
  }
  .crossfader-bridge .bridge-slot {
    grid-row: 2;
    grid-column: 2;
    min-width: 0;
    padding: 6px 8px;
  }
  .crossfader-bridge .bridge-value {
    grid-row: 2;
    grid-column: 3;
    width: auto;
    font-size: 9px;
  }
  .crossfader-bridge .bridge-kicker,
  .crossfader-bridge .bridge-caption {
    display: none;
  }
}

/* HuberBox 3.4 · cue points, tidy mixer, library drag dock */
.library-dock-open {
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 20px #39e2c61c;
}
.deck-eq-details {
  margin-top: 9px;
  border-top: 1px solid #354755;
  border-radius: 0 0 10px 10px;
}
.deck-eq-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c5fdf1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: 0.18s;
}
.deck-eq-details > summary::-webkit-details-marker {
  display: none;
}
.deck-eq-details > summary:hover,
.deck-eq-details[open] > summary {
  background: #173b39;
  border-color: #2a7468;
}
.deck-eq-details > summary span {
  font-weight: 500;
  font-size: 9px;
  color: #98bdc1;
  letter-spacing: 0;
}
.deck-eq-details[open] .eq-header {
  margin-top: 8px;
}
.cue-strip {
  font-size: 9px;
  color: #b4cfdf;
  letter-spacing: 0.04em;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-transport .cue-edit {
  min-width: 54px !important;
  font-size: 10px !important;
  color: #95ebdb;
  border-color: #35695e;
}
.auto-tempo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a5dcd0;
  font-size: 10px;
  padding: 7px 10px;
  border: 1px solid #31554f;
  border-radius: 7px;
  background: #122d30;
}
.manual-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #19382e;
  border: 1px solid #2f6054;
  color: #b6ffea;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
#resume-auto {
  white-space: nowrap;
  color: #ade9dc;
  border-color: #397568;
}
.crossfader-bridge .style-button-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.crossfader-bridge .style-button:last-child {
  grid-column: span 2;
}
.compact-continuous {
  display: block !important;
  margin-top: 10px;
  padding: 0;
  border: 1px solid #304954;
  border-radius: 11px;
  overflow: hidden;
  background: #111d28;
}
.compact-continuous > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 12px 16px;
  color: #aaf6e9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.compact-continuous > summary::-webkit-details-marker {
  display: none;
}
.compact-continuous > summary::after {
  content: '⌄';
  margin-left: auto;
  font-size: 20px;
  color: #73bcad;
}
.compact-continuous[open] > summary::after {
  content: '⌃';
}
.compact-continuous > summary span {
  color: #8caeb7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.compact-continuous .autoplay-description {
  margin: 0 16px;
}
.compact-continuous .autoplay-settings {
  margin: 5px 16px 15px;
  max-width: none;
}
.compact-continuous:not([open]) .autoplay-settings,
.compact-continuous:not([open]) .autoplay-description {
  display: none;
}
.library-dock-bar,
.library-drop-targets {
  display: none;
}
.library-docked .library-section {
  position: fixed;
  left: 12px;
  top: 77px;
  bottom: 12px;
  z-index: 95;
  margin: 0;
  width: min(470px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid #568178;
  box-shadow: 10px 0 50px #000b;
  overflow: hidden;
  border-radius: 13px;
  background: #101d27;
}
.library-docked .library-dock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  background: #142c31;
  border-bottom: 1px solid #365951;
  color: #a9fff0;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.library-docked .library-drop-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid #294549;
}
.library-drop-target {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #497c7e;
  background: #172f3a;
  border-radius: 7px;
  color: #b9e8e6;
  font-size: 10px;
  font-weight: 900;
  cursor: copy;
}
.library-drop-target:hover,
.library-drop-target.track-drop-hover {
  background: #20554d;
  border-color: #70f0d1;
  color: white;
}
.library-docked .library-header {
  flex: 0 0 auto;
  padding: 13px 15px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.library-docked .library-header h2 {
  font-size: 20px;
  margin: 4px 0;
}
.library-docked .library-header p,
.library-docked .library-header .overline {
  display: none;
}
.library-docked .lib-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}
.library-docked .lib-controls .button {
  font-size: 9px;
  padding: 7px;
}
.library-docked .library-shell {
  flex: 1;
  min-height: 0;
  grid-template-columns: 124px minmax(0, 1fr);
  overflow: hidden;
}
.library-docked .library-nav {
  overflow: auto;
  padding: 9px 5px;
}
.library-docked .library-nav .lib-tab,
.library-docked .playlist-nav-item {
  font-size: 9px;
  padding: 8px 4px;
}
.library-docked .library-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.library-docked .library-tools-head {
  padding: 9px 9px 4px;
}
.library-docked .library-tools {
  padding: 6px;
  gap: 5px;
  display: flex;
  flex-wrap: wrap;
}
.library-docked .library-tools input[type='search'] {
  width: 100%;
  flex: 1 1 100%;
}
.library-docked .library-tools select {
  max-width: 100%;
  font-size: 10px;
}
.library-docked .library-table-wrap {
  height: auto !important;
  min-height: 0;
  flex: 1;
  overflow: auto;
}
.library-docked .music-table {
  font-size: 10px;
}
.library-docked .music-table td,
.library-docked .music-table th {
  padding: 8px 5px;
}
.library-docked .music-table .col-format,
.library-docked .music-table .col-bpm,
.library-docked .music-table .col-folder {
  display: none;
}
.library-docked .music-table .lib-action {
  flex-wrap: wrap;
}
.library-docked .music-table .lib-action button {
  font-size: 8px;
  padding: 3px 4px;
}
.library-docked .library-bottom {
  padding: 8px 10px;
  gap: 4px;
  font-size: 8px;
}
.library-docked .library-bottom .button {
  font-size: 9px;
}
.library-docked .library-header .button.primary {
  white-space: nowrap;
}
.library-docked .library-shell .nav-group-caption {
  font-size: 9px;
}
.library-docked .library-dock-open {
  box-shadow: none;
}
.deck.track-drop-hover {
  outline: 2px dashed #5bf4d2;
  outline-offset: -4px;
  background: #143f3d;
}
.queue-list.track-drop-hover {
  outline: 2px dashed #5bf4d2;
  outline-offset: -3px;
}
.cue-dialog {
  width: min(560px, calc(100% - 24px));
}
.cue-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}
.cue-fields label {
  font-size: 11px;
  color: #b3e7d9;
  font-weight: 800;
}
.cue-fields input {
  width: 100%;
  margin-top: 5px;
}
.cue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.cue-hint {
  font-size: 10px;
  line-height: 1.5;
  color: #9ab3bc;
}
@media (max-width: 1100px) {
  .compact-continuous .autoplay-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .deck-transport .cue-edit {
    min-width: 46px !important;
  }
}
@media (max-width: 680px) {
  .deck-transport {
    flex-wrap: wrap;
  }
  .deck-transport .cue-edit {
    width: 100%;
    margin-top: 3px;
  }
  .cue-strip {
    font-size: 8px;
  }
  .auto-tempo-note {
    font-size: 9px;
  }
  .crossfader-bridge .style-button-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .crossfader-bridge .style-button:last-child {
    grid-column: auto;
  }
  .manual-flag {
    display: block;
    margin: 7px 0 0;
  }
  .library-docked .library-section {
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: calc(100vw - 12px);
  }
  .library-docked .library-shell {
    grid-template-columns: 102px minmax(0, 1fr);
  }
  .library-docked .library-header h2 {
    font-size: 16px;
  }
  .library-docked .lib-controls .button {
    font-size: 8px;
    padding: 6px;
  }
  .compact-continuous .autoplay-settings {
    grid-template-columns: 1fr;
  }
  .compact-continuous > summary {
    font-size: 10px;
  }
  .cue-fields {
    grid-template-columns: 1fr 1fr;
  }
  .cue-fields button {
    min-height: 34px;
  }
}

.mixer-panel > .compact-continuous {
  grid-column: 1/-1;
  grid-row: auto;
  width: 100%;
  margin-top: 1px;
}
.library-docked .music-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.library-docked .music-table td:nth-child(3),
.library-docked .music-table th:nth-child(3) {
  display: none;
}
.library-docked .music-table .col-art {
  width: 25px !important;
}
.library-docked .music-table .col-actions {
  width: 111px !important;
}
.library-docked .music-table td.lib-action {
  display: table-cell;
  white-space: normal;
  padding: 3px 2px !important;
}
.library-docked .music-table .lib-action button {
  padding: 3px 3px;
  font-size: 8px;
  margin: 1px 1px;
}
.library-docked .music-table td.song-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-docked .library-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 3px;
}
.library-docked .library-nav > .lib-tab,
.library-docked .library-nav > .nav-group-caption,
.library-docked .library-nav > .nav-sublist {
  flex: 0 0 auto;
  width: 100%;
}
.library-docked .library-nav > .nav-sublist {
  display: block;
}

/* v3.4.1 — iPhone playback capabilities / honest fallback */
.ios-playback-panel {
  margin: 0 0 14px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(240px, 330px);
  align-items: center;
  gap: 12px;
  border: 1px solid #39636b;
  border-radius: 16px;
  background: linear-gradient(115deg, #11272d, #11202c);
  color: #eaf4f5;
}
.ios-playback-panel[hidden] {
  display: none !important;
}
.ios-playback-panel strong {
  color: #69e2cf;
  letter-spacing: 0.02em;
}
.ios-playback-panel p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #b6c9cb;
  line-height: 1.5;
}
.ios-playback-panel label {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #b6c9cb;
  font-weight: 700;
}
.ios-playback-panel select {
  display: block;
  margin-top: 6px;
  width: 100%;
  background: #0b1921;
  color: #eaf4f5;
  border: 1px solid #425964;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}
.ios-playback-status {
  grid-column: 1/-1;
  margin: 0 !important;
  padding: 9px 12px;
  border-radius: 9px;
  background: #0b2027;
}
@media (max-width: 760px) {
  .ios-playback-panel {
    grid-template-columns: 1fr;
  }
}

/* 3.4.2: only the lower library/queue changes on mobile; both DJ decks are intact. */
.lib-mobile-meta {
  display: none;
}
.lib-track-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 680px) {
  html,
  body,
  #app,
  .page,
  .workspace,
  .stage,
  .library-section,
  .sidebar {
    max-width: 100%;
    overflow-x: clip;
  }
  .library-section,
  .library-content,
  .library-shell,
  .library-table-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .library-section {
    overflow: hidden;
  }
  .library-shell,
  .library-docked .library-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .library-nav,
  .library-docked .library-nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 140px;
    align-content: start;
    min-width: 0;
    padding: 7px;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid #354653;
  }
  .library-nav .lib-tab,
  .library-docked .library-nav .lib-tab,
  .playlist-nav-item,
  .library-docked .playlist-nav-item {
    flex: 0 1 auto !important;
    max-width: 100%;
    width: auto !important;
    min-width: 0;
    white-space: normal;
    font-size: 10px;
  }
  .library-docked .library-nav > .lib-tab,
  .library-docked .library-nav > .nav-sublist {
    width: auto !important;
  }
  .library-nav > .nav-sublist,
  .library-docked .library-nav > .nav-sublist {
    display: contents !important;
  }
  .library-tools,
  .library-docked .library-tools {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: hidden;
  }
  .library-tools input[type='search'],
  .library-docked .library-tools input[type='search'] {
    width: 100%;
    max-width: 100%;
    grid-column: 1/-1;
    min-width: 0;
  }
  .library-tools select,
  .library-docked .library-tools select {
    min-width: 0;
    width: 100%;
    font-size: 11px;
  }
  .library-tools .col-options {
    grid-column: 1/-1;
  }
  .library-table-wrap,
  .library-docked .library-table-wrap {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100%;
    max-width: 100%;
    height: 56vh !important;
    min-height: 280px;
  }
  .music-table,
  .library-docked .music-table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: auto;
  }
  .music-table thead,
  .library-docked .music-table thead {
    display: none;
  }
  .music-table tbody,
  .library-docked .music-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .music-table tbody tr:not(.virtual-spacer),
  .music-table.compact tbody tr:not(.virtual-spacer),
  .library-docked .music-table tbody tr:not(.virtual-spacer) {
    display: grid;
    height: 108px !important;
    max-height: 108px !important;
    min-height: 108px;
    grid-template-columns: 22px minmax(0, 1fr) 104px;
    gap: 5px;
    align-items: center;
    padding: 7px 6px;
    border-bottom: 1px solid #263442;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .music-table td,
  .library-docked .music-table td {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding: 2px !important;
    border: 0 !important;
  }
  .music-table td.lib-id {
    grid-column: 1;
    font-size: 10px;
    color: #739e9d;
  }
  .music-table td.song-cell,
  .library-docked .music-table td.song-cell {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
  }
  .lib-track-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
  }
  .lib-mobile-meta {
    display: block;
    font-size: 10px;
    line-height: 1.35;
    color: #9fb3c0;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .music-table td.col-artist,
  .music-table td.col-format,
  .music-table td.col-bpm,
  .music-table td.col-folder,
  .library-docked .music-table td.col-artist,
  .library-docked .music-table td.col-format,
  .library-docked .music-table td.col-bpm,
  .library-docked .music-table td.col-folder {
    display: none !important;
  }
  .music-table td.lib-action,
  .library-docked .music-table td.lib-action {
    grid-column: 3;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 3px;
    width: 100%;
    white-space: normal;
    min-width: 0;
  }
  .music-table td.lib-action button,
  .library-docked .music-table td.lib-action button {
    margin: 0 !important;
    padding: 4px 2px !important;
    min-height: 28px;
    font-size: 10px;
    border-radius: 6px;
    max-width: 100%;
  }
  .music-table tbody tr.virtual-spacer,
  .library-docked .music-table tbody tr.virtual-spacer {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .music-table tbody tr.virtual-spacer td {
    display: block;
    height: 100%;
    width: 100%;
  }
  .library-header,
  .library-docked .library-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
  }
  .lib-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
  }
  .lib-controls button {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
  .sidebar,
  .queue-card,
  .queue-list,
  .queue-item,
  .queue-item .q-item-main {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
  }
  .queue-item {
    gap: 7px;
    flex-wrap: nowrap;
  }
  .q-item-main {
    flex: 1 1 0;
    overflow: hidden;
  }
  .q-item-main strong {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
  }
  .q-item-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .q-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
  }
  .q-actions button {
    padding: 4px 6px;
    min-width: 25px;
  }
  .library-docked .library-section {
    overflow: hidden;
    max-height: calc(100dvh - 16px);
  }
  .library-docked .library-table-wrap {
    height: auto !important;
    flex: 1;
  }
}

/* HuberBox 3.4.3 — deck queue arrows, prettier transport buttons, YouTube start cue */
.deck-transport {
  gap: 8px;
  align-items: center;
}
.deck-transport .control {
  position: relative;
  min-width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #35596a;
  background: linear-gradient(180deg, #172838, #0d1724);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22);
  color: #dff7ff;
  font-weight: 800;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.deck-transport .control:hover {
  transform: translateY(-1px);
  border-color: #53d6c3;
  box-shadow:
    0 10px 22px rgba(20, 40, 60, 0.35),
    0 0 0 1px rgba(83, 214, 195, 0.12);
}
.deck-transport .control:active {
  transform: translateY(0);
}
.deck-transport .control.play {
  background: linear-gradient(180deg, #1a3d46, #10252d);
  color: #7ff1dd;
  border-color: #4ab7a7;
}
.deck-transport .control.deck-next {
  background: linear-gradient(180deg, #223753, #101e31);
  color: #8ec9ff;
  border-color: #4f78a7;
  padding-inline: 7px;
  white-space: nowrap;
}
.deck-transport .control.cue-edit {
  background: linear-gradient(180deg, #2a2d47, #14172b);
  color: #d1d6ff;
  border-color: #616ab7;
  min-width: 62px;
  padding: 0 10px;
}
.cue-strip {
  background: #0e1721;
  border: 1px solid #293c4d;
  padding: 7px 10px;
  border-radius: 10px;
}
@media (max-width: 680px) {
  .deck-transport {
    gap: 6px;
  }
  .deck-transport .control {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
  }
  .deck-transport .control.cue-edit {
    flex-basis: 100%;
    min-width: 0;
  }
  .deck-transport .control.deck-next {
    flex-basis: max-content;
  }
}

/* HuberBox 3.4.4 — Timeline, global CUE defaults & aligned controls */
.mixer-panel {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 264px);
  gap: 12px;
  padding: 12px;
  align-items: start;
}
.mixer-panel > .mixer-center {
  grid-column: 1;
  grid-row: 1;
  padding: 14px 17px;
  min-width: 0;
}
.mixer-panel > .compact-engine {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border-radius: 13px;
  border: 1px solid #31515a;
  background: linear-gradient(130deg, #172a32, #10202a);
  overflow: hidden;
}
.compact-engine > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 12px;
  cursor: pointer;
  min-height: 62px;
}
.compact-engine > summary::-webkit-details-marker {
  display: none;
}
.compact-engine > summary:hover {
  background: #223c43;
}
.engine-icon {
  color: #60e9d0;
  font-size: 15px;
}
.engine-summary-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  flex: 1;
}
.engine-summary-title small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: #96b1bf;
  font-weight: 550;
  letter-spacing: 0;
}
#engine-duration {
  font-size: 11px;
  color: #76e8d4;
  white-space: nowrap;
}
.engine-chevron {
  color: #95adc1;
  font-size: 17px;
  transition: transform 0.2s;
}
.compact-engine[open] .engine-chevron {
  transform: rotate(180deg);
}
.engine-body {
  padding: 0 12px 14px;
  display: grid;
  gap: 12px;
}
.compact-engine .transition-controls {
  margin: 0;
  display: block;
}
.compact-engine .transition-controls > label {
  max-width: none;
  min-width: 0;
}
.compact-engine .mixer-flags {
  margin: 0;
  display: grid;
  gap: 6px;
}
.compact-engine .auto-tempo-note {
  font-size: 9px;
  padding: 7px;
  line-height: 1.3;
}
.compact-engine .disabled-flag {
  font-size: 9px;
}
.global-cue-settings {
  border: 1px solid #335a60;
  padding: 10px;
  border-radius: 10px;
  background: #0b1922;
}
.global-cue-settings p {
  color: #9fb2bb;
  font-size: 10px;
  line-height: 1.4;
  margin: 7px 0 10px;
}
.global-cue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.global-cue-grid label {
  display: grid;
  gap: 6px;
  color: #bfdae1;
  font-size: 9px;
  font-weight: 700;
}
.global-cue-grid input {
  width: 100%;
  min-width: 0;
  padding: 7px 6px !important;
  min-height: 34px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.global-save {
  width: 100%;
  margin-top: 11px;
}
.mixer-panel > .compact-continuous {
  grid-column: 1/-1;
  grid-row: 2;
  margin-top: 0;
}
/* center range slider tracks and thumbs across the app */
.eq-bands {
  justify-items: center;
  align-items: center;
  gap: 6px;
}
.eq-bands .eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.eq-bands .eq-band input.dj-fader-input {
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 74px;
  align-self: center;
}
.eq-bands .eq-band label,
.eq-bands .eq-band strong {
  text-align: center;
  width: 100%;
}
.filter-wrap input[type='range'],
.master-line input[type='range'],
.transition-controls input[type='range'] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.deck .waveform {
  height: 53px;
  opacity: 1;
  overflow: visible;
  isolation: isolate;
  border-radius: 9px;
  border: 1px solid #314b5b;
  background: repeating-linear-gradient(90deg, #284750 0, #284750 2px, #10232e 2px, #10232e 6px);
}
.deck .wave-progress {
  z-index: 0;
  border-radius: 9px;
  transition: width 0.18s linear;
  pointer-events: none;
}
.deck .wave-tag {
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}
.deck-seek {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  top: 50%;
  width: calc(100% - 20px) !important;
  transform: translateY(-50%);
  height: 32px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  margin: 0 !important;
  cursor: pointer;
  touch-action: pan-y;
}
.deck-seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--deck) var(--seek-progress, 0%),
    #60717c var(--seek-progress, 0%)
  );
  box-shadow: 0 1px 6px #0009;
}
.deck-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 12px;
  margin-top: -8px;
  border-radius: 5px;
  border: 1px solid #f0fffc;
  background: linear-gradient(90deg, #a1b5b6, #fff, #95b9b7);
  box-shadow: 0 2px 6px #000a;
}
.deck-seek::-moz-range-track {
  height: 5px;
  background: #60717c;
  border-radius: 8px;
}
.deck-seek::-moz-range-progress {
  height: 5px;
  background: var(--deck);
  border-radius: 8px;
}
.deck-seek::-moz-range-thumb {
  width: 12px;
  height: 20px;
  border-radius: 5px;
  background: #e5f9f3;
  border: 1px solid #98b6ae;
}
.deck-seek:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}
.seek-tooltip {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: 5px;
  background: #0e2029e8;
  color: #e7fff9;
  border: 1px solid #3c7580;
  padding: 2px 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  pointer-events: none;
}
@media (max-width: 1120px) {
  .mixer-panel {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .mixer-panel > .mixer-center,
  .mixer-panel > .compact-engine {
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  .mixer-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }
  .mixer-panel > .mixer-center {
    grid-column: 1;
    grid-row: 1;
  }
  .mixer-panel > .compact-engine {
    grid-column: 1;
    grid-row: 2;
  }
  .mixer-panel > .compact-continuous {
    grid-column: 1;
    grid-row: 3;
  }
  .compact-engine > summary {
    min-height: 47px;
  }
  .engine-body {
    gap: 9px;
  }
  .deck .waveform {
    height: 50px;
  }
}

/* 3.4.4 fine alignment correction for real vertical faders */
.eq-bands .eq-band input[type='range'].dj-fader-input {
  width: 22px !important;
  height: 65px !important;
  max-width: none;
  min-width: 22px;
  margin: 5px auto !important;
  align-self: center;
}
.eq-bands .eq-band {
  justify-self: center;
  align-self: center;
}

/* HuberBox 3.4.5 — true centered hardware faders + alternative Copper skin */
.deck-eq-details .eq-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: 8px;
  min-height: 0 !important;
  padding: 11px 8px !important;
}
.deck-eq-details .eq-band.mixer-slider {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 19px 92px 23px;
  place-items: center;
  gap: 5px;
  min-height: 0 !important;
  height: 153px !important;
  padding: 3px 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
}
.deck-eq-details .eq-band.mixer-slider > label {
  line-height: 19px;
  height: 19px;
  margin: 0 !important;
  text-align: center;
  display: grid;
  place-items: center;
}
.deck-eq-details .eq-band.mixer-slider > input.dj-fader-input {
  display: block !important;
  box-sizing: border-box;
  width: 25px !important;
  min-width: 25px !important;
  max-width: 25px !important;
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  place-self: center !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  padding: 0 !important;
  transform: none !important;
  writing-mode: vertical-lr;
  direction: rtl;
  touch-action: none;
}
.deck-eq-details .eq-band.mixer-slider > strong {
  display: grid;
  place-items: center;
  min-height: 22px;
  margin: 0 !important;
  padding: 2px 4px !important;
  align-self: center;
  text-align: center;
}
.library-content .music-table tbody tr:not(.virtual-spacer) {
  cursor: pointer;
}
.library-content .music-table tbody tr:not(.virtual-spacer):hover .song-cell .lib-track-name {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}
.library-result-count::after {
  content: ' · dvojni klik na skladbo = dodaj v vrsto';
  color: var(--cyan);
  font-size: 10px;
}
.skin-toggle {
  white-space: nowrap;
  letter-spacing: 0.09em;
  font-size: 10px;
  border-color: #94734d !important;
  color: #f4d19d !important;
  background: linear-gradient(145deg, #272018, #191a20) !important;
}
.skin-toggle:hover {
  filter: brightness(1.2);
}
body.theme-copper {
  --bg: #0b0c10;
  --panel: #191b22;
  --panel2: #23252e;
  --line: #43444b;
  --text: #f8f2e8;
  --muted: #aaa6a1;
  --cyan: #f4be78;
  --purple: #a4bfd0;
  background:
    radial-gradient(ellipse at 14% -2%, #8f4a1d34, transparent 36%),
    radial-gradient(ellipse at 90% 8%, #16383a33, transparent 43%), #0b0c10;
  color: #f5f1ea;
}
body.theme-copper .topbar {
  background: #121316f0;
  border-bottom: 1px solid #63492f;
  box-shadow: 0 4px 25px #0005;
}
body.theme-copper .logo-signet {
  background: linear-gradient(145deg, #ffd298, #bd7943);
  color: #291b10;
}
body.theme-copper .logo strong span {
  color: #f7c28a;
}
body.theme-copper .page-head h1 span,
body.theme-copper .library-header h2 span {
  color: #f8c180;
}
body.theme-copper .deck {
  background: linear-gradient(155deg, #292a2c, #15171c 72%);
  border: 1px solid #52504b;
  box-shadow:
    inset 0 1px #ffffff12,
    0 12px 27px #0005;
}
body.theme-copper .deck[data-deck='0'] {
  --deck: #f6c17a;
}
body.theme-copper .deck[data-deck='1'] {
  --deck: #80b9c9;
}
body.theme-copper .deck-art {
  background: linear-gradient(145deg, #33291d, #182328);
  border-color: #545045;
}
body.theme-copper .crossfader-bridge {
  background: linear-gradient(150deg, #302c29, #17191d);
  border-color: #655444;
}
body.theme-copper .crossfader-bridge .style-button {
  background: linear-gradient(#34363a, #222329);
  border-color: #625b50;
}
body.theme-copper .crossfader-bridge .style-button.is-active {
  color: #34210b;
  background: linear-gradient(145deg, #ffdcac, #d9a15d);
  border-color: #ffd9a3;
  box-shadow:
    0 3px 0 #76502b,
    0 0 0 2px #ffd28c1a;
}
body.theme-copper .mixer-panel,
body.theme-copper .queue-card,
body.theme-copper .sidebar > section,
body.theme-copper .library-section {
  background: linear-gradient(145deg, #242429, #15181e);
  border-color: #554d43;
}
body.theme-copper .library-nav {
  background: #1d1f24;
  border-color: #514941;
}
body.theme-copper .library-nav .lib-tab.active,
body.theme-copper .playlist-nav-item.active {
  background: #422e1c;
  border-color: #a87745;
  color: #ffcf93;
  box-shadow: inset 3px 0 #f1b675;
}
body.theme-copper .control.play,
body.theme-copper .button.primary {
  background: linear-gradient(145deg, #ffd399, #e5a766);
  border-color: #e7ab6d;
  color: #211a13;
}
body.theme-copper .stat-chip,
body.theme-copper .compact-engine,
body.theme-copper .compact-continuous {
  background: #1d2025;
  border-color: #615348;
}
body.theme-copper .deck .waveform {
  border-color: #6c5642;
  background: repeating-linear-gradient(90deg, #67482c 0, #67482c 2px, #1e2026 2px, #1e2026 6px);
}
body.theme-copper .deck-eq-details .eq-bands {
  background: linear-gradient(#191a1e, #25262c);
  border-color: #655343;
}
body.theme-copper .auth-screen {
  background: radial-gradient(circle at 50% 20%, #4e392b 0, #0b0c10 54%);
}
body.theme-copper .auth-card {
  background: #202026;
  border-color: #5d503f;
}
body.theme-copper .library-drop-target:hover,
body.theme-copper .library-drop-target.track-drop-hover {
  background: #694a2d;
  border-color: #eac083;
}
@media (max-width: 680px) {
  .deck-eq-details .eq-bands {
    padding: 6px 3px !important;
    gap: 3px;
  }
  .deck-eq-details .eq-band.mixer-slider {
    height: 143px !important;
    grid-template-rows: 17px 83px 22px;
  }
  .deck-eq-details .eq-band.mixer-slider > input.dj-fader-input {
    height: 83px !important;
    min-height: 83px !important;
    max-height: 83px !important;
    width: 23px !important;
    min-width: 23px !important;
    max-width: 23px !important;
  }
  .library-result-count::after {
    display: none;
  }
  .skin-toggle {
    font-size: 9px;
    padding: 7px 9px !important;
  }
}

/* HuberBox 3.4.6 — controls on right, library single-click and drop repair */
.sidebar-mix-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  width: 100%;
}
.sidebar-mix-controls > .compact-engine,
.sidebar-mix-controls > .compact-continuous {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #334b55;
  border-radius: 12px;
  background: linear-gradient(145deg, #19232e, #101a24);
  overflow: hidden;
}
.sidebar-mix-controls > .compact-engine > summary {
  min-height: 54px;
  padding: 12px 13px;
  gap: 7px;
}
.sidebar-mix-controls > .compact-engine .engine-summary-title {
  min-width: 0;
}
.sidebar-mix-controls > .compact-engine .engine-summary-title small {
  font-size: 9px;
}
.sidebar-mix-controls > .compact-engine .engine-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.sidebar-mix-controls > .compact-engine .global-cue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.sidebar-mix-controls > .compact-engine .global-cue-grid input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.sidebar-mix-controls > .compact-continuous > summary {
  padding: 12px 13px;
  min-height: 45px;
  flex-wrap: wrap;
  gap: 5px;
}
.sidebar-mix-controls > .compact-continuous > summary span {
  font-size: 10px;
}
.sidebar-mix-controls > .compact-continuous .autoplay-settings {
  grid-template-columns: 1fr !important;
  margin: 9px 12px 13px;
  gap: 10px;
}
.sidebar-mix-controls > .compact-continuous .autoplay-description {
  margin: 8px 12px;
}
.sidebar-mix-controls > .compact-continuous select {
  width: 100%;
  min-width: 0;
}
.mixer-panel {
  grid-template-columns: 1fr !important;
  min-height: 0;
}
.mixer-panel > .mixer-center {
  grid-column: 1 !important;
  grid-row: 1 !important;
  padding: 12px 14px;
}
.sidebar > .queue-card {
  margin-top: 1px;
}
#library-body tr:not(.virtual-spacer) {
  cursor: pointer;
}
#library-body tr:not(.virtual-spacer):hover td.song-cell {
  color: var(--cyan);
}
#library-body tr:not(.virtual-spacer) .lib-action button {
  cursor: pointer;
}
body.theme-copper .sidebar-mix-controls > .compact-engine,
body.theme-copper .sidebar-mix-controls > .compact-continuous {
  background: linear-gradient(145deg, #29252a, #17191e);
  border-color: #655648;
}
@media (max-width: 1020px) {
  .sidebar-mix-controls {
    grid-column: 1/-1;
  }
  .sidebar > .queue-card {
    grid-row: auto;
  }
}
@media (max-width: 680px) {
  .sidebar-mix-controls {
    gap: 7px;
  }
  .sidebar-mix-controls > .compact-engine > summary {
    padding: 10px;
  }
  .sidebar-mix-controls > .compact-continuous > summary {
    padding: 10px;
  }
  .mixer-panel > .mixer-center {
    padding: 12px;
  }
}
.ytmusic-search {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
}
.ytmusic-search label {
  font-weight: 700;
}
.ytmusic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ytmusic-controls input {
  flex: 1 1 180px;
  min-width: 0;
}
.ytmusic-status {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.lib-track-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.lib-track-thumbnail {
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 4px;
}
.lib-track-description {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ytmusic-status:empty {
  display: none;
}
