/* Minka Radio — Lācītis-aligned visual system.
   Loaded last so the working radio logic stays untouched. */

:root {
  --radio-lac-green: #1ed760;
  --radio-lac-green-soft: rgba(30, 215, 96, 0.14);
  --radio-lac-surface: #070908;
  --radio-lac-raised: #141715;
  --radio-lac-raised-hover: #1a1e1b;
  --radio-lac-border: rgba(255, 255, 255, 0.10);
  --radio-lac-muted: rgba(255, 255, 255, 0.56);
}

/* ── Main radio dock ─────────────────────────────────────────── */
#radioWindow {
  background: var(--radio-lac-surface) !important;
  border: 1px solid rgba(30, 215, 96, 0.18) !important;
  border-radius: 22px !important;
  box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.52) !important;
}

#radioWindow::before,
#radioWindow .radio-drag-strip::after {
  display: none !important;
  content: none !important;
}

#radioWindow .radio-win-body {
  padding: 12px 12px 10px !important;
}

#radioWindow .bottom-console {
  grid-template-columns: minmax(250px, 1.05fr) minmax(210px, 0.85fr) minmax(260px, 1fr) !important;
  column-gap: 18px !important;
  padding: 0 12px !important;
}

#radioWindow .tech-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#radioWindow .header-row {
  margin: 0 0 3px !important;
}

#radioWindow .branding {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px !important;
}

#radioWindow .brand-text {
  color: var(--radio-lac-green) !important;
  font: 800 9px/1 "Space Grotesk", system-ui, sans-serif !important;
  letter-spacing: .16em !important;
  opacity: .94 !important;
}

#radioWindow .skin-mini-btn {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: var(--radio-lac-muted) !important;
  box-shadow: none !important;
}

#radioWindow .skin-mini-btn:hover {
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

#radioWindow #curStation {
  margin: 1px 0 3px !important;
  color: #fff !important;
  font: 850 18px/1.12 "Space Grotesk", system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

#radioWindow .np-row {
  min-height: 52px !important;
  margin-top: 2px !important;
  gap: 11px !important;
}

#radioWindow .np-cover {
  width: 52px !important;
  height: 52px !important;
  flex-basis: 52px !important;
  border: 0 !important;
  border-radius: 10px !important;
}

#radioWindow .np-artist {
  color: rgba(255, 255, 255, .94) !important;
  font: 750 11px/1.16 "Space Grotesk", system-ui, sans-serif !important;
}

#radioWindow .np-title {
  color: var(--radio-lac-muted) !important;
  font: 600 10px/1.18 "Space Grotesk", system-ui, sans-serif !important;
}

#radioWindow .meta-status {
  flex-direction: row !important;
  gap: 10px !important;
  margin-top: 3px !important;
  color: rgba(255, 255, 255, .38) !important;
  font: 650 7px/1 "Space Grotesk", system-ui, sans-serif !important;
  letter-spacing: .08em !important;
}

#radioWindow .meta-status span {
  color: rgba(255, 255, 255, .48) !important;
}

#radioWindow .eq-pioneer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  margin-top: 5px !important;
  padding: 0 !important;
}

#radioWindow .epb,
html #radioWindow #eqRow #ceqTriggerBtn {
  min-height: 20px !important;
  padding: 4px 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#radioWindow .epb .epb-label,
html #radioWindow #eqRow #ceqTriggerBtn {
  color: rgba(255, 255, 255, .44) !important;
  font: 750 7px/1 "Space Grotesk", system-ui, sans-serif !important;
  letter-spacing: .06em !important;
}

#radioWindow .epb:hover,
html #radioWindow #eqRow #ceqTriggerBtn:hover {
  background: rgba(255, 255, 255, .08) !important;
  transform: none !important;
}

#radioWindow .epb.active {
  background: var(--radio-lac-green) !important;
}

#radioWindow .epb.active .epb-label {
  color: #041108 !important;
}

