:root {
  --bg: #030711;
  --surface: #091426;
  --surface-2: #101638;
  --border: #21345b;
  --text: #f6f7ff;
  --muted: #aeb8d1;
  --blue: #258cff;
  --purple: #a83cff;
  --pink: #f344ba;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 46vw;
  height: 100vh;
  opacity: .75;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 24px, rgba(100, 49, 255, .25) 25px 26px, transparent 27px 43px);
  filter: blur(.2px);
}
.ambient-left { left: -36vw; transform: rotate(-24deg); }
.ambient-right { right: -36vw; transform: rotate(24deg); }

.site-shell {
  width: min(1045px, calc(100% - 32px));
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(5, 13, 28, .97), rgba(3, 9, 20, .98));
  border-inline: 1px solid rgba(105, 131, 191, .2);
  box-shadow: 0 0 80px rgba(0,0,0,.35);
}

.site-header {
  min-height: 105px;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(104, 132, 192, .18);
}
.brand {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
}
.brand b {
  color: #b94cff;
  background: linear-gradient(90deg, #ef42c9, #6d52ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  margin-top: 10px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: #b7c0d8;
}

.live-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 23px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: white;
  background: linear-gradient(100deg, #247fff, #8224f7);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(86, 55, 255, .24);
  transition: transform .2s ease, filter .2s ease;
}
.live-button:hover { transform: translateY(-2px); filter: brightness(1.13); }
.play-icon { font-size: .8rem; }

.main-nav {
  min-height: 54px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(104, 132, 192, .18);
}
.nav-links, .social-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 19px 0 17px;
  font-size: .86rem;
  font-weight: 600;
  color: #dce2f2;
}
.nav-links a:hover, .nav-links a.active { color: #d45aff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #a33bff, #ef42c9);
}
.social-links { gap: 18px; }
.social-links a, .social-links button {
  border: 0;
  background: transparent;
  color: #edf1ff;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
}
.social-links button { font-size: 1.8rem; font-weight: 400; }

