
/* Матчі, супротивники, турніри */
.match-row
{
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}
.match-info-tournament,
.match-tournament
{
    display: flex;
}
.tournament-row img {
    max-height: 100px;
    margin-right: 10px;
    border-radius: 4px;
    max-width: 100%;
}

.match-teams-maps,
.match-tournament
{
    padding: 10px;
}
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.match-teams .team {
    display: flex;
    align-items: center;
    flex-basis: 40%;
    justify-content: flex-start;
    text-align: left;
}

.match-teams .team-logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #e9ecef;
    border: 1px solid #ddd;
}

.match-teams .team-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams .match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 20%;
    text-align: center;
    padding: 10px;
}

.match-teams .match-score .score {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.match-teams .match-score .format {
    font-size: 14px;
    color: #6c757d;
}


.map-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.map-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.map-name {
    font-weight: bold;
    color: #333;
    padding: 5px;
    display: inline-block;
}

.map-score {
    font-size: 14px;
    color: #666;
    padding: 5px;
    display: inline-block;
}



@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .match-teams .team {
        flex-basis: auto;
        justify-content: center;
        margin-bottom: 10px;
    }

    .match-teams .match-score {
        margin: 10px 0;
    }
    .match-info-tournament, .match-tournament
    {
        display: block;
    }
}
@media (max-width: 576px) {
    .match-row,

    .tournament-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.matches-section .upcoming-matches {
    padding-left: 0;
}

.matches-section .matches-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    align-items: center;
    column-gap: 70px;
    width: 100%;
}

.matches-section .participate-team {
    width: 430px !important;
    max-width: 100%;
    min-height: 150px;
    justify-self: end;
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    text-align: right;
}

.matches-section .participate-team.oponent {
    justify-self: start;
    grid-template-columns: minmax(0, 1fr) 125px;
    text-align: left;
}

.matches-section .participate-team img {
    width: 125px;
    max-width: 125px;
    max-height: 125px;
    object-fit: contain;
    justify-self: center;
}

.matches-section .participate-team h3 {
    min-width: 0;
    margin: 5px 44px 0 18px;
    font-size: 28px;
    line-height: 32px;
    overflow-wrap: anywhere;
}

.matches-section .participate-team.oponent h3 {
    margin: 5px 18px 0 44px;
}

.matches-section .participate-team h3 a {
    color: inherit;
}

.matches-section .match-time {
    width: 180px;
    justify-self: center;
    text-align: center;
}

.matches-section .match-time h3 {
    white-space: nowrap;
}

.matches-section .match-info {
    min-width: 150px;
    text-align: center;
}

.matches-load-more {
    display: flex;
    justify-content: center;
    padding: 10px 0 30px;
    color: #9841ff;
    font-family: "Oxanium", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.matches-load-more span {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.matches-load-more.is-loading span {
    opacity: 1;
}

.tournament-matches-section {
    padding-top: 10px;
}

.tournament-matches-section .section-heading h2 {
    margin-bottom: 0;
}

.gamers-section .team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin-bottom: 48px;
}

.gamers-section .team-thumb {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.gamers-section .team-thumb img {
    max-width: 86%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gamers-section .team-thumb .shape-wrap {
    overflow: hidden;
}

.gamers-section .team-content {
    width: 100%;
    max-width: 330px;
    margin-top: 0;
}

.gamers-section .team-content h3 {
    width: calc(100% - 28px);
    min-width: 0;
}

.gamers-section .team-content h3 a {
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .gamers-section .team-thumb {
        height: 160px;
    }

    .gamers-section .team-thumb img {
        max-height: 140px;
    }
}

@media (max-width: 1199px) {
    .matches-section .matches-list {
        grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
        column-gap: 28px;
    }

    .matches-section .participate-team {
        width: 360px !important;
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .matches-section .participate-team.oponent {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .matches-section .participate-team img {
        width: 96px;
        max-width: 96px;
        max-height: 96px;
    }
}

@media (max-width: 991px) {
    .matches-section .matches-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .matches-section .participate-team,
    .matches-section .participate-team.oponent {
        width: 100% !important;
        justify-self: auto;
    }

    .matches-section .match-time {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .matches-section .participate-team,
    .matches-section .participate-team.oponent {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 120px;
        text-align: left;
    }

    .matches-section .participate-team.oponent {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .matches-section .participate-team img {
        width: 82px;
        max-width: 82px;
        max-height: 82px;
    }

    .matches-section .participate-team h3,
    .matches-section .participate-team.oponent h3 {
        margin: 5px 24px 0;
        font-size: 20px;
        line-height: 26px;
    }
}
