/* =========================================================
   Twitch News — стили темы
   1. Токены и база        6. Пост (полная страница), комментарии
   2. Кнопки, аватары      7. Страница стримера
   3. Шапка, меню          8. Архивы: стримеры, игры
   4. Лента и карточки     9. Диалоги, тост, нижняя навигация, подвал
   5. Колонки, сайдбары   10. Адаптив
   ========================================================= */

/* ---------- 1. Токены и база ---------- */
:root,
[data-theme="dark"] {
  --bg: #0E0E14; --card: #16161F; --card2: #1D1D29; --line: #2A2A38;
  --text: #ECECF3; --muted: #A3A3B8; --faint: #8A8AA0;
  --accent: #9146FF; --accent-hover: #7D2EF5; --link: #B18CFF; --soft: rgba(145, 70, 255, .14);
  --live: #E5161B; --up: #4ADE80; --down: #F87171;
  --cover: #1A1530;
  --hdr: rgba(14, 14, 20, .88); --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --radius: 12px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F6F9; --card: #FFFFFF; --card2: #F0F0F5; --line: #E3E3EB;
  --text: #16161D; --muted: #55556A; --faint: #66667A;
  --link: #7A2EF0; --soft: rgba(145, 70, 255, .10);
  --up: #15803D; --down: #C2410C;
  --cover: #ECE6FA;
  --hdr: rgba(246, 246, 249, .9); --shadow: 0 12px 32px rgba(20, 20, 40, .14);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.spacer { flex: 1; }
body.tn-guest .if-user, body.tn-user .if-guest { display: none !important; }

/* ---------- 2. Кнопки, аватары ---------- */
.iconbtn { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.iconbtn:hover { border-color: var(--accent); text-decoration: none; }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff !important; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--text) !important; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn-sec:hover { border-color: var(--accent); text-decoration: none; }
.btn-sec[aria-pressed="true"] { border-color: var(--accent); color: var(--link) !important; }
.linkbtn { border: 0; background: transparent; color: var(--link); font-weight: 600; cursor: pointer; padding: 6px 4px; }
.ava { position: relative; overflow: hidden; border-radius: 50%; background: #2B2140; color: #E6DAFF; display: inline-flex; align-items: center; justify-content: center; font-family: Manrope, sans-serif; font-weight: 800; flex: none; }
[data-theme="light"] .ava { background: #E4D8FB; color: #4B1FA0; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava.ed { background: var(--accent); color: #fff; }
.ava-22 { width: 22px; height: 22px; font-size: 10px; }
.ava-34 { width: 34px; height: 34px; font-size: 13px; }
.ava-36 { width: 36px; height: 36px; font-size: 13px; }
.ava-40 { width: 40px; height: 40px; font-size: 15px; }
.ava-44 { width: 44px; height: 44px; font-size: 16px; }
.ava-56 { width: 56px; height: 56px; font-size: 18px; }

/* ---------- 3. Шапка, меню ---------- */
.site { position: sticky; top: 0; z-index: 50; background: var(--hdr); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site { top: 32px; }
.site-row { height: 64px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text) !important; }
.logo:hover { text-decoration: none; }
.logo-text { font-family: Manrope, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo-text span { color: var(--link); }
.custom-logo { max-height: 32px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--card2); text-decoration: none; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav a[aria-current] { color: var(--text); background: var(--soft); }
.search-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--faint); width: 344px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; width: 100%; }
.search-box input::placeholder { color: var(--faint); }
.search-box input::-webkit-search-cancel-button { filter: grayscale(1); }
.only-mobile { display: none !important; }
[data-theme="dark"] .ic-moon, [data-theme="light"] .ic-sun { display: none; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 6px; padding: 2px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; display: flex; flex-direction: column; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; text-align: left; font-size: 14.5px; color: var(--text) !important; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--card2); text-decoration: none; }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 14.5px; }
.menu-head small { font-size: 12.5px; color: var(--muted); }

.crumbs { margin: 16px 0 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted) !important; }

