:root {
  --ink-violet-950: #1a0f2b;
  --ink-violet-900: #241740;
  --ink-violet-800: #34215c;
  --violet-600: #6b3fa0;
  --violet-500: #8b5cf6;
  --amber-500: #d9a441;
  --amber-600: #b8860b;
  --paper: #f4efe4;
  --paper-dim: #ded5c2;
  --led-green: #46ffa0;
  --text-high: #f4efe4;
  --text-mid: #c9bfe0;
  --text-low: #9a8fc0;
  --danger: #e8563f;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-violet-950);
  color: var(--text-high);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.cabinet-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-violet-950) 0%, var(--ink-violet-900) 100%);
}

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 20px 20px 4px;
}

.wordmark-logo {
  display: inline-block;
  width: min(260px, 46vw);
  height: auto;
  border-radius: 10px;
}

.tagline {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-mid);
  font-style: italic;
}

/* ---------- Layout: single column on mobile, two columns on wide screens ---------- */

.layout-row {
  display: flex;
  flex-direction: column;
}

.radio-col {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink-violet-950);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}

.content-col {
  min-width: 0;
}

@media (min-width: 900px) {
  /* Scoped to the main app shell only (html.app-shell) -- this fixed,
     non-scrolling-body layout is specific to the radio app page and must
     NOT leak into other pages (like /stations/) that share this
     stylesheet, or their content becomes unscrollable. */
  html.app-shell, html.app-shell body { height: 100%; overflow: hidden; }

  html.app-shell body { display: flex; flex-direction: column; }

  .site-header { padding-bottom: 10px; flex: 0 0 auto; }

  .wordmark-logo { width: 150px; }

  .layout-row {
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .radio-col {
    position: static;
    box-shadow: none;
    flex: 0 0 46%;
    max-width: 560px;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .content-col {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-right: 6px;
  }

  .search-row { flex: 0 0 auto; }

  .station-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 40px;
  }

  .search-row,
  .station-panel {
    max-width: none;
    margin-left: 22px;
    margin-right: 22px;
  }
}

/* ---------- Radio stage (fixed, non-scrolling hero) ---------- */

.radio-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 16px 10px;
}

.radio-frame {
  width: min(520px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* .radio-stage (the parent) is display:flex, and flex items default
     to min-width:auto -- meaning a nowrap-text descendant (the mobile
     LED display) can force this item wider than the `width` above
     whenever a station name is long. This opts back into honoring the
     explicit width regardless of content. Pure correctness fix, no
     visual effect on its own. */
  min-width: 0;
}

.radio-skin { width: 100%; }

.radio-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}

.skin-arrow {
  background: var(--ink-violet-800);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--text-mid);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.skin-arrow:hover { background: var(--violet-600); color: var(--text-high); }
.skin-arrow:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }

.now-playing-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  text-align: center;
  min-height: 16px;
}