#radioWindow .monitor-frame {
  height: 76px !important;
  margin: 0 !important;
  background: #030504 !important;
  border: 1px solid rgba(30, 215, 96, .16) !important;
  border-radius: 13px !important;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, .75) !important;
}

/* Image skins let the spectrum become part of the artwork instead of looking
   like a separate black display. Static transparency only: no blur or glow. */
#radioWindow.radio-image-skin .monitor-frame {
  height: 64px !important;
  background: rgba(0, 0, 0, .12) !important;
  border-color: rgba(var(--radio-accent-rgb, 30, 215, 96), .13) !important;
  box-shadow: none !important;
}

#radioWindow.radio-image-skin #vizCanvas {
  opacity: .88;
}

#radioWindow .monitor-frame.volume-adjusting #vizCanvas,
#radioWindow .monitor-frame.volume-adjusting #dolphin-bg {
  opacity: 0 !important;
}

#radioWindow.radio-image-skin .pixel-cat {
  right: 6px !important;
  bottom: 4px !important;
  height: 28px !important;
  opacity: .24 !important;
}

#radioWindow.radio-black-skin .pixel-cat {
  right: 10px !important;
  height: 42px !important;
  opacity: .68 !important;
}

#radioWindow .control-panel {
  gap: 14px !important;
  justify-content: flex-end !important;
}

#radioWindow .station-btn,
#radioWindow .viz-icon-btn,
#radioWindow #mkVizToggle {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(255, 255, 255, .65) !important;
  box-shadow: none !important;
}

#radioWindow .station-btn:hover,
#radioWindow .viz-icon-btn:hover,
#radioWindow #mkVizToggle:hover {
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
  transform: none !important;
}

#radioWindow .nav-cluster {
  gap: 12px !important;
}

#radioWindow .nav-btn {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, .62) !important;
  box-shadow: none !important;
}

#radioWindow .nav-btn:hover {
  color: #fff !important;
  transform: scale(1.06) !important;
}

#radioWindow #playBtn {
  width: 54px !important;
  height: 54px !important;
  background: var(--radio-lac-green) !important;
  color: #041108 !important;
  border: 0 !important;
  box-shadow: 0 6px 18px -8px rgba(var(--radio-accent-rgb,30,215,96),calc(.3 * var(--radio-glow-strength,.45))) !important;
}

#radioWindow #playBtn:hover {
  box-shadow: 0 7px 20px -8px rgba(var(--radio-accent-rgb,30,215,96),calc(.4 * var(--radio-glow-strength,.45))) !important;
  transform: scale(1.04) !important;
  filter: none !important;
}

#radioWindow .fader {
  width: 92px !important;
  height: 4px !important;
  background: rgba(255, 255, 255, .18) !important;
}

/* ── Station selector ────────────────────────────────────────── */
#stationOverlay {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(ellipse at 0 0, rgba(var(--radio-ambient-rgb, 83,201,232), .16), transparent 70%), #0b141b !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42) !important;
  color: #fff;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif !important;
}

.station-picker-head {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 36px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.station-picker-title {
  display: flex;
  flex-direction: column;
  min-width: 112px;
}

.station-picker-title strong {
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.station-picker-title span {
  margin-top: 3px;
  color: var(--radio-lac-muted);
  font-size: 10px;
}

.station-picker-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}

.station-picker-search:focus-within {
  border-color: rgba(var(--radio-ambient-rgb, 83,201,232), .58);
}

.station-picker-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: rgba(255, 255, 255, .52);
  stroke-width: 2;
  stroke-linecap: round;
}

.station-picker-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 650 12px/1 system-ui, sans-serif;
}

.station-picker-search input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.station-picker-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .66);
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.station-picker-close:hover {
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

#stationOverlay button:focus {
  box-shadow: none !important;
}

#stationOverlay button:focus-visible {
  outline: 2px solid rgba(var(--radio-ambient-rgb, 83,201,232), .72) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

#stationOverlay input:focus,
#stationOverlay input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.station-picker-tabs {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
}