/* ---------- 4. Лента и карточки ---------- */
.cols { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-top: 24px; padding-bottom: 64px; }
.center { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Левая навигация */
.lnav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.admin-bar .lnav { top: 120px; }
.li { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--muted) !important; font-size: 15px; font-weight: 500; }
.li:hover { background: var(--card2); color: var(--text) !important; text-decoration: none; }
.li[aria-current] { background: var(--soft); color: var(--text) !important; font-weight: 600; }
.li[aria-current] svg { color: var(--link); }
.lgroup { margin: 18px 0 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.gico { width: 24px; height: 24px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: var(--muted); flex: none; letter-spacing: -.02em; text-transform: uppercase; overflow: hidden; }

/* Сортировка */
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a[aria-current] { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chips a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; }
.chips a:hover { color: var(--text); text-decoration: none; }
.chips a[aria-current] { border-color: var(--accent); color: var(--text); background: var(--soft); }

/* Сторис «Сейчас в эфире» (планшет/мобайл) */
.stories-wrap { display: none; }
.stories-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.stories-h h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; }
.stories { display: flex; gap: 14px; overflow-x: auto; list-style: none; margin: 0; padding: 4px 2px 10px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); }
.story:hover { text-decoration: none; }
.story-ava { position: relative; }
.story-ava .ava { width: 60px; height: 60px; font-size: 20px; box-shadow: 0 0 0 2px var(--live), 0 0 0 4px var(--bg); }
.story-nick { font-size: 11.5px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ltag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); background: var(--live); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; box-shadow: 0 0 0 2px var(--bg); z-index: 1; }

/* Поле-приглашение */
.composer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.composer-btn { flex: 1; height: 44px; text-align: left; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--faint); font-size: 15px; cursor: text; }
.composer-btn:hover { border-color: var(--accent); }

