:root {
  color-scheme: dark;
  --orange: #ff981f;
  --orange-soft: #ffc26f;
  --coral: #ff6755;
  --glass: rgba(255, 255, 255, 0.13);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.36);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --green: #55d982;
  --red: #ef3f4f;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "League Spartan", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #0b0807;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 152, 31, 0.28), transparent 34%),
    linear-gradient(235deg, rgba(255, 103, 85, 0.28), transparent 42%),
    linear-gradient(180deg, #2a1710, #070708 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 26%, rgba(255, 190, 116, 0.22) 38%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px);
  filter: blur(18px);
  opacity: 0.76;
}

button,
a,
input {
  font: inherit;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.player-card {
  width: min(100%, 500px);
  min-height: min(720px, calc(100svh - 32px));
  display: grid;
  align-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.14)),
    rgba(70, 52, 47, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(20px) saturate(135%);
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  border-radius: 8px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, black, transparent 32%, transparent 68%, black);
  opacity: 0.32;
}

.hero,
.signal-panel,
.play-section,
.sound-controls,
.credit {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 18px;
}

.logo-tile {
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow:
    inset 0 -8px 0 rgba(255, 152, 31, 0.14),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.logo-tile img {
  width: 100%;
  display: block;
}

.hero-copy p,
.hero-copy h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy p {
  color: var(--orange-soft);
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.hero-copy h1 {
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 0.85;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.signal-panel {
  min-height: 264px;
  display: grid;
  align-content: space-between;
  gap: 11px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 34px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.12);
}

.live-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.is-playing .live-dot {
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(85, 217, 130, 0.16);
}

.has-error .live-dot {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(239, 63, 79, 0.14);
}

.waveform {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding-inline: 2px;
  overflow: hidden;
}

.waveform span {
  width: 100%;
  min-width: 4px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-soft), var(--coral));
  opacity: 0.5;
  box-shadow: 0 0 12px rgba(255, 152, 31, 0.14);
  transform-origin: center;
}

.is-playing .waveform span {
  animation: waveform 1.15s ease-in-out infinite;
}

.waveform span:nth-child(1) { animation-delay: 0.02s; }
.waveform span:nth-child(2) { animation-delay: 0.12s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.07s; }
.waveform span:nth-child(5) { animation-delay: 0.27s; }
.waveform span:nth-child(6) { animation-delay: 0.15s; }
.waveform span:nth-child(7) { animation-delay: 0.32s; }
.waveform span:nth-child(8) { animation-delay: 0.08s; }
.waveform span:nth-child(9) { animation-delay: 0.24s; }
.waveform span:nth-child(10) { animation-delay: 0.16s; }
.waveform span:nth-child(11) { animation-delay: 0.29s; }
.waveform span:nth-child(12) { animation-delay: 0.04s; }
.waveform span:nth-child(13) { animation-delay: 0.18s; }
.waveform span:nth-child(14) { animation-delay: 0.34s; }
.waveform span:nth-child(15) { animation-delay: 0.1s; }
.waveform span:nth-child(16) { animation-delay: 0.22s; }
.waveform span:nth-child(17) { animation-delay: 0.3s; }
.waveform span:nth-child(18) { animation-delay: 0.14s; }

@keyframes waveform {
  0%, 100% {
    height: 6px;
    opacity: 0.45;
  }
  45% {
    height: 24px;
    opacity: 0.9;
  }
}

.flash-news {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.flash-news-label,
.weather-label {
  width: fit-content;
  color: var(--orange-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.flash-news a {
  min-height: 62px;
  display: flex;
  align-items: end;
  overflow: visible;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.flash-news a span {
  display: block;
  overflow: visible;
}

.weather-widget {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.weather-widget.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.weather-widget strong,
.weather-widget span {
  display: block;
}

.weather-widget strong {
  margin-top: 4px;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 850;
}

.weather-widget div:first-child > span:last-child {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

.weather-temp {
  color: #ffffff;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.play-section {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 18px;
}

.play-button {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(145deg, #ffbd72, #ff774e 52%, #e95267);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 26px rgba(204, 40, 60, 0.25),
    0 22px 48px rgba(255, 103, 85, 0.34);
  -webkit-tap-highlight-color: transparent;
}

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

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 10px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid currentColor;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.is-playing .play-icon {
  width: 28px;
  height: 34px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%);
}

.track-copy {
  min-width: 0;
}

.track-copy p,
.track-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.track-copy p {
  color: var(--orange-soft);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.track-copy h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 0.9;
  font-weight: 900;
  overflow-wrap: normal;
}

.track-copy time {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.sound-controls {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 14px;
}

.mute-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.speaker-icon {
  width: 21px;
  height: 18px;
  display: block;
  clip-path: polygon(0 35%, 34% 35%, 68% 0, 68% 100%, 34% 65%, 0 65%);
  background: currentColor;
}

.volume-control {
  min-width: 0;
}

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

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding-top: 2px;
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.credit span {
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

.credit img {
  width: 92px;
  display: block;
}

@media (max-width: 620px) {
  .stage {
    padding: 10px;
  }

  .player-card {
    min-height: calc(100svh - 20px);
    padding: 18px;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 88px 1fr;
    gap: 13px;
  }

  .logo-tile {
    width: 88px;
    padding: 11px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .signal-panel {
    min-height: 248px;
    padding: 18px;
  }

  .play-section {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .play-button {
    width: 88px;
  }

  .play-icon {
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-left-width: 23px;
  }

  .track-copy p {
    font-size: 16px;
  }

  .track-copy h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .track-copy time {
    font-size: 13px;
  }
}

@media (max-width: 460px) {
  .stage {
    padding: 0;
  }

  .player-card {
    width: 100vw;
    min-height: 100svh;
    border-width: 0;
    border-radius: 0;
    padding: 16px;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .logo-tile {
    width: 80px;
    padding: 10px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(27px, 9vw, 34px);
  }

  .signal-panel {
    min-height: 240px;
    padding: 16px;
  }

  .live-badge {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .waveform {
    height: 20px;
    gap: 2px;
  }

  .flash-news a {
    min-height: 68px;
    padding: 9px 10px;
    font-size: 12.8px;
    line-height: 1.25;
  }

  .weather-widget {
    min-height: 54px;
    padding: 9px 10px;
  }

  .weather-temp {
    font-size: 28px;
  }

  .play-section {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .play-button {
    width: 80px;
  }

  .track-copy h2 {
    font-size: clamp(24px, 7.5vw, 30px);
    line-height: 0.94;
  }

  .sound-controls {
    grid-template-columns: 48px;
    justify-content: start;
  }

  .volume-control {
    display: none;
  }

  .credit {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .credit img {
    width: 92px;
  }
}
