/* ==========================================================================
   BeatDesk BOOTH v4 — intuitive single-column host layout
   One aligned column · clear top-to-bottom flow · no fighting grids
   ========================================================================== */

.bd-host-page {
  --booth-bg: #06040c;
  --booth-panel: #120c22;
  --booth-panel-2: #1a1230;
  --booth-line: rgba(157, 78, 221, 0.3);
  --booth-border: #9d4edd;
  --booth-hot: #ff2d95;
  --booth-lime: #b8ff3c;
  --booth-cyan: #00f0ff;
  --booth-gold: #ffd23f;
  --booth-text: #fff8f0;
  --booth-muted: #9588b8;
  --booth-max: 720px;
  --booth-pad: 1rem;
  --booth-card-pad: 1.25rem;
}

@media (min-width: 1024px) {
  .bd-host-page {
    --booth-max: 72rem;
    --booth-pad: 1.25rem;
    --booth-card-pad: 1.5rem;
  }
}

/* ── Single page column — hero + player share one width ── */

.bd-host-page .pb-16 {
  max-width: var(--booth-max) !important;
  margin: 0 auto !important;
  padding: var(--booth-pad) var(--booth-pad) 2rem !important;
  background: var(--booth-bg) !important;
}

.bd-host-page .pb-16::before {
  display: none !important;
}

/* ── Mix header — compact title block above the booth card ── */

.bd-host-page .game-hero--detail,
.bd-host-page .game-hero--detail.bd-mix-header {
  display: block !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bd-host-page .bd-mix-header::after {
  content: none;
}

.bd-host-page .bd-mix-header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 !important;
  box-sizing: border-box;
}

.bd-host-page .bd-mix-header-nav {
  display: flex;
  align-items: center;
}

.bd-host-page .bd-mix-header-nav > a.inline-flex {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0 !important;
  margin: 0 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--booth-muted) !important;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.bd-host-page .bd-mix-header-nav > a.inline-flex:hover {
  color: var(--booth-text) !important;
}

.bd-host-page .bd-mix-header-nav > a.inline-flex svg {
  width: 1rem !important;
  height: 1rem !important;
  opacity: 0.75;
}

.bd-host-page .bd-mix-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bd-host-page .bd-mix-header-copy {
  flex: 1;
  min-width: 0;
}

.bd-host-page .bd-mix-header-copy h1 {
  font-family: "Bebas Neue", impact, sans-serif !important;
  font-size: clamp(1.5rem, 5vw, 2rem) !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1.05 !important;
  margin: 0 0 0.35rem !important;
  color: var(--booth-text) !important;
}

.bd-host-page .bd-mix-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--booth-muted);
}

.bd-host-page .bd-mix-meta .rounded-full.border {
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  padding: 0.125rem 0.45rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  background: rgba(255, 210, 63, 0.12) !important;
  border-color: rgba(255, 210, 63, 0.28) !important;
  color: var(--booth-gold) !important;
  box-shadow: none;
}

.bd-host-page .bd-mix-meta .rounded-full.border.bg-teal-500\/20 {
  background: rgba(45, 212, 191, 0.12) !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
  color: #5eead4 !important;
}

.bd-host-page .bd-mix-meta .rounded-full.border.bg-coral\/20 {
  background: rgba(255, 107, 107, 0.12) !important;
  border-color: rgba(255, 107, 107, 0.28) !important;
  color: #ff8a8a !important;
}

.bd-host-page .bd-mix-meta > .flex.items-center {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  font-size: 0.8125rem !important;
  color: var(--booth-muted) !important;
  letter-spacing: 0;
  text-transform: none;
}

.bd-host-page .bd-mix-meta > .flex.items-center::before {
  content: "·";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: rgba(149, 136, 184, 0.7);
  font-weight: 700;
  line-height: 1;
}

.bd-host-page .bd-mix-meta > .flex.items-center svg {
  display: none !important;
}

