html.match-centre-page {
    overflow-y: auto;
}

.match-centre-page .page-layout.sidebar-layout {
    /* Keep match-centre on the same layout grid as the rest of the site. */
    gap: var(--space-6);
}

.match-centre-page .content-area {
    background: transparent;
    padding: 0;
}

.mc-shell {
    --mc-ink: #0f172a;
    --mc-muted: #475569;
    --mc-border: var(--ui-border, #e5e7eb);
    --mc-surface: #ffffff;
    --mc-surface-soft: #f8fafc;
    --mc-accent: var(--brand-blue, #0a1931);
    --profile-table-border: var(--ui-border, #e5e7eb);
    --profile-table-bg-secondary: #f9fafb;
    --profile-table-bg-hover: #f3f4f6;
    --profile-table-text-primary: #1f2937;
    --profile-table-text-secondary: #6b7280;
    --primary-color: var(--mc-accent);
    display: grid;
    gap: 1.25rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: var(--mc-ink);
}

.mc-shell .profile-data-table .numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.profile-data-table.fixed-width {
    width: max-content;
    min-width: 100%;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mc-shell *,
.mc-shell *::before,
.mc-shell *::after {
    box-sizing: border-box;
}

.mc-card {
    position: relative;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mc-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mc-card__header h2 {
    margin: 0;
    font-family: inherit;
    font-size: 1.25rem;
    letter-spacing: 0.2px;
    color: var(--mc-ink);
}

.mc-card__header p {
    margin: 0.35rem 0 0;
    color: var(--mc-muted);
    font-size: 0.95rem;
}

.mc-card__header--split {
    align-items: center;
}

.mc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mc-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.1);
    color: var(--mc-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Games-page style match banner (used on match-centre pages). */
.mc-scoreboard.mc-game-banner-card {
    background: #ffffff;
    min-height: 0;
    display: block;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

.mc-scoreboard.mc-game-banner-card::before {
    display: none;
}

.mc-scoreboard.mc-game-banner-card .mc-banner-bg {
    display: none;
}

.mc-game-banner__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    padding: 0.56rem 0.76rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.mc-game-banner__meta-item {
    min-width: 0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-game-banner__meta-item--status {
    justify-self: center;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: none;
    overflow: visible;
}

.mc-game-banner__meta-item--status .mc-status {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 0.78rem;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: 1.15;
    text-transform: inherit;
}

.mc-game-banner__meta-item--status .mc-status--final,
.mc-game-banner__meta-item--status .mc-status--upcoming {
    background: transparent;
    color: inherit;
}

.mc-game-banner__meta-item--round {
    justify-self: end;
    text-align: right;
}

.mc-game-banner__actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.mc-game-banner__actions .fs-bookmark-button {
    pointer-events: auto;
}

.mc-game-banner__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.mc-game-banner__back-link:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.mc-game-banner__body {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 172px; /* 30% taller than previous 132px (about 87% taller than 92px baseline). */
    align-items: stretch;
}

.mc-game-banner__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.44rem;
    padding: 0.78rem 0.8rem;
    background: var(--mc-side-color, #0b4ea2);
    color: var(--mc-side-text, #ffffff);
}

.mc-game-banner__team-line {
    display: grid;
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.62rem;
}

.mc-game-banner__logo-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mc-game-banner__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
}

.mc-game-banner__team-copy {
    min-width: 0;
    justify-self: start;
    text-align: left;
}

.mc-game-banner__team-copy--away {
    justify-self: end;
    text-align: right;
}

.mc-game-banner__abbr {
    color: inherit;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.03em;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.mc-game-banner__score {
    min-width: 0;
    text-align: center;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
}

.mc-game-banner__score-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.16rem;
    min-width: 3.1rem;
}

.mc-game-banner__score-stack--home {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

.mc-game-banner__score-stack--away {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
}

.mc-game-banner__scoreline {
    display: block;
    max-width: 12ch;
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.mc-game-banner__score.is-pending {
    font-style: italic;
}

.mc-game-banner__info {
    display: grid;
    gap: 0.22rem;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.mc-game-banner__info--away {
    justify-items: end;
    text-align: right;
}

.mc-game-banner__info-row {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 0.74rem;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-game-banner__info-row--team {
    font-size: 0.86rem;
    font-weight: 800;
}

.mc-game-banner__info-link {
    color: inherit;
    text-decoration: none;
}

.mc-game-banner__info-link:hover {
    text-decoration: underline;
}

.mc-game-banner__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.46rem 0.66rem 0.56rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.mc-game-banner__bubble {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    padding: 0.19rem 0.55rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 600;
}

.mc-game-banner__bubble--venue {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-game-banner__countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    column-gap: clamp(0.42rem, 1.1vw, 0.9rem);
    position: relative;
    padding: 0.74rem 0 0;
    width: min(560px, calc(100% - 1rem));
    pointer-events: none;
}

.mc-countdown-title {
    position: absolute;
    top: -0.12rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    text-align: center;
    font-size: clamp(0.7rem, 1.2vw, 0.92rem);
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.34);
}

.mc-game-banner__countdown-centre {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.mc-game-banner__score-stack.is-countdown-space {
    visibility: hidden;
}

.mc-countdown-half {
    display: grid;
    align-content: center;
    gap: 0.1rem;
    padding: 0.12rem 0.24rem;
}

.mc-countdown-half--left {
    justify-items: end;
    text-align: right;
    padding-right: clamp(0.22rem, 0.7vw, 0.42rem);
}

.mc-countdown-half--right {
    justify-items: start;
    text-align: left;
    padding-left: clamp(0.22rem, 0.7vw, 0.42rem);
}

.mc-countdown-value {
    font-size: clamp(1.42rem, 3.5vw, 2.3rem);
    line-height: 0.96;
    letter-spacing: 0.035em;
    font-weight: 900;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 3px 10px rgba(15, 23, 42, 0.38);
}

.mc-countdown-unit {
    font-size: clamp(0.62rem, 1.15vw, 0.86rem);
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.32);
}

.mc-game-banner__countdown.is-live .mc-countdown-value,
.mc-game-banner__countdown.is-live .mc-countdown-unit {
    color: #ffffff;
}

.mc-game-banner__phase-top {
    position: absolute;
    top: 0.44rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(70vw, 260px);
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(15, 23, 42, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.34);
    pointer-events: none;
}

@media (max-width: 820px) {
    .mc-game-banner__phase-top {
        top: 0.56rem;
        max-width: calc(100% - 7rem);
        font-size: 0.72rem;
        z-index: 7;
    }
}

.mc-game-banner__result-label--abbr {
    display: none;
}

.mc-scoreboard {
    background: #ffffff;
    min-height: 320px;
    padding-top: 1.625rem;
    padding-bottom: 1.625rem;
}

.mc-banner-wrap {
    display: contents;
}

.mc-banner-bg {
    position: absolute;
    inset: 0;
    background: var(--mc-surface);
    z-index: 0;
    pointer-events: none;
}

.mc-scoreboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-blue, #0A1931);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Match centre only: tune shared bookmark colors for white scoreboard background */
#fsMatchBookmark {
    position: absolute;
    z-index: 3;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#fsMatchBookmark::before {
    display: none;
}

.mc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.mc-status--final {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.mc-status--upcoming {
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.12);
    color: var(--mc-accent);
}

.mc-detail__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mc-muted);
    font-weight: 700;
}

.mc-detail__value {
    display: block;
    margin-top: 0.3rem;
    font-weight: 600;
}

.mc-section {
    display: grid;
    gap: 1rem;
}

.mc-section__header h2 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.2px;
}

.mc-section__header p {
    margin: 0.35rem 0 0;
    color: var(--mc-muted);
}

.mc-tablist {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--ui-border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.mc-tablist::-webkit-scrollbar {
    display: none;
}

.mc-tab-panels {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.mc-tab-panel {
    display: block;
    width: 100%;
    min-width: 0;
}

.mc-tab-panel[aria-hidden="true"] {
    display: none;
}

.mc-tab-panel.is-active {
    display: block;
}

.mc-tab-panel .mc-card {
    width: 100%;
}

.mc-tab-panel.is-measure {
    display: block;
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    height: auto;
}

.mc-note {
    background: #fff7ed;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.mc-live-stat-note {
    position: static;
    margin: 0;
    padding: 0.44rem 0.62rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.62rem;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    max-width: min(43rem, 100%);
    box-shadow: none;
}

@media (max-width: 900px) {
    .mc-live-stat-note {
        max-width: none;
        font-size: 0.76rem;
    }
}

.mc-card--interchange {
    margin-top: 0.95rem;
}

.mc-card__header--interchange {
    margin-bottom: 0.4rem;
}

.mc-interchange-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.mc-interchange-panel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: inset 0 3px 0 0 var(--mc-interchange-color, #334155);
    border-radius: 0.7rem;
    padding: 0.62rem 0.68rem;
}

.mc-interchange-panel h3 {
    margin: 0 0 0.42rem;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.mc-interchange-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-interchange-count {
    margin: 0 0 0.42rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.mc-interchange-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.44rem;
    padding: 0.4rem 0;
}

.mc-interchange-item + .mc-interchange-item {
    border-top: 1px solid #e2e8f0;
}

.mc-interchange-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.mc-interchange-item__jersey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f172a;
    background: color-mix(in srgb, var(--mc-interchange-color, #334155) 24%, #ffffff 76%);
}

.mc-interchange-item__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.mc-interchange-item__name:hover {
    text-decoration: underline;
}

.mc-interchange-item__meta {
    font-size: 0.74rem;
    line-height: 1.2;
    color: #475569;
    font-weight: 600;
}

@media (max-width: 860px) {
    .mc-interchange-grid {
        grid-template-columns: 1fr;
    }
}

.mc-select,
.mc-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mc-muted);
    font-weight: 600;
}

.mc-select select,
.mc-filter select {
    appearance: none;
    border: 1px solid rgba(26, 29, 38, 0.18);
    border-radius: 12px;
    padding: 0.55rem 2.3rem 0.55rem 0.8rem;
    background: #fff;
    font-size: 0.9rem;
    color: var(--mc-ink);
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a6575'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

.mc-select select:focus,
.mc-filter select:focus {
    outline: none;
    border-color: var(--mc-accent);
    box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb, 10, 25, 49), 0.15);
}

.mc-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Keep top accent identical across primary match-centre cards. */
.mc-card--compare,
.mc-card--quarters,
.mc-card--players,
.mc-card--timeline,
.mc-card--lineups,
.mc-card--matchups,
.mc-card--poll {
    position: relative;
    overflow: hidden;
}

.mc-card--compare::before,
.mc-card--quarters::before,
.mc-card--players::before,
.mc-card--timeline::before,
.mc-card--lineups::before,
.mc-card--matchups::before,
.mc-card--poll::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1px;
    right: 1px;
    height: 4px;
    background: var(--brand-blue, #0A1931);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.mc-card--poll {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mc-card__header--poll {
    align-items: flex-start;
    margin-bottom: 0.72rem;
    padding: 0.1rem 0 0.72rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-poll-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.mc-poll-option {
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.62rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.mc-poll-option:hover:not(:disabled),
.mc-poll-option:focus-visible:not(:disabled) {
    border-color: var(--mc-accent);
    background: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.mc-poll-option.is-selected {
    border-color: var(--mc-accent);
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.1);
    color: var(--mc-accent);
}

.mc-poll-option:disabled {
    cursor: not-allowed;
    opacity: 0.76;
}

.mc-poll-results {
    margin-top: 0.82rem;
    display: grid;
    gap: 0.38rem;
}

.mc-poll-results__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.mc-poll-results__team,
.mc-poll-results__pct {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mc-poll-results__track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.mc-poll-results__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.mc-poll-results__fill--home {
    background: var(--mc-home, #1f5d57);
}

.mc-poll-results__fill--away {
    background: var(--mc-away, #b45309);
}

.mc-poll-meta {
    margin: 0.7rem 0 0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.mc-poll-message {
    margin: 0.36rem 0 0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.mc-poll-message.is-success {
    color: #065f46;
}

.mc-poll-message.is-error {
    color: #b91c1c;
}

.mc-card--lineups {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mc-card__header--lineups {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-card__header--lineups [data-role="lineup-tabs"].fs-tablist {
    background: #ffffff;
    border-color: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.2);
    box-shadow: none;
}

.mc-card--lineups [data-role="lineup-tabs"].fs-tablist .mc-player-tab-label--abbr {
    display: none;
}

.mc-lineup-panels {
    display: block;
}

.mc-lineup-panel {
    display: block;
}

.mc-lineup-panel[aria-hidden="true"] {
    display: none;
}

.mc-lineup-panel.is-active {
    display: block;
}

.mc-lineup-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.56rem;
    max-height: min(56vh, 620px);
    overflow-y: auto;
}

.mc-lineup-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #f8fafc;
}

.mc-lineup-item__number {
    min-width: 3.1rem;
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-blue-rgb, 10, 25, 49), 0.24);
    background: #ffffff;
    color: var(--mc-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.mc-lineup-item__body {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.mc-lineup-item__name {
    color: var(--mc-ink);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
}

.mc-lineup-item__name:hover {
    text-decoration: underline;
}

.mc-lineup-item__meta {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.mc-card--matchups {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mc-card__header--matchups {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-matchups-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.62rem;
}

.mc-matchups-item {
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #f8fafc;
}

.mc-matchups-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.mc-matchups-item__meta {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mc-matchups-item__view-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(var(--brand-blue-rgb, 10, 25, 49), 0.26);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mc-accent);
    text-decoration: none;
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mc-matchups-item__view-link:hover {
    border-color: var(--mc-accent);
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.06);
}

.mc-matchups-item__scoreline {
    margin-top: 0.34rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.58rem;
}

.mc-matchups-item__team {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.mc-matchups-item__team--home {
    justify-content: flex-start;
    text-align: left;
}

.mc-matchups-item__team--away {
    justify-content: flex-end;
    text-align: right;
}

.mc-matchups-item__team-name {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-matchups-item__team:hover .mc-matchups-item__team-name {
    text-decoration: underline;
}

.mc-matchups-item__team.is-winner .mc-matchups-item__team-name {
    color: var(--mc-accent);
}

.mc-matchups-item__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.mc-matchups-item__score-bubble {
    padding: 0.26rem 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-blue-rgb, 10, 25, 49), 0.22);
    background: #ffffff;
    color: var(--mc-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.mc-matchups-item__score-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mc-matchups-item__score-link:hover {
    border-color: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.45);
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.08);
}

.mc-matchups-item__score-link:focus-visible {
    outline: 2px solid var(--mc-accent);
    outline-offset: 2px;
}

.mc-matchups-item__score-bubble.is-decided {
    border-color: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.4);
}

.mc-matchups-item__score-bubble.is-draw {
    border-color: rgba(100, 116, 139, 0.36);
    color: #334155;
}

.mc-matchups-item__result {
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.mc-matchups-item__result-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 0.15rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mc-matchups-item__result-badge.is-draw {
    border-color: rgba(100, 116, 139, 0.38);
    color: #334155;
}

.mc-matchups-item:hover {
    border-color: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.32);
}

.mc-matchups-item.is-home-winner {
    background: linear-gradient(90deg, rgba(var(--brand-blue-rgb, 10, 25, 49), 0.08) 0%, #f8fafc 52%);
}

.mc-matchups-item.is-away-winner {
    background: linear-gradient(270deg, rgba(var(--brand-blue-rgb, 10, 25, 49), 0.08) 0%, #f8fafc 52%);
}

.mc-matchups-item.is-draw {
    background: #f8fafc;
}

.mc-matchups-item__team:focus-visible,
.mc-matchups-item__view-link:focus-visible {
    outline: 2px solid var(--mc-accent);
    outline-offset: 2px;
    border-radius: 10px;
}

.mc-matchups-item__team:focus-visible {
    border-radius: 8px;
}

.mc-card__header--compare {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-compare-bars {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.9rem;
}

.mc-compare-bars__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(var(--brand-blue-rgb, 10, 25, 49), 0.2);
    border-radius: 12px;
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.05);
}

.mc-compare-bars__team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.83rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    color: #ffffff;
    background: var(--mc-team-chip, var(--mc-accent));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(15, 23, 42, 0.18);
}

.mc-compare-bars__team--home {
    --mc-team-chip: var(--mc-home, #1f5d57);
    justify-self: end;
    color: #ffffff;
}

.mc-compare-bars__team--away {
    --mc-team-chip: var(--mc-away, #b45309);
    justify-self: start;
    color: #ffffff;
}

.mc-compare-bars__team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.96);
    flex-shrink: 0;
}

.mc-compare-bars__team-text {
    display: inline-block;
}

.mc-compare-bars__heading {
    font-size: 0.69rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mc-muted);
    font-weight: 800;
}

.mc-compare-bars__rows {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.mc-compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    background: #ffffff;
}

.mc-compare-row__side {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.mc-compare-row__side--away {
    grid-template-columns: minmax(0, 1fr) auto;
}

.mc-compare-row__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.13rem 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    background-image: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #334155;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mc-compare-row__value.is-winner {
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.mc-compare-row__value.is-winner--home {
    background: var(--mc-home, #1f5d57);
    background-image: none;
}

.mc-compare-row__value.is-winner--away {
    background: var(--mc-away, #b45309);
    background-image: none;
}

.mc-compare-row__value.is-tie {
    background: #e2e8f0;
    background-image: none;
    color: #334155;
}

.mc-compare-row__track {
    display: flex;
    align-items: center;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.mc-compare-row__side--home .mc-compare-row__track {
    justify-content: flex-end;
}

.mc-compare-row__side--away .mc-compare-row__track {
    justify-content: flex-start;
}

.mc-compare-row__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.mc-compare-row__fill--home {
    background: var(--mc-home, #1f5d57);
}

.mc-compare-row__fill--away {
    background: var(--mc-away, #b45309);
}

.mc-compare-row__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    line-height: 1.15;
}

.mc-compare-row__metric {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mc-ink);
    text-transform: uppercase;
}

.mc-label {
    font-weight: 600;
    color: var(--mc-ink);
    text-align: left;
}

.mc-card__header--quarters {
    align-items: flex-start;
}

.mc-quarter-table-wrap {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    padding: 0;
    overflow: hidden;
}

.mc-quarter-table-wrap .profile-table-inner {
    border-radius: 14px;
    border: 0;
    padding-inline: 0;
    margin: 0;
    background: transparent;
}

.mc-quarter-table {
    width: 100%;
    min-width: max(620px, 100%);
}

.mc-quarter-table thead th {
    background: #edf2f7;
    color: #475569;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.mc-quarter-table thead th:first-child {
    min-width: 15.25rem;
    text-align: left;
}

.mc-card--quarters .profile-table-sticky .mc-quarter-table thead th:first-child {
    background: #edf2f7 !important;
    color: #475569 !important;
}

.mc-quarter-table thead th:not(:first-child),
.mc-quarter-table tbody td:not(:first-child) {
    text-align: center;
}

.mc-quarter-table tbody td,
.mc-quarter-table tbody th {
    background: #ffffff;
}

.mc-quarter-table tbody th {
    text-align: left;
    border-bottom: 1px solid var(--profile-table-border);
}

.mc-quarter-table tbody tr:last-child th {
    border-bottom: none;
}

.mc-card--quarters .profile-table-sticky .mc-quarter-table tbody th:first-child {
    background: var(--profile-table-bg-primary, #ffffff) !important;
    color: var(--mc-ink) !important;
}

.mc-card--quarters .profile-table-sticky .mc-quarter-table tbody tr:hover th:first-child {
    background: #ffffff !important;
}

.mc-card--quarters .mc-quarter-table tbody tr:hover td,
.mc-card--quarters .mc-quarter-table tbody tr:hover th {
    background: #ffffff !important;
}

.mc-quarter-table thead th:first-child {
    border-top-left-radius: 14px;
}

.mc-quarter-table thead th:last-child {
    border-top-right-radius: 14px;
}

.mc-quarter-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 14px;
}

.mc-quarter-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.mc-quarter-team-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 0;
}

.mc-quarter-team-link__logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: #f8fafc;
}

.mc-quarter-team-link__name {
    color: var(--mc-ink);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-quarter-team-link__abbr-mobile {
    display: none;
    color: var(--mc-ink);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mc-quarter-table td.mc-num {
    font-weight: 700;
    color: var(--mc-ink);
    white-space: nowrap;
}

.mc-quarter-final {
    font-weight: 800 !important;
}

.mc-quarter-final.is-winner {
    color: var(--mc-accent) !important;
    background: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.1) !important;
}

.mc-quarter-final.is-loser {
    color: #475569 !important;
}

.mc-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .mc-card__header--quarters {
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .mc-quarter-table thead th {
        font-size: clamp(0.56rem, 1.85vw, 0.66rem);
        letter-spacing: clamp(0.08em, 0.35vw, 0.11em);
    }

    .mc-quarter-table td.mc-num,
    .mc-quarter-table .mc-quarter-final {
        font-size: clamp(0.68rem, 2.2vw, 0.9rem);
    }

    .mc-quarter-table thead th:not(:first-child),
    .mc-quarter-table tbody td:not(:first-child) {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .mc-quarter-team-link {
        grid-template-columns: auto auto;
        gap: 0.24rem;
        justify-content: flex-start;
        text-align: left;
    }

    .mc-quarter-team-link__logo {
        width: 14px;
        height: 14px;
        border-radius: 4px;
    }

    .mc-quarter-team-link__name {
        display: none;
    }

    .mc-quarter-team-link__abbr-mobile {
        display: inline-block;
        font-size: clamp(0.62rem, 2.1vw, 0.74rem);
        letter-spacing: 0.06em;
        justify-self: start;
        text-align: left;
    }

    .mc-quarter-table thead th:first-child,
    .mc-quarter-table tbody th:first-child {
        min-width: 5.35rem !important;
        width: 5.35rem;
        max-width: 5.35rem;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
}

/* Active match-centre player table uses fs-player-table; keep stat headers/cells centered. */
.mc-card--players .fs-player-table thead th:not(:first-child),
.mc-card--players .fs-player-table tbody td:not(:first-child),
.mc-card--players .fs-player-table th.numeric,
.mc-card--players .fs-player-table td.numeric {
    text-align: center !important;
}

.mc-card--players .fs-player-table th:first-child,
.mc-card--players .fs-player-table td:first-child {
    text-align: left !important;
}

.mc-card--players .fs-player-table thead th:not(:first-child) .mc-sort-button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .mc-quarter-table thead th:first-child {
        min-width: 4.7rem !important;
        width: 4.7rem;
        max-width: 4.7rem;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }

    .mc-quarter-table tbody th:first-child {
        min-width: 4.7rem !important;
        width: 4.7rem;
        max-width: 4.7rem;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }

    .mc-quarter-team-link__abbr-mobile {
        font-size: clamp(0.6rem, 3vw, 0.72rem);
    }

    .mc-quarter-table thead th:not(:first-child),
    .mc-quarter-table tbody td:not(:first-child) {
        padding-left: 0.44rem;
        padding-right: 0.44rem;
    }

    .mc-compare-bars {
        padding: 0.7rem;
    }

    .mc-compare-bars__header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.35rem;
        padding: 0.5rem 0.55rem;
        text-align: center;
    }

    .mc-compare-bars__team--home,
    .mc-compare-bars__team--away {
        justify-self: center;
    }

    .mc-compare-bars__team {
        font-size: 0.72rem;
        gap: 0.3rem;
        letter-spacing: 0.08em;
    }

    .mc-compare-bars__team-logo {
        width: 16px;
        height: 16px;
    }

    .mc-compare-bars__team-text {
        display: inline-flex;
        align-items: center;
        min-height: 16px;
        line-height: 1;
    }

    .mc-compare-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.55rem;
    }

    .mc-compare-row__label {
        grid-column: auto;
        order: 1;
        align-items: flex-start;
        text-align: left;
    }

    .mc-compare-row__metric {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    .mc-compare-row__side--home {
        order: 2;
    }

    .mc-compare-row__side--away {
        order: 3;
    }

    .mc-compare-row__side {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.4rem;
    }

    .mc-compare-row__side--home {
        justify-items: stretch;
    }

    .mc-compare-row__side--away {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
    }

    .mc-compare-row__value {
        min-width: 2rem;
        font-size: 0.68rem;
    }

    .mc-compare-row__track {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .mc-quarter-table thead th:first-child,
    .mc-quarter-table tbody th:first-child {
        min-width: 4.35rem !important;
        width: 4.35rem;
        max-width: 4.35rem;
    }
}

.mc-home {
    color: var(--mc-home, #1f5d57);
}

.mc-away {
    color: var(--mc-away, #b45309);
}

.mc-link {
    color: var(--mc-accent);
    font-weight: 600;
    text-decoration: none;
}

.mc-link:hover {
    text-decoration: underline;
}

.mc-link.mc-compare-bars__team,
.mc-link.mc-compare-bars__team:hover {
    color: #ffffff;
    text-decoration: none;
}

.mc-timeline-graph {
    position: relative;
    --mc-lane-step: 12px;
    --mc-lane-base: 30px;
    --mc-callout-base: 8px;
    --mc-callout-step: 32px;
    --mc-event-lanes: 0;
    --mc-marker-lanes: 0;
    --mc-timeline-min-width: 1200px;
    --mc-event-min-height-base: 230px;
    --mc-event-min-height-step: 36px;
    --mc-marker-min-height-base: 430px;
    --mc-marker-min-height-step: 20px;
    padding: calc(10.75rem + (var(--mc-marker-lanes) * 0.85rem)) 0 2.85rem;
    min-height: max(
        calc(var(--mc-event-min-height-base) + (var(--mc-event-lanes) * var(--mc-event-min-height-step))),
        calc(var(--mc-marker-min-height-base) + (var(--mc-marker-lanes) * var(--mc-marker-min-height-step)))
    );
    margin-bottom: 1rem;
    min-width: var(--mc-timeline-min-width);
}

.mc-timeline-scroll {
    overflow: visible;
    padding: 0;
    width: 100%;
}

.mc-timeline-scroll--hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.mc-timeline-legend--hidden {
    display: none !important;
}

.mc-timeline-scrollbar {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.5rem 24px 0.75rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.mc-timeline-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(26, 29, 38, 0.18);
}

.mc-timeline-events,
.mc-timeline-markers {
    position: absolute;
    inset: 0;
}

.mc-timeline-dot {
    position: absolute;
    left: var(--mc-pos);
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--mc-dot-color, var(--mc-accent));
    transform: translate(-50%, -50%) translateY(calc(var(--mc-lane-dir, 0) * (var(--mc-lane-base) + (var(--mc-lane, 0) * var(--mc-lane-step)))));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 3;
}

.mc-timeline-dot.is-goal {
    width: 12px;
    height: 12px;
    background: var(--mc-dot-color, var(--mc-accent));
}

.mc-timeline-dot.is-behind {
    opacity: 0.75;
    background: transparent;
}

.mc-timeline-dot--home {
    --mc-dot-color: var(--mc-home, #1f5d57);
    --mc-lane-dir: -1;
}

.mc-timeline-dot--away {
    --mc-dot-color: var(--mc-away, #b45309);
    --mc-lane-dir: 1;
}

.mc-timeline-dot.is-active {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transform: translate(-50%, -50%) translateY(calc(var(--mc-lane-dir, 0) * (var(--mc-lane-base) + (var(--mc-lane, 0) * var(--mc-lane-step))))) scale(1.05);
}

.mc-timeline-stem {
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(26, 29, 38, 0.2);
    transform: translateX(-50%);
    height: var(--mc-stem, 30px);
}

.mc-timeline-dot--home .mc-timeline-stem {
    top: 100%;
}

.mc-timeline-dot--away .mc-timeline-stem {
    bottom: 100%;
}

.mc-timeline-bubble {
    position: absolute;
    left: 50%;
    transform: translate(var(--mc-bubble-anchor, -50%), -6px);
    top: auto;
    bottom: calc(100% + 10px);
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 0.22rem 0.45rem;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    font-size: 0.6rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    text-align: var(--mc-bubble-align, center);
}

.mc-timeline-dot:hover .mc-timeline-bubble {
    opacity: 1;
    transform: translate(var(--mc-bubble-anchor, -50%), 0);
}

.mc-timeline-dot:hover {
    z-index: 5;
}

.mc-timeline-bubble__title {
    display: block;
    font-weight: 600;
    color: var(--mc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-timeline-bubble__meta {
    display: block;
    color: var(--mc-muted);
    font-size: 0.55rem;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-marker {
    position: absolute;
    left: var(--mc-pos);
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    pointer-events: auto;
    width: 0;
    cursor: default;
    z-index: 2;
}

.mc-marker::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(26, 29, 38, 0.18);
    left: 50%;
    transform: translateX(-50%);
}

.mc-marker-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    padding: 0.18rem 0.45rem;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--mc-ink);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-marker--quarter .mc-marker-label {
    top: 0;
    transform: translate(-50%, -10%);
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5f5;
}

.mc-marker--lead .mc-marker-label {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.3);
}

.mc-marker--comeback .mc-marker-label {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.3);
}

.mc-marker--swing .mc-marker-label {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}

.mc-marker--callout {
    z-index: 4;
}

.mc-marker--callout .mc-marker-label {
    top: calc(var(--mc-callout-base) + (var(--mc-marker-lane, 0) * var(--mc-callout-step)));
    transform: translate(var(--mc-marker-anchor, -50%), 0);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.62rem;
    line-height: 1.15;
    white-space: normal;
    width: clamp(132px, 13vw, 156px);
    min-width: 132px;
    max-width: 156px;
    text-align: var(--mc-marker-align, left);
    padding: 0.26rem 0.52rem;
    overflow: visible;
    text-overflow: clip;
}

.mc-marker--callout::after {
    top: calc(var(--mc-callout-base) + 34px + (var(--mc-marker-lane, 0) * var(--mc-callout-step)));
    bottom: 50%;
}

.mc-marker--callout::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 2px solid currentColor;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 3;
}

.mc-marker--lead {
    color: #0f766e;
}

.mc-marker--comeback {
    color: #1d4ed8;
}

.mc-marker--swing {
    color: #b45309;
}

.mc-marker--edge {
    color: #0f172a;
}

.mc-marker-title {
    display: block;
    font-weight: 700;
    font-size: 0.62rem;
    color: inherit;
}

.mc-marker-time {
    display: block;
    font-size: 0.6rem;
    color: var(--mc-muted);
    margin-top: 0.15rem;
}

.mc-timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.mc-legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--mc-surface-soft);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mc-ink);
}

.mc-legend-time {
    font-size: 0.7rem;
    color: var(--mc-muted);
    font-weight: 500;
}

.mc-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.mc-event-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    background: #fff;
    scroll-margin-block: 6rem;
}

.mc-event-item.is-deep-linked {
    background: #fff7cc;
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2), 0 12px 28px rgba(120, 53, 15, 0.2);
}

.mc-event-item.is-deep-linked:focus {
    outline-color: #b45309;
}

.mc-event-item--home {
    border-left: 4px solid var(--mc-home, #1f5d57);
}

.mc-event-item--away {
    border-left: 4px solid var(--mc-away, #b45309);
}

.mc-event-media {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.mc-event-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--mc-border);
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mc-event-team-logo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mc-event-player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.mc-event-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--mc-accent);
    font-weight: 700;
    font-size: 0.7rem;
}

.mc-event-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-event-avatar__fallback {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mc-accent);
}

.mc-event-player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mc-event-player-name {
    color: var(--mc-ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-event-type {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mc-muted);
}

.mc-event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--mc-muted);
}

.mc-event-score {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--mc-ink);
}


.mc-player-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mc-player-tools .fs-stat-guide {
    margin-left: auto;
}

.mc-card--players .profile-data-table thead th.profile-sortable .mc-sort-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
}

.mc-card--players .profile-data-table thead th.profile-sortable .mc-sort-button > span {
    display: inline-block;
}

.mc-card--players .profile-data-table thead th.profile-sortable .mc-sort-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
    border-radius: 4px;
}

.mc-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.mc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e8ecef;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-avatar--jersey {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.mc-avatar-jersey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.mc-player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mc-player-name {
    color: var(--mc-ink);
    font-weight: 600;
    text-decoration: none;
}

.mc-player-name:hover {
    color: var(--mc-accent);
    text-decoration: underline;
}

.mc-player-name:focus-visible {
    outline: 2px solid var(--mc-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.mc-player-team {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: var(--mc-accent);
    text-decoration: none;
}

.mc-player-position {
    display: block;
    font-size: 0.7rem;
    color: var(--mc-muted);
}

.mc-player-popup {
    --mc-popup-team: var(--mc-accent);
    position: fixed;
    z-index: 18050;
    width: min(22rem, calc(100vw - 1rem));
    width: min(22rem, calc(100dvw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.mc-player-popup.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mc-player-popup__card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--mc-popup-team);
    border-top-width: 3px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2), 0 2px 8px rgba(15, 23, 42, 0.08);
    padding: 0.8rem 0.85rem 0.75rem;
    color: var(--mc-ink);
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mc-player-popup__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0 0 0.62rem;
}

.mc-player-popup__team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.26rem 0.54rem;
    border-radius: 999px;
    border: 1px solid var(--mc-popup-team);
    background: #ffffff;
    color: var(--mc-popup-team);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    min-width: 0;
}

.mc-player-popup__team-link:hover {
    background: #f8fafc;
}

.mc-player-popup__team-link:focus-visible {
    outline: 2px solid var(--mc-popup-team);
    outline-offset: 2px;
}

.mc-player-popup__team-logo {
    width: 1.12rem;
    height: 1.12rem;
    object-fit: contain;
    flex-shrink: 0;
}

.mc-player-popup__team-text {
    line-height: 1;
    white-space: nowrap;
}

.mc-player-popup__close {
    position: static;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 999px;
    background: #eeeeee;
    color: var(--mc-popup-team);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.mc-player-popup__close:hover {
    background: #dddddd;
}

.mc-player-popup__close:focus-visible {
    outline: 2px solid var(--mc-popup-team);
    outline-offset: 1px;
}

.mc-player-popup__header {
    margin: 0 0 0.55rem;
}

.mc-player-popup__name {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.mc-player-popup__meta {
    margin: 0.16rem 0 0;
    color: var(--mc-muted);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.mc-player-popup__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem 0.52rem;
}

.mc-player-popup__stat {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.mc-player-popup__stat dt {
    margin: 0;
    font-size: 0.66rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mc-player-popup__stat dd {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.mc-player-popup__stat.is-supercoach {
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-left: 3px solid var(--mc-popup-team);
    border-radius: 8px;
    padding: 0.28rem 0.42rem;
}

.mc-player-popup__empty {
    grid-column: 1 / -1;
    font-size: 0.74rem;
    color: var(--mc-muted);
    padding: 0.2rem 0;
}

.mc-player-popup__profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.72rem;
    width: 100%;
    min-height: 2rem;
    border-radius: 10px;
    border: 1px solid var(--mc-popup-team);
    background: #f1f5f9;
    color: var(--mc-popup-team);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
}

.mc-player-popup__profile-link:hover {
    background: #e2e8f0;
}

.mc-player-popup__profile-link:focus-visible {
    outline: 2px solid var(--mc-popup-team);
    outline-offset: 2px;
}

.mc-avatar--team {
    border: 1px solid var(--mc-border);
    background: #fff;
}

.mc-player-stats-table td.numeric {
    padding-right: 0.75rem;
}

.fs-tablist {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    padding: 0.25rem;
    gap: 0.35rem;
}

.fs-tab {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.mc-card--players [data-role="player-tabs"].fs-tablist .mc-player-tab-label--abbr {
    display: none;
}

.mc-tablist .nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary, #4b5563);
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}

.mc-tablist .nav-tab:hover:not(.active):not(.is-active) {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.mc-tablist .nav-tab.active,
.mc-tablist .nav-tab.is-active {
    background: var(--primary-color, var(--mc-accent));
    color: #fff;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
}

.mc-tablist .nav-tab:focus-visible,
.fs-tab:focus-visible {
    outline: 2px solid var(--mc-accent);
    outline-offset: 2px;
}

.fs-tab.is-active {
    background: var(--mc-accent);
    color: #fff;
}

.fs-player-panel {
    display: block;
}

.fs-player-panel[aria-hidden="true"] {
    display: none;
}

.fs-player-panel.is-active {
    display: block;
}

.team-total-row {
    background: #1f2937;
    color: #f8fafc;
}

.team-total-row td,
.team-total-row th,
.team-total-row strong {
    color: #f8fafc;
    background: #1f2937;
}

.profile-table-sticky .team-total-row td:first-child,
.profile-table-sticky .team-total-row th:first-child {
    background: #1f2937;
}

.team-total-row a {
    color: #f8fafc;
}

/* Keep team totals row visually fixed (no hover color shift). */
.mc-card--players .mc-player-stats-table tbody tr.team-total-row:hover td,
.mc-card--players .mc-player-stats-table tbody tr.team-total-row:hover th,
.mc-card--players .profile-table-sticky .mc-player-stats-table tbody tr.team-total-row:hover td:first-child {
    background: #1f2937 !important;
    color: #f8fafc !important;
}

/* Player statistics table: sticky header row + aligned stat columns. */
.mc-card--players {
    --mc-player-table-max-height: min(48vh, 560px);
    --mc-player-stat-col-min-width: 3.4rem;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mc-card__header--players {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.mc-card__header--players [data-role="player-tabs"].fs-tablist {
    background: #ffffff;
    border-color: rgba(var(--brand-blue-rgb, 10, 25, 49), 0.2);
    box-shadow: none;
}

.mc-card--players .profile-table-outer {
    overflow: visible;
    position: relative;
}

.mc-card--players .mc-player-stats-table {
    border-collapse: separate;
    border-spacing: 0;
}

.mc-card--players .mc-player-stats-table tbody td {
    border-bottom: 1px solid var(--profile-table-border, #e5e7eb);
}

.mc-card--players .mc-player-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.mc-card--players .profile-table-inner {
    overflow-x: auto;
    overflow-y: auto;
    max-height: var(--mc-player-table-max-height);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #94a3b8 #f1f5f9;
    padding-inline: 0;
}

.mc-card--players .profile-table-inner::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.mc-card--players .profile-table-inner::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.mc-card--players .profile-table-inner::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

.mc-card--players .profile-table-inner::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.mc-card--players .mc-player-stats-table thead th {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--profile-table-bg-secondary, #f9fafb);
    color: var(--profile-table-text-primary, #1f2937);
    border-bottom: 1px solid var(--profile-table-border, #e5e7eb);
}

.mc-card--players .profile-table-sticky .mc-player-stats-table thead th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 11;
    background: var(--profile-table-bg-secondary, #f9fafb);
    color: var(--profile-table-text-primary, #1f2937);
}

.mc-card--players .profile-table-sticky .mc-player-stats-table thead th:not(:first-child) {
    left: auto !important;
}

.mc-card--players .profile-table-sticky .mc-player-stats-table tbody td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 6;
    background-clip: padding-box;
}

.mc-card--players .mc-player-stats-table thead th:not(:first-child),
.mc-card--players .mc-player-stats-table tbody td:not(:first-child),
.mc-card--players .mc-player-stats-table td.numeric,
.mc-card--players .mc-player-stats-table th.numeric {
    text-align: center !important;
    min-width: var(--mc-player-stat-col-min-width);
}

/* Longer stat abbreviations need extra room so labels don't collide with sort icons. */
.mc-card--players .mc-player-stats-table thead th[data-sort-key="marksInside50"],
.mc-card--players .mc-player-stats-table thead th[data-sort-key="centreClearances"],
.mc-card--players .mc-player-stats-table thead th[data-sort-key="hitoutToAdvantageRate"],
.mc-card--players .mc-player-stats-table thead th[data-sort-key="centreBounceAttendancePercentage"],
.mc-card--players .mc-player-stats-table thead th[data-sort-key="percentageGamePlayed"] {
    min-width: 5.5rem !important;
}

.mc-card--players .mc-player-stats-table th:not(:first-child),
.mc-card--players .mc-player-stats-table td.numeric {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mc-card--players .mc-player-stats-table th:first-child,
.mc-card--players .mc-player-stats-table td:first-child {
    padding-left: var(--profile-table-cell-inline);
}

.mc-card--players .mc-player-stats-table th:last-child,
.mc-card--players .mc-player-stats-table td:last-child {
    padding-right: var(--profile-table-cell-inline);
}

.mc-card--players .mc-player-stats-table .numeric {
    text-align: center !important;
}

.mc-card--players .mc-player-stats-table th,
.mc-card--players .mc-player-stats-table td {
    text-align: center !important;
}

.mc-card--players .mc-player-stats-table th:first-child,
.mc-card--players .mc-player-stats-table td:first-child {
    text-align: left !important;
}

/* Rebuilt player stats headers: direct sortable cells (no nested button). */
.mc-card--players .mc-player-stats-table th.profile-sortable {
    cursor: pointer;
    user-select: none;
}

.mc-card--players .mc-player-stats-table th.profile-sortable > span {
    display: inline-block;
}

.mc-card--players .mc-player-stats-table th.profile-sortable:focus-visible {
    outline: 2px solid var(--mc-accent);
    outline-offset: -2px;
    border-radius: 6px;
}

.mc-card--players .mc-player-stats-table th.profile-sortable:hover {
    background: var(--profile-table-bg-hover, #f3f4f6);
    color: var(--profile-table-text-primary, #1f2937);
}

@media (max-width: 820px) {
    .mc-card--players {
        --mc-player-table-max-height: min(68vh, 560px);
        --mc-player-stat-col-min-width: 3.1rem;
    }

    .mc-card--players .profile-table-outer {
        --mc-player-sticky-col-width: clamp(9.75rem, 46vw, 12.2rem);
        --mc-player-sticky-col-shadow: 2px 0 0 rgba(148, 163, 184, 0.22), 10px 0 16px -14px rgba(15, 23, 42, 0.45);
        --mc-player-sticky-col-pad-inline: var(--profile-table-cell-inline);
    }

    .mc-card--players .mc-player-stats-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    /* Mobile only: reduce table text size by 15%. */
    .mc-card--players .fs-player-table {
        font-size: 85%;
    }

    .mc-card--players .fs-player-table .mc-player-team,
    .mc-card--players .fs-player-table .mc-player-position {
        font-size: 0.595rem;
    }

    /* Mobile only: shrink jersey number bubble. */
    .mc-card--players .fs-player-table .player-cell {
        gap: 0.5rem;
    }

    .mc-card--players .fs-player-table .mc-avatar--jersey {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .mc-card--players .fs-player-table .mc-avatar-jersey {
        font-size: 0.62rem;
    }

    /* Mobile: lock player column while horizontally scrolling stats. */
    .mc-card--players .profile-table-sticky .mc-player-stats-table thead th:first-child,
    .mc-card--players .profile-table-sticky .mc-player-stats-table tbody td:first-child {
        position: -webkit-sticky !important;
        position: sticky !important;
        inset-inline-start: 0 !important;
        left: 0 !important;
        width: var(--mc-player-sticky-col-width);
        min-width: var(--mc-player-sticky-col-width);
        max-width: var(--mc-player-sticky-col-width);
        box-sizing: border-box;
        overflow: hidden;
        background-clip: padding-box;
        padding-left: var(--mc-player-sticky-col-pad-inline);
        padding-right: var(--mc-player-sticky-col-pad-inline);
        border-right: 1px solid rgba(148, 163, 184, 0.24);
        background: var(--profile-table-bg-primary, #ffffff);
        box-shadow: var(--mc-player-sticky-col-shadow);
    }

    .mc-card--players .profile-table-sticky .mc-player-stats-table thead th:first-child {
        background: var(--profile-table-bg-secondary, #f9fafb);
        color: var(--profile-table-text-primary, #1f2937);
        z-index: 12;
    }

    .mc-card--players .profile-table-sticky .mc-player-stats-table tbody td:first-child {
        z-index: 9;
    }

    .mc-card--players .profile-table-sticky .mc-player-stats-table tbody tr:hover td:first-child {
        background: var(--profile-table-bg-hover, #f3f4f6);
    }

    .mc-card--players .profile-table-sticky .mc-player-stats-table tbody tr.team-total-row td:first-child {
        background: #1f2937 !important;
        box-shadow: none;
    }

    .mc-card--players .profile-table-sticky .mc-player-stats-table td:first-child .mc-player-name {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mc-card--players .mc-player-stats-table thead th[data-sort-key="marksInside50"],
    .mc-card--players .mc-player-stats-table thead th[data-sort-key="centreClearances"],
    .mc-card--players .mc-player-stats-table thead th[data-sort-key="hitoutToAdvantageRate"],
    .mc-card--players .mc-player-stats-table thead th[data-sort-key="centreBounceAttendancePercentage"],
    .mc-card--players .mc-player-stats-table thead th[data-sort-key="percentageGamePlayed"] {
        min-width: 5rem !important;
    }

}

.mc-empty {
    padding: 1rem;
    border-radius: 12px;
    background: var(--mc-surface-soft);
    color: var(--mc-muted);
    font-weight: 600;
    text-align: center;
}

@media (max-width: 900px) {
    .mc-filter-row {
        flex-direction: column;
    }
    .mc-player-tools,
    .mc-toolbar {
        justify-content: flex-start;
    }
    .mc-timeline-graph {
        --mc-event-min-height-base: 180px;
        --mc-event-min-height-step: 24px;
        --mc-marker-min-height-base: 300px;
        --mc-marker-min-height-step: 16px;
        padding: calc(7.4rem + (var(--mc-marker-lanes) * 0.6rem)) 0 2.2rem;
    }
}

@media (max-width: 820px) {
    .mc-tablist {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        overflow: hidden !important;
        white-space: normal !important;
        padding: 0.35rem 0 0;
        border-radius: 16px;
    }

    .mc-tablist::before {
        top: 1px;
        left: 1px;
        right: 1px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .mc-tablist .nav-tab {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    /* Mobile-only: keep home/away team options as two fixed buttons (no horizontal scroll). */
    .mc-card--players .mc-card__header--split {
        flex-direction: column;
        align-items: stretch;
    }
    .mc-card--players [data-role="player-tabs"].fs-tablist {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        overflow: visible !important;
    }
    .mc-card--players [data-role="player-tabs"].fs-tablist .fs-tab {
        flex: 1 1 auto;
        width: 100%;
        border: 1px solid var(--mc-border);
        background: #f1f5f9;
        color: #475569;
        white-space: normal;
        text-align: center;
        padding: 0.55rem 0.65rem;
    }

    .mc-card--players [data-role="player-tabs"].fs-tablist .mc-player-tab-label--full {
        display: none;
    }

    .mc-card--players [data-role="player-tabs"].fs-tablist .mc-player-tab-label--abbr {
        display: inline;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mc-card--players [data-role="player-tabs"].fs-tablist .fs-tab.is-active {
        background: var(--mc-accent);
        border-color: var(--mc-accent);
        color: #fff;
    }

    .mc-card--lineups .mc-card__header--split {
        flex-direction: column;
        align-items: stretch;
    }

    .mc-card--lineups [data-role="lineup-tabs"].fs-tablist {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        overflow: visible !important;
    }

    .mc-card--lineups [data-role="lineup-tabs"].fs-tablist .fs-tab {
        flex: 1 1 auto;
        width: 100%;
        border: 1px solid var(--mc-border);
        background: #f1f5f9;
        color: #475569;
        white-space: normal;
        text-align: center;
        padding: 0.55rem 0.65rem;
    }

    .mc-card--lineups [data-role="lineup-tabs"].fs-tablist .mc-player-tab-label--full {
        display: none;
    }

    .mc-card--lineups [data-role="lineup-tabs"].fs-tablist .mc-player-tab-label--abbr {
        display: inline;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mc-card--lineups [data-role="lineup-tabs"].fs-tablist .fs-tab.is-active {
        background: var(--mc-accent);
        border-color: var(--mc-accent);
        color: #fff;
    }

    .mc-matchups-item__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .mc-matchups-item__scoreline {
        gap: 0.42rem;
    }

    .mc-matchups-item__logo {
        width: 22px;
        height: 22px;
    }

    .mc-matchups-item__team {
        gap: 0.32rem;
        font-size: 0.78rem;
    }

    .mc-matchups-item__score-bubble {
        padding: 0.2rem 0.48rem;
        font-size: 0.7rem;
    }

    .mc-matchups-item__meta,
    .mc-matchups-item__result {
        font-size: 0.68rem;
    }

    .mc-game-banner__bubble--result .mc-game-banner__result-label--full {
        display: none;
    }

    .mc-game-banner__bubble--result .mc-game-banner__result-label--abbr {
        display: inline;
    }
}

/* Desktop/tablet (non-mobile): keep teams and scores centered in banner body. */
@media (min-width: 821px) {
    .mc-card--players {
        --mc-player-table-max-height: min(64.8vh, 756px);
    }

    .mc-card--players .profile-table-inner {
        /* Desktop horizontal scrolling is controlled via the custom bottom bar. */
        overflow-x: hidden;
    }
}

@media (max-width: 600px) {
    .mc-shell {
        padding: 0;
    }
    .fs-tablist {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .fs-tablist .fs-tab {
        flex: 0 0 auto;
    }
    .mc-event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-event-meta {
        align-items: flex-start;
    }
    .mc-pagination {
        justify-content: flex-start;
    }
}

/* Responsive behaviour for the games-style match banner. */
@media (max-width: 980px) {
    .mc-game-banner__meta {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .mc-game-banner__meta-item--round {
        justify-self: end;
        text-align: right;
    }

    .mc-game-banner__actions {
        grid-column: auto;
        justify-self: auto;
    }

    .mc-game-banner__score {
        font-size: 2.1rem;
    }
}

@media (max-width: 680px) {
    .mc-game-banner__body {
        grid-template-columns: 1fr 1fr;
        min-height: clamp(208px, 56vw, 248px);
    }

    .mc-game-banner__side {
        padding: 0.62rem 0.62rem;
        gap: 0.36rem;
    }

    .mc-game-banner__team-line {
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) auto;
        gap: 0.42rem;
    }

    .mc-game-banner__logo {
        width: 34px;
        height: 34px;
    }

    .mc-game-banner__abbr {
        font-size: 0.98rem;
    }

    .mc-game-banner__score {
        font-size: 1.62rem;
    }

    .mc-game-banner__scoreline {
        font-size: 0.66rem;
        max-width: 10.5ch;
    }

    .mc-game-banner__info {
        gap: 0.18rem;
        padding-top: 0.28rem;
    }

    .mc-game-banner__info-row {
        font-size: 0.62rem;
    }

    .mc-game-banner__info-row--team {
        font-size: 0.72rem;
    }

    .mc-game-banner__meta-item,
    .mc-game-banner__meta-item--status .mc-status {
        font-size: 0.7rem;
    }

    .mc-game-banner__countdown {
        width: calc(100% - 0.8rem);
        column-gap: clamp(0.28rem, 2vw, 0.52rem);
        padding-top: 0.64rem;
    }

    .mc-game-banner__countdown-centre {
        top: 51%;
    }

    .mc-countdown-value {
        font-size: clamp(1.08rem, 5.1vw, 1.5rem);
    }

    .mc-countdown-title {
        font-size: 0.62rem;
        letter-spacing: 0.095em;
    }

    .mc-countdown-unit {
        font-size: 0.56rem;
        letter-spacing: 0.085em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-card {
        animation: none;
    }
    .fs-bookmark-button,
    .stat-guide-hover-tooltip {
        transition: none;
    }
}
.mc-card--timeline {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Legacy canonical IDs that represent multiple physical historical games. */
.mc-disambiguation {
    width: min(960px, calc(100% - 2rem));
    margin: 1.25rem auto 3rem;
    color: var(--text-primary, #0f172a);
}

.mc-disambiguation__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.86rem;
}

.mc-disambiguation__breadcrumbs a {
    color: #1d4ed8;
    text-underline-offset: 0.18em;
}

.mc-disambiguation__header {
    padding: clamp(1.25rem, 3vw, 2.1rem);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 18px;
    background: linear-gradient(135deg, #0a1931 0%, #163764 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.mc-disambiguation__eyebrow,
.mc-disambiguation__round {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-disambiguation__header h1 {
    margin: 0.4rem 0 0.3rem;
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.mc-disambiguation__explanation {
    margin: 1.2rem 0 0;
    font-size: clamp(1rem, 2.3vw, 1.15rem);
    line-height: 1.55;
}

.mc-disambiguation__instruction {
    margin: 0.2rem 0 0;
    color: #dbeafe;
    font-weight: 600;
}

.mc-disambiguation__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mc-disambiguation-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: var(--surface, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mc-disambiguation-card__topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.84rem;
}

.mc-disambiguation-card__topline time {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
}

.mc-disambiguation-card__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.mc-disambiguation-card__team,
.mc-disambiguation-card__home-away {
    display: block;
    overflow-wrap: anywhere;
}

.mc-disambiguation-card__team {
    font-weight: 800;
}

.mc-disambiguation-card__home-away {
    margin-top: 0.15rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.mc-disambiguation-card__score {
    color: #0a1931;
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    white-space: nowrap;
}

.mc-disambiguation-card__result {
    margin: -0.25rem 0 0;
    text-align: center;
    font-weight: 700;
}

.mc-disambiguation-card__link {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: auto;
    border-radius: 12px;
    background: #0a1931;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.mc-disambiguation-card__link:hover {
    background: #163764;
    color: #fff;
}

.mc-disambiguation-card__link:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .mc-disambiguation {
        width: min(100% - 1rem, 960px);
        margin-top: 0.7rem;
    }

    .mc-disambiguation-card__matchup {
        gap: 0.45rem;
    }
}

.mc-card__header--timeline {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

@media (max-width: 820px) {
    .mc-card--players,
    .mc-card--timeline,
    .mc-card--lineups,
    .mc-card--matchups {
        overflow: hidden;
    }

    .mc-card--players::before,
    .mc-card--timeline::before,
    .mc-card--lineups::before,
    .mc-card--matchups::before {
        top: 0;
        left: 1px;
        right: 1px;
        height: 4px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }
}


/* Match Centre summary: dense AFL panels below the existing match banner. */
.mc-redesign { gap: 14px; }
.mc-redesign [hidden] { display: none !important; }
.mc-redesign .mc-banner-wrap { display: block; min-width: 0; }
.mc-redesign .mc-game-banner-card { border-radius: 14px 14px 0 0; border-bottom: 0; }
.mc-redesign .mc-main-nav {
    gap: 22px; padding: 0 20px; min-height: 44px; align-items: stretch;
    border-radius: 0 0 14px 14px; border-top: 0; box-shadow: none;
}
.mc-redesign .mc-main-nav .fs-tab {
    flex: 0 0 auto; position: relative; padding: 12px 0; border: 0; border-radius: 0;
    background: transparent; color: #64748b; font-size: 13px; font-weight: 700;
    box-shadow: none; letter-spacing: 0; text-transform: none; text-decoration: none;
}
.mc-redesign .mc-main-nav .fs-tab.is-active { color: #0a1931; background: transparent; }
.mc-redesign .mc-main-nav .fs-tab.is-active::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    border-radius: 3px 3px 0 0; background: #0a1931;
}
.mc-redesign button:focus-visible { outline: 2px solid #68adff; outline-offset: 3px; }
.mc-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mc-summary-column { display: grid; gap: 12px; min-width: 0; align-content: start; }
.mc-summary-panel {
    --mc-ink: #262626; --mc-muted: #626262; --mc-border: #e0e0e0;
    background: #ffffff; color: var(--mc-ink); border: 1px solid #e0e0e0;
    border-radius: 12px; padding: 14px; min-width: 0;
}
.mc-summary-panel h2, .mc-scoring-heading h2 { margin: 0 0 12px; font-size: 13px; line-height: 1.3; font-weight: 750; letter-spacing: 0; }
.mc-redesign .mc-empty { margin: 0; padding: 21px 8px; background: transparent; border: 0; border-radius: 0; color: inherit; opacity: .75; font-size: 12px; text-align: center; line-height: 1.5; }
.mc-scoring-panel { padding: 7px; }
.mc-quarter-toggle { display: flex; width: 100%; gap: 2px; background: #eeeeee; border-radius: 20px; padding: 3px; }
.mc-quarter-toggle button { flex: 1; padding: 6px 3px; border: 0; border-radius: 20px; background: transparent; color: #626262; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.mc-quarter-toggle button.is-active { background: #ffffff; color: #262626; }
.mc-redesign .mc-timeline-scrollbar { padding: 16px 14px 4px; overflow-x: auto; overflow-y: hidden; }
.mc-redesign .mc-timeline-graph { background: #f7f7f7; border-radius: 8px; min-width: 0; min-height: 185px; height: 185px; padding: 0; margin: 0; --mc-lane-base: 20px; --mc-lane-step: 13px; }
.mc-redesign .mc-timeline-track { background: #b8b8b8; }
.mc-redesign .mc-marker::after { background: #dedede; }
.mc-redesign .mc-marker--quarter .mc-marker-label { background: #f7f7f7; color: #626262; border: 0; font-size: 9px; }
.mc-redesign .mc-timeline-dot { box-shadow: 0 0 0 1px #c7c7c7; }
.mc-redesign .mc-timeline-stem { display: none; }
.mc-redesign .mc-timeline-bubble { background: #ffffff; --mc-ink: #262626; --mc-muted: #626262; z-index: 10; }
.mc-redesign .mc-timeline-legend { padding: 5px 7px 2px; margin: 0; gap: 10px; font-size: 10px; color: #626262; }
.mc-scoring-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 3px; }
.mc-scoring-heading h2 { margin: 0; }
.mc-scoring-heading > span { color: #64748b; font-size: 10px; }
.mc-event-pagination { display: none; }
@media (max-width: 820px) {
    .mc-scoring-events { scroll-margin-top: 90px; }
    .mc-event-pagination:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
    .mc-event-pagination button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dfe4eb; border-radius: 50%; background: #fff; color: var(--brand-blue); font: inherit; font-size: 24px; cursor: pointer; }
    .mc-event-pagination button:hover:not(:disabled) { background: #eef2f7; border-color: #94a3b8; }
    .mc-event-pagination button:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
    .mc-event-pagination button:disabled { opacity: .35; cursor: default; }
    .mc-event-pagination [data-event-page-status] { min-width: 64px; text-align: center; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: #475569; }
}
.mc-redesign .mc-event-list { display: grid; gap: 7px; list-style: none; padding: 0; margin: 8px 0 0; max-height: none; overflow: visible; }
.mc-redesign .mc-event-item {
    --event-color: #eeeeee; --event-text: #262626; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px; padding: 11px 12px; min-height: 60px; border: 1px solid color-mix(in srgb, var(--event-color), #fff 15%);
    border-radius: 11px; background: var(--event-color); color: var(--event-text); box-shadow: none; align-items: center;
}
.mc-redesign .mc-event-item--home { --event-color: var(--mc-home); --event-text: var(--mc-home-text); }
.mc-redesign .mc-event-item--away { --event-color: var(--mc-away); --event-text: var(--mc-away-text); }
.mc-redesign .mc-event-item--behind { background: color-mix(in srgb, var(--event-color), #ffffff 12%); }
.mc-redesign .mc-event-player-name { font-size: 12px; font-weight: 650; color: inherit; white-space: normal; line-height: 1.35; }
.mc-redesign .mc-event-player-meta { min-width: 0; gap: 4px; }
.mc-redesign .mc-event-type { color: inherit; opacity: .8; font-size: 10px; letter-spacing: 0; text-transform: none; }
.mc-redesign .mc-event-meta { color: inherit; font-size: 10px; gap: 5px; }
.mc-redesign .mc-event-score { color: inherit; font-size: 12px; }
.mc-redesign .mc-event-item.is-deep-linked { outline: 3px solid #f5b83a; outline-offset: 2px; }
.mc-redesign .mc-event-item.is-new { animation: mc-event-arrive .25s ease-out; }
@keyframes mc-event-arrive { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mc-redesign .mc-quarter-table { min-width: 0; width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; color: #262626; }
.mc-redesign .mc-quarter-table th, .mc-redesign .mc-quarter-table td { padding: 5px 2px; text-align: center; background: transparent; border: 0; font-size: inherit; }
.mc-redesign .mc-quarter-table thead th { font-size: 9px; color: #626262; font-weight: 500; }
.mc-redesign .mc-quarter-table th:first-child, .mc-redesign .mc-quarter-table td:first-child { width: 26%; min-width: 0 !important; max-width: none; text-align: left; padding-left: 0 !important; }
.mc-redesign .mc-quarter-table td:last-child, .mc-redesign .mc-quarter-table th:last-child { font-weight: 750; }
.mc-quarter-team { display: flex; align-items: center; gap: 5px; }
.mc-quarter-team img { width: 19px; height: 19px; object-fit: contain; }
.mc-leaders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 90px), 1fr)); gap: 12px 6px; }
.mc-leader { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; min-width: 0; padding: 3px 0; }
.mc-leader__content { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 5px; width: 100%; min-width: 0; }
.mc-leader__category { color: #626262; font-size: 10px; }
.mc-leader__value { font-size: 23px; line-height: 1.15; font-weight: 750; font-variant-numeric: tabular-nums; }
.mc-leader__names { color: #262626; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; min-height: 2.8em; }
.mc-leader__names a { color: inherit; }
.mc-leader__team { font-size: 9px; color: #626262; }
.mc-leader__portrait-wrap { position: relative; width: 88px; max-width: 100%; height: 94px; }
.mc-leader__portrait { display: flex; align-items: end; justify-content: center; width: 100%; height: 100%; overflow: hidden; background: #f3f3f3; border-radius: 10px; }
.mc-leader__portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.mc-leader__tie-badge { position: absolute; top: 4px; right: 4px; z-index: 1; padding: 3px 5px; border: 1px solid #dedede; border-radius: 999px; background: #ffffff; color: #404040; font-size: 8px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.mc-leader__cycle { position: absolute; bottom: 4px; right: 4px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid #d4d4d4; border-radius: 50%; background: #ffffff; color: #404040; cursor: pointer; }
.mc-leader__cycle svg { display: block; width: 14px; height: 14px; pointer-events: none; }
.mc-leader__cycle:hover { background: #eeeeee; }
.mc-leader__cycle:focus-visible, .mc-leader__portrait:focus-visible { outline: 2px solid #626262; outline-offset: 2px; }
.mc-leader__unavailable { padding: 12px 0; color: #626262; font-size: 11px; }
@media (max-width: 540px) { .mc-leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-team-stat-group + .mc-team-stat-group { margin-top: 13px; }
.mc-team-stat-group h3 { margin: 0 0 5px; padding: 7px 0 5px; border-top: 1px solid #e0e0e0; color: #626262; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 650; }
.mc-team-stat-row { display: grid; grid-template-columns: minmax(42px, 1fr) minmax(0, 3fr) minmax(42px, 1fr); align-items: center; gap: 4px; min-height: 28px; border-bottom: 1px solid #eeeeee; font-size: 11px; }
.mc-team-stat-row:last-child { border: 0; }
.mc-team-stat-label { text-align: center; color: #626262; line-height: 1.25; }
.mc-team-stat-value { padding: 3px 7px; width: fit-content; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 12px; justify-self: start; }
.mc-team-stat-value:last-child { justify-self: end; }
.mc-team-stat-value.is-winning.mc-team-stat-value--home { background: var(--mc-home); color: var(--mc-home-text); box-shadow: 0 0 0 1px #00000014; font-weight: 700; }
.mc-team-stat-value.is-winning.mc-team-stat-value--away { background: var(--mc-away); color: var(--mc-away-text); box-shadow: 0 0 0 1px #00000014; font-weight: 700; }
.mc-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; margin: 0; }
.mc-summary-metric { min-width: 0; }
.mc-summary-metric dt { font-size: 10px; color: #626262; margin-bottom: 4px; }
.mc-summary-metric dd { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.4; }
.mc-redesign .mc-card--players { padding: 15px; border-radius: 12px; box-shadow: none; --mc-player-table-max-height: 72vh; }
.mc-redesign .mc-card__header--players { align-items: center; }
.mc-redesign .mc-card__header--players h2 { font-size: 15px; }
.mc-redesign .mc-card__header--players p { font-size: 11px; }
.mc-redesign .mc-card--players .fs-tablist { gap: 4px; padding: 3px; border-radius: 22px; }
.mc-redesign .mc-card--players .fs-tab { font-size: 12px; padding: 8px 14px; border-radius: 20px; text-transform: none; letter-spacing: 0; }
.mc-redesign #mcPlayerTabHome.is-active { background: var(--mc-home); color: var(--mc-home-text); }
.mc-redesign #mcPlayerTabAway.is-active { background: var(--mc-away); color: var(--mc-away-text); }
.mc-redesign .fs-player-table[data-team=home] { --mc-table-team: var(--mc-home); --mc-table-team-text: var(--mc-home-text); }
.mc-redesign .fs-player-table[data-team=away] { --mc-table-team: var(--mc-away); --mc-table-team-text: var(--mc-away-text); }
.mc-redesign .fs-player-table thead th { position: sticky; top: 0; z-index: 4; background: var(--mc-table-team) !important; color: var(--mc-table-team-text) !important; height: 34px; padding: 8px 10px; font-size: 10px; }
.mc-redesign .fs-player-table tbody td { padding: 6px 10px; font-size: 12px; height: 47px; }
.mc-redesign .mc-card--players .fs-player-table th.numeric, .mc-redesign .mc-card--players .fs-player-table td.numeric { text-align: right !important; }
.mc-redesign .mc-card--players .fs-player-table th.numeric .mc-sort-button { justify-content: flex-end; }
.mc-redesign .fs-player-table th:first-child, .mc-redesign .fs-player-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 190px; width: 190px; background: #fff; border-right: 1px solid #dfe4eb; }
.mc-redesign .fs-player-table thead th:first-child { z-index: 5; }
.mc-redesign .fs-player-table .player-cell { display: table-cell; }
.mc-redesign .fs-player-table .mc-avatar { display: inline-flex; vertical-align: middle; width: 28px; height: 28px; border-radius: 7px; margin-right: 6px; }
.mc-redesign .fs-player-table .mc-player-meta { display: inline-flex; vertical-align: middle; gap: 1px; }
.mc-redesign .fs-player-table .mc-player-name { font-size: 12px; }
.mc-redesign .fs-player-table .mc-player-team, .mc-redesign .fs-player-table .mc-player-position { font-size: 9px; }
@media (max-width: 760px) {
    .mc-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .mc-redesign .mc-main-nav { padding: 0 14px; }
    .mc-summary-panel { padding: 12px; }
    .mc-scoring-panel { padding: 7px; }
    .mc-redesign .mc-card__header--players { flex-direction: column; align-items: stretch; gap: 9px; }
    .mc-redesign .mc-card--players .fs-tablist { width: 100%; }
    .mc-redesign .mc-card--players .fs-tab { flex: 1; font-size: 11px; padding: 8px; }
    .mc-redesign .mc-player-tab-label--full { display: inline; }
    .mc-redesign .mc-player-tab-label--abbr { display: none; }
    .mc-redesign .fs-player-table th:first-child, .mc-redesign .fs-player-table td:first-child { min-width: 160px; width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
    .mc-redesign .mc-event-item.is-new { animation: none; }
}

.mc-redesign th.mc-quarter-team { display: table-cell; vertical-align: middle; }
.mc-team-stat-row--teams > :last-child { text-align: right; }
.mc-redesign .mc-timeline-dot:focus .mc-timeline-bubble { opacity: 1; transform: translate(var(--mc-bubble-anchor, -50%), 0); }
.mc-redesign .mc-timeline-dot:focus { z-index: 5; outline: 2px solid #737373; outline-offset: 3px; }

.mc-redesign .mc-main-nav .fs-tab { width: auto !important; min-width: 0 !important; white-space: nowrap; }
.mc-redesign .fs-player-table .team-total-row,
.mc-redesign .fs-player-table .team-total-row td,
.mc-redesign .fs-player-table .team-total-row th,
.mc-redesign .fs-player-table .team-total-row strong {
    background: #eeeeee !important;
    color: #262626 !important;
}
.mc-redesign .fs-player-table .team-total-row a { color: #262626; }
@media (max-width: 760px) {
    .mc-redesign .mc-player-tab-label--full { display: inline !important; }
    .mc-redesign .mc-player-tab-label--abbr { display: none !important; }
}

/* Profile links retain the neutral panels and each scoring team's text colour. */
.mc-redesign .mc-profile-link,
.mc-redesign .mc-profile-link:hover,
.mc-redesign .mc-player-name[href],
.mc-redesign .mc-player-name[href]:hover,
.mc-redesign .mc-player-team[href],
.mc-redesign .mc-player-team[href]:hover,
.mc-redesign .mc-event-player-name[href],
.mc-redesign .mc-event-player-name[href]:hover {
    color: inherit;
    text-decoration: none;
}
.mc-redesign .mc-profile-link:focus-visible,
.mc-redesign .mc-player-name[href]:focus-visible,
.mc-redesign .mc-player-team[href]:focus-visible,
.mc-redesign .mc-event-player-name[href]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}
.mc-redesign span.mc-profile-link { text-decoration: none; }
.mc-redesign a.mc-timeline-dot { color: inherit; text-decoration: none; }
.mc-redesign a.mc-timeline-dot .mc-timeline-bubble__title { text-decoration: none; }

/* Shared player controls and native table scrolling on every screen size. */
.mc-redesign .fs-player-table tr[hidden],
.mc-redesign .fs-player-panel[hidden] { display: none !important; }
.mc-redesign .fs-player-table .mc-player-no-results td {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 16px 12px;
    text-align: left;
}
.mc-redesign .mc-player-no-results span {
    position: sticky;
    left: 12px;
    display: block;
    width: max-content;
    max-width: min(420px, calc(100vw - 110px));
    white-space: normal;
}
.mc-redesign .mc-player-control input[type="search"] {
    border: 1px solid #d4d4d4 !important;
    background: #ffffff !important;
}
.mc-redesign .mc-player-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, 1fr) auto auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
}
.mc-redesign .mc-player-control { display: grid; gap: 5px; min-width: 0; margin: 0; }
.mc-redesign .mc-player-control > span { color: #626262; font-size: 11px; font-weight: 600; }
.mc-redesign .mc-player-control input,
.mc-redesign .mc-player-control select,
.mc-redesign .mc-player-scroll-buttons button,
.mc-redesign .mc-player-reset {
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #ffffff;
    color: #262626;
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
}
.mc-redesign .mc-player-control input,
.mc-redesign .mc-player-control select { width: 100%; max-width: 100%; }
.mc-redesign .mc-player-control input::placeholder { color: #737373; opacity: 1; }
.mc-redesign .mc-player-control select { cursor: pointer; }
.mc-redesign .mc-player-scroll-buttons { display: flex; gap: 5px; }
.mc-redesign .mc-player-scroll-buttons button { flex: 1 1 38px; min-width: 38px; font-size: 17px; cursor: pointer; }
.mc-redesign .mc-player-reset { cursor: pointer; }
.mc-redesign .mc-player-scroll-buttons button:hover:not(:disabled),
.mc-redesign .mc-player-reset:hover { background: #f3f3f3; }
.mc-redesign .mc-player-scroll-buttons button:disabled { opacity: .4; cursor: default; }
.mc-redesign .mc-player-tools > .stat-guide-hover-container { min-width: 0; margin: 0; }
.mc-redesign .mc-player-tools .stat-guide-hover-btn { min-height: 38px; margin: 0; padding: 8px 10px; font-size: 12px; }
.mc-redesign .mc-player-control input:focus-visible,
.mc-redesign .mc-player-control select:focus-visible,
.mc-redesign .mc-player-tools button:focus-visible {
    outline: 2px solid #737373;
    outline-offset: 2px;
}
.mc-redesign .mc-player-table-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; min-width: 0; }
.mc-redesign .mc-player-table-context p { margin: 0; color: #626262; font-size: 11px; line-height: 1.5; }
.mc-redesign #mcPlayerTableStatus { min-height: 1.5em; color: #404040; font-weight: 600; }
.mc-redesign .mc-card--players,
.mc-redesign .fs-player-panels,
.mc-redesign .fs-player-panel,
.mc-redesign .mc-card--players .profile-table-outer { min-width: 0; max-width: 100%; }
.mc-redesign .mc-card--players .profile-table-outer { width: 100%; margin-top: 10px; margin-bottom: 0; }
.mc-redesign .mc-card--players .profile-table-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: auto !important;
    max-height: 72vh;
    max-height: 72dvh;
    scrollbar-width: auto;
    scrollbar-color: #a3a3a3 #f3f3f3;
    scroll-padding-left: calc(var(--mc-player-name-width, 190px) + 12px);
    scroll-padding-top: 44px;
    overflow-anchor: none;
    scroll-behavior: auto;
}
.mc-redesign .mc-card--players .profile-table-inner:focus-visible { outline: 2px solid #737373; outline-offset: 2px; }
.mc-redesign .mc-card--players { --mc-player-name-width: 190px; }
.mc-redesign .fs-player-table th:first-child,
.mc-redesign .fs-player-table td:first-child {
    position: sticky !important;
    left: 0 !important;
    width: var(--mc-player-name-width) !important;
    min-width: var(--mc-player-name-width) !important;
    max-width: var(--mc-player-name-width) !important;
    box-sizing: border-box;
}
.mc-redesign .fs-player-table .mc-player-meta { min-width: 0; max-width: calc(var(--mc-player-name-width) - 56px); }
.mc-redesign .fs-player-table .mc-player-name,
.mc-redesign .fs-player-table .mc-player-position { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-redesign .fs-player-table .mc-player-name:focus-visible { outline-offset: -1px; }
@media (max-width: 1100px) {
    .mc-redesign .mc-player-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .mc-redesign .mc-card--players { --mc-player-name-width: 160px; }
    .mc-redesign .mc-player-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .mc-redesign .mc-player-control--jump { grid-column: 1 / -1; }
    .mc-redesign .mc-player-table-context { flex-direction: column; }
    .mc-redesign .mc-player-control input { font-size: 16px; }
    .mc-redesign .mc-player-tools .stat-guide-hover-btn { width: 100%; justify-content: center; }
}
