/* SMAT 2026 Players & Stats pages (inc/smat-players-stats.php). Loaded only on those views. */

.sps-page {
	--sps-ink: #0f172a;
	--sps-text: #344054;
	--sps-muted: #667085;
	--sps-line: #e6e9f2;
	--sps-soft: #f6f7fb;
	--sps-red: #e63946;
	--sps-purple: #4f147a;
	--sps-grad: linear-gradient(135deg, #e63946 0%, #a3166b 55%, #4f147a 100%);
	--sps-head: var(--smat-font-heading, system-ui, sans-serif);
	--sps-nav: var(--smat-font-nav, system-ui, sans-serif);
	background: var(--sps-soft);
	color: var(--sps-text);
	font-family: var(--smat-font-body, system-ui, sans-serif);
	width: 100%;
}
.sps-page *, .sps-page *::before, .sps-page *::after { box-sizing: border-box; }
.sps-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sps-page a { text-decoration: none; }

/* ---------- Hero ---------- */
.sps-hero { position: relative; overflow: hidden; padding: 48px 0 44px; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #fff; }
.sps-hero::before { content: ""; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.16), transparent 70%); pointer-events: none; }
.sps-hero::after { content: ""; position: absolute; bottom: -30%; left: -10%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(236,72,153,.14), transparent 70%); pointer-events: none; }
.sps-hero .sps-wrap { position: relative; z-index: 1; }
.sps-crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font: 600 12.5px/1.2 var(--sps-nav); color: #cbd5e1; }
.sps-crumbs a { color: #e2e8f0 !important; }
.sps-crumbs a:hover { color: #fff !important; }
.sps-crumbs .sep { color: #64748b; }
.sps-crumbs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sps-red); box-shadow: 0 0 0 3px rgba(230,57,70,.25); }
.sps-hero h1 { margin: 0; max-width: 980px; color: #fff !important; font: 800 clamp(26px, 3.4vw, 42px)/1.15 var(--sps-head); letter-spacing: -.015em; text-transform: none; }
.sps-hero p.sps-lead { margin: 12px 0 0; max-width: 760px; color: #cbd5e1; font-size: 16px; line-height: 1.6; }
.sps-meta { margin-top: 14px; font: 600 12.5px/1.4 var(--sps-nav); color: #94a3b8; }
.sps-meta b { color: #e2e8f0; font-weight: 700; }

/* ---------- Layout ---------- */
.sps-main { padding: 32px 0 56px; }
.sps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sps-grid > * { min-width: 0; }
.sps-card { background: #fff; border: 1px solid var(--sps-line); border-radius: 16px; box-shadow: 0 4px 18px -10px rgba(15,23,42,.12); }
.sps-pad { padding: 22px; }
.sps-h2 { position: relative; margin: 0 0 16px; padding-left: 14px; font: 800 clamp(20px, 2vw, 24px)/1.25 var(--sps-head); color: var(--sps-ink); letter-spacing: -.01em; text-transform: none; }
.sps-h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--sps-red), var(--sps-purple)); }
.sps-section { margin-bottom: 32px; }
.sps-note { margin: 0; font-size: 14px; color: var(--sps-muted); }
.sps-empty { padding: 28px; text-align: center; color: var(--sps-muted); font-size: 15px; }

/* ---------- Tiles ---------- */
.sps-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.sps-tile { padding: 16px 12px; text-align: center; background: #fff; border: 1px solid var(--sps-line); border-radius: 14px; }
.sps-tile b { display: block; font: 800 26px/1.1 var(--sps-head); color: var(--sps-ink); }
.sps-tile span { display: block; margin-top: 6px; font: 700 11px/1.2 var(--sps-nav); letter-spacing: .06em; text-transform: uppercase; color: var(--sps-muted); }

/* ---------- Avatar / logos ---------- */
.sps-avatar { --sps-c: #4f147a; flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-family: var(--sps-head); font-weight: 800; letter-spacing: .02em; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 55%), var(--sps-c); }
.sps-avatar--sm { width: 34px; height: 34px; font-size: 12.5px; }
.sps-avatar--md { width: 64px; height: 64px; font-size: 22px; }
.sps-avatar--lg { width: 132px; height: 132px; font-size: 46px; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 18px 40px -16px rgba(0,0,0,.6); }
.sps-team-logo { flex: none; width: 20px; height: 20px; object-fit: contain; border-radius: 4px; vertical-align: middle; }
.sps-plink { color: var(--sps-ink) !important; font-weight: 700; }
a.sps-plink:hover { color: var(--sps-purple) !important; text-decoration: underline !important; }

/* ---------- Filters ---------- */
.sps-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; padding: 14px; }
.sps-input, .sps-select { height: 42px; padding: 0 14px; border: 1px solid var(--sps-line) !important; border-radius: 10px !important; background: #fff; color: var(--sps-ink); font: 500 14.5px/1 var(--sps-nav); box-shadow: none !important; }
.sps-input { flex: 1 1 220px; min-width: 0; }
.sps-select { flex: 0 1 220px; min-width: 0; }
.sps-input:focus, .sps-select:focus { outline: 2px solid rgba(79,20,122,.35); outline-offset: 1px; }
.sps-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sps-chip { height: 36px; padding: 0 14px; border: 1px solid var(--sps-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--sps-text) !important; font: 700 13px/1 var(--sps-nav) !important; cursor: pointer; display: inline-flex; align-items: center; }
.sps-chip:hover { border-color: #cdb8e2 !important; color: var(--sps-purple) !important; }
.sps-chip.is-on, .sps-chip[aria-current="page"] { background: var(--sps-purple) !important; border-color: var(--sps-purple) !important; color: #fff !important; }
.sps-count { margin: 0 0 14px; font: 600 13.5px/1.3 var(--sps-nav); color: var(--sps-muted); }

/* ---------- Players grid ---------- */
.sps-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sps-pcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px 16px; text-align: center; background: #fff; border: 1px solid var(--sps-line); border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sps-pcard:hover { transform: translateY(-3px); border-color: #d9c8ea; box-shadow: 0 14px 28px -16px rgba(79,20,122,.45); }
.sps-pcard[hidden] { display: none; }
.sps-pcard-name { font: 800 16px/1.25 var(--sps-head); color: var(--sps-ink); }
.sps-role { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f4eefa; color: var(--sps-purple); font: 700 11.5px/1 var(--sps-nav); letter-spacing: .03em; text-transform: uppercase; }
.sps-pcard-team { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--sps-nav); color: var(--sps-muted); }
.sps-more { display: flex; justify-content: center; margin-top: 22px; }
.sps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0 !important; border-radius: 999px !important; background: var(--sps-grad) !important; color: #fff !important; font: 800 13.5px/1 var(--sps-nav) !important; letter-spacing: .03em; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(163,22,107,.6); }
.sps-btn:hover { filter: brightness(1.06); }
.sps-btn[hidden] { display: none; }
.sps-link { color: var(--sps-purple) !important; font: 700 13.5px/1.2 var(--sps-nav); }
.sps-link:hover { text-decoration: underline !important; }

/* ---------- Tables ---------- */
.sps-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--sps-line); background: #fff; }
.sps-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: 14px; }
.sps-table th { position: sticky; top: 0; padding: 12px 12px !important; border: 0 !important; background: linear-gradient(135deg, #1b0f3a 0%, #2a1250 55%, #4f147a 100%) !important; color: #fff !important; font: 700 11.5px/1.2 var(--sps-nav) !important; letter-spacing: .05em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.sps-table th:first-child, .sps-table th.sps-l { text-align: left; }
.sps-table td { padding: 11px 12px !important; border: 0 !important; border-bottom: 1px solid #edf0f6 !important; color: var(--sps-text); text-align: center; white-space: nowrap; vertical-align: middle; }
.sps-table td.sps-l { text-align: left; }
.sps-table tr:last-child td { border-bottom: 0 !important; }
.sps-table tbody tr:hover td { background: #faf7fd; }
.sps-table td.sps-hl { color: var(--sps-ink); font-weight: 800; background: #fbf8fe; }
.sps-table tr[hidden] { display: none; }
.sps-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f9; color: var(--sps-ink); font: 800 12.5px/1 var(--sps-head); }
tr:nth-child(1) > td > .sps-rank.r1, .sps-rank.r1 { background: #fde68a; color: #78350f; }
.sps-rank.r2 { background: #e2e8f0; color: #1e293b; }
.sps-rank.r3 { background: #fed7aa; color: #7c2d12; }
.sps-who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.sps-who small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font: 600 12px/1.2 var(--sps-nav); color: var(--sps-muted); }

/* ---------- Leader cards (stats hub) ---------- */
.sps-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sps-lcard { overflow: hidden; }
.sps-lcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: linear-gradient(135deg, #1b0f3a 0%, #2a1250 55%, #4f147a 100%); color: #fff; }
.sps-lcard-head h3 { margin: 0; color: #fff !important; font: 800 15px/1.2 var(--sps-head); text-transform: none; }
.sps-lcard-head a { color: #f5d0fe !important; font: 700 12.5px/1 var(--sps-nav); white-space: nowrap; }
.sps-lcard-head a:hover { color: #fff !important; }
.sps-lrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #edf0f6; }
.sps-lrow:last-child { border-bottom: 0; }
.sps-lrow .sps-who { flex: 1; min-width: 0; }
.sps-lrow .sps-who > div { min-width: 0; }
.sps-lrow .sps-plink { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-lval { text-align: right; }
.sps-lval b { display: block; font: 800 20px/1 var(--sps-head); color: var(--sps-ink); }
.sps-lval span { font: 700 10.5px/1 var(--sps-nav); letter-spacing: .06em; text-transform: uppercase; color: var(--sps-muted); }

/* ---------- Podium ---------- */
.sps-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; align-items: end; }
.sps-pod { position: relative; padding: 22px 14px 18px; text-align: center; }
.sps-pod.p1 { order: 2; padding-top: 30px; border-top: 4px solid #f59e0b; }
.sps-pod.p2 { order: 1; border-top: 4px solid #94a3b8; }
.sps-pod.p3 { order: 3; border-top: 4px solid #ea580c; }
.sps-pod .sps-rank { position: absolute; top: 12px; left: 12px; }
.sps-pod .sps-avatar { margin: 0 auto 10px; }
.sps-pod .sps-plink { display: block; font-family: var(--sps-head); font-size: 16px; line-height: 1.25; }
.sps-pod small { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font: 600 12.5px/1.2 var(--sps-nav); color: var(--sps-muted); }
.sps-pod .sps-lval { margin-top: 12px; text-align: center; }
.sps-pod .sps-lval b { font-size: 30px; background: var(--sps-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Stat nav ---------- */
.sps-statnav { margin-bottom: 22px; padding: 14px; }
.sps-statnav h3 { margin: 4px 0 8px; font: 800 11.5px/1 var(--sps-nav); letter-spacing: .08em; text-transform: uppercase; color: var(--sps-muted); }
.sps-statnav .sps-chips + h3 { margin-top: 14px; }
.sps-statnav .sps-chip { height: 32px; padding: 0 12px; font-size: 12.5px !important; }

/* ---------- Sidebar ---------- */
.sps-side { display: grid; gap: 18px; }
.sps-side-title { position: relative; margin: 0 0 12px; padding-left: 12px; font: 800 16px/1.2 var(--sps-head); color: var(--sps-ink); text-transform: none; }
.sps-side-title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--sps-red), var(--sps-purple)); }
.sps-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sps-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #1d2433 !important; font: 600 14px/1.3 var(--sps-nav); }
.sps-links a::after { content: "\2192"; color: #98a2b3; }
.sps-links a:hover, .sps-links a[aria-current="page"] { background: #f6f0fb; color: var(--sps-purple) !important; }
.sps-facts { margin: 0; display: grid; gap: 0; }
.sps-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f6; font-size: 14px; }
.sps-facts div:last-child { border-bottom: 0; }
.sps-facts dt { color: var(--sps-muted); font-weight: 600; }
.sps-facts dd { margin: 0; color: var(--sps-ink); font-weight: 700; text-align: right; }

/* ---------- Player profile ---------- */
.sps-profile-head { display: flex; align-items: center; gap: 28px; }
.sps-profile-head h1 { margin-bottom: 10px; }
.sps-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sps-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; font: 700 13px/1 var(--sps-nav); }
.sps-badge--accent { background: var(--sps-grad); border-color: transparent; color: #fff; }
.sps-badge .sps-team-logo { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 1px; }
.sps-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 760px; }
.sps-quick div { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.sps-quick span { display: block; font: 700 10.5px/1 var(--sps-nav); letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.sps-quick b { display: block; margin-top: 6px; font: 700 14.5px/1.3 var(--sps-head); color: #fff; }
.sps-social { display: flex; gap: 8px; margin-top: 16px; }
.sps-social a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0 !important; font: 700 12.5px/1 var(--sps-nav); }
.sps-social a:hover { background: rgba(255,255,255,.16); color: #fff !important; }
.sps-season { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sps-season h3 { margin: 0 0 12px; font: 800 13px/1 var(--sps-nav); letter-spacing: .07em; text-transform: uppercase; color: var(--sps-purple); }
.sps-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sps-kpis div { padding: 12px 8px; text-align: center; border-radius: 12px; background: var(--sps-soft); }
.sps-kpis b { display: block; font: 800 22px/1.1 var(--sps-head); color: var(--sps-ink); }
.sps-kpis span { display: block; margin-top: 4px; font: 700 10.5px/1 var(--sps-nav); letter-spacing: .06em; text-transform: uppercase; color: var(--sps-muted); }
.sps-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.sps-tabpanel[hidden] { display: none; }
.sps-bio p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--sps-text); }
.sps-bio p:last-child { margin-bottom: 0; }
.sps-mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sps-mate { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sps-line); border-radius: 12px; background: #fff; }
.sps-mate:hover { border-color: #d9c8ea; background: #fdfbff; }
.sps-mate b { display: block; font: 700 14px/1.25 var(--sps-head); color: var(--sps-ink); }
.sps-mate small { font: 600 12px/1.2 var(--sps-nav); color: var(--sps-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sps-grid { grid-template-columns: minmax(0, 1fr); }
	.sps-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.sps-hero { padding: 34px 0 30px; }
	.sps-wrap { padding: 0 16px; }
	.sps-leaders, .sps-season { grid-template-columns: minmax(0, 1fr); }
	.sps-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sps-profile-head { flex-direction: column; align-items: flex-start; gap: 18px; }
	.sps-avatar--lg { width: 96px; height: 96px; font-size: 34px; }
	.sps-podium { grid-template-columns: minmax(0, 1fr); }
	.sps-pod.p1, .sps-pod.p2, .sps-pod.p3 { order: 0; }
	.sps-players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sps-pcard { padding: 16px 10px 14px; }
	.sps-avatar--md { width: 52px; height: 52px; font-size: 18px; }
	.sps-pcard-name { font-size: 14.5px; }
	.sps-select { flex: 1 1 100%; }
}
@media (max-width: 420px) {
	.sps-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sps-kpis b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	.sps-pcard { transition: none; }
	.sps-pcard:hover { transform: none; }
}

/* ======================================================================
 * Tournament pages: schedule, live score, points table, teams (inc/smat-tournament.php)
 * ==================================================================== */
.sps-tlink { color: inherit !important; }
a.sps-tlink:hover { color: var(--sps-purple) !important; text-decoration: underline !important; }
[data-sps-group][hidden], .sps-match[hidden] { display: none !important; }

/* Match cards */
.sps-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sps-match { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--sps-line); border-radius: 16px; box-shadow: 0 4px 18px -12px rgba(15,23,42,.14); }
.sps-match--live { border-color: #f5b5bb; box-shadow: 0 10px 26px -16px rgba(230,57,70,.55); }
.sps-match-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 12px/1.3 var(--sps-nav); color: var(--sps-muted); }
.sps-mstatus { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f3f9; color: var(--sps-ink); font: 800 11px/1 var(--sps-nav); letter-spacing: .05em; text-transform: uppercase; }
.sps-match--live .sps-mstatus { background: #fdecee; color: var(--sps-red); }
.sps-match--result .sps-mstatus { background: #ecfdf3; color: #067647; }
.sps-mteam { display: flex; align-items: center; gap: 10px; }
.sps-mteam .sps-team-logo { width: 26px; height: 26px; }
.sps-mname { flex: 1; min-width: 0; font: 700 15.5px/1.3 var(--sps-head); color: var(--sps-ink); }
.sps-mscore { white-space: nowrap; color: var(--sps-text); }
.sps-mscore b { font: 800 17px/1 var(--sps-head); color: var(--sps-ink); }
.sps-mscore small { font-size: 12px; color: var(--sps-muted); }
.sps-mteam.is-winner .sps-mname::after { content: "W"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: #067647; color: #fff; font: 800 10px/1 var(--sps-nav); vertical-align: 2px; }
.sps-mnote { margin: 2px 0 0; font: 600 13.5px/1.4 var(--sps-nav); color: var(--sps-purple); }
.sps-match--live .sps-mnote { color: var(--sps-red); }
.sps-match-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #edf0f6; font-size: 12.5px; color: var(--sps-muted); }

/* Schedule days */
.sps-day { margin-bottom: 26px; scroll-margin-top: 90px; }
.sps-day-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 17px/1.3 var(--sps-head); color: var(--sps-ink); text-transform: none; }
.sps-today { padding: 3px 10px; border-radius: 999px; background: var(--sps-red); color: #fff; font: 800 11px/1.4 var(--sps-nav); letter-spacing: .05em; text-transform: uppercase; }

/* Standings */
.sps-standings tr.is-me td { background: #f6effc !important; }
.sps-standings tr.is-me td:first-child { box-shadow: inset 4px 0 0 var(--sps-purple); }
.sps-form { display: inline-flex; gap: 3px; }
.sps-form i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #e2e8f0; color: #334155; font: 800 10.5px/1 var(--sps-nav); font-style: normal; }
.sps-form i.f-w { background: #dcfce7; color: #166534; }
.sps-form i.f-l { background: #fee2e2; color: #991b1b; }
.sps-section { scroll-margin-top: 90px; }

/* Team cards */
.sps-teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sps-tcard { display: flex; align-items: center; gap: 12px; padding: 14px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.sps-tcard:hover { transform: translateY(-2px); border-color: #d9c8ea; box-shadow: 0 14px 28px -16px rgba(79,20,122,.45); }
.sps-tcard-logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--sps-soft); }
.sps-tcard-logo .sps-team-logo { width: 44px; height: 44px; }
.sps-tcard-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sps-tcard-body b { font: 800 15.5px/1.25 var(--sps-head); color: var(--sps-ink); }
.sps-tcard-body small { font: 600 12.5px/1.3 var(--sps-nav); color: var(--sps-muted); }
.sps-tcard-ground { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-tcard-meta { display: none; }
.sps-team-crest { flex: none; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 18px 40px -16px rgba(0,0,0,.6); }
.sps-team-crest .sps-team-logo { width: 104px; height: 104px; border-radius: 0; }
a.sps-badge:hover { background: rgba(255,255,255,.16); color: #fff !important; }

/* Photos */
img.sps-avatar--img { object-fit: cover; object-position: center 20%; background: #e2e8f0; padding: 0; }
.sps-photo { flex: none; margin: 0; display: grid; justify-items: center; gap: 8px; max-width: 170px; }
.sps-photo figcaption { font-size: 11px; line-height: 1.35; color: #94a3b8; text-align: center; }
.sps-photo figcaption a { color: #cbd5e1 !important; text-decoration: underline !important; }

@media (max-width: 1024px) {
	.sps-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.sps-matches, .sps-teams { grid-template-columns: minmax(0, 1fr); }
	.sps-hide-sm { display: none; }
	.sps-team-crest { width: 96px; height: 96px; border-radius: 22px; }
	.sps-team-crest .sps-team-logo { width: 74px; height: 74px; }
	.sps-photo { max-width: 120px; }
}

/* ======================================================================
 * Homepage featured match ([smat_featured_match])
 * ==================================================================== */
.sps-feature-wrap { background: transparent; padding: 18px 0 22px; }
.sps-feature { position: relative; overflow: hidden; padding: 20px 22px 18px; background: #fff; border: 1px solid var(--sps-line); border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.sps-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.sps-feature--live { border-color: #f5b5bb; }
.sps-feature--live::before { background: linear-gradient(90deg, #e63946, #a3166b); }
.sps-feature--live .sps-mstatus { background: #fdecee; color: var(--sps-red); }
.sps-feature--result .sps-mstatus { background: #ecfdf3; color: #067647; }
.sps-feature-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 13px/1.3 var(--sps-nav); color: var(--sps-muted); }
.sps-feature-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 18px 0 12px; }
.sps-feature-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--sps-line); border-radius: 14px; background: #fafbfe; }
.sps-feature-team.is-winner { border-color: #a6e3bd; background: #f3fcf6; }
.sps-feature-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.sps-feature-logo .sps-team-logo { width: 46px; height: 46px; }
.sps-feature-name { min-width: 0; display: grid; gap: 2px; font: 800 18px/1.2 var(--sps-head); color: var(--sps-ink); }
.sps-feature-name small { font: 700 11.5px/1 var(--sps-nav); letter-spacing: .06em; color: var(--sps-muted); }
.sps-feature-score { text-align: right; white-space: nowrap; }
.sps-feature-score b { display: block; font: 800 26px/1 var(--sps-head); color: var(--sps-ink); }
.sps-feature-score small { font-size: 12.5px; color: var(--sps-muted); }
.sps-feature-vs { font: 800 13px/1 var(--sps-nav); color: #98a2b3; text-transform: uppercase; }
.sps-feature-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f4eefa; color: var(--sps-purple); font: 700 15px/1.4 var(--sps-nav); text-align: center; }
.sps-feature--live .sps-feature-note { background: #fdecee; color: var(--sps-red); }
.sps-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 13px; color: var(--sps-muted); }
.sps-feature-links { display: inline-flex; align-items: center; gap: 14px; }
.sps-btn--sm { height: 36px; padding: 0 16px; font-size: 12.5px !important; }
.sps-feature-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f6; font: 700 12.5px/1.3 var(--sps-nav); color: var(--sps-muted); }
.sps-feature-others a { padding: 6px 10px; border-radius: 999px; background: #fdecee; color: #b4232f !important; font-weight: 700; }
.sps-feature-others a:hover { background: #fbd5d9; }
@media (max-width: 760px) {
	.sps-feature { padding: 18px 14px 14px; }
	.sps-feature-teams { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.sps-feature-vs { display: none; }
	.sps-feature-team { padding: 10px 12px; }
	.sps-feature-logo { width: 44px; height: 44px; }
	.sps-feature-logo .sps-team-logo { width: 36px; height: 36px; }
	.sps-feature-name { font-size: 16px; }
	.sps-feature-score b { font-size: 21px; }
	.sps-feature-foot { flex-direction: column; align-items: flex-start; }
}
.sps-feature .sps-tlink { color: var(--sps-ink) !important; text-decoration: none !important; }
.sps-feature .sps-tlink:hover { color: var(--sps-purple) !important; }
.sps-feature a { text-decoration: none !important; }
.sps-feature .sps-link:hover, .sps-feature-others a:hover { text-decoration: underline !important; }

/* ======================================================================
 * Scoreboard strip (smat_t_render_strip): white, compact, right under each
 * page banner. Flat like the hero buttons: thin borders, 6px radius, red only
 * for LIVE.
 * ==================================================================== */
.smat-sb { --sb-text: #0f172a; --sb-muted: #64748b; --sb-line: #e2e8f0; --sb-line-2: #cbd5e1; --sb-red: #e63946;
	background: #fff; border-bottom: 1px solid var(--sb-line); padding: 10px 0; font-family: var(--smat-font-body, system-ui, sans-serif); color: var(--sb-text); }
.smat-sb *, .smat-sb *::before, .smat-sb *::after { box-sizing: border-box; }
.smat-sb a, .smat-sb a * { text-decoration: none !important; }
.smat-sb__wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.smat-sb__rail { position: relative; min-width: 0; display: flex; align-items: stretch; }
.smat-sb__track { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.smat-sb__track::-webkit-scrollbar { display: none; }
.smat-sb__rail.at-end .smat-sb__track { -webkit-mask-image: none; mask-image: none; }

.smat-mini { flex: 0 0 172px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; scroll-snap-align: start;
	background: #fff; border: 1px solid var(--sb-line); border-radius: 6px; color: var(--sb-text) !important; transition: border-color .15s ease, background-color .15s ease; }
.smat-mini:hover { border-color: var(--sb-line-2); background: #f8fafc; }
.smat-mini--live { border-color: #f5c2c7; }
.smat-mini.is-featured { display: flex; }
.smat-mini__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; }
.smat-mini__tag { flex: none; display: inline-flex; align-items: center; gap: 4px; font: 700 9.5px/1 var(--smat-font-nav, sans-serif); letter-spacing: .07em; text-transform: uppercase; color: var(--sb-muted); }
.smat-mini--live .smat-mini__tag { padding: 3px 5px; border-radius: 3px; background: var(--sb-red); color: #fff; }
.smat-mini--live .smat-mini__tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: smat-sb-pulse 1.4s ease-in-out infinite; }
.smat-mini--result .smat-mini__tag { color: #15803d; }
.smat-mini--upcoming .smat-mini__tag { color: var(--sb-text); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 10.5px; }
.smat-mini__no { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 10.5px/1.2 var(--smat-font-nav, sans-serif); color: var(--sb-muted); }
.smat-mini__team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.smat-mini__logo { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }
.smat-mini__logo .sps-team-logo { width: 18px; height: 18px; object-fit: contain; }
.smat-mini__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.2 var(--smat-font-heading, sans-serif); }
.smat-mini__score { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; font: 700 13px/1 var(--smat-font-heading, sans-serif); font-variant-numeric: tabular-nums; }
.smat-mini__score small { font: 500 10px/1 var(--smat-font-nav, sans-serif); color: var(--sb-muted); }
.smat-mini__team.is-batting .smat-mini__name::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--sb-red); vertical-align: 2px; }
.smat-mini__team.is-won .smat-mini__name::after { content: "✓"; margin-left: 4px; color: #15803d; font-weight: 700; }
.smat-mini__team.is-dim { opacity: .5; }
.smat-mini__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10.5px/1.3 var(--smat-font-nav, sans-serif); color: var(--sb-muted); }
.smat-mini--live .smat-mini__note { color: #c81e2b; }
.smat-mini--all { flex-basis: 110px; flex-direction: row; align-items: center; justify-content: center; gap: 5px; border-style: dashed; border-color: var(--sb-line-2); font: 600 12.5px/1.2 var(--smat-font-nav, sans-serif); }
.smat-sb__nav { position: absolute; top: 50%; z-index: 2; width: 26px; height: 26px; margin-top: -13px; padding: 0; border: 1px solid var(--sb-line-2) !important; border-radius: 6px !important; background: #fff !important; color: var(--sb-text) !important; font-size: 16px; line-height: 1; cursor: pointer; }
.smat-sb__nav:hover { background: #f1f5f9 !important; }
.smat-sb__nav--prev { left: -8px; }
.smat-sb__nav--next { right: -8px; }
.smat-sb__nav:disabled { opacity: 0; pointer-events: none; }
@keyframes smat-sb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .smat-mini__tag::before, .smat-hc__tag::before { animation: none; } }
@media (max-width: 860px) {
	.smat-sb { padding: 8px 0; }
	.smat-sb__wrap { padding: 0 16px; }
	.smat-sb__nav { display: none; }
	.smat-mini { flex-basis: 160px; }
}

/* ======================================================================
 * Live score card on the right of page banners (smat_t_hero_card)
 * ==================================================================== */
.sps-hero-split, .t20-hero-split, .smat-hero-split { display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: center; }
.sps-hero-main, .t20-hero-main, .smat-hero-main { min-width: 0; }
.sps-hero-aside, .t20-hero-aside, .smat-hero-aside { min-width: 0; }
.smat-hc-wrap { width: 100%; }
.smat-hc { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #0f172a !important; text-decoration: none !important; box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); font-family: var(--smat-font-body, system-ui, sans-serif); transition: border-color .15s ease; }
.smat-hc:hover { border-color: #cbd5e1; }
.smat-hc * { text-decoration: none !important; }
.smat-hc__top { display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.smat-hc__tag { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 700 10px/1 var(--smat-font-nav, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.smat-hc--live .smat-hc__tag { padding: 4px 6px; border-radius: 3px; background: #e63946; color: #fff; }
.smat-hc--live .smat-hc__tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: smat-sb-pulse 1.4s ease-in-out infinite; }
.smat-hc--upcoming .smat-hc__tag { color: #0f172a; }
.smat-hc--result .smat-hc__tag { color: #15803d; }
.smat-hc__meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/1.2 var(--smat-font-nav, sans-serif); color: #64748b; }
.smat-hc__team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.smat-hc__logo { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
.smat-hc__logo .sps-team-logo { width: 22px; height: 22px; object-fit: contain; }
.smat-hc__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14.5px/1.2 var(--smat-font-heading, sans-serif); color: #0f172a; }
.smat-hc__score { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font: 700 16px/1 var(--smat-font-heading, sans-serif); color: #0f172a; font-variant-numeric: tabular-nums; }
.smat-hc__score small { font: 500 11px/1 var(--smat-font-nav, sans-serif); color: #64748b; }
.smat-hc__team.is-batting .smat-hc__name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #e63946; vertical-align: 2px; }
.smat-hc__team.is-won .smat-hc__name::after { content: "✓"; margin-left: 5px; color: #15803d; font-weight: 700; }
.smat-hc__team.is-dim { opacity: .5; }
.smat-hc__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 var(--smat-font-nav, sans-serif); color: #475569; }
.smat-hc--live .smat-hc__note { color: #c81e2b; }
.smat-hc__note .smat-feat__side-v { font: inherit; font-weight: 700; color: #0f172a; }
.smat-hc__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: 600 12px/1 var(--smat-font-nav, sans-serif); color: #0f172a; transition: background-color .15s ease; }
.smat-hc:hover .smat-hc__cta { background: #f1f5f9; }
@media (max-width: 900px) {
	.sps-hero-split, .t20-hero-split, .smat-hero-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sps-hero-aside, .t20-hero-aside, .smat-hero-aside { max-width: 420px; }
}

/* ======================================================================
 * Match page (/score-details/{slug}/{id}/, templates/smat-match.php)
 * ==================================================================== */
.smat-match .sps-main { padding-top: 22px; }
.smat-m-crumbs { margin: 0 0 16px; font: 700 12.5px/1.4 var(--sps-nav); letter-spacing: .03em; text-transform: uppercase; color: var(--sps-muted); }
.smat-m-crumbs a { color: var(--sps-purple) !important; }
.smat-m-crumbs span { margin: 0 4px; }
.smat-m-crumbs [aria-current] { margin: 0; color: var(--sps-ink); }
.smat-m-card { overflow: hidden; margin-bottom: 20px; background: #fff; border: 1px solid var(--sps-line); border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.smat-m-card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; background: linear-gradient(135deg, #1b0f3a 0%, #2a1250 55%, #4f147a 100%); color: #fff; font: 700 12.5px/1.4 var(--sps-nav); }
.smat-m-card__comp { letter-spacing: .03em; text-transform: uppercase; }
.smat-m-card__when { color: rgba(255,255,255,.8); font-weight: 600; }
.smat-m-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 26px 24px; }
.smat-m-team { display: flex; align-items: center; gap: 16px; min-width: 0; }
.smat-m-team.is-right { flex-direction: row-reverse; text-align: right; }
.smat-m-team.is-dim .smat-m-team__score { color: #98a2b3; }
.smat-m-team__logo { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #f6f7fb; box-shadow: 0 6px 16px -10px rgba(15,23,42,.4); }
.smat-m-team__logo .sps-team-logo { width: 56px; height: 56px; }
.smat-m-team__txt { display: grid; gap: 2px; min-width: 0; }
.smat-m-team__abbr { font: 800 24px/1.1 var(--sps-head); color: var(--sps-ink); }
.smat-m-team__name { font: 700 11.5px/1.3 var(--sps-nav); letter-spacing: .05em; text-transform: uppercase; color: var(--sps-muted); }
.smat-m-team__name a { color: inherit !important; }
.smat-m-team__name a:hover { color: var(--sps-purple) !important; }
.smat-m-team__score { margin-top: 6px; font: 800 36px/1 var(--sps-head); color: var(--sps-ink); font-variant-numeric: tabular-nums; }
.smat-m-team__overs { font: 600 13px/1.3 var(--sps-nav); color: var(--sps-muted); }
.smat-m-vs { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 999px; background: #f1f3f9; font: 800 12px/1 var(--sps-nav); color: var(--sps-muted); }
.smat-m-vs .sps-mstatus { background: #fdecee; color: var(--sps-red); }
.smat-m-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 14px 20px; background: #fafbfe; border-top: 1px solid var(--sps-line); }
.smat-m-result { flex: 1 1 260px; margin: 0; font: 800 14.5px/1.4 var(--sps-nav); color: var(--sps-purple); text-transform: uppercase; letter-spacing: .02em; }
.smat-m-result--result { color: #067647; }
.smat-m-result--live { color: var(--sps-red); }
.smat-m-perf { display: grid; gap: 2px; }
.smat-m-perf__k { font: 700 10.5px/1 var(--sps-nav); letter-spacing: .07em; text-transform: uppercase; color: var(--sps-muted); }
.smat-m-perf__v { font: 700 13.5px/1.35 var(--sps-nav); color: var(--sps-ink); }
.smat-m-perf__v .sps-plink { font-weight: 700; }
.smat-m-tabs { display: flex; gap: 8px; margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sps-line); }
.smat-m-inn { margin-bottom: 26px; }
.smat-m-inn__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 13px 18px; border-radius: 14px 14px 0 0; background: linear-gradient(135deg, #1b0f3a 0%, #2a1250 55%, #4f147a 100%); color: #fff; }
.smat-m-inn__head h2 { margin: 0; color: #fff !important; font: 800 15px/1.2 var(--sps-head); letter-spacing: .02em; text-transform: uppercase; }
.smat-m-inn__head span { font: 800 14px/1.2 var(--sps-nav); }
.smat-m-table { border-radius: 0; border-top: 0; }
.smat-m-inn__head + .smat-m-table { border-radius: 0 0 14px 14px; }
.smat-m-table .sps-table th { position: static; background: #f4eefa !important; color: var(--sps-purple) !important; }
.smat-m-table td small { color: var(--sps-muted); font-size: 11.5px; }
.smat-m-table tr.is-batting td { background: #fdf6e3; }
.smat-m-bat { color: var(--sps-red); font-weight: 800; }
.smat-m-out { color: var(--sps-muted) !important; font-size: 13px; white-space: normal !important; min-width: 200px; }
.smat-m-out-sm { display: none; }
.smat-m-table tfoot td { background: #fafbfe; border-bottom: 1px solid #edf0f6 !important; }
.smat-m-total td { font-weight: 800; color: var(--sps-ink); }
.smat-m-line { margin: 0; padding: 10px 16px; background: #fff; border: 1px solid var(--sps-line); border-top: 0; font-size: 13.5px; line-height: 1.6; color: var(--sps-text); }
.smat-m-line + .smat-m-table, .smat-m-table + .smat-m-table { margin-top: 14px; border-top: 1px solid var(--sps-line); border-radius: 14px; }
.smat-m-line:last-of-type { border-radius: 0 0 14px 14px; }
.smat-m-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.smat-m-others a { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--sps-line); border-radius: 10px; color: var(--sps-ink) !important; }
.smat-m-others a:hover { border-color: #cdb8e2; background: #fdfbff; }
.smat-m-others__teams { display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px/1.2 var(--sps-nav); }
.smat-m-others small { font: 600 12px/1.35 var(--sps-nav); color: var(--sps-muted); }
.smat-m-others small.is-live { color: var(--sps-red); font-weight: 800; }
@media (max-width: 760px) {
	.smat-m-card__body { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 16px; }
	.smat-m-team, .smat-m-team.is-right { flex-direction: row; text-align: left; }
	.smat-m-vs { justify-self: start; min-width: 0; height: 28px; font-size: 11px; }
	.smat-m-team__logo { width: 56px; height: 56px; }
	.smat-m-team__logo .sps-team-logo { width: 42px; height: 42px; }
	.smat-m-team__score { font-size: 28px; }
	.smat-m-out { display: none; }
	.smat-m-out-sm { display: block; margin-top: 2px; font-size: 11.5px; color: var(--sps-muted); white-space: normal; }
	.smat-m-table td.sps-l { white-space: normal; min-width: 150px; }
}

/* Homepage: the quick-stats tiles normally overlap the banner (-25px); with the strip in between, sit below it instead. */
.smat-sb + .smat-home-container > .smat-quick-stats-strip { margin-top: 18px !important; }

/* Strip heading */
.smat-sb { padding-top: 14px; }
.smat-sb__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.smat-sb__title { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 !important; padding-left: 12px; font: 700 16px/1.2 var(--smat-font-heading, sans-serif) !important; color: var(--sb-text) !important; letter-spacing: -.01em; text-transform: none !important; }
.smat-sb__title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--sb-red); }
.smat-sb__count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #f5c2c7; border-radius: 4px; font: 700 11px/1 var(--smat-font-nav, sans-serif); color: #c81e2b; }
.smat-sb__count::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sb-red); animation: smat-sb-pulse 1.4s ease-in-out infinite; }
.smat-sb__links { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.smat-sb__links a { font: 600 13px/1.2 var(--smat-font-nav, sans-serif); color: var(--sb-muted) !important; }
.smat-sb__links a:hover { color: var(--sb-text) !important; }
.smat-sb__links a:last-child { color: var(--sb-text) !important; }
.smat-sb__count { white-space: nowrap; flex: none; }
@media (max-width: 600px) {
	.smat-sb__title { font-size: 14.5px !important; white-space: nowrap; }
	.smat-sb__title-x { display: none; }
	.smat-sb__links a:first-child { display: none; }
	.smat-sb__links a:last-child { font-size: 12.5px; }
}
/* Homepage: no gap between the banner and the strip right after it. */
.smat-hero-simple:has(+ .smat-sb) { margin-bottom: 0 !important; }

/* ======================================================================
 * Simple tables everywhere (page content tables + SMAT stats/points/scorecard
 * tables): light header row, thin grey borders, 6px corners, no gradients,
 * no shadows. Selectors are long on purpose to beat the page's inline styles.
 * ==================================================================== */
html body .entry-content figure.wp-block-table,
html body .entry-content .wp-block-table {
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background: #fff !important;
	overflow-x: auto !important;
}
html body .entry-content .wp-block-table table { border-collapse: collapse !important; }
html body .entry-content .wp-block-table table thead tr,
html body .entry-content .wp-block-table table thead th {
	background: #f8fafc !important;
	color: #475569 !important;
	border: 0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
}
html body .entry-content .wp-block-table table thead th { padding: 11px 16px !important; font: 600 12px/1.3 var(--smat-font-nav, sans-serif) !important; letter-spacing: .04em !important; text-transform: uppercase !important; }
html body .entry-content .wp-block-table table thead th strong { color: inherit !important; font-weight: 600 !important; }
html body .entry-content .wp-block-table table tbody tr,
html body .entry-content .wp-block-table table tbody tr:nth-child(odd),
html body .entry-content .wp-block-table table tbody tr:nth-child(even) { background: #fff !important; }
html body .entry-content .wp-block-table table tbody td {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #f1f5f9 !important;
	border-radius: 0 !important;
	padding: 11px 16px !important;
	color: #334155 !important;
}
html body .entry-content .wp-block-table table tbody td:first-child:not(:only-child) { color: #0f172a !important; font-weight: 600 !important; background: transparent !important; }
html body .entry-content .wp-block-table table tbody tr:last-child td { border-bottom: 0 !important; }
html body .entry-content .wp-block-table table tbody tr:hover td { background: #f8fafc !important; }

/* SMAT tables (points, stats, career, scorecard) */
.sps-page .sps-table-wrap { border-radius: 6px; border-color: #e2e8f0; box-shadow: none; }
.sps-page .sps-table th,
.sps-page .smat-m-table .sps-table th {
	background: #f8fafc !important;
	color: #475569 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	font: 600 11.5px/1.2 var(--sps-nav) !important;
	letter-spacing: .04em;
}
.sps-page .sps-table td { border-bottom-color: #f1f5f9 !important; }
.sps-page .sps-table tbody tr:hover td { background: #f8fafc; }
.sps-page .sps-table td.sps-hl { background: #f8fafc; }

/* Section bars: flat navy instead of gradients */
.sps-page .sps-lcard,
.sps-page .sps-card { border-radius: 6px; box-shadow: none; border-color: #e2e8f0; }
.sps-page .sps-lcard-head { background: #0f172a; padding: 12px 16px; }
.sps-page .sps-lcard-head a { color: #cbd5e1 !important; }
.sps-page .smat-m-inn__head { background: #0f172a; border-radius: 6px 6px 0 0; }
.sps-page .smat-m-inn__head + .smat-m-table { border-radius: 0 0 6px 6px; }
.sps-page .smat-m-card { border-radius: 6px; box-shadow: none; }
.sps-page .smat-m-card__bar { background: #0f172a; }
html body .entry-content .wp-block-table table thead { border: 0 !important; }

/* Menu is not sticky (scrolls away normally). */
.smat-site-navbar { position: relative !important; }

/* All LIVE tags: the same red pill as the header LIVE badge. */
.smat-mini--live .smat-mini__tag,
.smat-hc--live .smat-hc__tag,
.smat-feat--live .smat-feat__chip,
.sps-match--live .sps-mstatus,
.sps-feature--live .sps-mstatus,
.smat-m-vs .sps-mstatus {
	padding: 3px 9px;
	border-radius: 999px;
	background: #ff1a40;
	color: #fff;
	font-weight: 800;
	letter-spacing: .04em;
}
.smat-mini--live .smat-mini__tag::before,
.smat-hc--live .smat-hc__tag::before,
.smat-feat--live .smat-feat__chip::before,
.sps-match--live .sps-mstatus .smat-live-dot,
.sps-feature--live .sps-mstatus .smat-live-dot,
.smat-m-vs .sps-mstatus .smat-live-dot { display: none; }
.smat-sb__count { border: 0; border-radius: 999px; background: #ff1a40; color: #fff; padding: 3px 9px; }
.smat-sb__count::before { background: #fff; }

/* H1 subtitles (player / team pages) and the match page H1. */
.sps-hero h1 .sps-h1-sub { display: block; margin-top: 6px; font: 600 clamp(14px, 1.4vw, 17px)/1.3 var(--sps-nav); letter-spacing: 0; color: #cbd5e1; }
.smat-m-h1 { margin: 0 0 14px !important; font: 800 clamp(20px, 2.2vw, 26px)/1.25 var(--sps-head) !important; color: var(--sps-ink) !important; letter-spacing: -.01em; text-transform: none !important; }

/* "Updated …" line on match pages (others reuse .sps-meta in the banner). */
.smat-m-h1 { margin-bottom: 4px !important; }
.smat-m-updated { margin: 0 0 16px; font: 600 12.5px/1.4 var(--sps-nav); color: var(--sps-muted); }
.smat-m-updated b { color: var(--sps-ink); }
.sps-profile-head .sps-meta { margin-top: 12px; }

/* Homepage blocks: match centre + points snapshot (inside page content). */
.sps-embed { background: transparent; margin: 18px 0 26px; }
.sps-embed .sps-tlink, .sps-embed a.sps-tlink { color: inherit !important; }
.smat-mc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.smat-mc__title { margin: 0 !important; font: 800 20px/1.25 var(--sps-head) !important; color: var(--sps-ink) !important; text-transform: none !important; }
.smat-mc__meta { margin: 0 0 10px; font: 600 12.5px/1.4 var(--sps-nav); color: var(--sps-muted); }
.smat-mc__meta b { color: var(--sps-ink); }
.smat-mc__label { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px !important; font: 800 12px/1.2 var(--sps-nav) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--sps-muted) !important; }
.smat-mc__more { display: flex; align-items: center; gap: 16px; margin: 16px 0 0 !important; }
.sps-embed a { text-decoration: none !important; }
.sps-embed a.sps-tlink:hover, .sps-embed .sps-link:hover { text-decoration: underline !important; }

/* Homepage Match Centre: one match per row, tabs for Live / Today / Results / Upcoming. */
.smat-mc__tabs { margin: 4px 0 12px; }
.smat-mc__tabs .sps-chip { height: 34px; gap: 6px; }
.smat-mc__n { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: #f1edf7; color: var(--sps-ink); font-size: 11.5px; }
.sps-chip.is-on .smat-mc__n { background: rgba(255,255,255,.22); color: #fff; }
.smat-mrows { background: #fff; border: 1px solid var(--sps-line); border-radius: 14px; overflow: hidden; }
.smat-mrow { display: grid; grid-template-columns: 150px minmax(0, 1.25fr) minmax(0, 1fr) 128px; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #edf0f6; }
.smat-mrow:last-child { border-bottom: 0; }
.smat-mrow:hover { background: #fcfbfe; }
.smat-mrow__when { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-family: var(--sps-nav); }
.smat-mrow__when b { color: var(--sps-ink); font-size: 13.5px; }
.smat-mrow__when small { color: var(--sps-muted); font-size: 12px; line-height: 1.35; }
.smat-mrow .sps-mstatus { margin-bottom: 2px; }
.smat-mrow--live .sps-mstatus { background: #fdecee; color: var(--sps-red); }
.smat-mrow--result .sps-mstatus { background: #ecfdf3; color: #067647; }
.smat-mrow__teams { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.smat-mrow__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.smat-mrow__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14.5px/1.3 var(--sps-nav); color: var(--sps-ink); }
.smat-mrow__score { white-space: nowrap; font-family: var(--sps-nav); color: var(--sps-ink); }
.smat-mrow__score b { font-size: 15px; }
.smat-mrow__score small { color: var(--sps-muted); font-size: 12px; }
.smat-mrow--result .smat-mrow__team:not(.is-winner) .smat-mrow__name,
.smat-mrow--result .smat-mrow__team:not(.is-winner) .smat-mrow__score { color: var(--sps-muted); }
.smat-mrow__info { min-width: 0; }
.smat-mrow__note { margin: 0 0 3px !important; font: 600 13px/1.4 var(--sps-nav); color: var(--sps-text); }
.smat-mrow--live .smat-mrow__note { color: var(--sps-red); }
.smat-mrow__info small { display: block; color: var(--sps-muted); font-size: 12px; line-height: 1.4; }
.smat-mrow__go { text-align: right; white-space: nowrap; font-size: 13px; }
.smat-ps .smat-mc__head { align-items: center; margin-bottom: 12px; }
.smat-ps .smat-mc__tabs, .smat-ps .smat-mc__meta { margin: 0; }
@media (max-width: 900px) {
	.smat-mrow { grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; }
	.smat-mrow__info { grid-column: 2; }
	.smat-mrow__go { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
	.smat-mrow { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.smat-mrow__when { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
	.smat-mrow__info, .smat-mrow__go { grid-column: 1; }
}

/* Stats pages: "Explore all SMAT 2026 stats" (all 17 boards with their leaders). */
.smat-sx { margin-top: 36px; }
.smat-sx__h { margin: 0 0 14px !important; font: 800 22px/1.25 var(--sps-head) !important; color: var(--sps-ink) !important; }
.smat-sx__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.smat-sx__col { background: #fff; border: 1px solid var(--sps-line); border-radius: 14px; padding: 14px 8px 8px; }
.smat-sx__g { margin: 0 10px 6px !important; font: 800 12px/1.2 var(--sps-nav) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--sps-muted) !important; }
.smat-sx ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.smat-sx li { margin: 0; border-top: 1px solid #f0f2f7; }
.smat-sx li:first-child { border-top: 0; }
.smat-sx li a { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; text-decoration: none !important; }
.smat-sx li a:hover { background: #faf7fd; }
.smat-sx__l { font: 700 14.5px/1.3 var(--sps-nav); color: var(--sps-ink); }
.smat-sx li a:hover .smat-sx__l { color: var(--sps-purple); }
.smat-sx__v { font-size: 13px; line-height: 1.35; color: var(--sps-muted); }
.smat-sx__v b { color: var(--sps-ink); font-weight: 700; }
.smat-sx li.is-current a { background: #f5f0fb; }
.smat-sx li.is-current .smat-sx__l { color: var(--sps-purple); }
.smat-sx__more { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 !important; }
.smat-sx__more a { display: inline-flex; padding: 7px 14px; border: 1px solid var(--sps-line); border-radius: 999px; background: #fff; font: 700 13px/1.2 var(--sps-nav); color: var(--sps-ink) !important; text-decoration: none !important; }
.smat-sx__more a:hover { border-color: #cdb8e2; color: var(--sps-purple) !important; }
@media (max-width: 700px) { .smat-sx__cols { grid-template-columns: 1fr; } }
