/* =========================================================
   ElectroWave Radio — styles
   Дизайн-система: OKLCH, fluid type (clamp), 4px spacing,
   светлая + тёмная темы.
   ========================================================= */

/* ---------- Токены: светлая тема (по умолчанию) ---------- */
:root {
  /* Цвета (OKLCH) */
  --bg:            oklch(0.97 0.004 240);
  --bg-elev:       oklch(0.99 0.003 240);
  --surface:       oklch(1 0 0);
  --surface-2:     oklch(0.965 0.004 240);
  --text:          oklch(0.26 0.02 250);
  --text-muted:    oklch(0.52 0.02 250);
  --text-faint:    oklch(0.66 0.015 250);
  --border:        oklch(0.9 0.006 250);
  --border-strong: oklch(0.82 0.01 250);

  --accent:        oklch(0.58 0.15 215);
  --accent-strong: oklch(0.5 0.16 220);
  --accent-soft:   oklch(0.95 0.03 215);
  --accent-contrast: oklch(0.99 0 0);

  --online:  oklch(0.7 0.17 150);
  --offline: oklch(0.7 0.01 250);
  --checking: oklch(0.78 0.15 85);

  --shadow-sm: 0 1px 2px oklch(0.4 0.03 250 / 0.06), 0 1px 1px oklch(0.4 0.03 250 / 0.04);
  --shadow-md: 0 6px 20px oklch(0.4 0.04 250 / 0.08), 0 2px 6px oklch(0.4 0.03 250 / 0.06);
  --shadow-lg: 0 24px 60px oklch(0.3 0.05 250 / 0.18);

  /* Spacing — шаг 4px */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */
  --s-9: 6rem;     /* 96 */

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --header-h: 64px;
  --player-h: 76px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Тёмная тема: авто (если не задана вручную) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            oklch(0.18 0.012 250);
    --bg-elev:       oklch(0.21 0.014 250);
    --surface:       oklch(0.235 0.016 250);
    --surface-2:     oklch(0.27 0.018 250);
    --text:          oklch(0.95 0.008 250);
    --text-muted:    oklch(0.72 0.015 250);
    --text-faint:    oklch(0.58 0.015 250);
    --border:        oklch(0.32 0.016 250);
    --border-strong: oklch(0.42 0.02 250);

    --accent:        oklch(0.74 0.14 210);
    --accent-strong: oklch(0.8 0.13 205);
    --accent-soft:   oklch(0.32 0.05 215);
    --accent-contrast: oklch(0.16 0.02 250);

    --online:  oklch(0.78 0.18 150);
    --offline: oklch(0.5 0.01 250);
    --checking: oklch(0.82 0.15 85);

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.6);
  }
}

/* ---------- Тёмная тема: вручную ---------- */
:root[data-theme="dark"] {
  --bg:            oklch(0.18 0.012 250);
  --bg-elev:       oklch(0.21 0.014 250);
  --surface:       oklch(0.235 0.016 250);
  --surface-2:     oklch(0.27 0.018 250);
  --text:          oklch(0.95 0.008 250);
  --text-muted:    oklch(0.72 0.015 250);
  --text-faint:    oklch(0.58 0.015 250);
  --border:        oklch(0.32 0.016 250);
  --border-strong: oklch(0.42 0.02 250);

  --accent:        oklch(0.74 0.14 210);
  --accent-strong: oklch(0.8 0.13 205);
  --accent-soft:   oklch(0.32 0.05 215);
  --accent-contrast: oklch(0.16 0.02 250);

  --online:  oklch(0.78 0.18 150);
  --offline: oklch(0.5 0.01 250);
  --checking: oklch(0.82 0.15 85);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.6);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 3vw, 2.5rem); }

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

