:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #0f1115;
  color: #eef2ff;
}

body {
  margin: 0;
  background: #0f1115;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 24px 24px;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.page-header {
  margin-bottom: 8px;
}

.app-header {
  position: relative;
  margin-bottom: 8px;
  min-height: 44px;
}

.centered-header {
  text-align: center;
}

.app-header h1 {
  margin: 0;
  text-align: center;
}

.header-output-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-output-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-output-group label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7dff0;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-output-group label span {
  white-space: nowrap;
}

.header-output-select {
  min-width: 220px;
}

@media (min-width: 981px) {
  .app-header h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.output-sink-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.landing-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.landing-intro {
  margin-bottom: 24px;
}

.landing-panel {
  width: min(100%, 640px);
}

.results-view {
  margin-bottom: 24px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.results-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mixer-grid-stack {
  position: relative;
}

.primary-grid,
.secondary-decks-grid {
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: start;
}

.primary-grid > .results-panel:first-child,
.secondary-decks-grid > .results-panel:first-child {
  grid-column: 1;
}

.primary-grid > .results-panel:last-child,
.secondary-decks-grid > .results-panel:last-child {
  grid-column: 3;
}

.secondary-decks-grid {
  margin-top: -14px;
}

.auxiliary-results-panel {
  min-height: 0;
}

.auxiliary-results-panel .mixer-deck-panel {
  margin-bottom: 0;
}

.auxiliary-results-panel .deck-support-panel {
  margin-top: 0;
}

.results-panel-summary {
  margin: 4px 0 16px;
}

.panel {
  background: #171b22;
  border: 1px solid #2a3140;
  border-radius: 12px;
  margin-bottom: 20px;
}

.two-column {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stack {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: 6px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  background: #0f1115;
  color: #eef2ff;
  border: 1px solid #3a4458;
  border-radius: 8px;
  padding: 10px 12px;
}

button {
  background: #5b8cff;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: #79a0ff;
}

button:disabled {
  cursor: wait;
  opacity: 0.9;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 999px;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.secondary-button {
  background: transparent;
  border: 1px solid #3a4458;
  color: #d7dff0;
}

.secondary-button:hover {
  background: #202838;
}

.small-button {
  padding: 8px 12px;
  font-size: 0.92rem;
}

.prominent-button {
  background: #233a66;
  border-color: #5b8cff;
  color: #eef4ff;
}

.prominent-button:hover {
  background: #2e4a80;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f1115;
  border: 1px solid #313949;
  color: #a8b3c9;
  font-size: 0.9rem;
}

.track-summary-card {
  display: grid;
  gap: 16px;
}

.deck-support-panel {
  display: grid;
  gap: 0;
  margin-top: -16px;
  padding: 0 14px 6px;
}

.deck-support-toggle {
  justify-self: center;
  width: min(100%, 376px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(77, 111, 167, 0.54);
  border-top: none;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(circle at top center, rgba(103, 144, 214, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(24, 34, 53, 0.98), rgba(12, 19, 31, 0.99));
  box-shadow:
    0 16px 28px rgba(4, 7, 12, 0.18),
    inset 0 1px 0 rgba(219, 232, 255, 0.06);
  color: #eef3ff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.deck-support-toggle:hover {
  border-color: rgba(132, 171, 233, 0.72);
  box-shadow:
    0 18px 30px rgba(4, 7, 12, 0.2),
    inset 0 1px 0 rgba(219, 232, 255, 0.1);
}

.deck-support-toggle:focus-visible {
  outline: 2px solid rgba(143, 176, 255, 0.8);
  outline-offset: 3px;
}

.deck-support-toggle-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.deck-support-toggle-label {
  color: #f2f6ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-support-toggle .summary-pill {
  padding: 6px 14px;
  background: rgba(10, 16, 27, 0.72);
  border-color: rgba(76, 111, 166, 0.56);
  color: #d7e5ff;
  font-size: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(216, 229, 255, 0.05);
}

.deck-support-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(227, 237, 255, 0.86);
  flex: 0 0 auto;
}

.deck-support-toggle-icon::before {
  content: '';
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 180ms ease;
}

.deck-support-panel.is-expanded .deck-support-toggle-icon::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.deck-support-body {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(63, 86, 124, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 21, 33, 0.98), rgba(10, 14, 22, 0.98));
  box-shadow: 0 18px 32px rgba(4, 7, 12, 0.22);
}

.deck-support-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deck-support-request {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-support-request-label {
  color: #a8b3c9;
  font-size: 0.92rem;
}

.deck-suggestion-source-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-suggestion-source-button {
  min-width: 40px;
  padding: 7px 12px;
  background: #202838;
  border: 1px solid #3a4458;
  color: #eef2ff;
}

.deck-suggestion-source-button:hover {
  background: #29354a;
}

.deck-suggestion-source-button.is-active {
  background: #5b8cff;
  border-color: #8fb0ff;
}

.deck-suggestion-picker-empty {
  color: #8fa0bc;
  font-size: 0.9rem;
}

.deck-support-content {
  display: grid;
  gap: 14px;
}

.track-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.track-summary-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.track-summary-subtitle {
  margin-top: 4px;
  color: #a8b3c9;
  font-size: 0.92rem;
}

.metrics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.metric-tile {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 10px;
  background: #11151c;
  border: 1px solid #313949;
}

.metric-label {
  color: #9fb0ca;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 0.92rem;
  font-weight: 700;
}

.suggested-tracks {
  display: grid;
  gap: 14px;
}

.suggested-track-card {
  border: 1px solid #313949;
  border-radius: 10px;
  background: #11151c;
  padding: 14px;
}

.suggested-track-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suggested-track-toggle-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 1px solid #3a4458;
  background: transparent;
  color: #d7dff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.suggested-track-toggle-button:hover {
  background: #202838;
}

.suggested-track-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 120ms ease;
}

.suggested-track-card.is-expanded .suggested-track-toggle-icon {
  transform: rotate(225deg) translateY(1px);
}

.suggested-track-preview-main {
  min-width: 0;
  flex: 1;
}

.suggested-track-preview-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.suggested-track-preview-title {
  margin: 0;
  font-size: 1rem;
  color: #eef2ff;
  white-space: nowrap;
}

.suggested-track-preview-facts,
.suggested-track-preview-match {
  color: #c6d2e8;
  font-size: 0.92rem;
  white-space: nowrap;
}

.suggested-track-preview-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.suggested-track-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #313949;
}

.suggested-track-extra {
  display: grid;
  gap: 14px;
}

.suggested-track-detail-subtitle {
  color: #a8b3c9;
  font-size: 0.92rem;
}

.suggested-track-details-grid {
  gap: 10px;
}

.suggested-track-sections h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.suggested-track-sections ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.selected-track-match-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #3a4458;
  background: rgba(18, 25, 38, 0.9);
  color: #d7dff0;
}

.selected-track-match-summary h4 {
  margin: 0;
  font-size: 0.95rem;
}

.jobs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.jobs li {
  border: 1px solid #313949;
  border-radius: 10px;
  padding: 12px;
  background: #11151c;
  cursor: pointer;
}

.jobs li.active {
  border-color: #5b8cff;
}

.jobs li .title {
  font-weight: 600;
}

.jobs li .meta {
  color: #a8b3c9;
  font-size: 0.9rem;
  margin-top: 4px;
}

.json-block,
.empty-state {
  background: #0b0d11;
  border: 1px solid #293142;
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  min-height: 120px;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  min-height: 0;
  color: #a8b3c9;
}

.field-divider {
  text-align: center;
  color: #a8b3c9;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

label.is-disabled {
  opacity: 0.55;
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .results-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .app-header {
    display: grid;
    gap: 10px;
  }

  .header-output-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-output-group {
    width: 100%;
    justify-content: center;
  }

  .header-output-group label {
    width: min(100%, 460px);
    justify-content: space-between;
  }

  .header-output-select {
    min-width: 0;
    width: min(60vw, 260px);
  }
}


.preview-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-label {
  display: none;
}

.preview-block audio {
  width: 100%;
}

.preview-unavailable {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
}

.spotify-link {
  align-self: flex-start;
  color: #7fb4ff;
  text-decoration: none;
  font-weight: 600;
}

.spotify-link:hover {
  text-decoration: underline;
}

.spotify-debug {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(93, 115, 173, 0.35);
  border-radius: 12px;
  background: rgba(18, 22, 34, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c4d0f0;
}

.spotify-debug strong {
  color: #e9eefb;
}

.spotify-link-inline {
  color: #7fb4ff;
  text-decoration: underline;
  word-break: break-all;
}

.youtube-audio-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.youtube-audio-section .preview-block {
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 193, 7, 0.05);
}

.audio-note {
  font-size: 0.85rem;
  color: #9fb2d8;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 193, 7, 0.15);
}

.audio-debug-note {
  font-size: 0.75rem;
  color: #7a8aa8;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(122, 138, 168, 0.08);
  border-radius: 4px;
  border-left: 2px solid rgba(122, 138, 168, 0.3);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.waveform-player-shell {
  position: relative;
  display: grid;
  gap: 10px;
}

.waveform-window {
  position: relative;
  border: 1px solid rgba(127, 180, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 14, 24, 0.95);
}

.waveform-transport-header {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.waveform-transport-title,
.waveform-transport-timer {
  color: rgba(238, 243, 251, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(8, 12, 18, 0.92);
  white-space: nowrap;
}

.waveform-transport-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waveform-transport-timer {
  flex: 0 0 auto;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.waveform-beatgrid-nudge-controls {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(127, 180, 255, 0.18);
  border-radius: 16px;
  background: rgba(9, 14, 24, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.waveform-beatgrid-nudge-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 233, 255, 0.78);
  white-space: nowrap;
}

.waveform-beatgrid-nudge-button-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.waveform-beatgrid-nudge-button {
  flex: 0 0 auto;
}

.waveform-beatgrid-nudge-button-small {
  width: 22px;
  height: 22px;
}

.waveform-beatgrid-nudge-button-small.deck-parameter-arrow-left::before {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-right-width: 6px;
}

.waveform-beatgrid-nudge-button-small.deck-parameter-arrow-right::before {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 6px;
}

.audio-transport-waveform-canvas {
  display: block;
  width: 100%;
  height: 180px;
  cursor: ew-resize;
  touch-action: none;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 12, 20, 0.98));
}

.audio-waveform-canvas {
  display: block;
  width: 100%;
  height: 34px;
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 12, 20, 0.98));
}

.waveform-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waveform-analysis-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(2px);
}

.waveform-analysis-overlay-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(127, 180, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.9);
  color: rgba(238, 243, 251, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.waveform-analysis-spinner {
  margin-right: 0;
}

.waveform-preview-block {
  gap: 0.65rem;
}


.mixer-deck-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #2f4b7a;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 20, 32, 0.96), rgba(11, 16, 24, 0.98));
}

.master-mixer-panel {
  position: absolute;
  left: 50%;
  z-index: 4;
  width: 64px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

.master-mixer-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 100%;
}

.master-meter-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 3px 8px;
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.76);
  border: 1px solid #2f3849;
}