.bd-host-page .bd-mix-header-icons {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.bd-host-page .bd-mix-header-icons .ui-icon-btn {
  width: 2rem !important;
  height: 2rem !important;
  flex: 0 0 2rem !important;
  border: 1px solid rgba(157, 78, 221, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(18, 12, 34, 0.5) !important;
  color: var(--booth-muted) !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bd-host-page .bd-mix-header-icons .ui-icon-btn:hover {
  background: rgba(157, 78, 221, 0.15) !important;
  border-color: rgba(157, 78, 221, 0.4) !important;
  color: var(--booth-text) !important;
}

.bd-host-page .bd-mix-header-print {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.bd-host-page .bd-mix-title-block p {
  display: none !important;
}

.bd-host-page .bd-mix-header-actions--empty {
  display: none !important;
}

@media (min-width: 640px) {
  .bd-host-page .bd-mix-header-copy h1 {
    font-size: clamp(1.625rem, 3.2vw, 2.125rem) !important;
  }
}

.bd-host-page .game-hero--detail:not(.bd-mix-header) .relative.mx-auto {
  display: block !important;
  max-width: none !important;
  padding: 0 !important;
}

.bd-host-page .game-hero--detail .game-hero-bg,
.bd-host-page .game-hero--detail .game-hero-overlay {
  display: none !important;
}

.bd-host-page .game-hero--detail:not(.bd-mix-header) .relative.mx-auto > a.inline-flex {
  display: inline-flex !important;
  padding: 0 0 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--booth-muted) !important;
}

.bd-host-page .game-hero--detail .mt-5.flex {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Title block — was incorrectly hidden; must show */
.bd-host-page .game-hero--detail .mt-5.flex > div:first-child {
  display: block !important;
  min-width: 0;
}

.bd-host-page .game-hero--detail h1 {
  font-family: "Bebas Neue", impact, sans-serif !important;
  font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0.5rem 0 0 !important;
}

.bd-host-page .game-hero--detail .mt-5.flex > div:first-child p {
  font-size: 0.875rem !important;
  color: var(--booth-muted) !important;
  margin: 0.375rem 0 0 !important;
  line-height: 1.45 !important;
}

.bd-host-page .game-hero--detail .rounded-full.border {
  font-size: 0.625rem !important;
}

/* Action row — compact print buttons */
.bd-host-page .game-hero--detail .mt-5.flex > div:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.375rem !important;
  width: 100% !important;
}

.bd-host-page .game-hero--detail .mt-5.flex > div:last-child .ui-icon-btn {
  width: 2.125rem !important;
  height: 2.125rem !important;
  flex: 0 0 2.125rem !important;
}

.bd-host-page .game-hero--detail .action-chip {
  min-height: 2.125rem !important;
  padding: 0.35rem 0.625rem !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px !important;
  justify-content: center;
  background: var(--booth-panel-2) !important;
  border: 1px solid var(--booth-border) !important;
  flex: 1 1 calc(50% - 0.25rem) !important;
  gap: 0.35rem !important;
}

.bd-host-page .game-hero--detail .action-chip svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
}

.bd-host-page .game-hero--detail .action-chip:first-of-type {
  background: var(--booth-lime) !important;
  color: #0a0612 !important;
  border-color: #0a0612 !important;
  min-height: 2.125rem !important;
  font-size: 0.6875rem !important;
}

.bd-host-page .game-hero--detail .ui-icon-btn {
  width: 2.125rem !important;
  height: 2.125rem !important;
  border: 1px solid var(--booth-border) !important;
  border-radius: 6px !important;
  background: var(--booth-panel-2) !important;
}

@media (min-width: 640px) {
  .bd-host-page .game-hero--detail .mt-5.flex {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
  }

  .bd-host-page .game-hero--detail .mt-5.flex > div:last-child {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .bd-host-page .game-hero--detail .action-chip {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .bd-host-page .game-hero--detail .ui-icon-btn {
    width: 2.125rem !important;
  }
}

/* ── Player wrapper — control room card ── */

.bd-host-page .mx-auto.max-w-6xl {
  max-width: none !important;
  margin: 0 !important;
  padding: var(--booth-card-pad) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.875rem !important;
  border: 1px solid rgba(157, 78, 221, 0.38);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 9, 26, 0.92), rgba(6, 4, 12, 0.96));
  box-shadow:
    0 0 0 1px rgba(157, 78, 221, 0.06) inset,
    0 24px 56px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  box-sizing: border-box;
}

.bd-host-page .mx-auto.max-w-6xl::before,
.bd-host-page .mx-auto.max-w-6xl::after {
  content: none;
}

.bd-host-page .mx-auto.max-w-6xl > .game-player {
  padding: 0 !important;
  box-sizing: border-box;
}

.bd-host-page .mx-auto.max-w-6xl > .bd-host-console {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* ── Game player — music first; side-by-side queue on wide screens ── */

.bd-host-page .mx-auto.max-w-6xl > .game-player,
.bd-host-page .mx-auto.max-w-6xl > .game-player.bd-host-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  grid-template-columns: unset !important;
}

.bd-host-page .game-player:not(.bd-host-grid) {
  padding: 0 !important;
}

/* ══════════════════════════════════════
   STAGE CARD — now playing + controls
   ══════════════════════════════════════ */

.bd-host-page .sp-player {
  background: var(--booth-panel) !important;
  border: 2px solid var(--booth-border) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Progress — full width, label then bar */
.bd-host-page .sp-player-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.375rem !important;
  width: 100% !important;
  border-bottom: 1px solid var(--booth-line);
  padding-bottom: 0.875rem !important;
  margin: 0 !important;
}

.bd-host-page .sp-brand {
  display: none !important;
}

.bd-host-page .sp-game-bar {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem !important;
}

.bd-host-page .sp-game-bar-fill {
  order: 2;
  height: 8px !important;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--booth-hot), var(--booth-lime)) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.bd-host-page .sp-game-bar-label {
  order: 1;
  display: block !important;
  text-align: left !important;
  margin: 0 !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--booth-gold) !important;
}

