@import url('https://fonts.googleapis.com/css?family=Quantico:400,700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #000;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  font-family: 'Quantico', sans-serif;
  overflow-x: hidden;
}

body.body--spectrum-expanded {
  overflow: hidden;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1406px;
  margin: 0 auto;
  padding: 8px 0;
  box-sizing: border-box;
}

.site-header__spacer {
  grid-column: 1;
  pointer-events: none;
}

.site-header__title {
  grid-column: 2;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.site-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.player__label {
  color: #c0c0c0;
}

.player__section {
  --banger-control-w: 240px;
  --banger-control-h: 48px;
  --banger-stack-gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  box-sizing: border-box;
}

.player__music-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.player__banger-stack {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: var(--banger-control-w);
  gap: var(--banger-stack-gap);
  min-height: calc(var(--banger-control-h) * 2 + var(--banger-stack-gap));
}

.player__banger-upload {
  flex: 0 0 auto;
  margin: 0;
  width: var(--banger-control-w);
  height: var(--banger-control-h);
  padding: 0 12px;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: #000;
  cursor: pointer;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__banger-upload-text {
  display: block;
  line-height: 1.2;
}

.player__track-picker--banger {
  flex: 0 0 auto;
  width: var(--banger-control-w);
  height: var(--banger-control-h);
  margin: 0;
  padding: 0 32px 0 12px;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: #000;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c0c0c0' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.player__album {
  margin: 0;
  flex: 0 0 auto;
  width: calc(var(--banger-control-h) * 2 + var(--banger-stack-gap));
  height: calc(var(--banger-control-h) * 2 + var(--banger-stack-gap));
  align-self: flex-start;
  border: 2px solid #fff;
  overflow: hidden;
  background: #111;
}

.player__album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player__album--placeholder .player__album-img {
  display: none;
}

.player {
  width: 100%;
  max-width: 1406px;
  margin: 0 auto;
  padding: 6px 12px;
  box-sizing: border-box;
}

.player-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.player-layout__main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 800px;
}

body.body--spectrum-expanded .player-queue,
body.body--spectrum-expanded .player-features {
  display: none !important;
}

.player-features {
  flex: 0 0 232px;
  width: 232px;
  border: 2px solid #fff;
  background: #000;
  padding: 10px 10px 12px;
  box-sizing: border-box;
  align-self: flex-start;
}

.player-features__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #888;
  margin: 0 0 10px;
}

.player-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-features__item {
  font-size: 0.62rem;
  line-height: 1.4;
  color: #c0c0c0;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-features__item:last-child {
  border-bottom: none;
}

.player-queue {
  flex: 0 0 232px;
  width: 232px;
  border: 2px solid #fff;
  background: #000;
  padding: 10px 10px 12px;
  box-sizing: border-box;
  align-self: flex-start;
}

.player-queue__block {
  margin-bottom: 12px;
}

.player-queue__block:last-of-type {
  margin-bottom: 0;
}

.player-queue__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #888;
  margin-bottom: 6px;
}