/* SVG internals */
.cabinet-brand {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--amber-500);
  letter-spacing: 0.03em;
}
.led-text {
  font-family: var(--font-mono);
  font-size: 22px;
  fill: var(--led-green);
  dominant-baseline: middle;
}
.led-text--sm { font-size: 15px; }
.led-viewport { overflow: hidden; }
.power-label {
  font-family: var(--font-body);
  font-size: 8px;
  fill: var(--text-low);
  letter-spacing: 0.08em;
}
.knob-label {
  font-family: var(--font-body);
  font-size: 8px;
  fill: #d8c9a3;
  letter-spacing: 0.06em;
}
.dial-band-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #c9a24a;
  letter-spacing: 0.04em;
}
.deco-label {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: #d8c9a3;
  opacity: 0.55;
  letter-spacing: 0.03em;
}
.dial-scale line { opacity: 0.7; }
[data-role="dial-ticks"] line { stroke: #c9a24a; stroke-width: 1; opacity: 0.55; }
[data-role="dial-pointer"] { transition: x 0.6s cubic-bezier(.4,1.4,.4,1); }
.play-toggle { cursor: pointer; }
.play-toggle:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
[data-role="play-toggle-knob"] { transition: cx 0.2s ease; }

/* Play/pause hidden site-wide (all 4 skins share this data-role) --
   element is kept in the DOM rather than removed from the markup,
   since script.js may bind to it directly without a null-check. */
[data-role="play-toggle"] { display: none; }

/* mute, relocated into the knob band -- metallic knob texture
   instead of the dark .radio-btn circle styling */
.radio-btn--knob circle { fill: url(#knobGradMetal); stroke: #3a3c40; stroke-width: 2; }
.radio-btn--knob:hover circle { fill: url(#knobGradMetal); }

/* status LED: red while idle/disconnected, green + pulsing while a
   station is playing. Scoped to the metallic skin only, matching the
   rest of this project's changes -- the other 3 skins' indicators are
   left exactly as they were. The fill below is a CSS property, which
   takes precedence over the fill="" XML attribute script.js sets --
   so this recolors the indicator regardless of which raw color
   script.js assigns; only the is-live class (toggled by
   mobile-skin-bridge.js, watching that same attribute) needs to track
   play state. */
.radio-skin[data-skin="metallic"] [data-role="power-led"] {
  fill: #e74c3c;
  transition: fill 0.2s ease;
}
.radio-skin[data-skin="metallic"] [data-role="power-led"].is-live {
  fill: #2ecc71;
  animation: ledPulse 1.4s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.radio-btn circle {
  fill: var(--ink-violet-800);
  stroke: rgba(139, 92, 246, 0.4);
  stroke-width: 1.5;
  transition: fill 0.15s ease;
}
.radio-btn { cursor: pointer; }
.radio-btn:hover circle { fill: var(--violet-600); }
.radio-btn:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.radio-btn-icon { fill: #f4efe4; stroke: #f4efe4; }
#muteToggle.is-muted circle { fill: rgba(232, 86, 63, 0.25); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-violet-800);
  border: 1px solid rgba(139,92,246,0.4);
  color: var(--text-high);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-error {
  border-color: rgba(232, 86, 63, 0.6);
}

/* ---------- Station panel ---------- */

.station-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 18px 60px;
}

.search-row {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink-violet-900);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 0 14px;
  max-width: 720px;
  margin: 6px auto 16px;
  margin-left: 18px;
  margin-right: 18px;
}
@media (min-width: 758px) {
  .search-row { margin-left: auto; margin-right: auto; }
}
.search-icon { color: var(--text-low); flex-shrink: 0; }
#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 10px;
}
#searchInput::placeholder { color: var(--text-low); }
.clear-search {
  background: none;
  border: none;
  color: var(--text-low);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
.clear-search:hover { color: var(--text-high); }

.category-list { display: flex; flex-direction: column; gap: 12px; }

.category {
  background: var(--ink-violet-900);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  overflow: hidden;
  scroll-margin-top: 12px;
}

.category-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-high);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.category-head:hover { background: rgba(139, 92, 246, 0.08); }
.category-head:focus-visible { outline: 2px solid var(--amber-500); outline-offset: -2px; }

.category-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  font-weight: 400;
  margin-left: 8px;
}

.category-chevron {
  transition: transform 0.2s ease;
  color: var(--text-mid);
  flex-shrink: 0;
}
.category.open .category-chevron { transform: rotate(180deg); }

.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.category.open .category-body {
  max-height: 30000px;
}

/* Category pages (/category/{slug}/) show one category as a flat,
   always-open list -- no accordion head, no collapse/expand. */
.category-body--flat {
  max-height: none;
  overflow: visible;
}

.station-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid rgba(139, 92, 246, 0.14);
}

.station-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ink-violet-800);
}

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

.station-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.station-flag, .station-symbol {
  flex-shrink: 0;
  display: inline-flex;
}

