:root {
  color-scheme: light;
  --ink: #12313a;
  --ink-soft: #49646b;
  --blue: #578e9e;
  --blue-dark: #326b7b;
  --orange: #ff7b16;
  --orange-dark: #d95b00;
  --mist: #edf4f5;
  --line: #d9e5e7;
  --paper: #ffffff;
  --canvas: #f7fafb;
  --danger: #a73535;
  --shadow: 0 18px 45px rgba(18, 49, 58, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -5%, rgba(87, 142, 158, 0.16), transparent 26rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong { color: var(--orange); font-weight: 820; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
}

.brand-mark i { position: absolute; border: 2px solid var(--paper); border-block-color: transparent; border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 7px; height: 7px; background: var(--orange); border: 0; }
.brand-mark i:nth-child(2) { width: 16px; height: 16px; }
.brand-mark i:nth-child(3) { width: 25px; height: 25px; opacity: .72; }

.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { text-decoration: none; color: var(--ink-soft); font-weight: 650; font-size: .92rem; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--orange-dark); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 130px; }

.discovery {
  min-height: 300px;
  padding: 52px 54px;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(18, 49, 58, .97), rgba(38, 91, 104, .94)),
    var(--ink);
  color: white;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.discovery::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -185px;
  top: -190px;
  border: 46px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .035), 0 0 0 92px rgba(255, 255, 255, .02);
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: #d2e6ea;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 7px; box-shadow: 0 0 0 5px rgba(255, 123, 22, .16); }

