@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  Система:
  — один шрифт; начертания: 400 — обычный текст, 460 — вступление и описания выпусков,
    500 — заголовки и подписи, 600 — логотип и жирный в описаниях;
  — размеры: заголовок страницы 40–64 (у выпуска 30–56, ужимается под длину названия),
    заголовок раздела 24–30, текст 17, логотип и кнопка «Слушать выпуск» 16, подписи 14;
  — трекинг отрицательный и растёт с кеглем, никаких прописных с разрядкой;
  — вторичный цвет — основной на 60%, линии — на 10%.
*/
:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: rgba(0, 0, 0, 0.6);
  --hair: rgba(0, 0, 0, 0.1);
  --wash: rgba(0, 0, 0, 0.05);
  --track: rgba(0, 0, 0, 0.14);
  /* Стекло нижнего плеера — как у плеера Apple Podcasts */
  --float: rgba(245, 245, 247, 0.55);
  --float-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --float-stroke: rgba(0, 0, 0, 0.05);
  --col: 720px;
  --gutter: 20px;
  --space: clamp(96px, 16vh, 160px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --fg: #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --hair: rgba(255, 255, 255, 0.14);
    --wash: rgba(255, 255, 255, 0.08);
    --track: rgba(255, 255, 255, 0.2);
    --float: rgba(38, 38, 40, 0.6);
    --float-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --float-stroke: rgba(255, 255, 255, 0.2);
  }
}
@media (min-width: 768px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
/* Масштаб всей типографики: 1rem = 16px × 105% = 16.8px. Размеры шрифтов ниже — в rem, в комментариях макетные px */
html { font-size: 105%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a, button, input[type="range"] { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
h1, h2, h3, .row .t, .related-title { overflow-wrap: anywhere; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.col {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Шрифтовые роли */
.t-display { font-size: clamp(2.5rem, 5.6vw, 4rem) /* 40–64px */; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.t-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem) /* 24–30px */; font-weight: 500; line-height: 1.32; letter-spacing: -0.01em; text-wrap: pretty; }
.t-meta { display: flex; flex-wrap: wrap; column-gap: 14px; font-size: 0.875rem; /* 14px */ font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-meta > :first-child { color: var(--fg); }
.t-meta > * { white-space: nowrap; }
.t-meta a { text-decoration-color: transparent; }

.links { display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; }
.links a { text-decoration: none; }
.links a[href^="http"]::after { content: " ↗"; }

/* Шапка и подвал */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px));
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
}
.bar .logo { font-size: 1rem; /* 16px */ font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.bar nav { display: flex; gap: 24px; }
.bar nav a { text-decoration: none; }
.bar nav [aria-current="page"] { color: var(--muted); }

.foot { margin-top: var(--space); }
.foot-in { border-top: 1px solid var(--hair); padding: 32px 0 72px; display: grid; gap: 24px; }
.foot .links { flex-direction: column; align-items: flex-start; }
.foot .mail { font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Заголовок страницы по центру */
.hero { text-align: center; padding: var(--space) var(--gutter) 0; }
.hero > * + * { margin-top: 24px; }
.hero .t-meta + .t-display { margin-top: 20px; }
.hero p:not(.links):not(.t-meta) { max-width: 34em; margin-inline: auto; text-wrap: balance; }
.hero .links { justify-content: center; margin-top: 28px; }
@media (max-width: 560px) {
  .hero .links { display: grid; grid-template-columns: repeat(2, max-content); justify-items: center; gap: 12px 24px; }
}
.hero .t-meta { justify-content: center; }
.hero .t-display { max-width: 15em; margin-inline: auto; }
/* Чуть плотнее обычного текста: Manrope вариативный, 460 — между 400 и 500 */
.hero .intro { font-weight: 460; }
/* Каждая строка вступления начинается с новой строки; на широких экранах помещается целиком */
.hero .intro span { display: block; }
@media (min-width: 768px) {
  .hero p.intro:not(.links):not(.t-meta) { max-width: 40em; }
}

/* Главная: последний выпуск */
.latest { margin-top: var(--space); }
.latest h2 { margin-top: 14px; }
.latest h2 a { text-decoration: none; }
.latest .ex { margin-top: 16px; font-weight: 460; }
.latest .listen { margin-top: 32px; }
.latest .more { display: inline-block; margin-top: 20px; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; }

/* Главная: «С чего начать» — те же строки, что в «Все выпуски»; линия сверху вместо заголовка сезона */
.start { margin-top: var(--space); }
.start ol { margin-top: 28px; border-top: 1px solid var(--hair); }

/* Главная: архив по сезонам */
.archive { margin-top: var(--space); scroll-margin-top: 56px; }
.season { margin-top: 56px; }
.season h3 { padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: baseline;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
/* Линия только между строками: под последней строкой списка её нет */
li:last-child > .row { border-bottom: 0; }
.row .t { font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.row .n, .row .dt, .row .d { font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .d { text-align: right; }
.row .dt { display: none; }
.row .tag { margin-left: 8px; font-size: 0.875rem; /* 14px */ color: var(--muted); }
@media (min-width: 768px) {
  .row { grid-template-columns: 2.6em minmax(0, 1fr) 9.5em 4.6em; column-gap: 16px; padding: 26px 0 28px; }
  .row .dt { display: block; }
}

/* Страница выпуска */
/* --fit-max — кегль по умолчанию. Ширина считается от него, а не от em: скрипт после <h1> уменьшает кегль длинным
   заголовкам, чтобы они влезли в три строки, а блок при этом остаётся прежней ширины */
.episode .t-display { --fit-max: clamp(1.875rem, 4.8vw, 3.5rem) /* 30–56px */; font-size: var(--fit-max); max-width: calc(15 * var(--fit-max)); line-height: 1.08; }
.episode .listen-cta { margin-top: clamp(56px, 9vh, 88px); }
/* Текст описания чуть плотнее, как вступление: Manrope 460 */
.prose { margin-top: 40px; font-weight: 460; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.3em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--muted); }

/* Списки ссылок из описаний: название — домен ↗ */
.refs { margin: 40px 0; }
.refs > h2 { margin-bottom: 6px; }
.refs h3 { margin: 28px 0 4px; }
.prose .refs ul { list-style: none; padding: 0; }
.prose .refs li + li { margin-top: 0; }
.refs li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 7px 0;
  text-decoration: none;
}
.ref-t { min-width: 0; font-weight: 500; overflow-wrap: anywhere; text-wrap: pretty; }
.ref-d { flex: none; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.ref-d::after { content: " ↗"; }
.refs li a:active .ref-t { color: var(--muted); }
@media (max-width: 560px) {
  .refs li a { flex-direction: column; gap: 0; padding: 8px 0; }
  .ref-d { white-space: normal; overflow-wrap: anywhere; }
}

/* Блок «Команда» — в том же сером контейнере, что и плеер */
.credits { margin: 40px 0; padding: 20px 28px; background: var(--wash); border-radius: 28px; }
.prose .credits:last-child { margin-bottom: 0; }
.credits dl div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 2px 16px; padding: 6px 0; }
.credits dl div:not(:has(dt)) { grid-template-columns: minmax(0, 1fr); }
.credits dt { font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); padding-top: 0.2em; }
.credits dd { font-weight: 500; }
@media (max-width: 560px) {
  .credits { padding: 18px 20px 20px; border-radius: 24px; }
  .credits dl div { grid-template-columns: minmax(0, 1fr); }
}

/* Похожие выпуски: карточки без линий, разделяет их только воздух */
.related { margin-top: 80px; }
.related ol { margin-top: 28px; display: grid; gap: 32px; }
.related a { display: grid; gap: 6px; text-decoration: none; }
.related-title { font-size: 1.0625rem; /* 17px */ font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; }

/* Выпуск на телефоне: больше воздуха между блоками */
@media (max-width: 560px) {
  .episode .hero .t-meta + .t-display { margin-top: 32px; }
  .episode .listen-cta { margin-top: 72px; }
  .episode .prose { margin-top: 64px; }
  .episode .prose p + p, .episode .prose p + ul, .episode .prose ul + p, .episode .prose p + ol, .episode .prose ol + p { margin-top: 1.4em; }
  .episode .refs { margin: 64px 0; }
  .episode .refs h3 { margin-top: 40px; }
  .episode .credits { margin: 64px 0; }
  .episode .related { margin-top: 112px; }
  .episode .related ol { gap: 36px; }
}

/* О подкасте */
/* «О подкасте»: разделы с заголовком — где слушать, на связи, команда */
.hero p.stats { margin-top: 16px; color: var(--muted); }
.about > section { margin-top: 72px; }
.about > section:first-child { margin-top: 88px; }
.about h2 { margin-bottom: 20px; }
.listen-on { margin-top: 72px; }
.listen-on h2 { margin-bottom: 20px; }
/* Платформы — капсулы */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--wash); font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; text-decoration: none; }
.chips a::after { content: "↗"; margin-left: 0.3em; color: var(--muted); }
/* Контакты — карточки: название и адрес серым */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 24px 20px; border-radius: 24px; background: var(--wash); text-decoration: none; }
.card-t { font-weight: 500; }
.card-s { font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); overflow-wrap: anywhere; }
/* Команда — роль слева серым, имена справа; на телефоне роль над именами */
.team div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 16px; padding: 6px 0; }
.team dt { font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); padding-top: 0.2em; }
.team dd { font-weight: 500; }
.team dd a { text-decoration-color: var(--muted); }
@media (max-width: 560px) {
  .team div { grid-template-columns: minmax(0, 1fr); }
}