.station-picker-tabs button {
  height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .58);
  font: 750 10px/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}

.station-picker-tabs button span {
  margin-left: 5px;
  opacity: .66;
}

.station-picker-tabs button:hover {
  border-color: rgba(255, 255, 255, .20);
  color: #fff;
}

.station-picker-tabs button.active {
  border-color: rgba(var(--radio-ambient-rgb, 83,201,232), .42);
  background: rgba(var(--radio-ambient-rgb, 83,201,232), .16);
  color: #e8f6fb;
}

.station-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  grid-auto-rows: 66px;
  gap: 6px;
  min-height: 0;
  padding: 2px 14px 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

.station-tile {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px auto 66px;
  width: 100% !important;
  height: 66px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center !important;
  gap: 10px;
  padding: 9px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #fff !important;
  text-align: left !important;
  transition: background .12s ease, border-color .12s ease !important;
}

.station-tile:hover {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .075) !important;
}

.station-tile.is-current {
  border-color: rgba(var(--radio-ambient-rgb, 83,201,232), .6) !important;
  background: rgba(var(--radio-ambient-rgb, 83,201,232), .13) !important;
}

.station-logo-wrap {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(0, 0, 0, .2);
}

.station-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-lv .station-logo { object-fit: contain; }

.station-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.station-copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, .95);
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-copy small {
  overflow: hidden;
  color: var(--radio-lac-muted);
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-play-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.station-tile:hover .station-play-mark,
.station-tile.is-current .station-play-mark {
  background: rgba(var(--radio-ambient-rgb, 83,201,232), .2);
  color: #e8f6fb;
}

.station-picker-empty {
  grid-column: 1 / -1;
  align-self: start;
  padding: 28px 16px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: var(--radio-lac-muted);
  text-align: center;
  font-size: 12px;
}

/* One brief entrance; no moving backgrounds or per-logo filters. */
/* Opening and closing: MinkaMotion.openSurface/closeSurface (js/radio.js toggleMenu). */
.station-picker-close { display: grid; place-items: center; }
.station-picker-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.station-play-mark svg { width: 18px; height: 18px; fill: currentColor; }
.station-picker-list { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
@keyframes station-picker-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #stationOverlay { animation: none; } }

@media (max-width: 900px) {
  #radioWindow .bottom-console {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .75fr) minmax(230px, .9fr) !important;
    gap: 12px !important;
  }
  #radioWindow .control-panel { gap: 9px !important; }
  #radioWindow .fader { width: 72px !important; }
}

@media (max-width: 640px) {
  .station-picker-head {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
  .station-picker-title { grid-column: 1; }
  .station-picker-close { grid-column: 2; grid-row: 1; }
  .station-picker-search { grid-column: 1 / -1; grid-row: 2; }
  .station-picker-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .station-tile,
  #radioWindow button {
    transition: none !important;
  }
}

/* ── Modern radio skin + colour effect picker ───────────────── */
#radioWindow {
  --radio-lac-green: var(--radio-accent, #1ed760);
  --radio-lac-green-soft: rgba(var(--radio-accent-rgb, 30, 215, 96), .14);
  border-color: rgba(var(--radio-accent-rgb, 30, 215, 96), .18) !important;
}

#themePanel.theme-panel {
  display: none;
  padding: 16px !important;
  overflow: auto;
  color: #fff;
  background: #090b0a !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72) !important;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif !important;
}

#themePanel.theme-panel[aria-hidden="false"] { display: block; }

#themePanel .theme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 14px;
}

#themePanel .theme-kicker {
  margin-bottom: 5px;
  color: #1ed760;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
}

#themePanel .theme-title {
  color: #fff;
  font: 850 21px/1.08 "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}

#themePanel .theme-subtitle {
  margin-top: 5px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
}

#themePanel .theme-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07) !important;
  color: rgba(255, 255, 255, .72) !important;
  box-shadow: none !important;
  font: 400 24px/1 system-ui, sans-serif;
}

#themePanel .theme-close:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

