:root {
  color-scheme: dark;
  --bg: #10151f;
  --panel: #171e2b;
  --panel-strong: #202938;
  --ink: #f8fbff;
  --muted: #93a0b3;
  --line: #303b4d;
  --accent: #72f0d1;
  --accent-soft: #153d37;
  --like: #55d98b;
  --dislike: #ff788a;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  background: var(--bg);
  color: var(--ink);
}

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid rgba(114, 240, 209, 0.42);
  outline-offset: 4px;
}

.shell {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}

.start,
.player {
  width: min(100%, 560px);
  margin: 0 auto;
}

.start {
  min-height: calc(100dvh - 36px);
  display: grid;
  place-items: center;
}

.start-button {
  width: min(82vw, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(114, 240, 209, 0.45);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 24px 90px rgba(34, 194, 160, 0.22);
  color: #081712;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-transform: uppercase;
}

.start-button span {
  font-size: clamp(3rem, 16vw, 5.8rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
}

.start-button small {
  margin-top: 24px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.player {
  min-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
}

.station-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 20px;
}

.station-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.eyebrow,
.status,
.track-row p,
.credit {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.status {
  margin-top: 4px;
  font-size: 0.85rem;
}

.live-badge {
  border: 1px solid rgba(255, 120, 138, 0.38);
  border-radius: 999px;
  color: var(--dislike);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mute-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mute-button.active {
  background: #173e2a;
  border-color: rgba(85, 217, 139, 0.55);
  color: var(--like);
}

.mute-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-off {
  display: none;
}

.mute-button.active .sound-on {
  display: none;
}

.mute-button.active .sound-off {
  display: block;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dislike);
  box-shadow: 0 0 0 5px rgba(255, 120, 138, 0.12);
}

.playlist {
  display: grid;
  gap: 10px;
  flex: 1;
}

.track-row {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.track-row p {
  margin-bottom: 8px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.track-row h1,
.track-row h2 {
  margin: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.track-row h2 {
  font-size: clamp(1rem, 5vw, 1.35rem);
  line-height: 1.2;
  color: #c5ceda;
}

.track-row.current {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  border-color: rgba(114, 240, 209, 0.42);
  background: var(--panel-strong);
}

.track-row.current p {
  color: var(--accent);
}

.track-row h1 {
  font-size: clamp(2rem, 10vw, 4rem);
  line-height: 0.98;
  max-height: 3.95em;
  overflow: hidden;
}

.music-thread {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  gap: 5px;
  height: 28px;
  margin-bottom: 22px;
}

.music-thread span {
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 920ms ease-in-out infinite;
}

.music-thread span:nth-child(2) { animation-delay: 80ms; }
.music-thread span:nth-child(3) { animation-delay: 180ms; }
.music-thread span:nth-child(4) { animation-delay: 40ms; }
.music-thread span:nth-child(5) { animation-delay: 260ms; }
.music-thread span:nth-child(6) { animation-delay: 120ms; }
.music-thread span:nth-child(7) { animation-delay: 340ms; }
.music-thread span:nth-child(8) { animation-delay: 210ms; }
.music-thread span:nth-child(9) { animation-delay: 20ms; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.45; }
  40% { transform: scaleY(2.1); opacity: 1; }
}

.reactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
}

.reaction {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.reaction svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reaction.like.active {
  background: #173e2a;
  border-color: rgba(85, 217, 139, 0.55);
  color: var(--like);
}

.reaction.dislike.active {
  background: #48232b;
  border-color: rgba(255, 120, 138, 0.55);
  color: var(--dislike);
}

.credit {
  padding-top: 13px;
  font-size: 0.68rem;
  text-align: center;
}

@media (max-height: 720px) {
  .track-row.current {
    min-height: 180px;
  }

  .track-row h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
}