/* Страница выпуска: кнопка «Слушать выпуск, 1 ч 6 мин» — основным цветом, углы круглые */
.listen-cta { text-align: center; }
.listen-cta audio { width: 100%; }
.cta-listen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 120ms ease;
}
.cta-listen[hidden] { display: none; }
.cta-listen svg { flex: none; width: 20px; height: 20px; }
.cta-listen .i-pause, .cta-listen.is-playing .i-play { display: none; }
.cta-listen.is-playing .i-pause { display: block; }
.cta-listen:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cta-listen:hover { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .cta-listen { transition: none; } .cta-listen:active { transform: none; opacity: 0.7; } }

/* Плеер: строка между волосяными линиями */
/* Плеер — главный элемент страницы: серая капсула, кнопка play основным цветом */
.listen { background: var(--wash); border-radius: 999px; padding: 10px 24px 10px 10px; }
.player audio { width: 100%; }
.player.is-ready audio { display: none; }
.player-ui { display: flex; align-items: center; gap: 16px; }
.player-ui[hidden] { display: none; }
.player-play {
  flex: none;
  display: flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
/* Иконки — в сетке 44×44, пропорции в build.js (ICON_PLAY, ICON_PAUSE) */
.player-play svg { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); }
/* Фокус с клавиатуры — круглое кольцо вокруг кружка, а не квадрат вокруг кнопки */
.player-play:focus-visible { border-radius: 50%; }
.player-play .i-pause, .player.is-playing .player-play .i-play { display: none; }
.player.is-playing .player-play .i-pause { display: block; }
.player-track { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; }
.player-times { flex: none; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-current { color: var(--fg); }
.player-total::before { content: " / "; white-space: pre; }
/* Кнопка скорости ловит нажатие на всю высоту капсулы (44px, как play) и выглядит как прежде:
   зона расширена влево на 12px, отрицательный отступ возвращает текст на место */
.player-rate {
  flex: none;
  min-width: calc(2.8em + 12px);
  min-height: 44px;
  padding: 0 0 0 12px;
  margin-left: -12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
@media (max-width: 560px) {
  .player-total { display: none; }
}

.player-seek {
  --p: 0%;
  flex: 1;
  min-width: 40px;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  color: var(--fg);
}
.player-seek::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, currentColor var(--p), var(--track) var(--p)); }
.player-seek::-moz-range-track { height: 2px; border-radius: 1px; background: var(--track); }
.player-seek::-moz-range-progress { height: 2px; border-radius: 1px; background: currentColor; }
.player-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border: 0; border-radius: 50%; background: currentColor; }
.player-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: currentColor; }

