:root {
  --brand-blue: #0d6efd;
  --brand-cyan: #1ca3ec;
  --brand-indigo: #6610f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f8f9fa;
  --danger: #dc3545;
  --site-primary: #dc3545;
}

html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 0;
  padding-bottom: .25rem !important;
}
.site-header .row { --bs-gutter-y: 0; }
.site-logo {
  max-height: 88px;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin-top: .35rem;
}
.language-switcher a {
  color: #495057;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .22rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}
.language-switcher a.active,
.language-switcher a:hover {
  color: #fff;
  background: var(--site-primary);
  border-color: var(--site-primary);
}
.menu-bar {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-top: 0 !important;
  background-color: var(--site-primary);
}
.glass-nav {
  background: linear-gradient(90deg, var(--site-primary) 0%, color-mix(in srgb, var(--site-primary) 72%, #111827) 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  backdrop-filter: saturate(160%) blur(8px);
}
.btn-primary,
.btn-danger {
  --bs-btn-bg: var(--site-primary);
  --bs-btn-border-color: var(--site-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--site-primary) 84%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--site-primary) 84%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--site-primary) 76%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--site-primary) 76%, #000);
}
.btn-outline-danger {
  --bs-btn-color: var(--site-primary);
  --bs-btn-border-color: var(--site-primary);
  --bs-btn-hover-bg: var(--site-primary);
  --bs-btn-hover-border-color: var(--site-primary);
  --bs-btn-active-bg: color-mix(in srgb, var(--site-primary) 76%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--site-primary) 76%, #000);
}
.navbar-nav .nav-link {
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .75rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none !important;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: .4rem;
  height: 2px;
  background: rgba(255,255,255,.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  border-radius: 1px;
}
.navbar-nav .nav-link:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 4px 12px rgba(0,0,0,.25);
  background-color: rgba(255,255,255,.08);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { background: rgba(255,255,255,.14); }
.navbar-toggler { border-color: rgba(255,255,255,.35); }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(255,255,255,.25); }

