/* ==========================================================================
   MuzON — современная тема на цветах старого сайта.
   СВЕТЛАЯ тема по умолчанию, тёмная — альтернатива (html[data-theme="dark"]).
   ========================================================================== */

:root {
  --brand-950: #05284a;
  --brand-900: #062f56;
  --brand-800: #0c4c86;   /* фон старого body */
  --brand-700: #0d5da3;
  --brand-600: #267cf6;   /* акцент старого меню */
  --brand-500: #007efa;
  --blue-50:  #f2f7ff;
  --blue-100: #e6f0ff;
  --blue-200: #cddef6;    /* фон старого главного меню */
  --blue-300: #a7c8ee;
  --cyan:     #00eafa;
  --cyan-soft:#a7e8f8;
  --teal:     #00b5b0;
  --gold:     #ffc857;

  --bg:        #f3f7fd;
  --bg-2:      #eaf2fc;
  --surface:   #ffffff;
  --surface-2: #f4f8ff;
  --surface-3: #eaf2fd;
  --line:      #dfe9f7;
  --line-2:    #cbdcf2;
  --text:      #13283f;
  --text-soft: #4c6482;
  --muted:     #8094ad;
  --on-brand:  #ffffff;
  --header-a:  #0a4a83;
  --header-b:  #0d66b4;
  --header-c:  #00a2b5;

  --shadow-sm: 0 2px 10px rgba(12, 76, 134, .07);
  --shadow:    0 10px 30px rgba(12, 76, 134, .10);
  --shadow-lg: 0 24px 60px rgba(6, 47, 86, .20);
  --shadow-card: 0 6px 18px rgba(12, 76, 134, .09);

  --radius:    20px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --player-h:  96px;
  --header-h:  108px;

  /* Шрифт магнитолы — ОДИН рычаг на все подписи плеера. На старом сайте
     бегущая строка #runstr и время #ptime были просто `monospace`
     (в Chrome/Windows это Consolas). Раньше здесь первым стоял Courier New —
     пишущая машинка с засечками, на светящемся LED она выглядела тоньше
     и грязнее. Пробуем явно Consolas, дальше — фолбэки до monospace. */
  --deck-font: Consolas, "Lucida Console", "Courier New", monospace;
}

html[data-theme="dark"] {
  --bg:        #08121f;
  --bg-2:      #0b1a2c;
  --surface:   #101f33;
  --surface-2: #15283f;
  --surface-3: #1b3250;
  --line:      #223753;
  --line-2:    #2e4a6c;
  --text:      #e9f2ff;
  --text-soft: #b6c9df;
  --muted:     #8098b4;
  --blue-50:   #12253d;
  --blue-100:  #172e4b;
  --blue-200:  #1c3a5e;
  --blue-300:  #2b5483;
  --brand-600: #4a9bff;
  --header-a:  #062948;
  --header-b:  #0a4678;
  --header-c:  #007e8c;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 28px);
  background:
    radial-gradient(900px 480px at 8% -6%, rgba(38, 124, 246, .11), transparent 62%),
    radial-gradient(760px 420px at 96% 4%, rgba(0, 181, 176, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0, var(--bg) 420px);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 480px at 8% -6%, rgba(38, 124, 246, .16), transparent 62%),
    radial-gradient(760px 420px at 96% 4%, rgba(0, 181, 176, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0, var(--bg) 420px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 0; }
[x-cloak] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; fill: currentColor; }
.muted { color: var(--muted); }
.accent { color: var(--brand-600); }
.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 200;
  background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }

.container { width: min(1280px, 100% - 48px); margin: 0 auto; }
/* На FullHD 1280 px оставляли по 320 px пустых полей: раскрываем контейнер,
   чтобы карточки папок и треков стали заметно шире. */
@media (min-width: 1600px) {
  .container { width: min(1560px, 100% - 64px); }
}
.main-content { min-height: 60vh; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; font-weight: 650; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
/* Сдвиги при наведении (translate / scale) убраны СОВСЕМ и ВЕЗДЕ: элемент
   уезжал из-под курсора у нижней кромки и «колбасился», как раньше «Слушать»
   в панели радио. Ховер меняет только цвет / рамку / тень / прозрачность —
   геометрия недвижима, отклик мгновенный. */
.btn:hover { border-color: var(--line-2); filter: brightness(1.05); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px rgba(38, 124, 246, .28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(38, 124, 246, .4); }
.btn-light { background: #fff; color: var(--brand-800); box-shadow: 0 10px 26px rgba(3, 30, 60, .22); }
.btn-glass {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-soft); font-size: 13px; font-weight: 600;
}
.chip-btn .icon { width: 15px; height: 15px; }
.chip-btn.is-on { background: var(--blue-100); color: var(--brand-700); border-color: var(--blue-300); }
html[data-theme="dark"] .chip-btn.is-on { color: #cfe4ff; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(112deg, var(--header-a) 0%, var(--header-b) 58%, var(--header-c) 130%);
  color: #fff; box-shadow: 0 12px 34px rgba(6, 47, 86, .22);
}
.header-glow { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .42; z-index: -1; }
.header-glow-a { width: 360px; height: 360px; background: #38b6ff; top: -230px; left: 12%; }
.header-glow-b { width: 320px; height: 320px; background: #00e0c8; top: -200px; right: 6%; opacity: .3; }
.header-inner {
  display: flex; align-items: center; gap: 26px; min-height: var(--header-h);
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 16px; flex: none; }
/* Прозрачный логотип без белой подложки: крупный и читаемый на синей шапке. */
.brand-logo {
  width: 192px; height: auto; flex: none;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,.35))
          drop-shadow(0 0 2px rgba(255,255,255,.45));
}
.brand-divider { width: 1px; height: 46px; flex: none; background: rgba(255,255,255,.26); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 17px; font-weight: 750; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand-copy strong::first-letter { color: var(--cyan-soft); }
.brand-copy small { margin-top: 6px; font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.76); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,.87); transition: background .18s, color .18s;
}
.nav-link:hover { background: rgba(255,255,255,.16); color: #fff; }

.header-search {
  flex: 1 1 250px; min-width: 210px; max-width: 420px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 5px 6px 5px 15px; backdrop-filter: blur(10px);
}
.header-search:focus-within { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); }
.header-search .icon { width: 17px; height: 17px; color: rgba(255,255,255,.85); }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #fff; font-size: 14px; padding: 7px 0;
}
.header-search input::placeholder { color: rgba(255,255,255,.7); }
.header-search button {
  padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--brand-800);
  font-weight: 700; font-size: 13px;
}
.header-search button:hover { background: var(--cyan-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.13); color: inherit; border: 1px solid rgba(255,255,255,.2);
  transition: background .18s;
}
.icon-btn:hover { background: rgba(255,255,255,.26); }
.playlist-trigger {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px;
  border-radius: 12px; background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.28); font-weight: 650; font-size: 14px;
}
.playlist-trigger:hover { background: rgba(255,255,255,.28); }
.playlist-trigger .badge {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--cyan); color: #053049; font-size: 12px; font-weight: 800;
}
.header-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-soft), var(--brand-600), var(--teal), var(--cyan-soft));
}
.demo-note {
  display: flex; align-items: center; gap: 10px; width: min(1280px, 100% - 48px);
  margin: 16px auto -6px; padding: 11px 16px; border-radius: 12px;
  background: var(--blue-100); border: 1px solid var(--line-2); color: var(--text-soft);
  font-size: 13px;
}
.demo-note .icon { width: 17px; height: 17px; color: var(--brand-600); }
.demo-note code { background: var(--surface); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.demo-note.is-warning { background: #fff4e3; border-color: #f0c98a; color: #7a5317; }

/* --------------------------------------------------------------- blocks */
.block { margin-top: 44px; }
.block-compact { margin-top: 30px; }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.block-head h2 { font-size: 25px; font-weight: 780; }
.block-kicker {
  display: inline-block; margin-bottom: 7px; font-size: 11px; font-weight: 800;
  letter-spacing: .16em; color: var(--brand-600); text-transform: uppercase;
}
.see-all {
  display: inline-flex; align-items: center; gap: 5px; color: var(--brand-600);
  font-weight: 700; font-size: 13.5px; padding: 7px 0;
}
.see-all .icon { width: 15px; height: 15px; }
/* Раньше иконка уезжала вправо на 3px — убрали, ховер только подчёркивает. */
.see-all:hover { text-decoration: underline; }
.block-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.empty-state {
  padding: 46px 24px; border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted);
}
.empty-state .icon { width: 34px; height: 34px; color: var(--brand-600); margin-bottom: 8px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
  margin-top: 30px; padding: 48px 52px;
  border-radius: 28px;
  background: linear-gradient(115deg, var(--brand-950) 0%, var(--brand-800) 52%, #087f9e 130%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.hero-blob-1 { width: 460px; height: 460px; background: #2b8bff; opacity: .35; top: -260px; right: -90px; }
.hero-blob-2 { width: 380px; height: 380px; background: #00d4c8; opacity: .26; bottom: -250px; left: 28%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800;
  letter-spacing: .18em; color: var(--cyan-soft); text-transform: uppercase;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(0,234,250,.18); }
.hero h1 { margin: 16px 0 14px; font-size: clamp(34px, 3.7vw, 52px); font-weight: 820; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--cyan-soft); }
.hero-lead { max-width: 520px; color: rgba(255,255,255,.84); font-size: 15.5px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 34px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.66); margin-top: 2px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-vinyl {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0c4c86 0 16%, #071f38 16.5% 18%, #102a46 18.5% 30%, #081c31 30.5% 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0 2px, transparent 2px 5px);
  box-shadow: 0 30px 60px rgba(0,0,0,.4), inset 0 0 50px rgba(0,0,0,.6);
  right: -30px; top: 10px; opacity: .85;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-feature {
  position: relative; z-index: 2; width: 244px; padding: 18px;
  border-radius: 20px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px rgba(2,25,48,.38);
  transform: translate(-16px, 8px) rotate(-3deg);
}
.hf-album { display: contents; }  /* обёртка альбома в баннере: не ломает сетку */
.hf-top { display: flex; align-items: center; justify-content: space-between; }
.hf-label { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--cyan-soft); }
.hf-label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 5px; }
.hf-note .icon { width: 18px; height: 18px; color: rgba(255,255,255,.75); }
.hf-cover {
  /* ?v=42: вместо одной ноты — настоящее фото; градиент остаётся фоном,
     если обложки нет. overflow режет картинку по скруглению. */
  position: relative; overflow: hidden;
  height: 150px; margin: 14px 0; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, hsl(var(--h,210) 85% 62%), hsl(calc(var(--h,210) + 55) 80% 46%));
  box-shadow: inset 0 0 40px rgba(255,255,255,.18);
}
/* Фото absolute, поэтому не участвует в сетке и не меняет высоту блока.
   onerror прячет <img> и показывает ноту — карточка не прыгает. */
.hf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-cover .icon { width: 64px; height: 64px; color: rgba(255,255,255,.92); filter: drop-shadow(0 6px 20px rgba(0,0,0,.22)); }
.hf-title { font-size: 16px; font-weight: 750; line-height: 1.3; }
.hf-artist { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 3px; }
.hf-play {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 14px; padding: 10px; border-radius: 10px; background: #fff;
  color: var(--brand-800); font-weight: 750; font-size: 13px;
}
.hf-play:hover { background: #e8f7ff; }
.hf-play .icon { width: 15px; height: 15px; }

/* ------------------------------------------------------------- track cards */
.track-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 20px;
}
.track-card {
  /* ?v=40: кнопки на обложке в покое ПОЧТИ ЧЁРНЫЕ, при наведении заметно
     светлее. Старый переход .62 → .85 на тёмной картинке был невидим.
     ?v=41: по просьбе Rus светлый ховер приглушён 76/94/118 → 56/72/92 —
     контраст с покоем остался, но кружок больше не «светится» на фото. */
  --cover-btn-bg: rgba(9, 15, 26, .92);
  --cover-btn-bg-hover: rgba(56, 72, 92, .96);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.track-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tc-art {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(140deg, hsl(var(--h,210) 82% 64%), hsl(calc(var(--h,210) + 48) 76% 44%));
}
.tc-cover { width: 100%; height: 100%; object-fit: cover; }
.tc-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.28), transparent 45%),
    linear-gradient(140deg, hsl(var(--h,210) 82% 64%), hsl(calc(var(--h,210) + 48) 76% 44%));
}
/* Нет обложки — одна нота по центру, без инициалов исполнителя. */
.tc-note {
  width: 64px; height: 64px; color: rgba(255,255,255,.92);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.22));
}
/* Затемнение обложки (?v=40 по скриншоту): уже не один градиент, а тёмная
   вуаль + ПРИГЛУШЕНИЕ насыщенности/яркости самой картинки. Контраст падает,
   зато белые кружки читаются на любой обложке. Красим псевдоэлементом, а не
   самим .tc-overlay — иначе opacity родителя гасил бы кружок у играющего
   трека. Кнопки с z-index 2/3 рисуются ПОСЛЕ вуали и не затухают. */
.tc-overlay { position: absolute; inset: 0; pointer-events: none; }
.tc-overlay::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6,16,30,.34), rgba(6,16,30,.62));
  -webkit-backdrop-filter: saturate(.6) brightness(.8);
  backdrop-filter: saturate(.6) brightness(.8);
  opacity: 0; transition: opacity .2s ease;
}
/* ТОЛЬКО ховер (+ открытое меню): :focus-within держал бы затемнение после
   клика мышью, пока не щёлкнешь вне карточки (фокус остаётся на кнопке). */
.track-card:hover .tc-overlay::before,
.track-card.is-menu-open .tc-overlay::before { opacity: 1; }
.tc-play {
  --play-scale: 1; --play-shift: 12px;
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand-800); box-shadow: 0 6px 18px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  /* Выезд снизу + единый с папками/артистами зум по наведению на сам кружок.
     Карточка при этом недвижима: сдвигается абсолютный дочерний элемент. */
  transform: translateY(var(--play-shift)) scale(var(--play-scale));
  transition: transform .22s cubic-bezier(.22,.61,.36,1), opacity .22s ease,
              background-color .18s, color .18s;
}
/* Клавиатура: показываем САМУ кнопку по :focus-visible. Мышь фокус не
   «заливает» (:focus-visible не срабатывает), поэтому кружок уезжает
   обратно сразу после ухода курсора. У ИГРАЮЩЕГО трека он тоже уезжает
   (Rus 09.11): вместо кружка остаётся только эквалайзер .tc-now. */
/* ?v=40: меню живёт ВНЕ карточки (position:fixed), курсор уходит с обложки —
   без is-menu-open все три кружка тут же уезжали бы обратно. */
.track-card:hover .tc-play,
.track-card.is-menu-open .tc-play,
.tc-play:focus-visible {
  --play-shift: 0px; opacity: 1; pointer-events: auto;
}
.tc-badge {
  /* ?v=40: z-index выше вуали, иначе NEW тускнел при наведении. */
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 4px 9px; border-radius: 999px;
  background: var(--cyan); color: #053049; font-size: 10px; font-weight: 850; letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.tc-duration {
  /* ?v=40: время трека ПОВЕРХ затемнения обложки (было под вуалью). */
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(9,15,26,.82); color: #fff; font-size: 11px; font-weight: 650;
  backdrop-filter: blur(5px);
}
.tc-body { padding: 13px 14px 14px; }
.tc-title {
  display: block; font-weight: 720; font-size: 14px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-title:hover { color: var(--brand-600); }
.tc-artist {
  margin-top: 3px; font-size: 12.5px; line-height: 1.35; min-height: 1.35em;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.tc-plays { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.tc-plays .icon { width: 14px; height: 14px; }
.tc-actions { display: flex; gap: 6px; }
.tc-add {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft);
  transition: background .18s, color .18s;
}
.tc-add:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.tc-add .icon { width: 15px; height: 15px; }

/* ------------------------------------------------------------------- chart */
.chart {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px 18px;
}
.chart-row {
  display: flex; align-items: center; gap: 13px; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: box-shadow .18s, border-color .18s;
}
.chart-row:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.cr-rank { width: 24px; flex: none; text-align: center; font-size: 15px; font-weight: 800; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.cr-art {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 10px; overflow: hidden;
  background: linear-gradient(140deg, hsl(var(--h,210) 82% 64%), hsl(calc(var(--h,210) + 48) 76% 44%));
  display: grid; place-items: center;
}
.cr-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-ph { display: flex; align-items: center; justify-content: center; color: #fff; }
.cr-ph .icon { width: 24px; height: 24px; }
.cr-play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: rgba(4,30,60,.55); color: #fff; transition: opacity .18s;
}
.chart-row:hover .cr-play { opacity: 1; }
.cr-text { flex: 1; min-width: 0; }
.cr-text b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-text small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-dur { font-size: 11.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.cr-add { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--text-soft); flex: none; }
.cr-add:hover { background: var(--brand-600); color: #fff; }
.cr-add .icon { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- artists */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.artist-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 12px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);   box-shadow: var(--shadow-card);
  transition: box-shadow .22s;
}
.artist-card:hover { box-shadow: var(--shadow); }
.ac-avatar {
  position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 13px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 50%),
              linear-gradient(140deg, hsl(var(--h,210) 82% 64%), hsl(calc(var(--h,210) + 52) 74% 42%));
  box-shadow: 0 8px 20px rgba(12,76,134,.18);
}
.ac-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-initials { color: #fff; font-size: 27px; font-weight: 850; letter-spacing: -.05em; }
.ac-name { font-size: 13.5px; font-weight: 720; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-card small { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ac-new {
  position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--cyan); color: #053049; font-size: 10px; font-weight: 800;
}

/* ------------------------------------------------------------ folder cards
   ДЕВЯТАЯ ИТЕРАЦИЯ (08.11): на FullHD было 4 карточки по ~310 px, длинные
   названия альбомов обрезались. Теперь минимум 360 px (при 1280 px это 3
   карточки по ~418 px, при раскрытом до 1560 px контейнере — 4 по ~380 px),
   название занимает до ДВУХ строк, плюс title-тултип на всех обрезаемых
   элементах. */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 13px; }
.folder-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, border-color .18s;
}
.folder-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.fc-icon {
  position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h,210) 78% 62%), hsl(calc(var(--h,210) + 50) 72% 44%));
}
.fc-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-icon .icon { width: 22px; height: 22px; }
.fc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fc-body b {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere;
}
.fc-body small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-arrow { width: 17px; height: 17px; color: var(--muted); flex: none; }
.fc-new { position: absolute; right: 12px; top: 8px; font-size: 10px; font-weight: 800; color: var(--brand-600); }

