:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: rgba(16, 18, 21, 0.78);
  --text: #f7f2ea;
  --muted: #b9b0a5;
  --line: rgba(255, 255, 255, 0.16);
  --red: #ff3f32;
  --amber: #f3b24b;
  --teal: #38d4c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 56px) 44px;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.72) 42%, rgba(8, 9, 11, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.08) 0%, #08090b 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-radio.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand,
.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: clamp(150px, 17vw, 220px);
  height: auto;
  filter: invert(1);
}

.radio-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(243, 178, 75, 0.42);
  border-radius: 999px;
  background: rgba(243, 178, 75, 0.1);
  color: var(--text);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 900;
  overflow: hidden;
}

.radio-badge::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  animation: badge-shine 3.8s ease-in-out infinite;
}

.radio-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 rgba(255, 63, 50, 0.7);
  animation: live-pulse 1.35s ease-out infinite;
}

@keyframes badge-shine {
  0%, 45% { transform: translateX(0) skewX(-18deg); }
  78%, 100% { transform: translateX(340%) skewX(-18deg); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 63, 50, 0.55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(255, 63, 50, 0); }
}

.nav__links {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav__links a {
  padding: 10px 0;
}

.hero__content {
  align-self: center;
  width: min(680px, 100%);
  margin: 72px auto 0;
}

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

h1,
h2,
p {
  margin-top: 0;
}

.lead {
  max-width: 620px;
  color: #ddd5cc;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.player {
  width: min(520px, 100%);
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player__top,
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--text);
  color: #111;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.play__icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.is-playing .play__icon {
  width: 18px;
  height: 24px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.player__label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.player h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.track-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 7px;
  height: 78px;
  margin: 24px 0;
  padding: 0 2px;
}

.meter span {
  display: block;
  height: 20%;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber) 58%, var(--red));
  opacity: 0.42;
  transition: height 160ms ease, opacity 160ms ease;
}

.is-playing .meter span {
  animation: pulse 900ms ease-in-out infinite alternate;
  opacity: 0.9;
}

.meter span:nth-child(2n) { animation-delay: 120ms; }
.meter span:nth-child(3n) { animation-delay: 240ms; }
.meter span:nth-child(4n) { animation-delay: 360ms; }

@keyframes pulse {
  from { height: 22%; }
  to { height: 92%; }
}

.controls {
  color: var(--muted);
  font-size: 0.92rem;
}

.controls input {
  width: min(240px, 45vw);
  accent-color: var(--amber);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section--split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  max-width: 620px;
}

.schedule {
  display: grid;
  gap: 12px;
}

.schedule article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.schedule span {
  color: var(--amber);
  font-weight: 800;
}

.schedule strong {
  font-size: 1.08rem;
}

.schedule p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact {
  border-top: 1px solid var(--line);
}

.contact__button {
  justify-self: start;
  align-self: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  padding: 34px 18px 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer span {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: 54px;
  }

  .nav {
    width: 100%;
  }

  .brand img {
    width: clamp(142px, 22vw, 190px);
  }

  .hero__content {
    width: min(620px, 100%);
    margin: 88px auto 0;
  }

  .lead {
    font-size: 1.08rem;
  }

  .player {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 16px 18px 44px;
  }

  .nav {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .nav__links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand img {
    width: clamp(126px, 38vw, 156px);
  }

  .radio-badge {
    padding: 7px 10px;
    font-size: 0.88rem;
  }

  .hero__content {
    margin-top: 64px;
  }

  .player {
    padding: 18px;
  }

  .play {
    width: 58px;
    height: 58px;
  }

  .meter {
    height: 58px;
    gap: 5px;
    margin: 20px 0;
  }

  .controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    width: 100%;
  }

  .controls input {
    width: 100%;
    min-width: 0;
  }

  .section--split,
  .contact {
    grid-template-columns: 1fr;
  }

  .schedule article {
    grid-template-columns: 1fr;
  }

  .schedule p {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-inline: 14px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .nav__links {
    font-size: 0.86rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .player__top {
    gap: 14px;
  }

  .player h2 {
    font-size: 1.22rem;
  }

  .track-meta {
    font-size: 0.82rem;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 46px 0;
  }

  .section h2 {
    font-size: 1.85rem;
    line-height: 1.08;
  }
}
