:root {
  --c-bg: #f4f1ea;
  --c-text: #15181c;
  --c-muted: #6b7280;
  --c-accent: #008c45;       /* итал. зелёный */
  --c-accent2: #cd212a;      /* итал. красный */
  --c-line: #e6e0d4;
  --c-card: #fff;
  --c-link: #0b5cab;
  --c-head: #11161c;         /* тёмная панель шапки */
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--c-bg); color: var(--c-text);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Header: триколор-фон + непрозрачная панель ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px),
              linear-gradient(270deg, var(--c-accent2) 0 6px, transparent 6px),
              var(--c-head);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--c-accent) 0 33%, #fff 33% 66%, var(--c-accent2) 66%) 1;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 10px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .flag { font-size: 26px; line-height: 1; }
.brand-mark { width: 32px; height: 32px; display: block; flex: 0 0 auto; }
.brand-text strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: .2px; color: #fff; }
.brand-text small { color: #aeb6c2; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.primary-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.primary-nav a { color: #e7eaef; font-weight: 600; font-size: 14px; padding: 7px 11px; border-radius: 7px; }
.primary-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.primary-nav a.active { background: var(--c-accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(255,255,255,.35); }
.primary-nav a.active:hover { background: var(--c-accent); }

/* ---------- Typography ---------- */
h1 { font-size: 30px; line-height: 1.2; margin: 22px 0 14px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 22px; margin: 26px 0 12px; font-weight: 700; }
h3 { font-size: 17px; margin: 16px 0 8px; font-weight: 700; }
main.container { padding-bottom: 40px; }

/* ---------- Cards / grid ---------- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th, .standings td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.standings th { background: #f0ece2; font-weight: 700; color: #444; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; position: sticky; top: 0; }
.standings tbody tr:hover { background: #faf8f3; }
.standings td.team { text-align: left; font-weight: 600; }
.standings td.team a { display: inline-flex; align-items: center; gap: 8px; }
.standings tr.cl { box-shadow: inset 3px 0 0 var(--c-accent); }
.standings tr.el { box-shadow: inset 3px 0 0 #2f80ed; }
.standings tr.conf { box-shadow: inset 3px 0 0 #00a884; }
.standings tr.rel { box-shadow: inset 3px 0 0 var(--c-accent2); }
.num-col { font-variant-numeric: tabular-nums; }

/* ---------- Logos & photos ---------- */
.club-logo-mini { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.club-logo-lg { width: 64px; height: 64px; object-fit: contain; }
.player-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eee; vertical-align: middle; }
.player-photo-lg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #eee; }

/* ---------- Form circles ---------- */
.form-circles { display: inline-flex; gap: 4px; align-items: center; }
.fc { width: 18px; height: 18px; border-radius: 50%; display: inline-block; font-size: 0; color: transparent; border: none; }
.fc:hover { text-decoration: none; outline: 2px solid rgba(0,0,0,.2); }
.fc-W { background: #2e9b4f; }
.fc-D { background: #e0a800; }
.fc-L { background: #d23c43; }

/* ---------- Match lists ---------- */
.match-list { list-style: none; padding: 0; margin: 0; }
.match-list li { border-bottom: 1px solid var(--c-line); padding: 10px 2px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.match-list li:last-child { border-bottom: none; }
.match-list .score { font-weight: 800; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.match-list .meta { color: var(--c-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.match-teams { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-bottom: 1px solid var(--c-line); padding: 12px 0; }
.news-list li:last-child { border-bottom: none; }
.news-list .lead { color: var(--c-muted); font-size: 14px; margin-top: 3px; }
.news-list time { color: var(--c-muted); font-size: 12px; }

/* ---------- Club index grid ---------- */
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.club-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .12s; }
.club-card:hover { transform: translateY(-2px); }
.club-card img { height: 52px; object-fit: contain; margin-bottom: 8px; }
.club-card a { font-weight: 600; }

/* ---------- Squad ---------- */
.squad-group { margin-bottom: 18px; }
.squad-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.squad-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.squad-list .pl-num { min-width: 26px; text-align: center; font-weight: 700; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.squad-list .pl-name { font-weight: 600; flex: 1; }
.squad-list .pl-val { color: var(--c-accent); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin: 6px 0 20px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: #333; }
.tabs a:hover { text-decoration: none; border-color: var(--c-accent); }
.tabs a.active { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ---------- Misc ---------- */
.site-footer { margin-top: 56px; padding: 28px 0; background: var(--c-head); color: #aeb6c2; font-size: 14px; }
.site-footer a { color: #cdd3db; }
.site-footer .container { display: flex; flex-direction: column; gap: 8px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body p { margin: 0 0 15px; }
.article-body h2 { font-size: 20px; }
.article-meta { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.lead { font-size: 17px; color: #333; }
.attribution { margin-top: 20px; padding: 12px; background: #f0ece2; border-radius: var(--radius); font-size: 14px; }
.alert-disambig { border-left: 4px solid var(--c-accent2); background: #fff4f4; padding: 12px 16px; margin: 16px 0; border-radius: var(--radius); }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Match center ---------- */
.match-score { text-align: center; }
.match-score .sc { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.match-events { list-style: none; padding: 0; }
.match-events li { padding: 7px 10px; border-bottom: 1px solid var(--c-line); }
.match-events li:nth-child(odd) { background: #faf8f3; }
.match-events .ev-time { display: inline-block; min-width: 40px; color: var(--c-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.match-events .ev-type { font-weight: 600; }
.match-events li.ev-away { text-align: right; }
.match-stats td { padding: 7px 10px; border-bottom: 1px solid var(--c-line); }
.match-stats td:nth-child(2) { color: var(--c-muted); font-size: .92em; }
.lineup { list-style: none; padding: 0; margin: 4px 0; }
.lineup li { padding: 5px 2px; border-bottom: 1px solid var(--c-line); display: flex; gap: 8px; align-items: baseline; }
.lineup .num { display: inline-block; min-width: 24px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.lineup .rating { margin-left: auto; font-weight: 800; color: #fff; background: var(--c-accent); border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.lineup.subs li { font-size: .9em; color: var(--c-muted); }
.lineup.subs .rating { background: #9aa3af; }

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .primary-nav { gap: 2px; }
  .primary-nav a { padding: 6px 8px; font-size: 13px; }
  .card { padding: 14px; }
  body { font-size: 15px; }
}

/* ---------- Match row (reusable) ---------- */
.match-rows { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.match-row { display: grid; grid-template-columns: 60px 1fr 64px 1fr; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--c-line); color: var(--c-text); }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #faf8f3; text-decoration: none; }
.mr-date { font-size: 11px; color: var(--c-muted); text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.mr-date small { display: block; font-weight: 700; color: #444; font-size: 12px; }
.mr-home { justify-self: end; text-align: right; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.mr-away { justify-self: start; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.mr-home img, .mr-away img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.mr-score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; }
.mr-score i { font-style: normal; color: var(--c-muted); margin: 0 1px; }
.mr-score .vs { color: var(--c-muted); font-weight: 500; }
@media (max-width: 560px) {
  .match-row { grid-template-columns: 44px 1fr 50px 1fr; padding: 8px 8px; gap: 4px; }
  .mr-home, .mr-away { font-size: 13px; gap: 6px; }
  .mr-home img, .mr-away img { width: 20px; height: 20px; }
}

/* ---------- Calendar (rounds) ---------- */
.round-block { margin-bottom: 22px; }
.round-block h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.round-block h2 small { font-size: 13px; color: var(--c-muted); font-weight: 500; }

/* ---------- Scorers ---------- */
.scorers { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.scorers th { background: #f0ece2; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #555; padding: 10px 8px; text-align: left; }
.scorers td { padding: 9px 8px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.scorers tr:last-child td { border-bottom: none; }
.scorers tr:hover td { background: #faf8f3; }
.scorers .rank { width: 34px; text-align: center; font-weight: 800; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.scorers .rank.top { color: var(--c-accent2); }
.scorers .pl { display: flex; align-items: center; gap: 10px; }
.scorers .pl-club { display: inline-flex; align-items: center; gap: 7px; color: var(--c-muted); font-size: 13px; }
.scorers .pl-club img { width: 20px; height: 20px; object-fit: contain; }
.scorers .g { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 42px; }
.scorers .a { text-align: center; color: var(--c-muted); font-variant-numeric: tabular-nums; min-width: 42px; }
.scorers .goalbar { height: 6px; background: var(--c-accent); border-radius: 3px; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.ncard:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.ncard .body { padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard .cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--c-accent); }
.ncard h3 { margin: 0; font-size: 16px; line-height: 1.32; }
.ncard h3 a { color: var(--c-text); }
.ncard h3 a:hover { color: var(--c-link); }
.ncard .lead { color: var(--c-muted); font-size: 13px; margin: 0; flex: 1; }
.ncard .meta { color: var(--c-muted); font-size: 12px; margin-top: auto; }
.ncard.lead-card { grid-column: span 2; background: linear-gradient(180deg, #fbfaf7, #fff); }
.ncard.lead-card h3 { font-size: 23px; }
.ncard.lead-card .lead { font-size: 15px; }
@media (max-width: 640px) { .ncard.lead-card { grid-column: span 1; } }

/* ---------- Stat cards (history etc) ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.stat-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 16px; text-align: center; box-shadow: var(--shadow); }
.stat-card .big { font-size: 40px; font-weight: 800; line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.stat-card .lbl { color: var(--c-muted); font-size: 13px; margin-top: 8px; }

/* ---------- Stadium hero ---------- */
.fact-row { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0; }
.fact { }
.fact .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fact .k { color: var(--c-muted); font-size: 13px; }

/* ---------- Reading / article typography ---------- */
.reading { max-width: 720px; }
.reading p { margin: 0 0 18px; }
.reading h2 { font-size: 23px; margin: 32px 0 12px; }
.reading h3 { font-size: 19px; margin: 26px 0 10px; }
.reading ul, .reading ol { margin: 0 0 18px; padding-left: 22px; }
.reading li { margin: 4px 0; }
.reading blockquote { margin: 22px 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--c-accent); font-size: 20px; line-height: 1.5; color: #2a2f36; font-style: italic; }
.reading a { color: var(--c-link); border-bottom: 1px solid rgba(11,92,171,.3); }
.reading img { border-radius: var(--radius); margin: 8px 0; }
.article-hero { margin-bottom: 18px; }
.article-hero .cat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--c-accent); }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 18px; }

/* ---------- Mobile burger nav ---------- */
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 760px) {
  .nav-toggle-label { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .primary-nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 8px; }
  .nav-toggle:checked ~ .primary-nav { display: flex; }
  .primary-nav a { padding: 10px 8px; border-radius: 6px; }
}

/* ---------- Standings legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; font-size: 13px; color: var(--c-muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Pager ---------- */
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 24px 0; color: var(--c-muted); font-size: 14px; }
.fact-row { gap: 28px; }

/* ---------- Derby cards ---------- */
.derby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.derby-card { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--c-text); transition: transform .12s, box-shadow .12s; text-align: center; }
.derby-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); text-decoration: none; }
.derby-vs { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.derby-vs img { width: 48px; height: 48px; object-fit: contain; }
.derby-vs span { color: var(--c-muted); font-weight: 700; font-size: 13px; }
.derby-card h3 { margin: 0 0 4px; font-size: 17px; }
.derby-card .derby-teams { color: var(--c-muted); font-size: 13px; margin-bottom: 8px; }
.derby-card .lead { font-size: 13px; color: #444; text-align: left; }

/* ---------- Club info row ---------- */
.info-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.info { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); min-width: 120px; }
.info .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--c-muted); }
.info .v { font-weight: 700; font-size: 16px; }
.info .v small { font-weight: 500; color: var(--c-muted); }
/* squad player two-line */
.squad-list .pl-main { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.squad-list .pl-sub { color: var(--c-muted); font-size: 12px; font-weight: 500; }
.scorers .g small, .scorers .a small { color: var(--c-muted); font-weight: 500; font-size: 11px; }

/* ---------- Glossary ---------- */
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gloss-card { background: #fff; border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent2); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.gloss-term { font-weight: 800; font-size: 17px; }
.gloss-orig { color: var(--c-muted); font-size: 12px; font-style: italic; margin-bottom: 6px; }
.gloss-def { margin: 0; font-size: 14px; color: #333; }

/* ---------- Transfers ---------- */
.transfers { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tr-row { display: grid; grid-template-columns: 86px 1.4fr 2fr 90px; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--c-line); }
.tr-row:last-child { border-bottom: none; }
.tr-row:hover { background: #faf8f3; }
.tr-date { font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.tr-player { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tr-player .player-photo { width: 30px; height: 30px; }
.tr-move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tr-club { display: inline-flex; align-items: center; gap: 6px; }
.tr-club img { width: 20px; height: 20px; object-fit: contain; }
.tr-arrow { color: var(--c-accent); font-weight: 800; }
.tr-fee { text-align: right; font-weight: 800; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.tr-type { font-weight: 600; color: var(--c-muted); font-size: 12px; }
@media (max-width: 700px) {
  .tr-row { grid-template-columns: 1fr; gap: 4px; }
  .tr-fee { text-align: left; }
}

/* ---------- Hub grid (history etc) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.hub-card { display: block; background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--c-text); transition: transform .12s, box-shadow .12s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); text-decoration: none; }
.hub-card h3 { margin: 0 0 6px; font-size: 18px; }
.hub-card p { margin: 0 0 10px; color: var(--c-muted); font-size: 14px; }
.hub-card .hub-go { color: var(--c-link); font-weight: 700; font-size: 14px; }

/* ---------- Match scoreboard ---------- */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 17px; }
.sb-team img { width: 64px; height: 64px; object-fit: contain; }
.sb-score { text-align: center; min-width: 110px; }
.sb-score .sc { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.sb-score .ht { color: var(--c-muted); font-size: 12px; margin-top: 4px; }
.sb-score .st { color: var(--c-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.sb-facts { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 14px 0 4px; color: var(--c-muted); font-size: 14px; }
.sb-facts b { color: var(--c-text); }
@media (max-width: 560px) { .sb-team { font-size: 14px; } .sb-team img { width: 48px; height: 48px; } .sb-score .sc { font-size: 34px; } }

/* ---------- Match events with markers ---------- */
.match-events { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.ev { display: grid; grid-template-columns: 44px 22px 1fr; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--c-line); }
.ev:last-child { border-bottom: none; }
.ev-time { color: var(--c-muted); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ev-mk { width: 16px; height: 16px; display: inline-block; }
.ev-mk-goal { border-radius: 50%; background: #15803d; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #15803d; }
.ev-mk-yellow { width: 12px; height: 16px; border-radius: 2px; background: #e8c000; }
.ev-mk-red { width: 12px; height: 16px; border-radius: 2px; background: #d23c43; }
.ev-mk-sub { width: 16px; height: 16px; background: linear-gradient(135deg, #2e9b4f 50%, #d23c43 50%); border-radius: 3px; }
.ev-player { font-weight: 600; }
.ev-type { color: var(--c-muted); font-size: 13px; }
.ev-score { margin-left: 6px; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.ev.ev-away { background: #fbfaf7; }

/* ---------- Match stat bars ---------- */
.stat-list { max-width: 640px; margin: 0 auto; }
.stat-row { padding: 8px 0; }
.stat-top { display: flex; justify-content: space-between; font-size: 14px; }
.stat-top .sh, .stat-top .sa { font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-top .sn { color: var(--c-muted); }
.stat-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 5px; background: #eee; }
.stat-bar .bh { background: var(--c-accent); }
.stat-bar .ba { background: #c2b8a3; }

/* ---------- Lineup tweaks ---------- */
.lineup-head { display: flex; align-items: center; gap: 8px; }
.lineup .ln-name { flex: 1; }
.lineup .num { background: #f0ece2; border-radius: 5px; padding: 1px 6px; min-width: 26px; text-align: center; }

/* ---------- Champions table ---------- */
.champ-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.champ-table th { background: #f0ece2; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #555; padding: 10px; text-align: left; }
.champ-table td { padding: 9px 10px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.champ-table tr:last-child td { border-bottom: none; }
.champ-table tr:hover td { background: #faf8f3; }
.champ-table .season { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.champ-table td a { display: inline-flex; align-items: center; gap: 7px; }
.champ-table .pos1 { font-weight: 700; }
.champ-table .pos1 a { display: inline; }
.champ-table .medal { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: #e3b341; color: #fff; font-size: 12px; font-weight: 800; margin-right: 4px; vertical-align: middle; }
.champ-table.all-time .team { font-weight: 600; }

/* ---------- Player page ---------- */
.player-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .player-layout { grid-template-columns: 1fr; } }
/* min-width:0 — иначе широкая таблица распирает grid-колонку и ломает адаптив (скроллится страница, а не .table-wrap) */
.player-main, .coach-body, .stadium-body { min-width: 0; }
.player-info { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.player-photo-xl { width: 140px; height: 140px; border-radius: 14px; object-fit: cover; background: #eee; margin-bottom: 12px; }
.pinfo { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; margin: 0; }
.pinfo dt { color: var(--c-muted); font-size: 13px; }
.pinfo dd { margin: 0; font-weight: 600; font-size: 14px; }
.pinfo .pval { color: var(--c-accent); font-weight: 800; }

/* ---------- Match head (round/date) ---------- */
.match-head { text-align: center; margin: 6px 0 16px; }
.match-head .mh-round { display: block; font-size: 18px; font-weight: 800; }
.match-head .mh-date { display: block; color: var(--c-muted); font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Lineup player markers ---------- */
.pl-marks { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.pl-marks .mk { display: inline-block; }
.pl-marks .mk-goal { min-width: 14px; height: 14px; line-height: 14px; text-align: center; border-radius: 50%; background: #15803d; color: #fff; font-size: 9px; font-weight: 800; padding: 0 2px; }
.pl-marks .mk-yellow { width: 10px; height: 14px; border-radius: 2px; background: #e8c000; }
.pl-marks .mk-red { width: 10px; height: 14px; border-radius: 2px; background: #d23c43; }

/* ---------- Callout / note ---------- */
.callout { background: linear-gradient(0deg, #fbfaf7, #fff); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 24px; font-size: 16px; box-shadow: var(--shadow); }

/* ---------- Watch options ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.opt { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.opt-free { border-left: 3px solid var(--c-accent); }
.opt-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-desc { color: var(--c-muted); font-size: 14px; margin-top: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f0ece2; color: #555; }
.badge-free { background: rgba(0,140,69,.12); color: var(--c-accent); }

/* ---------- FAQ spoilers ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--c-accent); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { background: #faf8f3; }
.faq details > p { margin: 0; padding: 0 16px 14px; color: #333; }

/* ---------- Highlight own club row ---------- */
.standings tr.me { background: rgba(0,140,69,.10); }
.standings tr.me td { font-weight: 700; }
.standings tr.me:hover { background: rgba(0,140,69,.14); }

/* ---------- Season selector ---------- */
.season-select { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; }
.season-select span { color: var(--c-muted); font-weight: 600; }
.season-select select { padding: 7px 12px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---------- Compact news feed (headline list) ---------- */
.news-feed { list-style: none; padding: 0; margin: 0; }
.news-feed li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.news-feed li:last-child { border-bottom: none; }
.news-feed time { color: var(--c-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 76px; }
.news-feed a { color: var(--c-text); }
.news-feed a:hover { color: var(--c-link); }
.news-feed a.nf-imp { font-weight: 800; }
.news-feed .nf-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--c-accent); white-space: nowrap; }
.news-feed .nf-empty { color: var(--c-muted); }
@media (max-width: 560px) { .news-feed time { min-width: 64px; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--c-muted); margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--c-link); }
.breadcrumbs .bc-sep { color: var(--c-line); }
.breadcrumbs .bc-cur { color: var(--c-muted); }

/* ══ Профиль тренера ══ */
/* Шапка */
.coach-hero {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
  border: 1px solid var(--c-line); border-radius: 16px;
  padding: 22px 24px; box-shadow: var(--shadow); margin: 6px 0 24px;
}
.coach-avatar { flex: 0 0 auto; width: 96px; height: 96px; }
.coach-avatar img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; display: block; background: #eee; }
.coach-avatar-ph {
  width: 96px; height: 96px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #0b5cab 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
}
.coach-hero-main { min-width: 0; }
.coach-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--c-accent); }
.coach-title { margin: 0 0 8px; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.4px; }
.coach-club { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--c-text); }
.coach-club img { object-fit: contain; }
.coach-club:hover { color: var(--c-link); text-decoration: none; }
.coach-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.coach-meta li { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.coach-meta li span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--c-muted); margin-bottom: 1px; }

/* Сетка тело + сайдбар (НЕ sticky) */
.coach-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 820px) { .coach-grid { grid-template-columns: 1fr; gap: 18px; } }

/* Биография — комфортная типографика */
.coach-bio { font-size: 17px; line-height: 1.78; color: #23282e; max-width: 68ch; }
.coach-bio p { margin: 0 0 16px; }
.coach-bio p:first-child { font-size: 18px; }
.coach-bio p:first-child::first-letter { font-size: 1em; }
.coach-bio h2 { font-size: 19px; margin: 22px 0 10px; }

.coach-section { margin-top: 26px; }
.coach-section h2 {
  font-size: 18px; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--c-line); position: relative;
}
.coach-section h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--c-accent); }

/* Карьера — таймлайн */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 108px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
@media (max-width: 520px) { .timeline::before { display: none; } }
.timeline li { display: grid; grid-template-columns: 98px 1fr; gap: 22px; padding: 9px 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 104px; top: 15px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--c-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-line);
}
@media (max-width: 520px) { .timeline li::before { display: none; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.timeline--muted li::before { background: #b9c0ca; }
.tl-period { font-size: 13px; font-weight: 700; color: var(--c-muted); font-variant-numeric: tabular-nums; text-align: right; padding-top: 2px; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 520px) { .tl-period { text-align: left; } }
.tl-body { display: flex; flex-direction: column; }
.tl-club { font-size: 16px; font-weight: 700; }
.tl-note { font-size: 14px; color: #4b5563; margin-top: 1px; }

/* Сайдбар — достижения */
.coach-panel { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.coach-panel h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--c-muted); }
.honours { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.honours li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding-left: 22px; position: relative; line-height: 1.3; }
.honours li::before { content: "🏆"; position: absolute; left: 0; top: 1px; font-size: 13px; }
.honours .hon-title { font-weight: 700; font-size: 14px; }
.honours .hon-year { font-size: 12px; font-weight: 700; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.honours .hon-detail { grid-column: 1 / -1; font-size: 12px; color: var(--c-muted); }

/* Чип тренера на странице состава */
.coach-row { display: flex; flex-wrap: wrap; gap: 10px; }
.coach-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--c-text); }
.coach-chip:hover { border-color: var(--c-accent); color: var(--c-link); text-decoration: none; }
.coach-mini { width: 40px; height: 40px; flex: 0 0 auto; }
.coach-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eee; display: block; }
.coach-mini-ph { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c-accent) 0%, #0b5cab 100%); }
.coach-chip-name { font-size: 15px; }

/* ══ Страница стадиона ══ */
.stadium-hero {
  background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
  border: 1px solid var(--c-line); border-radius: 16px;
  padding: 20px 24px; box-shadow: var(--shadow); margin: 6px 0 22px;
}
.stadium-hero .st-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.stadium-hero .st-nick { margin: 4px 0 0; color: var(--c-muted); font-size: 14px; font-style: italic; }
.stadium-hero .fact-row { margin-top: 16px; }
.stadium-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 820px) { .stadium-grid { grid-template-columns: 1fr; gap: 18px; } }
.stadium-body .reading { font-size: 17px; line-height: 1.78; max-width: 68ch; }
.st-cotenant { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-muted); }
.st-cotenant a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-text); margin-left: 4px; }
.st-cotenant a:hover { color: var(--c-link); }
.st-facts { display: grid; grid-template-columns: 1fr; gap: 10px 0; margin: 0; }
.st-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--c-muted); font-weight: 600; }
.st-facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ══ Дерби: детальная страница ══ */
.derby-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
  border: 1px solid var(--c-line); border-radius: 16px; padding: 22px 18px;
  box-shadow: var(--shadow); margin: 6px 0 16px;
}
.dh-club { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--c-text); font-weight: 800; font-size: 17px; }
.dh-club img { width: 72px; height: 72px; object-fit: contain; }
.dh-club:hover { color: var(--c-link); text-decoration: none; }
.dh-center { text-align: center; padding: 0 6px; }
.dh-vs { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--c-accent2); }
.dh-name { margin: 4px 0 2px; font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -.3px; }
.dh-city { font-size: 13px; color: var(--c-muted); }
.derby-lead { font-size: 18px; line-height: 1.5; color: #2a2f36; margin: 0 0 22px; font-weight: 500; }
@media (max-width: 560px) {
  .derby-head { padding: 16px 12px; }
  .dh-club img { width: 56px; height: 56px; }
  .dh-club { font-size: 14px; }
  .dh-name { font-size: 18px; }
}

/* H2H блок */
.h2h { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.h2h-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.h2h-top h2 { margin: 0; font-size: 18px; }
.h2h-scope { font-size: 12px; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.h2h-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.h2h-side { display: flex; flex-direction: column; }
.h2h-side b { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c-accent); }
.h2h-side span { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.h2h-mid { text-align: center; }
.h2h-mid b { color: var(--c-muted); font-size: 28px; }
.h2h-right { text-align: right; align-items: flex-end; }
.h2h-right b { color: var(--c-accent2); }
.h2h-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #eceff3; margin-bottom: 18px; }
.h2h-bar span { display: block; height: 100%; }
.hb-a { background: var(--c-accent); }
.hb-d { background: #c7cdd6; }
.hb-b { background: var(--c-accent2); }
.h2h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.h2h-stats .hs { display: flex; flex-direction: column; align-items: center; text-align: center; }
.h2h-stats .hs b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.h2h-stats .hs span { font-size: 11px; color: var(--c-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .3px; }
.h2h-recent-h { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--c-muted); margin: 14px 0 10px; }
.h2h-note { font-size: 12px; color: var(--c-muted); margin: 12px 0 0; font-style: italic; }
.derby-body { margin-top: 26px; }

/* Дерби-хаб: мини-H2H на карточке */
.derby-h2h-mini { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.derby-h2h-mini .dm-a, .derby-h2h-mini .dm-b { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 18px; }
.derby-h2h-mini .dm-a { color: var(--c-accent); text-align: right; }
.derby-h2h-mini .dm-b { color: var(--c-accent2); }
.derby-h2h-mini .dm-bar { flex: 1; display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: #eceff3; }
.derby-h2h-mini .dm-bar i { display: block; height: 100%; }
.derby-played { font-size: 12px; color: var(--c-muted); }

/* ── Cookie-плашка ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--c-head); color: #e7eaef;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: 14px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  font-size: 13px; line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; }
.cookie-banner a { color: #cdd3db; text-decoration: underline; }
.cookie-banner a:hover { color: #fff; }
.cookie-accept {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 22px; border-radius: 8px; white-space: nowrap;
}
.cookie-accept:hover { filter: brightness(1.08); }
.footer-legal a { color: #9aa3af; }
@media (max-width: 520px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; } .cookie-accept { width: 100%; } }

/* ── Страница 404 ── */
.error-page { text-align: center; padding: 50px 16px 60px; }
.error-page .err-code { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -3px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-page h1 { font-size: 26px; margin: 10px 0 6px; }
.error-page p { color: var(--c-muted); }
.error-page .err-links { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.error-page .err-btn { background: var(--c-accent); color: #fff; font-weight: 700; padding: 9px 22px; border-radius: 8px; }
.error-page .err-btn:hover { filter: brightness(1.08); text-decoration: none; }

/* ── Мобайл: таблицы скроллятся, текст не наезжает ── */
/* Полная таблица (11 колонок) и бомбардиры — горизонтальный скролл в .table-wrap */
.standings { min-width: 580px; }
.scorers { min-width: 520px; }
.scorers .pl a, .scorers .pl-club { white-space: nowrap; }

/* Компактная таблица на главной — влезает целиком, длинное имя клуба усекается */
.standings-compact { min-width: 0; width: 100%; table-layout: fixed; }
.standings-compact th, .standings-compact td { padding: 8px 4px; }
.standings-compact .num-col { width: 28px; }
.standings-compact th.team, .standings-compact td.team { width: auto; }
.standings-compact td.team a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings-compact td.team a img { vertical-align: middle; margin-right: 6px; }