.station-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-high);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-sub {
  font-size: 11.5px;
  color: var(--text-low);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.station-status {
  font-size: 11px;
  color: var(--danger);
  margin-top: 2px;
  display: none;
}


.station-status.show { display: block; }

.station-availability-inline {
  color: var(--amber-500);
  font-weight: 700;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: var(--ink-violet-800);
  color: var(--text-high);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}
.play-btn:hover { background: var(--violet-600); }
.play-btn:active { transform: scale(0.94); }
.play-btn:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.play-btn.playing { background: var(--amber-600); border-color: var(--amber-500); }
.play-btn.loading { animation: pulse 1s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.no-results {
  padding: 30px 18px;
  text-align: center;
  color: var(--text-low);
  font-size: 14px;
}

.footnote {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-low);
  text-align: center;
  line-height: 1.6;
}

#player { display: none; }

@media (max-width: 480px) {
  .radio-stage { gap: 8px; }
  .skin-arrow { width: 28px; height: 28px; }
  .led-text { font-size: 20px; }
  .play-btn { width: 48px; height: 48px; }
  .play-btn svg { width: 20px; height: 20px; }
  .station-row { gap: 10px; }
}

/* Desktop two-column sizing overrides (kept after the base rules above so
   they win the cascade without needing !important) */
@media (min-width: 900px) {
  .radio-frame { width: min(400px, 30vw); }
  .radio-stage { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- About / SEO content section ---------- */

.about-content {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
}
.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text-high);
  margin: 0 0 16px;
  line-height: 1.3;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--amber-500);
  margin: 0 0 8px;
}
.about-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 4px;
  max-width: 68ch;
}
.about-content a {
  color: var(--amber-500);
  text-decoration: none;
}
.about-content a:hover { text-decoration: underline; }

.about-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 28px 0 8px;
}
.about-block .about-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-block > div { min-width: 0; }
.about-block h2 { margin: 4px 0 8px; }
@media (max-width: 480px) {
  .about-block { gap: 12px; }
  .about-block .about-icon { width: 44px; height: 44px; }
}

/* ---------- Site nav (header) ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  font-family: var(--font-body);
  font-size: 13px;
  position: relative;
  z-index: 40;
}
/* Visually hidden but still clickable/focusable — keeps the label-driven
   checkbox toggle reliable across browsers (display:none can be flaky for
   this pattern on some mobile browsers). */
.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-btn { display: none; }
.site-nav-panel { display: contents; }
.site-nav-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.site-nav-links a {
  color: var(--text-mid);
  text-decoration: none;
}
.site-nav-links a:hover { color: var(--text-high); }
.site-nav-social { display: flex; gap: 12px; align-items: center; }
.site-nav-social-label { display: none; }
.site-nav-social-icons { display: flex; gap: 12px; align-items: center; }
.site-nav-social a { color: var(--text-mid); display: flex; }
.site-nav-social a:hover { color: var(--amber-500); }
.site-nav-social svg { width: 17px; height: 17px; }

/* ---------- Nav "Category/Genre" dropdown ---------- */
/* Deliberately NOT position:absolute. An overlay dropdown can end up
   clipped or mispositioned inside the mobile slide-out nav panel's own
   positioning context; an inline-expanding list (same pattern as the
   other nav links already use on mobile) can't have that problem --
   it just pushes whatever comes after it down, on every screen size. */

.nav-category-menu > summary {
  list-style: none;
  color: var(--text-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-category-menu > summary::-webkit-details-marker { display: none; }
.nav-category-menu > summary:hover,
.nav-category-menu[open] > summary { color: var(--text-high); }
.nav-category-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.15s ease;
}
.nav-category-menu[open] > summary::after { transform: rotate(225deg); margin-top: 2px; }

.nav-category-menu-list {
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.nav-category-menu-list li + li { margin-top: 2px; }
.nav-category-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.nav-category-menu-list a:hover,
.nav-category-menu-list a[aria-current="page"] { background: rgba(139, 92, 246, 0.14); color: var(--text-high); }
.nav-category-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-low); }

