:root {
  color-scheme: light;
  --ink: #152039;
  --muted: #6d7890;
  --accent: #1764df;
  --accent-dark: #104eb5;
  --accent-soft: #eaf1ff;
  --lilac: #8b76b5;
  --surface: #fff;
  --page: #f3f5f9;
  --line: #e7eaf1;
  --shadow: 0 28px 80px rgba(23, 39, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 14%, rgba(215, 229, 255, 0.64), transparent 30rem),
    radial-gradient(ellipse at 92% 82%, rgba(228, 219, 244, 0.58), transparent 32rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: flex;
  width: min(980px, calc(100% - 56px));
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0 auto;
  padding: 26px 0 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.wordmark__signal {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 11px;
  background: var(--accent-soft);
}

.wordmark__signal i {
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.wordmark__signal i:nth-child(1),
.wordmark__signal i:nth-child(4) {
  height: 9px;
}

.wordmark__signal i:nth-child(2) {
  height: 17px;
}

.wordmark__signal i:nth-child(3) {
  height: 12px;
  background: var(--lilac);
}

.wordmark__text {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.wordmark__text strong {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.055em;
}

.wordmark__text small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.service-credit {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.service-credit strong {
  color: var(--ink);
  font-weight: 700;
}

.service-credit:hover strong {
  color: var(--accent-dark);
}

.radio-card {
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  margin: auto 0;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-main {
  padding: clamp(24px, 4vw, 40px) clamp(22px, 6vw, 64px) 30px;
  text-align: center;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.location {
  color: var(--muted);
  font-size: 12px;
}

.station-art {
  display: grid;
  width: min(100%, 390px);
  place-items: center;
  margin: 18px auto 4px;
}

.station-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
  background: #111a30;
  box-shadow: 0 16px 34px rgba(20, 33, 61, 0.18);
}

.station-copy h1 {
  margin: 21px 0 5px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.station-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.copy-separator {
  margin: 0 7px;
  color: var(--lilac);
}

.player-actions {
  margin-top: 23px;
}

.listen-button {
  display: inline-flex;
  min-width: 228px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 22px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(112deg, var(--accent), #347be9);
  box-shadow: 0 9px 22px rgba(23, 100, 223, 0.24);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.listen-button:hover {
  background: linear-gradient(112deg, var(--accent-dark), var(--accent));
  box-shadow: 0 12px 25px rgba(23, 100, 223, 0.3);
  transform: translateY(-1px);
}

.listen-button:focus-visible,
.volume-button:focus-visible,
.service-credit:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid rgba(23, 100, 223, 0.35);
  outline-offset: 3px;
}

.listen-button__icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
}

.listen-button__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.player-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.player-status[data-state="playing"] {
  color: var(--accent-dark);
}

.player-status[data-state="error"] {
  color: #a53648;
}

.volume-control {
  display: flex;
  width: min(100%, 245px);
  align-items: center;
  gap: 11px;
  margin: 19px auto 0;
  color: var(--muted);
}

.volume-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.volume-button:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.volume-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.volume-button svg > path:first-child {
  fill: currentColor;
  stroke: none;
}

.volume-button .volume-wave {
  transition: opacity 140ms ease;
}

.volume-button.is-muted .volume-wave {
  opacity: 0;
}

.volume-control input[type="range"] {
  width: 100%;
  height: 4px;
  flex: 1 1 auto;
  margin: 0;
  border-radius: 4px;
  appearance: none;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 80%, #e0e5ee 80%, #e0e5ee 100%);
  cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(21, 32, 57, 0.28);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px rgba(21, 32, 57, 0.28);
}

.volume-control input[type="range"]:focus-visible {
  outline: 3px solid rgba(23, 100, 223, 0.25);
  outline-offset: 5px;
}

.volume-control output {
  width: 35px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.card-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(24px, 6vw, 64px);
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  text-align: left;
}

.card-footer span {
  display: grid;
  gap: 3px;
}

.card-footer span:last-child {
  text-align: right;
}

.card-footer strong {
  font-size: 12px;
  font-weight: 750;
}

.card-footer small {
  color: var(--muted);
  font-size: 11px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 520px);
    padding: 17px 0 14px;
  }

  .site-header {
    gap: 10px;
  }

  .wordmark {
    gap: 8px;
  }

  .wordmark__signal {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .wordmark__text strong {
    font-size: 11px;
  }

  .wordmark__text small {
    font-size: 8px;
  }

  .service-credit {
    font-size: 10px;
    text-align: right;
  }

  .radio-card {
    border-radius: 23px;
  }

  .card-main {
    padding: 23px 19px 24px;
  }

  .card-kicker {
    align-items: flex-start;
    gap: 8px;
  }

  .live-indicator {
    gap: 7px;
    font-size: 9px;
  }

  .location {
    font-size: 10px;
    text-align: right;
  }

  .station-art {
    width: min(100%, 350px);
    margin-top: 16px;
  }

  .station-logo {
    border-radius: 13px;
  }

  .station-copy h1 {
    margin-top: 17px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .station-copy p {
    font-size: 12px;
  }

  .player-actions {
    margin-top: 20px;
  }

  .listen-button {
    width: min(100%, 290px);
  }

  .card-footer {
    min-height: 66px;
    gap: 12px;
    padding: 13px 19px;
  }

  .card-footer strong {
    font-size: 11px;
  }

  .card-footer small {
    font-size: 10px;
  }

}

@media (max-width: 360px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .service-credit {
    font-size: 9px;
  }

  .card-main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .card-footer {
    padding-right: 15px;
    padding-left: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