.skip-link {
  position: fixed; top: -100px; left: var(--s-4); z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0.8em 1.5em; border-radius: var(--radius-pill); font-weight: 600;
  font-family: var(--font-display); letter-spacing: -0.01em;
  border: 1.5px solid transparent; transition: transform 0.18s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   ШАПКA
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in oklch, var(--bg-elev) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 700; }
.brand-mark { color: var(--accent); display: inline-flex; width: 30px; height: 30px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name-accent { color: var(--text-muted); font-weight: 500; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(0.5rem, 0.2rem + 1.2vw, 1.75rem); }
.main-nav a {
  position: relative; font-weight: 500; color: var(--text-muted); padding: var(--s-2) 0;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right 0.25s var(--ease-out);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.theme-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 12vw, 8rem); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 10%, transparent 40%, var(--bg) 78%);
}
.hero-inner { max-width: 52rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: var(--s-2) var(--s-3); background: color-mix(in oklch, var(--surface) 70%, transparent);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 7vw, 5.2rem); font-weight: 700; margin-top: var(--s-5);
  letter-spacing: -0.035em;
}
.hero-sub { font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.35rem); color: var(--text-muted); max-width: 40rem; margin-top: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 color-mix(in oklch, var(--online) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--online) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* =========================================================
   СЕКЦИИ
   ========================================================= */
.section { padding-block: clamp(3rem, 2rem + 6vw, 6rem); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: var(--s-3); }
.section-head h2 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); }
.section-lead { color: var(--text-muted); margin-top: var(--s-4); font-size: 1.05rem; }

/* Scroll-reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* Текстовые блоки */
.prose { max-width: 60rem; }
.prose p { margin-bottom: var(--s-4); color: var(--text); }
.prose p + p { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; color: var(--text-muted); }
.prose-sm { font-size: 0.96rem; }
.prose-sm h3 { font-size: 1rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose-sm h3:first-of-type { margin-top: var(--s-3); }
.footer-note { font-size: 0.8rem; max-width: 46rem; }
.prose-sm ul { display: grid; gap: var(--s-3); margin-block: var(--s-4); }
.prose-sm li { padding-left: var(--s-5); position: relative; }
.prose-sm li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.muted { color: var(--text-faint); }

/* =========================================================
   ПАНЕЛЬ ФИЛЬТРОВ
   ========================================================= */
.stations-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-bottom: var(--s-6); }
.filter-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface);
  transition: all 0.2s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.search-box { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); min-width: 220px; flex: 1 1 220px; max-width: 320px; transition: border-color 0.2s var(--ease); }
.search-box:focus-within { border-color: var(--accent); color: var(--accent); }
.search-box input { border: none; background: none; outline: none; color: var(--text); width: 100%; }
.search-box input::placeholder { color: var(--text-faint); }

/* =========================================================
   СЕТКА СТАНЦИЙ
   ========================================================= */
.stations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s-4); }
.station-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.station-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.station-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.station-card.is-hidden { display: none; }

.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.sc-monogram {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.03em;
  background: var(--accent-soft); color: var(--accent-strong);
}
.station-card.is-active .sc-monogram { background: var(--accent); color: var(--accent-contrast); }
.sc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.sc-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--checking); flex: none; }
.sc-status[data-state="online"] .dot { background: var(--online); }
.sc-status[data-state="offline"] .dot { background: var(--offline); }
.sc-status[data-state="checking"] .dot { background: var(--checking); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.sc-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 9px; }
.sc-desc { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.sc-now { font-size: 0.84rem; color: var(--text-faint); display: flex; gap: 6px; align-items: baseline; min-height: 1.2em; }
.sc-now b { color: var(--accent); font-weight: 600; flex: none; }
.sc-now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-actions { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-1); }
.sc-play {
  display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 600;
  padding: 0.55em 1.1em; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-contrast);
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.sc-play:hover { background: var(--accent-strong); }
.sc-play:active { transform: scale(0.97); }
.station-card.is-playing .sc-play .ic-play { display: none; }
.sc-play .ic-pause { display: none; }
.station-card.is-playing .sc-play .ic-pause { display: block; }
.station-card.is-playing .sc-play-label { display: none; }
.sc-detail { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-inline-start: auto; transition: color 0.2s var(--ease); }
.sc-detail:hover { color: var(--accent); }

