:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #eef4fb;
  --ink: #07111f;
  --text: #142033;
  --muted: #526073;
  --soft: #738196;
  --line: #d8e1ec;
  --blue: #155eef;
  --blue-dark: #0f3fa8;
  --teal: #12bfa0;
  --gold: #b97808;
  --coral: #d7493f;
  --shadow: 0 18px 48px rgba(20, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(21, 94, 239, 0.08), transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.7rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(20, 32, 51, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.directory-stats,
.sort-row,
.player,
.profile-links,
.badge-row,
.tag-row,
.action-row,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: clamp(14.5rem, 25vw, 22rem);
  height: clamp(4rem, 6vw, 5.4rem);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a,
.nav summary {
  min-height: 2.5rem;
  padding: 0.62rem 0.8rem;
  border-radius: 0.45rem;
}

.nav a:hover,
.nav a:focus-visible,
.nav summary:hover,
.nav summary:focus-visible {
  background: #e8f0ff;
  color: var(--blue-dark);
  outline: none;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 13.5rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 42px rgba(20, 32, 51, 0.16);
}

.nav-submenu a {
  color: var(--ink);
  white-space: nowrap;
}

main {
  padding-bottom: 8.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.5fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow,
.panel-label,
.player-kicker {
  margin: 0 0 0.55rem;
  color: #047d6b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 56rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2.35rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.12rem;
}

.hero p,
.section-heading p,
.feature-strip li,
.profile-summary,
.card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy > p {
  max-width: 46rem;
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.signal-panel,
.hero-logo-panel,
.results-panel,
.profile-panel,
.submit-shell,
.feature-strip {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.signal-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  min-height: 10.5rem;
  padding: 1.2rem;
  border-radius: 0.7rem;
}

.hero-logo-panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0.8rem;
  background: #fff;
}

.hero-logo-panel img {
  display: block;
  width: 100%;
  min-height: 12rem;
  object-fit: contain;
  object-position: center;
  padding: clamp(0.7rem, 2vw, 1.1rem);
}

.signal-panel strong,
.signal-panel span {
  display: block;
}

.signal-panel strong {
  color: var(--ink);
}

.signal-panel span {
  margin-top: 0.3rem;
  color: var(--muted);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 0.25rem;
  height: 4.8rem;
}

.signal-bars span {
  width: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd36a, var(--teal));
}

.signal-bars span:nth-child(1) { height: 32%; }
.signal-bars span:nth-child(2) { height: 58%; }
.signal-bars span:nth-child(3) { height: 88%; }
.signal-bars span:nth-child(4) { height: 68%; }
.signal-bars span:nth-child(5) { height: 42%; }

.directory-shell,
.submit-shell,
.feature-strip {
  margin: 0 clamp(1rem, 4vw, 3rem) 1.4rem;
}

.directory-shell {
  padding-top: 0.25rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.section-heading.compact {
  align-items: start;
}

.section-heading > p,
.section-heading.compact > p {
  max-width: 48rem;
  margin-bottom: 0;
}

.directory-stats {
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.45rem;
}

.stat-pill,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid #cbd6e4;
  border-radius: 999px;
  background: #f7faff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.badge.priority {
  border-color: rgba(18, 191, 160, 0.38);
  background: #e8fff8;
  color: #047d6b;
}

.filters,
.submit-form {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(9rem, 0.65fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.submit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.95rem;
  border: 1px solid #c8d4e3;
  border-radius: 0.52rem;
  background: #ffffff;
  color: var(--ink);
  padding: 0.72rem 0.82rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8090a6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 94, 239, 0.8);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.15);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.43fr);
  gap: 1rem;
  align-items: start;
}

.results-panel,
.profile-panel,
.submit-shell,
.feature-strip {
  border-radius: 0.7rem;
}

.results-panel,
.profile-panel,
.submit-shell {
  padding: 1rem;
}

.sort-row {
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  color: var(--muted);
  font-weight: 750;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.85rem;
}