/* Now playing row: artwork | song + controls (desktop-style flow) */
.bd-host-page .sp-player-body {
  display: grid !important;
  grid-template-columns: 112px 1fr !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "art panel"
    "opts opts" !important;
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
}

.bd-host-page .sp-player-visual {
  grid-area: art !important;
  width: 112px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.bd-host-page .sp-artwork {
  width: 112px !important;
  height: 112px !important;
  max-width: 112px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

.bd-host-page .sp-letter {
  font-family: "Bebas Neue", impact, sans-serif !important;
  font-size: 2.75rem !important;
}

.bd-host-page .sp-countdown {
  width: 112px !important;
  padding: 0 !important;
  gap: 0.5rem !important;
}

.bd-host-page .sp-countdown-ring {
  width: 112px !important;
  height: 112px !important;
}

.bd-host-page .sp-countdown-num {
  font-size: 2rem !important;
}

.bd-host-page .sp-countdown-copy {
  display: none !important;
}

.bd-host-page .sp-player-panel {
  grid-area: panel !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.625rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

.bd-host-page .sp-options {
  grid-area: opts !important;
}

.bd-host-page .sp-track {
  order: 1;
  text-align: left !important;
  padding: 0 !important;
  width: 100% !important;
}

.bd-host-page .sp-alert,
.bd-host-page .sp-hint {
  order: 2;
}

.bd-host-page .sp-controls {
  order: 3;
}

.bd-host-page .sp-player-actions {
  order: 4;
}

.bd-host-page .sp-scrubber {
  order: 5;
}

.bd-host-page .sp-title {
  font-family: "Bebas Neue", impact, sans-serif !important;
  font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.bd-host-page .sp-artist {
  font-size: 0.875rem !important;
  margin: 0.25rem 0 0 !important;
}

.bd-host-page .sp-status {
  display: inline-block !important;
  margin: 0.375rem 0 0 !important;
  font-size: 0.625rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem !important;
  background: rgba(255, 45, 149, 0.12) !important;
  color: var(--booth-hot) !important;
  border: 1px solid var(--booth-hot) !important;
}

.bd-host-page .sp-alert,
.bd-host-page .sp-hint {
  text-align: left !important;
  font-size: 0.8125rem !important;
  margin: 0 !important;
}

.bd-host-page .sp-scrubber {
  width: 100% !important;
}

/* Transport — inline under song info (not fixed/sticky) */
.bd-host-page .sp-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25rem !important;
  width: 100% !important;
  padding: 0.25rem 0 0 !important;
  margin: 0 !important;
  border: none !important;
}

.bd-host-page .sp-ctrl--ghost {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 8px !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  background: var(--booth-panel-2) !important;
}

.bd-host-page .sp-ctrl--play {
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 10px !important;
  background: var(--booth-lime) !important;
  color: #0a0612 !important;
  border: 2px solid #0a0612 !important;
  box-shadow: none !important;
}

.bd-host-page .sp-ctrl-label {
  font-size: 0.5625rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

/* Auto DJ + volume — two equal columns */
.bd-host-page .sp-player-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.bd-host-page .sp-autodj {
  grid-column: 1;
}

.bd-host-page .sp-volume {
  grid-column: 2;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--booth-line) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.625rem !important;
  min-height: 2.75rem !important;
}

.bd-host-page .sp-autodj-btn {
  width: 100% !important;
  min-height: 2.75rem !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 8px !important;
  border: 2px solid #fff !important;
  background: var(--booth-hot) !important;
  box-shadow: none !important;
  padding: 0 0.5rem !important;
}

.bd-host-page .sp-autodj-btn--stop {
  background: transparent !important;
  border-color: var(--booth-hot) !important;
  color: var(--booth-hot) !important;
}

.bd-host-page .sp-vol-slider {
  flex: 1 !important;
  min-width: 0 !important;
  accent-color: var(--booth-lime) !important;
}

.bd-host-page .sp-options {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--booth-line) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.75rem !important;
}

.bd-host-page .sp-options summary {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--booth-muted) !important;
}

/* ══════════════════════════════════════
   QUEUE — full width below stage
   ══════════════════════════════════════ */

.bd-host-page .sp-queue {
  background: var(--booth-panel) !important;
  border: 2px solid var(--booth-border) !important;
  border-radius: 12px !important;
  padding: 0.875rem 1rem !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: min(42vh, 16rem) !important;
  position: static !important;
  top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.bd-host-page .sp-queue-head {
  flex-shrink: 0;
}

.bd-host-page .sp-queue-list {
  flex: 1;
  min-height: 0;
}

.bd-host-page .sp-queue-head {
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--booth-line);
}

.bd-host-page .sp-queue-title {
  font-family: "Bebas Neue", impact, sans-serif !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.1em !important;
  color: var(--booth-gold) !important;
}

.bd-host-page .sp-queue-sub {
  font-size: 0.625rem !important;
  color: var(--booth-muted) !important;
}

.bd-host-page .sp-queue-list {
  overflow-y: auto;
  min-height: 0;
}

.bd-host-page .sp-queue-row {
  min-height: 2.25rem !important;
  padding: 0.375rem 0.5rem !important;
  font-size: 0.8125rem !important;
  border-radius: 4px !important;
}

.bd-host-page .sp-queue-row--now {
  background: rgba(255, 45, 149, 0.12) !important;
  border-left: 3px solid var(--booth-hot) !important;
}

.bd-host-page .sp-queue-row--done {
  opacity: 0.4;
}

/* ── Mobile: full-width control rows so nothing clips off-screen ── */

@media (max-width: 767px) {
  .bd-host-page .sp-player {
    padding: 0.875rem !important;
    overflow: hidden;
  }

  .bd-host-page .sp-player-body {
    display: grid !important;
    grid-template-columns: 4.5rem minmax(0, 1fr) !important;
    grid-template-areas:
      "art track"
      "msg msg"
      "ctrl ctrl"
      "act act"
      "scr scr"
      "opts opts" !important;
    gap: 0.625rem 0.75rem !important;
    min-width: 0;
    width: 100%;
  }

  /* Flatten panel so controls can span full card width */
  .bd-host-page .sp-player-panel {
    display: contents !important;
  }

  .bd-host-page .sp-player-visual {
    grid-area: art !important;
    width: 4.5rem !important;
    align-self: start;
  }

  .bd-host-page .sp-artwork,
  .bd-host-page .sp-countdown-ring {
    width: 4.5rem !important;
    height: 4.5rem !important;
    max-width: 4.5rem !important;
  }

  .bd-host-page .sp-letter {
    font-size: 2rem !important;
  }

  .bd-host-page .sp-countdown {
    width: 4.5rem !important;
  }

  .bd-host-page .sp-track {
    grid-area: track !important;
    align-self: center;
    min-width: 0;
  }

  .bd-host-page .sp-title {
    font-size: clamp(1rem, 4.8vw, 1.35rem) !important;
    overflow-wrap: anywhere;
  }

  .bd-host-page .sp-artist {
    font-size: 0.8125rem !important;
    overflow-wrap: anywhere;
  }

  .bd-host-page .sp-alert,
  .bd-host-page .sp-hint {
    grid-area: msg !important;
    grid-column: 1 / -1;
  }

  .bd-host-page .sp-controls {
    grid-area: ctrl !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.375rem 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .bd-host-page .sp-ctrl--labeled,
  .bd-host-page .sp-ctrl-play-wrap {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .bd-host-page .sp-ctrl--ghost {
    width: 2.625rem !important;
    height: 2.625rem !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .bd-host-page .sp-ctrl--play {
    width: 3.25rem !important;
    height: 3.25rem !important;
    flex-shrink: 0;
  }

  .bd-host-page .sp-ctrl-label,
  .bd-host-page .sp-ctrl-label--play {
    display: none !important;
  }

  .bd-host-page .sp-player-actions {
    grid-area: act !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
    min-width: 0;
  }

  .bd-host-page .sp-autodj,
  .bd-host-page .sp-volume {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  .bd-host-page .sp-autodj-btn {
    font-size: 0.625rem !important;
    letter-spacing: 0.03em !important;
    padding-inline: 0.375rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bd-host-page .sp-volume {
    padding: 0.5rem !important;
  }

  .bd-host-page .sp-vol-btn {
    flex-shrink: 0;
  }

  .bd-host-page .sp-scrubber {
    grid-area: scr !important;
    width: 100% !important;
    min-width: 0;
  }

  .bd-host-page .sp-options {
    grid-area: opts !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .bd-host-page .sp-queue {
    max-height: min(34vh, 14rem) !important;
  }
}

@media (max-width: 380px) {
  .bd-host-page .sp-player-body {
    grid-template-columns: 4rem minmax(0, 1fr) !important;
  }

  .bd-host-page .sp-player-visual,
  .bd-host-page .sp-artwork,
  .bd-host-page .sp-countdown-ring,
  .bd-host-page .sp-countdown {
    width: 4rem !important;
    height: 4rem !important;
    max-width: 4rem !important;
  }

  .bd-host-page .sp-ctrl--ghost {
    width: 2.375rem !important;
    height: 2.375rem !important;
  }

  .bd-host-page .sp-ctrl--play {
    width: 3rem !important;
    height: 3rem !important;
  }

  .bd-host-page .sp-ctrl-icon {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }

  .bd-host-page .sp-ctrl-play-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

/* Bottom dock — phone only; desktop uses inline player controls */
@media (min-width: 768px) {
  .bd-host-dock {
    display: none !important;
  }
}

.bd-host-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hard reset: player-ui grids — desktop side-by-side ── */

@media (min-width: 1024px) {
  .bd-host-page .game-player,
  .bd-host-page .game-player.bd-host-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr) !important;
    grid-template-rows: auto !important;
    gap: 1rem !important;
    align-items: start !important;
  }

  .bd-host-page .sp-player {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
  }

  .bd-host-page .sp-queue {
    grid-column: 2;
    grid-row: 1;
    max-height: none !important;
    min-height: 0 !important;
    height: auto;
    overflow: hidden;
    align-self: start;
  }

  .bd-host-page .sp-queue.bd-queue-synced {
    align-self: stretch;
    display: flex !important;
    flex-direction: column !important;
  }

  .bd-host-page .sp-queue.bd-queue-synced .sp-queue-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .bd-host-page .sp-player-body {
    grid-template-columns: 128px 1fr !important;
  }

  .bd-host-page .sp-artwork {
    width: 128px !important;
    height: 128px !important;
    max-width: 128px !important;
  }

  .bd-host-page .sp-controls {
    justify-content: flex-start !important;
    gap: 1.5rem !important;
  }

  .bd-host-page .sp-player-actions {
    max-width: none !important;
  }
}

@media (max-width: 1023px) {
  .bd-host-page .game-player,
  .bd-host-page .game-player.bd-host-grid {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