/* Палец крупнее курсора: на тач-экранах полоса перемотки ловит касание на 44px по высоте */
@media (pointer: coarse) {
  .player-seek { height: 44px; margin-block: -10px; }
}
/* Аудио не загрузилось: строка под плеером, по левому краю текста */
.player-note { margin-top: 12px; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--muted); }
.player-note:empty { display: none; }
.player-note a { color: var(--fg); }

/* Наведение — только для мыши: на тач-экранах :hover залипает после тапа */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: var(--muted); }
  .links a:hover { text-decoration: underline; }
  .bar nav a:hover { color: var(--muted); }
  .row:hover .t, .latest h2 a:hover, .related a:hover .related-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .prose a:hover { text-decoration-color: var(--fg); }
  .t-meta a:hover { text-decoration-color: currentColor; }
  .chips a:hover, .cards a:hover { background: var(--hair); }
  .team dd a:hover { text-decoration-color: var(--fg); }
  .refs li a:hover .ref-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
}

/* Отклик на нажатие — для всех устройств, срабатывает в момент касания */
.row:active .t, .related a:active .related-title, .latest h2 a:active { color: var(--muted); }
.player-play, .player-rate { transition: transform 160ms var(--ease-out); }
.player-play:active, .player-rate:active { transform: scale(0.97); }
.player-seek::-webkit-slider-thumb { transition: transform 160ms var(--ease-out); }
.player-seek:active::-webkit-slider-thumb { transform: scale(1.4); }
.player-seek::-moz-range-thumb { transition: transform 160ms var(--ease-out); }
.player-seek:active::-moz-range-thumb { transform: scale(1.4); }