.card {
  display: grid;
  gap: 0.7rem;
  min-height: 18rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.96)),
    radial-gradient(circle at 9% 0%, color-mix(in srgb, var(--logo-bg, #155eef) 22%, transparent), transparent 12rem);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.station-logo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.62rem;
  background: var(--logo-bg, #155eef);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.2);
}

.station-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  background: #fff;
}

.station-logo.has-image span {
  opacity: 0;
}

.card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.meta-line {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.badge-row,
.tag-row,
.action-row,
.profile-links {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.action-row {
  margin-top: auto;
}

button,
.link-button,
.primary-button,
.secondary-button {
  min-height: 2.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

button {
  border: 0;
}

.primary-button,
.listen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 0.95rem;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
}

.primary-button:hover,
.listen-button:hover {
  background: var(--blue-dark);
}

.secondary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.86rem;
  border: 1px solid #c9d5e4;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.secondary-button:hover,
.ghost-button:hover,
.link-button:hover {
  background: #edf4ff;
  color: var(--blue-dark);
}

.profile-panel {
  position: sticky;
  top: 5.25rem;
}

.profile-hero {
  display: grid;
  place-items: center;
  min-height: clamp(10rem, 22vw, 15rem);
  padding: clamp(1rem, 3vw, 1.4rem);
  border-radius: 0.58rem;
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.16), rgba(18, 191, 160, 0.14)),
    var(--logo-bg, #dfe8f6);
  overflow: hidden;
}

.profile-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(82%, 13rem);
  max-height: clamp(7.5rem, 16vw, 11.5rem);
  object-fit: contain;
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 18px 32px rgba(20, 32, 51, 0.18));
}

.profile-logo-fallback {
  display: grid;
  place-items: center;
  width: min(10rem, 70%);
  aspect-ratio: 1;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(20, 32, 51, 0.18);
}

.profile-summary {
  margin: 1rem 0;
}

.profile-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
  color: var(--muted);
}

.profile-list strong {
  color: var(--ink);
}

.wide {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 1.25rem;
  margin: 0;
  color: #047d6b;
  font-weight: 800;
}

.turnstile-slot {
  display: grid;
  justify-items: start;
  min-height: 0;
}

.form-modal[hidden] {
  display: none !important;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.58);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(58rem, 100%);
  max-height: min(86vh, 58rem);
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-card.submit-shell {
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: -0.2rem -0.2rem 0.5rem 0.75rem;
  border: 1px solid #c9d5e4;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.14);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #edf4ff;
  color: var(--blue-dark);
  outline: none;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1fr);
  gap: 1.4rem;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(18, 191, 160, 0.12), rgba(21, 94, 239, 0.08)),
    var(--surface);
}

.feature-strip ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.site-footer {
  display: block;
  margin: 0 clamp(1rem, 4vw, 3rem) 1.4rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(21, 94, 239, 0.18);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96)),
    #fff;
  color: var(--muted);
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.08);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer span {
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
}

.nt-powered-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 72rem;
}

.nt-powered-block img {
  display: block;
  width: clamp(5.5rem, 10vw, 7.2rem);
  height: auto;
}

.nt-corporate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.55rem;
  color: #244a86;
  font-size: 0.88rem;
  font-weight: 800;
}

.nt-corporate-links a:hover,
.nt-corporate-links a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  outline: none;
}

.nt-copyright a {
  color: #244a86;
  font-weight: 850;
}

.nt-copyright {
  margin-top: 0.55rem;
  color: var(--soft);
  font-size: 0.83rem;
}

.sf-footer,
.studioairos-footer-bar,
[data-saos-platform-footer],
[data-studioairos-footer="1"] {
  display: none !important;
}

.player {
  position: fixed;
  right: clamp(0.8rem, 3vw, 2rem);
  bottom: clamp(0.8rem, 3vw, 1.4rem);
  left: clamp(0.8rem, 3vw, 2rem);
  z-index: 30;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem;
  border: 1px solid #bdcadb;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(20, 32, 51, 0.2);
  backdrop-filter: blur(18px);
}

.player-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 0.65rem;
  background: var(--logo-bg, #155eef);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.18);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  background: #fff;
}

.player-art.is-refreshing {
  animation: nt-logo-refresh 360ms ease;
}

@keyframes nt-logo-refresh {
  0% {
    transform: rotate(-3deg) scale(0.96);
    opacity: 0.72;
  }
  100% {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.player-meta {
  display: grid;
  min-width: 12rem;
  flex: 1 1 auto;
}

.player-meta strong {
  color: var(--ink);
}

.player-meta span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.player-feedback {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-feedback[hidden] {
  display: none;
}

.player-feedback button {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  border: 1px solid #c9d5e4;
  background: #fff;
  font-size: 1rem;
  box-shadow: none;
}

.player-feedback button:hover:not(:disabled),
.player-feedback button:focus-visible {
  border-color: var(--blue);
  background: #edf4ff;
}

.player-feedback button[aria-pressed="true"] {
  border-color: var(--teal);
  background: #dffaf5;
  opacity: 1;
}

.player-feedback button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.player-feedback button[aria-pressed="true"]:disabled {
  opacity: 1;
}

.profile-links-secondary {
  margin: 0.45rem 0 1rem;
}

audio {
  width: min(46rem, 52vw);
  min-width: 18rem;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed #bdcadb;
  border-radius: 0.55rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .feature-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-heading,
  .player {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .brand-logo {
    width: clamp(13rem, 58vw, 17rem);
    height: 4.1rem;
  }

  .nav-submenu {
    left: 0;
    right: auto;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .filters,
  .submit-form {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .player-art {
    width: 3.2rem;
    height: 3.2rem;
  }

  .player-feedback {
    justify-content: flex-start;
  }

  audio {
    width: 100%;
    min-width: 0;
  }
}
