.fx-page {
    gap: 20px;
}

.fx-result--win {
    --fx-result: #22c55e;
}

.fx-result--draw {
    --fx-result: #94a3b8;
}

.fx-result--loss {
    --fx-result: #ef4444;
}

.fx-result--none {
    --fx-result: var(--border-color);
}

.fx-section-label {
    color: var(--secondary-text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-strip-card.tat-card {
    padding: 0 18px 18px;
    animation: fxFadeUp 0.4s ease both;
}

.fx-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 58px;
    margin: 0 -18px 16px -18px;
    padding: 10px 14px 10px 22px;
    background: var(--cdna-header-band);
    color: #fff;
}

    .fx-strip-head .fx-section-label {
        color: rgba(255, 255, 255, 0.85);
    }

.fx-strip-card .fx-strip-head .fx-picker .mud-input.mud-input-outlined {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

    .fx-strip-card .fx-strip-head .fx-picker .mud-input.mud-input-outlined .mud-input-outlined-border {
        border-color: #fff;
    }

    .fx-strip-card .fx-strip-head .fx-picker .mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border {
        border-color: #fff;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    }

.fx-strip-card .fx-strip-head .fx-picker .mud-input-slot,
.fx-strip-card .fx-strip-head .fx-picker .mud-select-input,
.fx-strip-card .fx-strip-head .fx-picker .mud-input-adornment .mud-icon-root {
    color: #1e293b;
}

.fx-strip-card .fx-strip-head .fx-picker .mud-input-slot::placeholder {
    color: #64748b;
}

.fx-picker {
    flex: 0 1 460px;
    min-width: 0;
}

    .fx-picker .mud-input-control,
    .fx-picker .mud-select {
        width: 100%;
        margin: 0;
    }

    .fx-picker .mud-input.mud-input-outlined {
        background: var(--primary-bg-color);
        border-radius: 10px;
        font-size: 0.85rem;
    }

        .fx-picker .mud-input.mud-input-outlined .mud-input-outlined-border {
            border-color: var(--border-color);
            border-radius: 10px;
        }

        .fx-picker .mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border {
            border-width: 1px;
            border-color: var(--tenant-colour-primary);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-colour-primary) 18%, transparent);
        }

.dark-mode .fx-picker .mud-input.mud-input-outlined {
    background: rgba(255, 255, 255, 0.03);
}

    .dark-mode .fx-picker .mud-input.mud-input-outlined .mud-input-outlined-border {
        border-color: rgba(255, 255, 255, 0.14);
    }

.fx-picker-popover {
    max-width: min(640px, 92vw);
}

    .fx-picker-popover .mud-list-item-text p,
    .fx-picker-popover .mud-list-item-text {
        font-size: 0.85rem;
    }

.fx-strip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .fx-strip-row > .fx-strip {
        flex: 1 1 auto;
        min-width: 0;
    }

.fx-nav.fx-strip-nav.mud-icon-button {
    flex: 0 0 auto;
    height: 72px;
    width: 36px;
}

.fx-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.fx-strip-skeleton.mud-skeleton {
    border-radius: 12px;
}

.fx-strip-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 13px 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

    .fx-strip-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--fx-result);
    }

    .fx-strip-item:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--tenant-colour-primary) 40%, var(--border-color));
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .fx-strip-item:focus-visible {
        outline: 2px solid var(--tenant-colour-primary);
        outline-offset: 2px;
    }

.fx-strip-item--active {
    border-color: var(--tenant-colour-primary);
    background: color-mix(in srgb, var(--tenant-colour-primary) 6%, var(--secondary-bg-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-colour-primary) 16%, transparent);
}