/* Папки-подразделы: в имени были <b>/<strong>, старый сайт встраивал теги
   в HTML и делал строку жирным заголовком раздела. Здесь — безопасная
   подсветка классом + бейдж, сырой HTML в шаблон не попадает. */
.folder-card.is-subsection {
  border-left: 4px solid var(--brand-600);
  background: linear-gradient(100deg, var(--blue-100), var(--surface) 72%);
}
.folder-card.is-subsection .fc-body b { color: var(--brand-600); font-weight: 850; }
.folder-card.is-subsection .fc-icon {
  background: linear-gradient(140deg, hsl(var(--h,210) 70% 52%), hsl(calc(var(--h,210) + 50) 68% 34%));
}
.fc-tag {
  align-self: flex-start; padding: 2px 7px; border-radius: 999px;
  background: var(--brand-600); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; line-height: 1.5;
}

/* --- Play у папок и артистов, как у треков ---------------------------------
   Ссылка на папку и кнопка — СОСЕДИ: button внутри <a> невалиден и ловил бы
   переход. Появление плавное (opacity), реакция на курсор однотипна у ВСЕХ
   кружков: небольшой зум, без синей обводки и без сдвига самой карточки
   (решение Rus 09.11). Обводка осталась только для фокуса с клавиатуры. */
.fc-main {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
  color: inherit; text-decoration: none;
}
/* Кнопка лежит ПОВЕРХ иконки-обложки (.fc-icon), а не в строке рядом:
   видна только на ховере. Центрируем по вертикали через calc(50% - 19px),
   без translate — только зум вокруг своего центра. */
.fc-play {
  /* Иконка 48px начинается с x=16 (padding карточки): 16 + (48-38)/2 = 21. */
  --play-scale: 1;
  position: absolute; z-index: 2; left: 21px; top: calc(50% - 19px);
  width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; opacity: 0;
  background: #fff; color: var(--brand-800); border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transform: scale(var(--play-scale));
  transition: transform .2s ease, opacity .22s ease,
              background-color .18s, color .18s, border-color .18s;
}
/* Затемнение обложки под кнопкой — тот же приём, что у треков.
   Появляется вместе с кружком, без задержки. */
.folder-card:hover .fc-icon::after {
  content: ""; position: absolute; inset: 0; background: rgba(4, 30, 60, .55);
}
.folder-card:hover .fc-play,
.fc-play:focus-visible,
.fc-play.is-current, .fc-play.is-playing { opacity: 1; }
.ac-main {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; min-width: 0;
  color: inherit; text-decoration: none;
}
/* Центрируем через calc(50% - 22px), без translate — только зум.
   Появление плавное, как у папок и треков. */
.ac-play {
  --play-scale: 1;
  position: absolute; z-index: 2; top: 40px; left: calc(50% - 22px);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand-800); opacity: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transform: scale(var(--play-scale));
  transition: transform .2s ease, opacity .22s ease,
              background-color .18s, color .18s;
}
.artist-card:hover .ac-avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(4, 30, 60, .45);
}
/* И у артиста кружок уезжает ВСЕГДА, даже когда папка звучит: индикатор
   проигрывания — эквалайзер .ac-eq в левом верхнем углу карточки. */
.artist-card:hover .ac-play,
.ac-play:focus-visible { opacity: 1; }
/* Единый ховер для всех кружков Play: небольшой зум, без синей обводки. */
.tc-play:hover, .fc-play:hover, .ac-play:hover { --play-scale: 1.08; }
.tc-play:focus-visible, .fc-play:focus-visible, .ac-play:focus-visible {
  outline: 2px solid var(--brand-600); outline-offset: 2px;
}
.fc-play > .icon, .ac-play > .icon { display: none; }
.fc-play > .fc-icon-play, .ac-play > .ac-icon-play { display: inline-block; }
.fc-play.is-playing > .fc-icon-play, .ac-play.is-playing > .ac-icon-play { display: none; }
.fc-play.is-playing > .fc-icon-pause, .ac-play.is-playing > .ac-icon-pause { display: inline-block; }
.fc-play.is-playing, .ac-play.is-playing {
  background: var(--brand-600); color: #fff; border-color: var(--brand-600);
}
.folder-card.is-playing, .artist-card.is-playing {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(38, 124, 246, .18), var(--shadow);
}

/* ------------------------------------------------------------ section tiles */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.section-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 152px; padding: 18px; border-radius: var(--radius); overflow: hidden;
  /* Обложки разделов широкие (2.36:1): главный объект справа, поэтому плитку
     кадрируем от правого края, а hero страницы оставляет center. */
  background-size: cover; background-position: right center; color: #fff;
  box-shadow: var(--shadow-card); transition: box-shadow .22s;
}
.section-tile:hover { box-shadow: var(--shadow); }
.st-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,40,80,.15) 0%, rgba(5,35,70,.85) 100%); }
.st-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 700;
}
.st-label { position: relative; font-size: 16px; font-weight: 750; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.st-arrow { position: absolute; right: 14px; bottom: 16px; opacity: 0; }
.st-arrow .icon { width: 18px; height: 18px; }
/* Стрелка больше не выезжает: только мгновенное появление. */
.section-tile:hover .st-arrow { opacity: 1; }

/* --------------------------------------------------------------- alphabet */
.alphabet { display: flex; flex-wrap: wrap; gap: 7px; }
.letter {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 9px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 13.5px; color: var(--text-soft);
  transition: background .18s, color .18s;
}
.letter:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.letter.is-active { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }

/* -------------------------------------------------------------- radio banner */
.radio-banner {
  display: flex; align-items: center; gap: 22px; margin-top: 48px; padding: 26px 30px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(110deg, #063b6b, #0b6fa8 60%, #0aa39c);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
/* Свечение — последний ребёнок .radio-banner и position:absolute без z-index:
   оно рисовалось ПОВЕРХ .rb-actions и перехватывало клики (правую кнопку
   «Все станции» накрывало целиком, «Слушать» — только краем). */
.radio-banner::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(0,234,250,.18); filter: blur(36px); right: -60px; top: -130px;
  pointer-events: none; z-index: 0;
}
.rb-icon {
  width: 62px; height: 62px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
}
.rb-icon .icon { width: 30px; height: 30px; }
.rb-text { flex: 1; min-width: 0; }
.rb-text h3 { font-size: 20px; margin-bottom: 5px; }
.rb-text p { font-size: 13px; color: rgba(255,255,255,.8); max-width: 640px; }
.rb-actions { display: flex; gap: 10px; flex: none; position: relative; z-index: 1; }

/* ------------------------------------------------------------- inner pages */
.crumbs { display: flex; align-items: center; gap: 9px; margin: 26px 0 18px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs b { color: var(--text-soft); font-weight: 650; }
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 30px 34px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.page-head h1 { font-size: 34px; margin: 4px 0 8px; }
.page-head p { color: var(--muted); font-size: 14px; max-width: 620px; }
.page-head-art {
  width: 96px; height: 96px; flex: none; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-100), var(--blue-200)); color: var(--brand-700);
}
.page-head-art .icon { width: 44px; height: 44px; }

.folder-hero, .listing-hero {
  display: flex; align-items: center; gap: 28px; padding: 32px 36px; border-radius: var(--radius);
  color: #fff; margin-bottom: 10px; overflow: hidden; background-size: cover; background-position: center;
}
.folder-hero { background: linear-gradient(115deg, var(--brand-950), #0a6ba5 70%, #0aa39c); }
.folder-hero.is-subsection { box-shadow: inset 6px 0 0 var(--cyan); }
.folder-hero.is-subsection .block-kicker { color: var(--cyan-soft); letter-spacing: .1em; }
.listing-hero { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 220px; justify-content: center; }
.listing-hero h1 { font-size: 36px; }
.listing-hero p { color: rgba(255,255,255,.82); }
.listing-hero .btn { margin-top: 8px; }
.fh-cover {
  position: relative; width: 132px; height: 132px; flex: none; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 16px 34px rgba(0,0,0,.28);
  background: linear-gradient(140deg, hsl(var(--h,210) 82% 64%), hsl(calc(var(--h,210) + 50) 74% 42%));
}
.fh-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fh-cover span { font-size: 46px; font-weight: 850; color: rgba(255,255,255,.92); }
.fh-copy .block-kicker { color: var(--cyan-soft); }
.fh-copy h1 { font-size: 34px; margin: 5px 0 8px; }
/* Составной заголовок «Артист — Альбом» как в ajax_get_uptxt.php:
   артист выводился серым <span class="gr-art">, альбом — обычным текстом. */
.fh-copy h1 .fh-artist { font-weight: 550; color: rgba(255,255,255,.72); }
.fh-copy h1 .fh-sep { font-weight: 400; color: rgba(255,255,255,.55); }
.fh-copy p { color: rgba(255,255,255,.82); }
.fh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.pager-btn { padding: 10px 18px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; }
.pager-btn:hover { border-color: var(--brand-600); color: var(--brand-600); }
.pager-current { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ search */
.search-panel {
  margin: 22px 0 6px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sp-main { display: flex; align-items: center; gap: 12px; }
.sp-main > .icon { width: 22px; height: 22px; color: var(--brand-600); }
.sp-main input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); outline: 0;
}
.sp-main input:focus { border-color: var(--brand-600); background: var(--surface); }
.sp-filters { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 15px; }
.sp-filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.sp-filters select {
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 13px;
}
.sp-hint { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--muted); }
.sp-hint .icon { width: 15px; height: 15px; }
.search-results { margin-top: 26px; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.results-head h2 { font-size: 21px; }
.results-head span { color: var(--muted); font-size: 13px; }
.results-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 26px; }
.search-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.search-tips > div {
  display: flex; flex-direction: column; gap: 5px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.search-tips .icon { width: 26px; height: 26px; color: var(--brand-600); margin-bottom: 6px; }
.search-tips b { font-size: 16px; }
.search-tips span { color: var(--muted); font-size: 12.5px; }
.search-tips a { color: var(--brand-600); font-weight: 700; font-size: 13px; margin-top: 8px; }

/* ------------------------------------------------------------------- radio
   Отдельная страница /radio/ удалена: три станции живут в боковой панели.
   Оставляем только общую анимацию индикатора. */
@keyframes pulse { 50% { opacity: .45; } }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 24px 0; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 320px; }
/* logo.png — PNG с ПРОЗРАЧНЫМ фоном (alpha=0 по углам). Белая подложка была
   лишней и на тёмной теме выглядела светлым «кирпичом». На тёмной теме
   вместо неё — мягкая тень, чтобы белый контур букв оставался читаемым. */
.footer-brand img { width: 96px; border-radius: 10px; }
html[data-theme="dark"] .footer-brand img { filter: drop-shadow(0 2px 9px rgba(0,0,0,.55)); }
.footer-brand p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; gap: 18px; font-size: 13px; font-weight: 650; color: var(--text-soft); }
.footer-links a:hover { color: var(--brand-600); }
.footer-meta { font-size: 12px; color: var(--muted); }
/* Как #foot на старом сайте: 10 px, серый, по центру, под футером.
   Пустую полосу снизу убрали: body теперь flex-column с main flex:1,
   а фиксированного плеера снизу больше нет (магнитола липкая под шапкой). */
.site-copyright {
  margin: 0; padding: 7px 24px 9px; text-align: center;
  font-size: 10px; line-height: 1.5; color: var(--muted);
}

/* ------------------------------------------------------------- sticky player */
.player-shell {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: var(--player-h);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -12px 40px rgba(6,47,86,.13);
}
.player-progress-line {
  position: absolute; left: 0; top: -1px; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 234, 250, .5);
  transition: width .25s linear;
}
.player-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.np { display: flex; align-items: center; gap: 12px; width: min(30%, 340px); min-width: 200px; flex: none; }
.np-cover { width: 58px; height: 58px; flex: none; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(6,47,86,.2); }
.np-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-cover.is-radio { background: linear-gradient(140deg, #0c4c86, #0aa39c); }
.np-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-700), #1aa4c0);
}
.np-placeholder .icon { width: 26px; height: 26px; opacity: .9; }
.np-text { min-width: 0; flex: 1; }
.np-title { font-size: 14px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: #ffe4e8; color: #c2304a; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: #ff5b6e; }
.np-fav { width: 32px; height: 32px; flex: none; background: transparent; border-color: transparent; color: var(--muted); }
.np-fav:hover { color: #ff5b6e; background: var(--surface-2); }

.player-center { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.controls { display: flex; align-items: center; gap: 12px; }
.ctrl { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); transition: background .18s, color .18s; }
.ctrl:hover:not(:disabled) { background: var(--surface-3); color: var(--brand-600); }
.ctrl:disabled { opacity: .35; cursor: not-allowed; }
.ctrl .icon { width: 18px; height: 18px; }
.ctrl-main { width: 44px; height: 44px; background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px rgba(38,124,246,.35); }
.ctrl-main:hover:not(:disabled) { background: var(--brand-700); color: #fff; }
.ctrl-main .icon { width: 21px; height: 21px; }
.seek-row, .live-row { display: flex; align-items: center; gap: 10px; width: min(100%, 560px); }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.seek, .volume {
  -webkit-appearance: none; appearance: none; height: 5px; border-radius: 999px; outline: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan)) no-repeat, var(--line);
  background-size: 0% 100%; cursor: pointer;
}
.seek { flex: 1; }
.seek::-webkit-slider-thumb, .volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-600); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.seek::-moz-range-thumb, .volume::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-600);
}
.live-row { justify-content: center; gap: 10px; font-size: 11.5px; color: var(--text-soft); }
.live-row b { color: var(--brand-600); }
.live-hint { color: var(--muted); font-size: 11px; }
.live-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.live-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--brand-600); animation: wave .9s ease-in-out infinite alternate; }
.live-bars i:nth-child(2) { animation-delay: .15s; height: 12px; }
.live-bars i:nth-child(3) { animation-delay: .3s; height: 8px; }
.live-bars i:nth-child(4) { animation-delay: .45s; height: 13px; }
.live-bars i:nth-child(5) { animation-delay: .6s; height: 7px; }
.player-right { display: flex; align-items: center; gap: 14px; flex: none; }
.radio-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.radio-toggle .icon { width: 16px; height: 16px; }
.radio-toggle.is-on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.volume-box { display: flex; align-items: center; gap: 8px; }
.volume-box .icon-btn { width: 30px; height: 30px; background: transparent; border-color: transparent; color: var(--text-soft); }
.volume-box .icon-btn .icon { width: 18px; height: 18px; }
.volume { width: 84px; }
.only-mobile { display: none; }

/* ------------------------------------------------------------------- drawer */
.drawer {
  position: fixed; right: 0; top: 0; bottom: var(--player-h); z-index: 90;
  width: min(410px, 100%); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(6,47,86,.2);
}
/* Плавный выезд обеих боковых панелей: классы вешает Alpine x-transition.
   Двигаем только саму панель (transform), а не содержимое страницы. */
