/* Компактный заголовок */
.compact-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.team-logo-compact {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid white;
}

.score-compact {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.compact-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Улучшенные табы */
.match-tabs-wrapper {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.match-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 5px;
}

.match-tabs .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.match-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.match-tabs .nav-link.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.tab-icon {
    margin-right: 8px;
    font-size: 16px;
}

.tab-label {
    font-size: 14px;
}

.tab-badge {
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* События матча: таймлайн (колонка времени + точка + карточка) */
.fc-events-card-body {
    padding: 1rem 1.25rem;
}

.fc-events-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    --fc-events-rail: 4.75rem;
    --fc-events-line-x: calc(var(--fc-events-rail) / 2);
}

.fc-events-timeline::before {
    content: "";
    position: absolute;
    left: var(--fc-events-line-x);
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        rgba(220, 53, 69, 0.5),
        rgba(108, 117, 125, 0.22)
    );
    z-index: 0;
    pointer-events: none;
}

.fc-event-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--fc-events-rail) minmax(0, 1fr);
    gap: 0 1rem;
    align-items: flex-start;
}

.fc-event-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.25rem;
}

.fc-event-time {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.08rem;
    min-width: 3.1rem;
    padding: 0.28rem 0.42rem;
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    color: var(--fc-red, #dc3545);
    background: var(--fc-surface, #fff);
    border: 1px solid rgba(220, 53, 69, 0.38);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.fc-event-time-extra {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.88;
}

.fc-event-dot {
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.92rem;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.12),
        0 0 0 2px var(--fc-surface, #fff);
}

.fc-event-dot .fa-square {
    font-size: 0.52rem;
    line-height: 1;
}

.fc-event-dot--goal {
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: #fff;
}

.fc-event-dot--card-yellow {
    background: linear-gradient(145deg, #ffe066, #ffc107);
    color: #212529;
}

.fc-event-dot--card-red {
    background: linear-gradient(145deg, #ff6b6b, #c82333);
    color: #fff;
}

.fc-event-dot--sub {
    background: linear-gradient(145deg, #17a2b8, #117a8b);
    color: #fff;
}

.fc-event-dot--var {
    background: linear-gradient(145deg, #6f42c1, #4e2a84);
    color: #fff;
}

.fc-event-dot--misc {
    background: linear-gradient(145deg, #868e96, #495057);
    color: #fff;
}

.fc-event-card {
    background: var(--fc-surface, #fff);
    border: 1px solid var(--fc-border, #e9ecef);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.7rem;
}

.fc-event-item--home .fc-event-card {
    border-left: 3px solid var(--fc-red, #dc3545);
}

.fc-event-item--away .fc-event-card {
    border-left: 3px solid var(--fc-fix-away, #6c757d);
}

.fc-event-team {
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.fc-event-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.fc-event-team-name {
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}

.fc-event-item--home .fc-event-team-name {
    color: var(--fc-red, #dc3545);
}

.fc-event-item--away .fc-event-team-name {
    color: var(--fc-fix-away, #6c757d);
}

.fc-event-player {
    font-size: 0.9375rem;
    margin-bottom: 0.3rem;
    line-height: 1.45;
}

.fc-event-player strong {
    font-weight: 700;
}

.fc-event-tags {
    margin-top: 0.35rem;
}

.fc-event-meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.fc-event-meta--note {
    padding-top: 0.35rem;
    border-top: 1px dashed var(--fc-border, #dee2e6);
    margin-top: 0.55rem;
}

.fc-event-assist {
    display: inline-block;
    margin-left: 0.2rem;
    background: var(--fc-surface-2, #e9ecef);
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .fc-events-timeline {
        --fc-events-rail: 3.65rem;
    }

    .fc-events-card-body {
        padding: 0.75rem 0.85rem;
    }

    .fc-event-dot {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.82rem;
    }

    .fc-event-time {
        min-width: 2.75rem;
        padding: 0.22rem 0.32rem;
        font-size: 0.75rem;
    }

    .fc-event-card {
        padding: 0.7rem 0.85rem;
    }
}

/* Улучшенная статистика */
.stat-card-enhanced {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
}

.stat-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.stat-title {
    font-weight: 700;
    color: #343a40;
    font-size: 16px;
}

.stat-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.stat-value {
    font-weight: 800;
    font-size: 20px;
}

.stat-value.home {
    color: #dc3545;
}

.stat-value.away {
    color: #6c757d;
}

.stat-bar-container {
    flex-grow: 1;
}

.stat-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    position: absolute;
    top: 0;
}

.stat-bar-home {
    background: linear-gradient(90deg, #dc3545, #c82333);
    left: 0;
}

.stat-bar-away {
    background: linear-gradient(90deg, #6c757d, #495057);
    right: 0;
}

/* Очные встречи — компактный блок (ленивая загрузка) */
.fc-h2h-mount {
    min-height: 120px;
}

.fc-h2h-card--loading .card-body {
    min-height: 140px;
}

.fc-h2h-skeleton-record {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f1f3f5, #fff);
    border: 1px solid #e9ecef;
}

.fc-h2h-skel {
    border-radius: 6px;
    background: linear-gradient(90deg, #e9ecef 0%, #f8f9fa 45%, #e9ecef 90%);
    background-size: 200% 100%;
    animation: fc-h2h-shimmer 1.35s ease-in-out infinite;
}

.fc-h2h-skel--line {
    height: 10px;
}

.fc-h2h-skel--w70 {
    width: 70%;
}

.fc-h2h-skel--w40 {
    width: 40%;
}

.fc-h2h-skel--pill {
    height: 36px;
    border-radius: 10px;
}

@keyframes fc-h2h-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.fc-h2h-card--error .card-body {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fc-h2h-error-icon {
    font-size: 1.75rem;
    color: #fd7e14;
    opacity: 0.9;
}

.fc-h2h-error-hint {
    max-width: 22rem;
    line-height: 1.45;
}

.fc-h2h-retry {
    font-weight: 600;
}

.fc-match-page .fc-h2h-card--error .fc-h2h-error-icon {
    color: var(--fc-fix-accent, #fd7e14);
}

.fc-h2h-card__head {
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}

.fc-h2h-meta {
    max-width: 42rem;
}

.fc-h2h-record {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px 12px;
    align-items: stretch;
    padding: 10px 8px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border: 1px solid #e9ecef;
}

.fc-h2h-record__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    min-width: 0;
}

.fc-h2h-record__cell--draw {
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    padding: 0 6px;
}

.fc-h2h-record__num {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.fc-h2h-record__num--home { color: #dc3545; }
.fc-h2h-record__num--draw { color: #e0a800; }
.fc-h2h-record__num--away { color: #495057; }

.fc-h2h-record__lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #868e96;
    font-weight: 600;
    line-height: 1.2;
}

.fc-h2h-record__team {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #495057;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-h2h-goals__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.fc-h2h-goals__label {
    flex: 0 0 auto;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    font-weight: 700;
}

.fc-h2h-goals__n--home { color: #dc3545; }
.fc-h2h-goals__n--away { color: #495057; }

.fc-h2h-goals__bar {
    display: flex;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}

.fc-h2h-goals__seg--home {
    min-width: 2px;
    background: linear-gradient(90deg, #dc3545, #b02a37);
}

.fc-h2h-goals__seg--away {
    min-width: 2px;
    background: linear-gradient(90deg, #6c757d, #495057);
}

.fc-h2h-last--box {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.fc-h2h-list-head {
    letter-spacing: 0.05em;
}

.fc-h2h-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.fc-h2h-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fc-h2h-row:hover {
    border-color: rgba(220, 53, 69, 0.35);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.06);
}

.fc-h2h-row__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
    color: #868e96;
}

.fc-h2h-row__date {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.fc-h2h-row__lg {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    max-width: 60%;
}

.fc-h2h-row__mid {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fc-h2h-row__t {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-h2h-row__sc {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 2px 10px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    min-width: 52px;
    text-align: center;
}

/* ========== Вкладка «Составы» (новая сетка) ========== */
.fc-lineup-banner {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 202, 240, 0.06));
    border-radius: 12px;
}

.fc-lineup-pitch-panel__head {
    background: linear-gradient(180deg, rgba(0,0,0,0.03), transparent);
}

.fc-lineup-pitch-container.pitch-container {
    margin-bottom: 0;
    border-radius: 0;
}

/* Тактическое поле: пропорции ~105×68, внутренняя обводка */
.pitch.fc-tactical-pitch {
    aspect-ratio: 105 / 68;
    width: 100%;
    max-height: 420px;
    height: auto;
    min-height: 260px;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.22),
        inset 0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 -20px 50px rgba(0, 0, 0, 0.08);
}

.fc-lineup-pitch-legend {
    background: #f8f9fa;
}

.fc-lineup-no-pitch {
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa, #fff);
}

.fc-lineup-no-pitch__ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(108, 117, 125, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
}

.fc-lineup-columns {
    align-items: stretch;
}

.fc-lineup-squad {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 14px 14px 16px;
}

.fc-lineup-squad--home {
    border-top: 3px solid #dc3545;
}

.fc-lineup-squad--away {
    border-top: 3px solid #6c757d;
}

.fc-lineup-subs {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
}

.fc-lineup-subs__title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #856404;
    margin-bottom: 8px;
}

.fc-lineup-subs__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.fc-lineup-subs__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fc-lineup-subs__min {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    color: #495057;
}

.fc-lineup-subs__arr {
    font-size: 0.75rem;
    color: #adb5bd;
}

.fc-lineup-squad__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.fc-lineup-squad__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fc-lineup-squad__logo {
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
}

.fc-lineup-squad__name {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    color: inherit;
}
a.fc-lineup-squad__name:hover {
    color: var(--fc-red, #c41e3a);
}

.fc-lineup-squad__formation {
    margin-top: 4px;
    background: #212529 !important;
    font-weight: 600;
    font-size: 0.7rem;
}

.fc-lineup-squad__count {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #495057 !important;
    font-weight: 600;
    font-size: 0.72rem;
}

.fc-lineup-block {
    margin-bottom: 12px;
}

.fc-lineup-block__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #868e96;
    margin-bottom: 8px;
}

.fc-lineup-block__n {
    background: #e9ecef;
    color: #495057;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.65rem;
}

.fc-lineup-block--bench .fc-lineup-block__title {
    color: #adb5bd;
}

.fc-lineup-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 6px;
    transition: background 0.15s, transform 0.12s;
}

.fc-lineup-player:hover {
    background: #eef1f4;
}

.fc-lineup-player--bench {
    opacity: 0.92;
    background: #fafbfc;
}

.fc-lineup-player__num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.fc-lineup-player__num--home {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.fc-lineup-player__num--away {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.fc-lineup-player__photo,
.fc-lineup-player__ph {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fc-lineup-player__ph {
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

.fc-lineup-player__info {
    flex: 1;
    min-width: 0;
}

.fc-lineup-player__name {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-lineup-player__meta {
    font-size: 0.72rem;
    color: #868e96;
}

.fc-lineup-player__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.fc-lineup-player__cap {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #212529;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-lineup-player__pos {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
}

.fc-lineup-player__pos--gk { background: #dc3545; }
.fc-lineup-player__pos--df { background: #0d6efd; }
.fc-lineup-player__pos--mf { background: #fd7e14; }
.fc-lineup-player__pos--fw { background: #198754; }

/* Футбольное поле (ворота слева/справа; координаты точек — центр кружка) */
.pitch-container {
    background: linear-gradient(180deg, #1a5c2e 0%, #0f3d1f 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    position: relative;
    min-height: 320px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pitch {
    position: relative;
    width: 100%;
    /* Пропорции реального поля (~105×68 м): иначе % по ширине/высоте визуально «ломают» глубину */
    aspect-ratio: 105 / 68;
    height: auto;
    min-height: 240px;
    max-width: 100%;
    margin: 0 auto;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.028) 0 12px,
            transparent 12px 24px
        ),
        linear-gradient(180deg, #1b6b36 0%, #2a9d52 42%, #217a3d 100%);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 -20px 50px rgba(0, 0, 0, 0.08);
}

.pitch-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16%;
    max-width: 88px;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-sizing: border-box;
}

.center-spot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
}

/* Вертикальная линия в центре (ось вдоль поля к воротам) */
.halfway-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
}

.penalty-area {
    position: absolute;
    box-sizing: border-box;
    width: 15%;
    min-width: 72px;
    height: 58%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.penalty-area.left {
    left: 0;
    border-left: none;
}

.penalty-area.right {
    right: 0;
    border-right: none;
}

.goal-area {
    position: absolute;
    box-sizing: border-box;
    width: 6%;
    min-width: 28px;
    height: 28%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.goal-area.left {
    left: 0;
    border-left: none;
}

.goal-area.right {
    right: 0;
    border-right: none;
}

/* PHP задаёт left/top — центр маркера (TacticalPitchLayoutService) */
.pitch .player-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 2;
    box-sizing: border-box;
}

.pitch .player-dot:hover {
    transform: translate(-50%, -50%) scale(1.14);
    z-index: 4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pitch .player-dot--gk {
    box-shadow:
        0 0 0 2px rgba(255, 220, 120, 0.95),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.pitch .player-dot--gk .player-number {
    font-size: clamp(8px, 2.2vw, 10px);
}

.player-dot {
    flex-shrink: 0;
}

.player-dot-home {
    background: linear-gradient(145deg, #e63950, #b02a37);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.player-dot-away {
    background: linear-gradient(145deg, #6c757d, #3d4449);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.player-number {
    color: #fff;
    font-weight: 800;
    font-size: clamp(9px, 2.6vw, 11px);
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
}

/* Новый стиль для игроков в 2 колонки */
.lineups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .lineups-container {
        grid-template-columns: 1fr;
    }
}

.team-lineup {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.team-lineup-header {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-lineup-header.home {
    background: linear-gradient(135deg, #ff7b7b, #dc3545);
    color: white;
}

.team-lineup-header.away {
    background: linear-gradient(135deg, #868e96, #495057);
    color: white;
}

.position-section {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.position-section:last-child {
    border-bottom: none;
}

.position-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f1f3f4;
}

.position-title .badge {
    font-size: 11px;
    padding: 3px 8px;
}

.player-item-lineup {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.player-item-lineup:hover {
    background-color: #f8f9fa;
}

.player-number-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.player-number-circle.home {
    background: #dc3545;
    color: white;
}

.player-number-circle.away {
    background: #6c757d;
    color: white;
}

.player-photo-xs {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #f1f3f4;
    flex-shrink: 0;
}

.player-photo-xs-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border: 2px solid #e9ecef;
    color: #adb5bd;
    flex-shrink: 0;
}

.player-info-lineup {
    flex: 1;
    min-width: 0;
}

.player-name-lineup {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta-lineup {
    font-size: 11px;
    color: #6c757d;
}

.player-position-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
}

/* Fallback для отсутствия составов */
.no-lineup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
}

/* Форма команд */
.form-badge {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.form-W { background: #28a745; color: white; }
.form-D { background: #ffc107; color: #000; }
.form-L { background: #dc3545; color: white; }

/* Empty states */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state-subtitle {
    font-size: 16px;
    color: #6c757d;
}

/* Анимации */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .team-logo-compact {
        width: 50px;
        height: 50px;
    }
    
    .score-compact {
        font-size: 2rem;
    }
    
    .match-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .match-tabs .nav-link {
        margin-bottom: 5px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .tab-label {
        font-size: 12px;
    }
    
    .fc-h2h-record {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fc-h2h-record__cell--draw {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
        padding: 8px 0;
    }

    .fc-h2h-row__mid {
        flex-wrap: wrap;
    }

    .fc-h2h-row__t {
        flex: 1 1 40%;
    }
    
    .pitch-container {
        padding: 8px;
        min-height: 280px;
    }

    .pitch {
        height: clamp(260px, 52vw, 320px);
    }

    .pitch.fc-tactical-pitch {
        min-height: 220px;
        max-height: 340px;
    }

    .pitch .player-dot {
        width: 28px;
        height: 28px;
    }
}

/* —— Полировка (поверх базовых стилей страницы матча) —— */
.fc-match-page {
  --fc-fix-away: #2c3e50;
  --fc-fix-away-dark: #1e2b36;
  --fc-fix-away-soft: #eef2f5;
}
.fc-match-page .compact-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, var(--fc-red-dark) 0%, var(--fc-red) 45%, #e0435f 100%);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(196, 30, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fc-match-page .compact-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 15% -20%, rgba(255,255,255,.28), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 110%, rgba(0,0,0,.15), transparent 45%);
  pointer-events: none;
}
.fc-match-page .compact-header > .row,
.fc-match-page .compact-header .fc-fixture-hero-teams {
  position: relative;
  z-index: 1;
}

/* Сетка команд: на мобиле логотип сверху, название снизу; по центру столбца */
.fc-match-page .fc-fixture-hero-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  align-items: center;
  width: 100%;
}
.fc-match-page .fc-fixture-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
}
.fc-match-page .fc-fixture-team-name {
  font-weight: 700;
  font-size: clamp(0.75rem, 3.2vw, 1.05rem);
  line-height: 1.2;
  color: #fff;
  max-width: 100%;
  padding: 0 0.2rem;
  word-break: break-word;
  hyphens: auto;
}
.fc-match-page .fc-fixture-team-meta {
  font-size: 0.68rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  max-width: 100%;
}
.fc-match-page .fc-fixture-team-meta:empty {
  display: none;
}
.fc-match-page .fc-fixture-hero-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 4.75rem;
}
@media (min-width: 768px) {
  .fc-match-page .fc-fixture-team-side--home .fc-fixture-team-block {
    align-items: flex-end;
    text-align: right;
  }
  .fc-match-page .fc-fixture-team-side--away .fc-fixture-team-block {
    align-items: flex-start;
    text-align: left;
  }
}

/* Заголовки составов: на узком экране эмблема над названием */
.fc-match-page .fc-fixture-lineup-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}
.fc-match-page .fc-fixture-lineup-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
  border-radius: 6px;
  flex-shrink: 0;
}
.fc-match-page .fc-fixture-lineup-head-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.fc-match-page .fc-fixture-lineup-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  word-break: break-word;
}
.fc-match-page .fc-fixture-lineup-badge {
  font-size: 0.65rem;
  font-weight: 600;
}
@media (min-width: 576px) {
  .fc-match-page .team-lineup-header .fc-fixture-lineup-head {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .fc-match-page .fc-fixture-lineup-head-text {
    align-items: flex-start;
    text-align: left;
  }
}

/* Футер карточки: компактная колонка на мобиле */
.fc-match-page .fc-fixture-footer-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
.fc-match-page .fc-fixture-footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--fc-border);
}
@media (min-width: 768px) {
  .fc-match-page .fc-fixture-footer-team--home {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    align-items: center;
  }
  .fc-match-page .fc-fixture-footer-team--home .fc-fixture-footer-text {
    text-align: left;
  }
  .fc-match-page .fc-fixture-footer-team--away {
    flex-direction: row-reverse;
    justify-content: center;
    text-align: right;
    align-items: center;
  }
  .fc-match-page .fc-fixture-footer-team--away .fc-fixture-footer-text {
    text-align: right;
  }
}

/* События: на узком экране — команда строкой слева */
.fc-match-page .fc-event-team {
  flex-direction: row;
  align-items: center;
  text-align: left;
}
.fc-match-page .fc-event-team-logo {
  margin-right: 0;
}
.fc-match-page .fc-event-team-name {
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}
.fc-match-hero-muted { color: rgba(255, 255, 255, 0.88) !important; }
.fc-match-hero-league {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 100%;
}
.fc-match-hero-league span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100vw - 4rem, 22rem);
}
.fc-match-page .team-logo-compact {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.2), 0 0 0 3px rgba(255,255,255,.12);
}
.fc-match-page .score-compact {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.fc-match-page .compact-status {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
}
.fc-match-page .compact-status.bg-success {
  background: rgba(25, 135, 84, 0.35) !important;
  border-color: rgba(255,255,255,.35);
}
.fc-match-page .progress {
  background: rgba(0,0,0,.2);
  border-radius: 999px;
}
.fc-match-page .progress-bar.bg-white {
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.85)) !important;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255,255,255,.45);
}
/* Оболочка вкладок — как на главной (.fc-tabs-shell из fc-theme) */
.fc-match-page .fc-fixture-tabs-shell {
  margin-bottom: 1rem;
}
.fc-match-page .fc-fixture-tabs-shell .fc-subnav.match-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.fc-match-page .fc-fixture-tabs-shell .match-tabs .nav-link:hover {
  transform: none;
}
.fc-match-page #matchTabsContent > .tab-pane > .card {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  overflow: hidden;
}
.fc-match-page #matchTabsContent .card-header {
  position: relative;
  background: linear-gradient(180deg, #fff, var(--fc-surface-2)) !important;
  border-bottom: 1px solid var(--fc-border);
  padding: 0.75rem 1rem;
}
.fc-match-page #matchTabsContent .card-header h5 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fc-match-page #matchTabsContent .card-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-red);
}
.fc-match-page .fc-events-timeline::before {
  background: linear-gradient(
    180deg,
    var(--fc-red),
    var(--fc-fix-away-soft, rgba(108, 117, 125, 0.35)),
    var(--fc-fix-away)
  );
}
.fc-match-page .fc-event-time {
  border-color: rgba(220, 53, 69, 0.42);
  color: var(--fc-red);
  font-variant-numeric: tabular-nums;
}
.fc-match-page .fc-event-card {
  box-shadow: var(--fc-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
}
.fc-match-page .stat-value.away { color: var(--fc-fix-away) !important; }
.fc-match-page .stat-bar-away {
  background: linear-gradient(90deg, var(--fc-fix-away), var(--fc-fix-away-dark)) !important;
}
.fc-match-page .legend-color.bg-secondary { background-color: var(--fc-fix-away) !important; }
.fc-match-page .fc-h2h-record {
  background: linear-gradient(145deg, var(--fc-surface-2), #fff);
  border-color: var(--fc-border);
}
.fc-match-page .fc-h2h-record__num--away { color: var(--fc-fix-away) !important; }
.fc-match-page .fc-h2h-goals__n--away { color: var(--fc-fix-away) !important; }
.fc-match-page .fc-h2h-goals__seg--away {
  background: linear-gradient(90deg, var(--fc-fix-away), var(--fc-fix-away-dark)) !important;
}
.fc-match-page .pitch-container {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #163d28 0%, #0a2618 100%);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.28), 0 8px 28px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.12);
}
.fc-match-page .pitch {
  border-radius: 10px;
  height: clamp(290px, 40vw, 400px);
  background:
    repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(255,255,255,.04) 11px, rgba(255,255,255,.04) 22px),
    linear-gradient(180deg, #186a35 0%, #2ea356 45%, #1e7a40 100%);
  box-shadow: inset 0 0 48px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.9);
}
.fc-match-page .pitch.fc-tactical-pitch {
  aspect-ratio: 105 / 68;
  max-height: min(440px, 68vh);
  height: auto;
  min-height: 270px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 0 48px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.fc-match-page .pitch .halfway-line {
  background: rgba(255,255,255,.92);
}
.fc-match-page .pitch .penalty-area,
.fc-match-page .pitch .goal-area,
.fc-match-page .pitch .center-circle {
  border-color: rgba(255,255,255,.9);
}
.fc-match-page .player-dot-away {
  background: linear-gradient(135deg, var(--fc-fix-away), var(--fc-fix-away-dark)) !important;
}
.fc-match-page .team-lineup { border-radius: 12px; }
.fc-match-page .team-lineup-header.home {
  background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark)) !important;
}
.fc-match-page .team-lineup-header.away {
  background: linear-gradient(135deg, #4a5f73, var(--fc-fix-away-dark)) !important;
}
.fc-match-page .player-number-circle.away { background: var(--fc-fix-away) !important; }
.fc-match-page .related-match {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 0.85rem;
  background: var(--fc-surface);
  height: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.fc-match-page .related-match:hover {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: var(--fc-shadow-hover);
}
.fc-match-page .card.bg-light.border-0 {
  background: var(--fc-surface-2) !important;
  border: 1px solid var(--fc-border) !important;
  border-radius: var(--fc-radius);
}

/* Не тянуть глобальный .tab-content с главной — здесь только отступ */
.fc-match-page #matchTabsContent.tab-content {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.fc-match-page .stat-value.home {
  color: var(--fc-red) !important;
}
.fc-match-page .stat-bar-home {
  background: linear-gradient(90deg, var(--fc-red), var(--fc-red-dark)) !important;
}
.fc-match-page .fc-h2h-record__num--home,
.fc-match-page .fc-h2h-goals__n--home {
  color: var(--fc-red) !important;
}
.fc-match-page .fc-h2h-goals__seg--home {
  background: linear-gradient(90deg, var(--fc-red), var(--fc-red-dark)) !important;
}
.fc-match-page .fc-h2h-row__sc {
  background: var(--fc-red);
}
.fc-match-page .fc-h2h-row:hover {
  border-color: rgba(196, 30, 58, 0.35);
}

.fc-match-page .fc-lineup-squad--away {
  border-top-color: var(--fc-fix-away, #6c757d) !important;
}
.fc-match-page .fc-lineup-player__num--away {
  background: linear-gradient(135deg, var(--fc-fix-away, #6c757d), var(--fc-fix-away-dark, #495057)) !important;
}
.fc-match-page .fc-lineup-pitch-legend {
  background: var(--fc-surface-2, #f8f9fa);
  border-color: var(--fc-border, #e9ecef) !important;
}

/* Герой матча: ОВ / доп. время / пенальти под основным счётом */
.fc-match-page .compact-header .fc-score-breakdown {
  margin: 0 auto 0.4rem;
  max-width: 17rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  line-height: 1.4;
}

.fc-match-page .compact-header .fc-score-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
}

.fc-match-page .compact-header .fc-score-breakdown__label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.fc-match-page .compact-header .fc-score-breakdown__val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Вкладка «Статистика»: герой, кольцо владения, радар, дуэльные шкалы */
.fc-match-page .fc-match-stats-body {
  padding-top: 0.5rem;
}

.fc-match-page .fc-match-stats-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1rem 0.5rem 1.35rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--fc-border);
}

.fc-match-page .fc-match-stats-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  max-width: min(160px, 38vw);
  flex: 1 1 120px;
}

@media (min-width: 768px) {
  .fc-match-page .fc-match-stats-hero {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .fc-match-page .fc-match-stats-hero-team {
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: min(340px, 32%);
    flex: 1 1 0;
    gap: 0.65rem;
  }

  .fc-match-page .fc-match-stats-hero-team--away {
    flex-direction: row-reverse;
    text-align: right;
  }

  .fc-match-page .fc-match-stats-hero-name {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .fc-match-page .fc-match-stats-possession {
    flex-shrink: 0;
  }
}

.fc-match-page .fc-match-stats-hero-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-border);
  padding: 4px;
}

.fc-match-page .fc-match-stats-hero-name {
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
  color: var(--fc-heading, #212529);
}

.fc-match-page .fc-match-stats-hero-team--home .fc-match-stats-hero-name {
  color: var(--fc-red);
}

.fc-match-page .fc-match-stats-hero-team--away .fc-match-stats-hero-name {
  color: var(--fc-fix-away);
}

.fc-match-page .fc-match-stats-hero-vs {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fc-muted);
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.fc-match-page .fc-match-stats-possession {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.fc-match-page .fc-match-stats-donut {
  width: min(128px, 30vw);
  height: min(128px, 30vw);
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--fc-red) 0 calc(var(--fc-poss-home-deg, 180) * 1deg),
    var(--fc-fix-away) 0
  );
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
}

.fc-match-page .fc-match-stats-donut::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: var(--fc-surface);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.07);
}

.fc-match-page .fc-match-stats-possession-vals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.fc-match-page .fc-match-stats-possession-pill {
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-2);
}

.fc-match-page .fc-match-stats-possession-pill--home {
  color: var(--fc-red);
  border-color: rgba(196, 30, 58, 0.35);
  background: rgba(196, 30, 58, 0.06);
}

.fc-match-page .fc-match-stats-possession-pill--away {
  color: var(--fc-fix-away);
  border-color: rgba(44, 62, 80, 0.35);
  background: rgba(44, 62, 80, 0.06);
}

.fc-match-page .fc-match-stats-possession-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fc-muted);
}

.fc-match-page .fc-match-stats-radar-panel {
  margin: 0.35rem 0 0.85rem;
}

.fc-match-page .fc-match-stats-radar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius, 12px);
  background: var(--fc-surface-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-match-page .fc-match-stats-radar-toggle:hover {
  background: var(--fc-surface);
  border-color: rgba(196, 30, 58, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fc-match-page .fc-match-stats-radar-toggle:focus-visible {
  outline: 2px solid var(--fc-red);
  outline-offset: 2px;
}

.fc-match-page .fc-match-stats-radar-toggle-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.fc-match-page .fc-match-stats-radar-toggle-ico {
  display: none;
  color: var(--fc-muted);
  font-size: 0.9rem;
  margin-bottom: 0.05rem;
}

@media (min-width: 576px) {
  .fc-match-page .fc-match-stats-radar-toggle-main {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .fc-match-page .fc-match-stats-radar-toggle-ico {
    display: inline-block;
  }
}

.fc-match-page .fc-match-stats-radar-toggle-text {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fc-match-page .fc-match-stats-radar-toggle-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fc-muted);
  width: 100%;
}

@media (min-width: 576px) {
  .fc-match-page .fc-match-stats-radar-toggle-hint {
    width: auto;
    font-size: 0.75rem;
  }

  .fc-match-page .fc-match-stats-radar-toggle-hint::before {
    content: "·";
    margin-right: 0.35rem;
    color: var(--fc-border);
    font-weight: 400;
  }
}

.fc-match-page .fc-match-stats-radar-toggle-icons {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  font-size: 0.85rem;
  color: var(--fc-red);
  transition: transform 0.2s ease, background 0.15s ease;
}

.fc-match-page .fc-match-stats-radar-toggle:hover .fc-match-stats-radar-toggle-icons {
  background: rgba(196, 30, 58, 0.08);
  border-color: rgba(196, 30, 58, 0.35);
}

.fc-match-page .fc-match-stats-radar-ico-minus {
  display: none;
}

.fc-match-page .fc-match-stats-radar-toggle[aria-expanded="true"] .fc-match-stats-radar-ico-plus {
  display: none;
}

.fc-match-page .fc-match-stats-radar-toggle[aria-expanded="true"] .fc-match-stats-radar-ico-minus {
  display: inline-block;
}

.fc-match-page .fc-match-stats-radar-toggle[aria-expanded="true"] .fc-match-stats-radar-toggle-icons {
  color: var(--fc-fix-away);
  transform: rotate(0deg);
}

.fc-match-page .fc-match-stats-radar-collapse:not(.show) {
  margin-bottom: 0;
}

.fc-match-page .fc-match-stats-radar-wrap {
  margin: 1rem 0 1.25rem;
  padding: 1rem 0.75rem 0.5rem;
  border-radius: var(--fc-radius, 12px);
  border: 1px solid var(--fc-border);
  background: linear-gradient(165deg, var(--fc-surface-2), var(--fc-surface));
}

.fc-match-page .fc-match-stats-radar-wrap--compact {
  margin: 0.5rem 0 0.5rem;
  padding: 0.65rem 0.65rem 0.45rem;
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-head {
  margin-bottom: 0.2rem;
  padding: 0 0.15rem;
}

.fc-match-page .fc-match-stats-radar-head--in-collapse {
  justify-content: center;
}

.fc-match-page .fc-match-stats-radar-head--in-collapse .fc-match-stats-radar-legend {
  font-size: 0.72rem;
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-title {
  font-size: 0.8125rem;
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-legend {
  font-size: 0.6875rem;
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-svg {
  max-width: min(320px, 92vw);
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-chart {
  transform: none;
}

.fc-match-page .fc-match-stats-radar-wrap--compact .fc-match-stats-radar-label {
  font-size: 8.25px;
  font-weight: 800;
}

.fc-match-page .fc-match-stats-radar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0 0.25rem;
}

.fc-match-page .fc-match-stats-radar-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fc-match-page .fc-match-stats-radar-legend {
  font-size: 0.75rem;
  color: var(--fc-muted);
  font-weight: 600;
}

.fc-match-page .fc-match-stats-radar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.fc-match-page .fc-match-stats-radar-dot--home {
  background: var(--fc-red);
}

.fc-match-page .fc-match-stats-radar-dot--away {
  background: var(--fc-fix-away);
}

.fc-match-page .fc-match-stats-radar-svg {
  max-width: 300px;
  margin: 0 auto;
}

.fc-match-page .fc-match-stats-radar-chart {
  width: 100%;
  height: auto;
  display: block;
  color: var(--fc-muted);
}

.fc-match-page .fc-match-stats-radar-label {
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--fc-muted);
}

.fc-match-page .fc-match-stats-radar-area {
  transition: opacity 0.2s ease;
}

.fc-match-page .fc-match-stats-radar-wrap--compact:hover .fc-match-stats-radar-area--away {
  opacity: 0.92;
}

.fc-match-page .fc-match-stats-group {
  margin-top: 1.35rem;
}

.fc-match-page .fc-match-stats-group-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fc-border);
}

.fc-match-page .fc-match-stat-row {
  margin-bottom: 1rem;
}

.fc-match-page .fc-match-stat-row__head {
  display: grid;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(0, 2.2fr) minmax(2.5rem, 1fr);
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.fc-match-page .fc-match-stat-row__val {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.fc-match-page .fc-match-stat-row__val--home {
  color: var(--fc-red);
  text-align: left;
}

.fc-match-page .fc-match-stat-row__val--away {
  color: var(--fc-fix-away);
  text-align: right;
}

.fc-match-page .fc-match-stat-row__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--fc-heading, #343a40);
  line-height: 1.25;
}

.fc-match-page .fc-match-stat-row__track {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 11px;
  border-radius: 999px;
  background: var(--fc-surface-2, #eceef1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.07);
  overflow: visible;
}

.fc-match-page .fc-match-stat-row__half {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.fc-match-page .fc-match-stat-row__half--home {
  justify-content: flex-end;
  border-radius: 999px 0 0 999px;
}

.fc-match-page .fc-match-stat-row__half--away {
  justify-content: flex-start;
  border-radius: 0 999px 999px 0;
}

.fc-match-page .fc-match-stat-row__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 16px;
  background: var(--fc-surface);
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--fc-border), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
  pointer-events: none;
}

.fc-match-page .fc-match-stat-row__fill {
  min-width: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-match-page .fc-match-stat-row__fill--home {
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--fc-red), var(--fc-red-dark));
  box-shadow: 2px 0 10px rgba(196, 30, 58, 0.22);
}

.fc-match-page .fc-match-stat-row__fill--away {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--fc-fix-away), var(--fc-fix-away-dark));
  box-shadow: -2px 0 10px rgba(44, 62, 80, 0.18);
}

.fc-match-page .fc-match-stats-extras {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--fc-radius, 12px);
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
}

.fc-match-page .fc-match-stats-extras-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fc-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fc-border);
}

.fc-match-page .fc-match-stats-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-2);
  font-size: 0.8125rem;
}

.fc-match-page .fc-match-stats-extra-row:last-child {
  margin-bottom: 0;
}

.fc-match-page .fc-match-stats-extra-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fc-match-page .fc-match-stats-extra-val--home {
  color: var(--fc-red);
}

.fc-match-page .fc-match-stats-extra-val--away {
  color: var(--fc-fix-away);
}

@media (prefers-reduced-motion: reduce) {
  .fc-match-page .fc-match-stat-row__fill {
    transition: none;
  }
}

.fc-match-page .match-tabs .nav-link:not(.active) .tab-badge {
  background: rgba(0, 0, 0, 0.06);
  color: var(--fc-muted);
}
.fc-match-page .match-tabs .nav-link.active .tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 768px) {
  .fc-match-page .team-logo-compact {
    width: 52px;
    height: 52px;
  }
}
