/* ==========================================================================
   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;
}

/* ── 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;
}

/* ── Header block ── */

.bd-host-page .game-hero--detail {
  display: block !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !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 .relative.mx-auto {
  display: block !important;
  max-width: none !important;
  padding: 0 !important;
}

.bd-host-page .game-hero--detail .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 — flush with header ── */

.bd-host-page .mx-auto.max-w-6xl {
  max-width: none !important;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
}

.bd-host-page .mx-auto.max-w-6xl::before {
  display: none !important;
}

/* ── Game player — always single column: stage then queue ── */

.bd-host-page .game-player,
.bd-host-page .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;
  padding: 0 !important;
  grid-template-columns: unset !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 info */
.bd-host-page .sp-player-body {
  display: grid !important;
  grid-template-columns: 112px 1fr !important;
  grid-template-rows: auto !important;
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
}

.bd-host-page .sp-player-visual {
  grid-column: 1 !important;
  grid-row: 1 !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-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

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

.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 — full-width bar under song info */
.bd-host-page .sp-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  width: 100% !important;
  padding: 0.75rem 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--booth-line);
  border-bottom: 1px solid var(--booth-line);
}

.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: 220px !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 {
  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 ── */

@media (max-width: 479px) {
  .bd-host-page .sp-player-body {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .bd-host-page .sp-player-visual {
    grid-column: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .bd-host-page .sp-player-panel {
    grid-column: 1 !important;
  }

  .bd-host-page .sp-track {
    text-align: center !important;
  }

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

@media (max-width: 767px) {
  .bd-host-page .pb-16 {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
  }
}

/* ── Mobile dock ── */

.bd-host-dock {
  display: none;
}

@media (max-width: 767px) {
  .bd-host-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0.5rem var(--booth-pad) calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--booth-panel);
    border-top: 2px solid var(--booth-hot);
  }

  .bd-host-dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3rem;
    border: 2px solid var(--booth-border);
    border-radius: 8px;
    background: var(--booth-panel-2);
    color: var(--booth-text);
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
  }

  .bd-host-dock-btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .bd-host-dock-btn--play {
    background: var(--booth-lime);
    color: #0a0612;
    border-color: #0a0612;
  }
}

.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 never apply on host ── */

@media (min-width: 1024px) {
  .bd-host-page .game-player,
  .bd-host-page .game-player.bd-host-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bd-host-page .sp-player,
  .bd-host-page .sp-queue {
    position: static !important;
    max-height: none !important;
  }

  .bd-host-page .sp-queue {
    max-height: 240px !important;
  }

  .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;
  }
}

@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;
  }
}