.drawer-anim { transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .28s ease; }
.drawer-off { transform: translateX(100%); opacity: 0; }
.drawer-on { transform: translateX(0); opacity: 1; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 14px; }
.drawer-head h2 { font-size: 21px; }
.drawer-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.drawer-head .icon-btn { background: var(--surface-2); color: var(--text-soft); border-color: var(--line); }
.drawer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-hint { font-size: 11px; color: var(--muted); letter-spacing: .01em; }
.playlist { flex: 1; overflow-y: auto; margin: 0; padding: 12px; list-style: none; }
.playlist-item {
  display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px;
  border: 1px solid transparent; transition: background .18s;
}
.playlist-item:hover { background: var(--surface-2); }
.playlist-item.is-current { background: var(--blue-100); border-color: var(--line-2); }
.pl-play { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--brand-600); }
.pl-play .icon { width: 14px; height: 14px; }
.pl-cover { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.pl-cover .icon { width: 17px; height: 17px; }
.pl-text { flex: 1; min-width: 0; }
.pl-title { font-size: 13px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-actions { display: flex; gap: 2px; }
.mini { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font-size: 12px; }
.mini:hover { background: var(--surface-3); color: var(--brand-600); }
.mini .icon { width: 12px; height: 12px; }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px; color: var(--muted); }
.drawer-empty .icon { width: 42px; height: 42px; color: var(--brand-600); opacity: .6; }
.drawer-empty h3 { color: var(--text); font-size: 17px; }
.drawer-empty p { font-size: 13px; max-width: 260px; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }
.drawer-foot .btn { padding: 9px 13px; font-size: 12.5px; flex: 1; min-width: 90px; }
.drawer-overlay { position: fixed; inset: 0 0 var(--player-h); z-index: 80; background: rgba(5,25,48,.42); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 22px); z-index: 100;
  transform: translateX(-50%); padding: 11px 20px; border-radius: 999px;
  background: var(--brand-900); color: #fff; font-size: 13px; font-weight: 650;
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .header-inner { gap: 16px; }
  .hero { grid-template-columns: 1fr; padding: 38px; }
  .hero-art { min-height: 260px; }
  .hero-vinyl { right: 8%; width: 240px; height: 240px; }
  .hero-feature { transform: none; }
  .np { width: 240px; }
  .volume { width: 60px; }
}
@media (max-width: 760px) {
  :root { --player-h: 120px; }
  .container { width: min(1280px, 100% - 28px); }
  .brand-logo { width: 132px; }
  .brand-divider { height: 34px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .brand-copy small { display: none; }
  .main-nav { order: 4; width: 100%; justify-content: space-between; }
  .nav-link { padding: 7px 9px; font-size: 13px; }
  .playlist-trigger span:not(.badge) { display: none; }
  .hero { padding: 28px 24px; border-radius: 20px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 20px; }
  .hero-art { display: none; }
  .block-head h2 { font-size: 21px; }
  .track-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
  .chart { grid-template-columns: 1fr; }
  .page-head { padding: 22px; }
  .page-head-art { display: none; }
  .page-head h1 { font-size: 26px; }
  .folder-hero, .listing-hero { padding: 24px; }
  .fh-cover { width: 86px; height: 86px; }
  .fh-cover span { font-size: 30px; }
  .fh-copy h1 { font-size: 24px; }
  .radio-banner { flex-direction: column; align-items: flex-start; }
  .player-inner { flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; align-content: center; }
  .np { width: 100%; min-width: 0; }
  .np-fav { display: none; }
  .player-center { flex: 1; }
  .player-right { position: absolute; right: 14px; top: 14px; }
  .volume-box, .radio-toggle span { display: none; }
  .radio-toggle { padding: 7px; }
  .only-mobile { display: grid; }
  .seek-row, .live-row { width: 100%; }
  .live-hint { display: none; }
  .drawer { bottom: var(--player-h); }
  .footer-inner { gap: 20px; }
}

/* ==========================================================================
   АВТОМАГНИТОЛА — липкая панель под шапкой (перекрывает старые .player-*).
   Неоновые кнопки, LED-дисплей с бегущей строкой, тёмный фон.
   ========================================================================== */

:root { --deck-h: 106px; --player-h: 0px; }
/* Магнитола липкая ПОД ШАПКОЙ, фиксированного плеера снизу нет: резерв
   --player-h (96/120 px) и padding-bottom body давали пустую полосу внизу
   страницы и обрезали drawer. main растягиваем, чтобы футер со строкой
   копирайта прижимался к низу даже на коротких страницах. */
body { display: flex; flex-direction: column; padding-bottom: 0; }
.main-content { flex: 1 0 auto; }

.deck {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--deck-h);
  overflow: hidden;
  background: linear-gradient(180deg, #0b2235 0%, #071827 48%, #030d17 100%);
  /* Обводку плеера уменьшили: низ был 2px, стал 1px, обе линии мягче. */
  border-top: 1px solid rgba(0, 234, 250, .18);
  border-bottom: 1px solid rgba(0, 234, 250, .12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.deck::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px);
}
.deck::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,234,250,.75), transparent);
  opacity: .45;   /* нижняя неоновая линия больше не «бордюр» */
}
.deck-progress {
  position: absolute; left: 0; top: 0; height: 3px; z-index: 4;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan));
  box-shadow: 0 0 14px rgba(0, 234, 250, .8);
  transition: width .25s linear;
}
.deck-inner { height: 100%; display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; }