.master-meter-heading {
  color: #cfe0ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.master-meter-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  min-height: 192px;
}

.master-meter-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 0;
  color: #7f8ea9;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.master-meter-lights {
  width: 14px;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.master-meter-light {
  flex: 1 1 0;
  min-height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(36, 43, 56, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: background-color 60ms linear, box-shadow 60ms linear, opacity 60ms linear;
  opacity: 0.42;
}

.master-meter-light.is-active {
  opacity: 1;
}

.master-meter-light-green.is-active {
  background: #7ad88b;
  box-shadow: 0 0 8px rgba(68, 203, 112, 0.3);
}

.master-meter-light-orange.is-active {
  background: #ffb347;
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.32);
}

.master-meter-light-red.is-active {
  background: #ff6b6b;
  box-shadow: 0 0 9px rgba(255, 107, 107, 0.34);
}

.master-meter-value {
  display: none;
}

.master-meter-value.is-green {
  color: #7ad88b;
}

.master-meter-value.is-orange {
  color: #ffb347;
}

.master-meter-value.is-red {
  color: #ff6b6b;
}

.cue-meter-panel {
  padding-bottom: 6px;
}

.cue-meter-shell {
  min-height: 192px;
}

.cue-meter-scale {
  padding: 1px 0;
}

.cue-meter-lights {
  gap: 3px;
}