/* мини-эквалайзер на активной карточке */
.sc-eqmini { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.station-card.is-playing .sc-eqmini { display: inline-flex; }
.sc-eqmini i { width: 3px; background: var(--accent); border-radius: 2px; animation: eqbar 0.9s ease-in-out infinite; }
.sc-eqmini i:nth-child(2) { animation-delay: 0.2s; }
.sc-eqmini i:nth-child(3) { animation-delay: 0.4s; }
.sc-eqmini i:nth-child(4) { animation-delay: 0.1s; }
@keyframes eqbar { 0%, 100% { height: 4px; } 50% { height: 16px; } }

.stations-empty { text-align: center; color: var(--text-muted); padding: var(--s-7); }

/* =========================================================
   ЖАНРЫ
   ========================================================= */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s-4); }
.genre-card {
  text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.genre-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.genre-card h3 { font-size: 1.15rem; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.genre-card .bpm { font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; white-space: nowrap; }
.genre-card p { font-size: 0.9rem; color: var(--text-muted); }
.genre-card .era { font-size: 0.76rem; color: var(--text-faint); margin-top: auto; padding-top: var(--s-2); }

/* =========================================================
   СОБЫТИЯ
   ========================================================= */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card h3 { font-size: 1.1rem; }
.event-card .place { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-block: var(--s-2); display: block; }
.event-card p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================================
   ИКОНИЧЕСКИЕ ТРЕКИ
   ========================================================= */
.tracks-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); counter-reset: trk; }
.track-item {
  counter-increment: trk; display: flex; gap: var(--s-4); align-items: baseline;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease-out);
}
.track-item:hover { border-color: var(--accent); transform: translateX(3px); }
.track-item::before { content: counter(trk, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.95rem; flex: none; min-width: 1.8em; }
.track-item .ti-main { font-weight: 600; }
.track-item .ti-artist { color: var(--text-muted); font-weight: 400; }
.track-item .ti-year { font-size: 0.8rem; color: var(--text-faint); margin-left: auto; padding-left: var(--s-3); font-family: var(--font-display); }

/* =========================================================
   АРТИСТЫ
   ========================================================= */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-4); }
.artist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--s-2); transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.artist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.artist-card h3 { font-size: 1.1rem; }
.artist-card .a-style { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.artist-card p { font-size: 0.88rem; color: var(--text-muted); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-block: var(--s-7); }
.footer-inner { display: grid; gap: var(--s-5); }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); }
.footer-brand .brand-mark { width: 36px; height: 36px; color: var(--accent); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-tag { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-links a, .link-btn { color: var(--text-muted); font-weight: 500; transition: color 0.2s var(--ease); }
.footer-links a:hover, .link-btn:hover { color: var(--accent); }
.link-btn { padding: 0; }
.footer-copy { color: var(--text-faint); font-size: 0.84rem; max-width: 46rem; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy, .footer-note { grid-column: 1 / -1; }
}

/* =========================================================
   МИНИ-ПЛЕЕР
   ========================================================= */
.miniplayer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: color-mix(in oklch, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(0); transition: transform 0.4s var(--ease-out);
}
.mp-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; align-items: center; gap: var(--s-4); height: var(--player-h); }
.mp-cover { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; overflow: hidden; transition: transform 0.2s var(--ease); }
.mp-cover:hover { transform: scale(1.04); }
.mp-monogram { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.04em; }
.miniplayer.is-active .mp-cover { background: var(--accent); color: var(--accent-contrast); }

.mp-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-station { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-track-wrap { overflow: hidden; max-width: 100%; }
.mp-track { display: inline-block; font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }
.mp-track.is-marquee { animation: marquee 14s linear infinite; }
@keyframes marquee { 0%, 8% { transform: translateX(0); } 92%, 100% { transform: translateX(calc(-100% + 200px)); } }

.mp-eq { width: 84px; height: 38px; }
.mp-controls { display: flex; align-items: center; gap: var(--s-1); }
.mp-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease); }
.mp-btn:hover { background: var(--surface-2); color: var(--accent); }
.mp-btn:active { transform: scale(0.92); }
.mp-play { background: var(--accent); color: var(--accent-contrast); width: 50px; height: 50px; }
.mp-play:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.mp-play .ic-pause { display: none; }
.miniplayer.is-playing .mp-play .ic-play { display: none; }
.miniplayer.is-playing .mp-play .ic-pause { display: block; }