#radio-grid.row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1.25rem;
}
.home-hero {
  min-height: 460px;
  background-image: url('/assets/img/radio-hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.home-hero-overlay {
  min-height: 460px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(5,9,18,.70) 0%, rgba(5,9,18,.38) 55%, rgba(5,9,18,.18) 100%);
}
.home-search {
  color: #fff;
  background: rgba(9, 17, 32, .62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  max-width: 1050px;
}
.home-search .form-label {
  font-weight: 700;
}
.radio-card {
  position: relative;
  background-color: rgba(248,249,250,.96);
  border: 1px solid var(--line);
  border-radius: .75rem;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.radio-card-actions {
  flex: 0 0 144px;
  width: 144px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stream-error-badge {
  position: absolute;
  left: .75rem;
  right: .75rem;
  top: .55rem;
  z-index: 2;
  padding: .35rem .6rem;
  border-radius: 8px;
  background: rgba(25, 135, 84, .74);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
}
.radio-card.has-stream-error {
  padding-top: 2.65rem;
}
.radio-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.logo-box {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(0,0,0,.08);
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio-logo {
  width: 100%;
  height: 100%;
  border: 2px solid #ddd;
  object-fit: cover;
  border-radius: 0 !important;
  background: #fff;
}
.radio-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.radio-country {
  color: var(--muted);
  font-size: .8rem;
}
.radio-listeners {
  display: block;
  color: #495057;
  font-size: .78rem;
  margin-top: .15rem;
}
.play-btn {
  min-width: 72px;
  background-color: transparent;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: transform .2s ease;
}
.play-btn:hover,
.play-btn:focus-visible {
  transform: scale(1.05);
}
.play-img {
  width: 66px;
  height: 66px;
  display: block;
}
.radio-card.playing {
  background: linear-gradient(135deg, var(--site-primary) 0%, color-mix(in srgb, var(--site-primary) 62%, #111827) 100%);
  border-color: var(--site-primary);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--site-primary) 38%, transparent);
}
.radio-card.playing .radio-name,
.radio-card.playing .radio-country,
.radio-card.playing .radio-listeners { color: #fff; }
.radio-card.playing .radio-logo {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.36), 0 0 0 6px rgba(220,53,69,.25);
}
.radio-card.playing .play-btn {
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none;
}
.radio-card.playing .js-player-notify {
  color: #fff;
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
}
.radio-card.playing .js-player-notify:hover,
.radio-card.playing .js-player-notify:focus-visible {
  color: var(--site-primary);
  background: #fff;
  border-color: #fff;
}
.ratings-list {
  display: grid;
  gap: .75rem;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rating-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-primary);
  color: #fff;
  font-weight: 800;
  flex: 0 0 34px;
}
.rating-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.rating-main {
  flex: 1;
  min-width: 0;
}
.rating-title {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.rating-progress {
  height: 12px;
  margin: .35rem 0 .15rem;
}

.form-page {
  max-width: 1040px;
}
.country-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pricing-card {
  border-radius: 1rem;
}
.pricing-card .card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}
.pricing-card .display-6 {
  font-size: 2rem;
}
.check-mark {
  color: #198754;
  font-weight: 800;
}

.site-footer {
  background: #111827;
  color: #fff;
  margin-top: 2rem;
}
.site-copybar a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}
.site-copybar a:hover {
  color: #fff;
}
.site-copybar {
  background: #000;
  color: #fff;
  padding: .6rem 0;
}
.copybar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: 3.75rem;
  transform: translateX(-50%);
  z-index: 2000;
}
.pwa-toast .inner {
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
}
.recaptcha-box {
  min-height: 78px;
}
.recaptcha-box.recaptcha-box-error::after {
  content: attr(data-error);
  display: block;
  max-width: 420px;
  padding: .75rem;
  border: 1px solid #ffc107;
  border-radius: .5rem;
  background: #fff3cd;
  color: #664d03;
  font-size: .9rem;
}
.download-page {
  background: #f6f8fb;
}
.download-hero {
  padding: clamp(2rem, 4vw, 4.5rem) 0;
}
.download-hero-chrome {
  background: #fff;
}
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.download-section-desktop {
  grid-template-columns: minmax(320px, 540px) minmax(0, 1fr);
}
.download-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 .8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-primary) 12%, #fff);
  color: var(--site-primary);
  font-weight: 800;
  font-size: .9rem;
}
.download-copy h1,
.download-copy h2 {
  margin: 1rem 0 .85rem;
  color: #111827;
  font-weight: 900;
  letter-spacing: 0;
}
.download-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}
.download-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.download-copy p {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.75;
}
.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 1.1rem;
  margin-top: 1.4rem;
}
.download-actions .btn {
  min-width: 220px;
  font-weight: 800;
}
.download-actions span {
  color: #64748b;
  font-weight: 700;
}
.download-note {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--site-primary);
  background: #f8fafc;
}
.download-media {
  position: relative;
}
.download-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
}
.download-media-stack {
  min-height: 360px;
}
.download-chrome-main {
  border: 1px solid #dbe3ef;
}
.download-chrome-badge {
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  max-width: 42%;
  border: 6px solid #fff;
}
.download-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--site-primary), transparent);
}

@media (max-width: 767.98px) {
  .navbar-collapse { padding: .5rem 0; }
  .navbar-nav .nav-item + .nav-item { margin-top: .25rem; }
  .navbar-nav .nav-link { width: 100%; }
  .download-section,
  .download-section-desktop {
    grid-template-columns: 1fr;
  }
  .download-section-desktop .download-media {
    order: -1;
  }
  .download-copy h1,
  .download-copy h2 {
    font-size: 2rem;
  }
  .download-media-stack {
    min-height: 0;
  }
  .download-chrome-badge {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
    border-width: 0;
  }
  .download-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .site-logo {
    margin: 0 auto;
  }
  .radio-card {
    min-height: 98px;
    padding: .85rem;
  }
  .home-hero,
  .home-hero-overlay {
    min-height: 420px;
  }
  .home-search {
    padding: .85rem;
  }
  .logo-box {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .play-btn {
    min-width: 66px;
  }
  .play-img {
    width: 58px;
    height: 58px;
  }
  .radio-card-actions {
    flex-basis: 118px;
    width: 118px;
  }
  .copybar-inner {
    justify-content: center;
    flex-wrap: wrap;
  }
}
