﻿/* =====================================================================
   Раздел «Хоккей» (/hockey/*). Один файл на четыре страницы — у футбольных
   хабов те же правила разъехались по копиям в каждом .aspx и разошлись.

   Токены дублируют набор LeaguePage/RefereesPage: /Content/Site.css пустой,
   и без :root каждое объявление с var() отбрасывается целиком (карточки
   теряют фон и рамку, тёмная тема не работает вовсе).
   ===================================================================== */

:root {
    --card-bg:#fff; --card-border:#e8e8e8; --text:#222; --text-muted:#888; --text-soft:#555;
    --accent-green:#2e7d32; --accent-green-dark:#1b5e20; --accent-green-soft:#e8f5e9;
    --accent-red:#c62828; --accent-red-soft:#fdecea; --accent-orange:#e65100; --accent-blue:#1565c0;
    --accent-yellow-soft:#fffbea;
    --bar-track:#eee; --row-hover:#f9f9f9; --page-bg:#f5f5f5; --row-border:#f0f0f0;
    --ice:#0277bd; --ice-soft:#e1f5fe;
}
body.dark-theme {
    --card-bg:#252525; --card-border:#333; --text:#e0e0e0; --text-muted:#888; --text-soft:#bbb;
    --accent-green:#81c784; --accent-green-dark:#66bb6a; --accent-green-soft:#1e2b1e;
    --accent-red:#ef5350; --accent-red-soft:#3a2323; --accent-orange:#ffb74d; --accent-blue:#64b5f6;
    --accent-yellow-soft:#332d1a;
    --bar-track:#3a3a3a; --row-hover:#2c2c2c; --page-bg:#1a1a1a; --row-border:#333;
    --ice:#4fc3f7; --ice-soft:#12242e;
}

