/* Match Center — theme-neutral, RTL-safe (logical properties). Loaded only on the match host page.
   WS-2: colours now consume shared tokens from sdc-base.css (loaded as a dependency) → inherits dark mode +
   focus. Layout, dimensions, markup and the score/event/lineup structure are UNCHANGED. */
.sdc-match{max-width:820px;margin:0 auto;line-height:1.5}
.sdc-match__section{margin-block:1.25rem}
.sdc-match__scoreboard{display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:center;padding:1rem 0;border-block-end:1px solid var(--sdc-line)}
.sdc-match__team{display:flex;flex-direction:column;align-items:center;gap:.5rem;flex:1;min-width:0}
.sdc-match__team-name{max-width:100%;overflow-wrap:anywhere;text-align:center}/* WS-6: long names wrap instead of overflowing; scoreboard stays horizontal */
.sdc-match__crest{width:48px;height:48px;object-fit:contain}
.sdc-match__center{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:.35rem}
.sdc-match__result{font-size:2rem;font-weight:700;display:flex;gap:.5rem;align-items:baseline}
.sdc-match__badge{font-size:.8rem;padding:.15rem .55rem;border-radius:var(--sdc-radius-pill);background:var(--sdc-line-3);color:var(--sdc-ink-soft)}
.sdc-match__badge--live{background:var(--sdc-live-tint);color:var(--sdc-live)}
.sdc-match__h{font-size:1.15rem;margin:1.5rem 0 .75rem}
.sdc-match__events{list-style:none;padding:0;margin:0}
.sdc-match__event{display:flex;gap:.6rem;align-items:baseline;padding:.35rem 0;border-block-end:1px solid var(--sdc-line-3)}
.sdc-match__min{min-width:2.5rem;color:var(--sdc-muted);font-variant-numeric:tabular-nums}
.sdc-match__stats,.sdc-match__ratings{width:100%;border-collapse:collapse}
.sdc-match__stats td,.sdc-match__stats th,.sdc-match__ratings td,.sdc-match__ratings th{padding:.35rem .5rem;text-align:center;border-block-end:1px solid var(--sdc-line-3)}
.sdc-match__stat-k{color:var(--sdc-muted);font-weight:500}
.sdc-match__lineups{display:flex;flex-wrap:wrap;gap:1.5rem}
.sdc-match__lineup{flex:1 1 260px}
.sdc-match__xi,.sdc-match__subs{list-style:none;padding:0;margin:0}
.sdc-match__player{padding:.2rem 0}
.sdc-match__num{display:inline-block;min-width:1.5rem;color:var(--sdc-muted);font-variant-numeric:tabular-nums}
.sdc-match__info{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem 1.5rem}
.sdc-match__info dt{color:var(--sdc-muted);font-size:.85rem}
.sdc-match__info dd{margin:0;font-weight:600}
.sdc-match__links ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}
.sdc-match__links a{padding:.35rem .75rem;border:1px solid var(--sdc-line);border-radius:6px;text-decoration:none}
.sdc-match__ai{margin-block:.5rem}
/* RENDER_VERSION 2 — zero-cost harvest additions (tokens from sdc-base.css; RTL-safe logical props). */
/* Winner emphasis: font-weight + marker glyph (never colour-only). */
.sdc-match__team.is-winner .sdc-match__team-name{font-weight:700}
.sdc-match__winner-mark{color:var(--sdc-live);font-weight:700}
.sdc-match__badge--awdwo{background:var(--sdc-line);color:var(--sdc-ink)}
/* Player stats: compact table always visible; wide "Full player stats" in a scroll box inside <details>. */
.sdc-match__player-ratings{display:flex;flex-wrap:wrap;gap:1.5rem}
.sdc-match__ratings-team{flex:1 1 320px;min-width:0}
.sdc-match__rp-name{text-align:start;overflow-wrap:anywhere}
.sdc-match__toprated{color:var(--sdc-live)}
.sdc-match__toprated-note{margin:.25rem 0 .75rem;color:var(--sdc-ink-soft);font-size:.9rem}
.sdc-match__toprated-hint{color:var(--sdc-muted);font-size:.85rem}
.sdc-match__sub-tag{font-size:.7rem;color:var(--sdc-muted);text-transform:uppercase;letter-spacing:.03em}
.sdc-match__rp-more{margin-top:.5rem}
.sdc-match__rp-more>summary{cursor:pointer;color:var(--sdc-ink-soft);font-size:.9rem;padding:.25rem 0}
.sdc-match__rp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.sdc-match__ratings--full{min-width:640px}
.sdc-match__ratings--full th[scope=row]{text-align:start;white-space:nowrap}
/* Lineup identity extras. */
.sdc-match__lineup-crest{vertical-align:middle;object-fit:contain}
.sdc-match__coach{display:flex;align-items:center;gap:.4rem;color:var(--sdc-ink-soft);margin-block:.5rem 0}
.sdc-match__coach-photo{border-radius:50%;object-fit:cover}
/* Formation Pitch — grid-driven, companion to the text XI list (never a replacement). Fixed aspect-ratio
   green field; markers absolutely positioned by the already-fetched "row:col" grid value (see
   formation_pitch()) — no JS, pure CSS percentage placement. */
