:root {
  --ink: #f7efe0;
  --muted: #b9ad98;
  --dim: #766d60;
  --bg: #17120e;
  --bg-2: #211912;
  --line: rgba(247, 239, 224, 0.14);
  --accent: #d7ff72;
  --accent-2: #ff8f5f;
  --shadow: rgba(0, 0, 0, 0.34);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(215, 255, 114, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 18%, rgba(255, 143, 95, 0.15), transparent 26rem),
    linear-gradient(135deg, #130f0c 0%, #1d1510 46%, #0f0d0a 100%);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.08), transparent 24%),
    repeating-radial-gradient(circle at 12% 20%, rgba(255,255,255,0.16) 0 1px, transparent 1px 4px);
}

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(23, 18, 14, 0.88), rgba(23, 18, 14, 0));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 16%, transparent 17%),
    conic-gradient(from 12deg, var(--accent), transparent 42%, var(--accent-2), transparent 72%, var(--accent));
  box-shadow: 0 0 24px rgba(215, 255, 114, 0.28);
}

.site-header nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 38px) clamp(20px, 5vw, 72px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
  position: relative;
  overflow: hidden;
}

.signal-orbit {
  position: absolute;
  inset: auto 6vw 8vh auto;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 224, 0.08);
  filter: blur(0.2px);
  opacity: 0.9;
}

.signal-orbit span {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(215, 255, 114, 0.16);
  border-radius: 44% 56% 51% 49%;
  animation: drift 16s linear infinite;
}

.signal-orbit span:nth-child(2) {
  inset: 25%;
  border-color: rgba(255, 143, 95, 0.16);
  animation-duration: 22s;
  animation-direction: reverse;
}

.signal-orbit span:nth-child(3) {
  inset: 38%;
  border-color: rgba(247, 239, 224, 0.14);
  animation-duration: 10s;
}

.hero-copy,
.player {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(56px, 10vw, 142px);
  line-height: 0.86;
  letter-spacing: -0.08em;
  max-width: 900px;
  margin: 18px 0 24px;
}

.lede {
  max-width: 550px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-action,
.channel {
  font: inherit;
}

.primary-action {
  border: 0;
  color: #17120e;
  background: var(--accent);
  border-radius: 999px;
  padding: 16px 22px 16px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(215, 255, 114, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(215, 255, 114, 0.22);
}

.play-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #17120e;
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  inset: 9px 9px 9px 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

body.is-playing .play-icon::before,
body.is-playing .play-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--accent);
  clip-path: none;
}

body.is-playing .play-icon::before {
  left: 9px;
}

body.is-playing .play-icon::after {
  right: 9px;
  left: auto;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.player {
  align-self: center;
  background: rgba(23, 18, 14, 0.52);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 34px);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 90px var(--shadow);
}

.player-topline,
.dial-row,
.track-list li,
.schedule-table div,
.channel {
  display: flex;
  align-items: center;
}

.player-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #ff5757;
  box-shadow: 0 0 18px #ff5757;
}

.player-topline span:nth-child(2) {
  margin-right: auto;
}

.now p,
.dial-row span {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.now h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 36px 0 8px;
}

.now > span {
  color: var(--muted);
}

.waveform {
  height: 126px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(44, 1fr);
  align-items: center;
  gap: 5px;
}

.waveform i {
  display: block;
  height: var(--h);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(215, 255, 114, 0.22), var(--accent));
  opacity: 0.42;
  transform-origin: center;
  animation: pulse 1200ms ease-in-out infinite;
  animation-delay: calc(var(--i) * -42ms);
}

body.is-playing .waveform i {
  opacity: 0.82;
}

.dial-row {
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dial-row div {
  display: grid;
  gap: 6px;
}

.dial-row strong {
  font-size: clamp(14px, 2vw, 18px);
}

.channels-section,
.catalog,
.schedule,
.about {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 7vw, 90px);
  align-items: end;
  margin: 14px 0 46px;
}

.section-heading h2,
.catalog h2,
.schedule h2,
.about h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin: 0;
}

.section-heading p,
.schedule p,
.about p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

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

.channel {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 24px 0;
  gap: clamp(20px, 5vw, 70px);
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}

.channel:hover,
.channel.is-active {
  color: var(--accent);
  padding-left: 18px;
}

.channel-index {
  color: var(--dim);
  min-width: 42px;
}

.channel strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.channel small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

.catalog {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 120px);
  background: rgba(247, 239, 224, 0.035);
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.track-list li {
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.track-list span {
  color: var(--dim);
  min-width: 56px;
}

.track-list strong {
  flex: 1;
}

.track-list em {
  color: var(--muted);
  font-style: normal;
}

.schedule {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.65fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: start;
}

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

.schedule-table div {
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-table span {
  color: var(--accent-2);
}

.schedule-table strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.about {
  min-height: 64svh;
  display: grid;
  align-content: center;
  max-width: 980px;
}

.about p {
  max-width: 760px;
  font-size: clamp(19px, 2vw, 26px);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scaleY(0.72);
  }
  50% {
    transform: scaleY(1.18);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .section-heading,
  .catalog,
  .schedule {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
    align-items: start;
  }

  .signal-orbit {
    inset: 26vh -22vw auto auto;
    width: 84vw;
  }

  .player {
    border-radius: 24px;
  }

  .dial-row,
  .track-list li,
  .schedule-table div {
    align-items: flex-start;
    flex-direction: column;
  }

  .waveform {
    height: 96px;
    gap: 3px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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