/* KHL All Star — оформление в духе шаблона khl.ru 2025:
   графитовый фон, белые скруглённые карточки, красный акцент. */

:root {
  color-scheme: only light;
  --bg: #151515;
  --bg-2: #1f1f1f;
  --bg-3: #2a2a2a;
  --card: #ffffff;
  --card-2: #f4f4f4;
  --ink: #151515;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --on-dark: #ffffff;
  --on-dark-2: #b5b5b5;
  --red: #dd1a2b;
  --red-2: #b8121f;
  --navy: #002855;
  --navy-2: #0a3a73;
  --blue: #0033a0;
  --gold: #c9a227;
  --win: #2e7d32;
  --loss: #c62828;
  --otl: #ef8f00;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --gap: 16px;
  --wrap: 1320px;
  --font: 'PT Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-num: 'Oswald', 'PT Sans', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-dark);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- Шапка ---------- */

.hdr { position: sticky; top: 0; z-index: 50; background: rgba(21, 21, 21, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.logo:hover { color: #fff; }
.logo svg { width: 38px; height: 38px; }
.logo__txt { font: 700 17px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.logo__txt b { color: var(--red); }
.logo__txt small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--on-dark-2); font-weight: 400; margin-top: 4px; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #e9e9e9; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav a[aria-current] { background: var(--bg-3); color: #fff; }
.nav li { position: relative; }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--card); border-radius: var(--r-md); padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); flex-direction: column; }
.nav .sub-menu a { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; border-radius: 8px; }
.nav .sub-menu a:hover { background: var(--card-2); color: var(--red); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
@media (min-width: 1100px) { .nav { display: block; } }

.hdr__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--bg-3); color: #fff; }
.icon-btn:hover { background: #3a3a3a; color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.btn:hover { background: var(--red-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--card-2); color: var(--red); }
.btn--dark { background: var(--bg-3); }
.btn--dark:hover { background: #3a3a3a; }
.burger { display: grid; }
@media (min-width: 1100px) { .burger { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 16px; overflow: auto; display: none; }
.drawer.is-open { display: block; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer .sub-menu a { font-size: 16px; font-weight: 400; padding-left: 20px; color: var(--on-dark-2); }

.search-pop { display: none; padding: 12px 0 16px; }
.search-pop.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; background: var(--card); color: var(--ink); }

/* ---------- Лента матчей (тикер) ---------- */

.ticker { background: var(--bg); padding: 12px 0 0; }
.ticker__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.ticker__row::-webkit-scrollbar { display: none; }
.tick { flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; min-width: 176px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); color: #fff; font-size: 13px; }
.tick:hover { background: var(--bg-3); color: #fff; }
.tick__meta { grid-column: 1 / -1; color: var(--on-dark-2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 6px; align-items: center; }
.tick__t { display: flex; align-items: center; gap: 6px; }
.tick__t img { width: 18px; height: 18px; object-fit: contain; }
.tick__s { font-family: var(--font-num); font-weight: 500; text-align: right; }
.tick--live .tick__meta { color: #ff6b77; }

/* ---------- Каркас страниц ---------- */

main { padding: 16px 0 48px; }
.grid { display: grid; gap: var(--gap); }
.grid--main { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid--main { grid-template-columns: minmax(0, 1fr) 360px; } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: var(--gap); }

.card { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
@media (min-width: 768px) { .card { padding: 24px; } }
.card--dark { background: var(--bg-2); color: #fff; }
.card--navy { background: var(--navy); color: #fff; }
.card--flush { padding: 0; overflow: hidden; }
.card a:hover { color: var(--red); }

.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.sec-h h2, .sec-h h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
@media (min-width: 768px) { .sec-h h2 { font-size: 28px; } }
.sec-h a.more { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sec-h a.more:hover { color: var(--red); }
.card--dark .sec-h a.more, .page-dark .sec-h a.more { color: var(--on-dark-2); }

.page-h { margin: 8px 0 20px; }
.page-h h1 { font-size: 32px; line-height: 1.12; margin: 6px 0 8px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 768px) { .page-h h1 { font-size: 44px; } }
.page-h p { color: var(--on-dark-2); margin: 0; max-width: 820px; font-size: 17px; }

.crumbs { font-size: 13px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card-2); color: var(--ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--red); }
.tab.is-active, .tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--red); color: #fff; }
.card--dark .tab, .page-dark .tab { background: var(--bg-3); color: #fff; }
.card--dark .tab.is-active, .page-dark .tab.is-active, .page-dark .tab[aria-current="page"] { background: var(--red); }

.label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card-2); color: var(--ink-2); }
.badge--live { background: var(--red); color: #fff; }
.badge--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.badge--gold { background: #f6ecc8; color: #6d5410; }
@keyframes blink { 50% { opacity: .2; } }
.muted { color: var(--muted); }
.card--dark .muted { color: var(--on-dark-2); }

/* ---------- Новости ---------- */

.hero { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1fr) 340px; } }
.hero__main { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hero__main { grid-template-columns: 1.1fr 1fr; } }
.hero__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--card-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero__lead:hover img { transform: scale(1.03); }
.hero__lead h2 { font-size: 26px; line-height: 1.2; margin: 10px 0 8px; }
.hero__lead p { color: var(--muted); margin: 0; }
.hero__list { list-style: none; margin: 0; padding: 0; }
.hero__list li + li { border-top: 1px solid var(--line); }
.hero__list a { display: block; padding: 11px 0; font-size: 15px; line-height: 1.35; }
.hero__list time { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }

.ncard { display: flex; flex-direction: column; gap: 10px; }
.ncard__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--card-2); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ncard:hover .ncard__img img { transform: scale(1.04); }
.ncard h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.ncard p { margin: 0; color: var(--muted); font-size: 15px; }
.ncard__meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }

.nrow { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.nrow:first-child { border-top: 0; padding-top: 0; }
.nrow img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 120px; }
.nrow h3 { font-size: 16px; line-height: 1.3; margin: 0 0 4px; }

/* ---------- Карточка матча ---------- */

.mcards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mcards { grid-template-columns: repeat(4, 1fr); } }
.mcard { display: flex; flex-direction: column; gap: 10px; background: var(--card); color: var(--ink); border-radius: var(--r-md); padding: 14px 16px 16px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.mcard:hover { border-color: var(--red); color: var(--ink); transform: translateY(-2px); }
.mcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mcard__body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.mcard__team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.2; min-width: 0; }
.mcard__team img { width: 52px; height: 52px; object-fit: contain; }
.mcard__score { font: 600 30px/1 var(--font-num); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mcard__score small { display: block; font: 700 11px/1 var(--font); color: var(--muted); text-align: center; letter-spacing: .05em; }
.mcard__time { font: 500 24px/1 var(--font-num); }
.mcard--live { border-color: var(--red); }
.mcard .lose { color: #9a9a9a; }

.mlist { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: 64px 1fr auto 1fr 24px; align-items: center; gap: 10px; padding: 12px 8px; border-top: 1px solid var(--line); font-size: 15px; }
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--card-2); border-radius: 12px; color: var(--ink); }
.mrow__time { font: 500 15px/1.1 var(--font-num); color: var(--muted); }
.mrow__time small { display: block; font: 400 11px/1.2 var(--font); text-transform: uppercase; }
.mrow__h, .mrow__a { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.mrow__h { justify-content: flex-end; text-align: right; }
.mrow__h span, .mrow__a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.mrow__s { font: 600 20px/1 var(--font-num); min-width: 72px; text-align: center; white-space: nowrap; }
.mrow__s small { font: 700 11px var(--font); color: var(--muted); margin-left: 3px; }
.mrow__go { color: var(--muted); }
@media (max-width: 560px) {
  .mrow { grid-template-columns: 48px 1fr auto 1fr; font-size: 14px; gap: 6px; padding: 10px 2px; }
  .mrow__go { display: none; }
  .mrow img { width: 22px; height: 22px; }
  .mrow__s { min-width: 56px; font-size: 18px; }
}

/* ---------- Табло матча ---------- */

.board { background: linear-gradient(135deg, var(--navy) 0%, #001a3a 100%); color: #fff; border-radius: var(--r-lg); padding: 24px 16px; position: relative; overflow: hidden; }
.board::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .04); pointer-events: none; }
.board__meta { text-align: center; color: #c6d3e6; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.board__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board__team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 18px; font-weight: 700; }
.board__team img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; }
@media (min-width: 768px) { .board { padding: 36px; } .board__team { font-size: 24px; } .board__team img { width: 112px; height: 112px; padding: 12px; } }
.board__team small { font-size: 13px; font-weight: 400; color: #c6d3e6; }
.board__score { font: 600 56px/1 var(--font-num); text-align: center; white-space: nowrap; }
@media (min-width: 768px) { .board__score { font-size: 88px; } }
.board__score small { display: block; font: 700 14px var(--font); letter-spacing: .08em; color: #c6d3e6; margin-top: 8px; }
.board__periods { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.board__periods span { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.board__periods b { font-family: var(--font-num); font-weight: 500; margin-left: 4px; }

/* ---------- Таблицы ---------- */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--card-2); }
.tbl .l { text-align: left; }
.tbl .team { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tbl .team img { width: 26px; height: 26px; object-fit: contain; }
.tbl .pts { font-weight: 700; color: var(--ink); }
.tbl .pos { color: var(--muted); width: 32px; }
.tbl tr.cut td { border-bottom: 2px dashed var(--red); }
.tbl tr.me td { background: #fff3f4; }
.tbl--compact td { padding: 7px 4px; }
.card--dark .tbl th { color: var(--on-dark-2); border-color: rgba(255, 255, 255, .1); }
.card--dark .tbl td { border-color: rgba(255, 255, 255, .08); }
.card--dark .tbl tbody tr:hover td { background: rgba(255, 255, 255, .04); }

.form { display: inline-flex; gap: 3px; }
.form i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font: 700 11px/1 var(--font); color: #fff; font-style: normal; }
.form .w { background: var(--win); }
.form .l { background: var(--loss); }
.form .o { background: var(--otl); }

/* ---------- Персоны и клубы ---------- */

.club-h { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .club-h { grid-template-columns: 160px 1fr auto; padding: 32px; } }
.club-h__logo { width: 120px; height: 120px; object-fit: contain; }
@media (min-width: 768px) { .club-h__logo { width: 160px; height: 160px; } }
.club-h h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.1; }
@media (min-width: 768px) { .club-h h1 { font-size: 44px; } }
.club-h__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.club-h__facts b { color: var(--ink); }
.club-h__stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; }

.facts { color: var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { background: var(--card); padding: 14px 16px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; }

.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--card); color: var(--ink); border-radius: var(--r-md); padding: 16px 12px; border: 1px solid var(--line); transition: border-color .2s; }
.pcard:hover { border-color: var(--red); color: var(--ink); }
.pcard__ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--card-2); display: grid; place-items: center; }
.pcard__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcard__no { font: 600 13px var(--font-num); color: var(--red); }
.pcard b { font-size: 15px; line-height: 1.25; }
.pcard small { color: var(--muted); font-size: 13px; }
.pgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(6, 1fr); } }

.player-h { display: grid; grid-template-columns: 1fr; gap: 24px; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 24px; }
@media (min-width: 768px) { .player-h { grid-template-columns: 240px 1fr; padding: 32px; } }
.player-h__ph { width: 200px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--card-2); }
@media (min-width: 768px) { .player-h__ph { width: 240px; } }
.player-h__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-h h1 { margin: 4px 0 12px; font-size: 32px; line-height: 1.1; }
@media (min-width: 768px) { .player-h h1 { font-size: 42px; } }
.player-h__no { font: 600 48px/1 var(--font-num); color: var(--red); float: right; }

.leader { display: grid; grid-template-columns: 28px 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.leader:first-child { border-top: 0; }
.leader__i { font: 600 15px var(--font-num); color: var(--muted); text-align: center; }
.leader__ph { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--card-2); }
.leader__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader b { display: block; font-size: 15px; line-height: 1.2; }
.leader small { color: var(--muted); font-size: 13px; }
.leader__v { font: 600 22px var(--font-num); }

/* ---------- История, чемпионы ---------- */

.champs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .champs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .champs { grid-template-columns: repeat(3, 1fr); } }
.champ { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--card); color: var(--ink); border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line); position: relative; }
.champ:hover { border-color: var(--gold); color: var(--ink); }
.champ img { width: 64px; height: 64px; object-fit: contain; }
.champ__s { font: 600 14px var(--font-num); color: var(--gold); letter-spacing: .04em; }
.champ b { display: block; font-size: 18px; line-height: 1.2; }
.champ small { color: var(--muted); }

