/* ===== CSS VARIABLES — light theme, from submissions palette ===== */
:root {
  /* Backgrounds */
  --bg:     #f0f4f8;
  --bg2:    #ffffff;
  --card:   #ffffff;
  --card2:  #f8fafc;
  --card3:  #f1f5f9;

  /* Borders */
  --border:  #e2e8f0;
  --border2: #cbd5e1;

  /* Primary — зелёный из форм (#15803d) */
  --accent:      #15803d;
  --accent-light: #dcfce7;
  --accent-mid:  #bbf7d0;
  --accent-text: #14532d;

  /* Secondary — синий из форм (#0369a1) */
  --blue:        #0369a1;
  --blue-light:  #f0f9ff;
  --blue-border: #bae6fd;
  --blue-text:   #0c4a6e;

  /* Amber / gold — из форм (#d97706) */
  --gold:        #d97706;
  --gold-light:  #fef9c3;
  --gold-border: #fde68a;

  /* Red */
  --red:       #dc2626;
  --red-light: #fee2e2;

  /* Text */
  --text:   #0f172a;
  --text2:  #334155;
  --muted:  #64748b;
  --muted2: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);

  --font: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-text); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--accent);
  background: linear-gradient(135deg, #166534 0%, #15803d 60%, #0f766e 100%);
  box-shadow: 0 2px 8px rgba(21,128,61,.3);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 54px;
}
.site-logo {
  font-size: 1.05rem; font-weight: 700;
  color: #fff; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.01em;
}
.site-logo span { color: #bbf7d0; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  padding: 6px 13px; border-radius: 6px;
  font-size: 0.84rem; color: rgba(255,255,255,.8);
  transition: background .15s, color .15s;
  white-space: nowrap; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 700; }

/* ===== LAYOUT ===== */
.page { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }
.page-title {
  font-size: 1.35rem; font-weight: 800;
  color: var(--text); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.02em;
}
.page-title small { font-size: 0.82rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 11px 16px;
  background: var(--card2);
  border-bottom: 2px solid var(--accent);
  font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--accent-text);
  letter-spacing: .02em; text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(21,128,61,.3);
}
.btn-primary:hover { background: var(--accent-text); box-shadow: 0 2px 6px rgba(21,128,61,.4); }
.btn-ghost {
  background: #fff; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--card2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tab-btn {
  padding: 8px 18px; border-radius: 7px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border2);
  background: #fff; color: var(--muted);
  transition: all .15s;
}
.tab-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(21,128,61,.25);
}
.tab-btn:hover:not(.active) { background: var(--card2); color: var(--text2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== TOGGLE ===== */
.toggle-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; position: relative;
}
.toggle-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.toggle-group { display: flex; gap: 0; border: 1px solid var(--border2); border-radius: 7px; overflow: hidden; }
.toggle-btn {
  padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border: none; background: #fff; color: var(--muted);
  transition: all .15s; line-height: 1;
}
.toggle-btn:not(:last-child) { border-right: 1px solid var(--border2); }
.toggle-btn.active { background: var(--accent); color: #fff; }
.toggle-btn:hover:not(.active) { background: var(--card2); color: var(--text2); }

/* ===== TABLE ===== */
.tbl-wrap { overflow-x: auto; overflow-y: clip; }
.tbl {
  width: 100%; border-collapse: collapse;
  font-size: 0.87rem;
}
.tbl th {
  padding: 10px 12px;
  background: var(--blue);
  border-bottom: 2px solid var(--blue-text);
  color: #fff; font-weight: 700;
  text-align: left; white-space: nowrap;
}
.tbl th.text-center { text-align: center; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { background: var(--blue-text); }
.tbl th.sort-asc::after { content: ' ↑'; opacity: .8; }
.tbl th.sort-desc::after { content: ' ↓'; opacity: .8; }
.tbl td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text2);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--blue-light); }
.tbl tr.clickable { cursor: pointer; }

/* Ранги */
.rank { font-weight: 800; color: var(--muted2); width: 36px; text-align: center; }
.rank-1 { color: var(--gold); }
.rank-2 { color: var(--muted); }
.rank-3 { color: #92400e; }

/* Имя участника */
.player-name { font-weight: 700; color: var(--text); text-align: center; }
.prize-badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; padding: 1px 6px;
  border-radius: 10px; background: var(--gold-light);
  color: var(--gold); font-weight: 800; margin-left: 5px;
  border: 1px solid var(--gold-border);
}