/* Desktop: float as an overlay instead of pushing the page down.
   Safe here (unlike on mobile) because the desktop nav is a plain
   top bar, not the off-canvas slide-out panel that caused the
   original absolute-positioning bug -- that bug was specific to
   being nested inside the mobile panel's own positioning context. */
@media (min-width: 900px) {
  .nav-category-menu { position: relative; }
  .nav-category-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: var(--ink-violet-900);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6);
    min-width: 220px;
    z-index: 50;
  }
}

@media (max-width: 680px) {
  .site-nav { justify-content: flex-start; padding: 12px 18px; }
  .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--ink-violet-800);
    color: var(--text-mid);
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle-btn:hover { color: var(--text-high); }
  .nav-toggle-checkbox:focus-visible ~ .nav-toggle-btn { outline: 2px solid var(--amber-500); outline-offset: 2px; }
  .site-nav-panel {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: min(65vw, 260px);
    background: var(--ink-violet-800);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    border-right: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.6);
    padding: 18px 20px 22px;
    z-index: 30;
    gap: 16px;
  }
  .nav-toggle-checkbox:checked ~ .site-nav-panel { display: flex; }
  .site-nav-links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav-panel .site-nav-links a,
  .site-nav-panel .nav-category-menu > summary {
    font-size: 19px;
    font-weight: 700;
  }
  .site-nav-panel .nav-category-menu-list a {
    font-size: 17px;
    font-weight: 600;
    white-space: normal;
  }
  .site-nav-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(139, 92, 246, 0.14);
  }
  .site-nav-social-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-low);
  }
  .site-nav-social-icons { gap: 16px; }
}

/* ---------- Forms: feedback / suggest-a-station ---------- */

.form-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  scroll-margin-top: 20px;
}
.form-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-high);
  margin: 0 0 6px;
}
.form-section .form-sub {
  font-size: 13px;
  color: var(--text-low);
  margin: 0 0 18px;
}
.wp-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.wp-form label {
  font-size: 12px;
  color: var(--text-mid);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-body);
}
.wp-form input, .wp-form select, .wp-form textarea {
  background: var(--ink-violet-900);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.wp-form input:focus, .wp-form select:focus, .wp-form textarea:focus {
  outline: 2px solid var(--amber-500);
  outline-offset: 1px;
}
.wp-form button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  background: var(--violet-600);
  color: var(--text-high);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wp-form button:hover { background: var(--violet-500); }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px 20px 40px;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
  margin-bottom: 16px;
}
.footer-links a { color: var(--text-mid); text-decoration: none; }
.footer-links a:hover { color: var(--text-high); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-social a { color: var(--text-mid); display: flex; }
.footer-social a:hover { color: var(--amber-500); }
.footer-social svg { width: 19px; height: 19px; }
.footer-note {
  font-size: 12px;
  color: var(--amber-500);
  margin: 0 0 8px;
}
.footer-copy {
  font-size: 11px;
  color: var(--text-low);
  margin: 0;
  font-family: var(--font-mono);
}

/* ---------- Hub page search box ---------- */

.hub-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ink-violet-900);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 0 14px;
  max-width: 420px;
  margin: 0 0 28px;
}
.hub-search svg { color: var(--text-low); flex-shrink: 0; }
.hub-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 10px;
}
.hub-search input::placeholder { color: var(--text-low); }

/* ---------- Standalone station pages (/stations/*) ---------- */

.station-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.station-page .site-header--compact {
  padding: 20px 0 4px;
  text-align: left;
}
.station-page .site-header--compact .wordmark-logo { width: 110px; border-radius: 8px; }
.station-page .site-header--compact .tagline { font-size: 12.5px; margin-top: 4px; }
.station-page .back-link, .stations-hub .back-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-body);
  display: inline-block;
  margin-top: 14px;
}
.station-page .back-link:hover { color: var(--text-high); }
.station-page .sp-category-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 280;
  object-fit: cover;
  border-radius: 14px;
  margin: 16px 0 -8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.station-page .sp-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  margin: 24px 0 16px;
  display: block;
}
.station-page h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-high);
  margin: 0 0 8px;
}
.station-page .sp-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-500);
  margin: 0 0 20px;
}
.station-page p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 60ch;
}
.station-page .listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--violet-600);
  color: var(--text-high);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease;
}
.station-page .listen-btn:hover { background: var(--violet-500); }