.discovery h1 { max-width: 520px; margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.04; letter-spacing: -.045em; }
.discovery > div > p:last-child { max-width: 430px; margin: 18px 0 0; color: #c7dce0; font-size: 1.02rem; }

.search-panel {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.search-panel label { display: grid; gap: 7px; color: #d7e7ea; font-size: .8rem; font-weight: 700; }
.search-panel .search-main { grid-column: 1 / -1; }
.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
.search-panel input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 123, 22, .18); }
.search-panel button, .primary-button {
  grid-column: 1 / -1;
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  background: var(--orange);
  color: #172f35;
  font-weight: 820;
  cursor: pointer;
}
.search-panel button:hover, .primary-button:hover { background: #ff9140; }

.stations-section { padding: 54px 0 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -.035em; }
.section-heading > p { margin: 0 0 4px; color: var(--ink-soft); }
.section-kicker { color: var(--orange-dark); }

.station-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.station-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.station-card:hover { transform: translateY(-3px); border-color: #bfd2d6; box-shadow: 0 15px 35px rgba(18, 49, 58, .09); }
.station-cover { height: 120px; background: linear-gradient(135deg, #dcebed, #a9c6cc); background-position: center; background-size: cover; position: relative; }
.station-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 49, 58, .42), transparent 65%); }
.live-pill { position: absolute; z-index: 1; top: 13px; right: 13px; padding: 5px 9px; border-radius: 999px; background: rgba(18, 49, 58, .88); color: white; font-size: .68rem; font-weight: 850; letter-spacing: .06em; }
.live-pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 5px; }
.station-body { padding: 0 17px 17px; }
.station-logo {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border: 4px solid white;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  font-weight: 850;
}
.station-title-row { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-top: 12px; }
.station-title-row h3 { margin: 0; min-width: 0; font-size: 1.08rem; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-title-row span { flex: 0 0 auto; color: var(--orange-dark); font-size: .8rem; font-weight: 750; }
.station-meta { margin: 5px 0 13px; color: var(--ink-soft); font-size: .88rem; }
.station-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.station-actions button, .station-actions a, .secondary-button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.station-actions .listen { border-color: var(--ink); background: var(--ink); color: white; }
.station-actions .listen:disabled { opacity: .42; cursor: not-allowed; }

.empty-state, .loading-state, .error-state { grid-column: 1 / -1; padding: 50px 24px; border: 1px dashed #bdd0d4; border-radius: 18px; text-align: center; color: var(--ink-soft); background: rgba(255, 255, 255, .62); }
.empty-state strong, .error-state strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 5px; }

.detail-shell { padding: 10px 0 120px; }
.back-link { display: inline-flex; margin: 12px 0 18px; text-decoration: none; color: var(--blue-dark); font-weight: 750; }
.station-hero { min-height: 330px; border-radius: 26px; overflow: hidden; display: grid; align-items: end; background: linear-gradient(135deg, var(--ink), var(--blue-dark)); background-position: center; background-size: cover; position: relative; box-shadow: var(--shadow); }
.station-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 31, 37, .92), rgba(10, 31, 37, .16)); }
.station-hero-content { position: relative; z-index: 1; padding: 38px; color: white; display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.station-hero-copy { display: flex; align-items: center; gap: 20px; min-width: 0; }
.station-hero-logo { width: 94px; height: 94px; flex: 0 0 auto; border-radius: 22px; display: grid; place-items: center; background: white; color: var(--ink); background-position: center; background-size: cover; font-size: 1.45rem; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.station-hero h1 { margin: 4px 0 2px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; }
.station-hero p { margin: 0; color: #d0e1e4; }
.listen-large { min-width: 165px; min-height: 52px; border: 0; border-radius: 12px; background: var(--orange); color: var(--ink); font-weight: 850; cursor: pointer; }
.listen-large:disabled { opacity: .55; cursor: not-allowed; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; margin-top: 22px; align-items: start; }
.detail-card { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 24px; }
.detail-card h2 { margin: 0 0 15px; font-size: 1.25rem; letter-spacing: -.025em; }
.detail-card p { color: var(--ink-soft); }
.program-list { display: grid; gap: 10px; }
.program-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.program-row:first-child { border-top: 0; }
.program-row time { color: var(--orange-dark); font-size: .85rem; font-weight: 800; }
.program-row strong { display: block; }
.program-row small { color: var(--ink-soft); }
.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none; color: var(--ink); background: #fbfdfd; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(87,142,158,.13); }
.lead-form textarea { min-height: 95px; resize: vertical; }
.lead-form .honeypot { position: absolute; left: -10000px; }
.consent { display: flex !important; grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; color: var(--ink-soft); }
.consent input { width: 17px; margin-top: 3px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.player { position: fixed; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(680px, calc(100% - 28px)); min-height: 78px; border-radius: 18px; padding: 10px 13px; background: rgba(18, 49, 58, .97); color: white; display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 13px; box-shadow: 0 18px 55px rgba(18,49,58,.34); backdrop-filter: blur(18px); }
.player[hidden] { display: none; }
.player-art { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--blue)); background-position: center; background-size: cover; }
.player-copy { min-width: 0; display: grid; }
.player-copy span { color: #ffad6e; font-size: .66rem; font-weight: 850; letter-spacing: .08em; }
.player-copy strong, .player-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-copy small { color: #bcd0d4; }
.player-toggle { width: 45px; height: 45px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-weight: 900; cursor: pointer; }

.toast { position: fixed; z-index: 30; right: 22px; top: 22px; max-width: 390px; padding: 13px 16px; border-radius: 11px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.toast.error { background: var(--danger); }

@media (max-width: 900px) {
  .discovery { grid-template-columns: 1fr; gap: 28px; padding: 38px; }
  .station-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main { width: min(100% - 24px, 1180px); }
  .site-header { height: 66px; }
  .site-header nav a:first-child { display: none; }
  .site-header nav { gap: 14px; }
  .discovery { padding: 28px 20px; border-radius: 20px; }
  .search-panel { grid-template-columns: 1fr; padding: 15px; }
  .search-panel .search-main, .search-panel button { grid-column: auto; }
  .stations-section { padding-top: 36px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .station-grid { grid-template-columns: 1fr; }
  .station-hero { min-height: 390px; }
  .station-hero-content { padding: 24px; align-items: start; flex-direction: column; }
  .station-hero-copy { align-items: start; flex-direction: column; }
  .station-hero-logo { width: 76px; height: 76px; border-radius: 18px; }
  .listen-large { width: 100%; }
  .detail-card { padding: 19px; }
  .program-row { grid-template-columns: 1fr; gap: 2px; }
  .player { bottom: 10px; border-radius: 15px; }
}

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