/* Очки */
.pts-total { font-weight: 800; font-size: 1rem; color: var(--accent); }
.pts-num { font-weight: 700; color: var(--text2); }
.champ-yes { color: var(--gold); font-weight: 800; }
.champ-no { color: var(--muted2); }

/* ===== SCORE BADGE ===== */
.score-badge {
  display: inline-flex; gap: 4px; align-items: center;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 9px;
  font-weight: 700; font-size: 0.9rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--text2);
}
.score-badge .sep { color: var(--muted2); }
.score-badge.exact {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}
.score-badge.outcome-mid {
  background: var(--accent-light); border-color: var(--accent-mid);
  color: var(--accent-text);
}
.score-badge.outcome-ok {
  background: var(--gold-light); border-color: var(--gold-border);
  color: #92400e;
}
.score-badge.wrong { background: var(--red-light); border-color: #fca5a5; color: #b91c1c; }

/* ===== POINTS PILL ===== */
.pts-pill {
  display: inline-block; min-width: 28px; text-align: center;
  padding: 2px 7px; border-radius: 12px;
  font-weight: 800; font-size: 0.82rem;
}
.pts-pill-8 { background: var(--accent); color: #fff; }
.pts-pill-mid { background: var(--accent-light); color: var(--accent-text); border: 1px solid var(--accent-mid); }
.pts-pill-partial { background: var(--gold-light); color: #92400e; border: 1px solid var(--gold-border); }
.pts-pill-0 { background: var(--red-light); color: #b91c1c; border: 1px solid #fca5a5; }
.pts-pill-null { color: var(--muted2); }
.pts-pill-playoff { background: var(--accent-light); color: var(--accent-text); border: 1px solid var(--accent-mid); }
.pts-pill-playoff-wrong { background: var(--card3); color: var(--muted); border: 1px solid var(--border2); }

/* ===== GROUP GRID ===== */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.group-card { }
/* Card header with alternating group colours */
.card-header { border-left: 4px solid var(--accent); }

/* ===== MATCH ROW ===== */
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px; align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.match-row:last-child { border-bottom: none; }
.match-home { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.match-away { display: flex; align-items: center; gap: 5px; }
.match-score { text-align: center; font-weight: 700; white-space: nowrap; }
.score-inp {
  width: 38px; text-align: center;
  background: var(--card2); border: 1.5px solid var(--border2);
  border-radius: 5px; padding: 4px; color: var(--text);
  font-size: 0.95rem; font-weight: 700;
}
.score-inp:focus { outline: none; border-color: var(--accent); background: var(--accent-light); }
.score-sep { color: var(--muted2); font-weight: 700; padding: 0 2px; }
.not-played { color: var(--muted2); font-size: 0.8rem; }

/* ===== BRACKET ===== */
.bracket-wrap { overflow-x: auto; padding-bottom: 16px; }
.bracket {
  display: flex; gap: 24px; align-items: flex-start;
  width: fit-content; padding: 8px 0;
}
.bracket-col { display: flex; flex-direction: column; gap: 0; }
.bracket-col-label {
  font-size: 0.72rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center; margin-bottom: 8px; white-space: nowrap;
}
.bracket-pair {
  display: flex; flex-direction: column;
  justify-content: center; min-height: 70px;
}
.bracket-match {
  background: #fff; border: 1.5px solid var(--border2);
  border-radius: 7px; overflow: hidden; width: 170px;
  margin: 4px 0; box-shadow: var(--shadow-sm);
}
.bracket-team {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; font-size: 0.82rem; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team.winner { background: var(--accent-light); color: var(--accent-text); }
.bracket-team.loser { color: var(--muted); background: var(--card2); }
.bracket-team.tbd { color: var(--muted2); font-style: italic; font-size: 0.78rem; }

/* ===== PLAYER DETAIL HEADER ===== */
.player-header {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #166534 0%, #15803d 60%, #0f766e 100%);
  border-radius: 10px; padding: 20px 24px; margin-bottom: 20px;
  color: #fff; box-shadow: var(--shadow);
}
.player-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.4);
}
.player-meta { flex: 1; }
.player-meta h2 { font-size: 1.3rem; font-weight: 800; color: #fff; }
.player-meta small { color: rgba(255,255,255,.7); font-size: 0.82rem; }
.player-stats-row {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.stat-block { text-align: center; }
.stat-block .val {
  font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-block .lbl {
  font-size: 0.72rem; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ===== MATCH PANEL ===== */
.match-panel-select {
  width: 100%;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border2); border-radius: 7px;
  padding: 8px 10px; font-size: 0.85rem;
  margin-bottom: 12px;
}
.match-panel-select:focus { outline: none; border-color: var(--accent); }
.match-panel-table { font-size: 0.83rem; }

/* ===== NEWS ===== */
.news-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.news-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.news-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.news-body { font-size: 0.88rem; color: var(--text2); line-height: 1.7; }
.news-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.news-link {
  font-size: 0.8rem; padding: 4px 12px; border-radius: 5px;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid var(--blue-border); font-weight: 600;
}
.news-link:hover { background: #e0f2fe; text-decoration: none; }

/* ===== ADMIN ===== */
.admin-login {
  max-width: 360px; margin: 80px auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow-md);
}
.admin-login h2 { margin-bottom: 20px; text-align: center; color: var(--text); }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.form-input {
  width: 100%; background: var(--card2); color: var(--text);
  border: 1.5px solid var(--border2); border-radius: 7px;
  padding: 9px 12px; font-size: 0.9rem;
}
.form-input:focus { outline: none; border-color: var(--accent); background: var(--accent-light); }
.form-textarea {
  width: 100%; background: var(--card2); color: var(--text);
  border: 1.5px solid var(--border2); border-radius: 7px;
  padding: 9px 12px; font-size: 0.87rem; resize: vertical; min-height: 80px;
}
.form-textarea:focus { outline: none; border-color: var(--accent); }

/* ===== LOADING / ERROR / MESSAGES ===== */
.loading {
  text-align: center; padding: 60px 20px;
  color: var(--muted); font-size: 0.9rem;
}
.loading::before { content: '⏳ '; }
.error-msg {
  background: var(--red-light); border: 1px solid #fca5a5;
  border-left: 4px solid var(--red);
  border-radius: 8px; padding: 12px 16px;
  color: #b91c1c; font-size: 0.87rem; margin-bottom: 16px;
}
.success-msg {
  background: var(--accent-light); border: 1px solid var(--accent-mid);
  border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 12px 16px;
  color: var(--accent-text); font-size: 0.87rem; margin-bottom: 16px; font-weight: 600;
}
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--muted2);
}

/* ===== STICKY SAVE BAR ===== */
.save-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--border);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 200; box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.save-bar-info { font-size: 0.82rem; color: var(--muted); }

/* ===== DIVIDERS / SECTION HEADERS ===== */
.section-header {
  font-size: 0.75rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 14px; background: var(--blue-light);
  border-bottom: 1px solid var(--blue-border);
  border-top: 1px solid var(--blue-border);
}

/* ===== SELECT ===== */
select {
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border2); border-radius: 7px;
  padding: 7px 10px; font-size: 0.85rem;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--accent); }

/* ===== UTILITIES ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-sm { font-size: 0.82rem; }
.nowrap { white-space: nowrap; }

/* ===== BRACKET GRID (плей-офф сетка) ===== */
.bk-outer { overflow-x: auto; overflow-y: hidden; padding-bottom: 16px; }
.bk-wrap {
  display: flex; align-items: flex-start; gap: 14px;
  width: fit-content; padding: 8px 0;
}
.bk-col {
  display: flex; flex-direction: column;
  width: 175px; flex-shrink: 0; height: 2100px;
}
.bk-col-r32 { width: 210px; height: 2100px; }
.bk-col-lbl {
  font-size: 0.68rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center; padding: 5px 4px 4px; white-space: nowrap;
  flex-shrink: 0;
}
.bk-pairs {
  display: flex; flex-direction: column; flex: 1;
}
.bk-pair {
  display: flex; flex-direction: column;
  flex: 1; justify-content: space-around;
}
.bk-match-wrap {
  display: flex; align-items: stretch;
}
.bk-pos-col {
  display: flex; flex-direction: column;
  width: 30px; flex-shrink: 0;
}
.bk-pos-spc { height: 20px; flex-shrink: 0; }
.bk-pos {
  flex: 1; display: flex; align-items: center;
  justify-content: flex-end; padding-right: 4px;
  font-size: 10px; font-weight: 800; color: var(--gold);
  font-family: monospace;
}
.bk-match {
  background: #fff; border: 1.5px solid var(--border2);
  border-radius: 7px; overflow: hidden; flex: 1;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.bk-match-lbl {
  background: var(--blue-light); border-bottom: 1px solid var(--blue-border);
  padding: 3px 8px; font-size: 10px; color: var(--blue);
  font-weight: 700; text-align: center; white-space: nowrap;
}
.bk-team {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px; font-size: 12px; font-weight: 600;
  min-height: 30px; border-bottom: 1px solid var(--border);
}
.bk-team:last-child { border-bottom: none; }
.bk-winner { background: #052e16; border-left: 3px solid var(--accent); }
.bk-winner .bk-name { color: #4ade80; }
.bk-loser { opacity: 0.4; }
.bk-tbd { color: var(--muted2); font-style: italic; }
.bk-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-flag-img { height: 13px; width: auto; border-radius: 1px; flex-shrink: 0; object-fit: cover; }
.bk-chk { font-size: 11px; color: #4ade80; flex-shrink: 0; }
.bk-pts {
  font-size: 10px; font-weight: 800; padding: 1px 5px;
  border-radius: 4px; background: var(--accent); color: #fff; flex-shrink: 0;
}
.bk-pts-0 { background: var(--red-light); color: var(--red); }
.bk-score {
  font-size: 13px; font-weight: 700; color: var(--text);
  flex-shrink: 0; font-variant-numeric: tabular-nums;
  min-width: 12px; text-align: right; margin-left: 2px;
}
.bk-dec-slot {
  flex-shrink: 0; width: 10px; text-align: left;
  font-size: 9px; font-weight: 700; color: var(--gold);
  margin-left: -2px; line-height: 1; overflow: visible; white-space: nowrap;
}
.bk-won .bk-name, .bk-won .bk-score { font-weight: 800; }
.bk-fact-hint { font-size: 11px; color: var(--gold); flex-shrink: 0; }
.bk-col-pts {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0;
  color: var(--accent); background: rgba(34,197,94,0.15);
  border-radius: 4px; padding: 1px 5px; margin-left: 5px;
}
/* Финальная колонка */
.bk-col-final { height: 2100px; position: relative; width: 441px; }
.bk-final-row { display: flex; flex-direction: row; align-items: center; flex: 1; gap: 14px; }
.bk-pairs-final { flex: 1; display: flex; flex-direction: column; align-self: stretch; }
.bk-3rd-abs {
  position: absolute; top: 920px; left: 0; right: 0;
}
.bk-3rd-sep {
  font-size: 0.68rem; font-weight: 800; color: var(--gold);
  text-transform: uppercase; letter-spacing: .04em;
  text-align: center; padding: 6px 4px 4px;
  border-top: 1px dashed var(--border2); margin-top: 8px;
}

/* Колонка призёров */
.bk-col-podium {
  width: 252px; flex-shrink: 0;
}
.bk-col-podium .bk-col-lbl {
  font-size: 0.82rem;
}
.bk-podium {
  background: #fff; border: 1.5px solid var(--border2);
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bk-podium-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.bk-podium-row:last-child { border-bottom: none; }
.bk-podium-num {
  font-size: 13px; font-weight: 800; color: var(--muted);
  font-family: monospace; width: 14px; flex-shrink: 0; text-align: right;
}

/* ===== STICKY TABLE HEADER ===== */
#leaderboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page { padding: 16px 12px; }
  .header-inner { padding: 0 12px; }

  /* Nav — горизонтальный скролл вместо выхода за экран */
  .nav { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; font-size: 0.79rem; }

  .site-logo { font-size: 0.9rem; }
  .groups-grid { grid-template-columns: 1fr; }
  .player-header { flex-direction: column; text-align: center; }
  .player-stats-row { justify-content: center; }

  /* Toggle-row — перенос на несколько строк */
  .toggle-row { flex-wrap: wrap; gap: 6px 10px; }
  .toggle-btn { padding: 5px 10px; font-size: 0.75rem; }
}
