.match-card {
    position: relative;              /* ВАЖНО */
    background: var(--on-background-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
    transition: all 0.5s;
}

/* hover можешь оставить как есть */
.match-card:hover {
    border: 1px solid var(--border-color);
}

/* Левый блок остаётся обычным */
.match-game-container {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2; /* чтобы был поверх, если что */
}

.match-game-container img {
    height: 32px;
    width: 32px;
    border-radius: 4px;
}

/* Правый блок просто уезжает вправо */
.match-tournament-container {
    margin-left: auto;
    text-align: right;
    z-index: 2;
    max-width: 200px;
}

.tournament-name {
    white-space: nowrap;
    overflow: hidden;
}

/* ЦЕНТРАЛЬНЫЙ БЛОК: всегда по центру карточки */
.match-teams-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    z-index: 1; /* можно 3, если нужно поверх всего */
}

.team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.team-card img {
    width: 32px;
    height: 32px;
}



.team-a {
    justify-content: end;
}