@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url(manrope-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url(manrope-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Radio Browse — desktop-first основа. ТЕКУЩАЯ палитра app.css (737123bc82e568b1); правки помечены «AA-FIX». */
:root{
 /* тёмная тема — как сейчас */
 --bg:#111827;--surface:#172033;--elevated:#202b40;--fg:#F5F7F2;--muted:#9AA6B8;--border:#2A374B;--accent:#B8F56A;--accent-strong:#93D94D;--glow:rgba(184,245,106,.2);--accent-ink:var(--accent);--danger:#FF7D8A;
 --border-strong:#5E6B80;/* AA-FIX: контур полей/кнопок ≥3:1 (#2A374B даёт 1.35:1 — оставляем только для декоративных рамок) */
 --focus:#B8F56A;--on-accent:#111827;
 --header-bg:#0A0E1A;/* AA-FIX (стабильность): непрозрачный вместо rgba(10,14,26,.86); = meta theme-color */
 --player-bg:#131826;
 --font:Manrope,Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
 --header-h:64px;--player-h:72px;--rail-gap:32px;--r-sm:8px;--r-md:12px;--r-lg:16px;
 --shadow-card:0 8px 24px rgba(0,0,0,.12);
}
:root[data-theme=light]{--bg:#F5F7F2;--surface:#FFFFFF;--elevated:#E8EEE3;--fg:#111827;--muted:#5A6475;--accent-ink:#3D7514;--border:#D5DED0;--accent:#5E9E22;--accent-strong:#4D861B;--glow:rgba(94,158,34,.18);
 --danger:#C0263A;/* AA-FIX: #FF7D8A на белом 2.46:1 → 5.87:1 */
 --border-strong:#7B8494;/* AA-FIX: контуры контролов 3.77:1 */
 --focus:#3D7514;/* AA-FIX: кольцо фокуса 5.19:1 вместо 3.05:1 */}
/* Шапка и плеер всегда тёмные: lime-логотип читается только на тёмном (на #F5F7F2 — 1.19:1) */
.site-header,.player{--surface:#172033;--elevated:#202b40;--fg:#F5F7F2;--muted:#9AA6B8;--border:#2A374B;--border-strong:#5E6B80;--accent:#B8F56A;--accent-strong:#93D94D;--accent-ink:#B8F56A;--focus:#B8F56A;color:var(--fg)}
*,*:before,*:after{box-sizing:border-box;min-width:0}
html{color-scheme:dark}:root[data-theme=light]{color-scheme:light}
body{margin:0;background:var(--bg);color:var(--fg);font:400 15px/1.55 var(--font);-webkit-font-smoothing:antialiased;padding-bottom:var(--player-h)}
a{color:inherit}button,input{font:inherit;color:inherit}button{cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.i{width:20px;height:20px;fill:currentColor;flex:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.shell{width:100%;max-width:1440px;margin-inline:auto;padding-inline:32px}
/* ── Шапка 64px ── */
.site-header{position:sticky;top:0;z-index:20;height:var(--header-h);background:var(--header-bg);border-bottom:1px solid #1E2738}
.header-inner{height:100%;display:flex;align-items:center;gap:28px}
.brand-logo{display:block;flex:none;width:156px;height:48px}.brand-logo img{display:block;width:156px;height:48px}
.nav{display:flex;gap:4px}.nav button{height:40px;padding:0 14px;border:0;border-radius:10px;background:none;color:var(--muted);font-weight:600}
.nav button:hover{color:var(--fg);background:var(--surface)}.nav button.active{color:var(--fg);background:var(--elevated);box-shadow:inset 0 -2px 0 var(--accent)}
.search{position:relative;flex:1;max-width:520px;margin-left:auto}
.search input{width:100%;height:44px;background:var(--surface);border:1px solid var(--border-strong);border-radius:12px;color:var(--fg);padding:0 16px 0 44px}
.search input::placeholder{color:var(--muted)}.search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--glow);outline:0}
.search .i{position:absolute;left:14px;top:12px;color:var(--muted)}
.header-actions{display:flex;align-items:center;gap:8px}
.language-switcher{display:flex;gap:2px;padding:2px;border:1px solid var(--border-strong);border-radius:12px}
.language-btn{height:38px;min-width:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:700}
.language-btn.active{background:var(--elevated);color:var(--fg)}
.theme-toggle{width:44px;height:44px;border:1px solid var(--border-strong);border-radius:12px;background:transparent;color:var(--fg);font-size:18px}
/* ── Типографика страницы ── */
.page-title{margin:0;font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.025em}
.lede{margin:6px 0 0;color:var(--muted);font-size:15px}
.section-title{margin:0;font-size:20px;line-height:1.3;font-weight:800;letter-spacing:-.01em}
.content-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 12px}
.content-header .count{color:var(--muted);font-size:14px;font-weight:600}
.more{color:var(--accent-ink);font-weight:700;font-size:14px;text-decoration:none}.more:hover{text-decoration:underline}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 16px;font-size:14px;color:var(--muted)}
.breadcrumbs a{color:var(--accent-ink);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs span[aria-hidden]{opacity:.6}
/* Чипы-ссылки (SEO-навигация) */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.chip{flex:none;white-space:nowrap;display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--fg);text-decoration:none;font-weight:600;font-size:14px}
.chip:hover{border-color:var(--accent)}.chip[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.chip small{color:var(--muted);font-weight:600;margin-left:6px}.chip[aria-current] small{color:inherit;opacity:.8}
.view-toggle{display:flex;gap:4px;background:var(--surface);padding:4px;border-radius:10px;border:1px solid var(--border)}
.view-btn{height:36px;min-width:44px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;padding:0 12px}
.view-btn.active{background:var(--elevated);color:var(--accent-ink)}
/* ── Логотип станции: фиксированный бокс, webp 64×64 + заглушка ── */
.art{position:relative;flex:none;display:grid;place-items:center;overflow:hidden;width:var(--art,48px);height:var(--art,48px);border-radius:var(--art-r,10px);background:#fff;box-shadow:inset 0 0 0 1px rgba(17,24,39,.08)}
.art img{width:var(--logo,var(--art,48px));height:var(--logo,var(--art,48px));max-width:100%;max-height:100%;object-fit:contain;image-rendering:auto}
.art.no-logo{background:var(--fb);box-shadow:none}
.art-fallback{color:#F5F7F2;font-weight:800;font-size:calc(var(--art,48px)*.36);letter-spacing:-.02em;line-height:1}
.art .eq{position:absolute;left:4px;bottom:4px;display:flex;gap:2px;align-items:flex-end;height:14px;padding:3px;border-radius:4px;background:rgba(10,14,26,.8)}
.eq i{display:block;width:3px;background:#B8F56A;border-radius:1px;transform-origin:bottom;animation:eq 1s ease-in-out infinite}.eq i:nth-child(1){height:60%}.eq i:nth-child(2){height:100%;animation-delay:-.3s}.eq i:nth-child(3){height:40%;animation-delay:-.6s}
@keyframes eq{50%{transform:scaleY(.4)}}@media (prefers-reduced-motion:reduce){.eq i{animation:none}}
/* ── Карточка станции (общие части) ── */
.station{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);transition:border-color .15s,background .15s}
.station:hover{border-color:var(--accent)}
.station.playing{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--elevated)}
.station-name{margin:0;font-size:15px;line-height:1.3;font-weight:700}
.station-name a{color:var(--fg);text-decoration:none}.station-name a:after{content:"";position:absolute;inset:0;z-index:1}
.station.playing .station-name a{color:var(--accent-ink)}
.station:has(.station-name a:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.station-name a:focus-visible{outline:0}
.location{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.location a{position:relative;z-index:2;color:inherit;text-decoration:none}.location a:hover{color:var(--accent-ink);text-decoration:underline}
.badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:var(--elevated);color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap}
.actions{position:relative;z-index:2;display:flex;gap:6px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;font-weight:700}
.btn.play{width:40px;height:40px;border-radius:50%;background:transparent;color:var(--accent-ink);border:2px solid var(--accent)}
.btn.play:hover{background:var(--accent);color:var(--on-accent)}
.station.playing .btn.play{background:var(--accent);color:var(--on-accent)}
.btn.favorite{width:40px;height:40px;border-radius:50%;background:transparent;color:var(--muted)}
.btn.favorite .i{fill:none;stroke:currentColor;stroke-width:2}.btn.favorite:hover{color:var(--fg);background:var(--elevated)}
.btn.favorite[aria-pressed=true]{color:var(--danger)}.btn.favorite[aria-pressed=true] .i{fill:currentColor}
.btn.lbl-sr .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* ── Рекламные слоты РСЯ: резерв высоты = CLS 0 ── */
.ad-slot{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;contain:layout paint}
.ad-label{width:var(--w);max-width:100%;font-size:11px;line-height:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ad-box{display:grid;place-items:center;width:var(--w);max-width:100%;height:var(--h);overflow:hidden;border-radius:8px;background:repeating-linear-gradient(135deg,transparent 0 10px,rgba(154,166,184,.07) 10px 20px),var(--surface);border:1px dashed var(--border-strong);color:var(--muted);font-size:12px;font-weight:600;text-align:center}
.ad-box b{display:block;color:var(--fg);font-size:13px}
.ad--728x90{--w:728px;--h:90px}.ad--970x90{--w:970px;--h:90px}.ad--300x600{--w:300px;--h:600px}.ad--300x250{--w:300px;--h:250px}.ad--240x400{--w:240px;--h:400px}
/* ── Пагинация ── */
.pagination{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:28px 0}
.page-link{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--fg);text-decoration:none;font-weight:700}
.page-link:hover{border-color:var(--accent)}.page-link[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.page-gap{align-self:center;color:var(--muted)}
/* ── SEO-текст под списком ── */
.seo-text{margin:8px 0 40px;max-width:880px;color:var(--muted)}.seo-text h2{color:var(--fg);font-size:20px;margin:0 0 8px}.seo-text a{color:var(--accent-ink)}
.seo-text summary{cursor:pointer;color:var(--fg);font-weight:700;min-height:44px;display:flex;align-items:center}
.site-footer{border-top:1px solid var(--border);padding:28px 0 36px;color:var(--muted);font-size:13px}
.site-footer .stats{display:flex;gap:40px;margin-bottom:12px}.stat strong{display:block;color:var(--fg);font-size:22px;font-weight:800}.stat span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.site-footer p{margin:0 0 8px;max-width:880px}.site-footer a{color:var(--accent-ink)}
/* ── Мини-плеер: 72px, всегда тёмный ── */
.player{position:fixed;z-index:30;left:0;right:0;bottom:0;height:var(--player-h);background:var(--player-bg);border-top:1px solid #2A374B;box-shadow:0 -8px 32px rgba(0,0,0,.25)}
.player-inner{height:100%;max-width:1440px;margin:auto;padding:0 32px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px}
.track{display:flex;align-items:center;gap:12px}.player .art{--art:48px}
.track-name{font-weight:700;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-details{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.live-dot{width:8px;height:8px;border-radius:50%;background:#B8F56A;flex:none}
.controls{display:flex;align-items:center;gap:8px}
.control{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted)}.control:hover{background:var(--surface);color:var(--fg)}
.control.primary{width:52px;height:52px;background:#B8F56A;color:#111827}.control.primary:hover{background:#93D94D}
.player-right{display:flex;justify-content:flex-end;align-items:center;gap:16px;color:var(--muted);font-size:13px}
.volume{display:flex;align-items:center;gap:8px}.volume input{accent-color:#B8F56A;width:110px}
/* ── Шапка станции (общие части) ── */
.station-hero{display:flex;gap:28px;align-items:center;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg)}
.station-hero .art{--art:128px;--logo:96px;--art-r:20px}
.station-hero h1{margin:0;font-size:34px;line-height:1.15;font-weight:800;letter-spacing:-.025em}
.station-hero .meta-links{margin:8px 0 0;color:var(--muted);font-size:15px;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.station-hero .meta-links a{color:var(--accent-ink);font-weight:600;text-decoration:none}.station-hero .meta-links a:hover{text-decoration:underline}
.hero-actions{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap}
.btn-listen{height:56px;padding:0 28px 0 22px;border-radius:999px;border:0;background:var(--accent);color:var(--on-accent);font-size:17px;font-weight:800;display:inline-flex;align-items:center;gap:10px}
.btn-listen .i{width:24px;height:24px}.btn-listen:hover{background:var(--accent-strong)}
.btn-ghost{height:56px;padding:0 20px;border-radius:999px;border:1px solid var(--border-strong);background:transparent;color:var(--fg);font-weight:700;display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.btn-ghost .i{fill:none;stroke:currentColor;stroke-width:2}.btn-ghost:hover{border-color:var(--accent)}
.status-line{margin-top:12px;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.about{color:var(--muted);max-width:760px}.about h2{color:var(--fg)}.about dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 24px;margin:12px 0}.about dt{color:var(--muted)}.about dd{margin:0;color:var(--fg)}.about a{color:var(--accent-ink)}
.link-list{list-style:none;margin:0;padding:0}.link-list li a{display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:0 10px;border-radius:8px;color:var(--fg);text-decoration:none;font-size:14px}
.link-list li a:hover{background:var(--elevated)}.link-list li a[aria-current]{background:var(--elevated);color:var(--accent-ink);font-weight:700}.link-list small{color:var(--muted);font-size:12px}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:16px}
.panel-title{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* ═══ final: правки по аудиту ═══ */
/* Хлебные крошки: цель клика ≥44px по высоте */
.breadcrumbs{gap:0 2px;margin:12px 0 12px;align-items:center}
.breadcrumbs a,.breadcrumbs [aria-current]{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;border-radius:8px}
.breadcrumbs a:hover{background:var(--elevated)}.breadcrumbs a:first-child{margin-left:-8px}
/* Пагинация: 44×44 минимум, промежутки 8px */
.pagination{gap:8px}.page-link{min-width:44px;min-height:44px}
/* Cookie-баннер: над мини-плеером, никогда не перекрывает его (текст и логика без изменений) */
.cookie-notice[hidden]{display:none}
.cookie-notice{position:fixed;z-index:35;left:24px;bottom:calc(var(--player-h) + 16px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:16px;max-width:min(560px,calc(100vw - 48px));padding:14px 16px;background:var(--surface);color:var(--fg);border:1px solid var(--border-strong);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.28)}
.cookie-notice p{margin:0;font-size:14px}
.cookie-notice button{flex:none;min-height:44px;padding:0 18px;border:0;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:700}.cookie-notice button:hover{background:var(--accent-strong)}
/* Мини-плеер: тёмные токены в обеих темах (подпись #9AA6B8 на #131826 = 7.18:1, название #F5F7F2 = 16.41:1) */
.player .track-details,.player-right{color:#9AA6B8}.player .track-name{color:#F5F7F2}
/* Поиск-фильтр в рейле */
.filter-field{position:relative;margin:0 0 8px}
.filter-field .i{position:absolute;left:12px;top:12px;color:var(--muted);pointer-events:none}
.filter-field input{width:100%;height:44px;padding:0 44px 0 40px;border-radius:10px;border:1px solid var(--border-strong);background:var(--bg);color:var(--fg);font-size:14px}
.filter-field input::placeholder{color:var(--muted)}
.filter-field input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--glow)}
.filter-field input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.filter-clear{position:absolute;right:0;top:0;width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:10px}
.filter-clear:hover{color:var(--fg)}.filter-clear[hidden]{display:none}.filter-clear .i{width:18px;height:18px}
.rail-block .link-list li[hidden]{display:none}
.rail-more summary{display:flex;align-items:center;min-height:44px;padding:0 10px;border-radius:8px;cursor:pointer;color:var(--accent-ink);font-weight:700;font-size:14px;list-style:none}
.rail-more summary::-webkit-details-marker{display:none}.rail-more summary:after{content:"▾";margin-left:6px}.rail-more[open] summary:after{content:"▴"}
.rail-more summary:hover{background:var(--elevated)}
.rail-block.is-filtering .rail-more summary{display:none}
.filter-empty{margin:4px 10px 8px;color:var(--muted);font-size:14px}
.rail-all{display:flex;align-items:center;min-height:44px;padding:0 10px;margin-top:4px;border-top:1px solid var(--border);color:var(--accent-ink);font-weight:700;font-size:14px;text-decoration:none}
.rail-all:hover{text-decoration:underline}
.link-list li a{min-height:40px}
/* Прод: заливка и пунктир — только у пустого резерва; после показа рекламы рамку убираем, размер не меняется */
.ad-slot.is-filled .ad-box{border:0;background:none}
.ad-slot.is-empty .ad-box>*{display:none}

/* ═══ Radio Browse: интеграция прототипа в прод-разметку (генератор + app.js) ═══ */
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 8px)}
body{overflow-x:hidden}
[hidden]{display:none!important}
.skip-link{position:absolute;left:16px;top:-60px;z-index:60;padding:10px 16px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:800;text-decoration:none}
.skip-link:focus{top:8px}
main{display:block;min-height:calc(100vh - var(--header-h) - var(--player-h))}
/* Тона заглушек логотипа (fallback_tone() в generate.py = fallbackTone() в app.js); белые инициалы ≥ 8:1 */
.fb0{--fb:#1E3A5F}.fb1{--fb:#2E2A5A}.fb2{--fb:#4A2545}.fb3{--fb:#1F4A3D}.fb4{--fb:#4A3A1C}.fb5{--fb:#23314F}.fb6{--fb:#3A2B1E}.fb7{--fb:#154457}.fb8{--fb:#3B3F1A}.fb9{--fb:#402030}
.art-fallback{display:grid;place-items:center}
.player #playerArt{--art:48px}
.hero h1{margin:0;font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.025em}
.hero{margin:0 0 4px}
.meta{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.grid .meta{overflow:hidden;max-height:24px}
.grid .badge{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;line-height:24px}
/* Кнопка «Только HTTP»: поток нельзя играть на HTTPS-странице */
.btn.play:disabled,.btn-listen:disabled{cursor:not-allowed;opacity:1;background:transparent;color:var(--muted);border:2px dashed var(--border-strong)}
.btn-listen:disabled{border-width:1px}
.btn.play:disabled:hover{background:transparent;color:var(--muted)}
.btn.play[aria-busy=true] .i{animation:rb-pulse 1s ease-in-out infinite}@keyframes rb-pulse{50%{opacity:.4}}
.btn-ghost[aria-pressed=true]{color:var(--danger);border-color:var(--danger)}.btn-ghost[aria-pressed=true] .i{fill:currentColor}
.btn.favorite:disabled{opacity:.45;cursor:default}
.btn-ghost .external{width:16px;height:16px}
/* Старые вспомогательные элементы */
.notice{display:none;padding:12px 16px;margin:12px 0;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--fg)}
.empty{grid-column:1/-1;border:1px dashed var(--border-strong);border-radius:12px;color:var(--muted);padding:48px;text-align:center}
.loading{opacity:.7}
.load-sentinel{height:1px;margin:24px 0}
.clear-recent{min-height:44px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--fg);padding:0 14px;font-size:13px;font-weight:700}
.clear-recent:hover{border-color:var(--accent);color:var(--accent-ink)}
#browseLive{display:inline-flex;align-items:center;margin:12px 0 0;min-height:40px;color:var(--accent-ink)}
.is-dynamic #browseLive,.layout--station #browseLive{display:none}
.station.search-focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--glow)}
.content-title{margin:0}
/* Выпадающие фильтры: только в динамическом каталоге (поиск/полный каталог) и на мобильных */
.filters{display:none}
.is-dynamic .filters{display:grid}
.filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md)}
.filter-control{position:relative}
.filter-label{display:block;margin-bottom:8px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.filter-trigger{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:var(--elevated);border:1px solid var(--border-strong);border-radius:8px;color:var(--fg);text-align:left}
.filter-trigger span:last-child{color:var(--accent-ink)}
.filter-menu{position:absolute;z-index:15;top:calc(100% + 6px);left:0;right:0;padding:8px;background:var(--elevated);border:1px solid var(--border-strong);border-radius:8px;box-shadow:0 16px 35px rgba(0,0,0,.35)}
.filter-search{width:100%;min-height:40px;margin:0 0 6px;padding:0 11px;background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;color:var(--fg)}
.filter-options{display:flex;flex-direction:column;gap:3px;max-height:260px;overflow:auto}
.filter-option{min-height:40px;border:0;border-radius:8px;background:transparent;color:var(--fg);display:flex;justify-content:space-between;align-items:center;text-align:left;padding:0 12px}
.filter-option:hover,.filter-option.active{background:var(--surface)}.filter-option.active{color:var(--accent-ink);font-weight:700}
.filter-summary{color:var(--muted);font-size:12px;margin-top:8px}
.count{font-size:12px;color:var(--muted)}
/* Избранное / недавние */
.stations.saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.saved-grid .station{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top actions" "meta meta";gap:10px 12px;padding:12px}
.saved-grid .station-top{grid-area:top;display:flex;align-items:center;gap:12px}.saved-grid .meta{grid-area:meta}.saved-grid .actions{grid-area:actions}
.saved-grid .art{--art:56px;--logo:48px}
/* Список (переключатель вида и «Похожие») */
.stations.list .art{--art:48px;--logo:40px}
.stations.list>li{list-style:none}
ul.stations{list-style:none;margin:0;padding:0}
.stations.list .meta{justify-content:flex-end}
/* SEO-блоки */
.seo-content{max-width:960px}
.seo-content:empty{display:none}
.seo-content ul:not(.stations){padding-left:22px}.seo-content li{margin:4px 0}
.seo-content a,.seo-after a,.station-more a{color:var(--accent-ink)}
.seo-content dl:not(.station-facts){display:grid;grid-template-columns:max-content 1fr;gap:6px 20px}.seo-content dd{margin:0}
.seo-text p{margin:0 0 10px}
.station-more{color:var(--muted);margin:0 0 24px}
.about .notes,.about p{color:var(--muted)}
.seo-nav{display:flex;flex-wrap:wrap;gap:4px 16px;margin:12px 0 0}
.seo-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent-ink);font-weight:600}
.page-step{white-space:nowrap}
.notfound-search{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:16px 0 24px}
.notfound-search label{flex:0 0 100%;font-weight:700}
.notfound-search input{flex:1;max-width:420px;height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--border-strong);background:var(--surface);color:var(--fg)}
.notfound-search .btn{height:44px;padding:0 20px;background:var(--accent);color:var(--on-accent);border:0}
/* Тёмные «острова» (шапка, плеер, блок «Станция дня») — свой цвет текста ссылок/кнопок */
.player .btn.favorite{color:#9AA6B8}.player .btn.favorite[aria-pressed=true]{color:#FF7D8A}
#playerStatus{min-width:84px;text-align:right}
.player-expand,.player-sheet{display:none}
.control svg{display:block;width:20px;height:20px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.control.primary svg{width:24px;height:24px;fill:#111827;stroke:#111827}
.control.primary span{display:grid;place-items:center}
/* Реклама: слоты есть в разметке только при ADS_MODE=manual и заданном ID. До 1024px не показываются (ads.js их не трогает). */
.side-col .ad-slot{width:300px}
/* Карточка станции дня в светлой теме: блок остаётся тёмным, отделяется тенью */
.onair .station:hover{border-color:transparent}
.preset{background:transparent;border:1px solid transparent}
.preset:hover{border-color:#2A374B;background:#131a2a}
.onair .station-name a{color:#F5F7F2}
.onair .location{color:#9AA6B8}

/* ═══ Десктоп-раскладки: .layout--rail (главная, страна, жанр, справочники, 404) и .layout--station ═══ */
.layout{display:grid;gap:32px;padding-top:20px;padding-bottom:24px;align-items:start}
.layout--rail{grid-template-columns:248px minmax(0,1fr)}
.layout--station{grid-template-columns:minmax(0,1fr);padding-top:4px}
.layout--station>.main-col{max-width:1100px}
.layout--station.has-side{grid-template-columns:minmax(0,1fr) 300px;gap:40px}
.layout--station.has-side>.main-col{max-width:none}
.layout.is-dynamic{grid-template-columns:minmax(0,1fr)}
.layout.is-dynamic>.rail{display:none}
.rail{display:flex;flex-direction:column;gap:12px}
.rail .panel{padding:12px}
.main-col{min-width:0}
.layout--rail .main-col>.breadcrumbs{margin-top:-8px}
.stations.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;grid-auto-flow:row}
.grid .station{display:grid;grid-template-columns:1fr auto;grid-template-areas:"top top" "meta actions";gap:10px 4px;padding:10px;align-items:center}
.grid .station-top{grid-area:top;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.grid .art{width:100%;height:auto;aspect-ratio:4/3;--logo:64px;--art-r:10px}
.grid .art .eq{left:6px;bottom:6px}
.grid .station-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid .meta{grid-area:meta}.grid .actions{grid-area:actions;gap:2px}
.grid .art-fallback{font-size:28px}
.art .eq{display:none}.station.playing .art .eq{display:flex}
.station-top{display:flex;align-items:center;gap:14px}.station-info{min-width:0}.station-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stations.list{display:flex;flex-direction:column;gap:8px}
.stations.list .station{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;min-height:68px;padding:10px 10px 10px 12px}
.station-hero{margin-bottom:16px}
.station-facts{display:grid;grid-template-columns:repeat(5,minmax(0,auto));justify-content:start;gap:12px 40px;margin:0 0 28px;padding:16px 24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg)}
.station-facts div{min-width:0}.station-facts dt{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.station-facts dd{margin:4px 0 0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.station-facts a{color:var(--accent-ink)}
.about{margin-bottom:24px}.about p{margin:8px 0 0}
.similar{margin-bottom:24px}.similar h2{margin:0;font-size:20px}
.side-col{align-self:stretch;padding-top:12px}
@media (min-height:860px){.side-col .ad-slot{position:sticky;top:calc(var(--header-h) + 12px)}}
/* «Станция дня» + тюнер */
.onair{--onair-h:168px;height:var(--onair-h);margin:16px 0 4px;display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);border-radius:var(--r-lg);overflow:hidden;background:#0A0E1A;border:1px solid #1E2738;--bg:#0A0E1A;--surface:#172033;--elevated:#202b40;--fg:#F5F7F2;--muted:#9AA6B8;--border:#2A374B;--border-strong:#5E6B80;--accent:#B8F56A;--accent-strong:#93D94D;--accent-ink:#B8F56A;--focus:#B8F56A;--on-accent:#111827;--danger:#FF7D8A;color:var(--fg)}
:root[data-theme=light] .onair{border-color:#D5DED0;box-shadow:0 10px 28px rgba(17,24,39,.14),0 1px 0 rgba(17,24,39,.04)}
.featured-now{display:flex;align-items:center;gap:16px;padding:16px 18px;border:0;border-radius:0;background:radial-gradient(circle at 0 0,rgba(184,245,106,.16),transparent 70%)}
.featured-now:hover{border:0}.featured-now .art{--art:96px;--logo:64px;--art-r:14px}
.featured-now .station-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.sod-title{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.onair-k{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#B8F56A}
.sod-link{font-size:20px;line-height:1.2;font-weight:800;color:var(--fg);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sod-link:hover{text-decoration:underline}.sod-link:after{content:none}
.featured-now .location{font-size:12px}
.featured-now .actions{margin-top:8px;gap:8px}
.featured-now .btn.play.big{width:auto;height:44px;padding:0 20px 0 16px;border-radius:999px;border:0;background:var(--accent);color:var(--on-accent);font-weight:800;font-size:15px}
.featured-now .btn.play.big .lbl{position:static;width:auto;height:auto;clip:auto}.featured-now .btn.play.big:hover{background:var(--accent-strong)}
.featured-now .btn.favorite{width:44px;height:44px;border:1px solid var(--border-strong)}
.tuner{display:flex;flex-direction:column;gap:8px;padding:10px 16px 12px;border-left:1px solid #1E2738;min-width:0}
.dial{position:relative;height:26px;flex:none;display:flex;justify-content:space-between;align-items:flex-start;padding:0 2px;font-size:10px;font-weight:700;color:#9AA6B8;border-bottom:1px solid #2A374B;background:repeating-linear-gradient(90deg,#2A374B 0 1px,transparent 1px 10px) left bottom/100% 8px no-repeat,repeating-linear-gradient(90deg,#5E6B80 0 2px,transparent 2px 50px) left bottom/100% 14px no-repeat}
.needle{position:absolute;left:41%;top:-2px;bottom:-1px;width:3px;border-radius:2px;background:#B8F56A;box-shadow:0 0 12px rgba(184,245,106,.7)}
.presets{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px}
.preset{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:50px;padding:4px 4px 4px 8px;border-radius:10px}
.preset-n{width:12px;font-size:12px;font-weight:800;color:#9AA6B8;text-align:center}
.preset .art{--art:36px;--art-r:8px}.preset .station-name{font-size:13px}.preset .location{font-size:11px}
.preset .btn.play{width:40px;height:40px}
.preset:focus-within{border-color:#B8F56A}
@media (max-width:1300px){.onair{grid-template-columns:minmax(0,330px) minmax(0,1fr)}.featured-now .art{--art:80px}}
@media (max-width:1279px){
 .layout--rail{grid-template-columns:220px minmax(0,1fr);gap:24px}
 .onair{grid-template-columns:minmax(0,300px) minmax(0,1fr)}
 .featured-now{padding:16px}.featured-now .art{--art:80px;--logo:56px}
 .presets{grid-template-columns:repeat(2,minmax(0,1fr))}.preset:nth-child(n+5){display:none}
 .layout--station.has-side{gap:32px}.station-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}.station-hero .art{--art:112px;--logo:84px}.station-hero h1{font-size:30px}
}

/* ═══ < 1024px: мобильная/планшетная раскладка (вне объёма редизайна; цель — ничего не сломать) ═══ */
@media (max-width:1023px){
 :root{--player-h:72px}
 .shell{padding-inline:16px}
 .site-header{height:auto;position:sticky}
 .header-inner{flex-wrap:wrap;gap:8px 12px;padding:8px 0}
 .brand-logo,.brand-logo img{width:132px;height:41px}
 .header-actions{margin-left:auto;order:1}
 .search{order:2;flex:0 0 100%;max-width:none;margin:0}
 .nav{order:3;flex:0 0 100%;overflow-x:auto}
 .layout,.layout--rail,.layout--station.has-side{grid-template-columns:minmax(0,1fr);gap:20px;padding-top:12px}
 .rail{order:2}.main-col{order:1}
 .side-col,.ad-slot{display:none}
 .filters{display:grid}
 .hero h1{font-size:26px}
 .stations.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
 .onair{height:auto;grid-template-columns:minmax(0,1fr)}
 .tuner{border-left:0;border-top:1px solid #1E2738}
 .presets{grid-template-columns:minmax(0,1fr)}.preset:nth-child(n+4){display:none}
 .station-hero{flex-direction:column;align-items:flex-start;gap:16px;padding:16px}
 .station-hero .art{--art:96px;--logo:72px}
 .station-hero h1{font-size:26px}
 .btn-listen,.btn-ghost{height:48px}
 .station-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:14px 16px}
 .stations.list .station{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .stations.list .meta{display:none}
 .stations.saved-grid{grid-template-columns:minmax(0,1fr)}
 .site-footer .stats{gap:24px;flex-wrap:wrap}
 .player-inner{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:0 16px}
 .player-right{display:none}
 .player-expand{display:block;position:absolute;right:8px;top:2px;width:32px;height:24px;border:0;background:transparent;color:#9AA6B8;font-size:16px}
 .player-sheet{position:fixed;inset:0;z-index:40;display:grid;place-items:center;align-content:center;gap:12px;background:var(--bg);padding:32px}
 .player-sheet .sheet-close{position:absolute;top:20px;right:20px;border:0;background:var(--surface);color:var(--fg);border-radius:10px;width:44px;height:44px;font-size:20px}
 .sheet-art{width:128px;height:128px;font-size:48px}
 .player-sheet h2,.player-sheet p{margin:0;text-align:center}.player-sheet p{color:var(--muted)}
 .cookie-notice{left:12px;right:12px;max-width:none;justify-content:space-between;gap:10px}
}
@media (max-width:600px){.filters{grid-template-columns:minmax(0,1fr)}.track .art{display:none}}
/* WCAG 2.2 target size: the station link itself is ≥ 24px high (its ::after already covers the whole card) */
.station-name a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:24px;line-height:24px}
@media (max-width:1023px){.station-name a{white-space:normal}.grid .station-name a{white-space:nowrap}}
/* Station page: facts in one wrapping row (5–6 items), blocks as wide as the hero */
.layout--station .seo-content{max-width:none}
.station-facts{display:flex;flex-wrap:wrap;gap:12px 40px}
@media (max-width:1279px){.station-facts{gap:12px 28px}}
@media (max-width:1023px){.station-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}}
/* ═══ Реклама (ADS_MODE=manual). Резерв размеров = CLS 0; пустой пунктирный резерв не показывается никогда ═══ */
.ad-slot .ad-box{background:none;border:0}
.ad-slot:not(.is-filled) .ad-label{visibility:hidden}
/* Станция, 300×600 в правой колонке: невидимый резерв до показа; без показа так и остаётся пустым местом вне основного потока */
.side-col .ad-slot{width:300px}
/* Главная: 2 ячейки в конце 2-го ряда при 6/5/4 колонках (в DOM — после 10-й станции); высота = высота ряда.
   По умолчанию (без JS, adblock, нет показа) — house-плитка «Популярное в России» того же размера; при показе её заменяет реклама. */
.stations.grid>.ad-tile--row2-end{grid-row:2;grid-column:-3/-1}
/* Rows of a grid with the ad cell are at least 272px high: 22px label + a 250px ad box (RSYA adaptive ~350×250, 300×250). */
.stations.grid:has(>.ad-tile--row2-end){grid-auto-rows:minmax(272px,auto)}
.ad-tile{position:relative;display:block;min-height:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;contain:layout paint;transition:border-color .15s}
.ad-tile .ad-label{position:absolute;z-index:1;top:4px;left:10px;width:auto}
.ad-tile .ad-box{position:absolute;left:0;right:0;top:22px;bottom:0;width:auto;max-width:none;height:auto;opacity:0;pointer-events:none}
.ad-tile.is-filled .ad-box{opacity:1;pointer-events:auto}
.ad-tile.is-filled .house-tile{visibility:hidden}
.ad-tile:has(.house-tile:hover){border-color:var(--accent)}
.house-tile{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:18px;color:var(--fg);text-decoration:none;background:radial-gradient(circle at 100% 0,var(--glow),transparent 60%)}
.house-tile .i{width:44px;height:44px;color:var(--accent-ink)}
.house-title{font-size:18px;line-height:1.3;font-weight:800}
.house-more{position:absolute;right:18px;bottom:18px;color:var(--accent-ink);font-weight:800;font-size:18px}
.house-tile:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
/* Тап-цели ≥ 44px на сенсорных и узких экранах (WCAG 2.5.5 AAA / рекомендации платформ) */
@media (max-width:1023px),(pointer:coarse){
 .btn.play,.btn.favorite,.preset .btn.play,.featured-now .btn.favorite{width:44px;height:44px}
 .featured-now .btn.play.big{height:44px}
 .nav button,.language-btn,.view-btn{height:44px}
 .theme-toggle{width:44px;height:44px}
 .link-list li a,.filter-option,.filter-search,.clear-recent,#browseLive,.filter-trigger{min-height:44px}
 .more,.station-hero .meta-links a,.sod-link{display:inline-flex;align-items:center;min-height:44px}
 .sod-link{display:flex}
 .station-hero .meta-links a{min-width:44px;justify-content:center}
 .logo{min-height:44px}
 .player-expand{width:44px!important;height:44px!important;top:0!important;right:0!important}
}
/* Мобильная страница станции: широкая основная кнопка «▶ Слушать», как на проде */
@media (max-width:1023px){
 .ad-tile{display:none}
 /* the 44×44 expand button sits in the top-right corner: keep the controls clear of it */
 .player .controls{margin-right:28px}
 .hero-actions{width:100%}
 .hero-actions .btn-listen{flex:1 1 100%;justify-content:center;height:56px;font-size:18px}
 .hero-actions .btn-ghost{flex:1 1 0;justify-content:center;min-height:48px}
}
