/* Match scorecard page. The hero (sport.css .duel) is the one loud element; everything below
   is quiet glass inlays and tables. */
.match-page { display: grid; gap: 16px; }
.match-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.match-back:hover { color: var(--ember); }

.match-hero { padding: 0 !important; overflow: hidden; }
.match-hero .duel { position: relative; }
/* A soft sun-glow behind the winning side; decorative only. */
.match-hero .duel-side.is-won::before {
    content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,186,73,.55), rgba(255,186,73,0));
    transform: translateY(-30px); pointer-events: none;
}
.match-hero .duel-side { position: relative; z-index: 0; }

.match-innings { display: grid; gap: 16px; }
@media (min-width: 980px) { .match-innings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.innings-card { padding: 16px !important; display: grid; gap: 14px; }
.innings-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.innings-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.innings-total { font-variant-numeric: tabular-nums; color: var(--ink); }
.innings-total strong { font-size: 1.25rem; }
.innings-total small { color: var(--ink-3); }

.sc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .88rem; }
.sc-table th, .sc-table td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--ink-4); color: var(--ink-2); font-weight: 400; }
.sc-table thead th { font-size: .74rem; font-weight: 700; color: var(--ink-3); border-bottom-color: var(--ink-4); }
.sc-table th[scope="row"], .sc-table thead th:first-child { text-align: left; color: var(--ink); }
.sc-table th[scope="row"] { font-weight: 400; }
.sc-table th[scope="row"] a { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.sc-table th[scope="row"] a:hover { color: var(--ember); }
.sc-table th[scope="row"] small { font-size: .72rem; color: var(--ink-3); }
.sc-table small.is-notout { color: var(--ember); font-weight: 700; }
.sc-table .sc-strong { color: var(--ink); font-weight: 800; }
.sc-table tfoot th, .sc-table tfoot td { border-bottom: 0; }
.sc-table .sc-total th, .sc-table .sc-total td { border-top: 1px solid var(--ink-4); color: var(--ink); }
.sc-table--bowl { margin-top: 2px; }

/* Player cells: portrait + name/status */
.sc-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-pname { display: grid; gap: 1px; min-width: 0; }
.sc-pname a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-table .portrait--sm { width: 32px; height: 32px; }
.stat-who { display: flex; align-items: center; gap: 10px; }
.stat-who .portrait--md { width: 40px; height: 40px; font-size: 1rem; }

/* Man of the Match: the dark gold "champion" card from the Hall of Fame, one per match. */
.mvp-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: 24px; color: #fff;
    background: linear-gradient(120deg, #3A2A07 0%, #1F1706 60%, #2E2309 100%);
    box-shadow: 0 16px 36px rgba(110, 72, 0, .32), inset 0 0 0 1.5px rgba(245, 184, 46, .55);
}
.mvp-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 120% at 0% 50%, rgba(245, 184, 46, .32), rgba(245, 184, 46, 0) 70%);
}
.mvp-who { display: grid; gap: 3px; min-width: 0; }
.mvp-label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: #F5B82E; }
.mvp-name { color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp-name:hover { color: #FFE08A; }
.mvp-figs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.mvp-figs i { color: #F5B82E; }
.mvp-score { display: grid; justify-items: end; line-height: 1; }
.mvp-score strong { font-size: 2rem; font-weight: 800; color: #FFE08A; font-variant-numeric: tabular-nums; }
.mvp-score small { font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.mvp-card .portrait { box-shadow: 0 0 0 3px #F5B82E, 0 8px 20px rgba(0, 0, 0, .35); }
@media (max-width: 560px) {
    .mvp-card { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
    .mvp-card .portrait--lg { width: 58px; height: 58px; }
    .mvp-score { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 6px; }
    .mvp-score strong { font-size: 1.4rem; }
}
.sc-mvp { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #F5B82E; color: #1C1606 !important; font-size: .64rem !important; font-weight: 800; vertical-align: 1px; }
