:root {
  --bg: #0b0d10;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceff3;
  --muted: #9aa4b2;
  --accent: #ffb86b;
  --accent-strong: #ff9f4d;
  --radius: 22px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255, 184, 107, 0.13), transparent 60%),
    radial-gradient(700px 420px at 95% 100%, rgba(126, 231, 135, 0.06), transparent 60%),
    var(--bg);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 6vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 184, 107, 0.12);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

main {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);
}

.hero {
  padding: clamp(28px, 7vh, 72px) 0 24px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 184, 107, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

.station {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.tagline {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(420px, 100%);
  margin: clamp(28px, 5vh, 48px) auto 0;
  padding: 30px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
}

.equalizer span {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 184, 107, 0.35));
  transform: scaleY(0.18);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

body.is-playing .equalizer span {
  animation: bounce 1.1s ease-in-out infinite;
}

body.is-playing .equalizer span:nth-child(2) {
  animation-delay: 0.12s;
}
body.is-playing .equalizer span:nth-child(3) {
  animation-delay: 0.24s;
}
body.is-playing .equalizer span:nth-child(4) {
  animation-delay: 0.06s;
}
body.is-playing .equalizer span:nth-child(5) {
  animation-delay: 0.3s;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #181004;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 40px rgba(255, 159, 77, 0.32);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(255, 159, 77, 0.4);
}

.play-button:active {
  transform: translateY(0);
}

.play-button .icon {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.icon-pause {
  display: none;
}

body.is-playing .icon-play {
  display: none;
}

body.is-playing .icon-pause {
  display: block;
}

.state {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--muted);
}

body.is-playing .state {
  color: var(--text);
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.listeners {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
}

.volume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.volume .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

input[type="range"] {
  width: 120px;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.about {
  padding: clamp(40px, 7vh, 72px) 0 32px;
  border-top: 1px solid var(--border);
}

.about h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
}

.about p {
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.facts div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.site-footer {
  padding: 26px clamp(20px, 6vw, 72px) 34px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes bounce {
  0%,
  100% {
    transform: scaleY(0.22);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 184, 107, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 184, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 184, 107, 0);
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .player-card {
    padding: 26px 20px 20px;
  }

  .play-button {
    width: 82px;
    height: 82px;
  }

  .player-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  input[type="range"] {
    width: 100%;
  }

  .volume {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
