:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #f6f5ef;
  --panel: #ffffff;
  --muted: #686963;
  --line: #d9d6ca;
  --accent: #f04f32;
  --teal: #2f8f83;
  --gold: #d7a21f;
  --shadow: 0 18px 60px rgba(21, 21, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.broadcast {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 96px) clamp(16px, 4vw, 48px);
}

.station-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 6rem, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: #343530;
  font-size: 1.25rem;
  line-height: 1.55;
}

.tuner {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 420px;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #000000;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dial {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(246, 245, 239, 0.22);
  border-radius: 8px;
}

.dial::before,
.dial::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(246, 245, 239, 0.78);
  border-radius: 50%;
}

.dial::before {
  width: 152px;
  height: 152px;
}

.dial::after {
  width: 84px;
  height: 84px;
}

.dial-dots {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: dialRotate 18s linear infinite;
  animation-play-state: paused;
}

body.is-playing .dial-dots {
  animation-play-state: running;
}

.dial-dots span {
  position: absolute;
  width: 8px;
  height: 8px;
  overflow: hidden;
  background: var(--accent);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.dial-dots span:nth-child(1) {
  transform: translate(0, -76px);
}

.dial-dots span:nth-child(2) {
  transform: translate(66px, 38px);
  background: var(--teal);
}

.dial-dots span:nth-child(3) {
  transform: translate(-66px, 38px);
  background: var(--gold);
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  height: 90px;
  margin-top: 24px;
}

.signal-bars span {
  min-width: 0;
  height: calc(var(--level) * 100%);
  overflow: hidden;
  background: var(--paper);
  border-radius: 999px 999px 0 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transition: height 90ms linear;
}

.player {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.play-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.play-button:hover,
.play-button:focus-visible {
  background: #d83d23;
  outline: 3px solid rgba(240, 79, 50, 0.24);
  outline-offset: 3px;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.play-button.is-playing .play-icon {
  width: 18px;
  height: 24px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 6px solid currentColor;
  border-right: 6px solid currentColor;
}

.stream-meta {
  min-width: 0;
}

.stream-meta p {
  margin: 0;
}

.stream-meta p:first-child {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-meta p:last-child {
  margin-top: 5px;
  font-size: 1.1rem;
  font-weight: 750;
}

.volume-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.volume-control input {
  width: 100%;
  accent-color: var(--accent);
}

.copy-button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: #efeadf;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #e7dfd1;
  outline: 3px solid rgba(47, 143, 131, 0.2);
  outline-offset: 2px;
}

.content-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.content-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 760px);
  gap: clamp(28px, 4vw, 88px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 48px);
}

.content-grid h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-grid p {
  margin: 0;
  color: #343530;
  font-size: 1.06rem;
  line-height: 1.7;
}

.content-grid a {
  color: inherit;
}

@keyframes dialRotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dial-dots {
    animation: none;
  }
}

@media (max-width: 860px) {
  .broadcast-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 9ch;
    font-size: 4rem;
  }

  .tuner {
    min-height: 340px;
  }

  .player {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .volume-control,
  .copy-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .broadcast-grid {
    padding-top: 28px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .tuner {
    min-height: 280px;
    padding: 16px;
  }

  .dial {
    min-height: 190px;
  }

  .dial::before {
    width: 118px;
    height: 118px;
  }

  .dial::after {
    width: 64px;
    height: 64px;
  }

  .player {
    padding: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