/* --- шильдик «приёмника» --- */
.deck-brand { width: 112px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.db-mark { font-size: 18px; font-weight: 850; letter-spacing: .1em; color: #e9fbff; text-shadow: 0 0 12px rgba(0,234,250,.5); }
.db-mark b { color: var(--cyan); font-weight: 850; }
.db-model { font-size: 8px; font-weight: 700; letter-spacing: .19em; color: rgba(255,255,255,.4); }

/* --- LED-дисплей --- */
.lcd {
  flex: 1; min-width: 0; height: 76px; padding: 7px 13px 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; border-radius: 8px;
  background: linear-gradient(180deg, #05202a 0%, #021117 55%, #010a0e 100%);
  border: 1px solid #154654;
  box-shadow: inset 0 0 26px rgba(0,0,0,.92), 0 0 0 1px rgba(0,234,250,.09), 0 0 20px rgba(0,234,250,.10);
}
.lcd.is-radio { border-color: #6a4a17; box-shadow: inset 0 0 26px rgba(0,0,0,.92), 0 0 20px rgba(255,180,60,.12); }
.lcd-dots {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(0,0,0,.85) 1px, transparent 1.3px);
  background-size: 3px 3px;
}
.lcd-top, .lcd-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lcd-src, .lcd-stereo, .lcd-time, .lcd-live {
  font: 700 9.5px/1 var(--deck-font);
  letter-spacing: .17em; color: #5ff5e8; text-shadow: 0 0 9px rgba(0,234,250,.75);
}
.lcd.is-radio .lcd-src, .lcd.is-radio .lcd-time, .lcd.is-radio .lcd-live,
.lcd.is-radio .lcd-stereo { color: #ffd06a; text-shadow: 0 0 9px rgba(255,180,60,.7); }
.lcd-stereo { display: inline-flex; align-items: center; gap: 5px; }
.lcd-stereo i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }

.lcd-marquee { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; position: relative; z-index: 1; }
.lcd-track-text {
  display: flex; width: max-content; white-space: nowrap;
  animation: lcd-scroll 26s linear infinite;
  font: 700 17px/1 var(--deck-font);
  letter-spacing: .15em; text-transform: uppercase;
  color: #6ffcf0;
  text-shadow: 0 0 8px rgba(0,234,250,.95), 0 0 20px rgba(0,234,250,.55);
}
.lcd-track-text span { padding-right: 7ch; }
.lcd.is-radio .lcd-track-text {
  color: #ffd475;
  text-shadow: 0 0 8px rgba(255,180,60,.95), 0 0 20px rgba(255,150,40,.55);
}
.lcd-marquee:hover .lcd-track-text { animation-play-state: paused; }
@keyframes lcd-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.lcd-time { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.lcd-seek-wrap { flex: 1; min-width: 40px; display: flex; }
.lcd-live { flex: 1; justify-content: center; gap: 9px; font-size: 10px; }
.lcd-live b { font-weight: 800; }
.lcd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.lcd-bars i { width: 3px; height: 5px; border-radius: 1px; background: currentColor; animation: lcd-wave .9s ease-in-out infinite alternate; }
.lcd-bars i:nth-child(2) { height: 10px; animation-delay: .15s; }
.lcd-bars i:nth-child(3) { height: 6px; animation-delay: .3s; }
.lcd-bars i:nth-child(4) { height: 11px; animation-delay: .45s; }
.lcd-bars i:nth-child(5) { height: 7px; animation-delay: .6s; }
@keyframes lcd-wave { to { height: 3px; opacity: .55; } }

.lcd-seek, .lcd-volume {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px;
  outline: 0; cursor: pointer;
  background: linear-gradient(90deg, #00eafa, #267cf6) no-repeat, rgba(0,234,250,.18);
  background-size: 0% 100%;
}
.lcd-seek::-webkit-slider-thumb, .lcd-volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #e9ffff; border: 2px solid #00eafa; box-shadow: 0 0 10px rgba(0,234,250,.9);
}
.lcd-seek::-moz-range-thumb, .lcd-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #e9ffff; border: 2px solid #00eafa;
}
.lcd-seek:disabled { opacity: .35; cursor: not-allowed; }

/* --- неоновые кнопки --- */
.deck-buttons { display: flex; align-items: center; gap: 9px; flex: none; }
.deck-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; color: #a9edf8;
  background: radial-gradient(circle at 34% 26%, #1d4154, #081a26 72%);
  border: 1px solid rgba(0,234,250,.4);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.72), 0 0 0 2px rgba(0,0,0,.22), 0 0 12px rgba(0,234,250,.13);
  transition: box-shadow .18s, color .18s, border-color .18s;
}
.deck-btn .icon { width: 17px; height: 17px; }
.deck-btn:hover:not(:disabled) {
  color: #fff; border-color: var(--cyan);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.6), 0 0 18px rgba(0,234,250,.6), 0 0 0 2px rgba(0,0,0,.22);
}
.deck-btn:disabled { opacity: .3; cursor: not-allowed; }
.deck-btn-play {
  width: 54px; height: 54px; color: #052330;
  background: radial-gradient(circle at 35% 25%, #c8fdff, #2fd8e8 52%, #0a8fb4 100%);
  border-color: #a7e8f8;
  box-shadow: 0 0 20px rgba(0,234,250,.55), inset 0 2px 7px rgba(255,255,255,.55), 0 0 0 2px rgba(0,0,0,.22);
}
.deck-btn-play .icon { width: 22px; height: 22px; }
.deck-btn-play.is-playing { animation: neon-pulse 2.2s ease-in-out infinite; }
@keyframes neon-pulse {
  50% { box-shadow: 0 0 30px rgba(0,234,250,.95), inset 0 2px 7px rgba(255,255,255,.7), 0 0 0 2px rgba(0,0,0,.22); }
}
.deck-btn-wide {
  width: auto; padding: 0 13px; border-radius: 999px; display: inline-flex; gap: 6px;
  font: 800 9.5px/1 var(--deck-font); letter-spacing: .12em;
}
.deck-btn-wide .icon { width: 15px; height: 15px; }
.deck-btn-radio.is-on {
  color: #33210a;
  background: radial-gradient(circle at 35% 25%, #fff0c4, #ffbe4d 58%, #c8791c 100%);
  border-color: #ffd475;
  box-shadow: 0 0 20px rgba(255,180,60,.65), inset 0 2px 7px rgba(255,255,255,.6), 0 0 0 2px rgba(0,0,0,.22);
}
/* «ДАЛЬШЕ»/«ПОВТОР» теперь БЕЗ текста и ВСЕГДА круглые (.deck-btn 40×40,
   border-radius 50%). Иконку чуть увеличили, чтобы читалась без подписи. */
.deck-mode-btn .icon { width: 18px; height: 18px; }
/* «Переходить к следующему» / «Повторять»: зелёная подсветка = режим ВКЛ. */
.deck-mode-btn.is-on {
  color: #062b1f;
  background: radial-gradient(circle at 35% 25%, #d8ffe9, #4ade80 58%, #16a34a 100%);
  border-color: #86efac;
  box-shadow: 0 0 18px rgba(74,222,128,.55), inset 0 2px 7px rgba(255,255,255,.6), 0 0 0 2px rgba(0,0,0,.22);
}
.deck-badge {
  font-style: normal; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px;
  background: #ffbe4d; color: #33210a; font-size: 9px; font-weight: 850;
}

/* --- регулятор громкости --- */
.deck-knob { display: flex; align-items: center; gap: 7px; flex: none; width: 126px; }
.deck-vol-btn { width: 26px; height: 26px; display: grid; place-items: center; color: #8fdcea; }
.deck-vol-btn .icon { width: 17px; height: 17px; }
.lcd-volume { width: 62px; }
.deck-vol-label { font: 700 8px/1 var(--deck-font); letter-spacing: .16em; color: rgba(255,255,255,.38); }

/* Плеер закреплён внизу: тост поднимаем над панелью, а не поверх LED. */
.drawer { bottom: 0; }
.drawer-overlay { inset: 0; }
.toast { bottom: calc(var(--player-h) + 22px); }

@media (max-width: 1080px) {
  .deck-brand, .deck-vol-label, .lcd-volume { display: none; }
  .deck-knob { width: auto; }
  .deck-inner { gap: 13px; }
}
/* На широком экране вся шапка должна помещаться в ОДНУ строку:
   большой прозрачный логотип + подпись + навигация + поиск + кнопки. */
@media (min-width: 1081px) {
  .header-inner { flex-wrap: nowrap; gap: 14px; }
  .brand { gap: 12px; }
  .brand-divider { height: 38px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .main-nav { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .header-search { min-width: 170px; max-width: 360px; flex-basis: 190px; margin-left: auto; }
  .header-actions { gap: 8px; }
  .playlist-trigger { padding: 9px 11px; }
}

@media (max-width: 760px) {
  :root { --deck-h: auto; }
  .deck { height: auto; padding: 11px 0; }
  .deck-inner { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .lcd { order: 1; flex: 1 1 100%; width: 100%; height: 66px; padding: 6px 10px; }
  .deck-buttons { order: 2; gap: 7px; flex: 1; justify-content: center; }
  .deck-knob { order: 3; }
  .deck-btn { width: 34px; height: 34px; }
  .deck-btn-play { width: 44px; height: 44px; }
  .deck-btn-wide { padding: 0 9px; }
  .deck-btn-wide span { display: none; }
  .lcd-track-text { font-size: 13px; }
  .lcd-marquee { height: 18px; }
}

/* ==========================================================================
   ТРЕТЬЯ ИТЕРАЦИЯ: полное лого, поиск во второй строке, панель радио,
   светлая магнитола с транспортом и крупным временем ВНУТРИ дисплея.
   ========================================================================== */

:root {
  --header-h: 176px;
  --deck-h: 128px;
  /* Светлая тема: светлая «металлическая» панель, тёмный LED-дисплей. */
  --deck-bg: linear-gradient(180deg, #f4f9ff 0%, #dcebf9 46%, #c2d9ef 100%);
  --deck-ink: #123a5c;
  --deck-ink-soft: #5a7898;
  --deck-edge: rgba(12, 76, 134, .24);
  --unit-bg: linear-gradient(180deg, rgba(255,255,255,.85), rgba(174,202,230,.45));
  --unit-line: rgba(12, 76, 134, .2);
}
html[data-theme="dark"] {
  --deck-bg: linear-gradient(180deg, #0b2235 0%, #071827 48%, #030d17 100%);
  --deck-ink: #e9fbff;
  --deck-ink-soft: rgba(255, 255, 255, .45);
  --deck-edge: rgba(0, 234, 250, .32);
  --unit-bg: linear-gradient(180deg, #16344c, #0a1a29);
  --unit-line: rgba(0, 234, 250, .22);
}

/* ------------------------------------------------------------------- шапка */
.header-inner {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; flex-wrap: nowrap; min-height: var(--header-h);
  padding-top: 16px; padding-bottom: 16px;
}
.header-row { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.brand { gap: 0; }
.brand-logo {
  width: 216px; height: auto;
  filter: drop-shadow(0 3px 12px rgba(1, 22, 45, .28));
}
.brand-divider, .brand-copy { display: none; }
.main-nav { margin-left: auto; gap: 2px; }
.nav-link { padding: 9px 13px; font-size: 14px; }
.header-actions { gap: 9px; }
.header-search {
  width: 100%; max-width: none; min-width: 0; flex: none; margin: 0;
  padding: 7px 8px 7px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .38);
}
.header-search:focus-within { background: rgba(255, 255, 255, .3); }
.header-search .icon { width: 20px; height: 20px; }
.header-search input { font-size: 15px; padding: 9px 0; }
.header-search button { padding: 10px 24px; font-size: 14px; }

.radio-trigger { position: relative; }
.radio-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);   /* эфир не запущен — нейтральный */
}
.radio-dot.is-on {
  background: #ff6c81;
  box-shadow: 0 0 0 4px rgba(255, 108, 129, .22);
  animation: pulse 1.9s ease-in-out infinite;
}

/* -------------------------------------------------------------- магнитола */
.deck {
  height: var(--deck-h);
  background: var(--deck-bg);
  border-top-color: var(--deck-edge);
  border-bottom-color: var(--deck-edge);
  box-shadow: 0 12px 28px rgba(6, 47, 86, .16), inset 0 1px 0 rgba(255, 255, 255, .5);
}
html[data-theme="dark"] .deck {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.deck::before { opacity: .1; }
html[data-theme="dark"] .deck::before { opacity: .28; }
.deck::after { background: linear-gradient(90deg, transparent, var(--deck-edge), transparent); }
.db-mark { color: var(--deck-ink); text-shadow: none; }
.db-mark b { color: var(--brand-600); }
.db-model, .deck-vol-label { color: var(--deck-ink-soft); }
.deck-vol-btn { color: var(--deck-ink-soft); }
.deck-vol-btn:hover { color: var(--brand-600); }

.head-unit {
  /* Рамка «головного блока» тоньше: 5px → 3px, радиус 13 → 10. */
  flex: 1; min-width: 0; padding: 3px; border-radius: 10px;
  background: var(--unit-bg); border: 1px solid var(--unit-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 12px rgba(12, 76, 134, .14);
}
html[data-theme="dark"] .head-unit {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.4);
}

.lcd { height: 108px; padding: 7px 14px 6px; }
.lcd-main { display: flex; align-items: center; gap: 15px; flex: 1; min-height: 0; }
.lcd-transport { display: flex; align-items: center; gap: 6px; flex: none; }
.lcd-transport .deck-btn { width: 34px; height: 34px; }
.lcd-transport .deck-btn .icon { width: 15px; height: 15px; }
.lcd-transport .deck-btn-play { width: 46px; height: 46px; }
.lcd-transport .deck-btn-play .icon { width: 19px; height: 19px; }
.lcd-screen { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.lcd-marquee { flex: 1; min-width: 0; }
.lcd-clock {
  flex: none; font: 700 31px/1 var(--deck-font);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
  color: #6ffcf0; text-shadow: 0 0 9px rgba(0,234,250,.95), 0 0 22px rgba(0,234,250,.5);
}
.lcd.is-radio .lcd-clock {
  color: #ffd475; text-shadow: 0 0 9px rgba(255,180,60,.95), 0 0 22px rgba(255,150,40,.5);
}

/* ----------------------------------------------------------- панель радио */
.radio-drawer { width: min(440px, 100%); }
.radio-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; }
.rp-list { display: flex; flex-direction: column; gap: 13px; }
.rp-card {
  padding: 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(140deg, #083c6e, #0a72b8);
  box-shadow: var(--shadow);
}
.rp-rok { background: linear-gradient(140deg, #4a1638, #a12a54 60%, #d1543b); }
.rp-rom { background: linear-gradient(140deg, #124a5c, #178b8c 60%, #4ab9a0); }
.rp-head { display: flex; align-items: center; gap: 11px; }
.rp-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255,255,255,.16);
}
.rp-icon .icon { width: 21px; height: 21px; }
/* Играющая станция: эквалайзер вместо иконки + мягкое пульсирующее свечение.
   Двигаем ТОЛЬКО тень и высоту полосок внутри фиксированного блока:
   геометрия карточки не меняется, поэтому курсор не «колбасит». */
.rp-card.is-playing { animation: rp-glow 2.4s ease-in-out infinite; }
.rp-card.is-playing .rp-icon { background: rgba(255,255,255,.3); }
.rp-card.is-playing .rp-icon-radio { display: none; }
.rp-eq { display: none; align-items: flex-end; gap: 2px; height: 18px; }
.rp-card.is-playing .rp-eq { display: inline-flex; }
.rp-eq i {
  width: 3px; height: 5px; border-radius: 2px; background: #fff;
  animation: rp-eq .8s ease-in-out infinite alternate;
}
.rp-eq i:nth-child(2) { animation-delay: .24s; }
.rp-eq i:nth-child(3) { animation-delay: .48s; }
@keyframes rp-eq { from { height: 4px; opacity: .55; } to { height: 16px; opacity: 1; } }
@keyframes rp-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,.42), 0 0 14px rgba(255,255,255,.12), var(--shadow); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 30px rgba(255,255,255,.34), var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .rp-card.is-playing { animation: none; box-shadow: 0 0 0 2px rgba(255,255,255,.8), var(--shadow); }
  .rp-eq i { animation: none; height: 10px; }
}
.rp-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-title b { font-size: 15px; font-weight: 750; }
.rp-title small { font-size: 11px; color: rgba(255,255,255,.72); }
/* Статус станции теперь ОПРЕДЕЛЯЕТСЯ данными, а не статичным CSS:
   «НЕТ ДАННЫХ» — нет свежей строки nowplayed (<15 мин), нейтральный LIVE —
   станция в эфире, красный пульсирующий «ИГРАЕТ» — она звучит у слушателя. */
.rp-live {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.2);
  color: rgba(255,255,255,.86);
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
}
/* Зелёная точка = в эфире и есть свежая строка nowplayed. «НЕТ ДАННЫХ»
   остаётся серой, «ИГРАЕТ» (звук реально идёт) — красным. */
.rp-live i { width: 6px; height: 6px; border-radius: 50%; background: #46d68a;
             box-shadow: 0 0 0 3px rgba(70,214,138,.18); }
.rp-live.is-stale { color: rgba(255,255,255,.62); }
.rp-live.is-stale i { background: rgba(255,255,255,.35); box-shadow: none; }
.rp-live.is-playing { background: #fff; color: #0a3a5e; }
.rp-live.is-playing i {
  background: #ff4d67; box-shadow: 0 0 0 3px rgba(255,77,103,.2);
  animation: pulse 1.7s infinite;
}
.rp-live-stale, .rp-live-playing { display: none; }
.rp-live.is-stale .rp-live-idle { display: none; }
.rp-live.is-stale .rp-live-stale { display: inline; }
.rp-live.is-playing .rp-live-idle,
.rp-live.is-playing .rp-live-stale { display: none; }
.rp-live.is-playing .rp-live-playing { display: inline; }
.rp-now {
  display: flex; flex-direction: column; gap: 3px;
  margin: 14px 0 12px; padding: 12px 13px; border-radius: 11px;
  background: rgba(0,0,0,.22);
}
.rp-label { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; color: rgba(255,255,255,.6); }
.rp-now b { font-size: 14px; font-weight: 700; line-height: 1.35; }

/* Ховер БЕЗ задержки и БЕЗ сдвига. Последние источники «запаздывания»:
   дорогой box-shadow + backdrop-filter у оверлея + непрерывная анимация
   свечения карточки под курсором. Оставляем только дешёвый outline:
   он рисуется сразу, геометрия и фон не меняются. */
.rp-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; background: #fff; color: #0a3a5e;
  font-weight: 750; font-size: 13px;
  transition: none;   /* явно: никакой задержки отклика на наведение */
}
.rp-play .icon { width: 15px; height: 15px; }
/* .is-hover дублирует :hover, пока курсор стоит на заменённом узле. */
.rp-play:hover, .rp-play:focus-visible, .rp-play.is-hover {
  outline: 2px solid rgba(10,58,94,.75); outline-offset: -2px;
}
.rp-play.is-active { background: rgba(255,255,255,.18); color: #fff; }
.rp-play.is-active:hover, .rp-play.is-active:focus-visible, .rp-play.is-active.is-hover {
  outline-color: rgba(255,255,255,.9);
}
/* Свечение играющей карточки не должно перерисовываться под курсором. */
.rp-card.is-playing:hover { animation-play-state: paused; }
.rp-play .rp-icon-stop, .rp-play .rp-stop-label { display: none; }
.rp-play.is-active .rp-icon-play, .rp-play.is-active .rp-play-label { display: none; }
.rp-play.is-active .rp-icon-stop { display: inline-block; }
.rp-play.is-active .rp-stop-label { display: inline; }

.rp-history { margin-top: 13px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 10px; }
.rp-history summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.88);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.rp-history summary::-webkit-details-marker { display: none; }
.rp-history summary::before { content: "▸"; font-size: 11px; }
.rp-history[open] summary::before { content: "▾"; }
.rp-history summary span {
  min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(255,255,255,.2); font-size: 10px;
}
.rp-history ol { margin: 9px 0 0; padding: 0; list-style: none; max-height: 230px; overflow-y: auto; }
.rp-history li {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px;
}
.rp-history li span { flex: 1; min-width: 0; }
.rp-history li time { flex: none; font-size: 10.5px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.rp-history p { margin: 9px 0 2px; font-size: 12px; color: rgba(255,255,255,.68); }

/* Полосы «Сейчас играет» над списком больше НЕТ (решение Rus 08.11):
   станция видна в триггере шапки и на карточке, «Стоп» — в кнопке карточки. */

/* ------------------------------------------------------------- адаптив */
@media (min-width: 1081px) {
  .header-inner { flex-wrap: nowrap; }
  .header-search { min-width: 0; max-width: none; flex-basis: auto; margin: 0; }
}
@media (max-width: 1080px) {
  .header-inner { min-height: 0; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .brand-logo { width: 172px; }
  .main-nav { margin-left: 0; }
  .deck-brand, .deck-vol-label, .lcd-volume { display: none; }
  .deck-knob { width: auto; }
  .deck-inner { gap: 12px; }
  .lcd-clock { font-size: 25px; }
}
@media (max-width: 760px) {
  :root { --deck-h: auto; --header-h: auto; }
  .brand-logo { width: 152px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; }
  .nav-link { padding: 7px 8px; font-size: 12.5px; }
  .playlist-trigger span:not(.badge) { display: none; }
  .header-search { padding-left: 14px; }
  .header-search input { font-size: 14px; }
  .deck { height: auto; padding: 10px 0; }
  .deck-inner { flex-wrap: wrap; gap: 9px; justify-content: center; }
  .head-unit { order: 1; flex: 1 1 100%; width: 100%; }
  .deck-buttons { order: 2; flex: 1; justify-content: center; }
  .deck-knob { order: 3; }
  .lcd { height: 96px; padding: 6px 9px; }
  .lcd-main { gap: 8px; }
  .lcd-transport { gap: 3px; }
  .lcd-transport .deck-btn { width: 29px; height: 29px; }
  .lcd-transport .deck-btn-play { width: 38px; height: 38px; }
  .lcd-screen { gap: 8px; }
  .lcd-clock { font-size: 19px; }
  .lcd-track-text { font-size: 12px; }
  .radio-drawer, .info-drawer { bottom: 0; }
}

/* ==========================================================================
   ЧЕТВЁРТАЯ ИТЕРАЦИЯ (07.11): поиск справа от лого, тёмная панель в светлой
   теме, компактный LCD. Все правила ниже перекрывают предыдущие итерации.
   ========================================================================== */

:root {
  --header-h: 140px;
  --deck-h: 96px;
  /* Светлая тема: панель «приёмника» заметно темнее страницы. */
  --deck-bg: linear-gradient(180deg, #335f86 0%, #1e4265 48%, #102a46 100%);
  --deck-ink: #eaf7ff;
  --deck-ink-soft: rgba(255, 255, 255, .62);
  --deck-edge: rgba(120, 205, 235, .38);
  --unit-bg: linear-gradient(180deg, rgba(255,255,255,.28), rgba(120,170,210,.12));
  --unit-line: rgba(190, 230, 250, .35);
}
html[data-theme="light"] .db-mark b { color: #7ceaff; }
html[data-theme="light"] .head-unit {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 14px rgba(2,18,38,.38);
}

/* ------------------------------------------------------------------- шапка */
.header-inner {
  display: block; min-height: var(--header-h);
  padding: 14px 0; gap: 0;
}
.header-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap; width: 100%;
}
.brand { order: 1; flex: none; }
.brand-logo { width: 216px; }
.header-search {
  order: 2; flex: 1 1 240px; min-width: 190px; max-width: none;
  margin: 0; padding: 6px 7px 6px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .38);
}
.header-search:focus-within { background: rgba(255, 255, 255, .3); }
.header-search .icon { width: 18px; height: 18px; }
.header-search input { font-size: 14px; padding: 8px 0; }
.header-search button { padding: 8px 17px; font-size: 13px; }
.main-nav { order: 3; margin-left: 0; flex: none; }
.header-actions { order: 4; flex: none; }

/* На узких десктопах убираем подписи у кнопок, но поиск остаётся у лого. */
@media (min-width: 1081px) and (max-width: 1240px) {
  .brand-logo { width: 180px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .playlist-trigger { padding: 9px 11px; }
  .playlist-trigger span:not(.badge) { display: none; }
}
@media (min-width: 1081px) {
  .header-inner { flex-wrap: nowrap; }
  .header-search { min-width: 190px; flex-basis: 240px; }
}

/* -------------------------------------------------------------- магнитола */
/* LCD: кнопки занимают левую колонку на всю высоту, а все три строки
   (источник / бегущая / время) начинаются в одной точке — правее кнопок. */
.lcd {
  height: 74px; padding: 6px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 14px; row-gap: 0;
  align-items: center; align-content: center; justify-content: stretch;
}
.lcd-main { display: contents; }
.lcd-transport { grid-column: 1; grid-row: 1 / 4; align-self: center; }
.lcd-top { grid-column: 2; grid-row: 1; }
.lcd-screen { grid-column: 2; grid-row: 2; }
.lcd-bottom { grid-column: 2; grid-row: 3; }
.lcd-clock { font-size: 29px; }

/* «Стоп» у радио — янтарная кнопка вместо неоновой паузы. */
.deck-btn-play.is-stop {
  color: #33210a;
  background: radial-gradient(circle at 35% 25%, #fff0c4, #ffbe4d 58%, #c8791c 100%);
  border-color: #ffd475;
  box-shadow: 0 0 20px rgba(255,180,60,.65), inset 0 2px 7px rgba(255,255,255,.6), 0 0 0 2px rgba(0,0,0,.22);
  animation: none;
}
.deck-btn-play.is-stop.is-playing { animation: none; }
.deck-btn:disabled { opacity: .28; cursor: not-allowed; filter: saturate(.4); }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1080px) {
  :root { --header-h: auto; }
  .header-inner { min-height: 0; padding: 14px 0; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .brand-logo { width: 172px; }
  .header-search { order: 2; flex: 1 1 260px; min-width: 200px; margin: 0; }
  .main-nav { order: 3; width: auto; margin-left: 0; }
  .header-actions { order: 4; margin-left: auto; }
  .lcd { height: 70px; column-gap: 10px; }
  .lcd-clock { font-size: 25px; }
}
@media (max-width: 760px) {
  :root { --deck-h: auto; --header-h: auto; }
  .brand-logo { width: 112px; }
  .header-search {
    order: 2; flex: 1 1 140px; min-width: 0;
    padding-left: 12px;
  }
  .header-search input { font-size: 13px; }
  .header-search button { padding: 8px 11px; font-size: 12px; }
  .header-actions { order: 3; margin-left: 0; }
  .main-nav { order: 4; width: 100%; justify-content: space-between; }
  .lcd { height: auto; min-height: 78px; column-gap: 8px; padding: 6px 9px; }
  .lcd-clock { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   Иконки основной кнопки: play / pause / stop.
   x-show на <svg> в этой сборке Alpine нестабилен при смене состояния, поэтому
   видимость задаётся CSS по :class кнопки (is-playing / is-stop), который
   обновляется всегда. Радио = is-playing + is-stop -> квадрат «стоп».
   -------------------------------------------------------------------------- */
.deck-btn-play > .icon { display: none; }
.deck-btn-play > .icon.deck-icon-play { display: inline-block; }
.deck-btn-play.is-playing > .icon.deck-icon-play { display: none; }
.deck-btn-play.is-playing:not(.is-stop) > .icon.deck-icon-pause { display: inline-block; }
.deck-btn-play.is-stop > .icon.deck-icon-stop { display: inline-block; }

/* ==========================================================================
   ПЯТАЯ ИТЕРАЦИЯ (07.11): две строки шапки СПРАВА от логотипа.
   Логотип — левая колонка на обе строки. Правая колонка (.header-stack):
   1-я строка — навигация + кнопки, 2-я строка — поиск на всю ширину.
   Правила ниже перекрывают все предыдущие итерации шапки.
   ========================================================================== */
.header-inner {
  display: flex; flex-direction: row; align-items: center;
  gap: 22px; flex-wrap: nowrap;
  min-height: var(--header-h); padding: 14px 0;
}
.brand { flex: none; align-self: center; order: 0; }
.brand-logo { width: 216px; }

.header-stack {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.header-row-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: nowrap; width: 100%;
}
.header-row-bottom { display: flex; align-items: center; gap: 12px; width: 100%; }
.main-nav {
  order: 0; margin-left: 0; flex: none; width: auto;
  justify-content: flex-start;
}
.header-actions { order: 0; margin-left: auto; flex: none; }
.header-search {
  order: 0; flex: 1 1 auto; width: 100%; min-width: 0; max-width: none;
  margin: 0; padding: 7px 8px 7px 18px; border-radius: 13px;
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .38);
}
.header-search:focus-within { background: rgba(255, 255, 255, .3); }
.header-search .icon { width: 19px; height: 19px; }
.header-search input { font-size: 14.5px; padding: 8px 0; }
.header-search button { padding: 9px 22px; font-size: 13.5px; }

/* Узкий десктоп: подписи кнопок убираем, обе строки остаются справа от лого. */
@media (min-width: 1081px) and (max-width: 1240px) {
  .brand-logo { width: 186px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .playlist-trigger { padding: 9px 11px; }
  .playlist-trigger span:not(.badge) { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: auto; }
  .header-inner { gap: 16px; padding: 12px 0; min-height: 0; }
  .brand-logo { width: 172px; }
  .header-stack { gap: 8px; }
  .header-row-top { gap: 8px; flex-wrap: nowrap; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .playlist-trigger { padding: 9px 11px; }
  .header-search { min-width: 0; max-width: none; width: 100%; margin: 0; }
  .main-nav { width: auto; margin-left: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: auto; }
  .header-inner { gap: 12px; padding: 11px 0; align-items: center; }
  .brand-logo { width: 112px; }
  .header-stack { gap: 7px; }
  .header-row-top { flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .main-nav { order: 0; flex: 1 1 auto; width: auto; justify-content: space-between; gap: 2px; }
  .nav-link { padding: 6px 6px; font-size: 11.5px; }
  .header-actions { order: 0; margin-left: 0; gap: 6px; }
  .playlist-trigger { padding: 8px; }
  .playlist-trigger span:not(.badge), .radio-dot { display: none; }
  .header-search {
    min-width: 0; max-width: none; width: 100%; margin: 0;
    padding: 6px 6px 6px 12px;
  }
  .header-search input { font-size: 13px; padding: 7px 0; }
  .header-search button { padding: 8px 11px; font-size: 12px; }
  /* Сетка чарта не должна распирать страницу: 1fr с auto-минимумом
     растягивался до min-content строки (538 px) и давал scrollWidth 552. */
  .chart { grid-template-columns: minmax(0, 1fr); }
  .chart-row { min-width: 0; }
}

/* ==========================================================================
   ШЕСТАЯ ИТЕРАЦИЯ (07.11): сердечки-лайки и одна кнопка «+ / −» плейлиста.
   Иконки переключаются CSS по :class (не x-show на <svg> — он нестабилен).
   СЕДЬМАЯ ИТЕРАЦИЯ: личные звёзды убраны ПОЛНОСТЬЮ — оценка едина везде
   (сердечко + общий серверный балл чарта); стили индикации проигрывания
   ниже в этом же блоке.
   ========================================================================== */

/* --- ДЕВЯТАЯ ИТЕРАЦИЯ (08.11): ОДНО сердечко на обложке с БАЛЛОМ чарта ---
   Нижний блок «социалки» (сердечко + голоса + «N бал.») убран полностью.
   Цифра у сердечка снова = rate = FLOOR((played+loaded+listed*2)/5)+vote,
   как intval($rate) на старом сайте; по этому же числу отсортирован чарт.
   Голоса songs.vote остаются на сервере и видны в title-подсказке. */
.tc-like {
  --like-shift: -12px;
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 28px; height: 28px; padding: 0 9px 0 7px; border-radius: 999px;
  background: var(--cover-btn-bg); border: 0;
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  /* Сердечко выезжает СВЕРХУ при наведении на карточку и УЕЗЖАЕТ обратно,
   когда курсор ушёл — даже если трек лайкнут (Rus 09.11). */
  transform: translateY(var(--like-shift));
  transition: transform .24s cubic-bezier(.22,.61,.36,1), opacity .24s ease,
              background .18s ease, color .18s ease;
}
/* После клика-лайка фокус остаётся на кнопке, но :focus-visible не
   срабатывает для мыши — сердце уезжает наверх при уходе курсора,
   в т.ч. у лайкнутого трека. С клавиатуры кнопка видна по Tab. */
.track-card:hover .tc-like,
.track-card.is-menu-open .tc-like,
.tc-like:focus-visible {
  --like-shift: 0px; opacity: 1; pointer-events: auto;
}
/* ?v=40: в покое ПОЧТИ ЧЁРНАЯ подложка, при наведении заметно светлее —
   на тёмной обложке старый .62 → .85 был неразличим. Обводки нет. */
.tc-like:hover, .tc-like:focus-visible { background: var(--cover-btn-bg-hover); }
.tc-like .icon { width: 15px; height: 15px; }
/* Лайк = просто БЕЛОЕ залитое сердечко. Никаких красных заливок,
   розовых рамок и розового текста — подложка остаётся нейтральной. */
.tc-like .tc-like-on { display: none; color: #fff; }
.tc-like.is-liked .tc-like-off { display: none; }
.tc-like.is-liked .tc-like-on { display: inline-block; }
.tc-like-count { font-variant-numeric: tabular-nums; font-size: 12px; }

/* ?v=39 — «...» переехала на обложку ПОД сердечком: тот же тёмный кружок,
   тот же выезд сверху при наведении и тот же показ по :focus-visible.
   Кнопка НЕ наследует .tc-add (квадрат в светлой теме) — свой класс .tc-more.
   Движется ТОЛЬКО абсолютный ребёнок, сама карточка недвижима. */
.tc-more {
  --like-shift: -12px;
  position: absolute; top: 46px; right: 10px; z-index: 3;
  width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  /* ?v=40: та же подложка, что у сердечка, и БЕЗ обводки. */
  background: var(--cover-btn-bg); border: 0;
  color: #fff; backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transform: translateY(var(--like-shift));
  transition: transform .24s cubic-bezier(.22,.61,.36,1), opacity .24s ease,
              background .18s ease, color .18s ease;
}
.track-card:hover .tc-more,
.track-card.is-menu-open .tc-more,
.tc-more:focus-visible {
  --like-shift: 0px; opacity: 1; pointer-events: auto;
}
.tc-more:hover, .tc-more:focus-visible { background: var(--cover-btn-bg-hover); }
/* Специфичность выше общего .more-btn .icon (16px): точки крупнее. */
.tc-art .tc-more .icon { width: 18px; height: 18px; }

/* --- СЕДЬМАЯ ИТЕРАЦИЯ: видно, КАКОЙ трек сейчас играет ------------------
   Личные звёзды убраны полностью: везде один механизм — сердечко с общим
   серверным баллом. Иконки play/pause переключает ТОЛЬКО CSS по :class
   кнопки (x-show на <svg> в этой сборке Alpine нестабилен).               */
.tc-play > .icon,
.cr-play > .icon,
.hf-play > .icon { display: none; }
.tc-play > .tc-icon-play,
.cr-play > .cr-icon-play,
.hf-play > .hf-icon-play { display: inline-block; }
.tc-play.is-playing > .tc-icon-play,
.cr-play.is-playing > .cr-icon-play,
.hf-play.is-playing > .hf-icon-play { display: none; }
.tc-play.is-playing > .tc-icon-pause,
.cr-play.is-playing > .cr-icon-pause,
.hf-play.is-playing > .hf-icon-pause { display: inline-block; }
/* ЕДИНЫЙ размер треугольника Play во всех кружках (и на оверлее чарта):
   сам символ #i-play тоже стал крупнее — 12.5×15 в viewBox 24.
   margin-left компенсирует оптическую «левость» треугольника. */
.tc-play .icon, .fc-play .icon, .ac-play .icon, .cr-play .icon {
  width: 22px; height: 22px; margin-left: 2px;
}
/* Сенсорный экран: ховера нет, поэтому кружок, сердечко и «...» карточки
   должны быть видны сразу — иначе до них просто нельзя дотронуться.
   Плавный выезд остаётся только там, где есть настоящий курсор. */
@media (hover: none) {
  .tc-play { --play-shift: 0px; opacity: 1; pointer-events: auto; }
  .tc-like { --like-shift: 0px; opacity: 1; pointer-events: auto; }
  .tc-more { --like-shift: 0px; opacity: 1; pointer-events: auto; }
}

/* Текущий трек виден и БЕЗ наведения: кнопка в чарте не гаснет.
   У ВЕРТИКАЛЬНЫХ карточек (трек/артист) наоборот — Play уезжает всегда;
   папки и чарт по просьбе Rus пока не трогаем. */
.cr-play.is-current { opacity: 1; }
.track-card.is-playing {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(38, 124, 246, .18), var(--shadow);
}
.chart-row.is-playing { border-color: var(--brand-600); background: var(--blue-100); }
.chart-row.is-playing .cr-rank { color: var(--brand-700, var(--brand-600)); }
.tc-play.is-playing, .cr-play.is-playing { background: var(--brand-600); color: #fff; }
.hf-play.is-playing { background: var(--brand-600); color: #fff; }

/* Эквалайзер — ЕДИНЫЙ индикатор звучащего на ВЕРТИКАЛЬНЫХ карточках
   (Rus 09.11). Кружок Play уезжает при уходе курсора даже у играющего,
   поэтому вместо него остаётся только спектр; синяя обводка карточки
   сохранена по отдельной просьбе. Один и тот же набор полос у трека и
   у артиста — разные только координаты. */
.tc-now, .ac-eq {
  position: absolute; z-index: 3;
  display: none; align-items: flex-end; gap: 2px;
  height: 18px; padding: 4px 7px; border-radius: 7px;
  background: rgba(5, 25, 48, .72); backdrop-filter: blur(5px);
}
.tc-now.is-on, .ac-eq.is-on { display: inline-flex; }
.tc-now i, .ac-eq i {
  width: 3px; height: 4px; border-radius: 2px; background: var(--cyan);
  animation: tc-eq .85s ease-in-out infinite alternate;
}
.tc-now i:nth-child(2), .ac-eq i:nth-child(2) { animation-delay: .28s; }
.tc-now i:nth-child(3), .ac-eq i:nth-child(3) { animation-delay: .56s; }
@keyframes tc-eq { from { height: 3px; opacity: .55; } to { height: 11px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tc-now i, .ac-eq i { animation: none; height: 8px; }
}
/* ТРЕК: пока кружок Play выехал, спектр над ним (10 + 38 + 8 = 56).
   Скрылся — ОПУСКАЕТСЯ НА ЕГО МЕСТО (bottom: 10) с той же плавностью. */
.tc-now {
  left: 10px; bottom: 10px;
  transition: bottom .22s cubic-bezier(.22,.61,.36,1);
}
.track-card:hover .tc-now { bottom: 56px; }
/* С клавиатуры кнопка видна по :focus-visible — держим спектр над ней.
   :has() — только необязательное улучшение, без него всё работает. */
.track-card:has(.tc-play:focus-visible) .tc-now { bottom: 56px; }
/* Тач: кружок Play не уезжает → спектр всё время над ним. */
@media (hover: none) { .tc-now { bottom: 56px; } }
/* АРТИСТ: левый верхний угол карточки, справа остаётся бейдж «+N». */
.ac-eq { left: 10px; top: 10px; }
/* СВЕТЛАЯ тема: тёмная пилюля на белой карточке читалась как «пятно»
   (Rus 09.11). Подложка — в тон карточки, полосы — синим акцентом: циан
   #00eafa на светлом почти не виден. У треков .tc-now тёмная пилюля
   ОСТАЁТСЯ: она лежит поверх обложки и там нужна для контраста. */
html[data-theme="light"] .ac-eq {
  background: var(--blue-100);
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 8px rgba(12, 76, 134, .08);
  backdrop-filter: none;
}
html[data-theme="light"] .ac-eq i { background: var(--brand-600); }

/* --- одна кнопка плейлиста: «+» либо «−» -------------------------------- */
.tc-toggle > .icon { display: none; }
.tc-toggle > .tc-icon-add { display: inline-block; }
.tc-toggle.is-added > .tc-icon-add { display: none; }
.tc-toggle.is-added > .tc-icon-del { display: inline-block; }
.tc-toggle.is-added {
  background: var(--brand-600); color: #fff; border-color: var(--brand-600);
  box-shadow: 0 3px 10px rgba(38, 124, 246, .25);
}
.tc-toggle.is-added:hover { background: #d64262; border-color: #d64262; color: #fff; }

/* --- лайк в строке чарта ------------------------------------------------- */
.cr-like {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-soft); font-size: 11.5px; line-height: 1;
  transition: background .18s ease, color .18s ease;
}
.cr-like:hover { background: var(--blue-100); }
.cr-like .icon { width: 13px; height: 13px; }
/* В чарте подложка светлая, поэтому под белое залитое сердечко кладём
   нейтральную тёмную пилюлю — красного в состоянии лайка нет нигде. */
.cr-like .cr-like-on { display: none; color: #fff; }
.cr-like.is-liked .cr-like-off { display: none; }
.cr-like.is-liked .cr-like-on { display: inline-block; }
.cr-like.is-liked { color: #fff; background: var(--brand-800); border-color: var(--brand-800); }
.cr-like.is-liked:hover { background: var(--brand-700); }
.cr-like-count { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .chart-row { gap: 8px; padding: 8px 9px; }
  /* Время НЕ скрываем: справа теперь всего время → сердце → три точки,
     и на 320px строка всё ещё влезает (cr-text сжимается, min-width:0). */
  .cr-like { padding: 3px 5px; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ==========================================================================
   ?v=28 — живая громкость, кнопка YouTube и минимальная ширина 320 px.
   ========================================================================== */

/* Ниже 320 px вёрстка не разваливается: страница просто получает
   горизонтальную прокрутку. Старый PHP-сайт держал min-width: 799px,
   здесь достаточно телефонного минимума. */
html { min-width: 320px; }
body { min-width: 320px; }

/* Три кнопки в подвале карточки (+ / видео / три точки) не влезают в узкую
   карточку рядом со счётчиком прослушиваний — разрешаем перенос строки. */
.tc-foot { flex-wrap: wrap; row-gap: 8px; }

/* .yt старого сайта: активная кнопка (images/yt.gif) и серая
   «Видео недоступно» (ytg.gif) для ytrusted <= 1.
   Яркий --brand-600 оставили ТОЛЬКО на hover: в покое кнопки видео
   выглядели как постоянно наведённые и оттягивали внимание на себя.
   В покое — приглушённый --brand-700, при наведении/фокусе — яркий. */
.yt-btn { flex: none; }
.yt-btn .icon { width: 16px; height: 16px; }
.yt-btn.is-on {
  color: #fff; background: var(--brand-700); border-color: var(--brand-700);
}
.yt-btn.is-on:hover,
.yt-btn.is-on:focus-visible {
  color: #fff; background: var(--brand-600); border-color: var(--brand-600);
}
.yt-btn.is-off {
  color: var(--line-2); background: var(--surface-2); cursor: default;
}
.yt-btn.is-off:hover { color: var(--line-2); background: var(--surface-2); }

/* Попап YouTube: аналог grtyoutube-popup, но без jQuery и без вставки DOM.
   z-index выше боковых панелей (90) и тоста (100). */
.video-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 16px;
  background: rgba(3, 14, 28, .86);
}
.video-modal-card {
  width: min(850px, 100%); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.video-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px 9px 18px; background: var(--brand-900); color: #fff;
}
.video-modal-head strong {
  min-width: 0; font-size: 13.5px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-modal-head .icon-btn { color: #fff; flex: none; }
.video-modal-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; flex: none; }
.video-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 760px) {
  .video-modal { padding: 8px; }
  .video-modal-card { max-height: calc(100vh - 16px); }
  .video-modal-head { padding: 8px 8px 8px 12px; }
}

/* На телефонном минимуме снимаем всё, что распирало бы 320 px. */
@media (max-width: 400px) {
  .container { width: calc(100% - 24px); }
  .footer-inner { gap: 14px; }
  .footer-brand { min-width: 0; flex-wrap: wrap; }
  .footer-brand img { width: 64px; }
  .track-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .artist-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .chart-row { gap: 6px; padding: 8px; }
  /* Серая иконка «Видео недоступно» осталась только на вертикальных
     карточках; в тесной карточке на 320 px её скрываем. */
  .yt-btn.is-off { display: none; }
}

/* ==========================================================================
   ?v=30 — ссылка на один трек, чистая консоль (iframe и Alpine).
   ========================================================================== */

/* Страница /?t=<id>: на ней РОВНО ОДНА карточка, без пустых колонок сетки.
   ?v=31: карточку и кнопки под ней выравниваем по ЦЕНТРУ страницы. */
.track-grid.is-single { grid-template-columns: minmax(0, 260px); justify-content: center; }
@media (max-width: 400px) {
  .track-grid.is-single { grid-template-columns: minmax(0, 100%); }
  .chart-row .more-btn { width: 26px; height: 26px; }
}

/* ==========================================================================
   ?v=31 — меню «три точки», страница ссылки на трек.
   ========================================================================== */

/* Три точки: в строке чарта .cr-add, на обложке вертикальной карточки
   ?v=39 — отдельная круглая .tc-more (свои размер и фон). */
.more-btn { flex: none; }
.more-btn .icon { width: 16px; height: 16px; }
.more-btn[aria-expanded="true"] {
  background: var(--brand-600); color: #fff; border-color: var(--brand-600);
}
/* ?v=40: на обложке своя палитра (тёмный покой / светлый ховер), синяя
   заливка старого правила сюда не подходит. Специфичность выше, чем у
   .more-btn[aria-expanded], поэтому порядок правил не важен. */
.tc-art .tc-more[aria-expanded="true"] {
  background: var(--cover-btn-bg-hover); color: #fff; border: 0;
}

/* Меню ОДНО на страницу и живёт вне #main: position:fixed не обрезается
   overflow:hidden карточки и не исчезает при HTMX-подмене #main.
   z-index выше drawer (90) и тоста (100), ниже попапа видео (120). */
.track-menu {
  position: fixed; z-index: 115; width: 210px;
  /* Пять пунктов у строки чарта: 230 px хватает на самый нижний. */
  max-height: min(230px, calc(100vh - 16px)); overflow-y: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
/* Раскрытие вверх: top указывает на верх кнопки, сдвигаем на всю высоту. */
.track-menu.is-up { transform: translateY(-100%); }
.tm-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 8px; text-align: left;
  color: var(--text); font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.tm-item:hover, .tm-item:focus-visible {
  background: var(--blue-100); color: var(--brand-800);
}
.tm-item .icon { width: 16px; height: 16px; flex: none; color: var(--text-soft); }
.tm-item:hover .icon, .tm-item:focus-visible .icon { color: var(--brand-700); }
/* В тёмной теме --blue-100 (#172e4b), --brand-800 (#0c4c86) и --brand-700
   (#0d5da3) — ВСЕ тёмно-синие: на ховере пункт становился нечитаемым.
   Светлая тема выше не переопределяется, здесь только контрастный ховер. */
html[data-theme="dark"] .tm-item:hover,
html[data-theme="dark"] .tm-item:focus-visible {
  background: var(--surface-3); color: #fff;
}
html[data-theme="dark"] .tm-item:hover .icon,
html[data-theme="dark"] .tm-item:focus-visible .icon {
  color: var(--brand-600);
}

/* Кнопки под единственной карточкой: flex 1 1 0 даёт РАВНУЮ ширину и при
   одном, и при двух пунктах. white-space снимаем, чтобы длинная подпись
   «Папка с этим треком» не распирала узкий экран 320px. */
.track-page-actions {
  display: flex; gap: 10px; max-width: 420px; margin: 0 auto;
}
.track-page-actions .btn {
  flex: 1 1 0; min-width: 0; white-space: normal; text-align: center;
}
@media (max-width: 400px) {
  .track-page-actions { gap: 8px; }
  .track-page-actions .btn { padding: 10px 8px; font-size: 12.5px; }
}

/* ==========================================================================
   ?v=33 — кнопка «Информация» и выездная панель сведений о треке.
   Аналог вкладки #sidebar .blok.tab02 старого сайта (ajax_get_sidebar_info):
   обложка, «Трек / Исполнитель / Альбом», длительность, битрейт, год,
   размер, дата добавления — плюс счётчики mymusic.
   ========================================================================== */

/* Четвёртая кнопка в подвале вертикальной карточки. Та же геометрия, что у
   «+», видео и трёх точек; перенос .tc-foot уже разрешён с ?v=28. */
.info-btn .icon { width: 16px; height: 16px; }

.info-drawer { width: min(410px, 100%); }
.info-body { flex: 1; overflow-y: auto; padding: 0 22px 22px; }
.info-content { min-height: 1px; }

.ti-state {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 44px 12px; text-align: center; font-size: 13px; color: var(--muted);
}
.ti-state .icon { width: 30px; height: 30px; color: var(--brand-600); opacity: .7; }
.ti-state p { margin: 0; }
.ti-state.is-error p { color: var(--text); }
.ti-state small { max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.ti-state .btn { margin-top: 4px; padding: 8px 16px; font-size: 12.5px; }

.ti-hero {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 4px 0 18px; border-bottom: 1px solid var(--line);
}
.ti-cover {
  width: 104px; height: 104px; flex: none; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line);
}
.ti-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ti-ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h,210) 82% 64%),
              hsl(calc(var(--h,210) + 48) 76% 44%));
}
.ti-ph .icon { width: 34px; height: 34px; opacity: .9; }
.ti-heading { min-width: 0; padding-top: 2px; }
.ti-heading h3 {
  font-size: 16px; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere;
}
.ti-heading p { margin-top: 4px; font-size: 13px; color: var(--text-soft); overflow-wrap: anywhere; }
.ti-heading .ti-album { font-size: 12px; color: var(--muted); }

.ti-list { margin: 0; padding: 12px 0 4px; }
.ti-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.ti-row dt { flex: none; color: var(--muted); }
.ti-row dd {
  margin: 0; text-align: right; min-width: 0; font-weight: 650; color: var(--text);
  overflow-wrap: anywhere;
}
.ti-row dd a { color: var(--brand-600); }
.ti-row dd a:hover { text-decoration: underline; }

.ti-sub {
  margin: 18px 0 10px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.ti-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ti-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.ti-stat b { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text); }
.ti-stat small { font-size: 10.5px; color: var(--muted); }

.ti-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ti-btn { flex: 1 1 auto; padding: 9px 12px; font-size: 12.5px; white-space: normal; }
.ti-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 16px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.ti-foot a { color: var(--brand-600); }
.ti-foot a:hover { text-decoration: underline; }

@media (max-width: 400px) {
  .info-body { padding: 0 14px 18px; }
  .ti-cover { width: 84px; height: 84px; }
  .ti-heading h3 { font-size: 15px; }
}

/* ==========================================================================
   ?v=35 — админка только у главного админа, а правка каталога целиком
   переехала в панель «Информация»: «Действия» старого functions.php.
   Карандаш на карточке и пункт «Править в админке» удалены.
   ========================================================================== */
.admin-bar {
  background: var(--brand-950); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
}
.admin-bar-inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  min-height: 34px; padding-top: 4px; padding-bottom: 4px;
}
.admin-bar-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan-soft); font-weight: 700; }
.admin-bar-tag .icon { width: 14px; height: 14px; }
.admin-bar-user { color: rgba(255, 255, 255, .66); }
.admin-bar a { color: #fff; text-decoration: none; font-weight: 650; }
.admin-bar a:hover, .admin-bar-logout button:hover { color: var(--cyan-soft); text-decoration: underline; }
.admin-bar-logout { margin-left: auto; }
.admin-bar-logout button {
  padding: 0; border: 0; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .8); font: inherit; font-weight: 650;
}
.admin-bar .container { padding-left: 18px; padding-right: 18px; }

/* «Добавлен»/«Линки»/«Статистика» видны только персоналу. */
.ti-ids {
  display: inline-block; max-width: 190px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
  font-weight: 400; color: var(--muted);
}
.ti-details { margin-top: 16px; }
.ti-details > summary {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  cursor: pointer; list-style: none; user-select: none;
}
.ti-details > summary::-webkit-details-marker { display: none; }
.ti-details > summary::before {
  content: '▸'; display: inline-block; width: 14px; color: var(--brand-600);
}
.ti-details[open] > summary::before { content: '▾'; }
.ti-details > summary:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.ti-sub-sm { font-size: 11px; }

.ti-admin {
  margin-top: 22px; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-2);
}
.ti-admin > .ti-sub:first-child { margin-top: 0; }
.ti-checks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.ti-check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  cursor: pointer;
}
.ti-check input { width: 16px; height: 16px; accent-color: var(--brand-600); cursor: pointer; }
.ti-main-only {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.ti-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-mini {
  min-width: 34px; padding: 5px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--text);
  font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.ti-mini:hover { border-color: var(--brand-600); color: var(--brand-600); }
.ti-mini:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.ti-mini.is-wide { flex: 1 1 auto; }
.ti-mini.is-danger { color: #b42318; border-color: #f0b4ad; }
.ti-mini.is-danger:hover { color: #fff; background: #b42318; border-color: #b42318; }
html[data-theme="dark"] .ti-mini.is-danger { color: #ffb4a9; border-color: #7a3029; }
html[data-theme="dark"] .ti-mini.is-danger:hover { color: #fff; background: #b42318; }

.ti-inline { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ti-inline > span { flex: none; color: var(--muted); }
.ti-inline input {
  min-width: 0; width: 100%; padding: 5px 8px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 12px;
}
.ti-inline input:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.ti-inline-sm { max-width: 110px; }
.ti-move { display: flex; flex-direction: column; gap: 8px; }
.ti-note { margin: 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.ti-yt { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.ti-yt .ti-mini { align-self: end; }
.ti-yt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.ti-yt-row > span { margin-right: 4px; color: var(--muted); }

@media (max-width: 600px) {
  .admin-bar-tag > span, .admin-bar-user { display: none; }
  .admin-bar-inner { gap: 12px; }
}
@media (max-width: 400px) {
  .ti-admin { padding: 10px; }
  .ti-ids { max-width: 120px; }
}

/* ==========================================================================
   ?v=36 — «Информация» для ПАПОК: та же выездная панель, что у трека.
   Кнопка на карточке папки — обычный flex-сосед ссылки, а не абсолютный
   слой: она не перекрывает круг Play на обложке и бейдж новых треков.
   ========================================================================== */
.fc-info, .ac-info {
  z-index: 1; flex: none;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.fc-info { position: relative; }
.ac-info { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; }
.fc-info .icon, .ac-info .icon { width: 16px; height: 16px; }
.fc-info:hover, .ac-info:hover {
  color: #fff; background: var(--brand-600); border-color: var(--brand-600);
}
.fc-info:focus-visible, .ac-info:focus-visible {
  outline: 2px solid var(--brand-600); outline-offset: 2px;
}

.fi-cover .icon { width: 32px; height: 32px; opacity: .9; }
.fi-card .ti-row dd { overflow-wrap: anywhere; }
.fi-partial {
  font-size: 10px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.fi-fields { display: flex; flex-direction: column; gap: 8px; }
.fi-field { display: flex; align-items: end; gap: 8px; }
.fi-field > .ti-inline { flex: 1 1 auto; min-width: 0; }
.fi-field > .ti-mini { flex: none; align-self: end; }

@media (max-width: 400px) {
  .fi-field { flex-wrap: wrap; }
}

/* ==========================================================================
   ?v=37 — РОТАЦИЯ НА СТАНЦИЯХ ВИДНА СРАЗУ НА КАРТОЧКЕ (только админам).
   Четыре чекбокса БЕЗ подписей: цвет = станция (как .chall/.chrok/
   .chrom/.chenigma в style.css старого сайта), имя — в title/aria-label.
   col — левый верхний угол вертикальной карточки, Ln НИЖЕ чекбоксов;
   row — перед «i» у папки и перед «...» у строки трека, ?v=39 Ln ПЕРЕД ними
   (метка выводится первой веткой card_admin.html, а не CSS-order).
   ?v=38 — включённые чекбоксы красятся на ВСЕХ видах карточек (был конфликт
   специфичности), основная станция залита светлосерым с тёмной галочкой.
   ========================================================================== */
.card-admin {
  display: inline-flex; align-items: center; gap: 5px;
  /* Невыбранный чекбокс: на тёмной вертикальной карточке подменяется ниже. */
  --cs-bg: rgba(255, 255, 255, .25);
  --cs-line: #94a3b8;
}
.card-stations { display: inline-flex; align-items: center; gap: 3px; }
.cs-box { display: inline-flex; line-height: 0; cursor: pointer; }
.card-admin input[data-ccheck] {
  appearance: none; -webkit-appearance: none;
  width: 13px; height: 13px; margin: 0; padding: 0;
  position: relative; display: block; cursor: pointer;
  border: 1.5px solid var(--cs-line); border-radius: 3px;
  background: var(--cs-bg);
  transition: background-color .15s, border-color .15s;
}
.card-admin input[data-ccheck]:hover { border-color: var(--brand-600); }
.card-admin input[data-ccheck]:focus-visible {
  outline: 2px solid var(--brand-600); outline-offset: 2px;
}
/* Включённый и «частично» ВСЕГДА залиты цветом станции. Раньше более
   позднее правило .track-card .card-admin input[data-ccheck] имело ту же
   специфичность и перебивало фон :checked — на вертикальных карточках
   галочки оставались прозрачными, а на строках чарта красились. */
.card-admin input[data-ccheck]:checked,
.card-admin input[data-ccheck]:indeterminate {
  background: var(--cs-color, #64748b);
  border-color: var(--cs-border, var(--cs-color, #64748b));
}
.card-admin input[data-ccheck]:checked::after {
  content: ""; position: absolute; left: 3px; top: 0;
  width: 3px; height: 7px; border: solid var(--cs-mark, #fff);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.card-admin input[data-ccheck]:indeterminate::after {
  content: ""; position: absolute; left: 2px; top: 4px;
  width: 7px; height: 2px; border-radius: 1px;
  background: var(--cs-mark, #fff);
}
/* Основная станция — белая/светлосерая заливка (.chall старого сайта):
   галочка тёмная, рамка серая, чтобы чекбокс не сливался в светлой теме. */
.cs-all { --cs-color: #f1f5f9; --cs-border: #94a3b8; --cs-mark: #334155; }
.cs-rok { --cs-color: #dc4c42; }
.cs-rom { --cs-color: #0e9a8f; }
.cs-enigma { --cs-color: #3f6fd8; }
.card-ln {
  flex: none; padding: 1px 5px; border-radius: 5px;
  font-size: 9.5px; font-weight: 850; letter-spacing: .04em;
  color: #fff; background: #2f855a; cursor: help;
}
/* Сама строка-ссылка: розовая «-L» старого сайта; зелёная — когда
   ссылки ведут НА этот объект (класс lnis в functions.php). */
.card-ln.is-self { background: #f9a8d4; color: #5b1538; }
/* Горизонтальные карточки: группа — обычный flex-сосед перед кнопкой. */
.card-admin-row { position: relative; z-index: 1; flex: none; }
/* Вертикальные: колонка в левом верхнем углу, Ln под чекбоксами. */
.card-admin-col {
  position: absolute; left: 8px; top: 8px; z-index: 4;
  flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 5px 6px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(4, 30, 60, .18);
}
.track-card .card-admin-col {
  background: rgba(5, 25, 48, .72); border-color: rgba(255, 255, 255, .28);
}
/* Меняем ТОЛЬКО переменные невыбранного состояния, а не фон/рамку
   напрямую: так правило не может перекрасить включённые чекбоксы. */
.track-card .card-admin {
  --cs-bg: rgba(255, 255, 255, .1);
  --cs-line: rgba(255, 255, 255, .75);
}
/* NEW и эквалайзер тоже живут слева сверху — уводим их ниже админской
   колонки, иначе они перекроют чекбоксы. */
.track-card.is-admin-cards .tc-badge { top: 52px; }
.artist-card.is-admin-cards .ac-eq { top: 52px; }
/* На узком экране чекбоксы не должны съедать название строки чарта. */
@media (max-width: 760px) {
  .card-admin-row { gap: 3px; }
  .card-admin-row .card-stations { gap: 2px; }
  .chart-row { gap: 8px; padding: 8px; }
}

/* ==========================================================================
   LED-плеер — КОНСОЛИДИРОВАННЫЕ живые правила (бывшая история ?v=43…54).
   Хроника итераций и перекрытые объявления перенесены в
   temp/_jscheck/led_history.css и браузеру НЕ отдаются. Удалялись только
   объявления, у которых позже в файле есть правило с ТЕМ ЖЕ селектором
   в ТЕМ ЖЕ @media и с ТЕМ ЖЕ свойством: такая пара имеет равную
   специфичность, поэтому раннее объявление не побеждает НИКОГДА.
   Порядок оставшихся правил сохранён — каскад не изменился.
   ========================================================================== */
.lcd-transport .deck-btn {
  box-shadow: none;
  transition: color .18s, border-color .18s, filter .18s;
}
.lcd-transport .deck-btn:hover:not(:disabled),
.lcd-transport .deck-btn-play,
.lcd-transport .deck-btn-play.is-stop { box-shadow: none; }

.lcd-transport .deck-btn-play.is-playing {
  animation: lcd-btn-pulse 2.2s ease-in-out infinite;
}
.lcd-transport .deck-btn-play.is-stop.is-playing { animation: none; }
@keyframes lcd-btn-pulse { 50% { filter: brightness(1.16); } }

.lcd { grid-template-columns: auto minmax(0, 1fr) auto; }
.lcd-modes {
  grid-column: 3; grid-row: 1 / 4; align-self: center; justify-self: end;
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
}

.lcd-modes .deck-btn,
.lcd-modes .deck-btn:hover:not(:disabled),
.lcd-modes .deck-btn.is-on { box-shadow: none; }

@media (max-width: 1080px) {
  .lcd-modes { gap: 2px; }
}

.lcd-transport .deck-btn {
  --lcd-btn-bg: radial-gradient(circle at 34% 26%, #1d4154, #081a26 72%);
}
.lcd-transport .deck-btn:hover:not(:disabled) {
  background-image:
    linear-gradient(rgba(2, 14, 22, .22), rgba(2, 14, 22, .22)),
    var(--lcd-btn-bg);
  box-shadow: none;
}

.lcd.is-radio .lcd-bottom { justify-content: flex-start; }
.lcd.is-radio .lcd-bottom .lcd-time { display: none; }
.lcd.is-radio .lcd-live { justify-content: flex-start; text-align: left; }
.lcd.is-radio .lcd-bars { margin-right: 9px; }

.lcd-modes .deck-btn {
  width: 26px; height: 26px;
}
.lcd-modes .deck-btn .icon {
  width: 20px; height: 20px;
}
.lcd-modes .deck-btn:hover:not(:disabled) { border-color: transparent;
}
.lcd-modes .deck-btn.is-on {
  background: none; border-color: transparent; box-shadow: none;
}

@media (max-width: 1080px) {
  .lcd-modes .deck-btn { width: 24px; height: 24px; }
  .lcd-modes .deck-btn .icon { width: 18px; height: 18px; }
}

.lcd-modes { z-index: 2; }

.deck-vol-label { margin-bottom: 3px; }

@media (min-width: 1600px) {
  .deck-inner { justify-content: center; }
  .head-unit { max-width: 1100px; }
}

@media (max-width: 760px) {
  .deck-btn-wide {
    width: auto; height: 34px; padding: 0 13px;
    border-radius: 999px;
    align-items: center; justify-content: center;
  }
  .deck-btn-wide span { display: inline; }
  .lcd-volume { height: 32px; }   
}

.deck-btn-wide { align-items: center; justify-content: center; }
.deck-badge {
  letter-spacing: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center; text-align: center;
  font-family: var(--deck-font); font-variant-numeric: tabular-nums;
}

:root { --led-unit-h: 82px; }                 
@media (max-width: 1080px) { :root { --led-unit-h: 78px; } }  

.deck-knob {
  flex: none; width: auto;
  height: var(--led-unit-h); align-self: center;
  display: grid;
  grid-template-columns: 26px 6px;              /* слева подпись/динамик, справа фейдер */
  grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 0;
  align-items: stretch; justify-items: start;
}
.deck-vol-label {
  grid-column: 1; grid-row: 1;
  align-self: start;
  margin: 0;
  display: block;   /* перекрываем ДВА исторических display:none на ≤1080px */
  font: 700 8px/1 var(--deck-font); letter-spacing: .16em;
  color: var(--deck-ink-soft);
}
.deck-vol-btn {
  grid-column: 1; grid-row: 3;
  align-self: end;
  width: 26px; height: 26px;
}
.lcd-volume {
  grid-column: 2; grid-row: 1 / 4;
  align-self: stretch; justify-self: center;
  display: block; margin: 0;
  width: 6px; height: 100%; min-height: 0;
  /* Низ = 0, верх = 100. Заливка идёт снизу вверх, размер приходит
     инлайном из deck.html как '100% <процент>%'. */
  -webkit-appearance: none; appearance: none;
  writing-mode: vertical-lr; direction: rtl;
  border-radius: 999px; outline: 0; cursor: ns-resize;
  background-image: linear-gradient(0deg, #00eafa, #267cf6);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-color: rgba(0, 234, 250, .18);
}
.lcd-volume::-webkit-slider-thumb { width: 13px; height: 13px; }
.lcd-volume::-moz-range-thumb { width: 13px; height: 13px; }

.deck-knob { column-gap: 4px; }
.deck-vol-label { justify-self: end; }        
.deck-vol-btn {
  justify-self: end;
  place-items: end center;   /* иконка к НИЖНЕМУ краю, а не в центр кнопки */
}

@media (max-width: 760px) {
  
  .head-unit { flex: 1; width: auto; }   
  .deck-knob {
    order: 1;
  }
  
  .deck-buttons { order: 2; flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .deck-knob { grid-template-columns: 6px; }
  .deck-vol-label, .deck-vol-btn { display: none; }
  .lcd-volume { grid-column: 1; }
}

@media (max-width: 400px) {
  .head-unit { flex: 1 1 100%; width: 100%; }
  
  .deck-buttons { flex: 1; }
  .deck-knob {
    order: 2; align-self: center;
    grid-template-columns: 26px;
  }
  .deck-vol-label, .lcd-volume { display: none; }
  .deck-vol-btn {
    display: grid;
    grid-column: 1; grid-row: 1 / 4;
    align-self: center; justify-self: center; place-items: center;
  }
}

@media (max-width: 760px) {
  :root { --led-unit-h: 86px; }   
  .deck-knob {
    height: var(--led-unit-h);
    align-self: center;           /* строка ровно 86px — центрировать нечего */
  }
}

@media (max-width: 400px) {
  .deck-knob { height: 34px; }
}

.lcd-transport .deck-btn-play.is-stop {
  --lcd-btn-bg: radial-gradient(circle at 35% 25%, #fff0c4, #ffbe4d 58%, #c8791c 100%);
  background-image: var(--lcd-btn-bg);
  color: #33210a;
  border-color: #ffd475;
}
.lcd-transport .deck-btn-play.is-stop:hover:not(:disabled) { color: #33210a; }

.lcd-modes .deck-btn {
  position: relative;
  transition: color .18s, background-color .18s;
}

.lcd-modes .deck-btn,
.lcd-modes .deck-btn:hover:not(:disabled) {
  color: rgba(53, 255, 121, .36);
  background: none; border: 0; box-shadow: none;
}
.lcd-modes .deck-btn .icon,
.lcd-modes .deck-btn:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 3px rgba(53, 255, 121, .22));
}

.lcd-modes .deck-btn.is-on .icon,
.lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 8px rgba(53, 255, 121, .95));
}

.lcd-modes .deck-btn.is-on::after {
  content: '';
  position: absolute; left: 50%; bottom: 0; border-radius: 1px;
  transform: translateX(-50%);
  pointer-events: none;
}
.lcd-modes .deck-btn:focus-visible {
  outline: 1px solid rgba(233, 251, 255, .55);
  outline-offset: 1px;
}

.lcd.is-radio .lcd-modes .deck-btn,
.lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) {
  color: rgba(255, 208, 106, .44);
}
.lcd.is-radio .lcd-modes .deck-btn .icon,
.lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 3px rgba(255, 180, 60, .3));
}
.lcd.is-radio .lcd-modes .deck-btn.is-on .icon,
.lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 8px rgba(255, 180, 60, .95));
}

:root { --led-green: #66ffb8; }

.lcd-transport .deck-btn:not(.deck-btn-play),
.lcd-transport .deck-btn:not(.deck-btn-play):hover:not(:disabled) {
  color: var(--led-green);
  border-color: rgba(102, 255, 184, .45);
}
.lcd-transport .deck-btn:not(.deck-btn-play) .icon {
  filter: drop-shadow(0 0 4px rgba(102, 255, 184, .45));
}
.lcd-transport .deck-btn-play {
  --lcd-btn-bg: radial-gradient(circle at 35% 25%, #e4fff3, var(--led-green) 52%, #0b9d78 100%);
  background-image: var(--lcd-btn-bg);
  color: #062b24;
  border-color: rgba(102, 255, 184, .85);
}
.lcd-transport .deck-btn-play:hover:not(:disabled) { color: #062b24; }

.lcd-modes .deck-btn.is-on,
.lcd-modes .deck-btn.is-on:hover:not(:disabled) {
  color: var(--led-green);
  background: none; border: 0; border-radius: 0; box-shadow: none;
}

.lcd.is-radio .lcd-modes .deck-btn.is-on,
.lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) {
  color: #ffd475;
  background: none; border: 0; box-shadow: none;
}

.lcd-modes .deck-btn .icon {
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-mask-size: auto;
  mask-size: auto;
}

.lcd-modes .deck-btn {
  color: rgba(102, 255, 184, .46);
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.lcd-modes .deck-btn:hover:not(:disabled) {
  color: rgba(102, 255, 184, .24);
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.lcd-modes .deck-btn .icon {
  filter: drop-shadow(0 0 3px rgba(102, 255, 184, .25));
}
.lcd-modes .deck-btn:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 1px rgba(102, 255, 184, .12));
}
.lcd-modes .deck-btn.is-on { color: var(--led-green); }

.lcd-modes .deck-btn.is-on:hover:not(:disabled) {
  color: rgba(102, 255, 184, .6);
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.lcd-modes .deck-btn.is-on .icon {
  filter: drop-shadow(0 0 6px rgba(102, 255, 184, .85));
}

.lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 2px rgba(102, 255, 184, .4));
}

.lcd-modes .deck-btn.is-on::after {
  width: 10px; height: 2px; opacity: .85;
  background: var(--led-green);
  box-shadow: 0 0 6px rgba(102, 255, 184, .7);
}

.lcd.is-radio .lcd-modes .deck-btn {
  color: rgba(255, 208, 106, .48);
}
.lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) {
  color: rgba(255, 208, 106, .26);
  background: none; border: 0; box-shadow: none;
}
.lcd.is-radio .lcd-modes .deck-btn .icon {
  filter: drop-shadow(0 0 3px rgba(255, 180, 60, .3));
}
.lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 1px rgba(255, 180, 60, .12));
}
.lcd.is-radio .lcd-modes .deck-btn.is-on { color: #ffd475; }
.lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) {
  color: rgba(255, 212, 117, .62);
  background: none; border: 0; box-shadow: none;
}
.lcd.is-radio .lcd-modes .deck-btn.is-on .icon {
  filter: drop-shadow(0 0 6px rgba(255, 180, 60, .85));
}
.lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 2px rgba(255, 180, 60, .4));
}
.lcd.is-radio .lcd-modes .deck-btn.is-on::after {
  width: 10px; opacity: .85;
  background: #ffd475;
  box-shadow: 0 0 6px rgba(255, 180, 60, .7);
}

:root { --led-mint: #66ffb8; }

.deck .deck-btn {
  border-color: rgba(102, 255, 184, .5);
  text-decoration: none;
}

.deck .deck-buttons .deck-btn {
  color: var(--led-mint);
  border-color: rgba(102, 255, 184, .55);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .72), 0 0 0 2px rgba(0, 0, 0, .22);
}
.deck .deck-badge { background: var(--led-mint); color: #052b20; }
.deck .deck-vol-btn,
html[data-theme="dark"] .deck .deck-vol-btn { color: var(--led-mint); }

.deck .lcd-transport .deck-btn-play.is-stop {
  --lcd-btn-bg: radial-gradient(circle at 35% 25%, #e4fff3, var(--led-mint) 52%, #0b9d78 100%);
  background-image: var(--lcd-btn-bg);
  color: #062b24;
  border-color: rgba(102, 255, 184, .85);
  box-shadow: none;
}

.deck .deck-buttons .deck-btn-radio.is-on {
  color: #052b20;
  background: radial-gradient(circle at 35% 25%, #e4fff3, var(--led-mint) 58%, #0b9d78 100%);
  border-color: var(--led-mint);
  box-shadow: inset 0 2px 7px rgba(255, 255, 255, .6), 0 0 0 2px rgba(0, 0, 0, .22);
}

.deck .deck-btn:disabled { filter: none; }

.deck .lcd-transport .deck-btn:hover:not(:disabled) {
  color: var(--led-mint);
}
.deck .lcd-transport .deck-btn:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 6px rgba(102, 255, 184, .9)) brightness(1.15);
}
.deck .lcd-transport .deck-btn-play:hover:not(:disabled),
.deck .lcd-transport .deck-btn-play.is-stop:hover:not(:disabled) { color: #062b24; }
.deck .deck-buttons .deck-btn:hover:not(:disabled) {
  color: #eafff5;
  border-color: var(--led-mint);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .55),
              0 0 20px rgba(102, 255, 184, .7), 0 0 0 2px rgba(0, 0, 0, .22);
}
.deck .deck-buttons .deck-btn-radio.is-on:hover:not(:disabled) { color: #052b20; }
.deck .deck-vol-btn:hover,
html[data-theme="dark"] .deck .deck-vol-btn:hover {
  color: #eafff5;
  filter: drop-shadow(0 0 6px rgba(102, 255, 184, .7));
}

.deck .lcd-modes .deck-btn,
.deck .lcd.is-radio .lcd-modes .deck-btn,
.deck .lcd.is-radio .lcd-modes .deck-btn.is-on {
  color: rgba(102, 255, 184, .42);
  background: none; border: 0; border-radius: 0; box-shadow: none;
  filter: none;
  text-decoration: none;
}
.deck .lcd-modes .deck-btn.is-on { color: var(--led-mint); }
.deck .lcd-modes .deck-btn .icon,
.deck .lcd-modes .deck-btn.is-on .icon,
.deck .lcd.is-radio .lcd-modes .deck-btn .icon,
.deck .lcd.is-radio .lcd-modes .deck-btn.is-on .icon { filter: none; }
.deck .lcd-modes .deck-btn:focus-visible { outline-color: var(--led-mint); }

.deck .lcd-modes .deck-btn:hover:not(:disabled),
.deck .lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) {
  background: none; border: 0; box-shadow: none;
}

.deck .lcd.is-radio .lcd-modes .deck-btn:disabled {
  color: rgba(102, 255, 184, .42);
  opacity: .5; cursor: not-allowed; filter: none;
  background: none; border: 0; box-shadow: none;
}
.deck .lcd.is-radio .lcd-modes .deck-btn:disabled .icon { filter: none; }

.deck .lcd-transport .deck-btn:not(.deck-btn-play) {
  --lcd-btn-bg: linear-gradient(transparent, transparent);
}

.deck .lcd-transport .deck-btn:hover:not(:disabled) {
  background-image:
    linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)),
    var(--lcd-btn-bg);
  border-color: #eafff5;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9),
              0 0 16px rgba(102, 255, 184, .85);
}

.deck .lcd-modes .deck-btn:hover:not(:disabled),
.deck .lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) {
  color: #7dffc9;
}
.deck .lcd-modes .deck-btn.is-on:hover:not(:disabled),
.deck .lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) {
  color: #a8ffd6;
}
.deck .lcd-modes .deck-btn:hover:not(:disabled) .icon,
.deck .lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon,
.deck .lcd.is-radio .lcd-modes .deck-btn:hover:not(:disabled) .icon,
.deck .lcd.is-radio .lcd-modes .deck-btn.is-on:hover:not(:disabled) .icon {
  filter: drop-shadow(0 0 7px rgba(102, 255, 184, .95))
          drop-shadow(0 0 14px rgba(102, 255, 184, .55));
}

.deck .lcd-modes .deck-btn.is-on::after,
.deck .lcd.is-radio .lcd-modes .deck-btn.is-on::after {
  content: none; display: none; background: none; box-shadow: none;
}

/* ==========================================================================
   ?v=55 — три правки после визуального теста Rus.
   1) Свечение ГРАНИЦ транспорта на hover чуть приглушено. Лицо кнопки
      (42% белого из v54) НЕ трогаем, чтобы hover оставался заметным;
      убавлены только inset-кайма и внешний мятный ореол.
   2) Ползунок громкости: обычная «рука» (pointer), как у кнопки динамика,
      вместо ns-resize, доставшегося от вертикального фейдера.
   3) Процент больше НЕ подменяет надпись VOL: он живёт во всплывающем
      тултипе (на старом сайте #voltip появлялся на время перетаскивания).
   Хроника ?v=43…54 вынесена в temp/_jscheck/led_history.css.
   ========================================================================== */

/* --- 1. Мягче кайма и ореол у prev / play / next ------------------------- */
.deck .lcd-transport .deck-btn:hover:not(:disabled) {
  border-color: #d3ffee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62),
              0 0 9px rgba(102, 255, 184, .5);
}

/* --- 2. Курсор фейдера: pointer, а не ns-resize -------------------------- */
.deck .lcd-volume,
.deck .lcd-volume::-webkit-slider-thumb,
.deck .lcd-volume::-moz-range-thumb { cursor: pointer; }

/* --- 3. Тултип процента вместо подмены VOL ------------------------------- */
.deck .deck-knob { position: relative; }
.deck .deck-vol-tip {
  position: absolute;
  right: calc(100% + 7px);          /* слева от фейдера, внутри .deck */
  bottom: 50%;                      /* перекрывается инлайном из deck.html */
  transform: translateY(50%);       /* центр тултипа = точке значения */
  z-index: 6;
  min-width: 34px; padding: 3px 6px;
  border: 1px solid rgba(102, 255, 184, .55);
  border-radius: 4px;
  background: rgba(4, 20, 30, .94);
  color: #eafff5;
  font: 700 10px/1.2 var(--deck-font);
  font-variant-numeric: tabular-nums;
  text-align: center; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}
.deck .deck-vol-tip.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   ?v=56 — замечания Rus по магнитоле.
   1) Курсор фейдера: в v55 три селектора (включая ::-moz-range-thumb) были
      в ОДНОМ правиле. Неизвестный движку селектор роняет ВСЁ правило
      (CSS Selectors 3): pointer не применялся, оставался ns-resize из v47.
      Теперь ТРИ РАЗДЕЛЬНЫХ правила.
   2) Процент вплотную к фейдеру (эталон #voltip висел прямо над ползунком),
      символ % убран, подпись VOL по-прежнему статична.
   3) Динамик явно прижат к НИЖНЕМУ краю фейдера, а не зависит от высоты
      третьей grid-строки и пустого места в viewBox иконки.
   4) Неактивные кнопки: обычная стрелка вместо «запрещено».
   5) Иконки prev / play / next крупнее.
   6) Бегущая строка плавно выезжает из правого края при каждой смене трека.
   7) Часы белые и в треке, и в эфире.
   ========================================================================== */

/* --- 1. Курсор: РАЗДЕЛЬНЫЕ правила, браузер не роняет всё правило -------- */
.deck .lcd-volume { cursor: pointer; }
.deck .lcd-volume::-webkit-slider-thumb { cursor: pointer; }
.deck .lcd-volume::-moz-range-thumb { cursor: pointer; }

/* --- 2. Процент прямо у фейдера, без знака % ----------------------------- */
.deck .deck-vol-tip {
  right: 9px;                       /* было calc(100% + 7px) — за всю колонку */
  min-width: 24px;
  padding: 2px 5px;
  font: 700 11px/1.2 var(--deck-font);
}

/* --- 3. Динамик у нижнего края фейдера ----------------------------------- */
.deck .deck-knob { position: relative; }
.deck .deck-vol-btn {
  position: absolute;
  bottom: -4px; left: 0;
  width: 26px; height: 18px;
  margin: 0; padding: 0;
  place-items: center;
  cursor: pointer;
}
.deck .deck-vol-btn .icon { transform: translateY(2px); }
@media (max-width: 400px) {
  .deck .deck-vol-btn {
    position: static;
    bottom: auto;
    height: 26px;
    place-items: center;
  }
  .deck .deck-vol-btn .icon { transform: none; }
}

/* --- 4. Неактивные кнопки: обычная стрелка ------------------------------- */
.deck .deck-btn:disabled,
.deck .lcd.is-radio .lcd-modes .deck-btn:disabled,
.deck .lcd-seek:disabled { cursor: default; }

/* --- 5. Иконки транспорта крупнее ---------------------------------------- */
.deck .lcd-transport .deck-btn .icon { width: 21px; height: 21px; }
.deck .lcd-transport .deck-btn-play .icon { width: 27px; height: 27px; }

/* --- 6. Плавный выезд бегущей строки из правого края --------------------- */
.deck .lcd-marquee-in { flex: none; width: 100%; }
.deck .lcd-marquee-in.is-entering {
  animation: lcd-enter 1.15s cubic-bezier(.25, .6, .25, 1) both;
}
@keyframes lcd-enter {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* --- 7. Белые часы ------------------------------------------------------- */
.deck .lcd .lcd-clock,
.deck .lcd.is-radio .lcd-clock {
  color: #fff;
  text-shadow: 0 0 9px rgba(255, 255, 255, .75),
               0 0 22px rgba(255, 255, 255, .35);
}

/* ==========================================================================
   ?v=57 — бегущая строка БЕЗ ПУСТОТЫ и без скачка новой надписи.

   Причина дыры на скриншоте: в .lcd-track-text было ДВЕ копии, а историческая
   анимация lcd-scroll уходила на -50% (= одна копия). Копия КОРОЧЕ дисплея,
   поэтому ближе к концу петли экран пустел, а при сбросе первая копия
   появлялась целиком — «новая надпись сразу вся».

   Теперь ОДИН span с 10 равными повторами (app.js → ledLoop), сдвиг ровно
   на ОДИН повтор (-10%). В момент сброса повтор №2 встаёт точно туда, где
   был №1, поэтому картинка НЕ меняется. Повторов с запасом хватает
   перекрыть дисплей при любой длине надписи — текст непрерывно приходит
   справа. Ползёт ВСЕГДА, в т.ч. на выключенном плеере (просьба Rus).
   Исторический @keyframes lcd-scroll и выезд lcd-enter НЕ тронуты.
   ========================================================================== */

.deck .lcd-track-text {
  animation: lcd-loop 26s linear infinite;
  /* nowrap СХЛОПЫВАЕТ пробелы: разделитель из 7 пробелов стал бы одним,
     и повторы слиплись бы. pre сохраняет их и не даёт переносов. */
  white-space: pre;
}
/* Разделитель теперь ВНУТРИ строки, поэтому хвостовой padding снимаем:
   иначе общая ширина стала бы 10 блоков + 7ch и -10% сдвинул бы не ровно
   на один блок. */
.deck .lcd-track-text span { padding-right: 0; }
.deck .lcd-marquee:hover .lcd-track-text { animation-play-state: paused; }
@keyframes lcd-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(-10%); }
}

/* ==========================================================================
   ?v=58 — ЧЕСТНАЯ ИНДИКАЦИЯ ЭФИРА

   Раньше LIVE, полоски эквалайзера и часы загорались по mode='radio' и
   событию 'play', то есть ДО того как браузер получил первые аудиоданные.
   При сбое потока сайт выглядел играющим, хотя звука не было.

   Теперь app.js ведёт radioState: полоски двигаются и часы тикают только
   у .is-sounding, при подключении и реконнекте показывается статус,
   а при окончательном отказе — «НЕТ СВЯЗИ». Исторические правила не
   правим: новый финальный блок перекрывает их каскадом.
   ========================================================================== */

.deck .lcd-live:not(.is-sounding) .lcd-bars i {
  animation: none;
  height: 3px;
  opacity: .35;
}
.deck .lcd-live.is-waiting .lcd-live-status {
  color: #ffd475;
  animation: lcd-status-blink 1.1s steps(2, start) infinite;
}
.deck .lcd-live.is-failed .lcd-live-status { color: #ff9a8b; }
.deck .lcd-live.is-failed .lcd-bars i { background: currentColor; }
.deck .lcd-clock.is-muted {
  color: #9fb4a8;
  text-shadow: none;
  opacity: .55;
}
@keyframes lcd-status-blink { 50% { opacity: .35; } }

/* ==========================================================================
   ?v=59 — ЧЕСТНАЯ ТОЧКА «РАДИО», ОБЛОЖКИ И ПЕРЕТАСКИВАНИЕ

   Точка в шапке теперь разделяет «эфир звучит» и «эфир подключается или
   не запустился». Обложки треков отдаются картинкой, Play лежит поверх
   неё, а строки плейлиста перетаскиваются мышью вместо кнопок вверх и
   вниз. Исторические правила не правим: новый финальный блок перекрывает
   их каскадом.
   ========================================================================== */

.radio-dot.is-waiting {
  background: #ffd475;
  box-shadow: 0 0 0 4px rgba(255, 212, 117, .2);
  animation: radio-dot-blink 1.1s steps(2, start) infinite;
}
.radio-dot.is-failed {
  background: #ff9a8b;
  box-shadow: none;
  animation: none;
  opacity: .65;
}
@keyframes radio-dot-blink { 50% { opacity: .35; } }

.playlist-item[draggable="true"] { cursor: grab; }
.playlist-item.is-dragging { opacity: .4; cursor: grabbing; }
.playlist-item.is-drop-before { box-shadow: inset 0 2px 0 var(--brand-600); }
.playlist-item.is-drop-after { box-shadow: inset 0 -2px 0 var(--brand-600); }

.pl-cover { position: relative; overflow: hidden; width: 42px; height: 42px; }
.pl-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pl-cover .pl-note { width: 18px; height: 18px; }
.pl-play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(8, 18, 32, .58); color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
}
.pl-play .icon { width: 14px; height: 14px; }
.playlist-item:hover .pl-play,
.pl-play:focus-visible,
.playlist-item.is-current .pl-play { background: var(--brand-600); }
.pl-grip { display: grid; place-items: center; color: var(--muted); cursor: grab; }
.pl-grip .icon { width: 12px; height: 18px; opacity: .7; }
.playlist-item:hover .pl-grip .icon { opacity: 1; }

/* ==========================================================================
   ?v=60 — ЗЕЛЁНАЯ ТОЧКА ЗВУКА, СОРТИРОВКА И РУЧКА ПЕРЕТАСКИВАНИЯ

   Красный читался как ошибка, поэтому подтверждённый эфир теперь зелёный,
   а жёлтый и бледно-красный остаются признаками ожидания и отказа.
   Исторические правила не правим, новый финальный блок перекрывает их каскадом.
   ========================================================================== */

.radio-dot.is-on {
  background: #43e08a;
  box-shadow: 0 0 0 4px rgba(67, 224, 138, .22);
  animation: pulse 1.9s ease-in-out infinite;
}
.drawer-tools .chip-dir {
  display: inline-block; min-width: 12px; margin-left: -2px;
  font-size: 13px; font-weight: 700; text-align: center;
}
.pl-grip {
  flex: none; width: 14px; height: 24px;
  display: grid; place-items: center;
  color: var(--muted); cursor: grab;
}
.pl-grip .icon { width: 12px; height: 18px; opacity: .7; }
.playlist-item:hover .pl-grip .icon { opacity: 1; }

/* ==========================================================================
   ?v=62 — АДАПТИВНАЯ СЕТКА: ПРИ СУЖЕНИИ ЭКРАНА КОЛОНОК НЕ ПРИБАВЛЯЕТСЯ

   Диагноз. В истории @media (max-width: 760px) минимальная ширина карточки
   УМЕНЬШАЛАСЬ: .track-grid 182 → 145 px (ниже 400 px ещё и 132 px),
   .folder-grid 360 → 240 px. На этой же границе .container расширялся
   (100% - 48 px → 100% - 28 px): 713 → 732 px. Поэтому на 761 px было
   3 карточки в ряд и 1 папка, а на 760 px — уже 4 карточки и 2 папки.
   Rus ожидал обратного: чем уже экран, тем меньше колонок.

   Исторические правила НЕ правим. Финальный блок задаёт число колонок ЯВНО,
   поэтому оно больше не зависит от скачка ширины контейнера и от minmax():
   761 → 3, 760…561 → 3, 560…361 → 2, 360 и меньше → 1.
   .folder-grid ниже 760 px — одна колонка (на 761 px она тоже одна).
   .track-grid.is-single специфичнее (два класса), поэтому одиночная
   карточка по-прежнему центрируется своим правилом ?v=30/31.
   ========================================================================== */
@media (max-width: 760px) {
  .track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .folder-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 560px) {
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 360px) {
  .track-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   ?v=63 — КНОПКИ ПОДВАЛА КАРТОЧКИ: ВИДЕО И ПЛЕЙЛИСТ

   Диагноз по симуляции каскада. Общее .tc-add:hover красит ещё и
   border-color, а историческое .yt-btn.is-off:hover сбрасывало только
   фон и цвет — у серой недоступной кнопки при наведении появлялась
   синяя обводка. Активная кнопка видео наоборот была залита синим
   ещё до наведения. Историю не правим, перекрываем каскадом.
   ========================================================================== */

/* Доступное видео: в покое нейтральная подложка соседних кнопок,
   иконка в акцентном цвете — ролик читается активным без заливки.
   Синяя заливка остаётся только на hover и focus-visible. */
.yt-btn.is-on {
  background: var(--surface-2); border-color: var(--line); color: var(--brand-600);
}
.yt-btn.is-on:hover,
.yt-btn.is-on:focus-visible {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
}

/* Недоступное видео: hover не меняет вид вообще, синяя обводка не появляется. */
.yt-btn.is-off:hover {
  background: var(--surface-2); border-color: var(--line); color: var(--line-2);
}

/* «Убрать из плейлиста»: светлый красный вместо тёмного #d64262.
   Иконка тёмная, иначе белый минус тонет в светлом фоне. */
.tc-toggle.is-added:hover {
  background: #f4728c; border-color: #f4728c; color: #4a0a18;
  box-shadow: 0 3px 10px rgba(214, 66, 98, .22);
}

/* ==========================================================================
   ?v=70 — сердечко на альбомной карточке
   У карточки альбома нет счётчика рядом с сердечком, поэтому кнопка уже,
   чем .tc-more под ней, и иконка кажется сдвинутой влево. Исторический
   .tc-like не трогаем: только альбомам сдвигаем кнопку на 1px вправо.
   ========================================================================== */
.album-card .tc-like { right: 9px; }

/* ==========================================================================
   ?v=71 — сердечко альбома: ровно по центру кружка «три точки»

   v70 сдвинул кнопку на 1px, но это не убрало перекос: у обычного .tc-like
   есть счётчик, поэтому его ширина ~48px, а padding 7/9 существует ради цифры.
   У альбома счётчика НЕТ: кнопка получается 31px (15px иконка + 7 + 9),
   поэтому иконка стоит на 2.5px левее центра .tc-more (28px, right:10px).
   Делаем альбомной кнопке ТУ ЖЕ геометрию, что у кружка меню: 28px,
  padding:0, right:10px. Иконка оказывается точно по центру и по вертикали
  на одной оси с «тремя точками». Историю CSS не правим, перекрываем каскадом.
   ========================================================================== */
.album-card .tc-like { right: 10px; width: 28px; padding: 0; }

/* ==========================================================================
   ?v=73 — ВЕЕР КАРТОЧЕК В БАННЕРЕ

   На широком экране правый столбец баннера раньше занимала одна карточка
   244px на фоне винила 300px: оставалось много пустого места. Теперь за
   лицевой карточкой стоят две декоративные под углами и с перекрытием.

   Важно: .hero-feature остаётся ТОЛЬКО у лицевой карточки — JS next()
   ищет scope через document.querySelector('.hero-feature'), а боковые
   карточки не должны туда попадать. У них нет data-track, Play и tabindex,
   поэтому очередь и лайки не меняются. Историю CSS не правим, задаём финальным
   блоком: на 900…1080 остаётся одна боковая карточка, ≤760 блок скрыт.
   ========================================================================== */
.hero-stack { position: relative; width: 244px; }
.hero-feature.hero-main {
  position: relative; z-index: 3;
  transform: translate(-16px, 8px) rotate(-3deg);
}
.hero-side {
  position: absolute; top: 12px; left: 50%; z-index: 1;
  width: 210px; padding: 14px; opacity: .76; pointer-events: none;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.11); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(2,25,48,.3);
}
.hero-side .hf-cover { height: 120px; margin: 10px 0; border-radius: 12px; }
.hero-side .hf-title { font-size: 14px; }
.hero-side .hf-artist {
  font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-side-1 { transform: translate(calc(-50% - 92px), 24px) rotate(-9deg); }
.hero-side-2 { transform: translate(calc(-50% + 92px), 20px) rotate(8deg); z-index: 2; }
@media (max-width: 1080px) {
  .hero-side-2 { display: none; }
  .hero-side { width: 196px; top: 16px; opacity: .7; }
  .hero-side-1 { transform: translate(calc(-50% - 80px), 18px) rotate(-7deg); }
  .hero-feature.hero-main { transform: translate(-16px, 8px) rotate(-3deg); }
}

/* ==========================================================================
   ?v=74 — веер без огромного перекрытия

   Замер v73: main 244px, side 210px, сдвиг 92px ⇒ перекрытие
   122 + 105 - 92 = 135px, то есть видна только полоска ~75px. Ещё и вторая
   карточка на 1080px была скрыта, хотя там блок идёт в одну колонку и места
   достаточно. Новые цифры: main 230px, side 180px, сдвиг ±152px ⇒
   перекрытие 115 + 90 - 152 = 53px, видимая часть боковой ~127px.
   Суммарная ширина веера (152 + 90) × 2 = 484px — влезает и в правую
   колонку 1280px, и в одну колонку на 1080/900px. Углы уменьшены до ±6°,
   подписи боковых центрированы, opacity повышен. ≤760 hero-art скрыт как раньше.
   Историю CSS не правим, перекрываем каскадом.
   ========================================================================== */
.hero-stack { position: relative; width: 230px; }
.hero-feature.hero-main {
  width: 230px;
  transform: translate(-16px, 8px) rotate(-3deg);
}
.hero-side {
  top: 18px; width: 180px; padding: 12px; opacity: .88;
}
.hero-side .hf-cover { height: 116px; margin: 10px 0; }
.hero-side .hf-title,
.hero-side .hf-artist { text-align: center; }
.hero-side-1 { transform: translate(calc(-50% - 152px), 22px) rotate(-6deg); }
.hero-side-2 {
  display: block;
  transform: translate(calc(-50% + 152px), 18px) rotate(6deg);
  z-index: 2;
}

/* ==========================================================================
   ?v=75 — диск читается, боковые карточки одной высоты

   v74 вынес правую карточку прямо на центр винила: борозды спрятались,
   и диск смотрелся просто чёрным кругом. Поднимаем и немного увеличиваем
   винил: его верхняя дуга с бороздами остаётся над карточками, а нижняя
   часть по-прежнему служит фоном. Заодно запрещаем перенос заголовка
   у боковых карточек (у одной было две строки, у другой одна) — теперь
   все три карточки одинаковой высоты. Историю CSS не правим.
   ========================================================================== */
.hero-vinyl {
  width: 340px; height: 340px; right: -90px; top: -90px; opacity: .95;
}
.hero-side .hf-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==========================================================================
   ?v=76 — возврат к ОДНОЙ карточке в баннере

   Веер v73…75 не прижился: сужение перекрытия и подъём винила не сделали
   боковые карточки читаемыми, а правая всё равно спорила с диском. Разметка
   боковых и hero-stack удалена из home.html; здесь возвращаем исходные
   размеры винила и его поведение на 1080px. История CSS не трогается.
   ========================================================================== */
.hero-vinyl {
  width: 300px; height: 300px; right: -30px; top: 10px; opacity: .85;
}
@media (max-width: 1080px) {
  .hero-vinyl { right: 8%; width: 240px; height: 240px; }
}

/* ==========================================================================
   ?v=77 — подписи блоков результатов поиска

   Раньше исполнители и треки шли двумя безымянными сетками; при пустой
   выдаче треков, но найденных исполнителях ещё и показывался «ничего не
   нашлось». Добавляем явные подписи и убираем ложную пустоту в шаблоне.
   Историю CSS не трогаем, перекрываем каскадом.
   ========================================================================== */
.results-label {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.results-label h3 { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.results-label span { color: var(--muted); font-size: 12.5px; }
.results-artists + .results-label { margin-top: 26px; }

/* ==========================================================================
   ?v=88 — ПОДРАЗДЕЛЫ ОТДЕЛЯЕМ ПЕРЕНОСОМ СЕТКИ

   Оптический сдвиг transform оказался не тем: Rus попросил, чтобы карточки
   подразделов действительно стояли выше остальных, как после <br>. Теперь
   views ставит их первыми, а шаблон после последней такой карточки вставляет
   пустой элемент на всю ширину сетки. Он занимает собственный ряд нулевой
   высоты, поэтому обычные папки начинаются со следующего ряда.
   ========================================================================== */
.folder-grid .folder-break {
  grid-column: 1 / -1;
  height: 0;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   ?v=90 — ВСЯ КАРТОЧКА ПАПКИ КЛИКАБЕЛЬНА

   Раньше переход работал только внутри .fc-main, поэтому по краям карточки
   клик проваливался. Добавляем прозрачную ссылку на всю площадь. Настоящая
   ссылка .fc-main остаётся для клавиатуры и скринридеров, оверлей скрыт
   от них. Кнопки и чекбоксы подняты над оверлеем и работают как раньше.
   ========================================================================== */
.folder-card { isolation: isolate; }
.folder-card .fc-hit {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.folder-card .fc-main { position: relative; z-index: 0; }
.folder-card .fc-play,
.folder-card .fc-info,
.folder-card .card-admin,
.folder-card .card-admin-row { z-index: 2; }

/* ==========================================================================
   ?v=91 — ВСЯ КАРТОЧКА ИСПОЛНИТЕЛЯ КЛИКАБЕЛЬНА

   Та же приём, что у горизонтальных папок: прозрачная ссылка на всю площадь
   вертикальной карточки. Текстовая .ac-main остаётся доступной с клавиатуры,
   а Play, «Информация» и админская колонка лежат выше оверлея.
   ========================================================================== */
.artist-card { isolation: isolate; }
.artist-card .ac-hit {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.artist-card .ac-main { position: relative; z-index: 0; }
.artist-card .ac-play,
.artist-card .ac-info,
.artist-card .card-admin,
.artist-card .card-admin-col { z-index: 2; }

/* ==========================================================================
   ?v=92 — МАГНИТОФОН ВНИЗУ ЭКРАНА

   Пробуем вместо липкой панели под шапкой закреплённую панель у нижней
   кромки экрана. --player-h снова резервирует место: он же сдвигает drawer,
   всплывашку вверх, чтобы панель ничего не перекрывала. Надпись MUZON
   слева от LED стала ссылкой на главную.
   ========================================================================== */
:root { --player-h: 96px; }
body { padding-bottom: var(--player-h); }

.deck {
  position: fixed; top: auto; bottom: 0; left: 0; right: 0;
  height: var(--deck-h);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.deck::after { top: 0; bottom: auto; }

.deck-brand { text-decoration: none; cursor: pointer; }
.deck-brand:hover .db-mark { color: #fff; }
.deck-brand:hover .db-model { color: rgba(255, 255, 255, .72); }

@media (max-width: 760px) {
  :root { --player-h: 132px; }
  .deck { height: auto; }
}
@media (max-width: 560px) {
  :root { --player-h: 152px; }
}

/* ==========================================================================
   ?v=93 — МИНИМАЛЬНАЯ ШИРИНА НИЖНЕЙ ПАНЕЛИ

   html/body уже держат min-width: 320 px. У position:fixed это ограничение
   не наследуется: панель продолжала сжиматься вместе с окном. Задаём тот же
   минимум явно — при узком окне появится общая горизонтальная прокрутка.
   ========================================================================== */
.deck { min-width: 320px; }

/* ==========================================================================
   ?v=101 — СТАТИСТИКА ДЛЯ АДМИНОВ (аналог #topadm старого сайта)

   Кнопка живёт в админ-полоске, содержимое — в отдельной выездной панели.
   Так отчёты не смешиваются с панелью «Информация» и не требуют полной
   перезагрузки страницы. Цифры приходят JSON, строки отчёта вставляются
   через x-text, поэтому имена треков из БД не становятся HTML.
   ========================================================================== */
.admin-bar-stats {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: #fff; font-weight: 650;
}
.admin-bar-stats:hover { color: var(--cyan-soft); text-decoration: underline; }

.stats-drawer { width: min(480px, 100%); }
.stats-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 22px; }
.stats-content h3 {
  margin: 18px 0 8px; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.stats-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-links > div {
  display: flex; flex-direction: column; gap: 2px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.stats-links b { font-size: 22px; color: var(--brand-600); }
.stats-links span { font-size: 12px; color: var(--muted); }

.stats-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-station {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.stat-station b { font-size: 13px; }
.stat-station span, .stat-station small { font-size: 11px; color: var(--muted); }
.stat-station.is-on { border-color: var(--brand-600); background: var(--blue-100); }

.stats-reports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats-reports button {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--text); font-size: 12px; cursor: pointer;
}
.stats-reports button:hover { border-color: var(--brand-600); color: var(--brand-600); }

.stats-report-state { margin-top: 12px; font-size: 12px; color: var(--muted); }
.stats-report-state.is-error { color: #c53939; }
.stats-report { margin-top: 12px; border-top: 1px solid var(--line); }
.stats-report-head { margin: 10px 0; font-size: 12px; color: var(--muted); }
.stats-report-row {
  display: grid; grid-template-columns: 1fr 1.4fr .6fr; gap: 8px;
  padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 12px;
}
.stats-report-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-report-row.is-head { color: var(--muted); font-weight: 700; }
.stats-report-note { margin-top: 8px; font-size: 11px; color: var(--muted); }

@media (max-width: 480px) {
  .stats-stations, .stats-reports, .stats-links { grid-template-columns: 1fr; }
  .stats-report-row { grid-template-columns: 1fr 1fr; }
  .stats-report-row span:last-child { grid-column: 2; }
}