.cup-banner { background: radial-gradient(120% 140% at 100% 0%, #3a2d05 0%, #151515 55%); border-radius: var(--r-lg); padding: 28px; color: #fff; display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; overflow: hidden; }
@media (min-width: 768px) { .cup-banner { grid-template-columns: 1fr 280px; padding: 40px; } }
.cup-banner h2 { font-size: 30px; margin: 6px 0 10px; line-height: 1.15; }
.cup-banner p { color: #d9d2bd; margin: 0 0 16px; }
.cup-banner .label { color: var(--gold); }
.cup-banner__img { border-radius: var(--r-md); overflow: hidden; }

.bracket { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .bracket { grid-template-columns: repeat(4, 1fr); } }
.bracket__col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.series { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.series__t { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; }
.series__t span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.series__t img { width: 22px; height: 22px; object-fit: contain; }
.series__t b { font: 600 18px var(--font-num); }
.series__t.lost { color: #9a9a9a; }
.series__g { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.series__g a { font: 500 12px var(--font-num); background: var(--card-2); border-radius: 6px; padding: 2px 6px; }

/* ---------- Видео ---------- */

.vcard { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.vcard__img { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.vcard:hover .vcard__img img { opacity: 1; transform: scale(1.03); }
.vcard__img::after { content: ''; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.vcard b { font-size: 15px; line-height: 1.3; }
.vcard small { color: var(--on-dark-2); font-size: 13px; }
.card .vcard small { color: var(--muted); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.video-embed iframe, .video-embed button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed button { background: #000 center / cover no-repeat; padding: 0; }
.video-embed button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 32px no-repeat; }

/* ---------- Статья ---------- */

.article { max-width: 780px; }
.article__h h1 { font-size: 30px; line-height: 1.15; margin: 10px 0 12px; }
@media (min-width: 768px) { .article__h h1 { font-size: 40px; } }
.article__lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article__img { border-radius: var(--r-md); overflow: hidden; margin: 0 0 8px; }
.article__img img { width: 100%; }
.article__cap { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { font-size: 26px; line-height: 1.25; color: var(--ink); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; line-height: 1.3; color: var(--ink); margin: 1.4em 0 .5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-size: 20px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--card-2); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.prose figure { margin: 1.5em 0; }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose .note { background: var(--card-2); border-radius: var(--r-md); padding: 16px 20px; font-size: 16px; }
.toc { background: var(--card-2); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 24px; font-size: 15px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--card-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.tags img { width: 20px; height: 20px; object-fit: contain; }

/* ---------- Подвал ---------- */

.ftr { background: #0e0e0e; color: var(--on-dark-2); padding: 48px 0 28px; font-size: 14px; }
.ftr__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.ftr h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: #fff; }
.ftr__clubs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr__clubs a { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ftr__clubs img { width: 28px; height: 28px; object-fit: contain; }
.ftr__bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--on-dark-2); font-weight: 700; font-size: 12px; }

/* ---------- Разное ---------- */

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; padding: 0 12px; }
.pager .current { background: var(--red); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.date-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-nav input { height: 40px; border-radius: 999px; border: 1px solid var(--line); padding: 0 14px; font: inherit; }
.h2h { display: grid; grid-template-columns: 1fr auto 1fr; text-align: center; align-items: center; gap: 10px; margin-bottom: 14px; }
.h2h b { font: 600 36px/1 var(--font-num); }
.h2h small { display: block; color: var(--muted); font-size: 13px; }
.prob { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--card-2); }
.prob span { display: block; height: 100%; }
.prob__legend { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; color: var(--muted); }
.seo-text { columns: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.photo-credit { font-size: 12px; color: var(--muted); }

/* Иконки внутри текста */
.i { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }
.mrow .s { display: none; }
/* Узкая колонка: короткие коды клубов вместо названий */
aside .mrow { grid-template-columns: 52px 1fr auto 1fr; gap: 8px; }
aside .mrow .n { display: none; }
aside .mrow .s { display: inline; font-size: 13px; }
aside .mrow__go { display: none; }
aside .mrow__s { min-width: 52px; font-size: 18px; }
.prose .khl-live { display: block; margin: 0 0 1.1em; padding: 14px 18px; background: var(--card-2); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; }

/* Лента матчей: стрелки и перетаскивание */
.ticker__wrap { position: relative; }
.ticker__row { cursor: grab; user-select: none; }
.ticker__row.is-drag { cursor: grabbing; }
.ticker__row.is-drag .tick { pointer-events: none; }
.ticker__nav { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.ticker__nav:hover { background: var(--red-2); }
.ticker__nav[hidden] { display: none; }
.ticker__nav .i { width: 18px; height: 18px; }
.ticker__nav--prev { left: 4px; }
.ticker__nav--next { right: 4px; }
@media (min-width: 768px) { .ticker__nav--prev { left: 12px; } .ticker__nav--next { right: 12px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line, #e5e5e5); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line, #e5e5e5); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red, #dd1a2b); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; line-height: 1.6; }

/* Протокол матча */
.proto__per { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 4px; }
.proto__row { display: grid; grid-template-columns: 52px 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.proto__row img { width: 26px; height: 26px; object-fit: contain; }
.proto__who b { display: block; }
.proto__who small, .proto__s small { display: block; color: var(--muted); font-size: 13px; }
.proto__s { text-align: right; }
.ttext { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.ttext li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ttext p { margin: 0; }

/* Арены и тренеры */
.arena-card, .coach-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.arena-card > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.arena-card small, .coach-card small { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.arena-card__clubs { display: flex; gap: 6px; }
.arena-card__clubs img { width: 28px; height: 28px; object-fit: contain; }
.coach-card { flex-direction: row; align-items: center; gap: 14px; }
.coach-card > img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex: none; }
.coach-card b { display: block; }
.arena-h { padding: 0; overflow: hidden; }
.arena-h__ph { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.arena-h__b { padding: 20px 24px; }
.arena-h__b h1 { margin: 6px 0 12px; }

.ftr__sched { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ftr__sched a { color: var(--on-dark-2); text-decoration: none; }
.ftr__sched a:hover { color: #fff; text-decoration: underline; }

/* Голосования */
.vote__opts { display: grid; gap: 8px; }
.vote__btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.vote__btn:hover:not(:disabled) { border-color: var(--red); }
.vote__btn:disabled { cursor: default; }
.vote__btn.is-mine { border-color: var(--red); background: #fff4f5; }
.vote__pct { color: var(--red); font-variant-numeric: tabular-nums; }

/* Колонки сетки не растягиваются под широкие таблицы в тексте */
.grid > * { min-width: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }

/* Ссылка на прогноз со страницы матча */
.pred-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border-left: 4px solid var(--red); }
.pred-card b { font-size: 18px; line-height: 1.3; }
.pred-card small { color: var(--muted); }
.pred-card:hover b { color: var(--red); }