main { padding: 27px 25px 0; }
.top-grid, .lower-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(130deg, #15133f, #0b1329);
  padding: 22px 26px;
  min-width: 0;
}
.headline-panel { background: linear-gradient(130deg, #0c1c36, #071224); }
.panel-heading, .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-heading { color: #7b62ff; font-size: .95rem; font-weight: 800; }
.live-pill {
  color: white;
  border: 1px solid #6723aa;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .7rem;
}
.live-pill i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff2e75;
  border-radius: 50%;
  margin-right: 6px;
}
.on-air-content {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.round-play {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 4px solid #7338ff;
  border-radius: 50%;
  background: #17143e;
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 0 22px rgba(105, 43, 255, .35);
}
.on-air-content h2 { margin: 0 0 8px; font-size: 1.35rem; }
.on-air-content p { margin: 0; color: #c4cce0; font-size: .9rem; }
.equalizer {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 55px;
  margin-left: auto;
}
.equalizer i {
  display: block;
  width: 6px;
  height: 30%;
  background: linear-gradient(#a33cff, #4c43ff);
  animation: bounce 1s ease-in-out infinite alternate;
}
.equalizer i:nth-child(2n) { animation-delay: -.4s; height: 65%; }
.equalizer i:nth-child(3n) { animation-delay: -.8s; height: 90%; }
@keyframes bounce { to { height: 100%; } }

.headline-content { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.news-art {
  flex: 0 0 auto;
  width: 108px;
  height: 98px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.art-one { background-image: linear-gradient(135deg, rgba(100, 32, 230, .35), rgba(0, 7, 35, .2)), url("https://images.unsplash.com/photo-1506157786151-b8491531f063?auto=format&fit=crop&w=500&q=80"); }
.art-two { background-image: linear-gradient(135deg, rgba(0, 0, 40, .1), rgba(80, 0, 120, .3)), url("https://images.unsplash.com/photo-1571266028243-d220c9c3b7d2?auto=format&fit=crop&w=500&q=80"); }
.art-three { background-image: linear-gradient(135deg, rgba(0, 0, 40, .1), rgba(80, 0, 120, .3)), url("https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=500&q=80"); }
.headline-content h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 15px; }
.headline-content a, .section-heading a { color: #9e57ff; font-size: .82rem; font-weight: 700; }

.now-playing-copy { min-width: 0; flex: 1; }
.now-playing-copy h2 { overflow-wrap: anywhere; }
#currentSong {
  color: #d8c4ff;
  font-weight: 600;
  line-height: 1.35;
}
.equalizer.is-paused i { animation-play-state: paused; opacity: .45; }

.stats-content { margin-top: 16px; }
.stat-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.stat-block small {
  display: block;
  color: #9aa8c9;
  font-size: .68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-block strong {
  font-size: 2rem;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #ef42c9, #6d52ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-divider {
  font-size: 1.8rem;
  color: #5d6f99;
  line-height: 1;
  padding-bottom: 2px;
}
.peak-line {
  margin: 10px 0 0;
  color: #aab5d0;
  font-size: .78rem;
}
.last-played {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 124, 178, .22);
}
.last-played small {
  display: block;
  color: #9aa8c9;
  font-size: .68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.last-played b {
  display: block;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 600;
  color: #f0e9ff;
}
#streamStatusPill.is-offline {
  border-color: #5a6078;
  color: #c5c9d8;
}
#streamStatusPill.is-offline i { background: #8b93ad; }

.hero-panel {
  min-height: 240px;
  margin-top: 24px;
  padding: 40px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #283e78;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 11, 87, .96), rgba(6, 32, 73, .66)),
    url("https://images.unsplash.com/photo-1571266028243-d220c9c3b7d2?auto=format&fit=crop&w=1600&q=85") center/cover;
}
.hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -1.7px;
}
.hero-copy h1 strong { color: #bd3dff; }
.eyebrow { margin: 0; font-size: .65rem; letter-spacing: 4px; color: #d1d7ef; }
.listen-anywhere h3 { font-size: .8rem; margin: 0 0 20px; }
.device-row { display: flex; gap: 24px; }
.device-row div { text-align: center; display: grid; gap: 10px; }
.device-row span { font-size: 2rem; font-weight: 300; }
.device-row small { color: #d8def1; font-size: .72rem; }

.lower-grid { margin-top: 29px; gap: 42px; padding: 0 4px; }
.section-heading { border-bottom: 1px solid rgba(99, 124, 178, .2); padding-bottom: 13px; }
.section-heading h2 { margin: 0; color: #29a2ff; font-size: 1rem; }
.schedule-list, .news-list { margin-top: 8px; }
.schedule-item {
  display: grid;
  grid-template-columns: 84px 1fr 20px;
  align-items: center;
  gap: 18px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(99, 124, 178, .18);
  background: rgba(16, 29, 53, .35);
}
.schedule-item:first-child { border-radius: 12px 12px 0 0; }
.schedule-item:last-child { border-radius: 0 0 12px 12px; }
.schedule-item time { color: #b6c1dc; font-size: 1rem; }
.schedule-item b, .news-item b { display: block; font-size: .9rem; }
.schedule-item span, .news-item span { display: block; color: #aab5d0; font-size: .75rem; margin-top: 6px; }
.schedule-item strong { color: #b8c2dc; font-size: 1.8rem; font-weight: 400; }
.news-item { display: flex; gap: 15px; padding: 9px 0; border-bottom: 1px solid rgba(99, 124, 178, .18); }
.news-item .news-art { width: 108px; height: 57px; border-radius: 7px; }
.news-item b { line-height: 1.35; }

footer {
  margin: 26px 25px 0;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(99, 124, 178, .25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d5dbea;
  font-size: .72rem;
}
footer div { display: flex; gap: 18px; }
footer a:hover { color: #b65aff; }

dialog {
  border: 1px solid #394a87;
  border-radius: 18px;
  background: #0b142a;
  color: white;
  padding: 0;
  box-shadow: 0 20px 80px #000;
}
dialog::backdrop { background: rgba(0,0,0,.75); }
.search-box { min-width: min(450px, 80vw); padding: 30px; display: grid; gap: 18px; }
.search-box h2 { margin: 0; }
.search-box input { padding: 13px; border: 1px solid #344875; border-radius: 8px; background: #050b18; color: white; }
.close-dialog { justify-self: end; border: 0; background: transparent; color: white; font-size: 1.5rem; cursor: pointer; }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #19264b;
  border: 1px solid #5169ac;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: .85rem;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .site-header { padding: 22px; }
  .main-nav { padding: 0 22px; overflow-x: auto; }
  .nav-links { gap: 22px; }
  .social-links { display: none; }
  main { padding-inline: 18px; }
  .top-grid, .lower-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 32px; align-items: flex-start; flex-direction: column; }
  .listen-anywhere { width: 100%; }
  .device-row { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .site-shell { width: 100%; border: 0; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .live-button { width: 100%; justify-content: center; }
  .brand { font-size: 2.25rem; }
  .panel { padding: 18px; }
  .on-air-content { gap: 12px; flex-wrap: wrap; }
  .equalizer { display: none; }
  .hero-panel { padding: 26px 22px; }
  .hero-copy h1 { font-size: 2.15rem; }
  .eyebrow { letter-spacing: 2px; font-size: .55rem; }
  .device-row { gap: 18px; }
  .lower-grid { gap: 30px; }
  footer { margin-inline: 18px; flex-direction: column; align-items: flex-start; }
}

.welcome-copy { margin: 16px 0 8px; }
.welcome-copy p {
  margin: 0 0 12px;
  color: #c9d2e8;
  line-height: 1.55;
  font-size: .92rem;
}
.info-cards { display: grid; gap: 12px; margin-top: 8px; }
.info-card {
  padding: 14px 16px;
  border: 1px solid rgba(99, 124, 178, .2);
  border-radius: 12px;
  background: rgba(16, 29, 53, .35);
}
.info-card h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  color: #e9ddff;
}
.info-card p {
  margin: 0 0 10px;
  color: #aab5d0;
  font-size: .8rem;
  line-height: 1.5;
}
.info-card a { color: #9e57ff; font-size: .8rem; font-weight: 700; }

.news-tabs { display: flex; gap: 8px; }
.news-tab {
  border: 1px solid #394a87;
  background: transparent;
  color: #dce2f2;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.news-tab.active {
  background: linear-gradient(100deg, #247fff, #8224f7);
  border-color: transparent;
  color: #fff;
}
.news-status, .news-credit {
  color: #aab5d0;
  font-size: .75rem;
}
.news-credit { margin-top: 10px; }
.news-item .news-art {
  background-color: #101638;
  background-size: cover;
  background-position: center;
}
