/* Tunely Radio — broadcast studio aesthetic */

:root {
  --bg: #08080b;
  --bg-elevated: #0e0e13;
  --surface: #13131a;
  --surface-2: #1c1c26;
  --surface-3: #252532;
  --ink: #f4f2ed;
  --ink-muted: #a9a5a0;
  --ink-faint: #6b6864;
  --accent: #ff6b6b;
  --accent-dim: #ff5252;
  --accent-bright: #ff8585;
  --accent-soft: rgba(255, 107, 107, 0.14);
  --accent-ring: rgba(255, 107, 107, 0.42);
  --accent-glow: rgba(255, 107, 107, 0.22);
  --inverse: #050506;
  --inverse-surface: #0c0c10;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-hero: "Bricolage Grotesque", system-ui, sans-serif;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --player-h: 72px;
  --container: min(1120px, calc(100% - 2.5rem));
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --ease: 0s; }
  html { scroll-behavior: auto; }
  .hero-glow, .hero-wave, .featured-stations li { animation: none !important; opacity: 1 !important; transform: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.player-active { padding-bottom: var(--player-h); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.defer-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 11, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(26px, 4vw, 34px);
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 24px;
  opacity: 0.92;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  transition: color var(--ease);
}

@media (hover: hover) {
  .main-nav a:not(.btn):hover { color: var(--accent-bright); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a:not(.btn) { color: var(--ink-muted); }

@media (hover: hover) {
  .mobile-nav a:not(.btn):hover { color: var(--accent-bright); }
}

.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { display: flex; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-sm { padding: 0.48rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.8rem 1.65rem; font-size: 0.9375rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  color: #0a0a0c;
  box-shadow: 0 2px 16px var(--accent-glow);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
    color: #0a0a0c;
  }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--border);
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: rgba(255, 107, 107, 0.4);
    color: var(--accent-bright);
    background: var(--accent-soft);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 0%, rgba(255, 107, 107, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(255, 107, 107, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  opacity: 0.12;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    var(--accent) 3px,
    var(--accent) 4px
  );
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content { max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
}

.page-home .hero h1 {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline-gradient {
  display: block;
  background: linear-gradient(100deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-stats li {
  flex: 1;
  min-width: 110px;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease);
}

@media (hover: hover) {
  .hero-stats li:hover { border-color: var(--border-hover); }
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--accent-bright);
}

.hero-stats span {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* Hero featured preview */
.hero-preview {
  position: relative;
}

.hero-preview-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}

.featured-stations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .featured-stations li {
    animation: fade-up 0.6s ease both;
  }
  .featured-stations li:nth-child(2) { animation-delay: 0.1s; }
  .featured-stations li:nth-child(3) { animation-delay: 0.2s; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

@media (hover: hover) {
  .featured-card:hover {
    border-color: rgba(255, 107, 107, 0.35);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--accent-dim);
  }
}

.featured-card-art {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
}

.featured-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-card-body { flex: 1; min-width: 0; }

.featured-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.featured-card-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.featured-card-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid rgba(255, 107, 107, 0.25);
  transition: background var(--ease), transform var(--ease);
}

@media (hover: hover) {
  .featured-card:hover .featured-card-play {
    background: var(--accent);
    color: #0a0a0c;
    transform: scale(1.05);
  }
}

/* Sections */
.section-header {
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.page-title {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-header h1.page-title,
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-top: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-header--inverse h2,
.section-header--inverse .section-lead { color: #fff; }

.section-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.features {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), transform var(--ease);
}

@media (hover: hover) {
  .feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
  }
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Directory page */
.directory-page {
  padding: 2.5rem 0 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  transition: color var(--ease);
}

@media (hover: hover) {
  .back-link:hover { color: var(--accent-bright); }
}

.directory-page-header .page-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin: 0.5rem 0 0.65rem;
}

.directory-intro {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
}

.directory-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--header-h) + 0.5rem);
  z-index: 10;
}

.search-field {
  position: relative;
  display: block;
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-field input::placeholder { color: var(--ink-faint); }

.search-field input:focus {
  outline: none;
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 130px;
}

.select-field span {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.select-field select {
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a9a5a0' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  appearance: none;
  cursor: pointer;
  color: var(--ink);
}

.sort-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.results-meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Station cards */
.station-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  contain: layout style paint;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

@media (hover: hover) {
  .station-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  }
}

.station-card.is-playing {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-ring), 0 8px 32px var(--accent-glow);
}

.station-card--tunely:not(.is-playing) {
  border-color: rgba(255, 107, 107, 0.22);
}

.station-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.station-art {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  overflow: hidden;
}

.station-art--logo {
  padding: 4px;
  background: var(--surface-2) !important;
}

.station-art-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
}

.station-name-link {
  display: block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ease);
}

@media (hover: hover) {
  .station-name-link:hover { color: var(--accent-bright); }
}

.station-meta { flex: 1; min-width: 0; }

.station-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-width: 0;
}