@media (prefers-reduced-motion: reduce) {
  .player-play, .player-rate, .player-seek::-webkit-slider-thumb, .player-seek::-moz-range-thumb { transition: none; }
  .player-play:active, .player-rate:active { transform: none; opacity: 0.7; }
  .player-seek:active::-webkit-slider-thumb, .player-seek:active::-moz-range-thumb { transform: none; }
}

/* Safari закрашивает выделение до краёв страницы, когда оно переходит в следующий блок.
   У flex-колонки WebKit эти промежутки не заливает — розовым остаётся только сам текст.
   Во flex отступы не схлопываются, поэтому у блоков ссылок и титров отступ только сверху. */
.hero, .latest, .prose, .credits dl { display: flex; flex-direction: column; }
.hero > * { width: 100%; }
.latest .more { align-self: flex-start; }
.prose > .refs, .prose > .credits { margin: 40px 0 0; }
.prose > section + * { margin-top: 40px; }
.prose > :first-child, .prose > .refs > :first-child { margin-top: 0; }

/* ——— Плейлист «С чего начать» ——— */
/* Кнопка встаёт на место номера: номер прячется при наведении и у текущего выпуска */
.track { position: relative; isolation: isolate; }
.track::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 12px; background: var(--wash); opacity: 0; transition: opacity 120ms ease; }
.track-play {
  position: absolute;
  left: -10px;
  top: 14px;
  width: calc(2em + 10px);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.track-play[hidden] { display: none; }
.track-play svg { display: none; width: 32px; height: 32px; }
.track-play .i-bars { width: 14px; height: 14px; fill: currentColor; }
@media (min-width: 768px) { .track-play { top: 20px; width: calc(2.6em + 10px); } }

/* Что показывать на месте номера */
.track:has(.track-play:not([hidden])):is(:hover, :focus-within, .is-current) .n { visibility: hidden; }
.track:is(:hover, :focus-within, .is-current) .track-play .i-play { display: block; }
.track.is-playing .track-play .i-play { display: none; }
.track.is-playing .track-play .i-bars { display: block; }
.track.is-playing:is(:hover, :focus-within) .track-play .i-bars { display: none; }
.track.is-playing:is(:hover, :focus-within) .track-play .i-pause { display: block; }

/* Тач-экраны: наведения нет, поэтому значок «Слушать» стоит на месте номера всегда */
@media (hover: none) {
  .track:has(.track-play:not([hidden])) .n { visibility: hidden; }
  .track .track-play .i-play { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  .track:hover::before { opacity: 1; }
  /* Под наведённой строкой линии прячутся: и её собственная, и соседняя сверху */
  .track > .row { transition: border-color 120ms ease; }
  .start ol { transition: border-color 120ms ease; }
  .track:hover > .row,
  .track:has(+ .track:hover) > .row { border-bottom-color: transparent; }
  .start ol:has(> .track:first-child:hover) { border-top-color: transparent; }
  /* С плеером ссылка — только название: подчёркивается при наведении на него, а не на всю строку */
  .track:has(.track-play:not([hidden])) .row:hover .t { text-decoration: none; }
  .track:has(.track-play:not([hidden])) .tt:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
}
.track:has(.track-play:not([hidden])) { cursor: pointer; }
.track:has(.track-play:not([hidden])) .row:active .t { color: inherit; }
.track:has(.track-play:not([hidden])) .tt:active { color: var(--muted); }

/* Полоски «сейчас играет» */
.i-bars rect { transform-box: fill-box; transform-origin: 50% 100%; animation: bars 900ms ease-in-out infinite alternate; }
.i-bars rect:nth-child(2) { animation-delay: -300ms; }
.i-bars rect:nth-child(3) { animation-delay: -600ms; }
@keyframes bars { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* Нижний плеер — парящая плашка. Содержимое стоит ровно в колонке текста:
   название — по левому краю номеров в таблице, «1×» — по правому краю длительности.
   Плашка выступает за колонку на --dock-pad с каждой стороны. */
.dock {
  --dock-pad: 24px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  padding-inline: calc(var(--gutter) - var(--dock-pad));
  pointer-events: none; /* по бокам плашки клики проходят на страницу */
  animation: dock-in 420ms var(--ease-out);
}
.dock[hidden] { display: none; }
@keyframes dock-in { from { transform: translateY(calc(100% + 24px)); opacity: 0; } }
.dock-in {
  pointer-events: auto;
  max-width: calc(var(--col) + 2 * var(--dock-pad));
  margin-inline: auto;
  padding: 20px var(--dock-pad) 14px;
  border-radius: 32px;
  position: relative;
  box-shadow: var(--float-shadow);
}
/* Фон плашки — стекло: размытие того, что под ней, и обводка в полпикселя изнутри.
   Оба слоя — псевдоэлементы под текстом и кнопками. */
.dock-in::before,
.dock-in::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
.dock-in::before {
  background: var(--float);
  -webkit-backdrop-filter: saturate(2.2) blur(16px);
  backdrop-filter: saturate(2.2) blur(16px);
}
.dock-in::after {
  box-shadow: inset 0.5px 0.5px 0 var(--float-stroke), inset 0.5px -0.5px 0 var(--float-stroke),
    inset -0.5px 0.5px 0 var(--float-stroke), inset -0.5px -0.5px 0 var(--float-stroke);
}
/* Повышенный контраст: стекло без размытия и с заметной обводкой */
@media (prefers-contrast: more) {
  .dock-in::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .dock-in::after { box-shadow: none; border: 1px solid var(--fg); }
}
.dock-now { display: flex; justify-content: center; text-align: center; font-size: 0.875rem; /* 14px */ font-weight: 500; letter-spacing: 0; line-height: 1.4; min-width: 0; }
.dock-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.dock .player { margin-top: 12px; }
.dock .player-ui { gap: 8px; }
.dock .player-track { margin-left: 16px; gap: 20px; }
.dock-skip {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
}
.dock-skip svg { width: 24px; height: 24px; }
.dock-skip:disabled { opacity: 0.25; cursor: default; }
.dock .player-note { margin-top: 4px; padding-bottom: 6px; text-align: center; }
/* Текст и кнопки — над фоном и зерном */
.dock-in > * { position: relative; z-index: 1; }
body.has-dock { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
/* Знак «предыдущий» — по левому краю, как и название: от края кнопки 44px до знака 12,5px (10 поле + 2,5 в сетке иконки) */
.dock-prev { margin-left: -12.5px; }
/* Телефон: поле колонки 20px — плашка в 8px от края экрана, внутри 12px */
@media (max-width: 767px) { .dock { --dock-pad: 12px; } }
@media (max-width: 560px) {
  .dock-in { padding-top: 16px; padding-bottom: 10px; border-radius: 28px; }
  .dock .player-ui { gap: 4px; }
  .dock .player-track { margin-left: 12px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .i-bars rect { animation: none; }
  .dock { animation: none; }
}
