
.teams-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.player_list_section .row {
    align-items: stretch;
}

.player_list_section .sm-padding {
    display: flex;
    margin-bottom: 50px;
}

.player_list_section .team-item {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.player_list_section .team-thumb {
    position: relative;
    display: flex;
    width: 100%;
    height: 280px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player_list_section .team-thumb > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 260px;
    max-height: 260px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.player_list_section .team-content {
    width: 100%;
    min-width: 0;
}

.player_list_section .team-content h3 {
    margin: 16px 0 0;
    text-align: center;
}

.player_list_section .team-content h3 a {
    display: block;
    overflow-wrap: anywhere;
}

.team-card {
    background-color: #444;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: scale(1.05);
    text-decoration: none;
}
.team-logo
{
    width: 40%;
}
.team-logo img {
    height: 64px;
    margin-right: 15px;
}

.team-info {
    flex: 1;
    color: #fff;
}

.team-name {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #f9c51c;
    font-weight: bold;
}

.team-members {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #fff;
}

/* Адаптивність для планшетів */
@media (max-width: 1024px) {
    .teams-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .player_list_section .sm-padding {
        margin-bottom: 34px;
    }

    .player_list_section .team-thumb {
        height: 220px;
    }

    .player_list_section .team-thumb > img {
        max-width: 200px;
        max-height: 200px;
    }

    .team-card
    {
        display: inherit;
    }
    .team-logo{
        width: inherit;
        text-align: center;
    }
    .teams-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Матчі, супротивники, турніри */
.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;
    }
}
@media (max-width: 576px) {
    .match-row,

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

.tournament-played-matches-section {
    margin-top: -50px;
}

.tournament-played-matches {
    display: grid;
    gap: 16px;
}

.tournament-played-empty {
    padding: 24px;
    border: 1px solid rgba(120, 78, 255, 0.38);
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    background: rgba(10, 2, 34, 0.94);
}

.tournament-played-match {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) 120px minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(120, 78, 255, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(81, 18, 255, 0.2), rgba(10, 2, 34, 0.94) 42%, rgba(15, 5, 48, 0.95)),
        rgba(10, 2, 34, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.tournament-played-match__meta span,
.tournament-played-match__meta strong,
.tournament-played-match__score span {
    display: block;
    font-family: "Exo", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.66);
    text-transform: uppercase;
}

.tournament-played-match__meta strong {
    margin-top: 6px;
    color: #67ff9d;
}

.tournament-played-match__team {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.tournament-played-match__team--right {
    grid-template-columns: minmax(0, 1fr) 58px;
    text-align: right;
}

.tournament-played-match__team img {
    width: 58px;
    height: 58px;
    padding: 6px;
    border: 1px solid rgba(142, 101, 255, 0.72);
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.07);
}

.tournament-played-match__team--right img {
    order: 2;
}

.tournament-played-match__team h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: "Exo", sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
}

.tournament-played-match__team h3 a {
    color: inherit;
}

.tournament-played-match__team h3 a:hover {
    color: #9f7cff;
}

.tournament-played-match__score {
    text-align: center;
}

.tournament-played-match__score strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Exo", sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.tournament-played-match__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(159, 124, 255, 0.65);
    border-radius: 6px;
    font-family: "Exo", sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    background: #5112ff;
}

.tournament-played-match__link:hover {
    color: #ffffff;
    background: #6f3cff;
}

@media (max-width: 1100px) {
    .tournament-played-match {
        grid-template-columns: 1fr 110px 1fr;
    }

    .tournament-played-match__meta,
    .tournament-played-match__link {
        grid-column: 1 / -1;
    }

    .tournament-played-match__link {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .tournament-played-matches-section {
        margin-top: -70px;
    }

    .tournament-played-match {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .tournament-played-match__team,
    .tournament-played-match__team--right {
        grid-template-columns: 58px minmax(0, 1fr);
        text-align: left;
    }

    .tournament-played-match__team--right img {
        order: 0;
    }

    .tournament-played-match__score {
        text-align: left;
    }

    .tournament-played-match__link {
        width: 100%;
    }
}