#themePanel .theme-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#themePanel .theme-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 104px;
  min-width: 0;
  margin: 0;
  padding: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background-color: #121512;
  background-image: var(--theme-preview);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease;
}

#themePanel .theme-item.is-default {
  background-color: #050706;
  background-image: none;
}

#themePanel .theme-item:hover {
  border-color: rgba(255, 255, 255, .34);
  transform: translateY(-1px);
}

#themePanel .theme-item.active {
  border-color: #1ed760;
  background-color: #121512;
  box-shadow: inset 0 0 0 1px #1ed760, 0 8px 22px rgba(0, 0, 0, .32);
}

#themePanel .theme-card-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 6, .08) 10%, rgba(5, 8, 6, .28) 44%, rgba(5, 8, 6, .94) 100%);
}

#themePanel .theme-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#themePanel .theme-card-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#themePanel .theme-card-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-size: 8.5px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#themePanel .theme-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: none;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #1ed760;
  color: #061008;
  font-size: 12px;
  font-weight: 900;
}

#themePanel .theme-item.active .theme-check { display: grid; }

#themePanel .theme-controls {
  max-height: none;
  margin-top: 14px;
  padding-top: 13px;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#themePanel .theme-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

#themePanel .theme-control-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#themePanel .theme-control-head strong { color: #fff; font-size: 12px; }
#themePanel .theme-control-head span { margin-top: 3px; color: rgba(255, 255, 255, .44); font-size: 9px; }

#themePanel .theme-custom-color {
  display: flex;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

#themePanel #accentPicker {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

#themePanel #accentPicker::-webkit-color-swatch-wrapper { padding: 0; }
#themePanel #accentPicker::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, .30); border-radius: 7px; }

#themePanel .accent-mode-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

#themePanel .accent-mode-list button {
  display: grid;
  min-width: 0;
  grid-template-columns: 19px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
  box-shadow: none;
}

#themePanel .accent-mode-list button:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .19); }
#themePanel .accent-mode-list button.active { border-color: rgba(30, 215, 96, .72); background: rgba(30, 215, 96, .10); }

#themePanel .effect-swatch {
  grid-row: 1 / 3;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}

#themePanel .album-swatch { background: conic-gradient(#1ed760, #58c7f3, #f59a45, #ef6f5b, #1ed760); }
#themePanel .off-swatch { background: #111512; box-shadow: inset 0 0 0 4px #1ed760; }
#themePanel .green-swatch { background: #1ed760; }
#themePanel .warm-swatch { background: #f59a45; }
#themePanel .ice-swatch { background: #58c7f3; }
#themePanel .mono-swatch { background: #d7ded9; }

#themePanel .accent-mode-list b,
#themePanel .accent-mode-list small {
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
}

#themePanel .accent-mode-list b {
  overflow: visible;
  font-size: 9.5px;
  line-height: 1.08;
  text-overflow: clip;
  white-space: normal;
}

#themePanel .accent-mode-list small {
  color: rgba(255, 255, 255, .42);
  font-size: 7.5px;
  white-space: nowrap;
}

#themePanel button:focus,
#themePanel input:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

#themePanel button:focus-visible,
#themePanel input:focus-visible {
  outline: 2px solid rgba(30, 215, 96, .78) !important;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  #themePanel .theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #themePanel .accent-mode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The world directory stays inside the existing station picker. */
#stationOverlay:has(#worldStationControls:not([hidden])) {
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
}
.station-picker-tabs { flex-wrap: wrap; }
.world-station-controls[hidden] { display: none !important; }
.world-station-controls {
  display: block; padding: 2px 14px 14px; color: rgba(255,255,255,.72); font-size: 11px;
}
.world-station-controls label { display: flex; align-items: center; gap: 6px; }
.world-station-controls select, .world-station-pages button {
  min-height: 32px; max-width: 180px; border: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.25);
  border-radius: 9px; padding: 4px 9px; background: rgba(var(--radio-ambient-rgb,83,201,232),.08);
  color: inherit; font: inherit; cursor: pointer;
}
.world-station-controls option { background: #111d24; color: #eef6fa; }
.world-station-pages { display: flex; align-items: center; gap: 8px; }
.world-station-pages button:disabled { opacity: .35; cursor: default; }

#stationOverlay select:focus, #stationOverlay select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(var(--radio-ambient-rgb,83,201,232),.75) !important;
}