.mp-volume { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); }
.mp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }
.mp-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.mp-status[data-state="online"] .dot { background: var(--online); box-shadow: 0 0 0 0 color-mix(in oklch, var(--online) 60%, transparent); animation: pulse 2s infinite; }
.mp-status[data-state="loading"] .dot { background: var(--checking); animation: blink 1s infinite; }
.mp-status[data-state="error"] .dot { background: oklch(0.6 0.2 25); }
.mp-expand { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.mp-expand:hover { text-decoration: underline; }

/* Ползунок громкости */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--border-strong); outline-offset: 4px; width: 90px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.15s var(--ease); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border-strong); }

/* =========================================================
   МОДАЛЬНЫЕ ОКНА
   ========================================================= */
.modal { border: none; background: transparent; padding: 0; max-width: 100vw; max-height: 100dvh; color: var(--text); }
.modal::backdrop { background: oklch(0.15 0.02 250 / 0.55); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn 0.3s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.modal-card { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(680px, 92vw); max-height: 90dvh; overflow-y: auto; padding: clamp(1.5rem, 1rem + 3vw, 2.5rem); margin: auto; }
.modal-close { position: absolute; top: var(--s-4); right: var(--s-4); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); border: 1px solid var(--border); background: var(--surface); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); z-index: 2; }
.modal-close:hover { color: var(--accent); border-color: var(--accent); }

.pm-grid { display: grid; gap: var(--s-5); }
@media (min-width: 560px) { .pm-grid { grid-template-columns: 200px 1fr; align-items: start; } }
.pm-visual { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; border: 1px solid var(--border); }
.pm-eq { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-monogram { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent-strong); letter-spacing: -0.04em; opacity: 0.85; }

.pm-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: 600; color: var(--accent); }
.pm-station { font-size: clamp(1.4rem, 1.1rem + 2vw, 2rem); margin-block: var(--s-2); }
.pm-nowwrap { margin-block: var(--s-3); }
.pm-now-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.pm-track-wrap { overflow: hidden; }
.pm-track { display: inline-block; font-weight: 600; color: var(--text); white-space: nowrap; }
.pm-track.is-marquee { animation: marquee 14s linear infinite; }
.pm-desc { font-size: 0.92rem; color: var(--text-muted); margin-top: var(--s-3); }

.pm-controls { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); }
.mp-share:hover { background: var(--surface-2); color: var(--accent); }
.pm-volume { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); color: var(--text-muted); }
.pm-volume input[type="range"] { flex: 1; width: auto; }
.pm-vol-val { font-family: var(--font-display); font-size: 0.82rem; min-width: 3ch; }

.pm-history { margin-top: var(--s-6); border-top: 1px solid var(--border); padding-top: var(--s-5); }
.pm-history h3 { font-size: 1rem; margin-bottom: var(--s-3); }
.pm-history-list { display: grid; gap: var(--s-2); }
.pm-history-list li { display: flex; gap: var(--s-3); align-items: baseline; font-size: 0.88rem; padding: var(--s-2) 0; border-bottom: 1px dashed var(--border); }
.pm-history-list li .h-time { font-family: var(--font-display); font-size: 0.76rem; color: var(--text-faint); flex: none; }
.pm-history-list li .h-track { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-history-list li .h-station { color: var(--accent); font-weight: 600; flex: none; }
.pm-history-empty { color: var(--text-faint); border: none !important; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg-elev);
    border-bottom: 1px solid var(--border); padding: var(--s-4) 0; margin: 0;
    transform: translateY(-120%); transition: transform 0.3s var(--ease-out); box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: var(--s-4) clamp(1rem, 0.5rem + 3vw, 2.5rem); color: var(--text); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .mp-eq, .mp-volume { display: none; }
  .mp-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; gap: var(--s-3); }
  .mp-side { display: none; }
  .mp-controls { gap: 0; }
  .mp-btn { width: 38px; height: 38px; }
  .mp-play { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .mp-cover { width: 44px; height: 44px; }
  .mp-prev-hide { display: none; }
}

