@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-var.3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

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

body {
  color: #213238;
  font-family:
    "Aptos", "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(238, 244, 233, 0.88), rgba(238, 244, 233, 0.96)),
    url("../assets/travel-map-backdrop-1400.723aca540f.webp") center / cover fixed,
    #eef4e9;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tunes-shell {
  width: min(1040px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px)
    max(24px, env(safe-area-inset-bottom));
}

.tunes-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #213238;
  font-size: 14px;
  font-weight: 860;
  text-decoration: none;
}

.store-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: none;
  border: 2px solid rgba(255, 250, 224, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(27, 39, 41, 0.18);
}

.brand p,
.brand h1 {
  margin: 0;
}

.brand p {
  color: rgba(33, 50, 56, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.brand h1 {
  color: #213238;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 940;
  line-height: 1;
}

.radio-stage {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 28px);
  align-items: stretch;
}

.cover-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0d2d2d;
  border: 1px solid rgba(33, 50, 56, 0.16);
  border-radius: 8px;
  box-shadow:
    0 18px 32px rgba(27, 39, 41, 0.18),
    0 4px 10px rgba(27, 39, 41, 0.08);
}

.cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-rings {
  position: absolute;
  top: 9%;
  left: 50%;
  display: grid;
  width: 38%;
  aspect-ratio: 1.8;
  pointer-events: none;
  transform: translateX(-50%);
}

.signal-rings span {
  grid-area: 1 / 1;
  border-top: 4px solid rgba(255, 244, 170, 0.86);
  border-radius: 50% 50% 0 0;
  opacity: 0.38;
  transform-origin: 50% 100%;
}

.signal-rings span:nth-child(2) {
  scale: 0.72;
}

.signal-rings span:nth-child(3) {
  scale: 0.44;
}

.is-playing .signal-rings span {
  animation: signal-pulse 1600ms ease-in-out infinite;
}

.is-playing .signal-rings span:nth-child(2) {
  animation-delay: 160ms;
}

.is-playing .signal-rings span:nth-child(3) {
  animation-delay: 320ms;
}

.player-panel,
.channel-panel {
  min-width: 0;
  background: rgba(255, 253, 240, 0.95);
  border: 1px solid rgba(33, 50, 56, 0.14);
  border-radius: 8px;
  box-shadow:
    0 18px 32px rgba(27, 39, 41, 0.14),
    0 4px 10px rgba(27, 39, 41, 0.08);
}

.player-panel {
  display: grid;
  align-content: center;
  padding: clamp(18px, 4vw, 32px);
}

.player-kicker {
  margin: 0 0 8px;
  color: #b95336;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-panel h2 {
  min-height: 1.02em;
  margin: 0;
  color: #213238;
  font-size: clamp(40px, 7vw, 70px);
  font-weight: 940;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.player-panel p {
  margin: 0;
}

#channel-tagline {
  margin-top: 8px;
  color: rgba(33, 50, 56, 0.68);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 760;
}

.status-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 24px;
  padding: 7px 12px;
  color: #213238;
  font-size: 14px;
  font-weight: 820;
  background: #edf6ef;
  border: 1px solid rgba(33, 50, 56, 0.12);
  border-radius: 999px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: #f2b84b;
  border-radius: 50%;
}

.status-line[data-state="playing"] .status-dot {
  background: #1f8d72;
  box-shadow: 0 0 0 4px rgba(31, 141, 114, 0.14);
}

.status-line[data-state="error"] .status-dot {
  background: #b95336;
}

.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.icon-button,
.play-button {
  display: inline-grid;
  place-items: center;
  color: #fffdf0;
  background: #213238;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(27, 39, 41, 0.18);
}

.icon-button {
  width: 52px;
  height: 52px;
}

.play-button {
  width: 78px;
  height: 78px;
  background: #b95336;
}

.icon-button:hover,
.icon-button:focus-visible,
.play-button:hover,
.play-button:focus-visible {
  outline: 3px solid rgba(31, 141, 114, 0.32);
  outline-offset: 4px;
}

.icon-button:active,
.play-button:active {
  transform: translateY(1px) scale(0.98);
}

.icon-button svg,
.play-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.play-button svg {
  width: 34px;
  height: 34px;
}

.play-button .pause-icon,
.is-playing .play-button .play-icon {
  display: none;
}

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

.volume-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 240px);
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.volume-row svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #1f756d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.volume-row input {
  width: 100%;
  accent-color: #b95336;
}

.channel-panel {
  margin-top: 16px;
  padding: 14px;
}

.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.channel-head h2 {
  margin: 0;
  color: #213238;
  font-size: 18px;
  font-weight: 900;
}

.channel-head span {
  min-width: 28px;
  padding: 3px 8px;
  color: #fffdf0;
  font-size: 12px;
  font-weight: 880;
  text-align: center;
  background: #1f756d;
  border-radius: 999px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.channel-button {
  display: grid;
  min-height: 82px;
  min-width: 0;
  align-content: center;
  gap: 4px;
  padding: 10px;
  color: #213238;
  text-align: left;
  background: #fffdf0;
  border: 1px solid rgba(33, 50, 56, 0.14);
  border-radius: 8px;
  cursor: pointer;
}

.channel-button strong,
.channel-button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-button strong {
  font-size: 15px;
  font-weight: 900;
}

.channel-button span {
  color: rgba(33, 50, 56, 0.64);
  font-size: 12px;
  font-weight: 760;
}

.channel-button.is-selected {
  color: #fffdf0;
  background: #1f756d;
  border-color: #1f756d;
}

.channel-button.is-selected span {
  color: rgba(255, 253, 240, 0.78);
}

.channel-button:hover,
.channel-button:focus-visible {
  outline: 3px solid rgba(185, 83, 54, 0.26);
  outline-offset: 2px;
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  50% {
    opacity: 0.84;
    transform: translateY(-2px);
  }
}

@media (max-width: 840px) {
  .tunes-header {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .brand {
    justify-content: flex-start;
  }

  .radio-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-frame {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .player-panel {
    min-height: 330px;
  }

  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .player-panel h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .transport {
    justify-content: center;
  }

  .volume-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .channel-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
