:root {
  --sky: #8ed1f0;
  --card: #ffffff;
  --ink: #111111;
  --muted: #5c6670;
  --flamingo: #f0508c;
  --sun: #f8d568;
  --palm: #5aa845;
  --line: #e6eef3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 64px 28px 28px;
  color: var(--ink);
  font-family: Montserrat, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  /* Confetti scattered over the sky-blue frame. */
  background:
    radial-gradient(circle 4px at 3% 22%, var(--flamingo) 98%, transparent),
    radial-gradient(circle 3px at 1.5% 48%, var(--sun) 98%, transparent),
    radial-gradient(circle 4px at 2.5% 76%, var(--palm) 98%, transparent),
    radial-gradient(circle 3px at 97% 30%, var(--sun) 98%, transparent),
    radial-gradient(circle 4px at 98.5% 58%, var(--flamingo) 98%, transparent),
    radial-gradient(circle 3px at 97.5% 86%, #9b6fd1 98%, transparent),
    radial-gradient(circle 3px at 30% 98.5%, var(--flamingo) 98%, transparent),
    radial-gradient(circle 4px at 68% 99%, var(--sun) 98%, transparent),
    var(--sky);
  background-attachment: fixed;
}

.bunting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 2;
  pointer-events: none;
}

.card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 40px 20px;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
}

.discoball {
  position: absolute;
  top: -70px;
  right: 30px;
  width: 176px;
  z-index: 3;
  pointer-events: none;
}

header {
  padding-right: 190px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 10px 0 0;
  font-size: clamp(15px, 1.8vw, 21px);
  font-weight: 700;
}

.party {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
}

.queue h2 {
  margin-top: 0;
}

.card:has(#party[hidden]) footer {
  display: none;
}

h2 {
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--flamingo);
}

button {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--flamingo);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button.quiet {
  padding: 6px 12px;
  background: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.problem {
  padding: 10px 14px;
  border-radius: 6px;
  background: #fde8ef;
  color: #a3123f;
  overflow-wrap: anywhere;
}

.now {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  position: relative;
  border-radius: 28px;
  background: var(--sun);
}

.now::after {
  content: '🦩';
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: clamp(48px, 9vh, 96px);
  line-height: 1;
}

.now img {
  width: min(100% - 110px, 34vh);
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.now-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.now-text h2 {
  margin: 0;
  color: var(--ink);
}

.now-text small {
  font-weight: 700;
}

.now-text strong {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.1;
}

.progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.progress div {
  height: 100%;
  background: var(--ink);
  transition: width 2s linear;
}

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

.song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.song img {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
}

.position {
  width: 24px;
  text-align: right;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.song-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.song-text strong,
.song-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-text span {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--palm);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

footer {
  margin-top: 24px;
  text-align: right;
}

@media (max-width: 820px) {
  body {
    padding: 56px 12px 12px;
  }

  .card {
    padding: 28px 18px 14px;
  }

  .party {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .discoball {
    width: 96px;
    right: 10px;
  }

  header {
    padding-right: 100px;
  }
}
