/* Оформление сайта лиги. Цвета бренда (--primary, --accent) задаёт config/site.php (theme),
   остальное - нейтральная палитра с тёмной темой по prefers-color-scheme */
:root {
    --primary: #0b2545; --accent: #d6001c; --ice: #3b82f6;
    --bg: #eef2f7; --surface: #ffffff; --surface-2: #f6f8fb; --fg: #0f1b2d; --muted: #64748b; --border: #dde4ee;
    --win: #15803d; --loss: #b91c1c; --po: #f2b705;
    --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 10px 30px rgba(15, 27, 45, .07);
    --radius: 16px;
}
/* Тема задаётся атрибутом data-theme на <html> (light / dark): по умолчанию тёмная (атрибут в шаблоне), выбор
   читателя кнопкой в шапке хранится в localStorage. Правила по prefers-color-scheme - запасные, на случай страницы без атрибута */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0a1220; --surface: #111c2e; --surface-2: #162338; --fg: #e8eef8; --muted: #8da0ba; --border: #1f2e46;
        --win: #4ade80; --loss: #f87171; --ice: #60a5fa;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1220; --surface: #111c2e; --surface-2: #162338; --fg: #e8eef8; --muted: #8da0ba; --border: #1f2e46;
    --win: #4ade80; --loss: #f87171; --ice: #60a5fa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 16px 0; }

/* ---------- шапка ---------- */
header.site { position: sticky; top: 0; z-index: 20; color: #fff; border-bottom: 3px solid var(--accent);
    /* вторая линия под красной - как красная и синяя линии на хоккейной площадке */
    box-shadow: 0 3px 0 var(--ice), 0 6px 14px rgba(0, 0, 0, .12);
    /* светлее основного цвета бренда, чтобы шапка не сливалась с тёмной страницей (у НХЛ основной цвет почти чёрный) */
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 80%, #fff 20%), color-mix(in srgb, var(--primary) 90%, #fff 10%)); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 14px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-mark { width: 14px; height: 22px; background: var(--accent); transform: skewX(-14deg); border-radius: 2px;
    box-shadow: 6px 0 0 rgba(255, 255, 255, .85); margin-right: 6px; }
nav.main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { padding: 7px 5px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .82); }
nav.main a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
nav.main a.active { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 720px) { header.site .wrap { flex-direction: column; align-items: flex-start; gap: 6px; } nav.main { width: 100%; } }

main { padding-block: 22px 48px; flex: 1; width: 100%; }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 800; }
h2.sec { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--muted); margin: 32px 0 12px; }
/* маркер заголовка раздела - шайба */
h2.sec::before { content: ''; flex: none; width: 17px; height: 9px; margin-bottom: 4px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
h2.sec a { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--ice); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- лента результатов ---------- */
.ticker { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scroll-snap-type: x proximity;
    scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--border)) transparent; }