.stations-hub { max-width: 760px; margin: 0 auto; padding: 36px 20px 60px; }
.stations-hub h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-high);
  margin: 24px 0 8px;
}
.stations-hub > p { font-size: 15px; color: var(--text-mid); max-width: 60ch; margin-bottom: 28px; }
.stations-hub h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--amber-500);
  margin: 32px 0 10px;
}
.stations-hub ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.stations-hub li { break-inside: avoid; margin-bottom: 6px; }
.stations-hub a { color: var(--text-mid); text-decoration: none; font-size: 14px; }
.stations-hub a:hover { color: var(--text-high); }
@media (max-width: 560px) { .stations-hub ul { columns: 1; } }

/* ============================================================
   Mobile (< 900px): a dedicated vertical/portrait skin (stacked
   grille+logo, display, big controls, knobs) instead of the
   landscape desktop skin scaled up -- uses a phone's tall aspect
   ratio properly instead of leaving empty space below a
   letterboxed landscape card. Purely additive: nothing above this
   point is modified. Desktop (>= 900px) renders exactly as before
   -- all four skins, the skin-switch arrows, and the inline
   two-column station list are all untouched.
   ============================================================ */

/* Hidden by default (desktop) -- re-shown inside the max-width
   query below. */
.v-skin,
.mp-browse-btn,
.mobile-picker-header {
  display: none;
}

