/* news.css — стили страницы-досье «Антенка AI News».
   Основа: helmet-CSS эталона №10 (скилл antenka-guides §3.1) + брендбук §2.
   Геометрия рядов [data-v2r] живёт в v2-rows-style (v2-layout.js, §18.2) — здесь её НЕ дублируем,
   только дополняем. v2-rows-style вставляется скриптом ПОЗЖЕ этого файла, поэтому там, где нужно
   перебить его правило, у нас специфичность выше (префикс .nx / html.nx-present).
   Размеры текста и вертикальные отступы — в rem: режим ведущего меняет только корневой шрифт, текст растёт
   в той же пропорции, что и колонки, и баланс «текст ↔ медиа» в рядах сохраняется. Рамки и тени — в px. */

/* ───────── 1. База и keyframes (helmet №10) ───────── */
:root {                     /* значения сверены с живым гайдом №30 (beta): текст шагов 19/1.62, H2 32, kicker 12 mono */
  --nx-fs-body: 1.1875rem;   /* 19px — абзацы саммари */
  --nx-fs-text: 1.1875rem;   /* 19px — факты, хронология */
  --nx-fs-plaque: 1rem;      /* 16px — плашки «почему важно», уточнения */
  --nx-fs-caption: 0.90625rem; /* 14.5px — подписи к медиа */
  --nx-fs-small: 0.875rem;   /* 14px — источники, дисклеймеры */
  --nx-fs-h1: clamp(38px, 5vw, 56px);
  --nx-fs-h2: 2rem;          /* 32px */
  --nx-fs-kicker: 0.75rem;   /* 12px */
  --nx-fs-num: 1.625rem;     /* 26px */
  --nx-circle: 2.5rem;       /* 40px */
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fafafa; font-family: 'Golos Text', Arial, sans-serif; color: #1d1d1b; }
a { color: #1e6e52; font-weight: 600; } a:hover { color: #14503b; }
@keyframes blinkCursor { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes casflow { 0%{left:0;opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100%{left:calc(100% - 9px);opacity:0;} }
@keyframes ctapulse { 0%,100%{ box-shadow:0 8px 20px rgba(30,110,82,0.32); } 50%{ box-shadow:0 14px 34px rgba(30,110,82,0.65); } }
@keyframes ctashine { 0%{ background-position:-140% 0; } 60%,100%{ background-position:140% 0; } }

/* ───────── 2. Helmet-правила №10 (§3.1, грабли 5, 6, 14) ───────── */
[data-screen-label] { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
[data-screen-label] > div { animation: none !important; opacity: 1 !important; transform: none !important; }
[data-screen-label] > div:has(> [data-slide-left]) { max-width: var(--rd-w, 880px) !important; padding-left: 32px !important; padding-right: 32px !important; }
zoom-figure { display: block !important; width: 600px !important; max-width: 100% !important; margin: 0 auto !important; }
zoom-figure img { width: 100% !important; height: auto !important; max-height: 74vh !important; object-fit: contain !important; }
[data-v2-lightbox] zoom-figure { width: min(88vw, 1100px) !important; max-width: 88vw !important; }
[data-v2-lightbox] zoom-figure img { max-height: 82vh !important; }
/* Ширина чтения «Шире»/«Макс»: reader-toolbar.js вставляет `zoom-figure{max-width:none !important}` (строка 34,
   вендорный файл навыка — не правим). С фиксированной шириной 600px из строки выше фигура вылезала за свой блок:
   в двухколоночном ряду медиа-колонка уже 600px, и картинка выходила за край блока и за рамку такта (жалоба
   владельца 2026-09-15). Возвращаем кап своей специфичностью (0,2,1 против 0,0,1) — во всех режимах ширины.
   Лайтбокс не задет: его оверлей лежит в <html>, а не в body.nx. */
.nx .nx-media zoom-figure, .nx [data-v2r-m] zoom-figure { max-width: 100% !important; }
@media (max-width: 760px) {
  [data-screen-label] h1 { font-size: 33px !important; line-height: 1.15 !important; }
  [data-screen-label] h2 { font-size: 23px !important; }
}

/* ───────── 3. Секции ───────── */
.nx-sec { border-bottom: 1px solid #e8e6e2; background: #fafafa; }
.nx-sec.nx-alt { background: #f4f3f0; }
/* content-box, как у гайдов (грабля 43): max-width var(--rd-w) — ширина содержимого, паддинги 32px снаружи неё → ряд 880 = 417 + 46 + 417 */
.nx-sec > .nx-wrap { box-sizing: content-box; margin: 0 auto; padding: 3.5rem 32px 4rem; display: flex; flex-direction: column; gap: 2.125rem; }
.nx-sec > .nx-wrap > * { min-width: 0; }
@media (max-width: 760px) { .nx-sec > .nx-wrap { padding-top: 2.625rem; padding-bottom: 2.625rem; gap: 1.75rem; } }
@media (max-width: 560px) { .nx-sec > .nx-wrap { padding-top: 1.875rem; padding-bottom: 2.25rem; gap: 1.5rem; } }
.nx p { margin: 0; }
.nx-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.nx-label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--nx-fs-kicker); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #a3a19a; }
.nx-kicker { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--nx-fs-kicker); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #a3a19a; }
.nx-h2 { font-size: var(--nx-fs-h2); font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; }
[data-screen-label] a { overflow-wrap: anywhere; }

/* ───────── 4. Обложка ───────── */
.nx-cover-top { display: flex; flex-direction: column; gap: 1rem; }
.nx-cover-kicker { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--nx-fs-kicker); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #a3a19a; }
.nx-h1 { font-size: var(--nx-fs-h1); font-weight: 800; margin: 0; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
.nx-subtitle { font-size: 1.3125rem; line-height: 1.45; color: #1d1d1b; font-weight: 600; text-wrap: pretty; }
.nx-lead { font-size: 1.1875rem; line-height: 1.6; color: #55534d; text-wrap: pretty; }
.nx-meta { display: flex; flex-wrap: wrap; gap: 0.625rem 1.375rem; align-items: center; font-size: 0.90625rem; color: #55534d; }
.nx-meta-item { display: inline-flex; gap: 0.5rem; align-items: baseline; }
.nx-chip { display: inline-flex; align-items: center; gap: 0.4375rem; border-radius: 20px; padding: 0.3125rem 0.75rem; font-size: 0.78125rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.nx-chip-video { background: #fff7cc; border: 1px solid #e6d98a; color: #3a3320; }
.nx-chip-video .nx-mono { font-size: 0.6875rem; letter-spacing: .08em; }
a.nx-chip-video-link { background: #1e6e52; border: 1px solid #1e6e52; color: #fff; text-decoration: none; }
a.nx-chip-video-link:hover { background: #14503b; color: #fff; }

/* плеер + главы */
.nx-player { background: #ffffff; border: 1px solid #e8e6e2; border-radius: 16px; padding: 1.125rem 1.375rem 1rem; box-shadow: 0 12px 32px rgba(0,0,0,0.07); display: flex; flex-direction: column; gap: 0.875rem; }
.nx-player-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.375rem 1rem; align-items: baseline; }
.nx-player-title { font-size: 1.0625rem; font-weight: 800; }
.nx-player audio { width: 100%; height: 44px; display: block; }
.nx-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: 0.25rem 0.875rem; }
@media (max-width: 600px) { .nx-chapters { grid-template-columns: minmax(0, 1fr); } }
.nx-chapter { width: 100%; display: flex; gap: 0.75rem; align-items: baseline; text-align: left; background: transparent; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 9px; padding: 0.4375rem 0.625rem; cursor: pointer; font: 500 0.90625rem/1.35 'Golos Text', Arial, sans-serif; color: #1d1d1b; transition: background .15s ease, border-color .15s ease; }
.nx-chapter:hover { background: #f4f3f0; }
.nx-chapter:focus-visible { outline: 3px solid #1e6e52; outline-offset: 1px; }
.nx-ch-time { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.8125rem; font-weight: 600; color: #6b6963; min-width: 2.625rem; flex: none; }
.nx-ch-title { min-width: 0; overflow-wrap: anywhere; }
.nx-chapter.is-current { background: #eef4f0; border-color: #d8e5dc; border-left-color: #1e6e52; }
.nx-chapter.is-current .nx-ch-time { color: #1e6e52; }
.nx-chapter.is-current .nx-ch-title { font-weight: 700; }

/* карточки-тизеры */
.nx-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 940px) { .nx-teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nx-teasers { grid-template-columns: minmax(0, 1fr); } }
.nx-teaser { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #e8e6e2; border-radius: 14px; overflow: hidden; text-decoration: none; color: #1d1d1b; font-weight: 400; transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.nx-teaser:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.13); color: #1d1d1b; }
.nx-teaser-thumb { position: relative; aspect-ratio: 16 / 10; background: #e8e6e2; overflow: hidden; }
.nx-teaser-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.nx-teaser-thumb img[data-kind="video"], .nx-teaser-thumb img[data-kind="image"] { object-position: center; }
.nx-teaser-thumb .nx-rubric { position: absolute; left: 0.625rem; top: 0.625rem; }
.nx-teaser-play { position: absolute; right: 0.625rem; bottom: 0.625rem; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: rgba(15,15,13,.7); display: flex; align-items: center; justify-content: center; }
.nx-teaser-play::after { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.nx-teaser-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.875rem 0.875rem; flex: 1; }
.nx-teaser-no { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.6875rem; font-weight: 600; letter-spacing: .1em; color: #7a7a74; text-transform: uppercase; }
.nx-teaser-title { font-size: 1rem; font-weight: 700; line-height: 1.3; text-wrap: pretty; overflow-wrap: break-word; }
.nx-teaser-text { font-size: 0.84375rem; line-height: 1.45; color: #55534d; }
.nx-teaser-num { margin-top: auto; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; padding-top: 0.25rem; }
.nx-teaser-num b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.nx-teaser-num span { font-size: 0.78125rem; color: #55534d; line-height: 1.35; }
/* финал — широкая карточка: высоту задаёт текст, картинка заполняет левую часть без пустой полосы (m-4) */
.nx-teaser.nx-teaser-wide { grid-column: 1 / -1; flex-direction: row; }
.nx-teaser-wide .nx-teaser-thumb { flex: 0 0 38%; aspect-ratio: auto; min-height: 11.25rem; }
.nx-teaser-wide .nx-teaser-thumb img { position: absolute; inset: 0; }
.nx-teaser-wide .nx-teaser-body { padding: 1rem 1.25rem; justify-content: center; }
.nx-teaser-wide .nx-teaser-title { font-size: 1.1875rem; }
.nx-teaser-wide .nx-teaser-num { margin-top: 0.25rem; }
@media (max-width: 560px) { .nx-teaser.nx-teaser-wide { flex-direction: column; } .nx-teaser-wide .nx-teaser-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; } .nx-teaser-wide .nx-teaser-thumb img { position: static; } }
.nx-rubric { display: inline-flex; align-items: center; background: #1d1d1b; color: #fff; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.65625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0.25rem 0.5625rem; border-radius: 20px; line-height: 1.2; }

/* ───────── 5. Шапка новости ───────── */
.nx-head { display: flex; flex-direction: column; gap: 0.875rem; }
.nx-titleline { display: flex; gap: 1rem; align-items: flex-start; }
.nx-num { flex: none; min-width: var(--nx-circle); height: var(--nx-circle); border-radius: 50%; background: #1d1d1b; color: #fff; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.nx-head-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.875rem; align-items: center; font-size: 0.84375rem; color: #55534d; }
.nx-head-notes { display: flex; flex-direction: column; gap: 0.5rem; }
.nx-srctitle { font-size: 0.875rem; line-height: 1.45; color: #7a7a74; overflow-wrap: anywhere; }
.nx-srctitle .nx-label { margin-right: 0.375rem; }
.nx-status { display: inline-flex; align-items: center; gap: 0.4375rem; border-radius: 20px; padding: 0.25rem 0.6875rem; font-size: 0.78125rem; font-weight: 700; line-height: 1.25; border: 1px solid transparent; white-space: nowrap; }
.nx-status::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: currentColor; flex: none; }
.nx-status[data-status="confirmed"] { background: #eef4f0; border-color: #d8e5dc; color: #3f5a4c; }
.nx-status[data-status="company_claim"] { background: #fff7cc; border-color: #e6d98a; color: #3a3320; }
.nx-status[data-status="unconfirmed"] { background: #fbeeec; border-color: #ecd4d0; color: #74473f; }
.nx-status[data-status="rumor"] { background: #a8443a; border-color: #a8443a; color: #fff; }
.nx-kicker-time { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; border-bottom: 1px dotted currentColor; border-radius: 0; padding: 0 1px; margin: 0; cursor: pointer; }
.nx-kicker-time:hover, .nx-kicker-time:focus-visible { color: #1e6e52; outline: none; }
/* звучащая новость (news-player.js): зелёный номер и kicker, бейдж «Звучит сейчас» — без сдвига геометрии */
.nx-head { position: relative; }
.nx-playing { display: none; align-items: center; gap: 6px; background: #1e6e52; color: #fff; border-radius: 20px; padding: 3px 10px 3px 8px; font: 700 12px/1.3 'Golos Text', Arial, sans-serif; white-space: nowrap; vertical-align: middle; }
.nx-playing::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9e0c6; animation: nxpulse 1.4s ease-in-out infinite; }
@keyframes nxpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
html:not(.nx-present) .nx-sec.is-playing .nx-playing, html.nx-player-ui .nx-sec.is-playing .nx-playing { display: inline-flex; }
.nx-story .nx-head-meta .nx-playing { position: absolute; right: 0; top: -4px; }
html:not(.nx-present) .nx-sec.is-playing .nx-num, html.nx-player-ui .nx-sec.is-playing .nx-num { background: #1e6e52; box-shadow: 0 0 0 4px #d8e5dc; }
html:not(.nx-present) .nx-sec.is-playing .nx-head .nx-kicker, html.nx-player-ui .nx-sec.is-playing .nx-head .nx-kicker { color: #1e6e52; }
.nx-player-title { display: inline-flex; align-items: center; gap: 10px; }
.nx-player-side { display: inline-flex; align-items: center; gap: 12px; }
.nx-player-resume { border: 1px solid #1e6e52; background: #1e6e52; color: #fff; border-radius: 8px; padding: 5px 10px; font: 700 12.5px/1.2 'Golos Text', Arial, sans-serif; cursor: pointer; }
.nx-player-resume:hover { background: #14503b; border-color: #14503b; }
.nx-player-resume[hidden] { display: none !important; }
/* у ведущего без плеера (A) подсветки нет: запись остаётся чистой */
html:not(.nx-present) .nx-teaser.is-playing, html.nx-player-ui .nx-teaser.is-playing { box-shadow: 0 0 0 2px #1e6e52, 0 14px 30px rgba(0,0,0,0.10); }
@media (max-width: 560px) { .nx-story .nx-head-meta .nx-playing { position: static; } }

/* ───────── 5б. Партитура: материал под речь (news-player.js) ─────────
   Такт — кусок речи, привязанный к блоку новости (data-nx-beat="<id новости>:<цель>"). Пока он звучит,
   у блока класс is-beat: мягкая рамка и подложка. Рамка — outline с отступом: геометрию не двигает,
   в замерах рядов (§18) не участвует и не создаёт h-scroll. Плашка «Звучит сейчас» лежит в разметке
   у каждого блока-цели заранее и только показывается классом — на тиках плеера узлы не вставляются,
   иначе пересобирается и мигает точечный рейл v2-enhance. У ведущего без плеера (A) подсветки нет. */
[data-nx-beat] { position: relative; outline: 3px solid transparent; outline-offset: 6px; transition: outline-color .3s ease, box-shadow .3s ease; }
.nx-beatmark { display: none; position: absolute; right: 0; bottom: 100%; margin-bottom: 3px; z-index: 4; align-items: center; gap: 6px; background: #1e6e52; color: #fff; border-radius: 20px; padding: 3px 10px 3px 8px; font: 700 12px/1.3 'Golos Text', Arial, sans-serif; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,0.18); pointer-events: none; }
.nx-beatmark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9e0c6; animation: nxpulse 1.4s ease-in-out infinite; }
/* рамка заметная: 3px зелёного, подложка и мягкое свечение вокруг — решение владельца 2026-09-15.
   Всё нарисовано outline и box-shadow, геометрия не меняется: ряды §18 не едут, h-scroll не появляется. */
html:not(.nx-present) [data-nx-beat].is-beat, html.nx-player-ui [data-nx-beat].is-beat {
  outline-color: rgba(30,110,82,0.6);
  box-shadow: 0 0 0 8px #eef4f0, 0 0 0 9px rgba(30,110,82,0.22), 0 0 34px 6px rgba(30,110,82,0.30);
}
html:not(.nx-present) [data-nx-beat].is-beat > .nx-beatmark, html.nx-player-ui [data-nx-beat].is-beat > .nx-beatmark { display: inline-flex; }
/* у шапки новости своя плашка (бейдж главы) и своя рамка по краю колонки — подложка ей не нужна */
html:not(.nx-present) .nx-head[data-nx-beat].is-beat, html.nx-player-ui .nx-head[data-nx-beat].is-beat { box-shadow: none; }
/* тёмная тема тулбара инвертирует [data-lang-block]: светлая подложка #eef4f0 стала бы белым пятном.
   Берём тёмную подложку и более плотное свечение — после инверсии это мягкий зелёный ореол. */
html[data-dark="1"]:not(.nx-present) [data-nx-beat].is-beat, html[data-dark="1"].nx-player-ui [data-nx-beat].is-beat {
  outline-color: rgba(30,110,82,0.72);
  box-shadow: 0 0 0 8px #d3e3d8, 0 0 0 9px rgba(30,110,82,0.3), 0 0 34px 6px rgba(30,110,82,0.42);
}
@media (prefers-reduced-motion: reduce) { [data-nx-beat] { transition: none; } .nx-beatmark::before { animation: none; } }

/* ───────── 6. Ряды (дополнение к §18.2; сетка/линия — в v2-rows-style) ───────── */
[data-v2r] + [data-v2r] { padding-top: 1.375rem; margin-top: 1.375rem; }
.nx-rows { display: flex; flex-direction: column; min-width: 0; }
[data-v2r-t] { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
[data-v2r-m] { display: flex; flex-direction: column; gap: 1.375rem; min-width: 0; }
/* узко (≤940): одна колонка, линия скрыта — перебиваем grid 1fr/1fr из v2-rows-style (0,2,0) */
@media (max-width: 940px) {
  .nx [data-v2r]:has(> [data-v2r-m]) { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .nx [data-v2r]:has(> [data-v2r-m])::before { display: none !important; }
}
/* §18.3-B/C (живой гайд №30, v2-layout.js v=20260815b): в медиа-колонке ничего не центрируется (B),
   НО внутренности zoom-figure — панель GIF-плеера, play, бейдж — остаются по центру (C, специфичность 0,2,1 > 0,2,0).
   B без C не применять. Правило ctapulse для CTA из инлайн-разметки гайдов — для совместимости. */
[data-v2r-m] [style*="align-self: center"] { align-self: flex-start !important; }
[data-v2r-m] [style*="align-items: center"] { align-items: flex-start !important; }
[data-v2r-m] [style*="justify-content: center"] { justify-content: flex-start !important; }
[data-v2r-m] zoom-figure [style*="align-self: center"] { align-self: center !important; }
[data-v2r-m] zoom-figure [style*="align-items: center"] { align-items: center !important; }
[data-v2r-m] zoom-figure [style*="justify-content: center"] { justify-content: center !important; }
[data-screen-label] a[style*="ctapulse"] { max-width: 100% !important; box-sizing: border-box !important; flex-wrap: wrap !important; }
/* медиа шире 2.5:1 — ряд во всю ширину (M-3b): текст-колонки нет, картинка на всю ширину контейнера */
[data-v2r][data-nx-wide] > [data-v2r-t] { gap: 0.875rem; }
.nx [data-nx-wide] .nx-media { width: 100%; }
.nx [data-nx-wide] zoom-figure { width: 100% !important; max-width: 100% !important; margin: 0 !important; }

/* ───────── 7. Текстовые блоки ───────── */
.nx-block { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.nx-summary { display: flex; flex-direction: column; gap: 0.875rem; }
.nx-summary p { font-size: var(--nx-fs-body); line-height: 1.62; color: #1d1d1b; text-wrap: pretty; overflow-wrap: break-word; }
.nx-plaque { border-radius: 12px; padding: 0.875rem 1.25rem; font-size: var(--nx-fs-plaque); line-height: 1.55; overflow-wrap: break-word; }
.nx-plaque strong.nx-plabel { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; margin-right: 0.25rem; }
.nx-plaque p + p { margin-top: 0.375rem; }
.nx-tip { background: #eef4f0; border: 1px solid #d8e5dc; color: #3f5a4c; }
.nx-tip strong.nx-plabel { color: #1e6e52; }
.nx-warn { background: #fbeeec; border: 1px solid #ecd4d0; color: #74473f; }
.nx-warn strong.nx-plabel { color: #a8443a; }
.nx-warn .nx-was { color: #74473f; }
.nx-warn .nx-audio-flag { display: inline-block; margin-top: 0.375rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.71875rem; font-weight: 600; letter-spacing: .06em; color: #a8443a; text-transform: uppercase; }
/* дисклеймер — пергамент брендбука (m-6); красный остаётся только у предупреждений */
.nx-disclaimer { background: #f9f1e2; border: 1px solid #eadfc6; border-radius: 12px; padding: 0.625rem 1rem; color: #6e5c33; font-size: var(--nx-fs-small); line-height: 1.5; overflow-wrap: break-word; }
.nx-disclaimer strong.nx-plabel { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; color: #6e5c33; margin-right: 0.25rem; }
.nx-cmark { color: #8a6d2f; font-weight: 700; font-size: .7em; margin-left: 1px; }
.nx-disclaimer .nx-cmark, .nx-teaser-note .nx-cmark { font-size: 1em; margin: 0 0.125rem 0 0; }
.nx-teaser-note { display: block; background: #f9f1e2; border: 1px solid #eadfc6; border-radius: 8px; padding: 0.375rem 0.5625rem; color: #6e5c33; font-size: 0.75rem; line-height: 1.4; font-weight: 500; }
.nx-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.nx-facts li { font-size: var(--nx-fs-text); line-height: 1.62; overflow-wrap: break-word; }
.nx-fkind { display: inline-block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 0.125rem 0.375rem; border-radius: 6px; margin-right: 0.4375rem; vertical-align: 1px; background: #efedea; color: #55534d; white-space: nowrap; }
.nx-fkind[data-kind="number"] { background: #eef4f0; color: #3f5a4c; }
.nx-fkind[data-kind="fun"] { background: #fff7cc; color: #3a3320; }
.nx-ref { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.71875rem; font-weight: 600; text-decoration: none; margin-left: 0.1875rem; white-space: nowrap; }
.nx-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); gap: 0.625rem; }
.nx-numchip { background: #ffffff; border: 1px solid #e8e6e2; border-radius: 12px; padding: 0.75rem 0.875rem; min-width: 0; container-type: inline-size; }
/* значение в одну строку (M-2): без переноса внутри слова; шрифт ужимается по длине (--nx-len) под ширину плашки */
.nx-numval { font-size: max(0.875rem, min(var(--nx-fs-num), calc(150cqi / var(--nx-len, 4)))); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.nx-numlabel { font-size: 0.8125rem; line-height: 1.35; color: #55534d; margin-top: 0.25rem; overflow-wrap: break-word; }
.nx-quote { margin: 0; background: #f9f1e2; border: 1px solid #eadfc6; border-radius: 12px; padding: 1rem 1.25rem; color: #6e5c33; display: flex; flex-direction: column; gap: 0.5rem; }
.nx-quote .nx-label { color: #6e5c33; }
.nx-qtext { font-size: 1.125rem; line-height: 1.5; font-style: italic; font-weight: 600; overflow-wrap: break-word; }
.nx-qtr { font-size: 1rem; line-height: 1.5; overflow-wrap: break-word; }
.nx-qby { font-size: 0.8125rem; line-height: 1.45; }
.nx-timeline { list-style: none; margin: 0; padding: 0 0 0 1.125rem; position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.nx-timeline::before { content: ""; position: absolute; left: 0.25rem; top: 0.375rem; bottom: 0.375rem; width: 2px; background: #e8e6e2; }
.nx-timeline li { position: relative; font-size: var(--nx-fs-text); line-height: 1.55; overflow-wrap: break-word; }
.nx-timeline li::before { content: ""; position: absolute; left: -1.125rem; top: 0.25rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #fafafa; border: 2px solid #1d1d1b; box-sizing: border-box; }
.nx-timeline time { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.78125rem; font-weight: 600; color: #1d1d1b; letter-spacing: .03em; }
.nx-srclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nx-srclist li { font-size: var(--nx-fs-small); line-height: 1.5; color: #55534d; overflow-wrap: anywhere; }
.nx-srcno { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.75rem; font-weight: 600; color: #7a7a74; margin-right: 0.25rem; }
.nx-srclist b { color: #1d1d1b; font-weight: 700; }
.nx-role { display: inline-block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #d5d3ce; border-radius: 20px; padding: 0.0625rem 0.4375rem; margin-left: 0.25rem; color: #55534d; white-space: nowrap; vertical-align: 1px; }
.nx-role[data-role="primary"] { border-color: #1d1d1b; color: #1d1d1b; }
.nx-role[data-role="critique"] { border-color: #b9b7b0; color: #55534d; border-style: dashed; }
.nx-paywall { font-size: 0.71875rem; color: #6b6963; margin-left: 0.25rem; white-space: nowrap; }

/* ───────── 8. Медиа ───────── */
.nx-media { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
/* v2-rows-style даёт figure в медиа-колонке margin-right:auto → во flex-колонке figure сжимается до
   max-content (600px у zoom-figure) и вылезает за колонку; явная ширина возвращает кап max-width:100% */
[data-v2r-m] > .nx-media { width: 100%; box-sizing: border-box; }
.nx-media-label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--nx-fs-kicker); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #a3a19a; overflow-wrap: anywhere; }
.nx-caption { font-size: var(--nx-fs-caption); line-height: 1.5; color: #6b6963; overflow-wrap: break-word; }
.nx-credit { font-size: 0.78125rem; line-height: 1.45; color: #7a7a74; overflow-wrap: anywhere; }
.nx-credit a { white-space: nowrap; }
/* видео-фасад: бокс с пропорциями постера; портрет (Shorts 9:16) не выше 70vh, без обрезки, по левому краю колонки;
   iframe после клика встаёт в тот же бокс */
.nx-vbox { position: relative; width: 100%; aspect-ratio: var(--nx-arw, 16) / var(--nx-arh, 9); border-radius: 12px; overflow: hidden; background: #17181a; border: 1px solid #e8e6e2; box-shadow: 0 12px 32px rgba(0,0,0,0.12); box-sizing: border-box; }
.nx-vbox.is-portrait { width: min(100%, calc(70vh * var(--nx-arw) / var(--nx-arh))); }
.nx-vfacade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #17181a; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.nx-vfacade img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nx-vplay { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(15,15,13,0.66); box-shadow: 0 6px 22px rgba(0,0,0,0.35); transition: transform .15s ease, background .15s ease; }
.nx-vplay::after { content: ""; position: absolute; left: 28px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.nx-vfacade:hover .nx-vplay, .nx-vfacade:focus-visible .nx-vplay { background: #1e6e52; transform: scale(1.06); }
.nx-vfacade:focus-visible { outline: 3px solid #1e6e52; outline-offset: -3px; }
.nx-vmeta { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; }
.nx-vmeta span { background: rgba(15,15,13,0.66); color: #fff; border-radius: 20px; padding: 4px 10px; font: 600 12px/1.2 'Golos Text', Arial, sans-serif; max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-vmeta .nx-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; }
.nx-vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* наш фрагмент ролика (video.clip_file): лежит в боксе поверх фасада и включается классом.
   YouTube в России без VPN не открывается, поэтому показ выпуска на него не завязан: по такту партитуры
   фрагмент играет без звука (is-clip, клики проходят сквозь него на фасад), по клику читателя — со звуком
   и управлением (is-clip-user). iframe YouTube грузится только отдельной кнопкой. */
.nx-vclip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #17181a; opacity: 0; pointer-events: none; z-index: 2; transition: opacity .2s ease; }
.nx-vbox.is-clip .nx-vclip { opacity: 1; }
.nx-vbox.is-clip-user .nx-vclip { pointer-events: auto; }
.nx-vbox.is-clip-user .nx-vfacade { display: none; }
.nx-vclip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem; }
.nx-vclip-note { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: var(--nx-fs-kicker); letter-spacing: .08em; text-transform: uppercase; color: #a3a19a; }
.nx-vclip-full { border: 1px solid #d8e5dc; background: #eef4f0; color: #1e6e52; border-radius: 8px; padding: 0.25rem 0.625rem; font: 600 0.78125rem/1.25 'Golos Text', Arial, sans-serif; cursor: pointer; }
.nx-vclip-full:hover, .nx-vclip-full:focus-visible { background: #1e6e52; border-color: #1e6e52; color: #fff; outline: none; }
.nx-vclip-link { font-size: var(--nx-fs-small); }
@media (prefers-reduced-motion: reduce) { .nx-vclip { transition: none; } }
.nx-xcard { background: #ffffff; border: 1px solid #e8e6e2; border-radius: 12px; padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.nx-xcard-head { font-size: 0.875rem; } .nx-xcard-head b { color: #1d1d1b; } .nx-xcard-head span { color: #7a7a74; margin-left: 0.375rem; }
.nx-xcard-text { font-size: 0.9375rem; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word; }
.nx-missing { background: #fbeeec; border: 1px dashed #ecd4d0; border-radius: 12px; padding: 1.125rem; color: #74473f; font-size: 0.875rem; }

/* ───────── 9. Конец выпуска и все источники выпуска (общий список — в самом низу страницы) ───────── */
.nx-allsrc { display: flex; flex-direction: column; gap: 1.625rem; }
.nx-allsrc-group { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.nx-allsrc-head { display: flex; gap: 0.375rem 0.75rem; align-items: baseline; flex-wrap: wrap; }
.nx-allsrc-head a { color: #1d1d1b; text-decoration: none; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.nx-allsrc-head a:hover { color: #1e6e52; }
/* обратная ссылка из списка: от источника — назад к новости, из которой на него ссылается номер [n] */
.nx-srcback { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.71875rem; font-weight: 600; color: #7a7a74; text-decoration: none; margin-left: 0.375rem; white-space: nowrap; }
.nx-srcback:hover { color: #1e6e52; }
.nx-outro-text { font-size: 1.125rem; line-height: 1.6; color: #55534d; text-wrap: pretty; }
.nx-cta { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; width: fit-content; max-width: 100%; box-sizing: border-box; background: #1e6e52; color: #fff; font: 800 1.125rem/1.15 'Golos Text', Arial, sans-serif; padding: 1rem 1.625rem; border-radius: 14px; text-decoration: none; box-shadow: 0 8px 20px rgba(30,110,82,0.3); animation: ctapulse 2.2s ease-in-out infinite; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.nx-cta:hover { background: #14503b; color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px rgba(30,110,82,0.55); animation-play-state: paused; }
.nx-cta .nx-cta-sub { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; font-size: 0.9375rem; opacity: .85; overflow-wrap: anywhere; }
.nx-next { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.8125rem; font-weight: 600; letter-spacing: .06em; color: #55534d; text-transform: uppercase; }
.nx-foot { font-size: 0.78125rem; color: #7a7a74; line-height: 1.5; }
/* общий список источников теперь последняя секция страницы — воздух внизу нужен ему */
.nx-allsources > .nx-wrap { padding-bottom: 6.875rem; }

/* ───────── 10. Мобильные (≤560, §15.1–15.2, грабля 46) ───────── */
@media (max-width: 560px) {
  .nx-player { padding: 0.875rem 0.875rem 0.75rem; }
  .nx-chapter { padding: 0.4375rem 0.375rem; }
  .nx-plaque { padding: 0.75rem 0.875rem; }
  .nx-quote { padding: 0.875rem 1rem; }
  .nx-numbers { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
  .nx-titleline { gap: 0.75rem; }
  .nx-cta { font-size: 1rem; padding: 0.875rem 1.125rem; }
  .nx-lead { font-size: 1.0625rem; }
  .nx-subtitle { font-size: 1.125rem; }
}

/* ───────── 11. Тёмная тема тулбара (invert на [data-lang-block]) ───────── */
/* zoom-figure сам контр-инвертируется правилом reader-toolbar; img/canvas внутри него попадали
   под то же правило второй раз и снова инвертировались — гасим (медиа остаются читаемыми). */
html[data-dark="1"] [data-lang-block] zoom-figure img,
html[data-dark="1"] [data-lang-block] zoom-figure canvas { filter: none !important; }
html[data-dark="1"] [data-lang-block] .nx-vbox { filter: invert(1) hue-rotate(180deg); }
html[data-dark="1"] [data-lang-block] .nx-vbox img, html[data-dark="1"] [data-lang-block] .nx-vbox video { filter: none !important; }

/* ───────── 12. Режим ведущего (html.nx-present, news-presenter.js) ───────── */
/* корневой шрифт = 16px × (колонка ведущего / колонка 417px обычного режима): при ширине 1500 → 27.9px.
   Все rem-размеры растут вместе с колонками, поэтому пропорции рядов те же, что в обычном режиме (m-3). */
html.nx-present { --rd-w: 1500px; --nx-fs-h1: 84px; font-size: max(16px, calc((min(1500px, 100vw - 176px) - 46px) / 52.125)); }
html.nx-present .nx-sec > .nx-wrap { max-width: min(1500px, calc(100vw - 176px)) !important; padding: 64px 48px 76px !important; }
html.nx-present .nx-lead { font-size: 28px; }
html.nx-present .nx-subtitle { font-size: 32px; }
/* медиа в колонке ведущего — на всю ширину колонки вместо капа 600px из helmet: растут в той же пропорции, что текст;
   портреты сохраняют ширину из fitPortrait (инлайн !important) */
html.nx-present [data-v2r-m] zoom-figure { width: 100% !important; }
/* цифры (M-2): в двухколоночном ряду — плашки по две, шрифт с потолком и без переноса */
html.nx-present .nx-numbers { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
html.nx-present [data-v2r]:has(> [data-v2r-m]) .nx-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.nx-present .nx-numval { font-size: max(0.875rem, min(clamp(26px, 2.2vw, 44px), calc(150cqi / var(--nx-len, 4)))); }
/* в кадре только досье: плавающие виджеты и вспомогательные кнопки скрыты */
html.nx-present [data-v2-rail],
html.nx-present button[data-v2-gear],
html.nx-present [aria-label="Настройки чтения"],
html.nx-present [aria-label="Reading settings"],
html.nx-present button[aria-label="Поиск"],
html.nx-present button[aria-label="Search"],
html.nx-present > div:has(> input[type="search"]),
html.nx-present [data-ai-launch], html.nx-present [data-ai-fab], html.nx-present [data-ai-pop], html.nx-present [data-ai-drawer],
html.nx-present .lp-bar, html.nx-present .lp-online, html.nx-present .lp-cursors,
html.nx-present [data-dog],
html.nx-present .nx-player-resume { display: none !important; }

.nx-pcount { position: fixed; right: 18px; top: 16px; z-index: 120000; display: flex; gap: 12px; align-items: center; background: rgba(24,24,22,0.88); color: #f0efe9; border-radius: 999px; padding: 9px 16px; font: 700 15px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .04em; box-shadow: 0 10px 26px rgba(0,0,0,0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; white-space: nowrap; }
.nx-pcount[hidden], .nx-ptime[hidden], .nx-pnotes[hidden] { display: none !important; }
.nx-ptime { display: inline-flex; gap: 8px; font-weight: 600; color: #cdccc4; }
.nx-ptime.is-paused { opacity: .6; }
.nx-ptime .is-target { color: #b9e04a; }
.nx-ptime .is-over { color: #ff9b8f; }
.nx-pnotes { position: fixed; top: 64px; right: 18px; bottom: 18px; width: min(430px, 38vw); z-index: 120001; box-sizing: border-box; background: #1c1c1a; color: #e8e8e2; border-radius: 16px; box-shadow: 0 14px 38px rgba(0,0,0,0.4); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; overflow: auto; font: 400 18px/1.55 'Golos Text', Arial, sans-serif; }
.nx-pnotes-head { font: 600 12px/1.2 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #b9e04a; }
.nx-pnotes-title { font-size: 20px; font-weight: 800; line-height: 1.3; color: #fff; }
.nx-pnotes-body { white-space: pre-line; }
.nx-pnotes-foot { margin-top: auto; font: 500 12px/1.5 'IBM Plex Mono', ui-monospace, monospace; color: #9a9a92; }
.nx-ptoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120002; background: rgba(24,24,22,0.92); color: #f0efe9; border-radius: 14px; padding: 12px 18px; font: 500 14px/1.45 'Golos Text', Arial, sans-serif; box-shadow: 0 12px 30px rgba(0,0,0,0.35); max-width: 92vw; box-sizing: border-box; text-align: center; transition: opacity .4s ease; pointer-events: none; }
.nx-ptoast kbd { font: 700 12px/1 'IBM Plex Mono', ui-monospace, monospace; background: rgba(255,255,255,0.14); border-radius: 5px; padding: 3px 6px; margin: 0 2px; }


/* ───────── 13. Плавающий плеер: полоса сверху, лист глав, оглавление слева (news-player.js) ───────── */
/* полоса — как sticky-бар метода гайдов (§4): #1d1d1b, белый текст, акцент #b9e0c6, 56px; z-index 15000 (§2.4) */
/* высота полосы живёт на .nx-bar-in: со вторым рядом «Перейти к новости …» полоса просто становится выше
   (56 → 104px), и её тень накрывает оба ряда как один блок. Отступ якоря считает barH() в news-player.js. */
.nx-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 15000; background: #1d1d1b; color: #fff; font-family: 'Golos Text', Arial, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,0.18); transform: translateY(-110%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; }
.nx-bar.is-on { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.nx-bar [hidden] { display: none !important; }
.nx-bar-in { box-sizing: border-box; height: 56px; max-width: 1600px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.nx-bar-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,0.10); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; }
.nx-bar-btn:hover { background: rgba(255,255,255,0.22); }
.nx-bar-play { width: 40px; height: 40px; background: #b9e0c6; color: #1d1d1b; }
.nx-bar-play:hover { background: #cdead6; }
.nx-bar-play .nx-i-pause, .nx-bar-play.is-playing .nx-i-play { display: none; }
.nx-bar-play.is-playing .nx-i-pause { display: block; }
.nx-bar-btn:focus-visible, .nx-bar-pill:focus-visible, .nx-bar-now:focus-visible { outline: 2px solid #b9e0c6; outline-offset: 2px; }
.nx-bar-now { flex: 0 1 440px; min-width: 0; display: flex; align-items: baseline; gap: 6px; background: none; border: 0; color: #fff; font: 600 14px/1.25 'Golos Text', Arial, sans-serif; cursor: pointer; text-align: left; padding: 6px 6px; border-radius: 8px; }
.nx-bar-now:hover { background: rgba(255,255,255,0.08); }
.nx-bar-now b { flex: none; color: #b9e0c6; font-weight: 600; }
.nx-bar-now span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-bar-track { flex: 1 1 220px; min-width: 120px; height: 36px; position: relative; cursor: pointer; touch-action: none; border-radius: 6px; }
.nx-bar-rail { position: absolute; left: 7px; right: 7px; top: 50%; height: 4px; margin-top: -2px; background: rgba(255,255,255,0.18); border-radius: 2px; }
.nx-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #b9e0c6; border-radius: 2px; }
.nx-bar-tick { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255,255,255,0.55); border-radius: 1px; pointer-events: none; }
.nx-bar-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(185,224,198,0.35); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.nx-bar-track:hover .nx-bar-knob, .nx-bar-track:focus-visible .nx-bar-knob, .nx-bar-track.is-drag .nx-bar-knob { opacity: 1; }
.nx-bar-track:focus-visible { outline: 2px solid #b9e0c6; outline-offset: 0; }
.nx-bar-time { flex: none; font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; color: #e8e8e2; white-space: nowrap; letter-spacing: .02em; }
.nx-bar-pill { flex: none; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.20); background: transparent; color: #fff; font: 600 13px/1 'Golos Text', Arial, sans-serif; padding: 0 10px; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.nx-bar-pill:hover { background: rgba(255,255,255,0.10); }
.nx-bar-rate { min-width: 52px; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.nx-bar-resume { border-color: #b9e0c6; color: #b9e0c6; }
/* переключатель слежения (справа от скорости): «Слежу за аудио» — страница идёт за звуком, «Листаю сам» —
   не двигается. Моно-подпись брендбука, зелёный акцент во включённом состоянии и серый в выключенном;
   min-width держит ширину при смене подписи, чтобы полоса не дёргалась. Состояние — только aria-pressed:
   узлы не вставляются (правило против мигания точечного рейла, SOURCE.md патч 3). */
.nx-bar-follow { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 152px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .02em; }
.nx-follow-dot { flex: none; box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .15s ease, box-shadow .15s ease; }
.nx-bar-follow[aria-pressed="true"] { color: #b9e0c6; border-color: rgba(185,224,198,0.55); }
.nx-bar-follow[aria-pressed="true"] .nx-follow-dot { background: #b9e0c6; box-shadow: 0 0 0 3px rgba(185,224,198,0.22); }
.nx-bar-follow[aria-pressed="false"] { color: #a3a19a; border-color: rgba(255,255,255,0.18); }
.nx-bar-follow[aria-pressed="false"] .nx-follow-dot { background: transparent; box-shadow: none; }
.nx-follow-short { display: none; }
@media (prefers-reduced-motion: reduce) { .nx-follow-dot { transition: none; } }
.nx-bar-line { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.14); }
.nx-bar-line i { display: block; height: 100%; width: 0; background: #b9e0c6; }
/* скорость на узких экранах уходит, а переключатель слежения остаётся — только с короткой подписью */
@media (max-width: 1260px) {
  .nx-bar-rate { display: none; }
  .nx-bar-now { flex-basis: 260px; }
  .nx-bar-follow { min-width: 92px; }
  .nx-follow-long { display: none; }
  .nx-follow-short { display: inline; }
}
@media (max-width: 760px) {
  .nx-bar-btn[data-nx-act="prev"], .nx-bar-btn[data-nx-act="next"], .nx-bar-track, .nx-bar-total, .nx-bar-resume { display: none; }
  .nx-bar-now { flex: 1 1 auto; }
  .nx-bar-line { display: block; }
}
@media (max-width: 560px) {
  .nx-bar-in { height: 52px; padding: 0 10px; gap: 6px; }
  .nx-bar-play { width: 36px; height: 36px; }
  .nx-bar-now { font-size: 13.5px; padding: 6px 4px; }
  .nx-bar-now b { display: none; }
  .nx-bar-time { font-size: 12px; }
  .nx-bar-follow { min-width: 84px; height: 30px; padding: 0 8px; gap: 6px; font-size: 11.5px; }
}
/* второй ряд полосы «Перейти к новости 4 · …»: читатель остался на новости, а радио ушло дальше
   (news-player.js). Ряд — часть полосы: тот же фон, во всю ширину, без своей тени и зазора; ряд 48px,
   поэтому полоса 56 → 104px (на телефоне 52 → 100px). Показ/скрытие — атрибут hidden на ряде, надпись
   правит setText(), стрелка поворачивается по data-dir: узлы не добавляются, точечный рейл не мигает. */
.nx-bar-jump { box-sizing: border-box; width: 100%; padding: 6px 16px; display: flex; justify-content: center; overflow: hidden; animation: nxjumpin .22s cubic-bezier(.2,.8,.2,1); }
.nx-jump { box-sizing: border-box; min-width: 0; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 17px; border: 0; border-radius: 999px; background: #1e6e52; color: #fff; font: 600 14px/1 'Golos Text', Arial, sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s ease; }
.nx-jump:hover { background: #14503b; }
.nx-jump:focus-visible { outline: 2px solid #b9e0c6; outline-offset: 2px; }
.nx-jump-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nx-jump-arrow { flex: none; transition: transform .2s ease; }
.nx-jump[data-dir="up"] .nx-jump-arrow { transform: rotate(180deg); }
@keyframes nxjumpin { from { max-height: 0; opacity: 0; transform: translateY(-8px); } to { max-height: 48px; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nx-bar-jump { animation: none; } .nx-jump, .nx-jump-arrow { transition: none; } }
@media (max-width: 560px) {
  .nx-bar-jump { padding: 6px 10px; }                /* плашка во всю ширину ряда минус поля 10px */
  .nx-jump { width: 100%; padding: 0 13px; gap: 6px; font-size: 13.5px; }
}
/* лист глав: под полосой справа; на телефоне — во всю ширину */
.nx-chsheet { position: fixed; top: 56px; right: 16px; z-index: 15001; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; box-sizing: border-box; background: #1d1d1b; color: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); padding: 6px 8px 12px; font-family: 'Golos Text', Arial, sans-serif; }
.nx-chsheet[hidden] { display: none !important; }
.nx-chsheet [hidden] { display: none !important; }
.nx-chsheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 4px; }
.nx-chsheet-label { flex: 1; font: 400 12px/1.3 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #a3a19a; }
.nx-chsheet-list { list-style: none; margin: 0; padding: 0; }
.nx-chsheet-item { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 9px 8px 11px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
.nx-chsheet-time { flex: none; background: none; border: 0; padding: 0; color: #b9e0c6; font: 500 13px/1.3 'IBM Plex Mono', ui-monospace, monospace; cursor: pointer; min-width: 44px; text-align: left; }
.nx-chsheet-title { min-width: 0; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.35; }
.nx-chsheet-title:hover { color: #b9e0c6; }
.nx-chsheet-item.is-current { background: rgba(185,224,198,0.12); border-left-color: #b9e0c6; }
.nx-chsheet-item.is-current .nx-chsheet-title { font-weight: 700; }
.nx-chsheet-bar { position: absolute; left: 62px; right: 10px; bottom: 4px; height: 2px; }
.nx-chsheet-item.is-current .nx-chsheet-bar { background: rgba(255,255,255,0.15); }
.nx-chsheet-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #b9e0c6; }
.nx-chsheet-item:not(.is-current) .nx-chsheet-bar i { width: 0; }
/* конец выпуска и общий список источников — последними пунктами листа глав (источники живут внизу страницы) */
.nx-chsheet-extra { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,0.10); }
.nx-chsheet-extra a { display: block; padding: 7px 8px; color: #a3a19a; text-decoration: none; font-size: 14px; font-weight: 500; }
.nx-chsheet-extra a:hover { color: #b9e0c6; }
@media (max-width: 560px) { .nx-chsheet { top: 52px; left: 0; right: 0; width: auto; border-radius: 0 0 16px 16px; } }
/* оглавление с таймкодами: в левом поле рядом с колонкой 944px, ширину и позицию считает news-player.js */
.nx-toc { position: fixed; top: 72px; left: var(--nx-toc-left, 16px); width: var(--nx-toc-w, 220px); max-height: calc(100vh - 96px); overflow: auto; z-index: 9998; box-sizing: border-box; font-family: 'Golos Text', Arial, sans-serif; scrollbar-width: thin; }
.nx-toc[hidden] { display: none !important; }
/* со вторым рядом полоса выше — оглавление опускается, чтобы она не накрывала первые главы */
html:has(.nx-bar-jump:not([hidden])) .nx-toc { top: 120px; max-height: calc(100vh - 144px); }
.nx-toc-head { font: 400 12px/1.3 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #a3a19a; margin: 0 0 8px 12px; }
.nx-toc-list, .nx-toc-extra { list-style: none; margin: 0; padding: 0; }
.nx-toc-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: baseline; padding: 6px 8px 9px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
.nx-toc-time { background: none; border: 0; padding: 0; color: #7a7a74; font: 500 12px/1.35 'IBM Plex Mono', ui-monospace, monospace; cursor: pointer; text-align: left; }
.nx-toc-time:hover, .nx-toc-time:focus-visible { color: #1e6e52; text-decoration: underline; outline: none; }
.nx-toc-title { color: #55534d; text-decoration: none; font-size: 13.5px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.nx-toc-title:hover { color: #1e6e52; }
.nx-toc-item.is-current { background: #eef4f0; border-left-color: #1e6e52; }
.nx-toc-item.is-current .nx-toc-time { color: #1e6e52; font-weight: 700; }
.nx-toc-item.is-current .nx-toc-title { color: #1d1d1b; font-weight: 700; }
.nx-toc-bar { position: absolute; left: 10px; right: 8px; bottom: 3px; height: 2px; }
.nx-toc-item.is-current .nx-toc-bar { background: #d8e5dc; }
.nx-toc-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #1e6e52; }
.nx-toc-item:not(.is-current) .nx-toc-bar i { width: 0; }
.nx-toc.is-narrow .nx-toc-item { grid-template-columns: minmax(0, 1fr); }
.nx-toc-extra { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e8e6e2; }
.nx-toc-extra a { display: block; padding: 4px 12px; color: #7a7a74; text-decoration: none; font-size: 12.5px; font-weight: 500; }
.nx-toc-extra a:hover { color: #1e6e52; }
/* пока видно оглавление, точечный рейл v2-enhance скрыт: оба живут в левом поле. !important нужен против
   инлайнового display, который spyRail() ставит на каждой прокрутке */
html.nx-toc-on [data-v2-rail] { display: none !important; }
html[data-dark="1"] .nx-toc { filter: invert(1) hue-rotate(180deg); }
/* режим ведущего: полоса (вместе со вторым рядом) и оглавление скрыты для чистой записи, клавиша A включает */
html.nx-present:not(.nx-player-ui) .nx-bar, html.nx-present:not(.nx-player-ui) .nx-toc,
html.nx-present:not(.nx-player-ui) .nx-chsheet { display: none !important; }
html.nx-present.nx-player-ui.nx-bar-on .nx-pcount { top: 72px; }
html.nx-present.nx-player-ui.nx-bar-on .nx-pnotes { top: 120px; }
/* со вторым рядом полоса выше — счётчик и заметки ведущего опускаются под неё */
html.nx-present.nx-player-ui.nx-bar-on:has(.nx-bar-jump:not([hidden])) .nx-pcount { top: 120px; }
html.nx-present.nx-player-ui.nx-bar-on:has(.nx-bar-jump:not([hidden])) .nx-pnotes { top: 168px; }