body { font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       color:#333; background:var(--page-bg); margin:0; padding:0; line-height:1.55; }
body.dark-theme { color:#ddd; }
.container { max-width:1100px; margin:0 auto; padding:18px 20px 40px; }
.hk-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---- шапка (те же правила, что на TeamPage/LeaguePage/RefereesPage) ---- */
.sg-topnav { width:100vw; margin-left:calc(50% - 50vw); background:#f5f5f5; border-bottom:1px solid #ddd; font-size:12px; color:#777; }
.sg-topnav-inner { max-width:1600px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; }
.sg-topnav a { color:#1565C0; text-decoration:none; font-weight:500; display:inline-flex; align-items:center; }
.sg-topnav a:hover { text-decoration:underline; }
.sg-topnav a.hk-nav-active { color:var(--ice); font-weight:700; }
.sg-topnav .sg-brand { padding:0; line-height:0; }
.sg-topnav .sg-brand img { width:18px; height:18px; border-radius:50%; animation:sgTopnavPulse 2s ease infinite; transition:transform .2s; }
.sg-topnav .sg-brand:hover img { animation:none; transform:scale(1.18); }
@keyframes sgTopnavPulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(230,81,0,.45)} 50%{opacity:.85;box-shadow:0 0 0 5px rgba(230,81,0,0)} }
.sg-topnav-right { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; }
.sg-topnav #mainSignInBtn { display:inline-block; font-size:12px; padding:5px 14px; border:1px solid #ccc; border-radius:4px; color:#333; text-decoration:none; font-weight:600; background:#fff; }
.sg-topnav #tgUserName { font-size:12px; color:#2e7d32; font-weight:600; cursor:pointer; }
body.dark-theme .sg-topnav { background:#222; border-bottom:1px solid #333; color:#888; }
body.dark-theme .sg-topnav a { color:#64b5f6; }
body.dark-theme .sg-topnav a.hk-nav-active { color:var(--ice); }
.sg-topnav .sg-topnav-row1, .sg-topnav .sg-nav-left, .sg-topnav .sg-topnav-row2 { display:contents; }
@media (max-width:768px) {
    .sg-topnav .sg-topnav-inner { display:block; padding:0; }
    .sg-topnav .sg-topnav-row1 { display:flex; align-items:center; gap:10px; padding:8px 10px 4px; }
    .sg-topnav .sg-nav-left { display:flex; align-items:center; gap:15px; overflow-x:auto; min-width:0; flex:1 1 auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; padding-bottom:3px; }
    .sg-topnav .sg-nav-left::-webkit-scrollbar { height:3px; }
    .sg-topnav .sg-nav-left::-webkit-scrollbar-thumb { background:#cfd8dc; border-radius:3px; }
    .sg-topnav .sg-nav-left > a { flex:0 0 auto; }
    .sg-topnav .sg-topnav-right { position:static; transform:none; flex:0 0 auto; display:inline-flex; gap:6px; }
    .sg-topnav .sg-topnav-row2 { display:block; text-align:center; padding:2px 10px 9px; }
    .sg-topnav .sg-topnav-row2 > a { display:inline-block; margin:0 9px; }
    .sg-topnav .lang-current { padding:3px 6px; font-size:10px; }
    .sg-topnav .theme-btn { padding:3px 7px; font-size:12px; }
    .sg-topnav #mainSignInBtn { padding:3px 9px !important; font-size:11px !important; }
}
@media (prefers-reduced-motion: reduce) { .sg-topnav .sg-brand img { animation:none; transition:none; } }

/* ---- общий каркас ---- */
.breadcrumb { font-size:12px; color:var(--text-muted); margin-bottom:14px; }
.breadcrumb a { color:var(--accent-blue); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.hk-title { font-size:24px; margin:0 0 6px; color:var(--text); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hk-intro { font-size:14px; color:var(--text-soft); line-height:1.6; margin:0 0 18px; max-width:70ch; }
.hk-h2 { font-size:16px; color:var(--accent-green-dark); margin:22px 0 8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hk-h2 a { color:inherit; text-decoration:none; }
.hk-h2 a:hover { text-decoration:underline; }
body.dark-theme .hk-h2 { color:var(--accent-green); }
.hk-h2 .hk-country { font-size:12.5px; font-weight:500; color:var(--text-soft); }
.hk-h2 .hk-stage { font-size:12px; font-weight:600; color:var(--ice); background:var(--ice-soft); border-radius:3px; padding:1px 6px; }
.hk-card { background:var(--card-bg); border:1px solid var(--card-border); border-radius:8px; overflow-x:auto; margin-bottom:8px; }
.hk-note { font-size:12px; color:var(--text-soft); margin-top:18px; line-height:1.5; max-width:70ch; }
.hk-empty { font-size:14px; color:var(--text-soft); }
.hk-logo { vertical-align:middle; object-fit:contain; }
/* 3-й период (26.08): следующий тон того же cyan-ряда, что min-1h/min-2h футбольного
   грида (#00ACC1 → #0097A7 → #00838F). Живёт здесь, а не в hockey-grid.css — тот файл
   генерируется экстрактором из live.css и правки в нём перетираются. */
.min-3p { background:#00838F !important; }
/* Флаг страны лиги (24.08) — рамка 1px, иначе белые полосы флагов (США, Финляндия)
   сливаются со светлой карточкой и флаг читается как обрезанный. */
.hk-flag { vertical-align:-1px; margin-right:5px; border-radius:2px;
    box-shadow:0 0 0 1px rgba(0,0,0,.12); }
body.dark-theme .hk-flag { box-shadow:0 0 0 1px rgba(255,255,255,.18); }
.hk-lg-nm { vertical-align:middle; }
.hk-sec { margin-top:26px; }
.hk-sec > h2 { font-size:17px; color:var(--text); margin:0 0 10px; }

/* ---- таблицы ---- */
.hk-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.hk-table th { text-align:left; font-size:12px; font-weight:600; color:var(--text-soft); padding:8px 12px; border-bottom:1px solid var(--card-border); white-space:nowrap; }
.hk-table td { padding:8px 12px; border-bottom:1px solid var(--card-border); color:var(--text); }
.hk-table tr:last-child td { border-bottom:none; }
.hk-table tbody tr:hover { background:var(--row-hover); }
.hk-table a { color:var(--text); text-decoration:none; }
.hk-table a:hover { color:var(--accent-green-dark); text-decoration:underline; }
.hk-num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-mid { text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-dim { color:var(--text-soft); }

/* ---- грид матчей дня ----
   Тот же язык, что у футбольного live-грида (Content/live.css): одна строка = один матч,
   лига — мелкой серой строкой ВНУТРИ карточки над названиями команд, а не заголовком-группой
   над куском таблицы. Классы свои (hk-*), потому что мобильная раскладка live.css завязана
   на nth-child футбольных колонок и на чужой таблице спрятала бы не те ячейки. */
.hk-live-wrap { width:100%; overflow-x:auto; }
table.hk-live { width:100%; border-collapse:collapse; font-size:12px; background:var(--card-bg);
    border:1px solid var(--card-border); }
table.hk-live thead th { background:#f0f0f0; color:#333; padding:4px 6px; text-align:center;
    white-space:nowrap; border-bottom:2px solid #bbb; font-size:11px; font-weight:600; }
body.dark-theme table.hk-live thead th { background:#2a2a2a; color:#ccc; border-bottom-color:#444; }
table.hk-live td { padding:3px 6px; border-bottom:1px solid var(--row-border); vertical-align:middle;
    color:var(--text); }
table.hk-live tbody tr:hover td { background:var(--row-hover); }
table.hk-live tbody tr.hk-r-fin td { color:var(--text-soft); }
body.dark-theme table.hk-live tbody tr.hk-r-fin td { background:#1b1b1b; }

.hk-min-td { width:56px; text-align:center; }
.hk-min-badge { display:inline-block; background:#546e7a; color:#fff; border-radius:10px;
    padding:2px 7px; font-size:10px; font-weight:bold; white-space:nowrap; }
.hk-min-badge.is-live { background:var(--accent-red); }

.hk-teams-block { padding:4px 8px !important; }
/* Колонка широкая (у нас три колонки против пятнадцати в футболе), поэтому сам блок
   лиги+команд держим в колонке фиксированной ширины по центру — иначе имена команд
   разъезжаются к краям ячейки и счёт повисает в пустоте. */
.hk-teams-block > div { max-width:460px; margin:0 auto; }
table.hk-live th:nth-child(1), table.hk-live td:nth-child(1) { width:62px; }
table.hk-live th:nth-child(3), table.hk-live td:nth-child(3) { width:120px; text-align:center; }
table.hk-live th:nth-child(4), table.hk-live td:nth-child(4) { width:70px; text-align:center; }
table.hk-live th:nth-child(5), table.hk-live td:nth-child(5) { width:120px; text-align:center; }
table.hk-live th:nth-child(6), table.hk-live td:nth-child(6) { width:96px; text-align:center; }
table.hk-live th:nth-child(7), table.hk-live td:nth-child(7) { width:96px; text-align:center; }
table.hk-live th:nth-child(8), table.hk-live td:nth-child(8) { width:72px; text-align:center; }
table.hk-live th:nth-child(9), table.hk-live td:nth-child(9) { width:78px; text-align:center; }
table.hk-live th:nth-child(10), table.hk-live td:nth-child(10) { width:78px; text-align:center; }
table.hk-live th:nth-child(11), table.hk-live td:nth-child(11) { width:140px; }
.hk-x12 { white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-x12 span { display:inline-block; min-width:28px; font-size:11px; }
.hk-x12 .hk-oo1 { color:var(--ice); font-weight:600; } .hk-x12 .hk-oo2 { color:var(--accent-orange); font-weight:600; }
.hk-x12 .hk-oox { color:var(--text-muted); }
.hk-x12 .hk-oo-src { display:block; min-width:0; font-size:9.5px; color:var(--accent-red); font-weight:600; }
.hk-live-p { display:block; font-size:9.5px; color:var(--text-muted); margin-top:1px; }
.hk-sog { display:block; font-weight:600; }
.hk-d5 { display:block; font-size:10px; color:var(--text-muted); }
.hk-d5.h { color:var(--ice); font-weight:600; } .hk-d5.a { color:var(--accent-orange); font-weight:600; }
.hk-pwr { display:flex; align-items:center; gap:4px; font-size:10.5px; font-variant-numeric:tabular-nums; }
.hk-pwr .h { color:var(--ice); font-weight:600; } .hk-pwr .a { color:var(--accent-orange); font-weight:600; }
.hk-pwr-bar { flex:1 1 auto; height:5px; background:var(--accent-orange); border-radius:3px; overflow:hidden; min-width:36px; }
.hk-pwr-bar i { display:block; height:100%; background:var(--ice); }
.hk-pwr-pct { font-size:10px; color:var(--text-muted); margin-top:1px; }
.hk-form { display:flex; gap:2px; justify-content:center; margin:1px 0; }
.hk-form i { display:inline-block; width:13px; height:13px; line-height:13px; border-radius:3px; font-size:9px; font-style:normal; font-weight:700; color:#fff; text-align:center; background:#9e9e9e; }
.hk-form i.w { background:#2e7d32; } .hk-form i.l { background:#c62828; } .hk-form i.ot { opacity:.6; }
.hk-line { display:block; font-weight:600; }
.hk-oo { display:block; font-size:10px; color:var(--text-muted); }
.hk-hit { display:block; font-size:10px; color:var(--text-muted); }
.hk-hit b { font-weight:600; } .hk-hit b.hi { color:#2e7d32; } .hk-hit b.lo { color:#c62828; }
body.dark-theme .hk-hit b.hi { color:#66bb6a; } body.dark-theme .hk-hit b.lo { color:#ef5350; }
.hk-league-row { display:flex; align-items:center; gap:5px; font-size:10px; line-height:1.3;
    color:#6b7280; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    margin-bottom:2px; }
body.dark-theme .hk-league-row { color:#9aa4b2; }
.hk-league-row a { color:inherit; text-decoration:none; overflow:hidden; text-overflow:ellipsis; }
.hk-league-row a:hover { text-decoration:underline; }
.hk-league-row .hk-logo { width:14px; height:14px; flex:0 0 auto; }
.hk-league-row .hk-stage-in { color:var(--ice); font-weight:700; }
.hk-league-row .hk-cc { font-weight:500; opacity:.75; }

.hk-teams-row { display:flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
.hk-teams-row .hk-t { font-size:13px; font-weight:500; flex:1 1 0; min-width:0; display:flex;
    align-items:center; gap:5px; overflow:hidden; }
.hk-teams-row .hk-t span { overflow:hidden; text-overflow:ellipsis; }
.hk-teams-row .hk-t.h { justify-content:flex-end; text-align:right; }
.hk-teams-row .hk-t.a { justify-content:flex-start; text-align:left; }
.hk-teams-row .hk-t.win { font-weight:700; color:var(--text); }
/* Только ссылки КОМАНД становятся флексом (логотип + имя в строку). Ссылка счёта под это
   правило попадать не должна: флекс-бокс блочный, и бейдж «ОТ» рядом со счётом уезжал
   на вторую строку, разъезжая высоту строк грида. */
.hk-teams-row .hk-t a { color:inherit; text-decoration:none; display:flex; align-items:center;
    gap:5px; min-width:0; overflow:hidden; }
.hk-teams-row a:hover { color:var(--accent-blue); }
.hk-teams-row .hk-logo { width:16px; height:16px; flex:0 0 auto; border-radius:50%; background:#f0f0f0; }
.hk-sc { font-size:15px; font-weight:700; flex:0 0 auto; padding:0 8px; white-space:nowrap;
    font-variant-numeric:tabular-nums; }
.hk-sc a { color:inherit; text-decoration:none; }
.hk-sc a:hover { color:var(--accent-blue); }
.hk-sc .hk-ot { font-size:10px; font-weight:700; color:var(--ice); margin-left:3px; vertical-align:top; }

/* Строки-таблицы на остальных страницах (H2H, матчи команды и лиги) */
.hk-row-team { white-space:nowrap; }
.hk-row-team .hk-logo { margin-right:7px; }
.hk-row-score { font-weight:700; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-row-score .hk-ot { font-size:10.5px; font-weight:600; color:var(--ice); margin-left:3px; vertical-align:top; }
.hk-win { font-weight:600; }
.hk-periods { font-size:11.5px; color:var(--text-soft); white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-series { font-size:11.5px; color:var(--text-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }

/* Мобильная раскладка грида — как в футболе: колонки-подробности прячем,
   команды встают в два ряда, счёт справа. */
@media (max-width:760px) {
    table.hk-live { border-left:0; border-right:0; }
    table.hk-live th, table.hk-live td { width:auto !important; }
    .hk-teams-block > div { max-width:none; margin:0; }
    table.hk-live thead { display:none; }
    table.hk-live, table.hk-live tbody, table.hk-live tr, table.hk-live td { display:block; width:auto; }
    table.hk-live tbody tr { display:flex; flex-wrap:wrap; align-items:center; padding:4px 10px;
        border-bottom:1px solid var(--row-border); }
    table.hk-live tbody tr td { border:0; padding:0; }
    .hk-min-td { order:1; flex:0 0 auto; width:auto; margin-right:8px; }
    .hk-teams-block { order:2; flex:1 1 auto; width:auto !important; min-width:0; padding:0 !important; }
    .hk-teams-row { display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto;
        column-gap:8px; row-gap:1px; align-items:center; }
    .hk-teams-row .hk-t.h { grid-column:1; grid-row:1; justify-content:flex-start; text-align:left; }
    .hk-teams-row .hk-t.a { grid-column:1; grid-row:2; }
    .hk-sc { grid-column:2; grid-row:1 / 3; padding:0; font-size:17px; }
    /* Разрыв строки внутри flex-строки матча: тем же приёмом футбольный грид уводит
       блок статистики под команды (live.css, tr[data-mid]::after). Без него периоды и
       броски прилипают вплотную к счёту. */
    table.hk-live tbody tr::after { content:''; display:block; flex:0 0 100%; order:3; height:0; }
    .hk-periods, .hk-sog-td, .hk-series, .hk-pwr-td, .hk-form-td, .hk-odds-td { order:5; flex:0 0 auto; margin:4px 12px 0 0;
        font-size:11px; color:var(--text-soft); }
    .hk-pwr-td { min-width:110px; } .hk-form-td .hk-form { justify-content:flex-start; }
    .hk-live-p { display:inline; margin-left:3px; }
    .hk-periods { margin-left:2px; }
    .hk-series { max-width:100%; white-space:normal; }
}

/* ---- навигация по датам ---- */
.hk-datebar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; font-size:13px; }
.hk-datebar a, .hk-datebar span.cur { display:inline-block; padding:5px 12px; border:1px solid var(--card-border); border-radius:5px; background:var(--card-bg); color:var(--accent-blue); text-decoration:none; }
.hk-datebar span.cur { font-weight:700; color:var(--text); }
.hk-datebar a:hover { border-color:var(--ice); }
.hk-offseason { background:var(--ice-soft); border:1px solid var(--card-border); border-radius:8px; padding:12px 14px; font-size:13.5px; color:var(--text-soft); margin:0 0 16px; }

.hk-sortbar { display:inline-flex; gap:8px; margin-left:auto; }
.hk-sortbar a, .hk-sortbar span.cur { padding:5px 10px; font-size:12px; }
@media (max-width:560px) { .hk-sortbar { margin-left:0; } }

/* ---- карточка матча ---- */
.hk-scoreboard { background:var(--card-bg); border:1px solid var(--card-border); border-radius:8px; padding:18px 16px; margin-bottom:16px; }

/* ---- hero-арена (аналог футбольного .match-hero с полем): СВЕТЛЫЙ лёд, разметка
   красной/синими линиями; в тёмной теме — ночная арена (тёмный фон, белый текст) ---- */
/* justify-content:flex-start — не влияет на позицию при текущей высоте контента (карточка
   уже выше min-height, лишнего места для распределения нет), но семантически верно на
   случай короткого контента; держим ради явного порядка чтения сверху вниз. */
.hk-hero { position:relative; overflow:hidden; background:linear-gradient(180deg,#f7fbff 0%,#ddecf8 100%);
    border-color:#b9d2e4; border-radius:12px; box-shadow:0 4px 16px rgba(31,72,104,.14); padding:16px 18px 18px; min-height:168px;
    display:flex; flex-direction:column; justify-content:flex-start; }
.hk-hero-rink { position:absolute; inset:0; z-index:0; pointer-events:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 260' preserveAspectRatio='xMidYMid slice'><rect x='30' y='18' width='740' height='224' rx='72' fill='%23ffffff' fill-opacity='0.55' stroke='%237aa7c7' stroke-opacity='0.8' stroke-width='2'/><line x1='400' y1='18' x2='400' y2='242' stroke='%23d84343' stroke-opacity='0.75' stroke-width='3'/><line x1='285' y1='18' x2='285' y2='242' stroke='%232f6fbe' stroke-opacity='0.7' stroke-width='3'/><line x1='515' y1='18' x2='515' y2='242' stroke='%232f6fbe' stroke-opacity='0.7' stroke-width='3'/><circle cx='400' cy='130' r='42' fill='none' stroke='%232f6fbe' stroke-opacity='0.55' stroke-width='1.8'/><circle cx='400' cy='130' r='3' fill='%232f6fbe' fill-opacity='0.8'/><circle cx='150' cy='72' r='30' fill='none' stroke='%23d84343' stroke-opacity='0.55' stroke-width='1.8'/><circle cx='150' cy='188' r='30' fill='none' stroke='%23d84343' stroke-opacity='0.55' stroke-width='1.8'/><circle cx='650' cy='72' r='30' fill='none' stroke='%23d84343' stroke-opacity='0.55' stroke-width='1.8'/><circle cx='650' cy='188' r='30' fill='none' stroke='%23d84343' stroke-opacity='0.55' stroke-width='1.8'/><circle cx='150' cy='72' r='2.5' fill='%23d84343' fill-opacity='0.7'/><circle cx='150' cy='188' r='2.5' fill='%23d84343' fill-opacity='0.7'/><circle cx='650' cy='72' r='2.5' fill='%23d84343' fill-opacity='0.7'/><circle cx='650' cy='188' r='2.5' fill='%23d84343' fill-opacity='0.7'/><line x1='78' y1='32' x2='78' y2='228' stroke='%23d84343' stroke-opacity='0.6' stroke-width='2'/><line x1='722' y1='32' x2='722' y2='228' stroke='%23d84343' stroke-opacity='0.6' stroke-width='2'/><path d='M78 106 A26 26 0 0 1 78 154' fill='%236fb3e8' fill-opacity='0.3' stroke='%232f6fbe' stroke-opacity='0.6' stroke-width='1.4'/><path d='M722 154 A26 26 0 0 1 722 106' fill='%236fb3e8' fill-opacity='0.3' stroke='%232f6fbe' stroke-opacity='0.6' stroke-width='1.4'/></svg>");
    background-size:100% 100%; background-repeat:no-repeat; }
.hk-hero > :not(.hk-hero-rink) { position:relative; z-index:1; }
.hk-hero .hk-sb-side { color:#1c3247; text-shadow:0 1px 2px rgba(255,255,255,.7); }
/* 52px/800 — паритет со счётом футбольного hero на десктопе: счёт — главный элемент
   композиции (владелец 24.08: «счёт должен быть в центре», «шрифт мелковатый»).
   position:absolute ОБЯЗАН жить в этом селекторе: `.hk-hero > :not(.hk-hero-rink)` выше
   даёт всем детям position:relative со специфичностью 0-2-0, и одноклассовый .hk-sb-score
   его не перебивает — счёт молча выпадал из круга на позицию потока. */
.hk-hero .hk-sb-score { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
    z-index:2; color:#14283a; font-size:52px; text-shadow:0 1px 3px rgba(255,255,255,.8); }
/* «Б»/«ОТ» у счёта в hero больше не печатается (владелец 05.09: «отсюда убери Б, но
   выдели её там, где счёт по буллитам») — исход помечен подписью решающей строки
   табло периодов, .hk-ph-win ниже. */
@media (max-width:640px) { .hk-hero .hk-sb-score { font-size:32px; } }
/* ночная арена в тёмной теме */
body.dark-theme .hk-hero { background:linear-gradient(180deg,#1c2a38 0%,#121d28 100%); border-color:#0d151d; }
body.dark-theme .hk-hero-rink { background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 260' preserveAspectRatio='xMidYMid slice'><rect x='30' y='18' width='740' height='224' rx='72' fill='%23ffffff' fill-opacity='0.05' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5'/><line x1='400' y1='18' x2='400' y2='242' stroke='%23ef5350' stroke-opacity='0.55' stroke-width='2.5'/><line x1='285' y1='18' x2='285' y2='242' stroke='%2364b5f6' stroke-opacity='0.55' stroke-width='2.5'/><line x1='515' y1='18' x2='515' y2='242' stroke='%2364b5f6' stroke-opacity='0.55' stroke-width='2.5'/><circle cx='400' cy='130' r='42' fill='none' stroke='%23ffffff' stroke-opacity='0.4' stroke-width='1.5'/><circle cx='400' cy='130' r='3' fill='%2364b5f6' fill-opacity='0.8'/><circle cx='150' cy='72' r='30' fill='none' stroke='%23ef5350' stroke-opacity='0.38' stroke-width='1.5'/><circle cx='150' cy='188' r='30' fill='none' stroke='%23ef5350' stroke-opacity='0.38' stroke-width='1.5'/><circle cx='650' cy='72' r='30' fill='none' stroke='%23ef5350' stroke-opacity='0.38' stroke-width='1.5'/><circle cx='650' cy='188' r='30' fill='none' stroke='%23ef5350' stroke-opacity='0.38' stroke-width='1.5'/><line x1='78' y1='32' x2='78' y2='228' stroke='%23ef5350' stroke-opacity='0.45' stroke-width='1.5'/><line x1='722' y1='32' x2='722' y2='228' stroke='%23ef5350' stroke-opacity='0.45' stroke-width='1.5'/><path d='M78 106 A26 26 0 0 1 78 154' fill='%2364b5f6' fill-opacity='0.22' stroke='%2364b5f6' stroke-opacity='0.5' stroke-width='1.2'/><path d='M722 154 A26 26 0 0 1 722 106' fill='%2364b5f6' fill-opacity='0.22' stroke='%2364b5f6' stroke-opacity='0.5' stroke-width='1.2'/></svg>"); }
body.dark-theme .hk-hero .hk-sb-side { color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5); }
body.dark-theme .hk-hero .hk-sb-score { color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.55); }

/* ---- «Что решило матч» / AI-прогноз ---- */
/* .hk-card даёт padding:0 (нужен tables/svg внутри для full-bleed), а тут открытый текст —
   без своего отступа абзацы упирались прямо в рамку карточки. Значение как у футбольного
   .match-preview (14px 16px). */
.hk-decided { font-size:14px; line-height:1.6; color:var(--text-soft); padding:14px 16px; }
.hk-decided p { margin:0 0 10px; }
.hk-decided p:last-child { margin-bottom:0; }
/* «Разбор матча» (05.09): текст читается как заметка — основной цвет, байлайн автора внизу */
.hk-report { color:var(--text); font-size:14.5px; }
.hk-report .hk-report-decided { color:var(--text-soft); }
.hk-report a { color:inherit; text-decoration:underline; text-decoration-color:var(--card-border); }
.hk-byline { font-size:12.5px; color:var(--text-muted); margin-top:12px; padding-top:10px; border-top:1px solid var(--card-border); }
.hk-byline b a { color:var(--text-soft); text-decoration:none; }
.hk-byline b a:hover { text-decoration:underline; }
/* /author/{slug} */
.hk-author-head { display:flex; gap:16px; align-items:flex-start; }
.hk-author-mono { width:56px; height:56px; border-radius:50%; background:var(--card-border); color:var(--text); font-weight:700; font-size:22px; display:flex; align-items:center; justify-content:center; flex:none; }
/* Портрет автора (06.09): фиксированный круг, БЕЗ увеличения — ни hover-scale, ни клика,
   ни лайтбокса (владелец: «сделай его не увеличивающимся»). Размер жёсткий, картинка
   отдаётся уже в нужном разрешении, поэтому cursor остаётся обычным. */
.hk-author-ph { width:96px; height:96px; border-radius:50%; object-fit:cover;
    flex:none; display:block; border:1px solid var(--card-border); user-select:none; }
@media (max-width:560px) { .hk-author-ph { width:72px; height:72px; } }
.hk-author-role { color:var(--text-soft); font-size:14px; margin:2px 0 8px; }
.hk-author-bio { font-size:14.5px; line-height:1.6; color:var(--text); padding:14px 16px; }
.hk-author-list { list-style:none; margin:0; padding:0; }
.hk-author-list li { display:flex; gap:10px; padding:8px 16px; border-bottom:1px solid var(--card-border); font-size:14px; align-items:baseline; }
.hk-author-list li:last-child { border-bottom:none; }
.hk-author-list .d { color:var(--text-muted); font-size:12.5px; flex:none; width:70px; }
.hk-author-list .lg { color:var(--text-muted); font-size:12.5px; margin-left:auto; flex:none; }
.hk-note { font-size:11.5px; color:var(--text-muted); margin:8px 2px 0; }

/* ---- списки формы: две колонки, ряд = дата · чип В/П · соперник · счёт ---- */
.hk-form2 { display:grid; grid-template-columns:1fr 1fr; gap:6px 22px; }
@media (max-width:640px) { .hk-form2 { grid-template-columns:1fr; } }
.hk-form-col { min-width:0; }
.hk-form-h { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
    color:var(--text-soft); padding:2px 0 7px; border-bottom:1px solid var(--row-border); margin-bottom:5px; }
.hk-fm-row { display:flex; align-items:center; gap:8px; padding:4px 2px; font-size:13px;
    color:var(--text); text-decoration:none; border-bottom:1px dashed var(--row-border); }
.hk-fm-row:last-child { border-bottom:none; }
a.hk-fm-row:hover { background:var(--row-hover); }
.hk-fm-date { flex:none; width:52px; color:var(--text-muted); font-size:11.5px; font-variant-numeric:tabular-nums; }
.hk-fm-opp { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hk-fm-opp i, .hk-fm-sc i { font-style:normal; font-size:10.5px; color:var(--text-muted); }
.hk-fm-sc { flex:none; font-weight:600; font-variant-numeric:tabular-nums; }
.hk-fm-sc.good { color:var(--accent-green); }
.hk-fm-sc.bad { color:var(--accent-red); }
.hk-fm-row { flex-wrap:wrap; }
/* ---- таблицы матчей (очные встречи, последние матчи, общие/похожие соперники) ----
   Один рендерер на все четыре блока (владелец 24.08: «одну таблицу сделал, а другие
   не сделал»): порт футбольного match-stats-table — подсветка исхода на имени команды,
   метрики парами хозяева/гости, группы разделены мягким фоном шапки, иконки в th. */
.hk-sub-h { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    font-size:13.5px; font-weight:700; color:var(--text); margin:16px 0 6px; }
.hk-sub-h:first-child { margin-top:0; }
.hk-form-chips { display:inline-flex; gap:3px; }
.hk-chip { width:17px; height:17px; border-radius:4px; display:inline-flex; align-items:center;
    justify-content:center; font-size:10px; font-weight:700; color:#fff; }
.hk-chip.w { background:#2e7d32; }
.hk-chip.l { background:#c62828; }
.hk-mt-wrap { overflow-x:auto; }
.hk-mt-table th, .hk-mt-table td { white-space:nowrap; }
.hk-mt-table th { text-align:center; }
.hk-mt-table th:first-child, .hk-mt-lg-th, .hk-mt-team-th { text-align:left; }
/* Иконка и подпись в шапке — как th-cicon у футбола: иконка ведёт, текст поясняет. */
.hk-mt-table th svg { vertical-align:-2px; }
.hk-th-t { margin-left:4px; }
.hk-mt-team-th { min-width:104px; }
.hk-mt-lg-th { min-width:80px; }
.hk-mt-lg { max-width:120px; overflow:hidden; text-overflow:ellipsis; font-size:11.5px; }
.hk-mt-dt { font-variant-numeric:tabular-nums; font-size:12px; }
.hk-mt-rt { font-style:normal; font-size:10.5px; color:var(--text-muted); }
.hk-mt-table .hk-num { text-align:center; font-variant-numeric:tabular-nums; }
/* Лучшее в паре — жирным: колонки читают «кто кого», а не абсолютные значения. */
.hk-mt-table .hk-best { font-weight:700; color:var(--text); }
.hk-mt-g1 { background:rgba(2,119,189,.07); }
.hk-mt-g2 { background:rgba(230,81,0,.08); }
.hk-mt-g3 { background:rgba(0,0,0,.04); }
.hk-mt-g4 { background:rgba(198,40,40,.06); }
body.dark-theme .hk-mt-g1 { background:rgba(79,195,247,.10); }
body.dark-theme .hk-mt-g2 { background:rgba(255,183,77,.10); }
body.dark-theme .hk-mt-g3 { background:rgba(255,255,255,.05); }
body.dark-theme .hk-mt-g4 { background:rgba(239,83,80,.12); }
.hk-res-w { background:var(--accent-green-soft); color:var(--accent-green-dark); font-weight:700; }
.hk-res-l { background:var(--accent-red-soft); color:var(--accent-red); }
.hk-res-d { background:var(--accent-yellow-soft); color:var(--text); font-weight:600; }

/* ---- сводка «на фоне общих соперников» (порт co-sum с футбольной MatchPage) ----
   Компактная таблица под списками матчей: перевес — цветом ЦИФРЫ, не заливкой ячейки,
   поэтому пара «за / против» помещается в одну строку. */
.hk-co-verdict { margin:10px 0 6px; font-size:12.5px; color:var(--text-soft); }
.hk-co-verdict b { color:var(--text); }
.hk-co { font-size:12px; }
.hk-co thead th { font-size:10px; font-weight:700; padding:5px 8px; text-align:center;
    color:var(--text-muted); text-transform:uppercase; letter-spacing:.3px; background:rgba(0,0,0,.02); }
body.dark-theme .hk-co thead th { background:rgba(255,255,255,.03); }
.hk-co thead th:first-child { text-align:left; }
.hk-co thead th:not(:first-child) { width:28%; }
.hk-co tbody th { text-align:left; font-weight:500; font-size:11px; padding:3px 8px;
    color:var(--text-muted); border-bottom:1px dashed var(--row-border); }
.hk-co tbody td { padding:3px 8px; text-align:center; white-space:nowrap;
    border-bottom:1px dashed var(--row-border); color:var(--text); font-variant-numeric:tabular-nums; }
.hk-co tbody tr:hover { background:transparent; }
.hk-co tbody tr:last-child th, .hk-co tbody tr:last-child td { border-bottom:none; }
.hk-co tr.co-sum-info td { color:var(--text-muted); }
.hk-co .co-up { color:var(--accent-green-dark); font-weight:700; }
.hk-co .co-dn { color:var(--text-muted); }
.hk-co .co-eq { color:var(--text-soft); }
.hk-co .co-sl { color:var(--card-border); }

/* «Фора против общих» vs линия фонбета (задача B, 09.09.2026) — итоговая строка
   после таблицы/вердикта, тем же приглушённым весом, что и hk-co-verdict, без
   акцентной заливки (правило раздела: выделение весом/цветом текста). */
.hk-co-line { margin:6px 0 0; font-size:12.5px; color:var(--text-soft); }

/* Блок «на фоне общих соперников» на карточке матча: список матчей — те же две
   колонки «Дома»/«Гости», что в «Последних матчах» (m-recent-tbl, замечание
   владельца 10.09.2026: старые чипы счёта не говорили, кто дома, кто в гостях).
   Сводка (hk-co) держим в той же мере чтения, что полосы сравнения (640px). */
.m-co-win { font-size:12px; font-weight:400; color:var(--text-muted); }
.m-co .hk-co { width:100%; max-width:640px; margin:0 auto; border-collapse:collapse; }
/* Список идёт ПЕРЕД сводкой (09.09.2026, порядок «данные → вывод») — отступ снизу,
   чтобы вердикт читался как итог, а не слипался со списком. */
.m-co .m-recent-cols { margin-bottom:12px; }
.m-co .hk-co-verdict { max-width:640px; margin:0 auto 8px; }
.m-co .hk-co-line { max-width:640px; margin:6px auto 0; }

/* ---- расчёт тоталов ---- */
.hk-tot-table td, .hk-tot-table th { font-variant-numeric:tabular-nums; }
.hk-tot-pct { font-weight:700; color:var(--text-soft); }
.hk-tot-pct.hi { color:var(--accent-green); }
.hk-tot-pct.lo { color:var(--accent-red); }
.hk-tot-predict td { border-top:2px solid var(--card-border); font-size:13.5px; }

/* ---- видеообзор ---- */
.hk-video { padding:10px 12px; }
.hk-video-frame { position:relative; width:100%; max-width:720px; margin:0 auto; aspect-ratio:16/9; }
.hk-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:8px; }
.hk-video-card { display:block; max-width:480px; margin:0 auto; position:relative; border-radius:8px; overflow:hidden; }
.hk-video-card img { display:block; width:100%; }
.hk-video-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:56px; height:40px;
    background:rgba(200,30,30,.9); color:#fff; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.hk-video-src { text-align:center; font-size:12px; color:var(--text-muted); margin-top:6px; }

/* ---- «Когда забивают и пропускают»: тепловые 5-мин ячейки ---- */
.gt-toggle { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-soft);
    cursor:pointer; margin-bottom:10px; user-select:none; }
.gt-team { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
    color:var(--text-soft); margin:10px 0 6px; }
.gt-grid { display:grid; grid-template-columns:86px repeat(13, 1fr); gap:3px; }
.gt-grid .gt-r, .gt-grid .gt-axis { display:contents; }
.gt-lbl { font-size:11px; color:var(--text-muted); align-self:center; }
.gt-c { height:24px; border-radius:4px; display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.gt-axis span { font-size:9.5px; color:var(--text-muted); text-align:center; padding-top:1px; }
@media (max-width:640px) {
    .gt-grid { grid-template-columns:64px repeat(13, 1fr); gap:2px; }
    .gt-c { height:20px; font-size:9.5px; }
    .gt-lbl { font-size:9.5px; }
}
/* Дата — стеклянная пилюля вверху карточки, как hb-right на футболе (там же лига/статус):
   align-self:center — сам .hk-sb-meta является flex-item колонки .hk-hero, без него
   растянулся бы на всю ширину (align-items по умолчанию stretch). */
/* Без nowrap: в отличие от футбольного hb-right сюда попадает ещё SeriesInfo («Carolina
   Hurricanes wins series 4-2») — на узких экранах может не влезть в одну строку, пилюля
   должна переноситься, а не вылезать за карточку. max-width держит центрирование на wide. */
.hk-sb-meta { align-self:center; max-width:100%; margin-bottom:16px; display:inline-block; line-height:1.35;
    background:rgba(0,0,0,0.32); border:1px solid rgba(255,255,255,0.12); border-radius:14px;
    padding:3px 10px; backdrop-filter:blur(4px); box-sizing:border-box;
    font-size:12px; font-weight:500; color:rgba(255,255,255,0.82);
    font-variant-numeric:tabular-nums; text-align:center; }
.hk-sb-meta .hk-time { font-weight:700; color:#fff; }
/* Ссылки на источники (26.08) — тот же вид, что .mp-src-links на футбольной MatchPage
   (там правила лежат инлайном): буквенные плашки, видны только владельцу и на тест-хосте.
   Позиция как у футбола — прижаты к краю (там absolute от hero-band слева), у нас
   левый верхний угол карточки: 26.08 владелец про центр — «куда их в центр вставил». */
.hk-hero .mp-src-links { position:absolute; top:8px; left:8px; display:flex; gap:6px; z-index:3; }
.mp-src-links a, .mp-src-links span { font-size:11px; font-weight:700; color:#bbb; text-decoration:none;
    background:rgba(0,0,0,0.42); border-radius:8px; min-width:16px; padding:0 4px;
    height:16px; line-height:16px; text-align:center; }
.mp-src-links a:hover { color:#fff; }
/* Пилюля статуса над счётом — копия футбольной (.m-badge/.m-live/.m-ht/.m-ft из
   MatchPage.aspx, там правила лежат инлайном и в хоккейную страницу не попадают).
   Имена классов и значения те же, чтобы обе карточки читались одинаково; отличие
   одно: у футбола containing block — .score-wrap, у нас сам .hk-sb-score (он уже
   absolute по центру катка, так что bottom:100% отсчитывается от цифр счёта). */
.m-badge { position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
    text-align:center; margin:0 0 12px; white-space:nowrap; z-index:2; }
.m-badge:empty { margin:0; }
.m-live, .m-ht, .m-ft {
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 14px; border-radius:14px;
    font-size:11px; font-weight:700; line-height:1.2;
    text-transform:uppercase; letter-spacing:0.6px; vertical-align:middle;
}
.m-live { background:#c62828; color:#fff; }
.m-live::before { content:''; width:6px; height:6px; border-radius:50%; background:#fff;
    animation:matchBadgePulse 1.6s infinite; }
.m-ht { background:#37474f; color:#fff; }
.m-ft { background:#263238; color:#cfd8dc; }
@keyframes matchBadgePulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
@media (prefers-reduced-motion:reduce) { .m-live::before { animation:none; } }
/* Композиция 1:1 с футбольным hero (.teams-main, MatchPage): команда — вертикальный стек
   «логотип над именем», счёт — средняя колонка фиксированной ширины строго на оси карточки
   (это же ось центрального круга катка в фоне). Колонки minmax(0,230px) 140px minmax(0,230px),
   как у футбола: счёт не съезжает в сторону длинного имени. Владелец 25.08: «счёт и команды
   именно по центру красиво». */
/* align-items:start обязателен: стеки разной высоты (у одной команды список голов, у
   другой нет) при center разъезжались по вертикали — имена сходят с общей линии. */
.hk-sb-teams { display:grid; grid-template-columns:minmax(0,230px) 140px minmax(0,230px);
    justify-content:center; align-items:start; column-gap:16px; }
/* Стек команды: по центру своей колонки (width:100%, как .team-main футбола — без неё
   стек сжимается по контенту и прилипает к счёту), имя 20px/700 как на футбольном hero. */
.hk-sb-side { min-width:0; width:100%; box-sizing:border-box; display:flex; flex-direction:column;
    align-items:center; gap:8px; font-size:20px; font-weight:700; color:var(--text);
    text-align:center; line-height:1.2; }
.hk-sb-side:not(.away) { grid-column:1; justify-self:end; }
/* У гостей в разметке лого стоит ПОСЛЕ имени (наследие строчной раскладки) —
   column-reverse ставит его над именем, как у хозяев, без правки серверного кода. */
.hk-sb-side.away { grid-column:3; justify-self:start; flex-direction:column-reverse; }
.hk-sb-side a { color:inherit; text-decoration:none; }
.hk-sb-side a:hover { text-decoration:underline; }
/* Логотип — белый круг с мягкой тенью, как .hero-logo футбола; размеры чуть меньше
   (44 против 42+рамки), лёд светлый — тень холодная, не чёрная. */
.hk-hero .hk-sb-side .hk-logo { width:44px; height:44px; box-sizing:content-box; padding:2px;
    background:#fff; border:1px solid rgba(122,167,199,.55); border-radius:50%;
    box-shadow:0 2px 6px rgba(31,72,104,.28); object-fit:contain; }
/* Пустой двойник логотипа: у команды без лого имя не должно вставать выше соседа. */
.hk-logo-ph { visibility:hidden; }
body.dark-theme .hk-hero .hk-sb-side .hk-logo { border-color:rgba(255,255,255,.35);
    box-shadow:0 2px 6px rgba(0,0,0,.45); }
/* Типографика счёта; позиционирование (absolute на центре круга) — в правиле
   `.hk-hero .hk-sb-score` выше: одноклассовый селектор не перебил бы position:relative
   от `.hk-hero > :not(.hk-hero-rink)`. */
.hk-sb-score { font-size:30px; font-weight:800; color:var(--text); white-space:nowrap;
    font-variant-numeric:tabular-nums; letter-spacing:-1px; line-height:1.05; text-align:center; }
.hk-sb-score-gap { display:inline-block; width:16px; }
/* Обёртка пилюли периодов. Без неё .hk-phases — блочный grid, а он прямой ребёнок
   колонки .hk-hero с align-items:stretch: 26.08 панель растянулась на всю карточку,
   фон лёг поверх имён команд, а колонки цифр разъехались по краям. flex + center
   сжимают её по содержимому и держат по центру. */
.hk-sb-periods { display:flex; justify-content:center; }
/* Якорь ряда команд — ЛИНИЯ ИМЕНИ, не центр стека (владелец 25.08: «названия уехали
   вверх»): ряд absolute на 50% высоты со сдвигом -68px = логотип 48 (44+рамка) + зазор 8 +
   полвысоты имени 12. Имя стоит ровно на оси счёта/круга, логотип висит над ним, список
   авторов голов растёт вниз, не двигая имя. Пилюля периодов прижата к низу карточки
   (margin-top:auto), min-height подобран так, чтобы счёт в круге её не касался. */
.hk-hero { min-height:240px; }
/* Панель периодов прижата к низу и растёт вверх: у матча с ОТ (4 строки) и особенно с
   буллитами (5 строк) она доставала до счёта в центре круга (владелец 05.09: «счёт
   налазит на тёмный блок»). Карточка тянется по числу строк — счёт остаётся в центре. */
.hk-hero.hk-hero-ph4 { min-height:300px; }
.hk-hero.hk-hero-ph5 { min-height:334px; }
/* Панель — ближе к счёту, а не у самого борта (владелец 05.09: «слишком сильно опустил»):
   на десктопе списки авторов голов стоят по бокам и с панелью по горизонтали не
   пересекаются, поэтому её можно поднять к цифрам. Зазор до счёта ≈ 15px. */
.hk-hero.hk-hero-ph4 .hk-sb-periods, .hk-hero.hk-hero-ph5 .hk-sb-periods { margin-bottom:18px; }
/* Ряд команд якорится к середине, панель — к низу: рост карточки разводит их лишь
   наполовину, поэтому вместе с высотой поднимаем и якорь (иначе список авторов голов
   уходит под панель). */
.hk-hero.hk-hero-ph4 .hk-sb-teams { transform:translateY(-84px); }
.hk-hero.hk-hero-ph5 .hk-sb-teams { transform:translateY(-92px); }
.hk-hero .hk-sb-teams { position:absolute; left:18px; right:18px; top:50%;
    transform:translateY(-68px); }
/* Матч без логотипов у обеих команд: стек начинается сразу с имени, поэтому якорь —
   не высота логотипа, а полстроки имени (20px × 1.2 / 2). Иначе имена висят на 68px
   выше счёта, и ряд команд читается как съехавший с центра карточки. */
.hk-hero .hk-sb-teams.no-logo { transform:translateY(-12px); }
.hk-hero .hk-sb-periods { margin-top:auto; }
/* Авторы голов под именем — сетка «шайба · минута · фамилия», порт .hero-goals футбола;
   цвета под светлый лёд, в тёмной теме — светлым. */
.hk-goals { display:grid; grid-template-columns:12px max-content minmax(0,max-content);
    justify-content:center; column-gap:5px; row-gap:2px; width:100%; margin-top:3px;
    font-size:11px; font-weight:500; line-height:1.3; color:#33506a; }
.hk-goals .hg-item { display:contents; }
.hk-goals .hg-ic { display:inline-flex; align-items:center; justify-content:center; align-self:center; }
.hk-goals .hg-ic svg { width:11px; height:11px; }
.hk-goals .hg-min { font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-goals .hg-pl { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }
body.dark-theme .hk-goals { color:rgba(255,255,255,.82); }
/* Тёмная шайба на ночной арене невидима — инверсией в светло-серую, форму не трогаем. */
body.dark-theme .hk-goals .hg-ic svg { filter:invert(.85); }
/* Панель периодов (владелец 25.08: «как было вертикально, только без периодов, надо
   обрамление»; 26.08 повторно — горизонтальную строку «1:0 0:2 1:1» под счётом
   откатили): столбик пар «хозяева гости», строки 1→2→3 сверху вниз, подписей нет —
   только «ОТ»/«Бул.» у доп. времени, absolute влево от цифр, чтобы не сдвигать пары
   с общей оси. Обрамление — то же тёмное стекло, что пилюля даты hk-sb-meta. */
/* Счёт по периодам под главным счётом (владелец 26.08): строка на период — пара цифр
   «хозяева гости», сверху вниз 1→2→3→ОТ→Бул. Итога здесь нет: он и так крупно в центре
   катка. Три колонки grid [хозяева][гости][подпись], ячейки лежат в сетке напрямую, без
   обёрток-строк: цифры всех строк стоят строго друг под другом, а подпись «ОТ»/«Бул»
   висит СПРАВА от пары в собственной колонке и не сдвигает цифры с общей оси. */
/* Колонки: [зеркало подписи][хозяева][гости][подпись]. Первая пустая и ровно той же
   ширины, что колонка «ОТ»/«Бул» — без неё подпись справа сдвигала пары цифр влево от
   оси карточки, и счёт по периодам не стоял под главным счётом. */
.hk-phases { display:grid; grid-template-columns:1.9em auto auto 1.9em; align-items:baseline;
    justify-items:center; column-gap:10px; row-gap:2px;
    background:rgba(12,26,38,0.5); border:1px solid rgba(255,255,255,0.14); border-radius:11px;
    padding:5px 10px 6px; backdrop-filter:blur(5px); box-shadow:0 2px 8px rgba(9,24,38,.2); }
.hk-ph-h { grid-column:2; }
.hk-ph-a { grid-column:3; }
.hk-ph-lbl { grid-column:4; }
/* Цифры — табличные, чтобы столбики не гуляли на 1 и 4. Сыгранный период приглушён,
   идущий — красный, тем же тоном, что пилюля .m-live над счётом; в перерыве красного
   нет ни у одной строки (см. LivePeriodOrd). */
.hk-ph-h, .hk-ph-a { min-width:1.15em; font-size:12px; font-weight:700; line-height:1.4;
    color:rgba(255,255,255,.86); text-align:center; font-variant-numeric:tabular-nums; }
.hk-ph-now { color:#ff6b6b; }
/* Подпись доп. времени: правая колонка, ширина держится пустыми ячейками обычных
   периодов — поэтому пары цифр стоят на одной оси и в матче без овертайма. */
.hk-ph-lbl { justify-self:start; font-size:8px; font-weight:700; line-height:1.6;
    white-space:nowrap; color:rgba(255,255,255,.6); text-transform:uppercase; letter-spacing:.06em; }
.hk-ph-now.hk-ph-lbl { color:#ff8a80; }
/* Решающая строка (ОТ/буллиты) — вместо метки «Б»/«ОТ» у счёта (снята 05.09, владелец:
   «не надо смещать итоговый счёт с центра... выдели её там, где счёт по буллитам»):
   подпись строки крупнее и янтарная, цифры этой строки — белые. */
.hk-ph-win.hk-ph-lbl { font-size:10px; color:#ffca7a; letter-spacing:.05em; }
.hk-ph-win.hk-ph-h, .hk-ph-win.hk-ph-a { color:#fff; }
/* Цвет строки доп. времени (владелец 05.09: «если Бул оранжевым, то и счёт оранжевым»):
   вся строка — цифры и подпись — одним тоном, буллиты янтарные, овертайм голубой.
   Правила стоят ПОСЛЕ .hk-ph-win: специфичность равная (два класса), выигрывает
   последнее — поэтому решающая строка тоже красится по своему типу, а не в белый. */
.hk-ph-so.hk-ph-h, .hk-ph-so.hk-ph-a, .hk-ph-so.hk-ph-lbl { color:#ffb15c; }
.hk-ph-ot.hk-ph-h, .hk-ph-ot.hk-ph-a, .hk-ph-ot.hk-ph-lbl { color:#7fc9f5; }
/* Минута лайва в строке идущего периода — зеркальная (первая) колонка, справа к паре:
   «39' | 1 2». Колонка и так держит ширину подписи ОТ/Бул, минута её занимает, не
   сдвигая цифры с оси; тон — как у красной подписи текущего периода. */
.hk-ph-min { grid-column:1; justify-self:end; font-size:13px; font-weight:700; line-height:1.4;
    white-space:nowrap; color:#ff8a80; font-variant-numeric:tabular-nums; }
@media (max-width:560px) {
    /* min-width:0 обязателен: у grid-item дефолт auto, и длинное имя команды распирало
       свою колонку, сдвигая счёт с оси карточки. Колонки — как у футбольного hero на
       мобиле: minmax(0,1fr) 72px minmax(0,1fr). */
    .hk-sb-side { font-size:14px; min-width:0; }
    .hk-sb-teams { grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr); column-gap:8px; }
    .hk-sb-side:not(.away) { justify-self:center; }
    .hk-sb-side.away { justify-self:center; }
    .hk-hero .hk-sb-side .hk-logo { width:34px; height:34px; }
    /* Пересчёт якоря имени под мобильные размеры: лого-бокс 40 (34+2·2+рамка) + зазор 8 +
       полвысоты имени ~8. */
    .hk-hero { min-height:198px; }
    /* На мобиле панель ещё и наезжала на списки авторов голов под именами команд.
       Панель прижата к низу, ряд команд — к середине: рост карточки разводит их только
       наполовину, поэтому вместе с высотой поднимаем и якорь ряда команд. */
    .hk-hero.hk-hero-ph4 { min-height:318px; }
    .hk-hero.hk-hero-ph5 { min-height:330px; }
    .hk-hero.hk-hero-ph4 .hk-sb-teams { transform:translateY(-68px); }
    .hk-hero.hk-hero-ph5 .hk-sb-teams { transform:translateY(-72px); }
    /* На мобиле панель стоит между списками голов — поднимать её к счёту нельзя. */
    .hk-hero.hk-hero-ph4 .hk-sb-periods, .hk-hero.hk-hero-ph5 .hk-sb-periods { margin-bottom:0; }
    .hk-hero .hk-sb-teams { transform:translateY(-56px); }
    .hk-hero .hk-sb-teams.no-logo { transform:translateY(-9px); }
    .hk-goals { font-size:10px; }
    .hk-sb-score-gap { width:10px; }
    .hk-phases { column-gap:9px; padding:4px 11px 5px; }
    .hk-title { font-size:20px; }
    .hk-table th, .hk-table td { padding:9px 8px; }
}

/* ---- полоски статистики ---- */
.hk-stat { display:grid; grid-template-columns:64px 1fr 64px; align-items:center; gap:10px; padding:7px 12px; border-bottom:1px solid var(--card-border); font-size:13px; }
.hk-stat:last-child { border-bottom:none; }
.hk-stat .hk-stat-name { text-align:center; font-size:12px; color:var(--text-soft); }
.hk-stat .hk-stat-v { font-variant-numeric:tabular-nums; font-weight:600; color:var(--text); }
.hk-stat .hk-stat-v.r { text-align:right; }
.hk-bar { height:6px; background:var(--bar-track); border-radius:3px; overflow:hidden; display:flex; margin-top:5px; }
.hk-bar i { display:block; height:100%; }
.hk-bar i.h { background:var(--ice); }
.hk-bar i.a { background:var(--accent-orange); }

/* ---- таймлайн событий ---- */
.hk-tl { list-style:none; margin:0; padding:0; font-size:13px; }
.hk-tl li { display:grid; grid-template-columns:1fr 62px 1fr; gap:10px; align-items:baseline; padding:6px 12px; border-bottom:1px solid var(--card-border); }
.hk-tl li:last-child { border-bottom:none; }
.hk-tl .t { text-align:center; color:var(--text-soft); font-size:11.5px; font-variant-numeric:tabular-nums; }
.hk-tl .h { text-align:right; }
.hk-tl .a { text-align:left; }
.hk-tl .goal { font-weight:600; color:var(--text); }
.hk-tl .assist { color:var(--text-soft); font-size:12px; }
.hk-tl .pen { color:var(--text-soft); }
.hk-tl-period { padding:7px 12px; background:var(--ice-soft); font-size:11.5px; font-weight:600; color:var(--text-soft); text-transform:uppercase; letter-spacing:.03em; }
/* 05.09: цветные иконки событий у оси времени (владелец: «иконками разные события,
   цветные»). Ячейка — flex, иконка ближе к центру строки: у хозяев справа от текста,
   у гостей слева; текст не сдвигает иконку с вертикали. Серия буллитов — раунды
   «хозяева | № | гости», попытка = кружок исхода + фамилия. */
.hk-tl .h, .hk-tl .a { display:flex; align-items:flex-start; gap:8px; min-width:0; }
.hk-tl .h { justify-content:flex-end; }
.hk-tl .ev { min-width:0; }
.hk-tl .hk-ev-ic { flex:none; width:16px; height:16px; margin-top:1px; }
.hk-tl .hk-tl-so .h, .hk-tl .hk-tl-so .a { align-items:center; }
.hk-tl .so-att { display:inline-flex; align-items:center; gap:7px; }
.hk-tl .h .so-att { flex-direction:row-reverse; }
.hk-tl .so-pl { font-weight:600; color:var(--text); }
.hk-tl-so-tally { margin-left:6px; font-variant-numeric:tabular-nums; color:var(--text); }
/* Тёмная шайба на тёмном фоне не читается — инверсия, как у hero-шайбы (.hk-goals). */
body.dark-theme .hk-tl .hk-ev-ic.puck { filter:invert(.85); }

/* ---- форма команды ---- */
.hk-form { display:inline-flex; gap:3px; }
.hk-form span { width:18px; height:18px; border-radius:3px; font-size:10.5px; line-height:18px; text-align:center; font-weight:700; color:#fff; }
.hk-form .w { background:#2e7d32; }
.hk-form .otw { background:#66bb6a; }
.hk-form .otl { background:#ef9a9a; color:#7f1d1d; }
.hk-form .l { background:#c62828; }

/* ---- сетка карточек лиг ---- */
.hk-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; }
.hk-tile { display:flex; align-items:center; gap:10px; background:var(--card-bg); border:1px solid var(--card-border); border-radius:8px; padding:10px 12px; text-decoration:none; color:var(--text); }
.hk-tile:hover { border-color:var(--ice); }
.hk-tile b { font-size:13.5px; font-weight:600; display:block; }
.hk-tile small { font-size:11.5px; color:var(--text-soft); }

/* ---- подвал ---- */
.site-footer { width:100vw; margin-left:calc(50% - 50vw); background:#f5f5f5; border-top:1px solid #ddd; font-size:12px; color:#777; margin-top:40px; }
.footer-inner { max-width:1600px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; }
.footer-sep { color:#bbb; }
.footer-copy { color:#999; font-size:11px; }
.footer-brand { color:#2e7d32 !important; font-weight:600; }
.site-footer a { color:#1565C0; text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.site-footer a:hover { text-decoration:underline; }
body.dark-theme .site-footer { background:#222; border-top:1px solid #333; color:#888; }
body.dark-theme .site-footer a { color:#64b5f6; }
body.dark-theme .footer-brand { color:#66bb6a !important; }
body.dark-theme .footer-sep { color:#555; }

/* =====================================================================
   26.08: коэффициенты и прогноз (/hockey/match) — те же приёмы, что у
   футбольных .bg-line-card / .prob-block: строка = рынок + чипы исходов,
   справедливый коэффициент модели строкой под ценой букмекера.
   ===================================================================== */
.hk-od { padding:2px 14px 12px; overflow-x:visible; }
.hk-od-grp { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase;
    letter-spacing:0.4px; margin:14px 0 2px; }
.hk-od-grp:first-child { margin-top:10px; }
.hk-od-row { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px dashed var(--row-border); }
.hk-od-row:last-child { border-bottom:none; }
.hk-od-mkt { flex:0 0 140px; font-size:13px; font-weight:600; color:var(--text-soft); line-height:1.3; }
.hk-od-mkt b { color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
.hk-od-sub { display:block; font-size:10.5px; font-weight:500; color:var(--text-muted); }
.hk-od-cells { flex:1 1 auto; display:flex; gap:6px; min-width:0; }
.hk-od-o { flex:1 1 0; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center;
    gap:0 6px; padding:5px 8px; border:1px solid transparent; border-radius:6px; background:var(--ice-soft); }
.hk-od-lbl { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.3px; }
.hk-od-o b { font-size:14px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.hk-od-fair { flex:1 0 100%; text-align:center; font-size:10.5px; color:var(--text-muted);
    white-space:nowrap; font-variant-numeric:tabular-nums; }
.hk-od-o.is-val { border-color:var(--accent-green); background:var(--accent-green-soft); }
.hk-od-o.is-val b { color:var(--accent-green-dark); }
.hk-od-val { color:#f59e0b; }
.hk-od-bk { flex:0 0 44px; text-align:right; font-size:10.5px; color:var(--text-muted); white-space:nowrap; }
@media (max-width:640px) {
    .hk-od { padding:2px 12px 10px; }
    .hk-od-row { flex-wrap:wrap; gap:4px 8px; }
    .hk-od-mkt { flex:1 1 auto; }
    .hk-od-bk { flex:0 0 auto; }
    .hk-od-cells { flex:1 1 100%; }
}

.hk-pick { padding:14px 16px; margin-bottom:10px; overflow-x:visible; }
.hk-pick-tip { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; font-size:15px; color:var(--text-soft); }
.hk-pick-tip b { font-size:16px; color:var(--text); }
.hk-pick-odds { margin-top:4px; font-size:13px; color:var(--text-soft); font-variant-numeric:tabular-nums; }
.hk-pick-odds b { color:var(--text); }
.hk-pick-val { margin-top:4px; display:flex; align-items:center; gap:8px; }
.hk-pick-edge { font-size:13px; font-weight:700; color:var(--accent-green-dark); }
.hk-pick-stars { color:#f59e0b; font-size:15px; letter-spacing:1px; }
.hk-pick-stars-off { color:var(--bar-track); }
.hk-pick-sub { margin:12px 0 4px; font-size:11px; font-weight:600; color:var(--text-muted);
    text-transform:uppercase; letter-spacing:0.4px; }
.hk-pick-why { font-size:13px; line-height:1.55; color:var(--text-soft); }
.hk-pick-why p { margin:0 0 6px; }
.hk-pick-why p:last-child { margin-bottom:0; }
.hk-pick-note { margin-top:12px; padding-top:10px; border-top:1px solid var(--card-border);
    font-size:12px; color:var(--text-muted); }

/* =====================================================================
   24.08: статистика и momentum на карточке матча — 1:1 стили футбольной
   MatchPage.aspx (.match-stats-block / .momentum-chart), скопированы из её
   инлайн-<style>. Цвета H/A те же, что на футболе: #2196F3 / #ff9800.
   ===================================================================== */

/* ---- блок статистики: diverging-бары ---- */
.match-stats-block { background:var(--card-bg); border:1px solid var(--card-border); border-radius:8px; padding:10px 14px; }
.ms-row { padding:4px 0; font-size:13px; }
.ms-bar { position:relative; height:24px; border-radius:6px; overflow:hidden; background:var(--bar-track); }
.ms-fill-h { position:absolute; left:0; top:0; bottom:0; border-radius:6px 0 0 6px; }
.ms-fill-a { position:absolute; right:0; top:0; bottom:0; border-radius:0 6px 6px 0; }
.ms-val-h, .ms-val-a { position:absolute; top:0; bottom:0; display:flex; align-items:center; color:#fff; font-size:12px; font-weight:700; text-shadow:0 1px 2px rgba(0,0,0,0.45); z-index:2; }
.ms-val-h { left:10px; }
.ms-val-a { right:10px; }
.ms-lbl { position:absolute; left:50%; top:0; bottom:0; transform:translateX(-50%); display:flex; align-items:center; gap:5px; font-size:10px; font-weight:700; color:#fff; text-transform:uppercase; letter-spacing:0.4px; text-shadow:0 1px 2px rgba(0,0,0,0.6); white-space:nowrap; z-index:3; }
@media (max-width:640px) {
    .ms-bar { height:22px; }
    .ms-val-h, .ms-val-a { font-size:11px; }
    .ms-lbl { font-size:9px; gap:3px; }
}

/* ---- табы периодов (CSS-only radio, как ms-period-* на футболе) ---- */
.ms-period-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.ms-period-tabs { display:flex; gap:4px; margin:0 0 12px; border-bottom:1px solid var(--card-border); }
.ms-period-tab { flex:1 1 0; padding:9px 8px 8px; color:var(--text-muted); font-size:13px;
    font-weight:600; text-align:center; cursor:pointer; border-bottom:2px solid transparent; user-select:none; }
.ms-period-tab:hover { color:var(--text); }
#ms-p-p1:checked ~ .ms-period-tabs .ms-tab-p1,
#ms-p-p2:checked ~ .ms-period-tabs .ms-tab-p2,
#ms-p-p3:checked ~ .ms-period-tabs .ms-tab-p3,
#ms-p-ot:checked ~ .ms-period-tabs .ms-tab-ot,
#ms-p-full:checked ~ .ms-period-tabs .ms-tab-full { color:var(--accent-green-dark); border-bottom-color:var(--accent-green); }
.ms-period-panel { display:none; }
#ms-p-p1:checked ~ .ms-period-panels .ms-panel-p1,
#ms-p-p2:checked ~ .ms-period-panels .ms-panel-p2,
#ms-p-p3:checked ~ .ms-period-panels .ms-panel-p3,
#ms-p-ot:checked ~ .ms-period-panels .ms-panel-ot,
#ms-p-full:checked ~ .ms-period-panels .ms-panel-full { display:block; }

/* ---- momentum-график (копия футбольного .momentum-chart) ---- */
.momentum-chart { width:100%; margin-bottom:14px; padding:0; }
.momentum-chart .mom-pressure-label { font-size:10px; text-transform:uppercase; letter-spacing:.04em; color:#94a3b8; margin-bottom:3px; }
body.dark-theme .momentum-chart .mom-pressure-label { color:#64748b; }
.momentum-chart .mom-pressure-row { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.momentum-chart .mom-pressure-badge { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:4px; font-size:9px; font-weight:700; color:#fff; flex:none; }
.momentum-chart .mom-pressure-badge-h { background:#2196F3; }
.momentum-chart .mom-pressure-badge-a { background:#ff9800; }
.momentum-chart .mom-pressure-pct { font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; min-width:30px; color:#475569; flex:none; }
body.dark-theme .momentum-chart .mom-pressure-pct { color:#cbd5e1; }
.momentum-chart .mom-pressure-pct-a { text-align:right; }
.momentum-chart .mom-pressure-track { position:relative; flex:1 1 auto; height:6px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
body.dark-theme .momentum-chart .mom-pressure-track { background:#334155; }
/* без анимации ширины из футбольного оригинала: у хоккея live — полный reload страницы
   раз в 90с, полоса всегда рендерится заново, анимировать нечего */
.momentum-chart .mom-pressure-fill-h { position:absolute; left:0; top:0; bottom:0; width:50%; background:#2196F3; }
.momentum-chart .mom-pressure-fill-a { position:absolute; right:0; top:0; bottom:0; width:50%; background:#ff9800; }
.momentum-chart .mom-svg-wrap { position:relative; width:100%; height:150px; }
@media (max-width:640px) { .momentum-chart .mom-svg-wrap { height:120px; } }
.momentum-chart svg.mom-svg { display:block; width:100%; height:100%; overflow:visible; }
.momentum-chart .mom-axis-line { stroke:#e2e8f0; stroke-width:1; }
body.dark-theme .momentum-chart .mom-axis-line { stroke:#334155; }
.momentum-chart .mom-axis-tick { stroke:#cbd5e1; stroke-width:1; }
body.dark-theme .momentum-chart .mom-axis-tick { stroke:#475569; }
.momentum-chart .mom-ht-line { stroke:rgba(15,23,42,.35); stroke-width:1; stroke-dasharray:3 3; }
body.dark-theme .momentum-chart .mom-ht-line { stroke:rgba(226,232,240,.35); }
.momentum-chart .mom-now-line { stroke:#4caf50; stroke-width:1.5; stroke-dasharray:4 3; }
body.dark-theme .momentum-chart .mom-now-line { stroke:#66bb6a; }
.momentum-chart .mom-chip-layer { position:absolute; inset:0; pointer-events:none; }
.momentum-chart .mom-chip { position:absolute; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; line-height:1; }
.momentum-chart .mom-chip-goal { width:20px; height:20px; font-size:16px; z-index:3; }
.momentum-chart .mom-chip-pen { width:10px; height:13px; z-index:2; }
.momentum-chart .mom-chip-pen svg { display:block; width:100%; height:100%; }
@media (max-width:640px) {
    .momentum-chart .mom-chip-goal { width:15px; height:15px; font-size:12px; }
    .momentum-chart .mom-chip-pen { width:8px; height:10px; }
}
.momentum-chart .mom-axis-labels { position:relative; height:14px; margin-top:3px; }
.momentum-chart .mom-axis-labels span { position:absolute; top:0; transform:translateX(-50%); font-size:10px; color:#94a3b8; }
body.dark-theme .momentum-chart .mom-axis-labels span { color:#64748b; }

/* 26.08: тултип momentum-бара — минута, счёт, владение, броски (hockey-momentum.js) */
.momentum-chart .mom-tip-guide { position:absolute; top:0; bottom:0; width:0; border-left:1px dashed rgba(15,23,42,.4); pointer-events:none; z-index:4; }
body.dark-theme .momentum-chart .mom-tip-guide { border-left-color:rgba(226,232,240,.4); }
.momentum-chart .mom-tip { position:absolute; top:6px; z-index:5; pointer-events:none; background:#fff; border:1px solid #e2e8f0; border-radius:8px; box-shadow:0 4px 14px rgba(15,23,42,.14); padding:6px 9px; font-size:11.5px; line-height:1.5; white-space:nowrap; color:#0f172a; }
body.dark-theme .momentum-chart .mom-tip { background:#1e293b; border-color:#334155; color:#e2e8f0; box-shadow:0 4px 14px rgba(0,0,0,.45); }
.momentum-chart .mom-tip-min { font-weight:700; font-size:11px; color:#64748b; margin-bottom:2px; }
body.dark-theme .momentum-chart .mom-tip-min { color:#94a3b8; }
.momentum-chart .mom-tip-row { display:flex; align-items:baseline; gap:5px; }
.momentum-chart .mom-tip-lbl { color:#64748b; margin-right:auto; padding-right:8px; }
body.dark-theme .momentum-chart .mom-tip-lbl { color:#94a3b8; }
.momentum-chart .mom-tip-h { color:#2196F3; font-weight:700; font-variant-numeric:tabular-nums; }
.momentum-chart .mom-tip-a { color:#ff9800; font-weight:700; font-variant-numeric:tabular-nums; }
.momentum-chart .mom-tip-sep { color:#94a3b8; }

/* 24.08: H1 страницы /hockey ушёл в sr-only — шапка повторяет live.aspx, видимого заголовка там нет. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}

/* Составы по звеньям (24.08.2026): две колонки команд, внутри — подписи звеньев,
   номер, флаг национальности, имя. На мобиле колонки схлопываются в одну. */
.hk-lu-wrap { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px; }
.hk-lu-col { min-width:0; }
.hk-lu-team { font-size:13px; font-weight:700; color:var(--text); padding:0 0 6px; border-bottom:1px solid var(--card-border); margin-bottom:6px; }
.hk-lu-line { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-muted); margin:9px 0 3px; }
.hk-lu-p { display:flex; align-items:center; gap:7px; font-size:12.5px; line-height:1.9; color:var(--text); min-width:0; }
.hk-lu-p .hk-num { flex:0 0 26px; text-align:right; font-variant-numeric:tabular-nums; }
.hk-lu-p .hk-flag { flex:0 0 auto; }
.hk-lu-noflag { flex:0 0 14px; }
.hk-lu-nm { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.hk-lu-role { flex:0 0 auto; font-size:9.5px; font-weight:700; color:var(--text-muted); border:1px solid var(--card-border); border-radius:3px; padding:0 4px; line-height:14px; }
@media (max-width:768px) { .hk-lu-wrap { grid-template-columns:1fr; gap:14px; } }

/* ===== страница лиги v2 (02.09.2026): статус сезона, вкладки, форма, зона плей-офф, пульс, сетка ===== */
.hk-strip { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:baseline; background:var(--ice-soft); border:1px solid var(--card-border); border-radius:8px; padding:9px 14px; margin:0 0 16px; font-size:13px; color:var(--text-soft); }
.hk-strip-main { font-weight:700; color:var(--text); font-size:14px; }
.hk-strip-sub a { color:var(--text); text-decoration:none; font-weight:600; }
.hk-strip-sub a:hover { text-decoration:underline; }
.hk-strip .hk-logo { vertical-align:-3px; margin-right:4px; }
.hk-live-txt { color:var(--accent-red); }
.hk-table tr.is-live td { background:var(--accent-red-soft); }
.hk-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
.hk-tabs button { font:inherit; font-size:12.5px; padding:5px 12px; border:1px solid var(--card-border); border-radius:5px; background:var(--card-bg); color:var(--text-soft); cursor:pointer; }
.hk-tabs button.on { color:var(--text); font-weight:700; border-color:var(--ice); }
.hk-tabs button:hover { border-color:var(--ice); }
.hk-c { text-align:center; }
.hk-stnd .hk-form { display:inline-flex; margin:0; vertical-align:middle; }
.hk-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent-green); margin-left:6px; vertical-align:middle; }
.hk-stnd tr.hk-zone-po td:first-child { box-shadow:inset 3px 0 0 var(--ice); }
.hk-zone-key { display:inline-block; width:10px; height:10px; background:var(--ice); border-radius:2px; margin-right:6px; vertical-align:-1px; }
.hk-legend { font-size:12px; color:var(--text-soft); margin:8px 2px 0; line-height:1.5; max-width:80ch; }
/* подсветка пары по хешу #t= — поверх hover/zone, как в футболе */
.hk-stnd tr.is-focus td { background:rgba(46,125,50,0.10); }
.hk-stnd tbody tr.is-focus:hover td { background:rgba(46,125,50,0.16); }
body.dark-theme .hk-stnd tr.is-focus td { background:rgba(129,199,132,0.14); }
body.dark-theme .hk-stnd tbody tr.is-focus:hover td { background:rgba(129,199,132,0.20); }
.hk-stnd tr.is-focus .hk-row-team a { font-weight:700; }
.hk-details { margin-top:12px; }
.hk-details > summary { cursor:pointer; font-size:13.5px; font-weight:600; color:var(--text); padding:8px 0; list-style:none; }
.hk-details > summary::before { content:'▸ '; color:var(--text-soft); }
.hk-details[open] > summary::before { content:'▾ '; }
.hk-details > summary .hk-logo { vertical-align:-3px; margin:0 3px 0 2px; }
.hk-details > summary a { color:var(--text); text-decoration:none; }
.hk-kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.hk-kpi { background:var(--card-bg); border:1px solid var(--card-border); border-radius:8px; padding:12px 14px; }
.hk-kpi b { display:block; font-size:22px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.15; }
.hk-kpi span { display:block; font-size:12.5px; color:var(--text); margin-top:3px; }
.hk-kpi small { display:block; font-size:11.5px; color:var(--text-soft); margin-top:2px; }
.hk-champ { font-size:14px; font-weight:600; margin-left:10px; }
.hk-champ a { color:var(--text); text-decoration:none; }
.hk-champ .hk-logo { vertical-align:-3px; margin-right:3px; }
.hk-br-wrap { padding:14px 12px; }
.hk-bracket { display:flex; gap:18px; align-items:stretch; min-width:max-content; }
.hk-br-round { display:flex; flex-direction:column; min-width:215px; }
.hk-br-title { font-size:11.5px; font-weight:600; color:var(--text-soft); text-transform:uppercase; letter-spacing:.03em; margin-bottom:8px; text-align:center; }
.hk-br-list { display:flex; flex-direction:column; justify-content:space-around; gap:10px; flex:1; }
.hk-br-card { display:block; border:1px solid var(--card-border); border-radius:7px; padding:6px 8px; background:var(--page-bg); text-decoration:none; color:var(--text); }
a.hk-br-card:hover { border-color:var(--ice); }
.hk-br-card.tbd { opacity:.55; border-style:dashed; }
.hk-br-team { display:flex; align-items:center; gap:6px; font-size:13px; padding:3px 0; }
.hk-br-team span { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hk-br-team b { min-width:18px; text-align:right; font-variant-numeric:tabular-nums; }
.hk-br-team.win { font-weight:700; }
.hk-br-team.lose { color:var(--text-muted); }
.hk-br-team .hk-logo { flex:none; }
.hk-br-meta { font-size:11px; color:var(--text-soft); border-top:1px dashed var(--card-border); margin-top:4px; padding-top:4px; white-space:nowrap; }
.hk-br-meta a { color:var(--text-soft); text-decoration:none; }
.hk-br-meta a:hover { text-decoration:underline; color:var(--text); }
@media (max-width:640px) { .hk-kpi b { font-size:19px; } .hk-br-round { min-width:190px; } }


/* ==========================================================================
   Баскетбол — правила, которых нет в хоккейной базе (06.09.2026).
   База выше — копия Content/hockey.css: визуальный язык у всех спортов ОДИН
   (feedback_hockey_grid_must_mirror_live_aspx), новый раздел не изобретает
   свой. Здесь только то, чего в хоккее не было: четверти под счётом, ячейка
   линии с тремя рынками, таблица лиги, каталог турниров.
   Сетка грида берётся из автовыжимки Content/basketball-grid.css
   (ops/extract_basketball_grid_css.py) — тот файл руками не править.
   Акцентных заливок здесь нет сознательно
   (feedback_page_visual_language_no_accent_fills): состояние передаётся
   цветом текста и тонкой рамкой.
   ========================================================================== */

/* Колонка контента — той же ширины, что у хоккея и футбола (.container = 1140px).
   1360px давали карточке матча заметно более широкую меру строки, чем у соседних
   видов спорта, и она читалась как страница из другого макета (замер 09.09.2026:
   блоки 1245px против 1140px у хоккея на том же окне). */
.hk-main { max-width: 1140px; margin: 0 auto; padding: 8px 10px 40px; }
/* Карточка матча — по мере строки хоккейной (.container = 1100px, замер 09.09.2026):
   на 1140px полосы сравнения растягивались шире хоккейного референса. Гриду ширину
   не режем — там 12 колонок, им 1140 нужны. */
.bk-match { max-width: 1100px; }
.hk-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.hk-search { display: flex; gap: 6px; }
.hk-search input[type=search] { padding: 5px 9px; border: 1px solid var(--border, #d6dae0);
  border-radius: 6px; background: transparent; color: inherit; min-width: 190px; font-size: 13px; }
.hk-search button { padding: 5px 12px; border: 1px solid var(--border, #d6dae0); border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer; font-size: 13px; }
.hk-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.hk-leaguebar { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.hk-leaguebar .hk-chip b { margin-left: 5px; opacity: .6; font-weight: 600; }
.hk-chip-live { margin-left: 4px; font-style: normal; color: var(--green-p1, #2e7d32); font-weight: 700; }
.hk-note { font-size: 12.5px; color: var(--text-dim, #6b7280); margin: 2px 0 8px; }

/* Счёт и четверти в гриде */
.m-td-badge, .m-td-score, .m-td-pwd { text-align: center; white-space: nowrap; }
.m-score { font-weight: 700; font-size: 14px; display: block; }
.m-score-live { color: var(--green-p1, #2e7d32); }
.m-score-empty { color: var(--text-dim, #9aa1ab); font-weight: 400; }
.m-quarters { display: block; font-size: 10.5px; color: var(--text-dim, #8b929c); margin-top: 1px; letter-spacing: .2px; }

/* Ячейка линии: три группы рынков в одну строку */
.m-line { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; line-height: 1.35; }
.m-line-grp { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.m-line-grp u { text-decoration: none; color: var(--text-dim, #7a828c); margin-right: 2px; }
.m-line-grp i { font-style: normal; color: var(--text-dim, #b4bac1); }
.m-line-grp b { font-weight: 600; }

.m-teams { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.m-team { display: flex; align-items: center; gap: 6px; }
.m-team-nm { font-size: 13px; }
.m-pwd { font-weight: 600; }
.m-pwd-empty { color: var(--text-dim, #9aa1ab); }
.m-series { font-size: 11px; color: var(--text-dim, #7a828c); }
.m-star { background: none; border: 0; cursor: pointer; color: var(--text-dim, #9aa1ab); font-size: 15px; }
.m-star:hover { color: #f0a500; }
.hk-lg-tag { margin-left: 6px; font-size: 10.5px; padding: 0 5px; border: 1px solid var(--border, #d6dae0);
  border-radius: 4px; color: var(--text-dim, #7a828c); }

/* Карточка матча.
   hero-площадка — свой аналог .hk-hero (каток) и .match-hero (поле). Разметка
   площадки лежит фоновым слоем .m-hero-court, счёт стоит абсолютным центром над
   кругом, четверти — полосой у нижнего края. Заливок акцентным цветом здесь нет:
   выигранная четверть и живой счёт выделяются весом и цветом текста. */
.m-hero { position: relative; overflow: hidden; border: 1px solid #c9d4de; border-radius: 12px;
  background: linear-gradient(180deg, #ecd7ab 0%, #dcbd88 100%);
  box-shadow: 0 4px 16px rgba(31, 55, 80, .13); padding: 14px 16px 12px; min-height: 188px;
  margin-bottom: 16px; display: flex; flex-direction: column; }
/* У не начавшегося матча в hero стоят только команды, время и «–»: 188px под это
   оставляли половину площадки пустой. Живой и сыгранный сохраняют полную высоту —
   там есть счёт, четверти и статус. */
.m-hero:not(.m-hero-live):not(.m-hero-done) { min-height: 148px; }
/* Паркет: три слоя — мягкий свет сверху-слева, продольные волокна клёна
   (SVG feTurbulence, multiply поверх заливки .m-hero) и кремовые линии площадки.
   Выбран владельцем из лаборатории lab/bsk_hero_lab.html (№ 11), 09.09.2026. */
.m-hero-court { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255, 248, 230, .35), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='260'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.85' numOctaves='3' seed='11' result='t'/><feColorMatrix in='t' type='matrix' values='0 0 0 0 0.38  0 0 0 0 0.25  0 0 0 0 0.12  0.33 0.33 0.33 0 0'/></filter><rect width='800' height='260' filter='url(%23w)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 260'><rect x='26' y='16' width='748' height='228' fill='none' stroke='%23fdf6e3' stroke-opacity='0.9' stroke-width='2'/><line x1='400' y1='16' x2='400' y2='244' stroke='%23fdf6e3' stroke-opacity='0.85' stroke-width='2'/><circle cx='400' cy='130' r='52' fill='none' stroke='%23fdf6e3' stroke-opacity='0.85' stroke-width='2'/><rect x='26' y='72' width='150' height='116' fill='none' stroke='%23fdf6e3' stroke-opacity='0.75' stroke-width='2'/><rect x='624' y='72' width='150' height='116' fill='none' stroke='%23fdf6e3' stroke-opacity='0.75' stroke-width='2'/><circle cx='176' cy='130' r='34' fill='none' stroke='%23fdf6e3' stroke-opacity='0.7' stroke-width='1.6'/><circle cx='624' cy='130' r='34' fill='none' stroke='%23fdf6e3' stroke-opacity='0.7' stroke-width='1.6'/><path d='M26 34 A 168 168 0 0 1 26 226' fill='none' stroke='%23fdf6e3' stroke-opacity='0.75' stroke-width='2'/><path d='M774 226 A 168 168 0 0 1 774 34' fill='none' stroke='%23fdf6e3' stroke-opacity='0.75' stroke-width='2'/></svg>");
  background-size: 100% 100%, 100% 100%, 100% 100%; background-repeat: no-repeat;
  background-blend-mode: normal, multiply, normal; }
.m-hero > :not(.m-hero-court) { position: relative; z-index: 1; }
/* На 375px имя лиги и дата упирались друг в друга: строке нужен перенос, а длинному
   имени — сжатие с многоточием, иначе дата уезжает за край карточки. */
.m-hero .m-head-lg { flex-wrap: wrap; row-gap: 2px; }
.m-hero .m-head-lg a { min-width: 0; }
.m-hero .m-head-lg a span, .m-hero .m-head-lg > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hero .m-head-main { flex: 1 1 auto; }
.m-hero .m-head-team { color: #26313d; text-shadow: 0 1px 2px rgba(255, 255, 255, .65); }
/* Счёт стоит В ПОТОКЕ между командами — как .hk-sb-score у хоккея и .score-wrap у
   футбола. Прежний position:absolute вынимал его из сетки .m-head-main (1fr auto 1fr),
   в потоке оставались две команды на три дорожки, и гостевая падала в среднюю, узкую:
   замер 09.09.2026 — «Италия» 546px в первой дорожке, «Австралия» 95px во второй,
   третья пустая, а счёт висел поверх них. Это и есть «табло поехало». */
.m-hero .m-head-score { position: relative; z-index: 2; text-align: center; }
.m-hero .m-head-score b { font-size: 46px; letter-spacing: -.02em; color: #16212e;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(255, 255, 255, .75); }
.m-hero .m-head-score b.m-live { color: #1b5e20; }
.m-hero .m-head-st { color: #4a5a6a; }
.m-hero .m-head-dt, .m-hero .m-head-lg a { color: #3c4a58; }
.m-hero-live .m-head-st::before { content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #2e7d32; margin-right: 5px; vertical-align: middle;
  animation: m-hero-pulse 1.8s ease-in-out infinite; }
@keyframes m-hero-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .m-hero-live .m-head-st::before { animation: none } }
/* Темп → ожидаемый тотал (прематч) и максимальный отрыв (сыгранный) — мелкий текст
   под статус-строкой/полосой четвертей, тот же цвет, что у .m-head-st. Обычный текстовый
   поток с переносом — на 375px строка не шире карточки, ничего не обрезаем и не прячем. */
.m-hero-pace { position: relative; z-index: 2; text-align: center; font-size: 12.5px;
  color: #4a5a6a; margin-top: 4px; }
.m-hero-max { align-self: center; font-size: 12px; color: #3c4a58; margin-top: 6px; }
body.dark-theme .m-hero-pace { color: #e4d5b8; }
body.dark-theme .m-hero-max { color: #e4d5b8; }
/* Полоса четвертей у нижнего края: стеклянная пилюля, цифры строго в колонку. */
.m-hero-q { margin-top: 10px; align-self: center; max-width: 100%; overflow-x: auto;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(138, 106, 69, .28);
  border-radius: 8px; padding: 5px 10px; }
.m-hero-q table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.m-hero-q th { font-weight: 500; color: #4a5a6a; text-align: left; padding: 1px 10px 1px 0;
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hero-q td { padding: 1px 7px; text-align: center; color: #26313d; min-width: 24px; }
.m-hero-q .m-hq-lbl { color: #6b7480; font-size: 11px; }
.m-hero-q .m-hq-win { font-weight: 700; }
@media (max-width: 640px) {
  .m-hero { min-height: 0; }
  .m-hero .m-head-score b { font-size: 34px; }
}
body.dark-theme .m-hero { background: linear-gradient(180deg, #4a3a22 0%, #382b18 100%); border-color: #0f0c0a; }
body.dark-theme .m-hero-court { opacity: 1; }
body.dark-theme .m-hero .m-head-team,
body.dark-theme .m-hero .m-head-score b { color: #fbeed9; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
body.dark-theme .m-hero .m-head-score b.m-live { color: #81c784; }
body.dark-theme .m-hero .m-head-st,
body.dark-theme .m-hero .m-head-dt,
body.dark-theme .m-hero .m-head-lg a { color: #e4d5b8; text-shadow: none; }
body.dark-theme .m-hero-q { background: rgba(0, 0, 0, .34); border-color: rgba(255, 255, 255, .16); }
body.dark-theme .m-hero-q td { color: #eceff2; }
body.dark-theme .m-hero-q th, body.dark-theme .m-hero-q .m-hq-lbl { color: #b7c0c9; }

.m-head { border-bottom: 1px solid var(--border, #e2e5e9); padding-bottom: 12px; margin-bottom: 14px; }
.m-head-lg { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.m-head-lg a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.m-head-dt { color: var(--text-dim, #7a828c); }
.m-head-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.m-head-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  color: inherit; font-size: 14px; font-weight: 600; text-align: center; }
.m-head-score { text-align: center; }
.m-head-score b { font-size: 30px; font-weight: 700; display: block; line-height: 1.1; }
.m-head-score b.m-live { color: var(--green-p1, #2e7d32); }
.m-head-st { display: block; font-size: 12px; color: var(--text-dim, #7a828c); }
.m-head-reg { display: block; font-size: 11px; color: var(--text-dim, #9aa1ab); }
.m-head-series { text-align: center; font-size: 12px; color: var(--text-dim, #7a828c); margin-top: 8px; }

/* Секции карточки матча — карточки с рамкой, как .hk-card у хоккея и .totals-block /
   .trends-block у футбола. До 09.09.2026 у .m-block был только вертикальный отступ:
   на общем фоне страницы блоки не читались как блоки и сливались с ним (владелец). */
.m-block { background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 12px 16px 14px; margin: 14px 0; overflow-x: auto; }
.m-block h2 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.m-block > p { margin: 0 0 8px; }
.m-block > p:last-child { margin-bottom: 0; }
/* Мобильный тумблер «Личные встречи | Общие соперники» (09.09.2026): секция рендерится
   как <details class='m-fold' open> — на десктопе всегда развёрнута и без стрелки
   (тумблер там не нужен, оба блока умещаются рядом со всем остальным), на ≤640px
   JS снимает open при загрузке и по смене брейкпоинта, стрелка появляется. h2 остаётся
   внутри summary — тот же заголовок для SEO, что и раньше в <section>. */
.m-fold > summary { list-style: none; cursor: default; margin: 0 0 10px; }
.m-fold > summary::-webkit-details-marker { display: none; }
.m-fold > summary::before { content: ''; }
.m-fold > summary h2 { display: inline; margin: 0; }
@media (max-width: 640px) {
  .m-fold > summary { cursor: pointer; }
  .m-fold > summary::before { content: '▸ '; color: var(--text-soft); }
  .m-fold[open] > summary::before { content: '▾ '; }
}
.m-stat-sect { font-size: 12.5px; color: var(--text-dim, #7a828c); margin: 12px 0 4px; font-weight: 600; }

.m-qtable, .m-stats, .m-h2h, .m-odds, .hk-standings, .hk-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-qtable th, .m-qtable td { padding: 4px 8px; text-align: center; border-bottom: 1px solid var(--border, #eceff2); }
.m-qtable th { font-weight: 600; color: var(--text-dim, #7a828c); font-size: 12px; }
.m-qteam { text-align: left !important; font-weight: 600; }
.m-qtot { font-weight: 700; }

.m-stats td { padding: 3px 8px; border-bottom: 1px solid var(--border, #f0f2f4); }
.m-stat-nm { text-align: center; color: var(--text-dim, #7a828c); font-size: 12px; }
.m-stat-h { text-align: right; font-weight: 600; width: 25%; }
.m-stat-a { text-align: left; font-weight: 600; width: 25%; }

.m-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.m-lineup h3 { font-size: 13px; margin: 0 0 6px; font-weight: 600; }
.m-lineup ul { list-style: none; margin: 0; padding: 0; }
.m-lineup li { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 13px; }
.m-lineup li.is-sub { color: var(--text-dim, #8b929c); }
.m-num { min-width: 20px; text-align: right; color: var(--text-dim, #9aa1ab); font-weight: 600; font-size: 11.5px; }
.m-capt { font-style: normal; font-size: 10px; font-weight: 700; color: var(--text-dim, #7a828c);
  border: 1px solid var(--border, #d6dae0); border-radius: 3px; padding: 0 3px; }
.m-club { font-style: normal; font-size: 11px; color: var(--text-dim, #9aa1ab); margin-left: auto; }

.m-h2h td, .m-odds td { padding: 4px 8px; border-bottom: 1px solid var(--border, #f0f2f4); }
.m-h2h-dt { color: var(--text-dim, #7a828c); white-space: nowrap; font-size: 12px; }
.m-h2h-sc { text-align: right; font-weight: 600; white-space: nowrap; }
/* Личные встречи (09.09.2026, bsk_GetMatchTrends RS2): лига короткой подписью с
   обрезкой по ширине, «Хозяева Счёт Гости» одной ячейкой, победитель — весом. */
.m-h2h-lg { color: var(--text-dim, #7a828c); font-size: 11.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.m-h2h-mu a, .m-h2h-scl { text-decoration: none; color: inherit; }
/* На узком экране «Хозяева Счёт Гости» без переноса раздувало .m-h2h за 100%
   (375px: 432px против 355px контейнера, замер 09.09.2026) — как и одноимённая
   колонка m-odds выше, на мобиле снимаем nowrap и даём словам переноситься. */
@media (max-width: 640px) {
  .m-h2h-lg { max-width: 74px; }
}
/* Победа/поражение — заливкой (feedback_win_loss_green_red_row_fill: владелец
   хочет фон, не только цвет текста). Строка общая на двух командах, поэтому
   красим не всю строку, а имя-ссылку каждой — пилюлей, как чипы формы (.fm-W/.fm-L). */
.m-h2h-w, .m-h2h-l { padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.m-h2h-w { background: rgba(46, 125, 50, .16); color: #2e7d32; }
.m-h2h-l { background: rgba(198, 40, 40, .14); color: #c62828; }
body.dark-theme .m-h2h-w { color: #66bb6a; }
body.dark-theme .m-h2h-l { color: #ef5350; }
.m-h2h-scl { font-weight: 600; margin: 0 4px; }
/* ---- грид: фиксированные ширины и скрытие пустых колонок --------------------
   Правила живут здесь, а не в basketball-grid.css: тот файл генерируется
   (ops/scope_grid_css.py) из футбольного грида и правки в нём затираются.
   Порядок подключения — grid первым, этот вторым, поэтому переопределение
   работает без !important. */
table.live-table.bk-fixed { min-width: 0; }   /* ширину задаёт inline-стиль по видимым колонкам */
/* Ширины колонок в коде страницы — итоговые, вместе с padding ячеек (3px 5px из выжимки).
   При content-box каждая из двенадцати колонок выходила на 10px шире заданной, и таблица
   набирала 120px воздуха сверх суммы: 1276 -> 1396 (замер 09.09.2026). */
table.live-table.bk-fixed th, table.live-table.bk-fixed td { box-sizing: border-box; }
/* Пустая колонка прячется, но td остаётся в DOM: индексы ячеек прибиты к
   SG_SHARE.cells снимка «Отдать под кольцо» (BasketballMatchPage). */
.bk-no-line  .bk-th-line,  .bk-no-line  td.odds-line   { display: none; }
.bk-no-pwd   .bk-th-pwd,   .bk-no-pwd   td.m-td-pwd    { display: none; }
.bk-no-form  .bk-th-form,  .bk-no-form  td.form-td     { display: none; }
.bk-no-trend .bk-th-trend, .bk-no-trend td.trend-cell  { display: none; }
.bk-no-pace  .bk-th-pace,  .bk-no-pace  td.pace-td     { display: none; }
.bk-no-rest  .bk-th-rest,  .bk-no-rest  td.rest-td     { display: none; }
.bk-no-hdk   .bk-th-hdk,   .bk-no-hdk   td.hdk-td      { display: none; }
.bk-no-mom   .bk-th-mom,   .bk-no-mom   td.mom-td      { display: none; }
/* ---- фора / тотал с попаданиями (09.09.2026): линия сверху, под ней «крыла/всего»
   хозяев и гостей за 10 последних. Пороги цвета те же, что в хоккее: >= 70 % и <= 30 %. */
.hdk-td { text-align: center; white-space: nowrap; line-height: 1.25; padding: 2px 3px; }
.hdk-td .hdk-line { display: block; font-size: 9px; color: var(--text-dim, #7a828c); }
.hdk-td .hdk-hit { display: block; font-size: 10px; color: var(--text, #2f353d); font-variant-numeric: tabular-nums; }
.hdk-td .hdk-hit.hdk-hi { color: #2e7d32; font-weight: 700; }
.hdk-td .hdk-hit.hdk-lo { color: #c62828; font-weight: 700; }
.hdk-td .hdk-hit.hdk-none { color: var(--text-dim, #9aa1ab); }
/* ---- момент (09.09.2026): столбики разницы очков по минутам и подпись лидера.
   Столбик вверх — ведут хозяева (верхняя команда строки), вниз — гости; высота равна
   отрыву. Цвет здесь несёт смысл (сторона), а не украшает, поэтому пара зелёный/красный
   та же, что у попаданий форы и у темпа. */
.mom-td { text-align: center; white-space: nowrap; line-height: 1.2; padding: 2px 4px; }
.bk-mom { display: block; }
.bk-mbars { display: block; margin: 0 auto; }
.bk-mb-h { fill: #2e7d32; }
.bk-mb-a { fill: #c62828; }
.bk-mb-mid { stroke: #aab1ba; stroke-width: 1; }
.bk-mb-sep { stroke: #e6e9ed; stroke-width: 1; }
.bk-mom-lead { display: block; font-size: 10px; color: var(--text-dim, #6b7280);
  overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.bk-mom-arr { font-style: normal; font-size: 8px; margin-right: 2px; }
.bk-mom-arr.bk-mb-h { color: #2e7d32; }
.bk-mom-arr.bk-mb-a { color: #c62828; }
.mom-td .run-badge { margin: 2px 0 0; }
body.dark-theme .bk-mb-h { fill: #66bb6a; }
body.dark-theme .bk-mb-a { fill: #ef5350; }
body.dark-theme .bk-mb-mid { stroke: #6b7280; }
body.dark-theme .bk-mb-sep { stroke: #3a3a3a; }
body.dark-theme .bk-mom-arr.bk-mb-h { color: #66bb6a; }
body.dark-theme .bk-mom-arr.bk-mb-a { color: #ef5350; }
body.dark-theme .hdk-td .hdk-hit { color: #e0e0e0; }
body.dark-theme .hdk-td .hdk-hit.hdk-hi { color: #66bb6a; }
body.dark-theme .hdk-td .hdk-hit.hdk-lo { color: #ef5350; }
/* При table-layout:fixed ячейка больше не растягивается под длинное имя —
   длинные названия обрезаем многоточием, а не выпускаем за колонку. */
.bk-fixed .team-name-h, .bk-fixed .team-name-a { overflow: hidden; text-overflow: ellipsis; }
.bk-fixed .teams-block { max-width: none; }

.m-odd { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Линия карточки: рынок строкой, прематч и лайв — колонками. Ступень отделена от
   пары кэфов, чтобы «−19.5» не читалось как часть коэффициента. */
.m-odds th { padding: 4px 8px; text-align: left; font-weight: 600; font-size: 12px;
  color: var(--text-dim, #64748b); border-bottom: 1px solid var(--border, #f0f2f4); white-space: nowrap; }
.m-odds thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.m-odds td { text-align: left; white-space: nowrap; }
.m-odd-line { display: inline-block; min-width: 44px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text, #1f2937); }
.m-odd-sep { color: var(--text-dim, #6b7480); margin: 0 3px; }
.m-odd-none { color: var(--text-dim, #6b7480); }
/* На узком экране подпись рынка с именем команды («Тотал Миттельдойчер») не влезает
   в строку и выносила таблицу за край страницы — на мобиле переносим её по словам. */
@media (max-width: 640px) {
  .m-odds th { white-space: normal; }
  .m-odds th, .m-odds td { padding: 4px 5px; }
}

/* Команда, лига, каталог */
.hk-team-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.hk-team-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.hk-team-country { font-size: 12.5px; color: var(--text-dim, #7a828c); display: flex; align-items: center; gap: 6px; }
.hk-team-elo { font-size: 12px; color: var(--text-dim, #9aa1ab); }

.hk-list-row td { padding: 4px 8px; border-bottom: 1px solid var(--border, #f0f2f4); }
.hk-list-dt { color: var(--text-dim, #7a828c); white-space: nowrap; font-size: 12px; }
.hk-list-lg { color: var(--text-dim, #9aa1ab); font-size: 11.5px; }
.hk-list-sc { text-align: right; font-weight: 600; white-space: nowrap; }
/* Победа/поражение — заливка ВСЕЙ строки (feedback_win_loss_green_red_row_fill),
   очень слабая: строка должна читаться, а не кричать. */
.hk-list-row.row-win  { background: rgba(46, 125, 50, .07); }
.hk-list-row.row-loss { background: rgba(198, 40, 40, .07); }

.hk-standings th, .hk-standings td { padding: 4px 8px; text-align: center;
  border-bottom: 1px solid var(--border, #eceff2); }
.hk-standings th { font-weight: 600; font-size: 12px; color: var(--text-dim, #7a828c); }
.hk-standings td:nth-child(2) { text-align: left; }
.hk-standings td a { text-decoration: none; color: inherit; }

.hk-lglist h2 { font-size: 14px; margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hk-lglist ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.hk-lglist li { display: flex; align-items: center; gap: 6px; padding: 2px 0;
  break-inside: avoid; font-size: 13px; }
.hk-lglist li a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.hk-lglist-n { margin-left: auto; color: var(--text-dim, #9aa1ab); font-weight: 500; font-size: 11.5px; }

@media (max-width: 720px) {
  .m-lineups { grid-template-columns: 1fr; }
  .hk-lglist ul { columns: 1; }
  .m-head-score b { font-size: 24px; }
}


/* --- Фаза 3: форма, тренды, отдых, свёрнутые лиги, избранное (06.09.2026) --- */
.form-td { white-space: nowrap; }
.form-icons { display: block; line-height: 1.25; }
.form-icons i { display: inline-block; width: 13px; height: 13px; line-height: 13px; text-align: center;
  font-style: normal; font-size: 9px; font-weight: 700; border-radius: 3px; margin-right: 2px; }
.fm-W { background: rgba(46, 125, 50, .16); color: #2e7d32; }
.fm-L { background: rgba(198, 40, 40, .14); color: #c62828; }
/* 09.09.2026: чипы формы использует и новая секция «Последние матчи» на тёмной теме —
   без переопределения текст (#2e7d32/#c62828) на затемнённой заливке даёт ~2.9:1
   (замер), ниже порога WCAG AA. Токены те же зелёный/красный, что у остальной тёмной темы. */
body.dark-theme .fm-W { color: #66bb6a; }
body.dark-theme .fm-L { color: #ef5350; }

.trend-cell { line-height: 1.3; }
.trend-chip { display: inline-block; font-size: 10px; padding: 0 4px; margin: 0 3px 2px 0;
  border: 1px solid var(--border, #d6dae0); border-radius: 4px; color: var(--text-dim, #6b7280); white-space: nowrap; }
.trend-chip b { margin-left: 3px; font-weight: 600; color: inherit; opacity: .75; }

.rest-td { text-align: center; white-space: nowrap; }
.rest-b2b, .rest-days { display: block; font-size: 10px; line-height: 1.35; }
/* B2B — единственное состояние, которое стоит выделять: в НБА это сильный фактор. */
.rest-b2b { color: #c62828; font-weight: 700; }
.rest-days { color: var(--text-dim, #9aa1ab); }

.lg-toggle { border: 1px solid var(--border, #d6dae0); background: transparent; color: inherit;
  width: 16px; height: 16px; line-height: 1; border-radius: 3px; cursor: pointer; margin-right: 6px;
  font-size: 11px; padding: 0; }
.lg-hidden { display: none; }
.watch-off { display: none; }

.m-star.is-on { color: #f0a500; }


/* --- Ход матча и бары статистики (06.09.2026) --- */
.m-flow svg { width: 100%; height: 150px; display: block; }
.m-flow-line { fill: none; stroke: var(--text, #2b323b); stroke-width: 1.6; }
.m-flow-fill { stroke: none; }
/* Сторона читается цветом: вверх — хозяева (синий), вниз — гости (оранжевый),
   те же цвета, что у баров сравнения ниже по странице. */
.m-flow-fill-h { fill: rgba(66, 165, 245, .22); }
.m-flow-fill-a { fill: rgba(255, 152, 0, .22); }
.m-flow-side { font-size: 11px; fill: #5b6472; font-weight: 600; }
body.dark-theme .m-flow-side { fill: #9aa3ad; }
.m-flow-sep { stroke: var(--border, #e2e5e9); stroke-width: 1; }
.m-flow-mid { stroke: var(--border, #c9ced5); stroke-width: 1; stroke-dasharray: 3 3; }
.m-flow-meta { font-size: 12px; color: var(--text-dim, #7a828c); margin-top: 4px; }
.m-stat-bar { display: block; height: 3px; margin-top: 3px; background: rgba(198, 40, 40, .35); border-radius: 2px; }
.m-stat-bar i { display: block; height: 3px; background: rgba(46, 125, 50, .55); border-radius: 2px; }
/* Подпись под баром сравнения — «обычно 55.3 / 75.0», «меньше — лучше». Своей строкой,
   а не в скобках у чисел: внутри бара цифры и так на пределе читаемости. */
.ms-note { font-size: 11px; color: var(--text-dim, #7a828c); margin: 2px 2px 0; text-align: center; }
/* Блок сравнения на карточке матча уже лежит внутри карточки-секции .m-block:
   своя рамка и фон дали бы вторую рамку по тому же контуру.
   Ширина полос ограничена мерой чтения: на всю колонку (1066px, замер 09.09.2026)
   левое и правое числа пары расходятся по краям монитора и их приходится читать
   в два движения глаз — владелец. Полосы центрируем и держим в 640px. */
.m-block .match-stats-block { background: none; border: 0; border-radius: 0; padding: 0;
  max-width: 640px; margin-left: auto; margin-right: auto; }
.m-block .match-stats-block + .m-stat-sect { margin-top: 14px; }


/* --- Бокс-скор и страница игрока (06.09.2026) --- */
.m-box, .m-gamelog { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.m-box th, .m-box td, .m-gamelog th, .m-gamelog td { padding: 3px 6px; text-align: center;
  border-bottom: 1px solid var(--border, #f0f2f4); white-space: nowrap; }
.m-box th, .m-gamelog th { font-weight: 600; font-size: 11px; color: var(--text-dim, #7a828c); }
.m-box-nm, .m-gamelog td:nth-child(2) { text-align: left !important; }
.m-box-nm a { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.m-box tr.is-starter .m-box-nm { font-weight: 600; }
.m-box-pts, .m-gl-pts { font-weight: 700; }
/* Бокс-скор (12 колонок, nowrap) шире экрана на мобиле — контейнер обязан скроллиться
   сам, а не раздвигать страницу: 375px давал document.scrollWidth=451 при clientWidth=375
   (замер 09.09.2026), виновник — .m-box без ограничения ширины внутри live-table-wrap. */
.live-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.live-table-wrap > table { width: max-content; min-width: 100%; }

/* --- «Последние матчи» (09.09.2026, bsk_GetMatchTrends RS1): форма и результаты
   обеих сторон на прематч-карточке — было пусто рядом с хоккейной, где есть и
   личные встречи, и форма. Два столбца на десктопе, один на мобиле — тот же приём,
   что у .m-lineups ниже. */
.m-recent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.m-recent-col h3 { font-size: 13px; margin: 0 0 4px; font-weight: 600; }
.m-recent-col h3 a { text-decoration: none; color: inherit; }
.m-recent-chips { margin: 2px 0 6px; }
.m-recent-sum { font-size: 12px; color: var(--text-dim, #7a828c); margin: 0 0 8px; }
.m-recent-empty { font-size: 12px; color: var(--text-dim, #9aa1ab); }
.m-recent-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.m-recent-tbl th { padding: 3px 6px; text-align: left; font-weight: 600; font-size: 11px;
  color: var(--text-dim, #7a828c); border-bottom: 1px solid var(--border, #eceff2); }
.m-recent-tbl th:nth-child(4), .m-recent-tbl th:nth-child(5), .m-recent-tbl th:nth-child(6) { text-align: right; }
.m-recent-tbl td { padding: 3px 6px; border-bottom: 1px solid var(--border, #f0f2f4); white-space: nowrap; }
.m-recent-opp { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.m-recent-opp a, .m-recent-opp .m-recent-us { display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; vertical-align: bottom; }
.m-recent-opp a { text-decoration: none; color: inherit; }
.m-recent-us { font-weight: 600; }
.m-recent-tbl .m-dt-s { display: none; }
.m-recent-sc, .m-recent-d, .m-recent-t { text-align: right; font-variant-numeric: tabular-nums; }
.m-recent-sc a { text-decoration: none; color: inherit; }
/* Победа/поражение — заливкой всей строки, как в футболе (feedback_win_loss_
   green_red_row_fill, замечание владельца 10.09.2026): фон приглушённый
   (accent-*-soft), а счёт/дельта поверх — цветным текстом. */
tr.m-recent-w { background: var(--accent-green-soft); }
tr.m-recent-l { background: var(--accent-red-soft); }
tr.m-recent-w .m-recent-sc, tr.m-recent-w .m-recent-d { color: #2e7d32; font-weight: 700; }
tr.m-recent-l .m-recent-sc, tr.m-recent-l .m-recent-d { color: #c62828; font-weight: 600; }
body.dark-theme tr.m-recent-w .m-recent-sc, body.dark-theme tr.m-recent-w .m-recent-d { color: #66bb6a; }
body.dark-theme tr.m-recent-l .m-recent-sc, body.dark-theme tr.m-recent-l .m-recent-d { color: #ef5350; }
@media (max-width: 640px) {
  .m-recent-cols { grid-template-columns: 1fr; gap: 22px; }
  /* 375px: шесть колонок (дата, две команды, счёт, Δ, тотал) в 321px дорожки —
     замер 09.09.2026 дал 393px, Δ и тотал уезжали в скролл блока. Ужимаем отступы
     и имена до 88px, чтобы строка помещалась целиком. */
  /* max-width на td в auto-layout таблицы не работает — ограничиваем вложенный
     inline-block пикселями; дата — без года (span.m-dt-s). */
  .m-recent-opp a, .m-recent-opp .m-recent-us { max-width: 84px; }
  .m-recent-tbl .m-dt-l { display: none; }
  .m-recent-tbl .m-dt-s { display: inline; }
  .m-recent-tbl { font-size: 12px; }
  .m-recent-tbl th, .m-recent-tbl td { padding: 3px 4px; }
}

.m-avg { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.m-avg-i { min-width: 74px; padding: 8px 12px; border: 1px solid var(--border, #e2e5e9); border-radius: 8px; text-align: center; }
.m-avg-i b { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; }
.m-avg-i span { font-size: 11px; color: var(--text-dim, #7a828c); }


/* --- Прогрузы Stake (06.09.2026) --- */
/* 07.09.2026: inline-block, не block — в строке грида бейдж живёт в bottom-row-v2 рядом
   с серией, и блочный вариант растягивался пустой рамкой на всю ширину ячейки команд. */
.stake-badge { display: inline-block; font-size: 10px; margin: 2px 0 0 6px; color: var(--text-dim, #7a828c);
  border: 1px solid var(--border, #d6dae0); border-radius: 3px; padding: 0 3px; }

/* ── Лайв-сигналы: темп, прогноз тотала и событийные бейджи (07.09.2026) ──
   Оформление в общем ключе колонок трендов и отдыха: контур и приглушённый
   цвет, без заливок строк. Цветом выделяется только НАПРАВЛЕНИЕ отклонения —
   само число всегда нейтральное, иначе грид рябит. */
.pace-td { text-align: center; white-space: nowrap; line-height: 1.35; }
.pace-line { font-size: 11px; }
.pace-line:empty { min-height: 13px; }
.pace-val, .proj-val { color: var(--text, #2f353d); font-weight: 600; }
.pace-delta, .proj-edge { font-size: 10px; margin-left: 3px; font-weight: 600; }
.pace-up, .edge-over { color: #2e7d32; }
.pace-down, .edge-under { color: #c62828; }

.run-badge, .clutch-badge, .hot-badge, .foul-badge {
  display: inline-block; font-size: 10px; margin: 2px 0 0 6px; padding: 0 3px;
  border: 1px solid var(--border, #d6dae0); border-radius: 3px;
  color: var(--text-dim, #7a828c); white-space: nowrap; }
.run-badge { border-color: rgba(46, 125, 50, .45); color: #2e7d32; }

/* Карточка матча: четыре фактора и плашка живых сигналов. */
.m-ff-note { font-size: 12px; color: var(--text-dim, #6b7280); margin: 0 0 8px; line-height: 1.45; }
.m-ff-usual { font-size: 10px; color: var(--text-dim, #9aa1ab); margin-left: 4px; }
.m-ff-norm { font-size: 12px; color: var(--text-dim, #6b7280); margin: 8px 0 0; }
/* Основание выборки под блоком «С чем подходят к матчу»: сезон это или последние
   десять и сколько матчей — читателю нужно знать, на чём стоят числа. */
.m-ff-src { font-size: 11.5px; color: var(--text-dim, #6b7280); margin: 4px 0 0; }
.m-ff-dir { font-size: 10px; color: var(--text-dim, #9aa1ab); margin-left: 6px; }
.m-sig-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.m-sig-item b { font-weight: 600; color: var(--text-dim, #6b7280); margin-right: 4px; font-size: 11px; }
.m-sig-row .run-badge, .m-sig-row .clutch-badge,
.m-sig-row .hot-badge, .m-sig-row .foul-badge { margin: 0; }
.clutch-badge { border-color: rgba(198, 40, 40, .45); color: #c62828; font-weight: 600; }
.hot-up { color: #2e7d32; }
.hot-down { color: #5b6472; }

/* --- Новости матча на карточке (tbh_News, Sport='bsk'), 09.09.2026 --------------
   Классы те же, что у футбольного блока (.match-news-list / .mni-time / .mni-txt),
   но САМИ ПРАВИЛА там лежат инлайном внутри MatchPage.aspx и до раздела
   /basketball не доезжают — поэтому копия здесь, а не ссылка на чужой файл. */
.match-news-list { list-style: none; margin: 0; padding: 0; }
.match-news-list li { border-bottom: 1px solid var(--border, #f0f2f4); }
.match-news-list li:last-child { border-bottom: none; }
.match-news-list a { display: flex; align-items: center; gap: 8px; padding: 7px 0;
    text-decoration: none; color: inherit; font-size: 13px; }
.match-news-list img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex: 0 0 36px; }
.match-news-list .mni-time { flex: 0 0 auto; color: var(--text-dim, #5b6472); font-size: 11px;
    font-variant-numeric: tabular-nums; }
.match-news-list .mni-txt { flex: 1 1 auto; min-width: 0; }
.match-news-list a:hover .mni-txt { text-decoration: underline; }

/* --- «Движение линии» на карточке матча (bsk_GetLineTrends), 09.09.2026 ---------
   Блок про ПУТЬ линии, а не про срез: открытие прематча → сейчас, дельта, ряд точек.
   Без заливок — только цвет текста, как во всём разделе. */
.m-linemove { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-linemove td { padding: 5px 8px; border-bottom: 1px solid var(--border, #f0f2f4); vertical-align: middle; }
.m-linemove .lm-lbl { color: var(--text-dim, #5b6472); white-space: nowrap; width: 90px; }
.m-linemove .lm-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-linemove .lm-d { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; width: 56px; }
.m-linemove .lm-spark { width: 130px; color: #8a94a0; }
.m-linemove .lm-ts { text-align: right; color: var(--text-dim, #5b6472); font-size: 11px; white-space: nowrap; }
.m-linemove .lm-live .lm-val { color: #2e7d32; }
.m-linemove .bk-mv-up { color: #2e7d32; }
.m-linemove .bk-mv-dn { color: #c62828; }
.m-linemove .bk-spark { display: block; }
.m-linemove .bk-spark-empty { display: block; }
body.dark-theme .m-linemove .bk-mv-up { color: #66bb6a; }
body.dark-theme .m-linemove .bk-mv-dn { color: #ef5350; }
body.dark-theme .m-linemove .lm-live .lm-val { color: #66bb6a; }
@media (max-width: 520px) {
    .m-linemove .lm-spark, .m-linemove .lm-ts { display: none; }
}

/* Расчёт тоталов (10.09.2026, порт футбольного totals-table под очки, одна
   категория — без группировки по Голы/Карточки/Угловые, поэтому шапка проще:
   Показатель | Дома | Гости | Итого, без totals-grp-row/totals-sub-row. */
.totals-tbl-wrap { overflow-x: auto; }
.totals-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.totals-table th { padding: 5px 8px; text-align: right; font-weight: 700; font-size: 11px;
  color: var(--text-dim, #7a828c); border-bottom: 1px solid var(--border, #eceff2);
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.totals-table th:first-child { text-align: left; }
.totals-table td { padding: 5px 8px; border-bottom: 1px dashed var(--border, #f0f2f4);
  text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals-table td:first-child { text-align: left; font-weight: 400; color: var(--text-dim, #5b6472);
  white-space: normal; }
.totals-pct { font-weight: 500; font-size: 11px; margin-left: 3px; color: var(--text-dim, #9aa1ab); }
.totals-predict-row td { padding-top: 9px; padding-bottom: 7px; background: rgba(46, 125, 50, .05); }
body.dark-theme .totals-predict-row td { background: rgba(129, 199, 132, .06); }
.totals-predict { font-size: 15px; font-weight: 800; color: #2e7d32; }
body.dark-theme .totals-predict { color: #66bb6a; }
@media (max-width: 640px) {
    .totals-table { font-size: 11.5px; }
    .totals-table th, .totals-table td { padding: 4px 5px; }
}