.dark-mode .fx-strip-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

    .dark-mode .fx-strip-item:hover {
        border-color: rgba(255, 255, 255, 0.28);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

.dark-mode .fx-strip-item--active {
    background: color-mix(in srgb, var(--cdna-band-light, #ffffff) 14%, transparent);
    border-color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.fx-strip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.fx-strip-date {
    color: var(--secondary-text-color);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.fx-strip-venue {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    color: var(--secondary-text-color);
    font-size: 0.62rem;
    font-weight: 800;
}

.dark-mode .fx-strip-venue {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.fx-strip-opponent {
    width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-strip-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fx-result-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--fx-result);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.fx-result--none .fx-result-dot {
    color: var(--secondary-text-color);
}

.fx-hero.tat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 26px 24px;
    animation: fxFadeUp 0.45s ease both;
}

    .fx-hero.tat-card::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: var(--border-color);
        opacity: 0.6;
        pointer-events: none;
    }

    .fx-hero.tat-card::after {
        content: '';
        position: absolute;
        top: 46%;
        left: 50%;
        width: 300px;
        height: 300px;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        opacity: 0.6;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .fx-hero.tat-card > * {
        position: relative;
        z-index: 1;
    }

.dark-mode .fx-hero.tat-card::before {
    background: rgba(255, 255, 255, 0.06);
}

.dark-mode .fx-hero.tat-card::after {
    border-color: rgba(255, 255, 255, 0.06);
}

.fx-hero-skeleton.mud-skeleton {
    border-radius: 8px;
}

.fx-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fx-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

    .fx-hero-chip .mud-icon-root {
        color: var(--tenant-colour-primary);
    }

.dark-mode .fx-hero-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

    .dark-mode .fx-hero-chip .mud-icon-root {
        color: var(--primary-text-color);
    }

.fx-hero-meta-items {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.fx-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-text-color);
    font-size: 0.85rem;
}

    .fx-hero-meta-item .mud-icon-root {
        color: var(--secondary-text-color);
    }

.fx-scoreboard {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
}

.fx-nav.mud-icon-button {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

    .fx-nav.mud-icon-button:hover {
        border-color: var(--tenant-colour-primary);
        transform: translateY(-1px);
    }

    .fx-nav.mud-icon-button .mud-icon-root {
        color: var(--primary-text-color);
        font-size: 1.25rem;
    }

    .fx-nav.mud-icon-button:disabled,
    .fx-nav.mud-icon-button.mud-disabled {
        opacity: 0.35;
        transform: none;
    }

.dark-mode .fx-nav.mud-icon-button {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

    .dark-mode .fx-nav.mud-icon-button:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

.fx-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.fx-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

    .fx-crest .team-logo {
        box-shadow: none;
    }

.dark-mode .fx-crest {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fx-team:hover .fx-crest {
    transform: scale(1.04);
}

.fx-team-name {
    margin: 8px 0 0 0;
    max-width: 100%;
    color: var(--primary-text-color);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.fx-team-tag {
    color: var(--secondary-text-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fx-scorers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 0 0;
    padding: 0;
    list-style: none;
    color: var(--primary-text-color);
    font-size: 0.82rem;
}

    .fx-scorers li {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .fx-scorers .mud-icon-root {
        font-size: 0.95rem;
        color: var(--secondary-text-color);
    }

.fx-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.fx-score-value {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-text-color);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fx-score-sep {
    font-weight: 300;
    opacity: 0.4;
}

.fx-score-status {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    color: var(--secondary-text-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dark-mode .fx-score-status {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.fx-score-pens {
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.fx-result-pill {
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--fx-result);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.fx-statbar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-statbar-label {
    color: var(--secondary-text-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-stats {
    display: flex;
    flex-wrap: wrap;
    row-gap: 14px;
    padding: 14px 6px;
    border-radius: 14px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
}

.dark-mode .fx-stats {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.fx-stat {
    flex: 1 1 120px;
    min-width: 0;
    padding: 0 20px;
}

    .fx-stat + .fx-stat {
        border-left: 1px solid var(--border-color);
    }

.dark-mode .fx-stat + .fx-stat {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.fx-stat p {
    margin: 0 0 6px 0;
    color: var(--secondary-text-color);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-stat-value {
    color: var(--primary-text-color);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.fx-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
    animation: fxFadeUp 0.5s ease both;
}

.fx-row-skeleton.mud-skeleton {
    margin-bottom: 8px;
    border-radius: 8px;
}

.fx-events-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    margin-bottom: 10px;
    color: var(--secondary-text-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

    .fx-events-teams span:first-child {
        text-align: right;
    }

.fx-events {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .fx-events::before {
        content: '';
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: 50%;
        width: 2px;
        margin-left: -1px;
        background: var(--border-color);
    }

.dark-mode .fx-events::before {
    background: rgba(255, 255, 255, 0.1);
}

.fx-event {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    padding: 5px 0;
}

.fx-event-minute {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dark-mode .fx-event-minute {
    border-color: rgba(255, 255, 255, 0.14);
}

.fx-event-body {
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 12px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
}

.dark-mode .fx-event-body {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.fx-event--home .fx-event-body {
    grid-column: 1;
    justify-self: end;
    flex-direction: row-reverse;
    text-align: right;
}

.fx-event--away .fx-event-body {
    grid-column: 3;
    justify-self: start;
}

.fx-event--goal .fx-event-body,
.fx-event--penaltygoal .fx-event-body {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.07);
}

.fx-event--owngoal .fx-event-body {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
}

.fx-event-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
}

.dark-mode .fx-event-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.fx-event--goal .fx-event-icon,
.fx-event--penaltygoal .fx-event-icon {
    border: none;
    background: #22c55e;
    color: #fff;
}

.fx-event--owngoal .fx-event-icon {
    border: none;
    background: #ef4444;
    color: #fff;
}

.fx-event--substitution .fx-event-icon {
    color: var(--tenant-colour-primary);
}

.dark-mode .fx-event--substitution .fx-event-icon {
    color: var(--primary-text-color);
}

.fx-event-icon .mud-icon-root {
    font-size: 1.05rem;
}

.fx-event-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.fx-event-player {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.fx-event-detail {
    color: var(--secondary-text-color);
    font-size: 0.74rem;
    line-height: 1.25;
}

.fx-event-text .fx-sub-on,
.fx-event-text .fx-sub-off {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fx-event--home .fx-event-text .fx-sub-on,
.fx-event--home .fx-event-text .fx-sub-off {
    justify-content: flex-end;
}

.fx-event-text .mud-icon-root {
    font-size: 0.9rem;
}

.fx-event-marker {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

    .fx-event-marker span {
        z-index: 1;
        padding: 3px 12px;
        border-radius: 999px;
        background: var(--secondary-bg-color);
        border: 1px solid var(--border-color);
        color: var(--secondary-text-color);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }

.dark-mode .fx-event-marker span {
    border-color: rgba(255, 255, 255, 0.14);
}

.fx-sub-on,
.fx-sub-on .mud-icon-root {
    color: #16a34a;
}

.fx-sub-off,
.fx-sub-off .mud-icon-root {
    color: #dc2626;
}

.dark-mode .fx-sub-on,
.dark-mode .fx-sub-on .mud-icon-root {
    color: #4ade80;
}

.dark-mode .fx-sub-off,
.dark-mode .fx-sub-off .mud-icon-root {
    color: #f87171;
}

.fx-event-text .fx-event-detail.fx-sub-off {
    color: var(--secondary-text-color);
}

.fx-card {
    display: inline-block;
    flex: 0 0 auto;
    width: 11px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    vertical-align: middle;
}

.fx-card--yellow {
    background: #fbc02d;
}

.fx-card--red {
    background: #d32f2f;
}

.fx-card-pair {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 17px;
    vertical-align: middle;
}

    .fx-card-pair .fx-card {
        position: absolute;
        top: 0;
    }

        .fx-card-pair .fx-card:first-child {
            left: 0;
            transform: rotate(-8deg);
        }

        .fx-card-pair .fx-card:last-child {
            left: 6px;
            top: 2px;
            transform: rotate(8deg);
        }

.fx-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fx-seg-btn {
    max-width: 180px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .fx-seg-btn:hover {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

    .fx-seg-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 1px;
    }

.fx-seg-btn--active,
.fx-seg-btn--active:hover {
    background: #fff;
    color: var(--cdna-band-dark, #0c1524);
}

.fx-lineup-scroll {
    overflow-x: auto;
}

.fx-lineup {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

    .fx-lineup th {
        padding: 8px 10px;
        border-bottom: 1px solid var(--border-color);
        color: var(--secondary-text-color);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .fx-lineup td {
        padding: 9px 10px;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
    }

.dark-mode .fx-lineup th,
.dark-mode .fx-lineup td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fx-player-row td {
    transition: background 0.15s ease;
}

.fx-player-row:hover td {
    background: color-mix(in srgb, var(--tenant-colour-primary) 5%, transparent);
}

.dark-mode .fx-player-row:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.fx-lineup .fx-group-row td {
    padding: 16px 10px 6px;
    border-bottom: none;
}

.fx-lineup tbody:first-of-type .fx-group-row td {
    padding-top: 10px;
}

.fx-group-title {
    color: var(--tenant-colour-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark-mode .fx-group-title {
    color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
}

.fx-group-count {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    color: var(--secondary-text-color);
    font-size: 0.68rem;
    font-weight: 700;
}

.dark-mode .fx-group-count {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.fx-col-player {
    min-width: 210px;
    white-space: nowrap;
}

.fx-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 22px;
    margin-right: 10px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.fx-pos--gk {
    background: rgba(234, 179, 8, 0.16);
    color: #a16207;
}

.fx-pos--def {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.fx-pos--mid {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.fx-pos--fwd {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.dark-mode .fx-pos {
    color: #cbd5e1;
}

.dark-mode .fx-pos--gk {
    color: #facc15;
}

.dark-mode .fx-pos--def {
    color: #93c5fd;
}

.dark-mode .fx-pos--mid {
    color: #86efac;
}

.dark-mode .fx-pos--fwd {
    color: #fca5a5;
}

.fx-player-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--tenant-colour-primary);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    vertical-align: middle;
}

    .fx-player-link:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .fx-player-link:focus-visible {
        outline: 2px solid var(--tenant-colour-primary);
        outline-offset: 2px;
        border-radius: 4px;
    }

.dark-mode .fx-player-link {
    color: var(--primary-text-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.fx-player-name {
    font-weight: 600;
    vertical-align: middle;
}

.fx-col-time {
    width: 22%;
    min-width: 140px;
}

.fx-pitch-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

    .fx-pitch-bar span {
        position: absolute;
        top: 0;
        bottom: 0;
        border-radius: 999px;
        background: var(--tenant-colour-primary);
    }

.dark-mode .fx-pitch-bar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

    .dark-mode .fx-pitch-bar span {
        background: rgba(255, 255, 255, 0.75);
    }

.fx-lineup th.fx-col-num,
.fx-col-num {
    width: 64px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fx-lineup th.fx-col-stat,
.fx-col-stat {
    width: 64px;
    text-align: center;
}

.fx-col-sub {
    width: 120px;
    white-space: nowrap;
}

.fx-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

    .fx-stat-pill .mud-icon-root {
        font-size: 0.85rem;
    }

.fx-stat-pill--goal,
.fx-stat-pill--goal .mud-icon-root {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.fx-stat-pill--assist {
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
}

.dark-mode .fx-stat-pill--goal,
.dark-mode .fx-stat-pill--goal .mud-icon-root {
    color: #86efac;
}

.dark-mode .fx-stat-pill--assist {
    color: #a5b4fc;
}

.fx-stat-pill--goal .mud-icon-root {
    background: none;
}

.fx-dash {
    color: var(--secondary-text-color);
    opacity: 0.7;
}

.fx-sub {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

    .fx-sub .mud-icon-root {
        font-size: 0.95rem;
    }

.fx-cost-card {
    animation: fxFadeUp 0.55s ease both;
}

.fx-cost-headline {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fx-cost-report-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease;
}

    .fx-cost-report-link:hover {
        background: #F1F5F9;
    }

    .fx-cost-report-link:focus-visible {
        outline: 2px solid #FFFFFF;
        outline-offset: 2px;
    }

    .tat-card-title .fx-cost-report-link .mud-icon-root {
        color: inherit;
        font-size: 1rem;
    }

.fx-cost-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.fx-cost-tiles--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fx-tile-skeleton.mud-skeleton {
    border-radius: 14px;
}

.fx-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--primary-bg-color);
    border: 1px solid var(--border-color);
}

.dark-mode .fx-tile {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.fx-tile--total {
    background: var(--secondary-bg-color);
    border-color: color-mix(in srgb, var(--tenant-colour-primary) 45%, var(--border-color));
}

.dark-mode .fx-tile--total {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.fx-tile-label {
    color: var(--secondary-text-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-tile-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.fx-tile-meta {
    font-size: 0.75rem;
}

.fx-cost-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 24px;
    align-items: start;
}

.fx-cost-pitch {
    min-width: 0;
}

.fx-cost-lists {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.fx-pitch-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 105 / 68;
    border-radius: 14px;
    overflow: hidden;
    container-type: inline-size;
    background-color: #2f8a46;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 10%, transparent 10% 20%);
}

.dark-mode .fx-pitch {
    background-color: #24683a;
}

.fx-pitch-line {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    pointer-events: none;
}

.fx-pitch-boundary {
    inset: 4%;
    border-radius: 2px;
}

.fx-pitch-halfway {
    top: 4%;
    bottom: 4%;
    left: 50%;
    width: 0;
    border-width: 0 0 0 1.5px;
}

.fx-pitch-circle {
    top: 50%;
    left: 50%;
    width: 17%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.fx-pitch-box {
    top: 50%;
    width: 15.5%;
    height: 58%;
    transform: translateY(-50%);
}

.fx-pitch-six {
    top: 50%;
    width: 5.5%;
    height: 27%;
    transform: translateY(-50%);
}

.fx-pitch-box--left,
.fx-pitch-six--left {
    left: 4%;
    border-left-width: 0;
}

.fx-pitch-box--right,
.fx-pitch-six--right {
    right: 4%;
    border-right-width: 0;
}

.fx-pitch-player {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5cqw;
    width: 15cqw;
    padding: 0;
    border: none;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    transform: translate(-50%, -38%);
}

    .fx-pitch-player:hover {
        z-index: 5;
    }

    .fx-pitch-player:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
        border-radius: 8px;
    }

.fx-pitch-avatar,
.fx-bench-avatar {
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

    .fx-pitch-avatar img,
    .fx-bench-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

.fx-pitch-avatar {
    width: clamp(28px, 5.4cqw, 50px);
    height: clamp(28px, 5.4cqw, 50px);
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.fx-pitch-player:hover .fx-pitch-avatar {
    transform: scale(1.08);
}

.fx-pitch-name {
    max-width: 100%;
    color: #fff;
    font-size: clamp(0.58rem, 1.45cqw, 0.78rem);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.fx-pitch-fee {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #166534;
    font-size: clamp(0.52rem, 1.25cqw, 0.68rem);
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fx-bench {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-bench-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fx-bench-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 3px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

    .fx-bench-player:hover {
        border-color: var(--tenant-colour-primary);
    }

    .fx-bench-player:focus-visible {
        outline: 2px solid var(--tenant-colour-primary);
        outline-offset: 2px;
    }

.dark-mode .fx-bench-player {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

    .dark-mode .fx-bench-player:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

.fx-bench-player--unused {
    opacity: 0.6;
}

.fx-bench-avatar {
    width: 26px;
    height: 26px;
}

.fx-bench-name {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.fx-bench-fee {
    color: #15803d;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dark-mode .fx-bench-fee {
    color: #86efac;
}

.fx-cost-list {
    padding: 14px 16px 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.dark-mode .fx-cost-list {
    border-color: rgba(255, 255, 255, 0.08);
}

.fx-cost-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .fx-cost-list-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.fx-cost-list-total {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fx-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

    .fx-cost-row:last-child {
        border-bottom: none;
    }

.dark-mode .fx-cost-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.fx-cost-row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fx-cost-row-name {
    font-size: 0.86rem;
    font-weight: 600;
}

.fx-cost-row-clause {
    font-size: 0.76rem;
}

.fx-cost-row-value {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fx-cost-none {
    margin: 12px 0 8px 0;
    font-size: 0.82rem;
}

.fx-empty {
    padding: 48px 20px;
    text-align: center;
}

.fx-empty--compact {
    padding: 24px 12px;
}

.fx-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px auto;
    border-radius: 16px;
    background: color-mix(in srgb, var(--tenant-colour-primary) 10%, transparent);
    color: var(--tenant-colour-primary);
}

    .fx-empty-icon .mud-icon-root {
        font-size: 1.75rem;
        color: inherit;
    }

.dark-mode .fx-empty-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fx-empty-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.fx-empty-text {
    margin: 0;
    font-size: 0.88rem;
}

@keyframes fxFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-strip-card.tat-card,
    .fx-hero.tat-card,
    .fx-grid,
    .fx-cost-card {
        animation: none;
    }

    .fx-strip-item,
    .fx-crest {
        transition: none;
    }
}

@media (max-width: 1200px) {
    .fx-grid,
    .fx-cost-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-cost-tiles--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fx-strip {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 136px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .fx-strip-item {
        scroll-snap-align: start;
    }

    .fx-scoreboard {
        grid-template-columns: 32px minmax(0, 1fr) auto minmax(0, 1fr) 32px;
        gap: 10px;
    }

    .fx-crest {
        width: 84px;
        height: 84px;
    }

    .fx-team-name {
        font-size: 1.05rem;
    }

    .fx-score {
        min-width: 0;
    }

    .fx-cost-tiles,
    .fx-cost-lists {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .fx-hero.tat-card {
        padding: 18px 16px;
    }

    .fx-scoreboard {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        row-gap: 14px;
    }

        .fx-scoreboard > .fx-nav:first-child {
            grid-column: 1;
            grid-row: 2;
            justify-self: start;
        }

        .fx-scoreboard > .fx-team--home {
            grid-column: 1;
            grid-row: 1;
        }

        .fx-scoreboard > .fx-score {
            grid-column: 2;
            grid-row: 1;
        }

        .fx-scoreboard > .fx-team--away {
            grid-column: 3;
            grid-row: 1;
        }

        .fx-scoreboard > .fx-nav:last-child {
            grid-column: 3;
            grid-row: 2;
            justify-self: end;
        }

    .fx-crest {
        width: 64px;
        height: 64px;
        padding: 6px;
    }

    .fx-score-value {
        gap: 8px;
        font-size: 2.4rem;
    }

    .fx-hero.tat-card::after {
        width: 180px;
        height: 180px;
    }

    .fx-seg-btn {
        max-width: 120px;
        padding: 6px 8px;
    }
}