/* На очень широких экранах артисты — до 4 колонок естественно через auto-fill */

/* =========================================================
   ДОП. ФУНКЦИИ: контролы списка, избранное, логотипы станций
   ========================================================= */
.stations-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.toggle-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 500; font-size: 0.85rem;
  padding: 0.45em 0.9em; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toggle-chip svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.toggle-chip:hover { color: var(--text); border-color: var(--accent); }
.toggle-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.toggle-chip[aria-pressed="true"] svg { fill: currentColor; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); flex: none; }

.sort-control { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.85rem; color: var(--text-muted); }
.sort-control select {
  font: inherit; font-size: 0.85rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 0.4em 1.9em 0.4em 0.9em;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.55em center; background-size: 0.9em;
}
.sort-control select:hover { border-color: var(--accent); }
.results-count { font-size: 0.82rem; color: var(--text-faint); margin-inline-start: auto; }

/* Звезда «в избранное» */
.sc-fav {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--text-faint); border: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.sc-fav svg, .pm-fav svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.sc-fav:hover { color: var(--accent); border-color: var(--accent); }
.sc-fav:active { transform: scale(0.9); }
.sc-fav.is-fav { color: var(--accent); border-color: var(--accent); }
.sc-fav.is-fav svg, .pm-fav.is-fav svg { fill: var(--accent); stroke: var(--accent); }
.pm-fav.is-fav { color: var(--accent); }

/* Логотипы станций (поверх монограммы, с фолбэком) */
.sc-monogram { position: relative; overflow: hidden; }
.mp-cover { position: relative; }
.sc-monogram-text, .mp-monogram { transition: opacity 0.3s var(--ease); }
.station-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; opacity: 0; transition: opacity 0.35s var(--ease); }
.has-icon .station-icon { opacity: 1; }
.has-icon .sc-monogram-text, .has-icon .mp-monogram { opacity: 0; }

/* Бейдж «своя станция» */
.sc-badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-pill); padding: 2px 8px; }
.station-card.is-custom .sc-monogram { background: var(--accent); color: var(--accent-contrast); }

/* Плейлист в развёрнутом плеере */
.pm-playlist { margin-top: var(--s-6); border-top: 1px solid var(--border); padding-top: var(--s-5); }
.pm-playlist h3 { font-size: 1rem; margin-bottom: var(--s-3); }
.pm-playlist-list { display: grid; gap: 2px; }
.pm-pl-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); cursor: pointer; transition: background-color 0.18s var(--ease); }
.pm-pl-item:hover { background: var(--surface-2); }
.pm-pl-item .pl-idx { font-family: var(--font-display); font-size: 0.78rem; color: var(--text-faint); min-width: 1.6em; text-align: right; flex: none; }
.pm-pl-item .pl-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-pl-item .pl-title { font-weight: 500; }
.pm-pl-item .pl-artist { color: var(--text-muted); }
.pm-pl-item.is-current { background: var(--accent-soft); }
.pm-pl-item.is-current .pl-title, .pm-pl-item.is-current .pl-idx { color: var(--accent-strong); }
.pm-pl-item .pl-eq { display: none; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.pm-pl-item.is-current .pl-eq { display: inline-flex; }
.pm-pl-item .pl-eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 5px; animation: eqbar 0.9s ease-in-out infinite; }
.pm-pl-item .pl-eq i:nth-child(2) { animation-delay: 0.25s; }
.pm-pl-item .pl-eq i:nth-child(3) { animation-delay: 0.5s; }

/* Переключатель «запомнить настройки» в подвале */
.consent-toggle { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; max-width: 32rem; }
.consent-toggle input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; cursor: pointer; }
.consent-text { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.consent-text small { display: block; color: var(--text-faint); font-size: 0.78rem; font-weight: 400; margin-top: 2px; }
@media (min-width: 760px) { .consent-toggle { grid-column: 1 / -1; } }