.station-genre {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.station-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.station-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.badge {
  padding: 0.22rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
}

.badge--tunely {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.badge--country {
  background: var(--surface-2);
  color: var(--ink-faint);
}

.btn-play {
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

@media (hover: hover) {
  .btn-play:hover {
    background: var(--accent);
    color: #0a0a0c;
    border-color: transparent;
  }
}

.station-card.is-playing .btn-play {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: rgba(255, 107, 107, 0.3);
}

.card-now-playing {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: -0.25rem 0 0.75rem;
  line-height: 1.4;
}

.card-np-label {
  color: var(--accent-dim);
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.btn-popup {
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

@media (hover: hover) {
  .btn-popup:hover {
    border-color: var(--accent-dim);
    color: var(--accent-bright);
  }
}

/* CTA */
/* FAQ — SEO / GEO */
.faq-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.faq-item {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.faq-item dt {
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.faq-item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.faq-item a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-station-index {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-station-index-title {
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.seo-station-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.seo-station-index a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .seo-station-index a:hover { color: var(--accent-bright); }
}

.cta-band { padding: 3.5rem 0 5rem; }

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 2.5rem 2.75rem;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 60%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-card p {
  position: relative;
  color: var(--ink-muted);
  max-width: 420px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cta-card .btn-primary {
  position: relative;
  margin-top: 0.5rem;
}

/* Radiocast ad */
.radiocast-ad-band {
  padding: 2rem 0 0;
}

.radiocast-ad-band--popup {
  padding: 1.25rem 0 0;
  margin-top: 0.5rem;
}

.radiocast-ad {
  display: block;
}

.radiocast-ad-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.radiocast-ad-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-dim));
}

.radiocast-ad-badge {
  flex-shrink: 0;
  margin: 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface-3);
  border-radius: 6px;
}

.radiocast-ad-copy {
  flex: 1;
  min-width: 220px;
}

.radiocast-ad-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.radiocast-ad-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-hero);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.radiocast-ad-title span {
  color: var(--accent-bright);
}

.radiocast-ad-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 520px;
}

.radiocast-ad-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.radiocast-ad--compact .radiocast-ad-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.radiocast-ad--compact .radiocast-ad-badge {
  align-self: flex-start;
}

.radiocast-ad--compact .radiocast-ad-desc {
  font-size: 0.8125rem;
}

.radiocast-ad--compact .radiocast-ad-cta {
  width: 100%;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color var(--ease);
}

@media (hover: hover) {
  .footer-nav a:hover { color: var(--accent-bright); }
}

.footer-copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

@media (min-width: 640px) {
  .footer-copy { width: auto; margin-left: 0; }
}

/* Station detail page */
.station-detail-page {
  padding: 2.5rem 0 5rem;
}

.station-detail-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.station-detail-hero {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .station-detail-hero {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2.5rem;
  }
}

.station-detail-art {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  height: auto;
  min-height: 140px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .station-detail-art { margin-inline: 0; }
}

.station-detail-copy h1 {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.station-detail-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.station-detail-desc {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  box-shadow: 0 2px 16px var(--accent-glow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-play-toggle--lg {
  width: 56px;
  height: 56px;
}

.btn-play-toggle--sm {
  width: 40px;
  height: 40px;
}

@media (hover: hover) {
  .btn-play-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--accent-glow);
  }
}

.btn-play-toggle .icon-pause { display: none; }
.btn-play-toggle.is-playing .icon-play { display: none; }
.btn-play-toggle.is-playing .icon-pause { display: block; }

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.volume-control--compact {
  flex: 0 1 120px;
  min-width: 90px;
  max-width: 120px;
}

.volume-icon {
  flex-shrink: 0;
  color: var(--ink-muted);
}

.volume-slider {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-3);
  border-radius: 999px;
  cursor: pointer;
  accent-color: var(--accent);
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.station-not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.station-not-found h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.station-not-found p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* Submit station */
.submit-page {
  padding: 2.5rem 0 5rem;
}

.submit-page .page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.submit-intro {
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.submit-form {
  max-width: 520px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.submit-form .field { margin-bottom: 1.1rem; }

.submit-form label.field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form input[type="email"],
.submit-form select,
.submit-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.submit-form textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  outline: none;
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.submit-form .field-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.submit-done {
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: none;
}

.submit-done.is-visible { display: block; }

.submit-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Player */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--player-h);
  background: rgba(14, 14, 19, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.player-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.player-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-station {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-genre {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.player-track {
  font-size: 0.6875rem;
  color: var(--accent-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

/* Now playing blocks */
.np-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 2rem 0 0.85rem;
}

.np-section,
.np-history-section {
  margin-top: 0.5rem;
}

.np-now {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  padding: 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.np-art {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
}

.np-track {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.np-artist {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.np-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.np-history-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

@media (hover: hover) {
  .np-history-item:hover { border-color: var(--border-hover); }
}

.np-history-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.np-history-title {
  font-size: 0.8125rem;
  font-weight: 600;
}

.np-history-artist {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

.station-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

/* Popup player */
.popup-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font);
}

.popup-shell {
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.popup-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.popup-station-name {
  font-family: var(--font-hero);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.popup-shell .np-track {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.popup-station-tag {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.popup-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.popup-controls .btn { width: 100%; text-align: center; }

.np-now--popup { margin-top: 0.5rem; }

.np-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.np-now-inner {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.popup-error {
  font-size: 0.8125rem;
  color: #f0a0a0;
  margin-top: 0.85rem;
}

.player-live {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: #c0392b;
  border-radius: 4px;
}

.player-live.is-tunely { background: var(--accent-dim); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .player-live.is-live { animation: live-pulse 2s ease-in-out infinite; }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.btn-player {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

@media (hover: hover) {
  .btn-player:hover {
    background: var(--accent);
    color: #0a0a0c;
    border-color: transparent;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 3rem 0 2.5rem; }
  .footer-nav { margin-left: 0; }
  .directory-toolbar { top: var(--header-h); }
}