.mixer-control-master {
  width: 28px;
  min-width: 28px;
  padding-inline: 0;
}

.mixer-slider-shell-master {
  width: 28px;
  height: 196px;
  min-height: 196px;
  max-height: 196px;
  flex: 0 0 196px;
}

.mixer-control-cue-gain {
  width: 54px;
  align-self: center;
}

.mixer-knob-shell-cue-gain {
  width: 36px;
  height: 36px;
}

.mixer-control-cue-gain .mixer-control-value {
  min-width: 40px;
  text-align: center;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.mixer-control-gain {
  height: auto;
  top: -5px;
}

.mixer-slider-shell-gain {
  width: 28px;
  height: 128px;
  min-height: 128px;
  max-height: 128px;
  flex: 0 0 128px;
}

.mixer-vertical-slider-gain {
  width: 128px;
}

.mixer-control-master > span:first-child {
  font-size: 0.64rem;
}

.mixer-deck-header {
  display: none;
}

.mixer-deck-panel h3 {
  display: none;
}

.mixer-deck-meta {
  display: none;
}

.mixer-deck-stage {
  display: grid;
  gap: 14px;
}

.mixer-deck-top-row,
.mixer-deck-bottom-row {
  display: flex;
  gap: 14px;
}

.mixer-deck-top-row {
  align-items: stretch;
}

.mixer-deck-bottom-row {
  align-items: flex-end;
}

.mixer-deck-panel-right .mixer-deck-top-row,
.mixer-deck-panel-right .mixer-deck-bottom-row {
  flex-direction: row-reverse;
}

.mixer-deck-side {
  display: flex;
  min-width: 0;
}

.mixer-deck-side-stack {
  position: relative;
  align-self: stretch;
  justify-content: center;
  align-items: center;
}

.mixer-deck-top-side {
  height: 288px;
  min-height: 288px;
}

.mixer-deck-top-side-outer {
  flex: 0 0 72px;
}

.mixer-deck-top-side-inner {
  flex: 0 0 112px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 8px 10px;
}

.mixer-side-deck-label {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 120px;
  color: #8fb0ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.9;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.mixer-deck-panel-left .mixer-deck-top-side-inner .mixer-side-deck-label {
  right: 4px;
}

.mixer-deck-panel-right .mixer-deck-top-side-inner .mixer-side-deck-label {
  left: 4px;
}

.mixer-deck-center {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.deck-cue-button-corner {
  position: relative;
  z-index: 3;
  width: 66px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #7b6718;
  background: #5b4a12;
  color: #fff2b8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0.4;
  transition: opacity 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.deck-cue-button-corner.is-active {
  background: #f0d36a;
  border-color: #fff0b8;
  color: #2e2200;
  opacity: 1;
}

.deck-cue-button-corner.is-active:hover:not(:disabled) {
  background: #f5dc81;
}

.deck-cue-button-corner:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.deck-center-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.deck-loop-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-parameter-control {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #364154;
  background: linear-gradient(180deg, rgba(18, 25, 38, 0.96), rgba(12, 17, 27, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.deck-parameter-label {
  color: #bcc9df;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-parameter-value {
  min-width: 44px;
  text-align: center;
  color: #eef3ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.deck-parameter-arrow {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #4a566d;
  background: radial-gradient(circle at 30% 30%, #314056, #18212f 72%);
  color: #eef4ff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.22);
}

.deck-parameter-arrow:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 30%, #3b4d67, #1d2838 72%);
}

.deck-parameter-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.deck-parameter-arrow-left::before {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid currentColor;
  margin-left: -1px;
}

.deck-parameter-arrow-right::before {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 1px;
}

.deck-parameter-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.deck-loop-button {
  border: 1px solid rgba(194, 112, 35, 0.34);
  background: rgba(92, 57, 24, 0.28);
  color: rgba(255, 188, 128, 0.38);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.deck-loop-button:hover:not(:disabled) {
  background: rgba(113, 68, 28, 0.42);
}

.deck-loop-button.is-ready {
  background: rgba(168, 94, 32, 0.76);
  border-color: rgba(255, 171, 94, 0.72);
  color: rgba(255, 232, 205, 0.94);
}

.deck-loop-button.is-ready:hover:not(:disabled) {
  background: rgba(189, 107, 36, 0.86);
}

.deck-loop-button.is-active {
  background: #ff9f2f;
  border-color: #ffd395;
  color: #2d1200;
  box-shadow: 0 0 18px rgba(255, 159, 47, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.deck-loop-button.is-active:hover:not(:disabled) {
  background: #ffab49;
}

.deck-loop-button-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mixer-deck-player-host {
  position: relative;
  min-height: 228px;
}

.mixer-deck-player-host:empty::before {
  content: 'Deck audio will appear here when a track is loaded.';
  display: block;
  padding: 12px;
  border: 1px dashed #364156;
  border-radius: 10px;
  color: #8796b2;
  background: rgba(11, 14, 20, 0.72);
}

.mixer-deck-bottom-group {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.mixer-deck-bottom-group-outer {
  gap: 10px;
  flex: 0 0 auto;
}

.mixer-deck-bottom-group-center {
  flex: 1;
  justify-content: center;
}

.mixer-deck-bottom-group-inner {
  flex: 0 0 auto;
}

.mixer-eq-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.mixer-control {
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.76);
  border: 1px solid #2f3849;
}

.mixer-control span:first-child {
  color: #9fb0ca;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mixer-control-value {
  color: #eef2ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.mixer-control-readout {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none !important;
  color: #eef2ff !important;
}

.mixer-control-vertical {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 72px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mixer-tempo-nudge-row {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mixer-tempo-nudge {
  width: 22px;
  height: 22px;
}

.mixer-tempo-nudge.deck-parameter-arrow-left::before {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-right-width: 6px;
}

.mixer-tempo-nudge.deck-parameter-arrow-right::before {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 6px;
}

.mixer-control-compact {
  width: 64px;
  padding: 18px 6px 4px;
}

.mixer-control-knob {
  justify-items: center;
  align-content: start;
  position: relative;
}

.mixer-control-knob > span:first-child {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 1;
}

.mixer-hidden-range {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mixer-vertical-slider {
  --mixer-fader-track-size: 2px;
  --mixer-fader-thumb-width: 17px;
  --mixer-fader-thumb-height: 38px;
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 24px;
  padding: 0;
  margin: 0;
  display: block;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  background: transparent;
  border: 0;
}

.mixer-vertical-slider::-webkit-slider-runnable-track {
  height: var(--mixer-fader-track-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--mixer-fader-thumb-width);
  height: var(--mixer-fader-thumb-height);
  margin-top: calc((var(--mixer-fader-track-size) - var(--mixer-fader-thumb-height)) / 2);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(90deg, transparent 0%, transparent 44%, rgba(255, 255, 255, 0.96) 44%, rgba(255, 255, 255, 0.96) 56%, transparent 56%, transparent 100%),
    linear-gradient(180deg, #24272d 0%, #0b0c0f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.42);
}

.mixer-vertical-slider::-moz-range-track {
  height: var(--mixer-fader-track-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider::-moz-range-progress {
  height: var(--mixer-fader-track-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider::-moz-range-thumb {
  width: var(--mixer-fader-thumb-width);
  height: var(--mixer-fader-thumb-height);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(90deg, transparent 0%, transparent 44%, rgba(255, 255, 255, 0.96) 44%, rgba(255, 255, 255, 0.96) 56%, transparent 56%, transparent 100%),
    linear-gradient(180deg, #24272d 0%, #0b0c0f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.42);
}

.mixer-vertical-slider-tempo::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-tempo::-moz-range-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-tempo::-moz-range-progress {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-gain::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-gain::-moz-range-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-gain::-moz-range-progress {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-master::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-master::-moz-range-track {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-vertical-slider-master::-moz-range-progress {
  background: rgba(255, 255, 255, 0.94);
}

.mixer-slider-shell {
  position: relative;
  width: 28px;
  height: 196px;
  min-height: 196px;
  max-height: 196px;
  flex: 0 0 196px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.mixer-slider-detent {
  position: absolute;
  left: 50%;
  width: 38px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.mixer-slider-detent-tempo {
  width: 46px;
  top: calc(50% - 1px);
}

.mixer-slider-detent-gain {
  width: 42px;
  top: calc(25% - 1px);
}

.mixer-slider-threshold {
  position: absolute;
  left: 50%;
  width: 34px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  pointer-events: none;
}

.mixer-slider-threshold-tempo-top {
  top: calc(25% - 1px);
}

.mixer-slider-threshold-tempo-bottom {
  top: calc(75% - 1px);
}

.mixer-slider-threshold-master-top {
  width: 36px;
  top: calc((var(--mixer-fader-thumb-width) / 2) - 1px);
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
}

.mixer-knob-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  top: 5px;
}

.mixer-knob-detent {
  position: absolute;
  border-radius: 999px;
  background: rgba(214, 220, 232, 0.72);
  box-shadow: 0 0 6px rgba(214, 220, 232, 0.16);
  pointer-events: none;
}

.mixer-knob-detent-left,
.mixer-knob-detent-right {
  top: 50%;
  width: 6px;
  height: 1px;
  transform: translateY(-50%);
}

.mixer-knob-detent-left {
  left: 0;
}

.mixer-knob-detent-right {
  right: 0;
}

.mixer-knob-detent-top {
  top: 0;
  left: 50%;
  width: 1px;
  height: 6px;
  transform: translateX(-50%);
}

.mixer-knob {
  --knob-angle: 0deg;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #4a566d;
  background: radial-gradient(circle at 30% 30%, #2a3547, #151c29 70%);
  position: relative;
  cursor: ns-resize;
  touch-action: none;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.35);
}

.mixer-knob:hover {
  background: radial-gradient(circle at 30% 30%, #324055, #192231 70%);
}

.mixer-knob::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 11px;
  border-radius: 999px;
  background: #8dc7ff;
  transform: translate(-50%, -88%) rotate(var(--knob-angle));
  transform-origin: center 12px;
  box-shadow: 0 0 8px rgba(127, 180, 255, 0.35);
}

.mixer-knob-reset {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #7a3030;
  background: #2a1216;
  color: transparent;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mixer-knob-reset::before,
.mixer-knob-reset::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: #ff6b6b;
}

.mixer-knob-reset::before {
  transform: rotate(45deg);
}

.mixer-knob-reset::after {
  transform: rotate(-45deg);
}

.mixer-knob-reset:hover {
  background: #3a161c;
}

.mixer-control-cue-mix {
  width: 64px;
  align-self: center;
}

.mixer-control-cue-mix .mixer-control-value {
  min-width: 40px;
  text-align: center;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.mixer-knob-cue-gain,
.mixer-knob-cue-mix {
  cursor: ns-resize;
}

.deck-transport-button {
  width: 94px;
  height: 58px;
  border-radius: 14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.deck-play-button {
  border: 1px solid #295d36;
  background: #21492a;
  color: #d9ffe2;
}

.deck-play-button:hover {
  background: #2a5c34;
}

.deck-play-button.is-playing {
  background: #2ad462;
  border-color: #6ff39a;
  color: #06210f;
}

.deck-play-button.is-playing:hover {
  background: #3be173;
}

.deck-sync-button {
  border: 1px solid #244865;
  background: #17324a;
  color: #d9edff;
}

.deck-sync-button:hover {
  background: #1d3d5a;
}

.deck-sync-button.is-active {
  background: #63b8ff;
  border-color: #a7daff;
  color: #071a2b;
}

.deck-sync-button.is-active:hover {
  background: #7bc5ff;
}

.deck-sync-button-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-cue-button {
  border: 1px solid #5d4f1a;
  background: #30270f;
  color: #f5e5a6;
}

.deck-cue-button:hover {
  background: #3b3114;
}

.deck-cue-button.is-active {
  background: #f0d36a;
  border-color: #fff0b8;
  color: #2e2200;
}

.deck-cue-button.is-active:hover {
  background: #f5dc81;
}

.deck-transport-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}

.deck-transport-button.is-paused .deck-transport-icon::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
}

.deck-transport-button.is-playing .deck-transport-icon::before,
.deck-transport-button.is-playing .deck-transport-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
}

.deck-transport-button.is-playing .deck-transport-icon::before {
  left: 4px;
}

.deck-transport-button.is-playing .deck-transport-icon::after {
  right: 4px;
}

.suggested-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-load-button {
  background: #25354f;
  border: 1px solid #4b678f;
  color: #eef4ff;
}

.suggestion-load-button:hover {
  background: #31496c;
}

.suggestion-load-button.is-active {
  background: #5b8cff;
  border-color: #8fb0ff;
}

@media (max-width: 980px) {
  .primary-grid,
  .secondary-decks-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-grid > .results-panel:first-child,
  .primary-grid > .results-panel:last-child,
  .secondary-decks-grid > .results-panel:first-child,
  .secondary-decks-grid > .results-panel:last-child {
    grid-column: auto;
  }

  .mixer-grid-stack {
    display: grid;
    gap: 0;
  }

  .master-mixer-panel {
    position: static;
    order: 2;
    width: min(100%, 360px);
    margin: 0 auto 16px;
    transform: none;
  }

  .master-mixer-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
  }

  .master-meter-panel {
    width: auto;
    min-width: 0;
  }

  .master-meter-shell {
    min-height: 182px;
  }

  .cue-meter-shell {
    min-height: 182px;
  }

  .mixer-deck-top-row,
  .mixer-deck-bottom-row,
  .mixer-deck-panel-right .mixer-deck-top-row,
  .mixer-deck-panel-right .mixer-deck-bottom-row {
    flex-direction: column;
  }

  .mixer-deck-side,
  .mixer-deck-bottom-group {
    width: 100%;
    min-width: 0;
  }

  .mixer-deck-top-side {
    height: auto;
    min-height: 0;
    padding-inline: 0;
    justify-content: center;
  }

  .mixer-deck-bottom-group,
  .mixer-eq-strip {
    justify-content: center;
  }

  .mixer-eq-strip {
    flex-wrap: wrap;
  }
}

#deck-2-player-stage,
#deck-4-player-stage {
  position: relative;
  width: calc(100% + 30px);
  min-height: 228px;
  margin-inline: -30px;
}

.mixer-deck-player-stage {
  position: relative;
  width: calc(100% + 30px);
  min-height: 228px;
  margin-inline: -0px;
}

.mixer-deck-player-host:empty::before {
  content: attr(data-empty-message);
}

.deck-picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.deck-picker-overlay > * {
  pointer-events: auto;
}

.deck-picker-overlay.is-open {
  align-items: flex-start;
  padding-top: 5px;
}

.deck-picker-window-button {
  min-width: 220px;
  min-height: 48px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.deck-picker-form {
  width: 100%;
  align-self: flex-start;
  display: grid;
  gap: 12px;
  padding: 6px;
  border: 1px solid rgba(127, 180, 255, 0.28);
  border-radius: 14px;
  background: rgba(7, 12, 20, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding:15px;
}

.deck-picker-status-row {
  display: flex;
  justify-content: flex-end;
}

.deck-picker-warning {
  color: #f0a04b;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: right;
}

.deck-picker-error-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 124, 105, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(72, 14, 12, 0.96), rgba(39, 8, 13, 0.96));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  color: #ffd8d1;
  font-size: 0.82rem;
  line-height: 1.4;
}

.deck-picker-error-dismiss {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 181, 168, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff1ed;
  font: inherit;
  padding: 6px 12px;
  cursor: pointer;
}

.deck-picker-error-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
}

.deck-picker-source-row,
.deck-picker-controls-row {
  display: grid;
  gap: 12px;
}

.deck-picker-source-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.deck-picker-controls-row {
  align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deck-picker-controls-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-picker-controls-row label span {
  white-space: nowrap;
}

.deck-picker-controls-row input {
  width: 76px;
  flex: 0 0 76px;
  text-align: center;
}

.deck-picker-actions-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.deck-picker-actions-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.deck-picker-actions-row button {
  min-width: 132px;
  min-height: 42px;
}

.deck-picker-actions-center #analyse-button {
  min-width: 228px;
}

.deck-picker-actions-row #close-track-picker-button {
  position: absolute;
  right: 0;
}

.deck-picker-form label {
  min-width: 0;
}

.deck-picker-form input {
  width: 100%;
  box-sizing: border-box;
}

.deck-picker-launch-button {
  min-height: 58px;
  padding-inline: 16px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .mixer-deck-top-side,
  .mixer-deck-bottom-group,
  .mixer-eq-strip {
    justify-content: center;
  }

  .mixer-deck-player-stage {
    width: 100%;
    margin-inline: 0;
  }

  .deck-picker-source-row,
  .deck-picker-controls-row {
    grid-template-columns: 1fr;
  }

  .deck-picker-status-row,
  .deck-picker-actions-row {
    justify-content: stretch;
  }

  .deck-picker-warning {
    width: 100%;
    text-align: left;
  }

  .deck-picker-error-popup {
    align-items: flex-start;
    flex-direction: column;
  }

  .deck-picker-actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .suggested-track-preview {
    align-items: stretch;
    gap: 10px;
  }

  .suggested-track-preview-line {
    align-items: flex-start;
  }

  .suggested-track-preview-title,
  .suggested-track-preview-facts,
  .suggested-track-preview-match {
    white-space: normal;
  }

  .suggested-track-preview-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 40px;
  }
}