@media (max-width: 899px) {

  /* logo + tagline side by side rather than stacked -- reclaims a
     second full row of height versus the old centered layout, on
     top of shrinking the logo itself (it also duplicates the
     wordmark already in the nav header) */
  .site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 10px 16px 6px;
  }
  .wordmark-logo { width: 60px; height: auto; border-radius: 6px; flex: 0 0 auto; }
  .tagline { font-size: 11.5px; margin: 0; line-height: 1.35; text-align: left; }

  /* the four real illustrated skins + skin-switch arrows are
     hidden on mobile -- the vertical skin below replaces them */
  .radio-skin[data-skin],
  .skin-arrow {
    display: none !important;
  }

  .radio-stage { padding: 4px 10px 10px; }
  .radio-frame { width: min(480px, 98vw); }
  .now-playing-meta { display: none; } /* redundant with the LED line in .v-display */

  /* ---- vertical skin ---- */
  .v-skin {
    display: block;
    width: 100%; /* was unset -- with align-items:center on the parent
      flex container, a block child with no explicit width shrinks to
      fit its own content, which is what let the nowrap LED text pull
      the whole card wider/narrower per station name */
    background: linear-gradient(180deg, #9a9da3, #6b6d72);
    border-radius: 20px;
    border: 3px solid #1c1d20;
    padding: 12px;
    box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.55);
  }

  .v-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
  .v-brand { font-family: Georgia, serif; font-style: italic; color: var(--amber-500); font-size: 16px; }

  .v-grille {
    border-radius: 14px; overflow: hidden; border: 2px solid #3a3c40; margin-bottom: 10px;
    background: #8a8d92 radial-gradient(circle, #101113 2px, transparent 2.2px) 0 0/9px 9px;
    height: 96px; display: flex; align-items: center; justify-content: center;
  }
  .v-grille-logo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    background: var(--ink-violet-900); border: 3px solid #3a3c40;
    transition: opacity 0.35s ease;
  }

  .v-display { background: #141518; border: 2px solid #101113; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .v-led-box { background: #04120a; border-radius: 5px; padding: 9px 12px; margin-bottom: 7px; }
  #mobileSkinLed {
    font-family: "Space Mono", monospace; font-size: 19px; letter-spacing: 1px;
    color: var(--led-green); text-shadow: 0 0 6px rgba(70, 255, 160, 0.75);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .v-dial { height: 11px; position: relative; border-top: 1px solid #45474c; margin-top: 2px; }
  #mobileSkinDialPointer { position: absolute; top: -1px; width: 3px; height: 12px; background: var(--danger); border-radius: 1.5px; left: 38%; transition: left 0.35s ease; }

  .v-primary-row { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 2px 0 14px; }
  .v-btn {
    background: #141518; border: 1.5px solid #000; border-radius: 50%; color: var(--text-high);
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .v-btn:active { filter: brightness(1.3); }
  .v-btn--sm { width: 54px; height: 54px; color: #c9c2d8; }
  .v-btn--sm svg { width: 22px; height: 22px; }

  /* status LED -- sits where the mute button used to be, directly
     below prev/next. Red while idle, green + pulsing while playing
     (colors come from style.css's global [data-role="power-led"]
     rules -- this mobile dot mirrors that same is-live class). */
  .v-status-led-row {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 16px; font-size: 12px; color: var(--text-mid); letter-spacing: 0.06em;
  }
  .v-status-led {
    width: 14px; height: 14px; border-radius: 50%;
    background: #e74c3c; transition: background 0.2s ease;
  }
  .v-status-led.is-live {
    background: #2ecc71;
    animation: ledPulseMobile 1.4s ease-in-out infinite;
  }
  @keyframes ledPulseMobile {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .v-knob-panel { display: flex; justify-content: space-around; align-items: flex-start; background: #141518; border-radius: 12px; border: 1.5px solid #000; padding: 12px 10px 10px; }
  .v-knob-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .v-knob { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2f2f4, #6e7075 75%); border: 2px solid #3a3c40; position: relative; }
  .v-knob::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 18px; background: #1c1d20; border-radius: 2px; transform: translateX(-50%); }
  /* mute, sized a bit larger than the plain volume/tuning knobs since
     it's an actual button, not just a decorative dial */
  .v-knob--mute {
    width: 50px; height: 50px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    display: flex; align-items: center; justify-content: center; color: #141518;
  }
  /* suppress the generic knob tick-line (.v-knob::after) -- it was
     rendering on top of the actual mute icon, making the button look
     like a third plain knob instead of a mute control */
  .v-knob--mute::after { content: none; }
  .v-knob--mute:active { filter: brightness(1.1); }
  .v-knob-label { font-size: 11px; letter-spacing: 0.08em; color: var(--text-mid); }

  /* deliberately styled as an unmistakable button -- solid fill,
     label + chevron -- not a pill-with-icon that could read as a
     dormant search box */
  .mp-browse-btn {
    display: flex;
    width: min(480px, 98vw);
    margin: 8px auto 0;
    align-items: center; justify-content: center; gap: 8px;
    background: var(--ink-violet-800); border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 12px; color: var(--text-high); font-family: inherit; font-size: 15px; font-weight: 700;
    padding: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mp-browse-btn:active { background: var(--ink-violet-900); }
  .mp-browse-btn svg { flex: 0 0 auto; }

  /* ---- full-screen station picker (the real .content-col,
     repositioned as an off-canvas overlay; its contents --
     search box, category list, play buttons -- are completely
     unchanged, so the real script.js logic driving them keeps
     working exactly as it does today) ---- */
  .content-col {
    position: fixed; inset: 0; z-index: 60;
    background: var(--ink-violet-950);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 0 16px 40px;
  }
  body.stations-open .content-col { transform: translateY(0); }
  body.stations-open { overflow: hidden; }

  .mobile-picker-header {
    display: flex;
    position: sticky; top: 0; z-index: 2;
    align-items: center; justify-content: space-between;
    background: var(--ink-violet-950);
    padding: 16px 0 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 12px;
  }
  .mobile-picker-title { font-size: 17px; font-weight: 700; color: var(--text-high); }
  .mobile-picker-close {
    width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1;
    background: var(--ink-violet-800); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--text-high);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
}