.sdc-pitch{position:relative;width:100%;aspect-ratio:3/4;max-width:320px;margin:.75rem auto;border-radius:var(--sdc-radius-sm);background:linear-gradient(180deg,#1e7d3a,#1a6b32);overflow:hidden}
.sdc-pitch::before{content:'';position:absolute;inset:6%;border:1px solid rgba(255,255,255,.35);border-radius:4px;pointer-events:none}
.sdc-pitch::after{content:'';position:absolute;inset-inline:30%;block-size:1px;inset-block-start:50%;background:rgba(255,255,255,.35);pointer-events:none}
.sdc-pitch__player{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;max-width:64px}
.sdc-pitch__marker{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#0f172a;font-size:11px;font-weight:var(--sdc-fw-bold);box-shadow:0 1px 4px rgba(0,0,0,.35)}
.sdc-pitch__player--gk .sdc-pitch__marker{background:var(--sdc-warn)}
.sdc-pitch__name{font-size:9.5px;line-height:1.15;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);overflow-wrap:anywhere}
.sdc-pitch__name a{color:inherit;text-decoration:none}
.sdc-pitch__name a:hover{text-decoration:underline}
@media (prefers-color-scheme:dark){
	.sdc-pitch{background:linear-gradient(180deg,#155c2b,#124f26)}
}
/* Event extras: player links inherit theme link colour; comment note is muted/secondary. */
.sdc-match__event-note{color:var(--sdc-muted);font-size:.85rem}
/* PRED-2 — Predictions section. Bar segments use percentage widths; overflow:hidden keeps it structurally
   intact even if a rare provider rounding makes the visible total drift from 100 (never renormalized). */
.sdc-match__pred-label{color:var(--sdc-muted);font-size:.85rem}
.sdc-match__pred-winner{margin:0 0 .35rem}
.sdc-match__pred-wod{color:var(--sdc-muted);font-size:.85rem}
.sdc-match__pred-comment{color:var(--sdc-ink-soft);margin:0 0 .75rem}
.sdc-match__pred-bar{display:flex;height:10px;border-radius:var(--sdc-radius-pill);overflow:hidden;background:var(--sdc-line-3);margin-block:.5rem .35rem}
.sdc-match__pred-seg{display:block;height:100%}
.sdc-match__pred-seg--home{background:var(--sdc-brand)}
.sdc-match__pred-seg--draw{background:var(--sdc-draw)}
.sdc-match__pred-seg--away{background:var(--sdc-muted-2)}
.sdc-match__pred-pcts{list-style:none;display:flex;flex-wrap:wrap;gap:.25rem 1rem;padding:0;margin:0 0 .75rem;font-size:.9rem}
.sdc-match__pred-pct--home strong{color:var(--sdc-brand)}
.sdc-match__pred-pct--away strong{color:var(--sdc-muted-2)}
.sdc-match__pred-advice,.sdc-match__pred-goals,.sdc-match__pred-uo{margin:.35rem 0}
.sdc-match__pred-more{margin-top:.5rem}
.sdc-match__pred-more>summary{cursor:pointer;color:var(--sdc-ink-soft);font-size:.9rem;padding:.25rem 0}
.sdc-match__pred-cmp{width:100%;border-collapse:collapse;margin-top:.35rem}
.sdc-match__pred-cmp td,.sdc-match__pred-cmp th{padding:.35rem .5rem;text-align:center;border-block-end:1px solid var(--sdc-line-3)}
.sdc-match__pred-cmp th[scope=row]{text-align:start;color:var(--sdc-muted);font-weight:500}
.sdc-match__pred-disclaimer{color:var(--sdc-muted);font-size:.8rem;margin-top:.75rem}
@media(max-width:640px){.sdc-match__result{font-size:1.5rem}.sdc-match__crest{width:40px;height:40px}.sdc-match__ratings-team{flex-basis:100%}}