/* Карточка поста */
.feed { display: flex; flex-direction: column; gap: 16px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 12px; }
.mod { display: flex; align-items: flex-start; gap: 10px; margin: -6px -8px 14px; padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px dashed var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mod b { color: var(--text); }
.mod svg { flex: none; margin-top: 1px; color: var(--link); }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pnick { font-weight: 600; font-size: 14.5px; color: var(--text) !important; }
.role { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.role-str { background: var(--soft); color: var(--link); }
.role-ed { background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.ptime { font-size: 13px; color: var(--faint); }
.pmenu-wrap { position: relative; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.stag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text) !important; }
.stag:hover { border-color: var(--accent); text-decoration: none; }
.gtag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted) !important; }
.gtag:hover { color: var(--text) !important; border-color: var(--accent); text-decoration: none; }
.ptitle { margin: 12px 0 0; font-family: Manrope, sans-serif; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.ptitle a { color: var(--text) !important; }
.ptitle a:hover { color: var(--link) !important; text-decoration: none; }
.ptext { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ptext.short { -webkit-line-clamp: 2; }
.readmore { display: inline-block; margin-top: 6px; font-size: 14.5px; font-weight: 600; }
.media { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 14px; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.wide { aspect-ratio: 16 / 9; }
.media.tall { max-height: 640px; }
.media.tall img { object-fit: contain; max-height: 640px; }
.clip { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); cursor: pointer; padding: 0; overflow: hidden; color: var(--faint); font-size: 13px; }
.clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip:hover .play { background: var(--accent); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(14, 14, 20, .75); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; z-index: 1; }
.badge { position: absolute; bottom: 10px; z-index: 1; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.clip-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; margin-top: 14px; border-radius: 10px; overflow: hidden; background: #000; }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pfoot { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted) !important; font-size: 14px; font-weight: 500; cursor: pointer; }
.act:hover { background: var(--card2); color: var(--text) !important; text-decoration: none; }
.act[aria-pressed="true"] { color: var(--link) !important; }
.act[aria-pressed="true"] svg { fill: currentColor; }
.act-views { cursor: default; }
.act-views:hover { background: transparent; color: var(--muted) !important; }
.hidden-post { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; color: var(--muted); }

/* Скелетон и подгрузка */
.skel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.sk { border-radius: 6px; background: linear-gradient(90deg, var(--card2) 0%, var(--line) 50%, var(--card2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-row { display: flex; align-items: center; gap: 10px; }
.skels { display: flex; flex-direction: column; gap: 16px; }
.more-link { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 600; }
.feed-end { text-align: center; color: var(--faint); font-size: 14px; padding: 8px 0; }

/* Пустые состояния */
.empty { padding: 36px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h1, .empty h2 { margin: 4px 0 0; font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 800; }
.empty p { margin: 0; max-width: 440px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--link); display: flex; align-items: center; justify-content: center; }
.sugg-list { width: 100%; max-width: 480px; margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sugg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sugg-info a { font-weight: 600; font-size: 15px; color: var(--text) !important; }
.sugg-info span { font-size: 13px; color: var(--muted); }

/* ---------- 5. Правая колонка ---------- */
.rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rail-card { padding: 18px 20px; }
.rail-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; }
.rail-h small { font-family: Inter, sans-serif; font-size: 12px; font-weight: 500; color: var(--faint); }
.rlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; color: var(--text) !important; }
.rrow:hover { background: var(--card2); text-decoration: none; }
.rrow-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rrow-nick { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow-sub { font-size: 13px; color: var(--muted); }
.lava { position: relative; flex: none; }
.lava .ava { width: 42px; height: 42px; font-size: 15px; box-shadow: 0 0 0 2px var(--live); }
.lava .ltag { font-size: 8.5px; padding: 1px 4px; border-radius: 3px; bottom: -6px; box-shadow: 0 0 0 2px var(--card); }
.viewers { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vdot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.rank { width: 18px; text-align: center; font-family: Manrope, sans-serif; font-weight: 800; font-size: 15px; color: var(--faint); }
.grow { font-size: 13.5px; font-weight: 700; color: var(--up); font-variant-numeric: tabular-nums; }
.grow.neutral { color: var(--muted); font-weight: 600; }
.invite { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.invite-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--link); display: flex; align-items: center; justify-content: center; }
.invite h2 { margin: 0; font-family: Manrope, sans-serif; font-weight: 800; font-size: 17px; }
.invite p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-size: 13.5px; color: var(--text) !important; }
.cloud a:hover { border-color: var(--accent); text-decoration: none; }
.rules { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 14px; color: var(--muted) !important; }
.ad { width: 300px; max-width: 100%; min-height: 250px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--faint); font-size: 13px; text-align: center; }
.ad small { font-size: 11.5px; }
.ad.ad-live { border: 0; min-height: 0; display: block; }

/* ---------- 6. Пост (полная страница), комментарии ---------- */
.post-single { padding: 22px 28px 14px; }
.post-single .ptitle { font-size: 28px; line-height: 1.25; margin-top: 14px; }
.entry { margin-top: 14px; font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
.entry > * { margin: 0 0 16px; }
.entry h2 { font-family: Manrope, sans-serif; font-size: 24px; line-height: 1.3; font-weight: 800; margin: 32px 0 12px; scroll-margin-top: 88px; }
.admin-bar .entry h2 { scroll-margin-top: 120px; }
.entry h3 { font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; margin: 26px 0 10px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li { margin-bottom: 6px; }
.entry li::marker { color: var(--accent); }
.entry blockquote { margin-left: 0; padding: 8px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry img, .entry figure { border-radius: 10px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 13.5px; color: var(--faint); margin-top: 6px; }
.entry iframe, .entry video { max-width: 100%; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry pre, .entry code { background: var(--card2); border-radius: 6px; font-size: 14px; }
.entry pre { padding: 12px 14px; overflow-x: auto; }
.entry code { padding: 1px 5px; }
.page-links { font-weight: 600; }

.comments { padding: 22px 28px; }
.comments-title { margin: 0 0 16px; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; padding-left: 16px; border-left: 1px solid var(--line); }
.comment-body { padding: 14px 0; border-top: 1px solid var(--line); }
.comment-list > li:first-child > .comment-body { border-top: 0; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.comment-author .avatar { width: 32px; height: 32px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-author .fn a { color: var(--text) !important; }
.comment-metadata { font-size: 12.5px; margin: 2px 0 0 42px; }
.comment-metadata a { color: var(--faint) !important; }
.comment-content { margin-left: 42px; font-size: 15.5px; line-height: 1.6; }
.comment-content p { margin: 8px 0; }
.reply { margin-left: 42px; }
.reply a, .comment-edit-link { font-size: 13.5px; font-weight: 600; }
.comment-awaiting-moderation { display: block; margin: 4px 0 0 42px; font-size: 13px; color: var(--faint); }
.comment-respond { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.comment-reply-title { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; }
.comment-reply-title small { margin-left: 8px; font-size: 13px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--text); font: inherit; font-size: 15px; padding: 11px 14px; outline: 0; }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form .form-submit input { height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--text); font-weight: 600; cursor: pointer; }
.comment-form .form-submit input:hover { border-color: var(--accent); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.logged-in-as, .comment-notes { font-size: 13.5px; color: var(--faint); }

/* ---------- 7. Страница стримера ---------- */
.hero { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cover); }
.hero-cover { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.7); }
[data-theme="light"] .hero-cover img { opacity: .14; }
.hero-ghost::before { content: attr(data-text); }
.hero-ghost { position: absolute; right: 300px; bottom: -40px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 190px; line-height: 1; letter-spacing: -.045em; color: var(--text); opacity: .045; white-space: nowrap; user-select: none; text-transform: uppercase; }
.hero-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 364px; gap: 32px; align-items: center; padding: 20px 20px 20px 32px; }
.hero-id { display: flex; align-items: center; gap: 30px; min-width: 0; }
.ava-wrap { position: relative; flex: none; }
.s-ava { position: relative; width: 124px; height: 124px; border-radius: 50%; overflow: hidden; background: #2B2140; color: #E6DAFF; display: flex; align-items: center; justify-content: center; font-family: Manrope, sans-serif; font-weight: 800; font-size: 48px; box-shadow: 0 0 0 3px var(--line), 0 0 0 8px var(--cover); }
[data-theme="light"] .s-ava { background: #E4D8FB; color: #4B1FA0; }
.s-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero[data-live="true"] .s-ava { box-shadow: 0 0 0 3px var(--accent), 0 0 0 8px var(--cover); }
.ava-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--live); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; box-shadow: 0 0 0 3px var(--cover); }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.h1 { margin: 0; font-family: Manrope, sans-serif; }
.h1-nick { display: block; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.h1-sub { display: block; margin-top: 10px; font-size: 18.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; color: var(--muted); max-width: 620px; }
.now { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.now b { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot-live { background: var(--live); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 22, 27, .6); } 100% { box-shadow: 0 0 0 8px rgba(229, 22, 27, 0); } }
.hero[data-live="true"] .if-off, .hero[data-live="false"] .if-live { display: none !important; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.panel-h b { white-space: nowrap; }
.panel-h span { text-align: right; }
.panel-h b { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.kpi { display: flex; flex-direction: column-reverse; gap: 2px; margin: 0; }
.kpi dd { margin: 0; font-family: Manrope, sans-serif; font-size: 27px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi dt { font-size: 12.5px; color: var(--muted); }
.actions { display: flex; gap: 8px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff !important; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.tw { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text) !important; display: flex; align-items: center; justify-content: center; }
.tw:hover { border-color: var(--accent); }
button.tw { cursor: pointer; padding: 0; }
.follow-ic[aria-pressed="true"] { color: var(--link) !important; border-color: var(--accent); }
.follow-ic[aria-pressed="true"] svg { fill: currentColor; }
.updated-m { display: none; }

.watch { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.watch-player { position: relative; aspect-ratio: 16 / 9; min-width: 400px; min-height: 300px; background: #000; border-radius: var(--radius); overflow: hidden; }
.watch-player iframe, .watch-chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-side { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.watch-side-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.watch-chat { position: relative; flex: 1; min-height: 300px; }
.watch-close-m { display: none !important; position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(0, 0, 0, .6) !important; border-color: transparent !important; color: #fff !important; }

.layout { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-top: 28px; padding-bottom: 64px; }
.toc-col { position: sticky; top: 88px; }
.admin-bar .toc-col { top: 120px; }
.main-col { min-width: 0; }
.toc summary { list-style: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 10px 12px; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc .chev { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--muted) !important; }
.toc a:hover { color: var(--text) !important; text-decoration: none; }
.toc a.is-active { color: var(--text) !important; border-left-color: var(--accent); background: var(--soft); font-weight: 600; border-radius: 0 8px 8px 0; }
.answer { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.answer p { margin: 0; font-size: 18px; line-height: 1.65; }
.answer .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--link); margin: 0 0 8px; line-height: 1.4; }
.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.prose { max-width: 68ch; }
.prose h2 { font-family: Manrope, sans-serif; font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin: 48px 0 14px; scroll-margin-top: 88px; }
.prose h3 { font-family: Manrope, sans-serif; font-size: 21px; font-weight: 800; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose img, .prose figure { border-radius: 10px; margin: 0 0 16px; }
.prose figcaption { font-size: 13.5px; color: var(--faint); }
.prose blockquote { margin: 0 0 16px; padding: 8px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text) !important; }
.news:hover { border-color: var(--accent); text-decoration: none; }
.news-thumb { flex: none; width: 132px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--card2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news time { font-size: 13px; color: var(--faint); }
.news-title { font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.35; }
.news-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.more { font-weight: 600; font-size: 15.5px; }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sclip { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sclip.is-playing { grid-column: 1 / -1; }
.sclip .clip { margin-top: 0; }
.sclip .clip-frame { margin-top: 0; }
.clip-title { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--link); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 16.5px; }
.sources li { font-size: 15.5px !important; }
.fix { margin-top: 32px !important; font-size: 14px !important; }
.fix a { color: var(--muted) !important; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box-h { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.facts { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.facts th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 0; width: 46%; vertical-align: top; }
.facts td { padding: 9px 0; font-weight: 600; }
.facts tr + tr th, .facts tr + tr td { border-top: 1px solid var(--line); }
.soc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.soc a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted) !important; }
.soc a:hover { text-decoration: none; color: var(--text) !important; }
.soc-ic { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); display: flex; align-items: center; justify-content: center; color: var(--text); font-weight: 800; font-size: 13px; }
.soc a:hover .soc-ic { border-color: var(--accent); }
.sim-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sim { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--text) !important; }
.sim:hover { background: var(--card2); text-decoration: none; }
.sim-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sim-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-fol { font-size: 13px; color: var(--muted); }
.st-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 6px; border-radius: 5px; }
.st-badge-live { background: var(--live); color: #fff; }
.st-badge-off { background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.follow-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

/* ---------- 8. Архивы: стримеры, игры ---------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.scard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text) !important; }
.scard:hover { border-color: var(--accent); text-decoration: none; }
.scard .lava .ava, .scard .ava { width: 72px; height: 72px; font-size: 26px; }
.scard-nick { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.scard-sub { font-size: 13px; color: var(--muted); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-weight: 600; }
.pagination .page-numbers.current { border-color: var(--accent); background: var(--soft); }
.pagination a.page-numbers:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- 9. Диалоги, тост, нижняя навигация, подвал ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 100vw; }
dialog::backdrop { background: rgba(5, 5, 10, .6); }
.editor { width: 640px; max-width: calc(100vw - 32px); margin: 80px auto auto; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; }
.modal-b { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-f { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.modal-f small { flex: 1; font-size: 13px; color: var(--faint); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(248, 113, 113, .12); color: var(--down); font-size: 14px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types label { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.types input:checked + label { border-color: var(--accent); color: var(--text); background: var(--soft); }
.types input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); color: var(--text); font: inherit; font-size: 15px; padding: 11px 14px; outline: 0; }
.field input[type="file"] { padding: 9px 12px; font-size: 14px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field small { font-size: 12.5px; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet { width: 100%; margin: auto 0 0; }
.sheet-in { background: var(--card); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 6px; border: 0; background: transparent; border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.sheet-item:hover { background: var(--card2); }
.sheet-item .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--link); }
.sheet-item small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; font-size: 14.5px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast a { font-weight: 600; }
.bnav { display: none; }
.foot { border-top: 1px solid var(--line); }
.foot-row { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted) !important; }

/* ---------- 10. Адаптив ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 200px minmax(0, 1fr); }
  .cols > .rail { display: none; }
  .stories-wrap { display: block; }
  .site-row { gap: 14px; }
  .search-box { display: none; }
  #searchBtn { display: inline-flex !important; }
  .site.search-open .search-box { display: flex !important; position: absolute; left: 16px; right: 16px; top: 64px; width: auto; height: 48px; background: var(--card); box-shadow: var(--shadow); }
  .hero-ghost { right: -20px; }
}
@media (max-width: 1024px) {
  .btn-write { width: 40px; padding: 0; }
  .btn-write > span { display: none; }
}
@media (max-width: 960px) {
  .nav a { padding: 8px 6px; font-size: 14px; }
  .site-row { gap: 10px; }
}

/* Пост с оглавлением: на планшете и телефоне — плашка «Содержание» над текстом */
.toc-inline { display: none; }
@media (max-width: 1024px) {
  .cols.has-toc { grid-template-columns: minmax(0, 1fr); }
  .cols.has-toc .toc-col { display: none; }
  .entry .toc-inline { display: block; margin: 18px 0; }
}
@media (max-width: 820px) {
  .entry h2 { scroll-margin-top: 72px; }
}

/* Страница стримера в одну колонку: ответ → содержание → факты → статья → похожие */
@media (max-width: 1024px) {
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
  .layout .main-col, .layout .rail { display: contents; }
  .layout > *, .layout .main-col > *, .layout .rail > * { min-width: 0; max-width: 100%; }
  .layout .intro { order: 1; }
  .layout .toc-col { order: 2; position: static; }
  .layout .facts-box { order: 3; }
  .layout .prose { order: 4; max-width: none; }
  .layout .similar-box { order: 5; }
  .layout .ad { order: 6; margin: 8px auto 0; }
  .toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .toc summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 0 18px; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); }
  .toc .chev { display: block; transition: transform .2s; }
  .toc[open] .chev { transform: rotate(180deg); }
  .toc ol { border-left: 0; padding: 0 8px 10px; }
  .toc a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-left: 0; border-radius: 8px; font-size: 15.5px; color: var(--text) !important; }
  .toc a.is-active { border-radius: 8px; }
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side { display: none; }
  .watch-close-m { display: inline-flex !important; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site { border-bottom: 0; }
  .site-row { height: 56px; gap: 8px; }
  .nav, .btn-write, .lnav-col, .composer { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .iconbtn { width: 44px; height: 44px; }
  .logo-text { font-size: 17px; }
  .user-btn svg { display: none; }
  .crumbs { margin: 12px 0; }
  .crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 12.5px; }

  .cols { display: block; padding-top: 0; padding-bottom: 24px; }
  .center { gap: 0; }
  .page-head { padding: 16px 0 8px; }
  .page-head h1 { font-size: 23px; }
  .sortbar { position: sticky; top: 56px; z-index: 40; margin: 0 -16px; padding: 0 8px; background: var(--hdr); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); gap: 0; flex-direction: column; align-items: stretch; }
  .admin-bar .sortbar { top: 102px; }
  .seg { display: flex; border: 0; border-radius: 0; background: transparent; padding: 0; gap: 0; }
  .seg a { flex: 1; justify-content: center; height: 46px; border-radius: 0; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .seg a[aria-current] { background: transparent; box-shadow: none; border-bottom-color: var(--accent); }
  .chips { padding: 10px 8px; }
  .chips a { height: 32px; }
  .stories-wrap { padding: 14px 0 4px; }
  .stories { margin: 0 -16px; padding: 4px 16px 10px; }

  .feed { gap: 8px; margin: 0 -16px; }
  .post { border-radius: 0; border-left: 0; border-right: 0; padding: 16px 16px 8px; }
  .mod { margin: 0 0 12px; font-size: 13px; }
  .ptitle { font-size: 19px; margin-top: 10px; }
  .ptext { font-size: 15.5px; line-height: 1.6; margin-top: 8px; }
  .feed .media, .feed .clip, .feed .clip-frame, .post-single .media, .post-single .clip, .post-single .clip-frame { margin: 12px -16px 0; width: auto; border-radius: 0; border-left: 0; border-right: 0; }
  .feed .clip, .post-single .clip { width: calc(100% + 32px); }
  .pfoot { border-top: 0; padding-top: 0; margin-top: 10px; gap: 4px; }
  .act { min-width: 44px; height: 44px; justify-content: center; padding: 0 8px; }
  .hidden-post { border-radius: 0; border-left: 0; border-right: 0; padding: 12px 16px; }
  .skel { border-radius: 0; border-left: 0; border-right: 0; padding: 16px; }
  .feed-extra { margin: 8px -16px 0; }
  .skels { gap: 8px; }
  .more-link { margin: 8px 0; }
  .empty { margin: 16px 0; padding: 28px 20px; }
  .post-single { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 16px; }
  .post-single .ptitle { font-size: 24px; }
  .entry { font-size: 17px; }
  .comments { margin: 8px -16px 0; border-radius: 0; border-left: 0; border-right: 0; padding: 18px 16px; }
  .comment-list .children { margin-left: 12px; padding-left: 12px; }

  .bnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: calc(68px + env(safe-area-inset-bottom)); padding: 0 4px calc(6px + env(safe-area-inset-bottom)); background: var(--hdr); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 500; color: var(--muted) !important; }
  .bn:hover { text-decoration: none; }
  .bn[aria-current] { color: var(--text) !important; }
  .bn[aria-current] svg { color: var(--link); }
  .bn-plus { justify-self: center; align-self: center; width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 5px var(--bg); }
  .editor { margin: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; }
  .editor .modal { min-height: 100%; border-radius: 0; border: 0; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Страница стримера на телефоне */
@media (max-width: 760px) {
  .hero { background: var(--card); }
  .hero-cover { bottom: auto; height: 92px; background: var(--cover); }
  .hero-ghost { left: -6px; right: auto; top: 4px; bottom: auto; font-size: 86px; opacity: .06; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 48px 16px 16px; }
  .hero-id { flex-direction: column; align-items: flex-start; gap: 16px; }
  .s-ava { width: 88px; height: 88px; font-size: 34px; box-shadow: 0 0 0 3px var(--line), 0 0 0 7px var(--card); }
  .hero[data-live="true"] .s-ava { box-shadow: 0 0 0 3px var(--accent), 0 0 0 7px var(--card); }
  .ava-tag { box-shadow: 0 0 0 3px var(--card); font-size: 10.5px; }
  .hero-text { gap: 10px; }
  .h1-nick { font-size: 36px; }
  .h1-sub { font-size: 17px; margin-top: 8px; }
  .now { font-size: 13.5px; gap: 7px; }
  .panel { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 12px; }
  .panel-h { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi { align-items: center; padding: 12px 4px; }
  .kpi + .kpi { border-left: 1px solid var(--line); }
  .kpi-extra { display: none; }
  .kpi dd { font-size: 21px; }
  .kpi dt { font-size: 12px; }
  .btn { height: 48px; font-size: 15.5px; }
  .tw { width: 48px; height: 48px; }
  .updated-m { display: block; text-align: center; font-size: 12px; color: var(--faint); }
  .watch { margin-left: -16px; margin-right: -16px; }
  .watch-player { border-radius: 0; min-width: 0; }
  .answer { padding: 16px 18px; }
  .answer p { font-size: 17px; line-height: 1.6; }
  .byline { font-size: 13.5px; gap: 10px; }
  .prose h2 { font-size: 23px; margin: 40px 0 12px; scroll-margin-top: 72px; }
  .prose p, .prose li { font-size: 17px; }
  .news { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .clips { gap: 14px 10px; }
  .clip-title { font-size: 14px; }
  .play { width: 44px; height: 44px; }
  .sclip .clip-frame { margin-left: -16px; margin-right: -16px; width: auto; border-radius: 0; }
  .faq summary { padding: 14px 16px; font-size: 16px; min-height: 52px; }
  .faq details p { padding: 0 16px 16px; font-size: 16px; }
  .box { padding: 16px 18px; }
  .similar-box { background: transparent; border: 0; padding: 0; margin-top: 16px; }
  .similar-box .sim-list { flex-direction: row; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .similar-box .sim-list::-webkit-scrollbar { display: none; }
  .similar-box .sim-list li { flex: none; scroll-snap-align: start; }
  .similar-box .sim { width: 136px; margin: 0; flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .similar-box .sim .ava { width: 56px; height: 56px; font-size: 18px; }
  .similar-box .sim-info { align-items: center; max-width: 100%; }
  .foot-row { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
}

@media screen and (max-width: 782px) {
  .admin-bar .site { top: 46px; }
}

/* ---------- 11. Компоненты статей (.lg) — гайды и лонгриды ---------- */
:root, [data-theme="dark"] { --r-high: #F87171; --r-high-bg: rgba(229, 22, 27, .14); --r-mid: #FBBF24; --r-mid-bg: rgba(245, 158, 11, .14); --r-low: #4ADE80; --r-low-bg: rgba(34, 197, 94, .13); }
[data-theme="light"] { --r-high: #B91C1C; --r-high-bg: rgba(220, 38, 38, .09); --r-mid: #8A5206; --r-mid-bg: rgba(234, 179, 8, .14); --r-low: #15803D; --r-low-bg: rgba(34, 197, 94, .12); }
.lg { --gap: 18px; }
.lg > * { margin-top: 0; }
.lg h2 { scroll-margin-top: 88px; }
.lg-lead { font-size: 18px !important; line-height: 1.6; color: var(--text); }
.lg-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 22px; }
.lg-box-plain { background: var(--card2); }
.lg-box-h { margin: 0 0 8px !important; font-family: Manrope, sans-serif; font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.lg-box ul { margin: 0; padding-left: 20px; }
.lg-box li { margin-bottom: 6px; font-size: 16.5px; line-height: 1.6; }
.lg-box li:last-child { margin-bottom: 0; }
.lg-toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card2); padding: 16px 20px; margin: 0 0 8px; }
.lg-toc-h { margin: 0 0 8px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.lg-toc li { counter-increment: toc; margin: 0 !important; font-size: 15px !important; }
.lg-toc li::before { content: counter(toc) "."; display: inline-block; width: 22px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lg-toc a { color: var(--text); }
.lg-toc a:hover { color: var(--link); }
.lg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.lg-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card2); padding: 16px 18px; }
.lg-card p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.lg-card-k { font-size: 11.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint) !important; margin-bottom: 2px !important; }
.lg-card-h { font-family: Manrope, sans-serif; font-weight: 800; font-size: 17px !important; color: var(--text) !important; margin-bottom: 8px !important; }
.lg-card ul { margin: 0; padding-left: 18px; }
.lg-card li { font-size: 15px; line-height: 1.55; margin-bottom: 6px; color: var(--muted); }
.lg-card li strong { color: var(--text); }
.lg-legend { list-style: none; padding: 0 !important; margin: 0 0 8px !important; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lg-legend li { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 14.5px !important; color: var(--muted); }
.lg-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; justify-self: start; }
.lg-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lg-high { background: var(--r-high-bg); color: var(--r-high); }
.lg-mid { background: var(--r-mid-bg); color: var(--r-mid); }
.lg-low { background: var(--r-low-bg); color: var(--r-low); }
.lg-risk { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 20px 14px; margin: 0 0 14px; overflow: hidden; }
.lg-risk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.lg-risk-high::before { background: var(--r-high); }
.lg-risk-mid::before { background: var(--r-mid); }
.lg-risk-low::before { background: var(--r-low); }
.lg-risk-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-risk-top h3 { margin: 0 !important; font-size: 19px !important; }
.lg-risk > p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lg-label { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint) !important; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px !important; }
.lg-chips span { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text); }
.lg-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 10px; }
.lg-cat { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 16px 12px; }
.lg-cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.lg-cat.lg-risk-high::before { background: var(--r-high); }
.lg-cat.lg-risk-mid::before { background: var(--r-mid); }
.lg-cat.lg-risk-low::before { background: var(--r-low); }
.lg-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.lg-cat-h h3 { margin: 0 !important; font-family: Manrope, sans-serif; font-size: 17px !important; font-weight: 800; }
.lg-cat .lg-chips { margin: 0 !important; }
.lg-chips span i { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--faint); margin-left: 6px; }
.lg-ex { list-style: none; margin: 0 0 4px !important; padding: 0 !important; border-top: 1px solid var(--line); }
.lg-ex li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; margin: 0 !important; border-bottom: 1px solid var(--line); font-size: 15.5px !important; }
.lg-ex li:last-child { border-bottom: 0; }
.lg-ex q { quotes: "«" "»"; color: var(--text); font-style: italic; }
.res { flex: none; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; font-style: normal; }
.res-high { background: var(--r-high-bg); color: var(--r-high); }
.res-mid { background: var(--r-mid-bg); color: var(--r-mid); }
.res-low { background: var(--r-low-bg); color: var(--r-low); }
.lg-note { margin: 10px 0 2px !important; font-size: 14.5px !important; color: var(--faint) !important; }
.lg-check { list-style: none; padding: 0 !important; }
.lg-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.lg-check li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.lg-table table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.lg-table th { background: var(--card2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.lg-table td:first-child { font-weight: 700; color: var(--r-high); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-steps { list-style: none; padding: 0 !important; counter-reset: st; }
.lg-steps li { counter-increment: st; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 30px; }
.lg-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--link); font-family: Manrope, sans-serif; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.lg-cols { columns: 2; column-gap: 28px; }
.lg-cols li { break-inside: avoid; }
.lg-outro { border-radius: var(--radius); padding: 20px 22px; margin: 28px 0 18px; background: var(--card2); border: 1px solid var(--line); }
.lg-outro p:last-child { margin: 0; font-size: 17px; line-height: 1.65; }
.lg-sources { font-size: 13.5px !important; color: var(--faint); line-height: 1.6; }
.lg-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) {
  .lg-grid2, .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
  .lg-cols { columns: 1; }
  .lg-ex li { flex-direction: column; gap: 6px; }
  .lg-risk { padding: 16px 14px 12px; }
  .lg-legend { flex-direction: column; gap: 8px; }
  .lg-lead { font-size: 17.5px !important; }
  .lg-table { overflow-x: auto; }
}

/* ---------- Блоки статьи стримера (Gutenberg) ---------- */
.prose .is-style-bi-facts { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 22px 8px; margin: 0 0 24px; }
.prose .is-style-bi-facts h3, .prose .bi-facts-title { margin: 0 0 10px; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; color: var(--text); }
.prose .is-style-bi-facts ul { list-style: none; padding: 0; }
.prose .is-style-bi-facts li { position: relative; padding-left: 26px; }
.prose .is-style-bi-facts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.prose .wp-block-image { margin: 8px 0 24px; text-align: center; }
.prose { min-width: 0; width: 100%; }
.prose .wp-block-image img { display: block; width: 100% !important; max-width: 640px !important; height: auto !important; margin: 0 auto; border: 1px solid var(--line); }
.prose .wp-block-image figcaption { margin-top: 8px; text-align: center; }
.prose ul.is-style-bi-timeline { list-style: none; padding: 0 0 0 26px; position: relative; margin: 0 0 24px; }
.prose ul.is-style-bi-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.prose ul.is-style-bi-timeline li { position: relative; margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.prose ul.is-style-bi-timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.prose ul.is-style-bi-timeline li strong { color: var(--text); font-family: Manrope, sans-serif; }
.prose .wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15.5px; }
.prose .wp-block-table th { background: var(--card2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; text-align: left; padding: 11px 14px; }
.prose .wp-block-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.prose .wp-block-table td:first-child { color: var(--muted); width: 38%; }
.prose .tn-myths td:first-child { width: 45%; }
.prose .tn-myths td:first-child::before { content: "✕ "; color: var(--r-high, #e5484d); font-weight: 700; }
.prose .tn-myths td:last-child::before { content: "✓ "; color: var(--r-low, #3fb950); font-weight: 700; }
.prose .wp-block-image.is-resized img { max-width: 440px !important; }
.prose .wp-block-code { position: relative; margin: 0 0 20px; padding: 16px 112px 16px 18px; background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.prose .wp-block-code code { font: 600 16px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: pre; }
.prose .copy-btn { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 7px 12px; font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.prose .copy-btn:hover { border-color: var(--accent); }

/* ---------- Ссылки в тексте: подчёркнуты, а не только цветом (доступность, WCAG 1.4.1) ---------- */
:where(.prose, .entry, .answer, .faq, .comment-content, .sources, .rules) a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  transition: text-decoration-color .15s;
}
:where(.prose, .entry, .answer, .faq, .comment-content, .sources, .rules) a:not([class]):hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