.player-queue__now {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.player-queue__now-track-inner {
  position: relative;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.player-queue__now-track-inner--exit {
  transform: translateY(-120%);
  opacity: 0;
}

.player-queue__track-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  padding-right: 22px;
}

.player-queue__track-album {
  font-size: 0.62rem;
  color: #888;
  margin-top: 4px;
  line-height: 1.2;
}

.player-queue__remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.player-queue__remove:hover {
  color: #fff;
}

.player-queue__next {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.player-queue__next-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 22px 8px 8px;
  margin-bottom: 6px;
  cursor: grab;
  user-select: none;
  transition: border-color 0.12s, opacity 0.12s;
}

.player-queue__next-item:active {
  cursor: grabbing;
}

.player-queue__next-item--drag {
  opacity: 0.45;
}

.player-queue__next-item--over {
  border-color: var(--club-c2, #00eeff);
}

.player-queue__empty {
  color: #555;
  font-size: 0.7rem;
  text-align: center;
  padding: 8px 0;
}

.player-queue__repeat-wrap {
  margin-bottom: 10px;
}

.player-queue__repeat-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  color: #888;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.player-queue__repeat-btn--active {
  border-color: var(--club-c2, #00eeff);
  color: #c0c0c0;
}

.player-queue__add {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.player-queue__upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: #000;
  cursor: pointer;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  text-align: center;
}

.player-queue__upload-text {
  line-height: 1.2;
}

.player-queue__library-wrap {
  position: relative;
  width: 100%;
}

.player-queue__library-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: #000;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.player-queue__library-btn:hover {
  color: #fff;
}

.player-queue__library-btn--open {
  border-color: var(--club-c2, #00eeff);
  color: #fff;
}

.player-queue__library-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 2px solid #fff;
  background: #000;
  box-sizing: border-box;
}

.player-queue__library-item {
  padding: 8px 10px;
  font-family: 'Quantico', sans-serif;
  font-size: 0.58rem;
  line-height: 1.25;
  color: #c0c0c0;
  text-transform: uppercase;
  cursor: pointer;
  word-break: break-word;
}

.player-queue__library-item:hover,
.player-queue__library-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

@media (max-width: 880px) {
  .player-layout {
    flex-direction: column;
  }

  .player-layout__main {
    order: -1;
  }

  .player-queue {
    order: 1;
  }

  .player-features {
    order: 2;
  }

  .player-features,
  .player-queue {
    flex: 1 1 auto;
    width: 100%;
    max-width: 800px;
  }

  .audio-ctrl {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 8px;
    padding: 8px 10px;
    min-height: 0;
  }

  .audio-ctrl__play:not(.audio-ctrl__club),
  .audio-ctrl__club {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
    max-width: none;
    box-sizing: border-box;
  }

  .audio-ctrl__time {
    display: none !important;
  }

  .audio-ctrl__seek {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .audio-ctrl__vol-label {
    flex: 0 0 auto;
  }

  .audio-ctrl__volume {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

.player__spectrum-shell {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.player__spectrum-toolbar {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.player__spectrum-shell:fullscreen .player__spectrum-toolbar,
.player__spectrum-shell:-webkit-full-screen .player__spectrum-toolbar,
.player__spectrum-shell--pseudo-fs .player__spectrum-toolbar {
  display: flex;
  margin-bottom: 8px;
}

.player__fullscreen-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid #fff;
  background: #000;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

@keyframes club-text-flow {
  from { background-position: 0% center; }
  to   { background-position: 300% center; }
}

.club-btn--active {
  background: linear-gradient(
    90deg,
    var(--club-c1, #ff00aa),
    var(--club-c2, #00eeff),
    var(--club-c3, #aaff00),
    var(--club-c1, #ff00aa)
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: club-text-flow 2s linear infinite;
}

.dancer {
  position: fixed;
  bottom: 0;
  z-index: 55;
  width: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dancer--visible {
  opacity: 1;
}

.dancer--in-canvas {
  position: absolute;
  bottom: 0;
}

.club-extra {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.club-extra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-extra--visible {
  opacity: 1;
}

.player__spectrum-shell:fullscreen,
.player__spectrum-shell:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  background: #000;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  box-sizing: border-box;
}

.player__spectrum-shell--pseudo-fs {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  z-index: 100;
  margin: 0;
  background: #000;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.player__spectrum-shell:fullscreen .spectrum-canvas,
.player__spectrum-shell:-webkit-full-screen .spectrum-canvas,
.player__spectrum-shell--pseudo-fs .spectrum-canvas {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - 56px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - 56px);
  height: auto;
  aspect-ratio: 800 / 450;
  margin: 0 auto;
  min-height: 0;
}

.spectrum-canvas {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0;
  box-sizing: border-box;
}

.fs-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.fs-controls--visible {
  opacity: 1;
  pointer-events: auto;
}


.fs-play-btn {
  min-height: 44px;
  padding: 0 32px;
  border: 2px solid #fff;
  background: #000;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.fs-play-btn--club {
  background: linear-gradient(
    90deg,
    var(--club-c1, #ff00aa),
    var(--club-c2, #00eeff),
    var(--club-c3, #aaff00),
    var(--club-c1, #ff00aa)
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: club-text-flow 3s linear infinite;
  background-color: #000;
}

.player__panel {
  width: 100%;
  margin-top: 8px;
  min-height: 30px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: stretch;
  align-items: center;
}

.player__panel--sliders {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: #000;
  border: 2px solid #fff;
  padding: 12px;
  box-sizing: border-box;
}

.player__slider-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.player__slider-row .player__label {
  text-align: left;
  width: 100%;
}

.player__slider-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player__slider {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  cursor: pointer;
}

.player__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #fff;
  cursor: pointer;
}

.player__slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.player__slider::-moz-range-track {
  background: transparent;
}

.player__track-row {
  min-height: 60px;
  align-items: stretch;
}

.player__audio {
  display: none;
}

.audio-ctrl {
  display: flex;
  align-items: center;
  gap: 24px 10px;
  width: 100%;
  background: #000;
  border: 2px solid #fff;
  padding: 10px 14px;
  box-sizing: border-box;
  font-family: 'Quantico', sans-serif;
  color: #fff;
  min-height: 52px;
}

.audio-ctrl__play {
  flex: 0 0 auto;
  width: 60px;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 0;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.audio-ctrl__play:hover {
  background: #fff;
  color: #000;
}

.audio-ctrl__play.audio-ctrl__club:hover {
  background: linear-gradient(
    90deg,
    var(--club-c1, #ff00aa),
    var(--club-c2, #00eeff),
    var(--club-c3, #aaff00),
    var(--club-c1, #ff00aa)
  );
  background-size: 300% auto;
  background-color: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.audio-ctrl__club {
  transition: none;
  background: linear-gradient(
    90deg,
    var(--club-c1, #ff00aa),
    var(--club-c2, #00eeff),
    var(--club-c3, #aaff00),
    var(--club-c1, #ff00aa)
  );
  background-size: 300% auto;
  background-color: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: club-text-flow 3s linear infinite;
}

.audio-ctrl__club.club-btn--active {
  border-color: var(--club-c2, #00eeff);
}

.audio-ctrl__time {
  flex: 0 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #c0c0c0;
}

.audio-ctrl__seek {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  cursor: pointer;
  align-self: center;
}

.audio-ctrl__seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #fff;
  pointer-events: none;
}

.audio-ctrl__seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s;
}

.audio-ctrl__seek:hover .audio-ctrl__seek-thumb {
  transform: translate(-50%, -50%) scale(1.35);
}

.audio-ctrl__vol-label {
  flex: 0 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.audio-ctrl__volume {
  flex: 0 0 72px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  cursor: pointer;
}

.audio-ctrl__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #fff;
  cursor: pointer;
}

.audio-ctrl__volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.audio-ctrl__volume::-moz-range-track {
  background: transparent;
}

.upload-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: auto;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.upload-busy-overlay__box {
  border: 2px solid #fff;
  background: #000;
  padding: 22px 36px;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  isolation: isolate;
  cursor: pointer;
}

.start-overlay--hidden {
  display: none;
}

@keyframes start-fly-in {
  0%   { transform: scale(1);   opacity: 1; }
  60%  { transform: scale(4);   opacity: 1; }
  100% { transform: scale(14);  opacity: 0; }
}

.start-overlay--zooming {
  animation: start-fly-in 0.45s ease-in forwards;
  pointer-events: none;
}

.start-overlay__bg {
  position: absolute;
  inset: 0;
  background: #fff;
}

.start-overlay__cursor {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(50vw - 50%), calc(50vh - 50%));
  pointer-events: none;
  user-select: none;
  max-width: 40vmin;
  max-height: 40vmin;
  will-change: transform;
  transition: transform 0.5s ease-out;
}

.start-overlay__footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.start-overlay__powered-label {
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Quantico', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.start-overlay__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-family: 'Quantico', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.start-overlay__brand-logo {
  width: 28px;
  height: 28px;
}

.start-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #000;
  color: #fff;
  mix-blend-mode: multiply;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 14vw, 7rem);
  cursor: pointer;
}

body.body--custom-bg {
  background-size: cover;
  background-position: center;
}

body.body--custom-bg .player__spectrum-shell:fullscreen,
body.body--custom-bg .player__spectrum-shell:-webkit-full-screen,
body.body--custom-bg .player__spectrum-shell--pseudo-fs {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

.player__bg-stack {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: var(--banger-control-w);
  gap: var(--banger-stack-gap);
  margin-left: auto;
  align-self: flex-start;
}

.player__bg-wrap {
  position: relative;
  flex: 0 0 auto;
}

.player__bg-upload {
  flex: 0 0 auto;
  width: var(--banger-control-w);
  height: var(--banger-control-h);
  border: 2px solid #fff;
  background: #000;
  cursor: pointer;
  color: #c0c0c0;
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 12px;
  transition: color 0.15s, border-color 0.15s;
}

.player__bg-upload:hover {
  color: #fff;
}

.player__bg-upload-text {
  display: block;
  line-height: 1.2;
  pointer-events: none;
}

.player__bg-remove {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
  transition: background 0.15s, color 0.15s;
}

.player__bg-remove:hover {
  background: #fff;
  color: #000;
}

.player__color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player__color-swatch-wrap {
  position: relative;
  flex: 0 0 auto;
}

.player__color-swatch {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.12s;
  overflow: hidden;
}

.player__color-swatch:hover {
  transform: scale(1.1);
}

.player__color-remove-btn {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border: 1px solid #888;
  background: #000;
  color: #c0c0c0;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quantico', sans-serif;
  box-sizing: border-box;
}

.player__color-remove-btn:hover {
  border-color: #fff;
  color: #fff;
}

.player__color-add-btn {
  width: 44px;
  height: 44px;
  border: 2px dashed #555;
  background: #000;
  color: #555;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quantico', sans-serif;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  transition: border-color 0.12s, color 0.12s;
}

.player__color-add-btn:hover {
  border-color: #fff;
  color: #fff;
}

.player__color-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
}

/* ── Customize Dancers Modal ─────────────────────────── */
.dancers-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.dancers-modal[hidden] {
  display: none !important;
}

.dancers-modal__box {
  width: min(92vw, 680px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #fff;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
}

.dancers-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid #fff;
  flex-shrink: 0;
}

.dancers-modal__title {
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.dancers-modal__close {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.dancers-modal__close:hover {
  background: #fff;
  color: #000;
}

.dancers-modal__content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 80px;
}

.dancers-modal__preset-section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 0 10px;
}

.dancers-modal__preset-section:first-child {
  border-top: none;
}

.dancers-modal__preset-section--custom .dancers-modal__preset-name {
  background: linear-gradient(90deg, #ff6ec7, #ffe14d, #7ef7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dancers-modal__preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
  gap: 10px;
}

.dancers-modal__preset-name {
  font-family: 'Quantico', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.dancers-modal__preset-toggle {
  font-family: 'Quantico', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 2px 8px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  min-width: 36px;
  text-align: center;
}

.dancers-modal__preset-toggle--on {
  color: #fff;
  border-color: #fff;
}

.dancers-modal__preset-toggle--off {
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.dancers-modal__preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 16px 2px;
  align-content: flex-start;
}

.dancers-modal__preset-grid--off {
  opacity: 0.55;
  pointer-events: none;
}

.dancer-thumb {
  position: relative;
  width: 90px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #111;
  flex-shrink: 0;
  overflow: visible;
}

.dancer-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dancer-thumb__remove {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background 0.12s, color 0.12s;
}

.dancer-thumb__remove:hover {
  background: #fff;
  color: #000;
}

.dancers-modal__preset-section.dancers-modal__extra-section {
  padding: 0 0 10px;
}

.dancers-modal__section-label {
  font-family: 'Quantico', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.dancers-modal__extra-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 16px 2px;
}

.dancer-thumb--add {
  cursor: pointer;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  background: transparent;
  width: 90px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.dancer-thumb--add:hover {
  border-color: #fff;
}

.dancer-thumb__add-label {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  pointer-events: none;
  font-weight: 300;
}

.dancers-modal__footer {
  border-top: 2px solid #fff;
  padding: 12px 16px;
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dancers-modal__upload {
  flex: 1 1 auto;
  min-width: 120px;
  height: 44px;
  width: auto;
}

/* Confirm overlay */
.dancers-confirm {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.80);
}

.dancers-confirm[hidden] {
  display: none !important;
}

.dancers-confirm__box {
  border: 2px solid #fff;
  background: #000;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.dancers-confirm__text {
  font-family: 'Quantico', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.dancers-confirm__btns {
  display: flex;
  gap: 10px;
}

@media (max-width: 480px) {
  .site-header {
    display: flex;
    flex-direction: column;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    gap: 10px;
  }

  .site-header__spacer {
    display: none;
  }

  .site-header__title {
    width: 100%;
    font-size: clamp(1.1rem, 5.2vw, 1.65rem);
    text-align: center;
  }

  .site-header__actions {
    width: 100%;
    justify-content: center;
  }

  .site-header__actions .player__fullscreen-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.7rem;
  }

  .player {
    --player-block-gap: 7px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .player-layout__main {
    display: flex;
    flex-direction: column;
    gap: var(--player-block-gap);
  }

  .player__section {
    --banger-control-w: 100%;
    --banger-control-h: 48px;
    --banger-stack-gap: var(--player-block-gap);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: var(--player-block-gap);
  }

  .player__panel {
    margin-top: 0;
  }

  .player__music-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--banger-stack-gap);
  }

  .player__banger-stack {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .player__banger-upload,
  .player__track-picker--banger {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .player__album {
    display: none;
  }

  .player__bg-stack {
    width: 100%;
    max-width: none;
    margin-left: 0;
    align-self: stretch;
  }

  .player__bg-upload {
    width: 100%;
    max-width: none;
  }

  .player__spectrum-shell:fullscreen .player__spectrum-toolbar,
  .player__spectrum-shell:-webkit-full-screen .player__spectrum-toolbar,
  .player__spectrum-shell--pseudo-fs .player__spectrum-toolbar {
    justify-content: stretch;
  }

  .player__spectrum-shell:fullscreen .player__fullscreen-btn,
  .player__spectrum-shell:-webkit-full-screen .player__fullscreen-btn,
  .player__spectrum-shell--pseudo-fs .player__fullscreen-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.7rem;
  }

  .player__slider-row {
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .site-header__actions .player__fullscreen-btn {
    padding: 0 10px;
    font-size: 0.65rem;
  }

  .player__spectrum-shell:fullscreen .player__fullscreen-btn,
  .player__spectrum-shell:-webkit-full-screen .player__fullscreen-btn,
  .player__spectrum-shell--pseudo-fs .player__fullscreen-btn {
    font-size: 0.65rem;
    padding: 0 10px;
  }
}
