/* ============================================================================
   news.css — блоки главной раздела «Новости» (news.html).
   Каркас — ui-base.css, дизайн-слой и токены (--mx-*) — kyrs.css, фон — kyrs-scene.css.
   Цвет рынка в каждом блоке — переменная --cc (крипта / акции / макро / политика).
   ============================================================================ */

/* ===== общее (как на подстраницах «Курсов активов») ===== */
.cm-empty { padding: 22px 16px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.page-content .up { color: var(--green, #4ade80); } .page-content .down { color: var(--red, #f87171); }
.live-dot.off { background: var(--text-secondary); animation: none; opacity: .6; }
.cm-verdict { display: block; margin: 10px 0 30px; padding: 0 4px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.cm-verdict:empty { margin: 0 0 30px; }
.cm-verdict > i { color: var(--gold, #d4af37); margin-right: 4px; }
.cm-verdict b { color: var(--text-color); }
.cm-verdict b.up { color: var(--green, #4ade80); } .cm-verdict b.down { color: var(--red, #f87171); }
.cm-num { margin-right: 4px; font: 600 26px/1 var(--mx-f-display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--mx-gold-line); opacity: .9; }
.cm-tip { position: absolute; z-index: 5; display: none; pointer-events: none; max-width: 340px; padding: 8px 11px; border: 1px solid var(--mx-line-strong); border-radius: 10px; background: rgba(16,16,15,.94); box-shadow: 0 10px 28px rgba(0,0,0,.4); font-size: 13px; line-height: 1.55; color: #e9e7df; white-space: normal; }
.cm-tip b { color: #fff; } .cm-tip span { color: #a9a79c; }
.nw-page button { font-family: inherit; }

/* значки, общие для блоков */
.nw-imp { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.nw-imp i { width: 3px; border-radius: 1px; background: var(--mx-line-strong); }
.nw-imp i:nth-child(1) { height: 5px; } .nw-imp i:nth-child(2) { height: 8px; } .nw-imp i:nth-child(3) { height: 11px; }
.nw-imp.i1 i:nth-child(1), .nw-imp.i2 i:nth-child(-n+2) { background: var(--gold, #d4af37); }
.nw-imp.i3 i { background: var(--red, #f87171); }
.nw-cat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); white-space: nowrap; }
.nw-cat i { font-size: 11.5px; }
.nw-sent { font-size: 11.5px; margin-right: 6px; vertical-align: 1px; }
.nw-tag { border: 1px solid var(--mx-line); background: transparent; border-radius: 6px; padding: 1px 7px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.nw-tag:hover { color: var(--text-color); border-color: var(--mx-gold-line); }
.nw-srcname { font-size: 13px; font-weight: 600; color: var(--text-color); opacity: .85; }
.nw-lang { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--mx-line-strong); color: var(--text-secondary); }

/* ===== 01. ПУЛЬС ===== */
.nw-pulse { padding: 14px 16px 12px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: linear-gradient(180deg, rgba(212,175,55,.04), transparent 40%), var(--mx-surface); }
.nw-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 12px; }
.nw-stats span { display: flex; flex-direction: column; gap: 2px; }
.nw-stats small { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.nw-stats b { font: 600 22px/1.1 var(--mx-f-display); color: var(--text-color); }
.nw-stats em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); }
.nw-pulse-box { position: relative; min-height: 170px; }
.nw-pulse-box canvas { display: block; }
.nw-pulse-box .cm-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 10px; background: var(--mx-surface-2); }
.nw-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.nw-leg span { display: inline-flex; align-items: center; gap: 6px; }
.nw-leg i { width: 10px; height: 10px; border-radius: 3px; }
.nw-leg i.dot { width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.nw-leg i.avg { width: 16px; height: 0; border-top: 1px dashed var(--text-secondary); border-radius: 0; }

/* ===== 02. ГЛАВНОЕ ===== */
.nw-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.nw-top > .cm-empty { grid-column: 1 / -1; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.nw-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; transition: border-color .15s, transform .15s; }
.nw-card::before { content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cc); opacity: .8; }
.nw-card:hover { border-color: var(--mx-line-strong); transform: translateY(-2px); }
.nw-card.lead { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 10%, transparent), transparent 55%), var(--mx-surface); }
/* фото: у ведущей — слева на всю высоту, у остальных — полоса сверху 16:7 */
.nw-top-img { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 7; overflow: hidden; background: center / cover no-repeat;
    background-color: color-mix(in srgb, var(--cc) 10%, var(--bg-color, #0a0a0a)); }
/* две карточки справа от ведущей — компактные: фото маленьким квадратом слева, 2 строки описания.
   От их высоты зависит высота ведущей (она на 2 ряда), поэтому так ведущая не раздувается */
.nw-card.side { flex-direction: row; }
.nw-card.side .nw-top-img { flex: 0 0 120px; aspect-ratio: auto; }
.nw-card.side .nw-top-img > i { font-size: 22px; }
.nw-card.side .nw-card-body { padding: 12px 14px; gap: 7px; }
.nw-card.side .nw-card-title { font-size: 13.5px; }
.nw-card.side p { -webkit-line-clamp: 2; font-size: 13px; }
/* ведущая — фото на весь фон, текст поверх снизу (журнальная обложка) */
.nw-card.lead.has-img { flex-direction: column; justify-content: flex-end; min-height: 360px; max-height: 460px; }
.nw-card.lead .nw-top-img { position: absolute; inset: 0; aspect-ratio: auto; }
.nw-card.lead .nw-card-body { position: relative; z-index: 1; flex: 0 0 auto; padding: 120px 22px 18px 24px; background: linear-gradient(180deg, transparent, rgba(8,8,8,.78) 38%, rgba(8,8,8,.94)); }
.nw-card.lead .nw-card-title, .nw-card.lead .nw-srcname { color: #fff; }
.nw-card.lead p, .nw-card.lead .nw-when { color: rgba(255,255,255,.78); }
.nw-card.lead .nw-tag { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.22); }
.nw-card.lead .nw-imp i { background: rgba(255,255,255,.3); }
.nw-card.lead .nw-imp.i1 i:nth-child(1), .nw-card.lead .nw-imp.i2 i:nth-child(-n+2) { background: var(--gold, #d4af37); }
.nw-card.lead .nw-imp.i3 i { background: var(--red, #f87171); }
.nw-card.lead .nw-top-img.ready::before { display: none; }
.nw-top-img > i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; color: var(--cc); opacity: .35; transition: opacity .3s; }
.nw-card.lead .nw-top-img > i { font-size: 54px; }
/* ждём картинку — по заглушке бежит блик */
.nw-top-img.wait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.07) 45%, transparent 70%); background-size: 220% 100%; animation: nwShine 1.3s linear infinite; }
/* загрузилась — проявляется, значок прячется */
.nw-top-img.ready { animation: nwFade .5s ease; }
.nw-top-img.ready.instant { animation: none; }   /* перерисовка при обновлении — без повторного проявления */
.nw-top-img.ready > i { opacity: 0; }
/* картинки нет — оставляем аккуратную плашку цвета рынка со значком, без пустоты */
.nw-top-img.none { background-image: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cc) 28%, transparent), transparent 60%), repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--cc) 6%, transparent) 10px 11px); }
.nw-top-img.none > i { opacity: .55; }
.nw-top-img.ready::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
@keyframes nwShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes nwFade { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .nw-top-img.wait::after, .nw-top-img.ready { animation: none; } }
.nw-card-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 14px 18px; flex: 1; min-width: 0; }
.nw-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.nw-when { margin-left: auto; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.nw-card-title { color: var(--text-color); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.nw-card.lead .nw-card-title { font: 600 clamp(18px, 2vw, 24px)/1.3 var(--mx-f-display); letter-spacing: -.01em; }
.nw-card-title:hover { color: var(--gold-light, #f5d97a); }
.nw-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card.lead p { -webkit-line-clamp: 5; font-size: 13.5px; }
.nw-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-also { font-size: 12.5px; color: var(--gold, #d4af37); cursor: help; white-space: nowrap; }
.nw-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ===== 03. О ЧЁМ ПИШУТ ===== */
.nw-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; padding: 12px 16px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.nw-themes > .cm-empty { grid-column: 1 / -1; }
.nw-theme { display: grid; grid-template-columns: 150px 1fr 70px 56px; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.nw-theme:hover { background: var(--mx-surface-2); }
.nw-theme.on { border-color: var(--mx-gold-line); background: var(--mx-gold-wash); }
.nw-theme-n { font-size: 13px; font-weight: 600; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-theme-bar { height: 8px; border-radius: 4px; background: var(--mx-surface-2); overflow: hidden; }
.nw-theme-bar i { display: block; height: 100%; border-radius: 4px; background: var(--cc); opacity: .85; }
.nw-theme-c { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; font-size: 13px; }
.nw-theme-c b { font-size: 14px; color: var(--text-color); }
.nw-theme-c em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); }
.nw-theme-tone { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--mx-surface-2); }
.nw-theme-tone i.p { background: var(--green, #4ade80); } .nw-theme-tone i.n { background: var(--red, #f87171); }

/* ===== 04. ТОН ПО РЫНКАМ ===== */
.nw-tone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.nw-tone > .cm-empty { grid-column: 1 / -1; border: 1px solid var(--mx-line); border-radius: var(--mx-r); }
.nw-tone-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--mx-line); border-top: 2px solid var(--cc); border-radius: var(--mx-r); background: var(--mx-surface); color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.nw-tone-card:hover { background: var(--mx-surface-2); }
.nw-tone-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-color); }
.nw-tone-h i { color: var(--cc); }
.nw-tone-h b { margin-left: auto; font: 600 22px/1 var(--mx-f-display); }
.nw-tone-meter { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--mx-surface-2); }
.nw-tone-meter i { display: block; height: 100%; }
.nw-tone-meter i.n { background: var(--red, #f87171); } .nw-tone-meter i.z { background: var(--mx-line-strong); } .nw-tone-meter i.p { background: var(--green, #4ade80); }
.nw-tone-w { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.nw-tone-s { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-secondary); }
.nw-tone-s .hot { color: var(--red, #f87171); }
.nw-tone-t { font-size: 13px; color: var(--text-secondary); border-top: 1px dashed var(--mx-line); padding-top: 8px; }

/* ===== 05. ЛЕНТА ===== */
.nw-bar { margin-bottom: 10px; }
.nw-cats .filter-chip em { font-style: normal; font-size: 12.5px; opacity: .65; margin-left: 2px; }
.nw-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nw-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); }
.nw-seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 13px; color: var(--text-secondary); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nw-seg button.on { background: var(--gold, #d4af37); color: #141413; }
.nw-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); color: var(--text-secondary); }
.nw-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-color); font: inherit; font-size: 13px; }
.nw-search:focus-within { border-color: var(--mx-gold-line); }
.nw-tagf { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 13px; border-radius: 999px; background: var(--mx-gold-wash); border: 1px solid var(--mx-gold-line); color: var(--gold, #d4af37); font-size: 13.5px; font-weight: 600; }
.nw-tagf[hidden] { display: none; }
.nw-tagf button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 4px; }
.nw-fresh { display: block; width: 100%; margin: 4px 0 10px; padding: 9px; border: 1px dashed var(--mx-gold-line); border-radius: 10px; background: var(--mx-gold-wash); color: var(--gold, #d4af37); font-size: 13px; font-weight: 600; cursor: pointer; animation: nwIn .3s ease; }
.nw-fresh[hidden] { display: none; }
.nw-feed { border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; }
.nw-day { position: sticky; top: 0; z-index: 1; padding: 8px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #d4af37); background: var(--bg-color, #0a0a0a); border-bottom: 1px solid var(--mx-line); }
.nw-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--mx-line); border-left: 3px solid transparent; transition: background .15s; }
.nw-item:hover { background: var(--mx-surface-2); border-left-color: var(--cc); }
.nw-item.new { animation: nwNew 2.4s ease; border-left-color: var(--gold, #d4af37); }
.nw-item time { font: 600 13px/1.4 var(--mx-f-display); color: var(--text-secondary); padding-top: 1px; }
.nw-item-b { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nw-item-b > a { color: var(--text-color); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.nw-item-b > a:hover { color: var(--gold-light, #f5d97a); }
.nw-item-b p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-item-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 2px; }
.nw-more { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 34px; font-size: 13px; color: var(--text-secondary); }
.nw-more button { padding: 9px 22px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); color: var(--text-color); font-size: 13px; font-weight: 600; cursor: pointer; }
.nw-more button:hover { border-color: var(--mx-gold-line); }
.nw-more button[hidden] { display: none; }
@keyframes nwNew { from { background: var(--mx-gold-wash); } to { background: transparent; } }
@keyframes nwIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ===== 06. ИСТОЧНИКИ ===== */
.nw-src { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nw-src > .cm-empty { grid-column: 1 / -1; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.nw-src-i { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-surface); color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.nw-src-i:hover { background: var(--mx-surface-2); }
.nw-src-i.on { border-color: var(--mx-gold-line); background: var(--mx-gold-wash); }
.nw-src-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-color); }
.nw-src-bar { height: 4px; border-radius: 2px; background: var(--mx-surface-2); overflow: hidden; }
.nw-src-bar i { display: block; height: 100%; background: var(--cc); }
.nw-src-m { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--text-secondary); }
.nw-st { margin-left: auto; } .nw-st.ok { color: var(--green, #4ade80); } .nw-st.bad { color: var(--red, #f87171); }

/* ===== ДАЛЬШЕ ===== */
.cm-next { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 34px 0 10px; }
.cm-next a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1px dashed var(--mx-line-strong); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.cm-next a:hover { border-color: var(--mx-gold-line); background: var(--mx-gold-wash); }
.cm-next i { grid-row: span 2; font-size: 16px; color: var(--gold, #d4af37); }
.cm-next b { font-size: 13px; color: var(--text-color); }
.cm-next span { font-size: 13px; color: var(--text-secondary); }

/* ===== СВЕТЛАЯ ТЕМА ===== */
body.light .page-content .up, body.light .cm-verdict b.up { color: #15803d; }
body.light .page-content .down, body.light .cm-verdict b.down { color: #b91c1c; }
body.light .cm-num { -webkit-text-stroke-color: rgba(138,106,16,.55); }
body.light .nw-day { background: var(--bg-color, #f4f5f7); }
body.light .nw-card-title:hover, body.light .nw-item-b > a:hover { color: #8a6a10; }
body.light .nw-cat { background: color-mix(in srgb, var(--cc) 16%, transparent); filter: brightness(.8); }

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .nw-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-card.lead { grid-row: auto; }
    .nw-tone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-src { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nw-themes { grid-template-columns: 1fr; }
    .cm-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .strip-head { flex-wrap: wrap; }
    .cm-num { font-size: 20px; }
    .nw-top, .nw-tone { grid-template-columns: 1fr; }
    .nw-card.lead { grid-column: auto; grid-row: auto; }
    .nw-card.lead.has-img { flex-direction: column; }
    .nw-top-img { flex-basis: auto; min-height: 150px; }
    .nw-card.lead.has-img { min-height: 360px; }
    .nw-card.lead .nw-card-body { padding: 90px 16px 16px 18px; }
    .nw-src { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-theme { grid-template-columns: 110px 1fr 56px; gap: 8px; }
    .nw-theme-tone { display: none; }
    .nw-item { grid-template-columns: 1fr; gap: 4px; padding: 11px 12px; }
    .nw-stats { gap: 10px 20px; }
    .nw-stats b { font-size: 18px; }
    .cm-next { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .nw-src { grid-template-columns: 1fr; } }

/* ===== ОКНО НОВОСТИ (news-modal.js) ===== */
html.nm-lock { overflow: hidden; }
.nm-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(5,5,5,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; }
.nm-overlay[hidden] { display: none; }
.nm-overlay.on { opacity: 1; }
.nm { position: relative; width: min(980px, 100%); max-height: 92vh; display: flex; border: 1px solid var(--mx-line-strong); border-radius: 18px; background: var(--bg-color, #0a0a0a); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; transform: translateY(10px); transition: transform .18s; }
.nm-overlay.on .nm { transform: none; }
.nm-scroll { flex: 1; overflow-y: auto; padding: 0 0 18px; }
.nm-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mx-line-strong); background: rgba(10,10,10,.7); color: #fff; cursor: pointer; font-size: 16px; }
.nm-x:hover { border-color: var(--mx-gold-line); color: var(--gold, #d4af37); }
.nm-dim { color: var(--text-secondary); font-weight: 400; font-size: 13px; }
.nm-head { position: relative; border-bottom: 1px solid var(--mx-line); background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 12%, transparent), transparent 60%); }
.nm-img { height: 200px; background: center / cover no-repeat var(--mx-surface-2); mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
.nm-head-b { padding: 20px 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.nm-img + .nm-head-b { margin-top: -70px; position: relative; }
.nm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-color); padding-right: 40px; }
.nm h2 { margin: 0; font: 600 clamp(19px, 2.3vw, 26px)/1.3 var(--mx-f-display); letter-spacing: -.01em; color: var(--text-color); }
.nm-sum { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.nm-orig { padding: 10px 14px; border-left: 2px solid var(--mx-gold-line); background: var(--mx-surface); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--text-secondary); }
.nm-orig[hidden] { display: none; }
.nm-orig b { color: var(--text-color); } .nm-orig p { margin: 6px 0 0; }
.nm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.nm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); color: var(--text-color); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.nm-btn:hover, .nm-btn.on { border-color: var(--mx-gold-line); color: var(--gold, #d4af37); }
.nm-btn.main { background: var(--gold, #d4af37); border-color: var(--gold, #d4af37); color: #141413; }
.nm-btn.main:hover { filter: brightness(1.08); color: #141413; }
.nm-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.nm-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--mx-line-strong); font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.nm section { padding: 18px 24px 4px; }
.nm h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-color); }
.nm h3 > i { color: var(--gold, #d4af37); }
.nm h3 .nm-dim { text-transform: none; letter-spacing: 0; }
.nm-why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.nm-why li { padding-left: 14px; position: relative; }
.nm-why li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--mx-gold-line); }
.nm-why b { color: var(--text-color); }
.nm-why-imp { display: inline-flex; align-items: center; gap: 8px; }
.nm-react { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nm-a { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-surface); }
.nm-a-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.nm-a-h b { color: var(--text-color); }
.nm-a-c { font: 600 22px/1.15 var(--mx-f-display); color: var(--text-color); }
.nm-a-x { font-size: 13px; color: var(--text-secondary); min-height: 16px; }
.nm-a-x .hot, .nm-sim .hot { color: var(--gold, #d4af37); font-weight: 700; }
.nm-sp { width: 100%; height: 54px; display: block; overflow: visible; }
.nm-sp path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.nm-sp .pre { stroke: var(--text-secondary); opacity: .45; }
.nm-sp .post { stroke: var(--gold, #d4af37); stroke-width: 2; }
.nm-sp.up .post { stroke: var(--green, #4ade80); } .nm-sp.down .post { stroke: var(--red, #f87171); }
.nm-sp line { stroke: var(--text-secondary); stroke-dasharray: 3 3; opacity: .7; vector-effect: non-scaling-stroke; }
.nm-sp-none { height: 54px; display: grid; place-items: center; font-size: 12.5px; color: var(--text-secondary); }
.nm-a-s { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
.nm-a-s b { color: var(--text-color); font-weight: 600; }
.nm .up { color: var(--green, #4ade80); } .nm .down { color: var(--red, #f87171); } .nm .flat { color: var(--text-secondary); }
.nm-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.nm-note > i { color: var(--gold, #d4af37); margin-right: 4px; }
.nm-note b { color: var(--text-color); }
.nm-skel { height: 150px; border-radius: 12px; background: linear-gradient(100deg, var(--mx-surface) 30%, var(--mx-surface-2) 50%, var(--mx-surface) 70%); background-size: 220% 100%; animation: nwShine 1.3s linear infinite; }
.nm-skel.wide { height: 120px; }
.nm-sim-top { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.nm-sim-top b { color: var(--text-color); }
.nm-sim-wrap { overflow-x: auto; border: 1px solid var(--mx-line); border-radius: 12px; }
.nm-sim { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.nm-sim th { padding: 9px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); background: var(--mx-surface); border-bottom: 1px solid var(--mx-line); }
.nm-sim td { padding: 9px 12px; border-bottom: 1px solid var(--mx-line); color: var(--text-color); vertical-align: top; }
.nm-sim tr:last-child td { border-bottom: 0; }
.nm-sim td b { font-size: 14px; }
.nm-sim td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-secondary); }
.nm-play { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nm-sc { padding: 12px 14px; border: 1px dashed var(--mx-line-strong); border-radius: 12px; }
.nm-sc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--text-color); }
.nm-sc-a { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 13.5px; }
.nm-cal { display: flex; flex-direction: column; border: 1px solid var(--mx-line); border-radius: 12px; overflow: hidden; }
.nm-ev { display: grid; grid-template-columns: 150px 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--mx-line); font-size: 13px; }
.nm-ev-d { font-size: 13px; color: var(--gold, #d4af37); font-weight: 600; }
.nm-ev b { color: var(--text-color); font-weight: 600; }
.nm-more { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--gold, #d4af37); text-decoration: none; }
.nm-rel { display: flex; flex-direction: column; border: 1px solid var(--mx-line); border-radius: 12px; overflow: hidden; }
.nm-rel-h { padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d4af37); background: var(--mx-surface); border-bottom: 1px solid var(--mx-line); }
.nm-rel-i { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--mx-line); color: var(--text-color); text-decoration: none; font-size: 13px; }
.nm-rel-i:hover { background: var(--mx-surface-2); }
.nm-rel-i em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
/* лента и карточки — это кнопки открытия окна */
#feed .nw-item, #top .nw-card { cursor: pointer; }
body.light .nm-overlay { background: rgba(20,20,20,.45); }
body.light .nm-x { background: rgba(255,255,255,.85); color: #141414; }
@media (max-width: 760px) {
    .nm-overlay { padding: 0; align-items: stretch; }
    .nm { max-height: none; height: 100%; border-radius: 0; border: 0; }
    .nm-head-b, .nm section { padding-left: 16px; padding-right: 16px; }
    .nm-react { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-play { grid-template-columns: 1fr; }
    .nm-ev { grid-template-columns: 1fr auto; }
    .nm-ev .nm-dim { grid-column: 1 / -1; }
    .nm-tags { margin-left: 0; }
}
@media (max-width: 420px) { .nm-react { grid-template-columns: 1fr; } }
/* окно новости: текст статьи */
.nm-art { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-left: 2px solid var(--mx-gold-line); border-radius: 0 12px 12px 0; background: var(--mx-surface); }
.nm-art p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-color); }
.nm-art p.nm-dim { font-size: 13.5px; color: var(--text-secondary); }
.nm-skel.line { height: 14px; border-radius: 6px; }
.nm-skel.line.short { width: 60%; }

/* ===== ШАПКА: «облако тем дня» (news-page.js → renderDeck) ===== */
.nw-page .page-content .hero { align-items: center; }
/* облако — сразу справа от заголовка, по центру его высоты (не прижато к правому краю) */
.nw-page .page-content .hero { justify-content: flex-start; column-gap: 32px; }
.nw-deck { position: relative; flex: 0 1 370px; margin-left: 0; display: flex; flex-direction: column; gap: 6px; min-width: 280px; }
.nw-deck-air { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-secondary); padding: 0 4px; }
.nw-deck-air > span { white-space: nowrap; }
.nw-deck-air .hero-live { margin-left: auto; padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
.nw-onair { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: .14em; color: var(--red, #f87171); }
.nw-onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--red, #f87171); animation: nwAir 1.6s ease-out infinite; }
@keyframes nwAir { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.55); } 100% { box-shadow: 0 0 0 9px rgba(248,113,113,0); } }
.nw-cloud { position: relative; height: 190px; border-radius: 16px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, rgba(212,175,55,.06), transparent 70%); }
.nw-word { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; line-height: 1.1;
    font-family: var(--mx-f-display); font-weight: 600; letter-spacing: -.01em; color: var(--cc);
    opacity: .82; animation: nwFloat 7s ease-in-out infinite alternate; transition: opacity .2s, text-shadow .2s, transform .2s; }
.nw-word:hover, .nw-word:focus-visible { opacity: 1; text-shadow: 0 0 14px color-mix(in srgb, var(--cc) 70%, transparent); outline: 0; }
.nw-word.hot { opacity: 1; text-shadow: 0 0 12px color-mix(in srgb, var(--cc) 60%, transparent); }
.nw-word.hot::after { content: "↑"; font-size: .55em; margin-left: 2px; vertical-align: super; color: var(--gold, #d4af37); }
@keyframes nwFloat { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
.nw-cloud-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--text-secondary); }
body.light .nw-word { opacity: .95; filter: brightness(.82); }
@media (max-width: 1100px) { .nw-deck { flex-basis: 100%; order: 3; margin-left: 0; max-width: 640px; } }
@media (max-width: 700px) { .nw-deck { min-width: 0; } .nw-cloud { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .nw-word, .nw-onair i { animation: none; } }


/* ===== 03. МИР СЕЙЧАС — глобус (news-globe.js) ===== */
.gl-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.gl-stage, .gl-side { position: relative; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: radial-gradient(circle at 50% 45%, rgba(212,175,55,.06), transparent 60%), var(--mx-surface); }
.gl-stage { height: 480px; overflow: hidden; }
.gl-stage canvas { display: block; touch-action: none; }
.gl-stage canvas.drag { cursor: grabbing !important; }
.gl-legend { position: absolute; left: 14px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-secondary); pointer-events: none; }
.gl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gl-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gold, #d4af37); box-shadow: 0 0 8px currentColor; color: rgba(212,175,55,.6); }
.gl-dot.up { background: var(--green, #4ade80); color: rgba(74,222,128,.6); } .gl-dot.down { background: var(--red, #f87171); color: rgba(248,113,113,.6); }
.gl-ring { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--red, #f87171); }
.gl-side { display: flex; flex-direction: column; height: 480px; padding: 14px 14px 10px; }
.gl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gl-head b { font: 600 15px/1.2 var(--mx-f-display); color: var(--text-color); }
.gl-head span { font-size: 12.5px; color: var(--text-secondary); }
.gl-rank { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow: auto; }
.gl-r { display: grid; grid-template-columns: 18px 10px minmax(0, 1.1fr) minmax(0, 1fr) 46px; align-items: center; gap: 9px; padding: 8px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-color); cursor: pointer; text-align: left; }
.gl-r:hover { border-color: var(--mx-gold-line); background: var(--hover-bg); }
.gl-r-i { font-size: 12.5px; color: var(--text-secondary); text-align: right; }
.gl-r-n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-r-n i { font-style: normal; }
.gl-r-bar { height: 6px; border-radius: 3px; background: var(--mx-line); overflow: hidden; }
.gl-r-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold, #d4af37); }
.gl-r-bar i.up { background: var(--green, #4ade80); } .gl-r-bar i.down { background: var(--red, #f87171); }
.gl-r-c { font-size: 13px; font-weight: 700; text-align: right; }
.gl-r-c em { margin-left: 4px; font-size: 11.5px; font-style: normal; color: var(--red, #f87171); }
.gl-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--mx-line); font-size: 12.5px; color: var(--text-secondary); }
.gl-back { border: 1px solid var(--mx-line); background: transparent; color: var(--text-secondary); border-radius: 7px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.gl-back:hover { color: var(--text-color); border-color: var(--mx-gold-line); }
.gl-country { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gl-country b { font: 600 22px/1.1 var(--mx-f-display); color: var(--text-color); }
.gl-country .gl-dot { width: 12px; height: 12px; }
.gl-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.gl-nums span { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 1px solid var(--mx-line); border-radius: 9px; }
.gl-nums small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.gl-nums b { font-size: 16px; color: var(--text-color); } .gl-nums b i { font-style: normal; font-size: 13px; }
.gl-nums em { font-size: 12px; font-style: normal; color: var(--text-secondary); }
.gl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; } .gl-tags .nw-tag { cursor: default; }
.gl-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gl-n { display: flex; gap: 10px; padding: 7px 6px; border: 0; border-bottom: 1px solid var(--mx-line); background: transparent; color: var(--text-color); text-align: left; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.gl-n:hover { background: var(--hover-bg); }
.gl-n-t { flex: 0 0 38px; font-size: 12.5px; color: var(--text-secondary); padding-top: 1px; }
.gl-n-b small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.gl-live { display: flex; align-items: stretch; gap: 8px; margin: 10px 0 34px; overflow: hidden; }
.gl-live:empty { margin: 0 0 34px; }
.gl-live-h { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d4af37); }
.gl-live-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--red, #f87171); animation: glBlink 1.4s ease-in-out infinite; }
@keyframes glBlink { 50% { opacity: .25; } }
.gl-live-i { flex: 1 1 0; min-width: 0; max-height: calc(2.8em + 16px); padding: 8px 10px; border: 1px solid var(--mx-line); border-radius: 10px; background: var(--mx-surface); color: var(--text-color); text-align: left; cursor: pointer; font-size: 13px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gl-live-i:hover { border-color: var(--mx-gold-line); }
.gl-live-i b { margin-right: 6px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.gl-live-i em { margin-right: 6px; font-style: normal; font-weight: 700; color: var(--gold, #d4af37); }
body.light .gl-live-i em, body.light .gl-live-h { color: #8a6a10; }
@media (max-width: 1000px) { .gl-wrap { grid-template-columns: 1fr; } .gl-side { height: auto; max-height: 520px; } .gl-stage { height: 400px; } .gl-live { flex-wrap: wrap; } .gl-live-i { flex-basis: 100%; } }
@media (max-width: 520px) { .gl-stage { height: 330px; } .gl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-r { grid-template-columns: 18px 10px minmax(0, 1fr) 40px; } .gl-r-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .gl-live-h i { animation: none; } }

/* ===== ШАПКА: «Главное за 60 секунд» — кружки-сторис (news-stories.js) ===== */
.ns-ring { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 10px; border: 1px solid var(--mx-line); border-radius: 16px; background: radial-gradient(circle at 100% 0%, rgba(212,175,55,.08), transparent 60%), var(--mx-surface); }
.ns-ring-h { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.ns-ring-h i { color: var(--gold, #d4af37); margin-right: 4px; }
.ns-ring-h em { font-style: normal; letter-spacing: .04em; text-transform: none; font-size: 12.5px; color: #1a1405; background: var(--gold, #d4af37); padding: 1px 8px; border-radius: 999px; }
.ns-ring-h em.done { background: transparent; color: var(--text-secondary); padding: 0; }
.ns-ring-empty { padding: 20px 0; font-size: 13px; color: var(--text-secondary); }
.ns-ring-row { display: grid; grid-template-columns: repeat(4, 54px); gap: 12px 10px; padding: 4px 3px 0; }
.ns-bub { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--text-secondary); cursor: pointer; min-width: 0; }
.ns-bub-img { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: center / cover no-repeat; background-color: color-mix(in srgb, var(--cc) 22%, #151513); transition: transform .2s; }
.ns-bub-img::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 210deg, #f5d97a, #d4af37, #f87171, #f5d97a);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ns-bub.hot .ns-bub-img::before { animation: nsSpin 3s linear infinite; }
@keyframes nsSpin { to { transform: rotate(360deg); } }
.ns-bub.seen .ns-bub-img::before { background: var(--mx-line-strong); animation: none; }
.ns-bub.seen .ns-bub-img { opacity: .72; }
.ns-bub-img > i { font-size: 15px; color: var(--cc); opacity: .9; }
.ns-bub-img.ok > i { display: none; }
.ns-bub:hover .ns-bub-img { transform: scale(1.07); }
.ns-bub small { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.ns-bub:not(.seen) small { color: var(--text-color); }
body.light .ns-bub-img { background-color: color-mix(in srgb, var(--cc) 18%, #fff); }
@media (max-width: 1100px) { .ns-ring { order: 4; } }
@media (max-width: 700px) { .ns-ring { flex-basis: 100%; min-width: 0; } .ns-ring-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; padding: 6px 4px 4px; scrollbar-width: none; } }

/* окно сторис */
body.ns-lock { overflow: hidden; }
.ns-view { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; gap: 22px; }
.ns-view.on { display: flex; animation: nsIn .25s ease-out; }
@keyframes nsIn { from { opacity: 0; } }
.ns-back { position: absolute; inset: 0; background: rgba(5,5,4,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ns-card { position: relative; width: min(430px, 92vw); height: min(780px, 92vh); border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #fff; user-select: none; touch-action: pan-y; }
.ns-card.held .ns-body, .ns-card.held .ns-top { opacity: .35; transition: opacity .2s; }
.ns-bars { position: absolute; z-index: 4; left: 12px; right: 12px; top: 10px; display: flex; gap: 4px; }
.ns-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.ns-bars b { display: block; height: 100%; background: #fff; }
.ns-top { position: absolute; z-index: 4; left: 12px; right: 10px; top: 22px; display: flex; align-items: center; gap: 8px; }
.ns-top > span { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.ns-top .nw-cat { background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.ns-src { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-x, .ns-pause { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 14px; cursor: pointer; }
.ns-x { font-size: 18px; }
.ns-img { position: absolute; inset: 0; background: center / cover no-repeat; animation: nsZoom 7s linear both; }
@keyframes nsZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.ns-img > i { display: none; }
.ns-img.none { animation: none; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cc) 55%, transparent), transparent 60%), radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 55%), #121211; }
.ns-img.none > i { display: block; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 110px; color: var(--cc); opacity: .35; }
.ns-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 30%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.94) 100%); }
.ns-tap { position: absolute; z-index: 2; top: 70px; bottom: 0; cursor: pointer; }
.ns-tap.l { left: 0; width: 32%; } .ns-tap.r { right: 0; width: 68%; }
.ns-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 20px 20px; pointer-events: none; }
.ns-body button, .ns-body a { pointer-events: auto; }
.ns-num { font: 700 13px var(--mx-f-display); color: var(--cc); letter-spacing: .04em; margin-bottom: 6px; }
.ns-num span { color: rgba(255,255,255,.5); font-weight: 500; }
.ns-body h3 { margin: 0 0 10px; font: 700 22px/1.25 var(--mx-f-display); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.ns-body p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.82); }
.ns-whys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ns-why { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); }
.ns-why i { margin-right: 4px; color: var(--gold, #d4af37); }
.ns-why.hot { background: rgba(248,113,113,.2); color: #fecaca; } .ns-why.hot i { color: #f87171; }
.ns-react { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.ns-react-h { flex-basis: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ns-wait { font-size: 13px; color: rgba(255,255,255,.6); }
.ns-chip { padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 13.5px; font-weight: 700; color: #fff; }
.ns-chip b { font-weight: 600; color: rgba(255,255,255,.75); margin-right: 2px; }
.ns-chip.up { color: #4ade80; background: rgba(74,222,128,.12); } .ns-chip.down { color: #f87171; background: rgba(248,113,113,.12); }
.ns-chip em { margin-left: 5px; font-style: normal; font-size: 12px; padding: 0 5px; border-radius: 4px; background: #d4af37; color: #1a1405; }
.ns-acts { display: flex; gap: 8px; }
.ns-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: 11px; background: #d4af37; color: #1a1405; font: 700 13px var(--mx-f-ui, inherit); text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.ns-btn:hover { filter: brightness(1.08); }
.ns-arrow { position: relative; z-index: 1; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 15px; cursor: pointer; }
.ns-arrow:hover { background: rgba(255,255,255,.14); }
@media (max-width: 700px) { .ns-arrow { display: none; } .ns-card { width: 100vw; height: 100dvh; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .ns-img { animation: none; } .ns-bub.hot .ns-bub-img::before { animation: none; } }

/* ===== ШАПКА: «Телетайп» — бумажная лента свежих заголовков (news-teletype.js), только на широких экранах ===== */
.tt-box { display: none; position: relative; flex: 0 1 330px; min-width: 280px; height: 196px; align-self: flex-end; }
@media (min-width: 1640px) { .tt-box { display: block; } }
.tt-machine { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #2a2720, #191814); border: 1px solid rgba(212,175,55,.3); box-shadow: 0 6px 14px rgba(0,0,0,.45);
    font: 700 12px 'Courier New', monospace; letter-spacing: .2em; color: #d4af37; }
.tt-machine::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -4px; height: 4px; border-radius: 0 0 3px 3px; background: #0d0c0a; }
.tt-machine b { width: 7px; height: 7px; border-radius: 50%; background: #f87171; box-shadow: 0 0 8px #f87171; animation: ttLed 1.1s steps(2) infinite; }
@keyframes ttLed { 50% { opacity: .2; } }
.tt-machine span { margin-left: auto; letter-spacing: .08em; font-weight: 400; color: rgba(212,175,55,.6); }
/* бумага: перфорация по краям, лёгкая желтизна, тень загиба */
.tt-paper { position: absolute; left: 14px; right: 14px; top: 26px; bottom: 0; overflow: hidden; padding: 12px 22px 0;
    background:
        radial-gradient(circle at 7px 9px, #0b0b0a 2.6px, transparent 3.2px) left top / 14px 18px repeat-y,
        radial-gradient(circle at 7px 9px, #0b0b0a 2.6px, transparent 3.2px) right top / 14px 18px repeat-y,
        linear-gradient(90deg, rgba(0,0,0,.06), transparent 8%, transparent 92%, rgba(0,0,0,.06)),
        #efe6cf;
    box-shadow: inset 0 10px 12px -8px rgba(0,0,0,.45);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
    transform: rotate(.6deg); }
.tt-paper::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; bottom: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(120,90,30,.08) 21px 22px); }
.tt-tape { position: relative; display: block; }
.tt-box .tt-row { display: block; width: 100%; -webkit-text-fill-color: currentColor; text-shadow: none; padding: 4px 0 6px; border: 0; border-bottom: 1px dashed rgba(90,70,30,.25); background: none; text-align: left; cursor: pointer;
    font: 13.5px/1.38 'Courier New', 'Courier Prime', monospace; color: #15110a; animation: ttFeed .5s ease-out; }
@keyframes ttFeed { from { opacity: 0; transform: translateY(-8px); } }
.tt-row:hover .tt-h { text-decoration: underline; text-decoration-color: rgba(42,35,22,.4); }
.tt-t { display: inline; margin-right: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #7a4a00; }
.tt-t::after { content: " ▸"; }
.tt-row.hot .tt-t { color: #b91c1c; }
.tt-h { display: inline; font-weight: 700; }
.tt-box .tt-row { max-height: calc(2.76em + 10px); overflow: hidden; }
.tt-cur { display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: #2a2316; animation: ttLed .7s steps(2) infinite; }
body.light .tt-paper { background:
        radial-gradient(circle at 7px 9px, #e9ecef 2.6px, transparent 3.2px) left top / 14px 18px repeat-y,
        radial-gradient(circle at 7px 9px, #e9ecef 2.6px, transparent 3.2px) right top / 14px 18px repeat-y,
        #fbf6e8; box-shadow: inset 0 10px 12px -8px rgba(0,0,0,.2), 0 0 0 1px rgba(160,130,40,.2); }
@media (prefers-reduced-motion: reduce) { .tt-row, .tt-machine b, .tt-cur { animation: none; } }

/* лента: плашка «выбран фильтр» (тема или источник) */
.nw-filter-note { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 12px 10px 14px; border: 1px solid var(--mx-gold-line); border-radius: 12px; background: var(--mx-gold-wash); font-size: 13px; color: var(--text-color); }
.nw-filter-note > i { color: var(--gold, #d4af37); }
.nw-filter-note span { flex: 1; min-width: 0; }
.nw-filter-note b { color: var(--gold, #d4af37); }
.nw-filter-note small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-secondary); }
.nw-clear { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); color: var(--text-color); font-size: 13px; font-weight: 600; cursor: pointer; }
.nw-clear:hover { border-color: var(--gold, #d4af37); color: var(--gold, #d4af37); }
body.light .nw-filter-note b { color: #8a6a10; }

/* ===== Шапка подстраниц: «Передовица» — главная история газетной колонкой (NWC.lead) ===== */
.ns-lead { display: none; flex: 1 1 380px; max-width: 560px; align-self: center; margin: 0 auto; padding: 10px 4px 12px;
    border-top: 3px double var(--mx-line-strong); border-bottom: 1px solid var(--mx-line-strong); position: relative; }
@media (min-width: 1500px) { .ns-lead { display: block; } }
.ns-lead::before { content: "❝"; position: absolute; right: 2px; top: 22px; font: 700 64px/1 var(--ns-serif, 'Playfair Display', Georgia, serif); color: var(--gold, #d4af37); opacity: .14; pointer-events: none; }
.ns-ld-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; margin-bottom: 9px; border-bottom: 1px solid var(--mx-line);
    font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); }
.ns-ld-top span:first-child { color: var(--gold, #d4af37); }
.ns-ld-t { font: italic 600 21px/1.28 var(--ns-serif, 'Playfair Display', Georgia, serif); color: var(--text-color); cursor: pointer;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 30px; }
.ns-ld-t:hover { color: var(--gold-light, #f5d97a); }
.ns-ld-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.ns-ld-m i.fas { color: var(--gold, #d4af37); margin-right: 3px; }
.ns-ld-r b { font-weight: 800; }
body.light .ns-ld-t:hover { color: #8a6a10; }

/* глобус: биржи и ночь */
.gl-sq { display: inline-block; width: 8px; height: 8px; background: rgba(170,170,160,.6); border: 1px solid rgba(0,0,0,.5); }
.gl-sq.on { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.7); }
.gl-night { display: inline-block; width: 12px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(0,4,18,.85), rgba(0,4,18,.2)); border: 1px solid var(--mx-line-strong); }
.gl-ex { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.2); font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.gl-ex i { color: #4ade80; margin-top: 2px; } .gl-ex b { color: var(--text-color); }

/* ===== «Пока тебя не было» (news-away.js) ===== */
#awayBox { margin: 0 0 22px; }
.aw { border: 1px solid var(--mx-gold-line); border-radius: var(--mx-r); background: linear-gradient(120deg, rgba(212,175,55,.10), transparent 55%), var(--mx-surface); overflow: hidden; animation: awIn .5s ease-out; }
@keyframes awIn { from { opacity: 0; transform: translateY(-6px); } }
.aw-h { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--mx-line); }
.aw-h > i { color: var(--gold, #d4af37); }
.aw-h b { font-size: 14px; color: var(--text-color); }
.aw-h span { flex: 1; font-size: 13px; color: var(--text-secondary); }
.aw-x { border: 0; background: transparent; color: var(--text-secondary); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.aw-x:hover { color: var(--text-color); }
.aw-b { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 16px 14px; }
.aw-n { display: flex; gap: 18px; }
.aw-n span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-secondary); }
.aw-n b { font: 600 26px/1.1 var(--mx-f-display); color: var(--text-color); }
.aw-n b.down { color: var(--red, #f87171); }
.aw-l { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; }
.aw-i { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.aw-i span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-color); }
.aw-i:hover span { color: var(--gold-light, #f5d97a); }
.aw-i em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.aw-m { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 12px; font-size: 13px; color: var(--text-secondary); }
.aw-mh { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.aw-mv { white-space: nowrap; font-weight: 700; } .aw-mv b { font-weight: 600; color: var(--text-secondary); }
@media (max-width: 1000px) { .aw-b { grid-template-columns: 1fr; } }
.aw-i > i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #d4af37); }
.aw-i.hot > i { background: var(--red, #f87171); box-shadow: 0 0 6px rgba(248,113,113,.7); }