.ticker::-webkit-scrollbar { height: 6px; }
.ticker::-webkit-scrollbar-track { background: color-mix(in srgb, var(--border) 55%, transparent); border-radius: 999px; }
.ticker::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, var(--border)); border-radius: 999px; }
.ticker::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.tk { flex: 0 0 168px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.tk:hover { text-decoration: none; border-color: var(--accent); }
.tk .d { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; display: flex; justify-content: space-between; }
.tk .r { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 26px; }
.tk .r .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .r b { font-variant-numeric: tabular-nums; }
.tk .r.win .n, .tk .r.win b { font-weight: 800; }
.tk.next { border-style: dashed; }

/* ---------- карточка ближайшего матча ---------- */
.hero-match { position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: 22px 20px 20px;
    background: radial-gradient(900px 300px at 85% -20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
                linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); box-shadow: var(--shadow); }
.hero-match::after { content: ''; position: absolute; inset: auto -30px -50px auto; width: 270px; height: 270px; pointer-events: none;
    /* круг вбрасывания: окружность, точка и риски */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-opacity='.11' stroke-width='5'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='7' fill='white' fill-opacity='.11'/%3E%3Cpath d='M100 20V6M100 180v14M20 100H6M180 100h14M72 82H58M128 82h14M72 118H58M128 118h14'/%3E%3C/svg%3E") no-repeat center / contain; }
a.hero-link { display: block; color: #fff; transition: transform .15s, box-shadow .15s; }
a.hero-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.hero-match .more { margin-top: 16px; text-align: center; font-size: 13px; font-weight: 700; opacity: .8; }
a.hero-link:hover .more { opacity: 1; text-decoration: underline; }
.hero-match .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; text-align: center; font-weight: 700; }
.hero-match .row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 14px; }
.hero-match .tm { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 18px; line-height: 1.25; }
.hero-match .tm:hover { text-decoration: none; }
.hero-match .mid { text-align: center; }
.hero-match .time { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero-match .date { font-size: 13px; opacity: .8; margin-top: 6px; }
.hero-match .cd { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-match .score { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .16); }
@media (max-width: 560px) {
    .hero-match { padding: 18px 10px 16px; }
    .hero-match .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 8px; }
    .hero-match .mid { grid-column: 1 / -1; grid-row: 2; }
    .hero-match .tm { font-size: 14px; gap: 8px; }
    .hero-match .tm .logo, .hero-match .tm .ini { width: 52px; height: 52px; font-size: 16px; }
    .hero-match .time { font-size: 28px; } .hero-match .score { font-size: 36px; }
    .hero-match .date { font-size: 12px; }
    .hero-match .cd { font-size: 11px; padding: 3px 8px; white-space: normal; }
}

/* ---------- строки матчей ---------- */
.fx { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.fx:last-child { border-bottom: 0; }
.fx:hover { text-decoration: none; background: linear-gradient(90deg, transparent, var(--surface-2), transparent); }
.fx .when { color: var(--muted); font-size: 12px; line-height: 1.3; }
.fx .tms { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx .t .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .t.win .n { font-weight: 700; }
.fx .scs { display: flex; flex-direction: column; gap: 6px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx .scs span { height: 26px; line-height: 26px; }
.fx .scs.pending { color: var(--muted); font-weight: 500; font-size: 13px; }

.logo { width: 26px; height: 26px; object-fit: contain; flex: none; }
.logo.lg { width: 84px; height: 84px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.ini { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ini.lg { width: 84px; height: 84px; font-size: 26px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- таблицы ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 7px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tbl td.team, .tbl th.team { text-align: left; }
.tbl td.team a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl td.pts { font-weight: 800; font-size: 15px; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.po td:first-child { box-shadow: inset 4px 0 0 var(--po); }
.po-legend { margin: 8px 0 12px; }
.po-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--po); vertical-align: -1px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.tabs a:hover { text-decoration: none; border-color: var(--accent); }
.tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- команды ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.team-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 10px 18px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.team-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.team-card .logo.lg, .team-card .ini.lg { width: 72px; height: 72px; filter: none; }
.team-card .ini.lg { background: var(--surface-2); border-color: var(--border); color: var(--muted); }

.team-hero { display: flex; align-items: center; gap: 20px; padding: 22px 20px; border-radius: 20px; color: #fff; box-shadow: var(--shadow);
    background: radial-gradient(700px 260px at 90% -30%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); }
.team-hero h1 { margin: 0; color: #fff; }
.team-hero .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 12px; line-height: 1.3; }
.stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .team-hero { flex-direction: column; align-items: flex-start; } }

.verdict { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
article.text { padding: 16px 20px; margin: 0 0 16px; }
article.text > :first-child { margin-top: 0; }
article.text > :last-child { margin-bottom: 0; }
article.text h2 { font-size: 19px; line-height: 1.3; margin: 22px 0 10px; }
article.text h3, article.text h4 { margin: 18px 0 8px; }
article.text p { margin: 0 0 14px; }
article.text p, article.text li { line-height: 1.65; }
article.text ul, article.text ol { margin: 8px 0 14px; padding-left: 22px; }
article.text li { margin-bottom: 6px; }
.pagination { margin-top: 20px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pg { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--fg); }
a.pg:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pg.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg.off { opacity: .45; box-shadow: none; }
.pg.gap { background: none; border: 0; box-shadow: none; min-width: 20px; padding: 0; }
@media (max-width: 560px) { .pg.num, .pg.gap { display: none; } }
footer.site { margin-top: 20px; background: color-mix(in srgb, var(--primary) 88%, #fff 12%); color: rgba(255, 255, 255, .7); font-size: 13px; padding: 22px 0 30px; border-top: 3px solid var(--accent); }

@media (min-width: 561px) { .show-sm { display: none; } }
@media (max-width: 560px) { .hide-sm { display: none; } .show-sm { display: block; font-size: 12px; font-weight: 400; } }
.tbl tr.grp td { text-align: left; background: var(--surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 12px; }

/* ---------- стадионы ---------- */
.stadium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stadium-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; color: var(--fg); }
.stadium-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.stadium-card .photo { height: 130px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))) center / cover no-repeat; }
.stadium-card .body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; font-size: 13px; }
.stadium-card .body b { font-size: 16px; }
.stadium-hero { background: linear-gradient(rgba(5, 15, 30, .6), rgba(5, 15, 30, .85)), var(--photo, none) center / cover, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); min-height: 150px; }
.lineup h3 { margin: 12px 0 4px; font-size: 16px; }
.lineup .muted { margin: 10px 0 2px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
ul.plain { list-style: none; margin: 0 0 8px; padding: 0; }
ul.plain li { padding: 3px 0; border-bottom: 1px solid var(--border); }
ul.plain li .muted { display: inline-block; min-width: 24px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; }
.flag { width: 20px; height: 15px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; }
.chip.live { background: #d6001c; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.chip.live .dot, .live-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: livepulse 1.4s infinite; }
.live-tag { color: #d6001c; font-size: 11px; letter-spacing: .06em; }
.live-tag::before { display: inline-block; margin-right: 4px; background: #d6001c; }
.scs.live { color: #d6001c; font-weight: 800; }
@keyframes livepulse { 50% { opacity: .25; } }

.tbl .form-col { text-align: left; }
.fm { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.fm.w { background: var(--win); }
.fm.l { background: var(--loss); }
a.fm:hover { transform: scale(1.35); }
.fx .bet { font-size: 13px; text-align: right; white-space: nowrap; }
.prediction-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.prediction-link:hover { text-decoration: none; border-color: var(--accent); }
.prediction-link .go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .55; }
.crumbs .cur { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- прогноз: ставка и голосование ---------- */
.bet-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 16px 20px; }
.bet-box .bm-logo { max-height: 28px; width: auto; }
.bet-box .bm-name { font-size: 16px; }
.bet-box .bet-col { display: flex; flex-direction: column; gap: 2px; }
.bet-box .bet-col b { font-size: 18px; }
.bet-btn { margin-left: auto; padding: 11px 22px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; }
.bet-btn:hover { text-decoration: none; filter: brightness(1.08); }
.vote-box { padding: 16px 20px; }
.vote-box [hidden] { display: none; }
.vote-buttons { display: flex; gap: 12px; }
.vote-buttons button { flex: 1; max-width: 160px; padding: 10px; border: 0; border-radius: 10px; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; }
.vote-yes { background: var(--win); } .vote-no { background: var(--loss); }
.vote-row { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 10px; margin: 8px 0; }
.vote-row .bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.vote-row .bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.vote-row .bar i.yes { background: var(--win); } .vote-row .bar i.no { background: var(--loss); }
.vote-row b { text-align: right; }
.news-cover { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0 0 16px; }
.news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.news-item:hover { text-decoration: none; }
.news-item:hover b { color: var(--accent); }
.news-item img { flex: 0 0 160px; width: 160px; height: 100px; object-fit: cover; border-radius: 10px; }
.news-item .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-item b { font-size: 17px; line-height: 1.3; }
@media (max-width: 560px) { .news-item img { flex-basis: 96px; width: 96px; height: 72px; } .news-item b { font-size: 15px; } }

/* Содержимое новостей и прогнозов: картинки, таблицы и ролики не шире блока */
.news-body, .text { overflow-wrap: anywhere; }
.news-body img, .text img { display: block; max-width: 100%; height: auto; margin: 14px auto; border-radius: 10px; }
.news-body iframe, .news-body video, .text iframe, .text video { max-width: 100%; }
.news-body table, .text table { display: block; max-width: 100%; overflow-x: auto; }
.news-body figure { margin: 14px 0; max-width: 100%; }
.news-body p { line-height: 1.6; }

/* ---------- новости на главной: 2 колонки ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card:hover { text-decoration: none; border-color: var(--accent); }
.news-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.news-card .txt { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; }
.news-card b { font-size: 16px; line-height: 1.3; }
.news-card:hover b { color: var(--accent); }
@media (max-width: 760px) { .news-grid { grid-template-columns: minmax(0, 1fr); } .news-card img { height: 150px; } }

/* Блок, идущий сразу за карточкой (например текст прогноза после блока «Последние игры»), не прилипает к ней */
main > .card + .card, main > .card + article.text, main > .card + .bet-box { margin-top: 16px; }
article.text + h2.sec { margin-top: 24px; }
.h2h { padding: 12px 18px 6px; } .h2h .h2h-sum { margin: 4px 0 8px; line-height: 1.5; } .h2h .when { color: var(--muted); font-size: 13px; text-align: left; } .h2h .win-name { font-weight: 700; }

/* ---------- иконки ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.22em; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav.main a { display: inline-flex; align-items: center; }
nav.main a .ic { margin-right: 4px; opacity: .85; }
nav.main a.active .ic { opacity: 1; }
.brand-puck { width: 26px; height: 26px; margin-right: 0; color: var(--accent); stroke-width: 2; }
footer.site .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
footer.site .ic { color: var(--accent); width: 1.4em; height: 1.4em; }
@media (max-width: 560px) { nav.main a .ic { display: none; } }

/* ---------- рейтинги: медали и кубок на фоне ---------- */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #3b2a00;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .25); }
.medal.m1 { background: radial-gradient(circle at 30% 25%, #fff3b0, #f2b705 60%, #c98f00); }
.medal.m2 { background: radial-gradient(circle at 30% 25%, #ffffff, #c4ccd6 60%, #8f9aa8); color: #2b3440; }
.medal.m3 { background: radial-gradient(circle at 30% 25%, #ffd9b0, #cd7f32 60%, #985a1c); color: #3a1d00; }
.rating { position: relative; overflow: hidden; }
.rating > * { position: relative; z-index: 1; }
/* кубок на фоне карточки рейтинга */
.rating::after { content: ''; position: absolute; right: -34px; top: -26px; width: 170px; height: 170px; z-index: 0; pointer-events: none; opacity: .10;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99a00' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8v6a4 4 0 0 1-8 0z'/%3E%3Cpath d='M8 5H4.5v1.5A3.5 3.5 0 0 0 8 10M16 5h3.5v1.5A3.5 3.5 0 0 1 16 10M12 13v4M9 20h6M10 17h4v3h-4z'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rating::after { opacity: .08; } }
:root[data-theme="dark"] .rating::after { opacity: .08; }
@media (max-width: 560px) { .rating::after { width: 120px; height: 120px; right: -26px; top: -20px; } }

/* ---------- сравнение команд ---------- */
.compare { padding: 14px 18px 8px; }
.cmp-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cmp-head .side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-head .side.r { text-align: right; }
.cmp-head b { font-size: 16px; }
.cmp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.cmp-row .v { font-variant-numeric: tabular-nums; font-size: 16px; }
.cmp-row .v.r { text-align: right; }
.cmp-row .v.best { color: var(--win); }
.cmp-mid { display: flex; flex-direction: column; gap: 5px; }
.cmp-mid .lbl { text-align: center; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cmp-mid .bar { display: flex; height: 8px; gap: 3px; }
.cmp-mid .bar i { display: block; height: 100%; }
.cmp-mid .bar i.h { background: var(--primary); border-radius: 999px 3px 3px 999px; }
.cmp-mid .bar i.a { background: var(--accent); border-radius: 3px 999px 999px 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-mid .bar i.h { background: var(--ice); } }
:root[data-theme="dark"] .cmp-mid .bar i.h { background: var(--ice); }
.form-dots { display: inline-flex; gap: 5px; margin-top: 2px; }
.hero-match .form-dots .fm { width: 10px; height: 10px; margin: 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }

/* ---------- плитки показателей, герой игрока, плашки команды ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); text-align: center; }
.tile b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile.accent { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #000)); color: #fff; border-color: transparent; }
.tile.accent span { color: rgba(255, 255, 255, .75); }
.team-extra { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; box-shadow: var(--shadow); }
.badge-chip .ic { color: var(--accent); margin-right: 0; }
.player-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 22px 20px; border-radius: 20px; color: #fff; box-shadow: var(--shadow);
    background: radial-gradient(800px 260px at 90% -30%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); }
.player-hero h1 { margin: 0; color: #fff; }
.player-hero .meta { margin: 4px 0 0; opacity: .85; }
.player-hero .meta a { text-decoration: underline; text-underline-offset: 3px; }
.player-hero .ph { width: 104px; height: 104px; object-fit: cover; border-radius: 16px; border: 3px solid rgba(255, 255, 255, .25); flex: none; }
.player-hero .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* номер на майке - крупно на фоне */
.player-hero[data-number]::after { content: attr(data-number); position: absolute; right: 18px; bottom: -34px; font-size: 170px; line-height: 1; font-weight: 900; font-style: italic;
    color: rgba(255, 255, 255, .08); letter-spacing: -.04em; pointer-events: none; }
.player-hero > * { position: relative; z-index: 1; }
@media (max-width: 560px) { .player-hero { flex-direction: column; align-items: flex-start; } .player-hero[data-number]::after { font-size: 120px; } }

/* ---------- прогнозы: зашёл / не зашёл ---------- */
.result-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.result-chip.hit { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.result-chip.miss { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--loss); }
.fx .bet .result-chip { margin-left: 6px; }
.hit-rate { display: flex; align-items: center; gap: 18px; padding: 14px 20px; margin-bottom: 8px; }
.hit-rate .ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--win) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.hit-rate .ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.hit-rate .ring b { position: relative; font-size: 16px; }

.day-head .day-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- игра дня ---------- */
.gotd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 20px 14px; margin-top: 18px;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.gotd:hover { text-decoration: none; border-color: var(--accent); }
.gotd .tag { position: absolute; top: -11px; left: 18px; display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gotd .tag .ic { margin-right: 5px; }
.gotd .side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gotd .side.r { justify-content: flex-end; text-align: right; }
.gotd .nm { display: flex; flex-direction: column; min-width: 0; }
.gotd .nm b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gotd .vs { display: flex; flex-direction: column; align-items: center; }
.gotd .vs b { font-size: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .gotd { grid-template-columns: 1fr; gap: 10px; } .gotd .side.r { justify-content: flex-start; text-align: left; flex-direction: row-reverse; } .gotd .vs { align-items: flex-start; } }

/* ---------- личные встречи: дата, команды и счёт рядом ---------- */
.h2h-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.h2h-row .when { color: var(--muted); font-size: 13px; }
.h2h-row .home { text-align: right; overflow-wrap: anywhere; }
.h2h-row .away { text-align: left; overflow-wrap: anywhere; }
.h2h-row .score { min-width: 54px; text-align: center; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); font-variant-numeric: tabular-nums; font-size: 16px; }
@media (max-width: 560px) {
    .h2h-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px 8px; font-size: 14px; }
    .h2h-row .when { grid-column: 1 / -1; }
}

/* ---------- форма команды: отметки результатов В / П ---------- */
.fx.marked { grid-template-columns: 64px minmax(0, 1fr) auto 28px; }
.fx.marked .mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; }
.fx .mark.w { background: var(--win); } .fx .mark.l { background: var(--loss); } .fx .mark.d { background: var(--muted); }
.fx.res-w { box-shadow: inset 3px 0 0 var(--win); padding-left: 10px; }
.fx.res-l { box-shadow: inset 3px 0 0 var(--loss); padding-left: 10px; }
.fx.res-d { box-shadow: inset 3px 0 0 var(--muted); padding-left: 10px; }
h2.sec .form-title-dots { margin-left: 4px; text-transform: none; }
h2.sec .form-title-dots .fm { width: 11px; height: 11px; margin-right: 0; }

/* логотипы в сравнении команд и личных встречах */
.cmp-head .side { flex-direction: row; align-items: center; gap: 12px; }
.cmp-head .side .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-head .side.r { flex-direction: row; justify-content: flex-end; }
.cmp-head .side.r .nm { align-items: flex-end; }
.h2h-row .home, .h2h-row .away { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h2h-row .home { justify-content: flex-end; }
.h2h-row .nm { overflow-wrap: anywhere; }
.h2h-row .logo, .h2h-row .ini { flex: none; width: 26px; height: 26px; font-size: 10px; }
@media (max-width: 560px) { .h2h-row .logo, .h2h-row .ini { width: 22px; height: 22px; } .h2h-row .home, .h2h-row .away { gap: 6px; } }
.logo.md { width: 40px; height: 40px; }
.ini.md { width: 40px; height: 40px; font-size: 13px; }

/* ---------- переключатель темы ---------- */
header.site .wrap { position: relative; }
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
.theme-toggle .ic { margin: 0; width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 720px) { .theme-toggle { position: absolute; top: 10px; right: 16px; } }

/* ---------- подвал: служебные страницы и возрастной знак ---------- */
footer.site .wrap { justify-content: flex-start; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-left: 16px; }
.foot-links a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: #fff; }
footer.site .age { margin-left: auto; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; }
.disclaimer { margin-top: 14px; }

/* ---------- уведомление о cookie ---------- */
/* Фон - карточка темы (а не основной цвет бренда: у НХЛ он почти чёрный и сливается с тёмной страницей), заметная рамка
   с акцентной полосой сверху и тень */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
    padding: 14px 18px; border-radius: 14px; color: var(--fg); font-size: 13px; line-height: 1.5;
    background: color-mix(in srgb, var(--surface) 88%, var(--fg) 12%); border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); border-top: 3px solid var(--accent);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); }
.cookie-note[hidden] { display: none; }
.cookie-note a { color: var(--ice); text-decoration: underline; text-underline-offset: 2px; }
.cookie-note button { flex: none; padding: 9px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.cookie-note button:hover { filter: brightness(1.1); }
@media (max-width: 560px) { .cookie-note { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---------- баннер «Смотреть онлайн»: экран с кнопкой воспроизведения ---------- */
.watch-banner { position: relative; display: flex; align-items: center; gap: 20px; margin: 16px 0 0; padding: 22px 24px; border-radius: 18px; color: #fff; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(520px 220px at 12% 50%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%),
        radial-gradient(420px 200px at 100% 0%, rgba(59, 130, 246, .35), transparent 70%),
        linear-gradient(135deg, #0a1730, #0e2347 55%, #101a33);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .18s, box-shadow .18s; }
.watch-banner:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .22); }
/* перфорация киноленты сверху и снизу */
.watch-banner::before, .watch-banner::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; z-index: -1; opacity: .35;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 10px, transparent 10px 22px); }
.watch-banner::before { top: 5px; } .watch-banner::after { bottom: 5px; }
/* экран с «play» и расходящимися кольцами */
.wb-screen { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #ff5b6f, var(--accent) 60%, #8f0013); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 -4px 0 rgba(0, 0, 0, .2); }
.wb-screen .ic { width: 40px; height: 40px; margin: 0 0 0 3px; fill: #fff; stroke: #fff; stroke-width: 1; }
.wb-screen .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 75%, #fff); opacity: 0; animation: wbRipple 2.4s infinite; }
.wb-screen .ring.r2 { animation-delay: 1.2s; }
@keyframes wbRipple { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.75); opacity: 0; } }
.wb-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.wb-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.watch-banner.is-live .wb-badge { background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.wb-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.2s infinite; }
.wb-title { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.wb-teams { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.wb-teams .logo, .wb-teams .ini { width: 22px; height: 22px; font-size: 9px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.wb-time { padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12px; }
.wb-logo { flex: none; max-height: 34px; width: auto; max-width: 120px; object-fit: contain; }
/* кнопка: яркий золотой градиент, свечение и блик */
.wb-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; padding: 15px 30px; border-radius: 14px; font-size: 17px; font-weight: 800; white-space: nowrap;
    color: #3a2600; background: linear-gradient(180deg, #ffe27a, #ffc21a 55%, #f0a500); box-shadow: 0 8px 22px rgba(255, 190, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(0, 0, 0, .15);
    animation: wbGlow 2.4s ease-in-out infinite; }
.wb-btn .ic { width: 22px; height: 22px; margin: 0; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.wb-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: wbShine 3.2s infinite; }
.watch-banner:hover .wb-btn { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(255, 190, 20, .65), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(0, 0, 0, .15); }
@keyframes wbGlow { 50% { box-shadow: 0 8px 30px rgba(255, 190, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(0, 0, 0, .15); } }
@keyframes wbShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .wb-screen .ring, .wb-btn, .wb-btn::after, .wb-badge .dot { animation: none; } }
@media (max-width: 720px) { .watch-banner { flex-wrap: wrap; padding: 22px 18px 18px; } .wb-body { flex-basis: calc(100% - 110px); } .wb-btn { width: 100%; justify-content: center; } .wb-logo { display: none; } .wb-title { font-size: 21px; } .wb-screen { width: 70px; height: 70px; } }

.match-h1 { font-size: 24px; margin: 4px 0 14px; }
@media (max-width: 560px) { .match-h1 { font-size: 20px; } }

/* Ссылка на прогноз под строкой матча в блоке «Ближайшие матчи команд» */
.rel-pred { display: block; padding: 0 16px 10px 16px; font-size: 13px; color: var(--accent); font-weight: 600; }
