:root {
  --bg0: #0f1a17;
  --bg1: #1a2e28;
  --ink: #e8f2ee;
  --muted: #9bb5ab;
  --accent: #3dd68c;
  --accent-ink: #062016;
  --danger: #ff8f8f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, #2a4a3d 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, #1e3a4a 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  display: grid;
  place-items: center;
  padding: 2rem;
}

.stage {
  width: min(36rem, 100%);
  text-align: center;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.stream-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 12rem;
  margin-top: 1.5rem;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 12px 40px rgba(61, 214, 140, 0.28);
}

.stream-btn:hover {
  transform: translateY(-2px);
}

.stream-btn:active {
  transform: translateY(0);
}

.stream-btn.is-playing {
  background: #f2f7f4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.stream-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.now-playing {
  margin: 0;
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 1rem;
  background: rgba(232, 242, 238, 0.06);
  border: 1px solid rgba(232, 242, 238, 0.12);
}

.now-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 1.1rem;
}

.eq span {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.35;
  transform: scaleY(0.22);
  transform-origin: center bottom;
}

.eq.is-playing span {
  opacity: 0.9;
  animation: eq-dance 0.85s ease-in-out infinite alternate;
}

.eq.is-playing span:nth-child(1) { animation-duration: 0.72s; animation-delay: -0.35s; }
.eq.is-playing span:nth-child(2) { animation-duration: 0.96s; animation-delay: -0.12s; }
.eq.is-playing span:nth-child(3) { animation-duration: 0.64s; animation-delay: -0.48s; }
.eq.is-playing span:nth-child(4) { animation-duration: 1.08s; animation-delay: -0.2s; }
.eq.is-playing span:nth-child(5) { animation-duration: 0.78s; animation-delay: -0.55s; }

@keyframes eq-dance {
  0%   { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.track-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 200ms ease;
}

.track-artist {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  min-height: 1.25em;
}

@media (prefers-reduced-motion: reduce) {
  .stream-btn,
  .track-title {
    transition: none;
  }

  .eq.is-playing span {
    animation: none;
    transform: scaleY(0.55);
    opacity: 0.7;
  }
}
