/* AlexBetting — новый дизайн. Цвета задаются токенами; тёмная тема — те же токены с другими значениями. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;
  --border: #e3e8f0;
  --border-strong: #cfd7e4;
  --text: #0f1b2d;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --brand: #0b1f44;
  --brand-2: #14336b;
  --accent: #10b981;
  --accent-ink: #047857;
  --accent-soft: #d1fae5;
  --link: #1d4ed8;
  --win: #2563eb;
  --draw: #16a34a;
  --loss: #dc2626;
  --z1: #2563eb; --z2: #0ea5e9; --z3: #14b8a6; --z4: #8b5cf6; --z5: #a3a3a3;
  --z11: #ef4444; --z12: #f59e0b; --z13: #fbbf24;
  --row-hover: #f1f5fb;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 20px rgba(15, 27, 45, .05);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220; --surface: #101a2c; --surface-2: #0d1626; --surface-3: #16233a;
    --border: #1e2b44; --border-strong: #2a3a58; --text: #e6edf7; --text-2: #c3cfe0; --muted: #8a9ab3; --faint: #5f6f8a;
    --brand: #070f1f; --brand-2: #0d1b36; --accent: #34d399; --accent-ink: #6ee7b7; --accent-soft: #0f3a2e;
    --link: #7aa7ff; --win: #5b8cff; --draw: #34c06a; --loss: #f26464; --row-hover: #142038;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #101a2c; --surface-2: #0d1626; --surface-3: #16233a;
  --border: #1e2b44; --border-strong: #2a3a58; --text: #e6edf7; --text-2: #c3cfe0; --muted: #8a9ab3; --faint: #5f6f8a;
  --brand: #070f1f; --brand-2: #0d1b36; --accent: #34d399; --accent-ink: #6ee7b7; --accent-soft: #0f3a2e;
  --link: #7aa7ff; --win: #5b8cff; --draw: #34c06a; --loss: #f26464; --row-hover: #142038;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 10px; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); margin: 8px 0; }

/* ── Шапка ───────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar-in { max-width: 1360px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
/* знак (tools/logo): в шапке — тёмная версия; с новогодней шапкой он выше — поднимаем, чтобы буквы стояли там же */
.brand-logo { display: block; height: 30px; width: auto; }
.brand-logo.ny { height: 36px; margin-top: -6px; }
/* подвал и меню на телефоне: фон меняется с темой — показываем подходящую версию знака */
.logo-pair { display: inline-flex; }
.logo-pair img { display: block; height: 28px; width: auto; }
.drawer-head .logo-pair img { height: 26px; }
.logo-pair .logo-d { display: none; }
:root[data-theme="dark"] .logo-pair .logo-l { display: none; }
:root[data-theme="dark"] .logo-pair .logo-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-pair .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-pair .logo-d { display: block; }
}
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-text b { color: var(--accent); font-weight: 800; }
.mainnav { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.mainnav a { color: rgba(255,255,255,.78); padding: 7px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.mainnav a.on { color: #fff; background: rgba(255,255,255,.14); }
.search { position: relative; margin-left: auto; flex: 0 1 280px; min-width: 0; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 10px; height: 38px; color: rgba(255,255,255,.7); }
.search:focus-within { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; }
.search input::placeholder { color: rgba(255,255,255,.55); }
.search-pop { position: absolute; top: 44px; left: 0; right: 0; min-width: 300px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.search-pop .grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px 4px; }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-pop a:hover, .search-pop a.sel { background: var(--surface-3); text-decoration: none; }
.search-pop small { color: var(--muted); margin-left: auto; font-size: 12px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.guest-btn { display: none; border: 1px solid rgba(255,255,255,.2); color: #fff; }   /* гость на телефоне: значок «вход / регистрация» вместо двух кнопок */
.guest-btn:hover { text-decoration: none; }
/* переключатель языка в шапке: флажок другой версии + EN/RU (на телефоне — только флажок) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.lang-switch:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.lang-switch img, .drawer-lang img, .foot-lang img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-accent { background: var(--accent); color: #04281c; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-soft { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.btn-block { width: 100%; }

.ticker { background: var(--surface); border-bottom: 1px solid var(--border); }
.ticker-in { max-width: 1360px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.ticker-tag { flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }

/* ── Каркас ──────────────────────────────────────── */
.shell { max-width: 1360px; margin: 0 auto; padding: 20px 16px 40px; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.page-grid.page-grid-1 { grid-template-columns: minmax(0, 1fr); }
.col-main, .col-side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.two-col > * { min-width: 0; }   /* длинные подписи (en) не растягивают колонку шире экрана */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head { margin: 4px 2px 12px; }
.more { font-size: 13px; font-weight: 600; }

/* ── Боковое меню ────────────────────────────────── */
.sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.side-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 8px; }
.side-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px 8px; }
.side-link, .country summary { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.side-link small, .country summary small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.side-link:hover, .country summary:hover { background: var(--surface-3); text-decoration: none; }
.side-link.on, .side-sub.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.country summary { list-style: none; }
.country summary::-webkit-details-marker { display: none; }
.country[open] summary { font-weight: 700; }
.side-sub { display: block; padding: 6px 8px 6px 34px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.side-sub:hover { background: var(--surface-3); text-decoration: none; }
.cup-dot { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #1d4ed8 20% 100%); flex: none; }
.flag { display: inline-block; flex: none; width: 16px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.flag-sprite { height: 11px; background-image: url(/images/map16.png?1); background-repeat: no-repeat; }
.drawer-head, .drawer-nav { display: none; }

/* ── Главная ─────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; background:
  radial-gradient(600px 220px at 100% 0, rgba(16,185,129,.16), transparent 70%), linear-gradient(135deg, var(--surface), var(--surface-2)); }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero p { color: var(--text-2); margin: 10px 0 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; margin: 0; }
.kpis > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; min-width: 120px;
  display: flex; flex-direction: column; justify-content: space-between; }   /* подпись сверху, число — внизу: числа в ряд, даже если подпись в две строки */
.kpis dt { font-size: 12px; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpis-row { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; }
.kpis-row > div { min-width: 0; background: var(--surface-2); }

.day-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 0 6px; border-bottom: 1px solid var(--border); }
.day-title:first-of-type { padding-top: 2px; }
.league-row { padding: 10px 0 4px; }
.league-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.match { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; }
.match:hover { background: var(--row-hover); }
.match.result { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 28px; }
.m-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 13px; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team:hover { text-decoration: none; color: var(--link); }
.m-home { justify-content: flex-end; text-align: right; }
.m-team.won { font-weight: 700; }
.vs { color: var(--faint); text-align: center; width: 20px; }
.score { text-align: center; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.15; }
.score b { font-size: 15px; background: var(--surface-3); border-radius: 6px; padding: 2px 0; }
.score small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.m-probs { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700; }
.m-probs span { filter: blur(.4px); opacity: .7; }
.m-probs:hover { text-decoration: none; color: var(--accent-ink); background: var(--accent-soft); }
/* с полным доступом — вероятности П1 / Х / П2, самая высокая выделена */
.m-odds { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px; border-radius: 999px; background: var(--surface-3);
  font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.m-odds b { min-width: 30px; padding: 1px 4px; border-radius: 999px; text-align: center; font-weight: 700; }
.m-odds b.top { background: var(--accent-soft); color: var(--accent-ink); }
.m-odds:hover { text-decoration: none; background: var(--accent-soft); }
.logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.logo.logo-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.logo-empty { display: inline-block; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); }

.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.leader-card { padding: 14px 16px; color: var(--text); transition: transform .15s, box-shadow .15s; }
.leader-card:hover { text-decoration: none; transform: translateY(-2px); }
.leader-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.leader-head span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini td { padding: 5px 0; border-top: 1px solid var(--border); }
.mini .pos { width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .num { text-align: right; width: 30px; font-variant-numeric: tabular-nums; }
.mini .pts { font-weight: 800; }

/* Прогнозы экспертов на главной (как блок прогнозов старого сайта): белая карточка, сквозь неё еле проступает случайное
   фото images/fon_prognoz/N.gif (--tipbg в разметке, видимость 20% — в старом было 10%); эмблемы в белых кружках,
   посередине время матча, названия команд — на зелёных плашках */
.htip { display: block; margin: 0 0 10px; border-radius: 14px; overflow: hidden; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.htip:last-child { margin-bottom: 0; }
.htip:hover { text-decoration: none; transform: translateY(-1px); border-color: #15803d; box-shadow: 0 8px 20px -10px rgba(20,83,45,.45); }
.htip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.htip-head { display: block; padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: #fff;
  background: #14532d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htip-pitch { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start;
  gap: 6px; padding: 14px 8px 12px; background: var(--surface); }
.htip-pitch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tipbg, none) center / cover no-repeat; opacity: .2; }
.htip-team { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; }
.htip-team b { display: block; max-width: 100%; padding: 3px 8px; border-radius: 6px; background: rgba(12,56,4,.82); color: #fff;
  font-size: 12.5px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.logo.htip-logo { box-sizing: border-box; width: 48px; height: 48px; padding: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.22); }
.logo.htip-logo.logo-empty { display: block; }
.htip-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; margin-top: 10px; padding: 5px 8px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border); line-height: 1.15; color: var(--text); }
.htip-mid b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.htip-mid small { font-size: 11px; color: var(--muted); }
.promo { background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff; border: 0; }
.promo h3 { color: #fff; text-transform: none; letter-spacing: -.01em; font-size: 17px; margin: 8px 0 10px; }
.promo ul { margin: 0 0 16px; padding-left: 18px; color: rgba(255,255,255,.82); font-size: 14px; }
.promo li { margin: 4px 0; }
.promo-badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(52,211,153,.2); color: #6ee7b7; padding: 3px 8px; border-radius: 6px; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.news li:first-child { border-top: 0; }
.news a { color: var(--text); }

/* ── Страница чемпионата ─────────────────────────── */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.league-head { padding: 20px 22px; }
.league-title { display: flex; align-items: center; gap: 14px; }
.league-title h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.league-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.flag-lg { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-3); flex: none; }
.flag-lg .flag { width: 32px; height: 24px; border-radius: 4px; }
.flag-lg .flag-sprite { width: 16px; height: 11px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--surface-3); color: var(--muted); padding: 1px 6px; border-radius: 5px; margin-left: 4px; }
.season-select { margin-left: auto; }
.season-select select { appearance: none; height: 38px; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.chip:hover { text-decoration: none; border-color: var(--border-strong); }
.chip.on { background: var(--text); color: var(--surface); }

.tabs { position: sticky; top: 60px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); padding: 6px 0; margin: -6px 0; }
.tabs a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.tabs a:hover { background: var(--surface-3); text-decoration: none; }
.tabs a.on { background: var(--text); color: var(--surface); }
section[id] { scroll-margin-top: 120px; }

.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; }
.seg-wrap { flex-wrap: wrap; margin-bottom: 10px; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 10px 28px; align-items: start; }
.groups-grid .grp { min-width: 0; }
.groups-grid .legend { margin-top: 6px; }
.groups-grid .grp-legend { grid-column: 1 / -1; }
@media (max-width: 720px) { .groups-grid { grid-template-columns: 1fr; } }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.tbl-wrap { position: relative; overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 0 6px; height: 40px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--row-hover); }
.tbl .num { text-align: center; width: 40px; }
.tbl .goals { width: 64px; }
.tbl .pts { width: 44px; }
.tbl .pts b { font-weight: 800; }
.tbl .pos { width: 40px; }
.tbl td.pos span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.tbl .team a { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.tbl .team a:hover { color: var(--link); text-decoration: none; }
.tbl .team span { overflow: hidden; text-overflow: ellipsis; }
.pos-diff { color: var(--draw); }
.neg-diff { color: var(--loss); }
.tbl tr.z td.pos span { color: #fff; }
.z1 td.pos span, .legend .z1 i { background: var(--z1); }
.z2 td.pos span, .legend .z2 i { background: var(--z2); }
.z3 td.pos span, .legend .z3 i { background: var(--z3); }
.z4 td.pos span, .legend .z4 i { background: var(--z4); }
.z5 td.pos span, .legend .z5 i, .z6 td.pos span, .legend .z6 i { background: var(--z5); }
.z11 td.pos span, .legend .z11 i { background: var(--z11); }
.z12 td.pos span, .legend .z12 i { background: var(--z12); }
.z13 td.pos span, .legend .z13 i { background: var(--z13); }
.legend { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.form-col { width: 150px; }
.form { display: inline-flex; gap: 4px; }
.form i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; cursor: default; }
.f-w { background: var(--win); }
.f-d { background: var(--draw); }
.f-l { background: var(--loss); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.stat-grid h3:first-child { margin-top: 4px; }
.outcome-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 800; color: #fff; }
.outcome-bar span { display: grid; place-items: center; min-width: 34px; }
.o-home { background: var(--win); }
.o-draw { background: var(--faint); }
.o-away { background: var(--accent-ink); }
.outcome-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.outcome-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.facts > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 10px; margin: 7px 0; font-size: 13.5px; }
.bar-label { color: var(--text-2); font-weight: 600; }
.bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #0ea5e9); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; }
.score-chip { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.score-chip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.score-chip small { color: var(--muted); font-size: 12px; }

/* ── Страница команды ────────────────────────────── */
.logo.logo-lg { width: 40px; height: 40px; }
.logo.logo-xl { width: 64px; height: 64px; }
.team-logo-lg { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.team-logo-lg .logo-empty { width: 56px; height: 56px; }
.team-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.league-sub a { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.team-facts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.place-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.place-badge b { font-size: 18px; font-weight: 800; }
.place-badge:hover { text-decoration: none; filter: brightness(.97); }
.m-team.me { font-weight: 800; }
.series { list-style: none; margin: 0; padding: 0; }
.series li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.series li:first-child { border-top: 0; }
.series-n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.series-text { font-weight: 600; }
.series-text em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 7px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.series-sub { color: var(--muted); font-size: 13px; }
.locked { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--text-2); font-weight: 600; font-size: 14px; }
.locked:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.results { display: flex; flex-direction: column; }
.res { display: grid; grid-template-columns: 64px minmax(0, 1fr) 76px minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; border-top: 1px solid var(--border); }
.res:first-child { border-top: 0; }
.res:hover { background: var(--row-hover); }
.res-date { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.2; min-width: 0; }
.res-date small { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score.out-w b { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.score.out-d b { background: color-mix(in srgb, var(--draw) 16%, transparent); color: var(--draw); }
.score.out-l b { background: color-mix(in srgb, var(--loss) 14%, transparent); color: var(--loss); }
.score.fix-time b { font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.ev-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; padding: 0; }
.ev-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.i-ball { display: block; }
.avg td, .avg th { height: 34px; }
.avg td:first-child { padding-left: 12px; color: var(--text-2); }
.avg .avg-group th { background: var(--surface-2); color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; height: 30px; }
.avg .num { width: 90px; }
.standings tr.me-row td { background: var(--accent-soft); }
.standings tr.me-row .team a { color: var(--accent-ink); }

/* ── Вход и кабинет ──────────────────────────────── */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.auth-card h1, .cabinet h1 { font-size: 24px; font-weight: 800; }
.auth-card > .muted { margin: 6px 0 16px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; }
.field input:focus, .num-in:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 1px; border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, .bf-item input[type=checkbox], .radio-seg input { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { margin: -4px 0 4px; font-size: 12.5px; color: var(--muted); }
.hint.pay-hint { margin: 14px 0 0; line-height: 1.5; }   /* под кнопкой «Перейти на WebMoney» — с отступом */
.alert { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.auth-side h2 { margin-bottom: 10px; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cab-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cab-out { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #0ea5e9); color: #fff; font-weight: 800; font-size: 22px; flex: none; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; }
.access { padding: 12px 14px; border-radius: 12px; font-size: 15px; margin-bottom: 14px; }
.access-on { background: var(--accent-soft); color: var(--accent-ink); }
.access-off { background: var(--surface-3); }
.cab-facts { margin-bottom: 8px; }
.cab-facts dd { font-size: 15px; word-break: break-all; }
.cab-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 14px; border: 1px solid rgba(255,255,255,.2); }
.user-chip .user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* длинный логин не распирает шапку */
.user-chip:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.pro-tag { font-size: 10px; font-weight: 800; letter-spacing: .05em; background: var(--accent); color: #04281c; padding: 2px 6px; border-radius: 6px; }

/* ── Матчи с вероятностями ───────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fav-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 700; font-size: 14px; }
.fav-link:hover, .fav-link.on { text-decoration: none; border-color: #f59e0b; color: #b45309; }
.bet-filter { display: flex; flex-direction: column; gap: 14px; }
.bf-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bf-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.radio-seg { display: inline-flex; flex-wrap: wrap; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.radio-seg label { position: relative; cursor: pointer; }
.radio-seg input { position: absolute; opacity: 0; pointer-events: none; }
.radio-seg span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.radio-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.radio-seg input:focus-visible + span { outline: 2px solid var(--accent); }
.bf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bf-group { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.bf-group legend { padding: 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.bf-item { display: grid; grid-template-columns: 18px 1fr 76px; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.num-in { width: 100%; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.bf-item:has(input[type=checkbox]:checked) span { color: var(--accent-ink); }
.bf-item:has(input[type=checkbox]:checked) .num-in { border-color: var(--accent); background: var(--accent-soft); }
.bf-flags { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.bf-champs { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.bf-champs summary { cursor: pointer; font-weight: 600; }
.bf-champ-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.bf-champ-list { columns: 4 220px; column-gap: 20px; }
.bf-country { break-inside: avoid; margin-bottom: 12px; }
.bf-country-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.bf-country .check { display: flex; font-size: 13.5px; padding: 2px 0 2px 4px; }
.bf-country small { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.bf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.champ-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.preview-link { display: inline-block; font-size: 13.5px; font-weight: 600; margin: -4px 0 10px; }
.acc { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); }
.acc summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.acc[open] summary { margin-bottom: 8px; }
.acc-tbl td, .acc-tbl th { height: 32px; font-size: 13px; }
.acc-tbl .num { width: 90px; }
.acc-tbl .won { color: var(--win); font-weight: 700; }
.acc-tbl .lost { color: var(--loss); font-weight: 700; }
.acc-toggle { border: 0; background: none; padding: 0; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline dotted; }
.acc-sub td { color: var(--muted); background: var(--surface); }
.acc-sub td:first-child { padding-left: 22px; }
.bet-tbl { font-size: 13.5px; }
.bet-tbl th { text-align: center; }
.bet-tbl th.bt-match { text-align: left; }
.bet-tbl td { height: auto; padding: 6px 4px; vertical-align: middle; }
.bt-time { width: 64px; text-align: left !important; }
.bt-time b { display: block; font-variant-numeric: tabular-nums; }
.bt-time small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.bt-match { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 170px; max-width: 220px; }
.bt-match a { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; line-height: 1.5; }
.bt-match a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-match .logo { width: 16px; height: 16px; }
.bt-cell { text-align: center; min-width: 58px; border-radius: 0; }
.bt-cell b { font-variant-numeric: tabular-nums; font-weight: 700; }
.bt-cell small { color: var(--muted); font-size: 11.5px; }
.bt-cell .prob { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.bt-cell .bkp { display: block; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bt-cell.gray b { color: var(--faint); font-weight: 600; }
.bt-cell .nil, .bt-tot .nil { color: var(--faint); font-weight: 400; }
.bet-tbl td.hit { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.bet-tbl td.hit .prob { color: var(--accent-ink); }
.bet-tbl td.max { box-shadow: inset 0 0 0 2px #f59e0b; }
.bet-tbl tbody tr:hover td.hit { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.bt-tot { text-align: center; color: var(--text-2); }
.arr { font-style: normal; font-size: 9px; margin-left: 2px; vertical-align: 1px; }
.arr.up { color: var(--draw); }
.arr.down { color: var(--loss); }
.bt-star { width: 34px; text-align: center; }
.star { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--faint); cursor: pointer; padding: 4px; }
.star:hover, .star.on { color: #f59e0b; }
.bet-tbl tr.st-live .bt-time b, .bet-tbl tr.st-live .bt-time small { color: var(--loss); }
.bet-tbl tr.st-past td { opacity: .55; }

/* Карточка матча под строкой (bet-panel.php, старый onlinemn.php): кнопка ▾ слева от времени */
.bet-tbl .bt-time { width: 92px; }
.bet-tbl td.bt-time { position: relative; padding-left: 32px; cursor: pointer; }
.bt-more { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
.bt-more::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg); transition: transform .15s ease; }
.bt-more[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.bt-more:hover, .bt-more[aria-expanded="true"] { color: var(--accent-ink); border-color: var(--accent); }
.bt-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bet-tbl tr.open > td { background: var(--row-hover); }
.bet-tbl tr.bt-panel > td { padding: 0; background: var(--surface-2); height: auto; }
.bet-tbl tr.bt-panel:hover > td { background: var(--surface-2); }
.mp { position: sticky; left: 0; box-sizing: border-box; max-width: min(100%, calc(100vw - 24px)); display: grid; gap: 12px; padding: 14px;
  text-align: left; white-space: normal; }
.mp-msg { padding: 14px; color: var(--muted); }
.mp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.mp-box { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.mp-box h4 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mp-tbl th { padding: 3px 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.mp-tbl td { padding: 4px 5px; text-align: center; border-top: 1px solid var(--border); }
.mp-tbl .mp-line { text-align: left; white-space: nowrap; color: var(--text-2); }
.mp-tbl .mp-tn { text-align: left; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-stand td.mp-tn a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.pbar { display: inline-block; min-width: 42px; padding: 1px 6px; border-radius: 6px; font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent) var(--p), var(--surface-2) var(--p)); }
.pbar.mid { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 36%, transparent) var(--p), var(--surface-2) var(--p)); }
.pbar.hi { color: var(--accent-ink); font-weight: 800;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, transparent) var(--p), var(--surface-2) var(--p)); }
.mp-games { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.mp-games li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border); }
.mp-games li:first-child { border-top: 0; }
.mp-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-teams { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-teams .own { font-weight: 700; }
.mp-pos { color: var(--muted); font-size: 12px; }
.mp-score { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-score b { font-weight: 800; }
.mp-score small { color: var(--muted); font-size: 12px; }
.mp-score .out-w { color: var(--win); }
.mp-score .out-d { color: var(--draw); }
.mp-score .out-l { color: var(--loss); }
.mp-series li { padding: 6px 0; }

/* Термометр сезона (statm.php, старый statmtermon.php): кружки по матчам; колонка команды при прокрутке остаётся на месте */
.thermo-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 8px; font-size: 13px; min-height: 22px; }
.thermo-info-bottom { margin: 10px 0 0; }
.thermo-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); }
.thermo-legend .th-dot { margin-right: -4px; }
.thermo-text { color: var(--muted); font-variant-numeric: tabular-nums; }
.thermo-text.on { color: var(--text); font-weight: 700; }
.thermo-group { margin: 12px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.th-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; vertical-align: middle; }
.th-w { background: var(--win); } .th-d { background: var(--draw); } .th-l { background: var(--loss); }
.th-f { background: color-mix(in srgb, var(--muted) 35%, var(--surface)); }
.th-row { display: inline-flex; gap: 3px; padding: 2px 0; }
.th-row .th-dot { cursor: pointer; transition: transform .1s ease; }
.th-row .th-dot:hover, .th-row .th-dot.sel { transform: scale(1.45); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text); }
.thermo-tbl td.th-dots { white-space: nowrap; padding-right: 12px; }
.thermo-tbl .th-dots-h { text-align: left; }
.thermo-tbl td.team, .thermo-tbl th.team { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.thermo-tbl tbody tr:hover td.team { background: var(--row-hover); }

/* «Самые, самые, самые…» (statm.php) */
.samye-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.samye-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.samye-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.samye-card ul, .samye-rec { list-style: none; margin: 0; padding: 0; }
.samye-card li, .samye-rec li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.samye-card li:first-child, .samye-rec li:first-child { border-top: 0; }
.samye-scope { color: var(--muted); font-size: 12.5px; }
.samye-teams { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.samye-teams a { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: var(--text); font-weight: 600; }
.samye-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.samye-val small { color: var(--muted); font-weight: 500; }
.samye-sub { margin: 16px 0 6px; font-size: 15px; }
.samye-rec li { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto; }
@media (max-width: 560px) { .samye-rec li { grid-template-columns: 1fr auto; } .samye-rec .samye-scope { grid-column: 1 / -1; } }

/* Генератор индивидуальной статистики (statm-gen.php, старый statmgen.php) */
.gen-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.gen-fs:disabled { opacity: .55; }
.gen-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.gen-group { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.gen-group legend { padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.gen-cols { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.gen-col { display: grid; gap: 2px; align-content: start; }
.gen-col .check { font-size: 13.5px; white-space: nowrap; }
.gen-help { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.gen-help summary { cursor: pointer; color: var(--muted); }
.gen-help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.gen-res-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.gen-hl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.gen-hl select { height: 32px; max-width: 180px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.gen-gtitle { margin: 18px 0 8px; font-size: 15px; }
.gen-gtitle small { font-weight: 500; font-size: 12.5px; }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; align-items: start; }
.gen-tbl { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; overflow-x: auto; }
.gen-tbl > summary { padding: 9px 12px; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.gen-tbl > summary::-webkit-details-marker { display: none; }
.gen-tbl > summary::after { content: ""; width: 7px; height: 7px; margin-top: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; flex: none; }
.gen-tbl[open] > summary::after { transform: rotate(225deg); margin-top: 8px; }
.gen-table { width: 100%; font-size: 13px; background: var(--surface); border-radius: 0 0 12px 12px; }
.gen-table th, .gen-table td { padding: 4px 6px; }
.gen-table .gen-team { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-plus { color: var(--draw); } .gen-minus { color: var(--loss); }
.gen-table tr.gen-hl1 td { background: color-mix(in srgb, var(--draw) 18%, var(--surface)); }
.gen-table tr.gen-hl2 td { background: color-mix(in srgb, var(--loss) 15%, var(--surface)); }

/* «Статистика прогнозов» (statp.php): исход по счёту — синий сыграла, красный нет, зелёный возврат (как statpn.php);
   ячейки, попавшие под фильтр, — рамкой */
/* Окно «Расписание команды в турнире» (еврокубки, uteam.php) */
.ut-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.ut-head b { display: block; font-size: 18px; line-height: 1.2; }
.ut-head small { color: var(--muted); font-size: 13px; }
.ut-list li { grid-template-columns: 70px minmax(0, 1fr) auto; }
.ut-list .mp-date { display: flex; flex-direction: column; line-height: 1.2; }
.ut-list .mp-date small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-teams { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ut-list .mp-score { align-items: center; }
.ut-list .m-odds { font-size: 11px; }
.ut-foot { margin: 14px 0 0; text-align: right; }
[data-uteam] { cursor: pointer; }
.head-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eu-pstat { margin-top: 14px; border-top: 1px dashed var(--border-strong); padding-top: 10px; }
.eu-pstat > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--link); }
.eu-pstat[open] > summary { margin-bottom: 10px; }
.eu-pstat .sp-legend { margin: 0 0 10px; }
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; }
.res-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.res-chip.res-w, .sp-tbl td.res-w { background: color-mix(in srgb, var(--win) 15%, var(--surface)); }
.res-chip.res-l, .sp-tbl td.res-l { background: color-mix(in srgb, var(--loss) 13%, var(--surface)); }
.res-chip.res-r, .sp-tbl td.res-r { background: color-mix(in srgb, var(--draw) 16%, var(--surface)); }
.res-chip.res-w { color: var(--win); } .res-chip.res-l { color: var(--loss); } .res-chip.res-r { color: var(--draw); }
.sp-tbl td.res-w .prob { color: var(--win); } .sp-tbl td.res-l .prob { color: var(--loss); } .sp-tbl td.res-r .prob { color: var(--draw); }
.sp-tbl td.hit { box-shadow: inset 0 0 0 2px var(--accent); }
.sp-tbl tbody tr:hover td.res-w { background: color-mix(in srgb, var(--win) 22%, var(--surface)); }
.sp-tbl tbody tr:hover td.res-l { background: color-mix(in srgb, var(--loss) 19%, var(--surface)); }
.sp-tbl tbody tr:hover td.res-r { background: color-mix(in srgb, var(--draw) 22%, var(--surface)); }
.sp-score { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-score b { display: block; font-size: 15px; font-weight: 800; }
.sp-score small { color: var(--muted); font-size: 11.5px; }
.sp-dates { display: inline-flex; gap: 6px; align-items: center; }
.sp-dates input, .sp-dates select { height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.sp-dates :disabled, .bet-filter fieldset:disabled { opacity: .55; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span, .pager button { font: inherit; cursor: pointer; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text-2); }
.pager span.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.pager a:hover, .pager button:hover { text-decoration: none; border-color: var(--accent); }
.pager span.on, .pager span.gap { cursor: default; }
/* биржи ссылок (LinkAds) в подвале: мелкой строкой по центру, как на старом сайте */
.link-ads { max-width: 1200px; margin: 0 auto; padding: 0 20px 18px; text-align: center; font-size: 12px; color: var(--muted); }
.link-ads a { color: var(--muted); }
.bots-pager { justify-content: flex-start; margin-top: 12px; }
.bots-pager .gap { font-weight: 400; font-size: 13px; padding-left: 6px; }
.bet-legend { border-top: 0; margin: 0; padding: 0; }
.bet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-hit, .lg-max { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.lg-hit { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.lg-max { box-shadow: inset 0 0 0 2px #f59e0b; }
.locked-hero h1 { font-size: 26px; font-weight: 800; margin: 10px 0 8px; }
.locked-hero p { color: var(--text-2); max-width: 680px; margin: 0 0 16px; }
.lock-badge { background: var(--accent-soft); color: var(--accent-ink); }
.demo td.bt-cell b, .demo td.bt-cell .prob { filter: blur(4px); user-select: none; }
.blur-line { display: block; height: 10px; width: 120px; margin: 4px 0; border-radius: 6px; background: var(--surface-3); }
.blur-line.short { width: 90px; }
.empty-card { text-align: center; }

/* ── Прогнозы экспертов ──────────────────────────── */
.logo.logo-md { width: 28px; height: 28px; }
.filter-chips { margin: 0; }
.tip-card { display: flex; flex-direction: column; gap: 10px; }
.tip-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.date-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; }
.date-chip:hover { text-decoration: none; filter: brightness(.97); }
.tip-champ { color: var(--muted); font-weight: 600; }
.tip-match { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text); font-size: 18px; }
.tip-match:hover { text-decoration: none; }
.tip-match:hover b { color: var(--link); }
.tm-team { display: inline-flex; align-items: center; gap: 8px; }
.tm-team b { font-weight: 800; letter-spacing: -.01em; }
.tm-vs { color: var(--faint); }
.tip-preview { font-weight: 800; }
.tip-anons { margin: 0; color: var(--text-2); font-size: 14.5px; }
.tip-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--border); }
.tip-author { font-weight: 700; color: var(--text-2); }
.tip-author::before { content: "✎ "; color: var(--faint); }
.tip-more { margin-left: auto; }
.votes-mini { display: inline-flex; gap: 10px; font-weight: 700; }
.vy { color: var(--draw); }
.vn { color: var(--loss); }
.pager .gap { border: 0; background: none; min-width: 20px; }
.date-chips { margin: 0; }
.tips-filter { display: flex; flex-direction: column; gap: 12px; }
.tips-filter .chips { margin: 0; }
.tf-row { display: flex; align-items: baseline; gap: 12px; }
.tf-row > .bf-label { flex: none; width: 128px; }
.ser-filter .tf-row > .bf-label { width: 152px; }   /* «С исключениями» в одну строку */
.tf-row .chip { font-size: 12.5px; padding: 4px 10px; }
.tf-select { display: none; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; min-width: 0; max-width: 100%; }
.link-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.link-list li { border-top: 1px solid var(--border); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: block; padding: 7px 2px; color: var(--text); }
.link-list a.on { color: var(--accent-ink); font-weight: 700; }
.link-list small { display: block; color: var(--muted); font-size: 12px; }
.tip-article h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 8px; }
.tip-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0 10px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.tip-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text); font-size: 17px; }
.tip-team:hover { text-decoration: none; color: var(--link); }
.tip-vs { font-size: 22px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tip-by { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.tip-by a { font-weight: 700; }
.tip-text { font-size: 16px; line-height: 1.65; color: var(--text); }
.tip-text h2, .tip-text h3 { font-size: 18px; margin: 18px 0 6px; }
.tip-text b, .tip-text strong { font-weight: 700; }
.votes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; cursor: pointer; }
.vote-btn.vy.on, .vote-btn.vy:hover { border-color: var(--draw); background: color-mix(in srgb, var(--draw) 12%, var(--surface)); }
.vote-btn.vn.on, .vote-btn.vn:hover { border-color: var(--loss); background: color-mix(in srgb, var(--loss) 10%, var(--surface)); }
.prob-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prob-cell { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.prob-cell span { font-size: 12px; font-weight: 700; color: var(--muted); }
.prob-cell b { font-size: 20px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.prob-cell small { color: var(--muted); font-size: 12px; }
.pre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pre-team { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.pre-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
.pre-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sib { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 14px; }
.sib:first-of-type { border-top: 0; }
.sib span { color: var(--text-2); }
.comment { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.comment p { margin: 4px 0 0; color: var(--text-2); }

/* ── Конкурсы прогнозов ──────────────────────────── */
.konk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.konk-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.konk-card:hover { text-decoration: none; border-color: var(--accent); }
.konk-card h2 { font-size: 18px; }
.kc-status { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.kc-status.on { background: var(--accent-soft); color: var(--accent-ink); }
.kc-meta { font-size: 14px; color: var(--text-2); }
.kc-desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.alert-ok { background: var(--accent-soft); color: var(--accent-ink); }
.konk-me { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 6px; }
.bet-form { margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.bet-form h3 { margin-top: 0; }
.bf-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.field select { height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; min-width: 0; max-width: 100%; }   /* длинный пункт не распирает форму на телефоне */
.k-offers:not(:empty) { margin: 14px 0; }
.offer-group { margin-bottom: 12px; }
.offer-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.offer-list { display: flex; flex-wrap: wrap; gap: 6px; }
.offer { position: relative; display: inline-flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 13px; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer span { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.offer b { font-size: 15px; font-variant-numeric: tabular-nums; }
.offer:hover { border-color: var(--accent); }
.offer:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.offer:has(input:focus-visible) { outline: 2px solid var(--accent); }
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.k-submit { margin-top: 6px; }
.kbets td { height: auto; padding: 8px 6px; }
.kb-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kb-time small, .kb-match small { display: block; color: var(--muted); font-size: 11.5px; }
.kb-match { white-space: normal !important; min-width: 180px; }
.kres { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.kres-win { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.kres-lose { background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.kres-ret { background: color-mix(in srgb, var(--draw) 14%, transparent); color: var(--draw); }
.kres-wait { background: var(--surface-3); color: var(--muted); }
.k-dist { grid-template-columns: 120px 1fr 44px 100px; }
.kb-komm { font-style: italic; color: var(--text-2) !important; white-space: normal; }

/* ── Серии и live ────────────────────────────────── */
.series-tools { flex-wrap: wrap; gap: 10px; }
.ser-champ select { height: 36px; min-width: 220px; }
.ser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.ser-card { padding: 14px 16px; }
.ser-card h2 { font-size: 15px; margin: 0; }
.ser-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.ser-card > summary::-webkit-details-marker { display: none; }
.ser-card > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; flex: none; }
.ser-card[open] > summary { margin-bottom: 8px; }
.ser-card[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.ser-card > summary:hover h2 { color: var(--link); }
.ser-list { list-style: none; margin: 0; padding: 0; }
.ser-list li { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.ser-list li:first-child { border-top: 0; }
.ser-pos { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ser-team { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ser-team a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ser-team small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ser-n { min-width: 34px; text-align: center; padding: 3px 8px; border-radius: 8px; background: var(--surface-3); font-variant-numeric: tabular-nums; }
.ser-list li:first-child .ser-n { background: var(--accent-soft); color: var(--accent-ink); }
.ser-games { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 13px; }
.ser-game { padding: 3px 0; color: var(--text-2); }
.ser-game .date-chip { font-size: 11px; padding: 1px 7px; }
.ser-game a { color: inherit; }
.ser-game a b { color: var(--text); }
.ser-game a:hover, .ser-game a:hover b { color: var(--link); text-decoration: none; }
.live-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.live-bar a { margin-left: auto; font-weight: 600; }
.live-card .card-head { margin-bottom: 6px; }
.live-card h2 a { color: var(--text); }
.lv-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 64px minmax(0, 1fr) 70px; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; border-top: 1px solid var(--border); }
.lv-row:first-of-type { border-top: 0; }
.lv-time { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-live .lv-time { color: var(--loss); }
.lv-break-ico { display: none; vertical-align: -2px; }
.lv-live .lv-break::before { display: none; }   /* в перерыве без мигающей точки — матч стоит */
.lv-live .lv-time::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--loss); margin-right: 6px; vertical-align: 1px; animation: lvpulse 1.6s infinite; }
@keyframes lvpulse { 50% { opacity: .25; } }
.lv-live .score b { background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.lv-fin { color: var(--muted); }
.lv-extra { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.lv-row.lv-goal { animation: lvgoal 3s ease-out 2; }
@keyframes lvgoal { 0%, 60% { background: #fde68a; } 100% { background: transparent; } }

/* ── Окно матча ──────────────────────────────────── */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(5, 10, 20, .55); backdrop-filter: blur(2px); }
.modal-close { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.modal-close:hover { background: var(--surface-3); }
.modal-body { padding: 20px 22px 22px; overflow: auto; max-height: calc(100vh - 42px); }
.modal-loading { padding: 40px; text-align: center; color: var(--muted); }
.mm-champ { text-align: center; font-size: 13px; color: var(--muted); padding: 0 28px; }
.mm-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; margin: 14px 0 6px; }
.mm-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text); font-weight: 700; font-size: 15px; }
.mm-team:hover { text-decoration: none; color: var(--link); }
.mm-result { text-align: center; padding-top: 4px; }
.mm-result b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mm-result small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mm-sec { display: flex; justify-content: center; gap: 10px; align-items: center; margin: 16px 0 6px; padding: 6px; border-radius: 8px; background: var(--surface-3); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.mm-sec b { font-variant-numeric: tabular-nums; color: var(--text); }
.mm-none { text-align: center; color: var(--faint); font-size: 13px; padding: 4px; }
.ev { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev-min { text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-h, .ev-a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev-h { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.ev-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ev-who b { font-weight: 600; }
.ev-who small { color: var(--muted); font-size: 12px; }
.ev-sub .ev-who b { font-weight: 500; color: var(--text-2); }
.ev-ico { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--text); }
.ev-ico small { font-size: 11px; color: var(--muted); }
.ev-ico .og { color: var(--loss); }
.ev-ico .miss { opacity: .45; }
.i-sub { color: var(--muted); }
.card-y, .card-r, .card-yr { display: inline-block; width: 11px; height: 15px; border-radius: 2px; }
.card-y { background: #facc15; }
.card-r { background: #ef4444; }
.card-yr { background: linear-gradient(135deg, #facc15 50%, #ef4444 50%); }
.mm-stats { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.st-row { display: grid; grid-template-columns: 48px 1fr 48px; row-gap: 4px; align-items: center; font-size: 13.5px; }
.st-row span { text-align: center; color: var(--text-2); }
.st-row b:last-of-type { text-align: right; }
.st-row b { font-variant-numeric: tabular-nums; }
.st-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--loss) 55%, var(--surface-3)); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--win); }

.stub { text-align: center; padding: 48px 24px; }
.stub h1 { font-size: 24px; margin-bottom: 10px; }
.stub p { color: var(--text-2); }
.gone-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-in { max-width: 1360px; margin: 0 auto; padding: 22px 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer p { margin: 4px 0 0; }
.counters { display: flex; gap: 8px; margin-top: 12px; }   /* LiveInternet и Mail.ru, кнопки 88×31 */
.counters img { display: block; }
.footer .brand-text { color: var(--text); font-size: 17px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer nav a { color: var(--text-2); }
.foot-lang { display: inline-flex; gap: 14px; align-items: center; }
.foot-lang a, .foot-lang b { display: inline-flex; align-items: center; gap: 6px; }
.foot-lang b { color: var(--text); font-weight: 600; }

.only-mobile { display: none; }

/* ── Адаптив ─────────────────────────────────────── */
@media (max-width: 1400px) {
  .btn-reg { display: none; }
  .search { flex-basis: 240px; }
}
@media (max-width: 1280px) {
  .mainnav a { padding: 7px 8px; }
  .page-grid { grid-template-columns: 1fr; }
  .col-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  /* верхнее меню должно помещаться целиком до 1101px: справа — флажок без «EN», значок пользователя без логина, поиск уже */
  .lang-switch span, .user-chip .user-name { display: none; }
  .user-chip { padding: 4px; gap: 6px; }
  .user-chip .pro-tag { margin-right: 4px; }
}
/* шапка с верхним меню (шире 1100px): меню не сжимается и не обрезается — место отдаёт поиск (от 150 до 280px) */
@media (min-width: 1101px) {
  .mainnav { flex: 0 0 auto; }
  .search { flex: 1 1 240px; min-width: 150px; max-width: 280px; }
}
@media (max-width: 1100px) {
  .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* верхнее меню скрыто — сразу кнопка ☰ и выезжающее меню (раньше с 960px: на 961–1100 разделов было не открыть) */
  .only-mobile { display: inline-grid; }
  .shell { grid-template-columns: 1fr; padding-top: 14px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; width: min(320px, 86vw); max-height: none; height: 100%; z-index: 50; background: var(--bg); padding: 12px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
  .drawer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .drawer-nav a { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: var(--text); font-weight: 600; font-size: 14px; }
  .drawer-nav a.drawer-lang { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
  .drawer-backdrop:not([hidden]) { position: fixed; inset: 0; background: rgba(5, 10, 20, .5); z-index: 45; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-row { flex-direction: column; gap: 6px; align-items: stretch; }
  .tf-row > * { min-width: 0; max-width: 100%; }   /* ленты чипсов прокручиваются внутри карточки, а не растягивают страницу (iPhone) */
  .lv-row { grid-template-columns: 48px minmax(0, 1fr) 48px minmax(0, 1fr); font-size: 13px; gap: 6px; }
  .lv-time { white-space: normal; font-size: 11.5px; line-height: 1.15; overflow-wrap: anywhere; }   /* «Финал, пен.», «Перенесён» — в две строки */
  .lv-break-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* слово — для экранных чтилок */
  .lv-break-ico { display: inline-block; width: 16px; height: 16px; }
  .lv-extra { display: none; }
  .ser-champ select { min-width: 0; width: 100%; }
  .bf-steps { grid-template-columns: 1fr; }
  .k-dist { grid-template-columns: 90px 1fr 40px; }
  .k-dist .kres { display: none; }
  .pre-grid { grid-template-columns: 1fr; }
  .tip-match { font-size: 16px; }
  .tip-article h1 { font-size: 19px; }
  .hide-sm { display: none !important; }
  .guest-btn { display: inline-grid; }
  .user-chip { padding: 4px; gap: 6px; }   /* имя скрыто — аватар по центру рамки */
  .user-chip .pro-tag { margin-right: 4px; }
  .topbar-in { gap: 10px; }
  .search { flex: 1 1 auto; }
  .brand-text { font-size: 17px; }
  .brand-logo { height: 26px; } .brand-logo.ny { height: 31px; margin-top: -5px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 22px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis > div { min-width: 0; padding: 8px 10px; }
  .kpis dd { font-size: 18px; }
  .kpis-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 14px; border-radius: 12px; }
  .tbl-wrap { margin: 0 -14px; padding: 0 14px; }
  .league-title { flex-wrap: wrap; }
  /* ряды кнопок на телефоне: короткие (лиги страны, еврокубки, серии, новости) переносятся на новую строку,
     длинные фильтры прогнозов (даты, чемпионаты) — выпадающими списками */
  .chips { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 0; }
  .tips-filter:not(.ser-filter) .chips { display: none; }   /* прогнозы: длинные ряды дат и чемпионатов — выпадающими списками */
  .tf-select { display: block; width: 100%; }
  .scorers-tbl .sc-club, .scorers-tbl .sc-club-h { display: none; }   /* бомбардиры: на телефоне у клуба только эмблема */
  .tabs { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .chip { white-space: nowrap; }
  .league-title h1 { font-size: 21px; }
  .season-select { margin-left: 0; width: 100%; }
  .season-select select { width: 100%; }
  .leaders { grid-template-columns: 1fr; }
  .match { grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
  .m-probs { padding: 3px 6px; }
  .m-probs span { display: none; }
  .match:has(.m-odds) { grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .m-odds { gap: 0; padding: 1px 2px; font-size: 11px; }
  .m-odds b { min-width: 0; padding: 1px 3px; }
}
@media (max-width: 480px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bt-match { min-width: 130px; max-width: 150px; }
  .cab-head { flex-wrap: wrap; }
  .res { grid-template-columns: 44px minmax(0, 1fr) 60px minmax(0, 1fr) 26px; gap: 6px; font-size: 13px; }
  .res .logo { display: none; }
  .team-logo-lg { width: 64px; height: 64px; border-radius: 16px; }
  .logo.logo-xl { width: 48px; height: 48px; }
  .team-head h1 { font-size: 22px; }
  .topbar .brand-text { display: none; }
  .brand-logo { height: 23px; } .brand-logo.ny { height: 28px; margin-top: -5px; }
  /* узкий экран: поиск — кнопка-лупа, по нажатию поле раскрывается на всю ширину шапки (знак шире прежнего значка) */
  .search { flex: 0 0 38px; width: 38px; padding: 0; justify-content: center; margin-left: auto; }
  .search input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .search:focus-within { position: absolute; left: 12px; right: 12px; width: auto; z-index: 41; padding: 0 10px; justify-content: flex-start; background: var(--brand-2); border-color: rgba(255,255,255,.35); }
  .search:focus-within input { position: static; opacity: 1; cursor: text; }
  .search-pop { min-width: 0; }
  .hide-xs { display: none !important; }
  .match.result { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 26px; }
}
/* совсем узкие телефоны (360–400): в шапке меню, знак, лупа, флажок языка, тема, вход — чуть плотнее */
@media (max-width: 400px) {
  .topbar-in { gap: 4px; }
  .topbar .icon-btn { width: 34px; }
  .search { flex-basis: 34px; width: 34px; }
  .lang-switch { padding: 0 5px; }
  .topbar-actions { gap: 4px; }
}

/* ── Калькулятор «Система» (/system/) ── */
.sys-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin-bottom: 14px; }
.sys-field { display: flex; flex-direction: column; gap: 6px; }
.sys-field > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sys-of { padding-bottom: 8px; color: var(--muted); font-weight: 600; }
.sys-sum { width: 110px; height: 36px; }
.sys-big { font-size: 20px; line-height: 36px; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 36px; height: 100%; border: 0; background: var(--surface-3); color: var(--text); font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper b { min-width: 40px; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.sys-events td { vertical-align: middle; }
.sys-events .sys-k { width: 90px; }
.sys-events input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.sys-events tr.sys-fixed td.pos span { background: var(--accent); color: #fff; }
.sys-events tr.sys-l .sys-k { color: var(--loss); text-decoration: line-through; }
.sys-events tr.sys-r .sys-k { color: var(--muted); }
.sys-act { white-space: nowrap; text-align: right; }
.sys-actual { margin-bottom: 12px; font-size: 15px; }
.sys-actual b { font-size: 20px; }
.sys-res td small { font-weight: 600; margin-left: 4px; }
.sys-s { display: none; }
.sys-events + .hint, .tbl-wrap + .hint { margin-top: 8px; }
@media (max-width: 640px) {
  .sys-top { gap: 12px 16px; }
  .sys-events .pos { display: none; }
  .sys-events th, .sys-events td { padding-left: 4px; padding-right: 4px; }
  .sys-events .sys-k { width: 72px; }
  .sys-events .seg button { padding: 5px 8px; }
  .sys-events .sys-l { display: none; }
  .sys-events .sys-s { display: inline; }
  .sys-act .btn-sm { padding: 0 9px; }
}

/* ── Текстовые страницы (about, faq, contact, telegrambot, reklama) ── */
.prose { font-size: 15.5px; line-height: 1.65; }
.prose > * + * { margin-top: 12px; }
.prose h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 26px; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; text-transform: none; letter-spacing: normal; color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .lead { font-size: 17px; }
.prose .tbl-wrap { margin-top: 10px; }
.prose-tbl td { white-space: normal; }
.prose-tbl td.yes { color: var(--accent-ink); font-weight: 700; }
.price-tbl { max-width: 420px; }
.price-tbl td.num { white-space: nowrap; }
.prose .note { padding: 10px 12px; border-radius: 10px; background: var(--surface-3); font-size: 14.5px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 20px; font-size: 14px; font-weight: 600; }
#statch { display: block; scroll-margin-top: 80px; }
.bot-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.bot-features section { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.bot-features section > * + * { margin-top: 8px; }
.bot-cmds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.bot-cmds dt { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.faq details { border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 14px 4px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 4px 16px; line-height: 1.65; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-grid #form { scroll-margin-top: 80px; }
.mailboxes { list-style: none; padding: 0 !important; }
.mailboxes li + li { margin-top: 10px; }
.contact-form { display: grid; gap: 14px; }
.field textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; resize: vertical; min-height: 140px; }
.field textarea:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 1px; border-color: var(--accent); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Новости, отзывы, статистика чемпионатов, список чемпионатов ── */
.center { text-align: center; }
.seg a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.news-years { margin-top: 0; }
.news-list { display: grid; gap: 12px; }
.news-item time { display: block; font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.news-text { font-size: 15.5px; line-height: 1.6; }
.news-text p + p { margin-top: 10px; }
.ball-ico { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 30%, #9ca3af 31% 100%); vertical-align: -1px; }
.reviews { display: grid; gap: 12px; }
.review-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.review-meta { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review-meta b { color: var(--text-2); }
.review-wait { border-style: dashed; }
.tag.st-wait { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.tag.st-ok { background: var(--accent-soft); color: var(--accent-ink); }
.tag.st-home { background: color-mix(in srgb, var(--win) 15%, transparent); color: var(--win); }
.mod-form { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 6px; }
.btn.danger { color: var(--loss); }
.cs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; }
.cs-year { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cs-year select { height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; }
.cs-tabs { position: static; margin: 0; }
.cs-card { padding: 8px 0 12px; overflow: hidden; }
.cs-card .cs-wrap { margin: 0; padding: 0; }
.cs-card .hint { padding: 0 16px; margin-top: 8px; }
.cs-tbl th { white-space: normal; vertical-align: bottom; min-width: 56px; line-height: 1.25; }
.cs-tbl th a { color: inherit; }
.cs-tbl th.sorted, .cs-tbl td.sorted { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cs-tbl th.sorted a { color: var(--text); }
.cs-tbl .cs-name { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 210px; text-align: left; }
.cs-tbl td.cs-name a { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; white-space: nowrap; }
.cs-tbl tbody tr:hover td.cs-name { background: var(--row-hover); }
.champs-cups { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 12px 16px; font-size: 14px; }
.champs-filter input { width: 100%; max-width: 360px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.champs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.champs-country { padding: 14px 16px; }
.champs-country h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.champs-country h2 a { color: var(--text); }
.champs-country ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 640px) { .champs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .champs-country { padding: 12px; } .cs-tbl .cs-name { min-width: 150px; } .cs-tbl td.cs-name a span { white-space: normal; } }
.fnews { padding: 4px 20px; }
.fnews-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fnews-item:last-child { border-bottom: 0; }
.fnews-item h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.fnews-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fnews-item p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* ── Регистрация и личный раздел ── */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pass-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); margin: 14px 0 10px; }
.pass-box span { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.pass-box code { font: 700 22px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; color: var(--text); user-select: all; }
.reg-done .facts { margin-top: 12px; }
.cab-forms { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.cab-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cab-form .field { flex: 1 1 260px; }
.cab-pass { justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
#profile { scroll-margin-top: 80px; }

/* ── Оплата в личном разделе ── */
.pay { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.pay h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.pay-akc { color: var(--accent-ink); font-weight: 700; }
.pay-tbl { max-width: 560px; margin-top: 10px; }
.pay-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 16px 0 10px; }
.pay-way { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.pay-way h3 { font-size: 15px; font-weight: 800; }
.pay-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pay h2, .pay-way h3 { text-transform: none; letter-spacing: normal; color: var(--text); }

/* ── Мои средства (вывод) ── */
.money { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.money h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; text-transform: none; letter-spacing: normal; color: var(--text); }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.money-box { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.money-box { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.money-sum { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.money-facts { display: grid; gap: 4px; font-size: 13.5px; }
.money-facts div { display: flex; justify-content: space-between; gap: 10px; }
.money-facts dt { color: var(--muted); }
.money-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
/* кабинет: мои конкурсы прогнозов */
.konk-my-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.konk-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.konk-title a { color: var(--text); font-size: 15.5px; }
.konk-title a:hover { color: var(--link); text-decoration: none; }
.konk-state { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.konk-state.on { background: var(--accent-soft); color: var(--accent-ink); }
.konk-done { opacity: .7; }
.konk-done:hover { opacity: 1; }
.konk-bets { font-size: 13.5px; font-weight: 600; }
.money-form .field { flex: 1 1 170px; }

/* «Боты и блокировки» (/admin/bots/, только admin) */
.btn-danger { background: var(--loss); color: #fff; border-color: transparent; }
.btn-danger:hover { filter: brightness(1.08); text-decoration: none; }
.bots-help { margin: -4px 0 12px; line-height: 1.55; }
.bots-tbl td, .bots-tbl th { white-space: nowrap; }
.bots-ip small { display: block; color: var(--muted); font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bots-ip small.bots-cloud { color: #d97706; font-weight: 700; }
.bots-open { all: unset; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--link); }
.bots-open:hover { text-decoration: underline; }
.bots-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.bots-row { cursor: pointer; }
.bots-row:hover > td, .bots-row.is-open > td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.bots-who { max-width: 230px; }
.bots-who > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.bots-acts .btn-sm { padding: 0 9px; }
.bots-bad { color: var(--loss); font-weight: 700; }
.bots-v { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bots-v-bad { background: color-mix(in srgb, var(--loss) 14%, var(--surface)); color: var(--loss); }
.bots-v-mid { background: var(--surface-3); color: var(--text-2); }
.bots-v-ok { background: var(--accent-soft); color: var(--accent-ink); }
/* ячейка с кнопками остаётся табличной (display: flex на td ломал линию строки, если кнопок нет); кнопки — в ряд */
.bots-acts, .promo-acts { white-space: nowrap; vertical-align: middle; }
.bots-acts > *, .promo-acts > * { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
.bots-acts > :last-child, .promo-acts > :last-child { margin-right: 0; }
.bots-more td { background: var(--surface-2); }
.bots-detail { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 18px; white-space: normal; padding: 6px 0; }
.bots-sub { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 6px; }
.bots-hours { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.bots-hours i { flex: 1; min-width: 4px; background: var(--link); border-radius: 2px 2px 0 0; opacity: .75; }
.bots-dom { display: inline-block; margin: 0 6px 4px 0; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); font-size: 12.5px; }
.bots-ua { word-break: break-all; color: var(--text-2); }
.bots-last { font-size: 12.5px; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.bots-last td { padding: 2px 8px 2px 0; vertical-align: top; }
.bots-path { word-break: break-all; }
.bots-add { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.bots-add .field { flex: 1 1 220px; }
.bots-h3 { margin: 20px 0 8px; font-size: 15px; }
@media (max-width: 760px) { .bots-detail { grid-template-columns: 1fr; } }

/* объявление об акции под шапкой (Promo, /admin/promo/) */
.promo-bar { background: linear-gradient(90deg, #047857, #059669 45%, #10b981); color: #fff; }
.promo-bar-in { max-width: 1360px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.promo-bar-tag { flex: none; font-weight: 900; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: #fff; color: #047857; }
.promo-bar-text { min-width: 0; }
.promo-bar-text b { font-weight: 800; }
.promo-bar-until { white-space: nowrap; opacity: .9; }
.promo-bar-cta { flex: none; margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #fff; color: #065f46; font-weight: 800; font-size: 13px; white-space: nowrap; }
.promo-bar-cta:hover { text-decoration: none; filter: brightness(.96); }
.promo-bar-x { flex: none; all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; font-size: 20px; line-height: 1; color: rgba(255,255,255,.85); }
.promo-bar-x:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 640px) { .promo-bar-in { flex-wrap: wrap; gap: 6px 10px; font-size: 13px; } .promo-bar-text { flex: 1 1 200px; } .promo-bar-cta { margin-left: 0; } }
.promo-preview { border-radius: 10px; overflow: hidden; margin: 8px 0; }
.promo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.promo-f-title { grid-column: 1 / -1; }

/* новости сервиса: полоса-объявление (тёмно-синяя, чтобы отличалась от зелёной полосы акции), строка в кабинете, точка у кабинета */
.news-bar { background: linear-gradient(90deg, #1e3a8a, #2563eb); }
.news-bar .promo-bar-cta { color: #1e3a8a; }
.news-bar-tag { background: #fff; color: #1e3a8a; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.news-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #2563eb 10%, var(--surface)); color: var(--text); }
.news-note:hover { text-decoration: none; background: color-mix(in srgb, #2563eb 16%, var(--surface)); }
.news-note .news-bar-tag { flex: none; background: #2563eb; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 900; }
.user-chip.has-news { position: relative; }
.user-chip.has-news::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px var(--brand); }
.admin-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); font-size: 14px; }
.admin-links-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.news-form { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: end; }
.news-f-body, .news-f-act { grid-column: 1 / -1; }
.news-f-body textarea { width: 100%; }
.news-f-ann { align-self: center; }
@media (max-width: 640px) { .news-form { grid-template-columns: minmax(0, 1fr); } }
.nowrap { white-space: nowrap; }

/* iOS (iPhone, iPad): Safari увеличивает страницу при нажатии на поле со шрифтом меньше 16px — на iOS поля 16px.
   Правило @supports (-webkit-touch-callout) понимает только iOS Safari; щипковое масштабирование не трогаем. */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}