#stationOverlay[data-station-view="featured"] .station-copy small {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35;
}
.world-directory-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 12px; }
.world-directory-heading strong { color: #eef6f8; font-size: 16px; letter-spacing: -.02em; }
.world-directory-heading>span { opacity: .7; font-size: 11px; }
.world-directory-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.world-country-picker { position: relative; min-width: 190px; }
.world-country-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.3); border-radius: 10px; background: rgba(var(--radio-ambient-rgb,83,201,232),.08); cursor: pointer; list-style: none; }
.world-country-picker summary::-webkit-details-marker { display: none; }
#worldCountrySelected { display: flex; align-items: center; gap: 8px; }
.station-country-flag { display: inline-block; width: 24px; height: 16px; object-fit: cover; border-radius: 3px; flex-shrink: 0; vertical-align: middle; }
.station-copy small .station-country-flag { width: 16px; height: 11px; margin-right: 5px; border-radius: 2px; }
.world-country-popover { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; width: min(440px, calc(100vw - 80px)); padding: 10px; border: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.35); border-radius: 14px; background: #102028; box-shadow: 0 12px 28px #0008; }
#stationOverlay #worldCountrySearch { width: 100%; min-height: 36px; padding: 8px 10px; margin-bottom: 8px; color: #fff; border: 1px solid #ffffff25 !important; border-radius: 8px; background: #ffffff08; }
.world-country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: 240px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.world-country-list::-webkit-scrollbar { display: none; }
.world-country-list button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 8px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #d9e8ee; font: inherit; text-align: left; cursor: pointer; }
.world-country-list button:hover, .world-country-list button[aria-pressed="true"] { background: rgba(var(--radio-ambient-rgb,83,201,232),.16); border-color: rgba(var(--radio-ambient-rgb,83,201,232),.2); }
.world-genre-label { gap: 8px !important; }
.world-station-pages { margin-left: auto; }
.world-country-picker summary:focus-visible { outline: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.75); outline-offset: 2px; box-shadow: none !important; }
.station-discovery-heading { grid-column: 1 / -1; align-self: center; display: flex; flex-direction: column; gap: 7px; padding: 8px 2px; }
.station-discovery-heading strong { font-size: 22px; letter-spacing: -.025em; }
.station-discovery-heading>span { font-size: 12px; color: #a7b9c2; }
#stationOverlay[data-station-view="featured"] .station-tile { height: 116px !important; grid-template-columns: 64px minmax(0,1fr) 24px; padding-left: 14px !important; }
#stationOverlay[data-station-view="featured"] .station-logo-wrap,
#stationOverlay[data-station-view="featured"] .station-logo { width: 64px; height: 64px; }
#stationOverlay[data-station-view="featured"] .station-copy strong { font-size: 15px; }
#stationOverlay[data-station-view="featured"] .station-copy small { font-size: 12px; }
@media (max-width: 640px) {
  .world-directory-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .world-country-picker { min-width: 160px; }
  .world-station-pages { margin-left: 0; }
}

/* Discovery uses short horizontal shelves, then opens the same player list. */
#stationOverlay[data-station-view="featured"] .station-picker-list {
  display: block; padding: 18px 16px 24px;
}
.discovery-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 24px; }
.discovery-intro strong { font-size: 24px; letter-spacing: -.03em; }
.discovery-intro>span, .discovery-muted { font-size: 11px; color: rgba(235,246,248,.6); }
.discovery-section { margin: 0 0 25px; }
.discovery-section h3, .discovery-section-head h3 { margin: 0 0 11px; font-size: 16px; letter-spacing: -.015em; }
.discovery-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#stationOverlay .discovery-link { padding: 2px 0; border: 0; background: none; box-shadow: none; color: rgba(var(--radio-ambient-rgb,83,201,232),1); font: inherit; font-size: 11px; cursor: pointer; }
.discovery-rail { display: flex; align-items: center; gap: 7px; min-width: 0; }
.discovery-rail-content { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 3px; }
.discovery-rail-content::-webkit-scrollbar, .discovery-featured-row::-webkit-scrollbar { display: none; }
#stationOverlay .discovery-rail>button { width: 23px; height: 32px; flex-shrink: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: #b8cacc; font-size: 22px; cursor: pointer; }
#stationOverlay .discovery-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 9px; min-height: 39px; padding: 8px 15px; border-radius: 24px; border: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.25); background: rgba(var(--radio-ambient-rgb,83,201,232),.08); color: #edf4f6; font: inherit; font-size: 13px; box-shadow: none; white-space: nowrap; cursor: pointer; }
.discovery-chip small { font-size: 11px; color: #9eadb4; font-variant-numeric: tabular-nums; }
#stationOverlay .discovery-chip:hover { background: rgba(var(--radio-ambient-rgb,83,201,232),.19); border-color: rgba(var(--radio-ambient-rgb,83,201,232),.6); }
#stationOverlay .discovery-logo { display: block; width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid #ffffff38; border-radius: 50%; padding: 0; overflow: hidden; background: #18272e; cursor: pointer; box-shadow: none; }
.discovery-logo img { width: 100%; height: 100%; object-fit: cover; }
#stationOverlay .discovery-logo:hover { border-color: rgba(var(--radio-ambient-rgb,83,201,232),1); }
.discovery-featured-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 3px 1px 8px; }
.discovery-featured-row .station-entry { flex: 0 0 min(380px, 90%); scroll-snap-align: start; }
#stationOverlay[data-station-view="featured"] .station-tile { margin-bottom: 10px; }
.discovery-featured-row .station-tile { margin-bottom: 0 !important; }
#stationOverlay .discovery-chip:focus-visible, #stationOverlay .discovery-logo:focus-visible, #stationOverlay .discovery-link:focus-visible, #stationOverlay .discovery-rail>button:focus-visible, #stationOverlay .world-country-list button:focus-visible, #stationOverlay #worldCountrySearch:focus-visible {
  outline: 1px solid rgba(var(--radio-ambient-rgb,83,201,232),.9) !important; outline-offset: 2px; box-shadow: none !important;
}
@media (max-width: 640px) {
  .discovery-intro { flex-direction: column; }
  #stationOverlay[data-station-view="featured"] .station-picker-list { padding: 14px 10px 20px; }
}

#stationOverlay img[src*="featured-byte-fm"] { background: #bfc4c4; }

.discovery-mouse-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .discovery-intro .discovery-mouse-hint { display: inline; margin-right: auto; margin-left: 12px; font-size: 11px; }
  #stationOverlay :is(.discovery-rail-content, .discovery-featured-row),
  #stationOverlay :is(.discovery-rail-content, .discovery-featured-row) button { cursor: grab; }
}
.discovery-rail-content, .discovery-featured-row { user-select: none; -webkit-user-select: none; }
.discovery-rail-content img, .discovery-featured-row img { -webkit-user-drag: none; }
#stationOverlay .is-dragging, #stationOverlay .is-dragging * { cursor: grabbing !important; }
.discovery-featured-row.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }

/* Compact discovery header and readable station names on desktop and Windows. */
#stationOverlay[data-station-view="featured"] .station-picker-list { padding-top: 8px; }
.discovery-intro { justify-content: flex-start; gap: 6px 14px; margin-bottom: 12px; }
.discovery-intro strong { font-size: 18px; }
.discovery-intro .discovery-mouse-hint { order: 3; margin: 0; }
.discovery-section { margin-bottom: 15px; }
.discovery-section h3, .discovery-section-head h3 { margin-bottom: 6px; }
