body {
    background: #000;
    overflow-x: hidden;
}

.tournament-categories {
    padding: 15px;
    background: #161616;
    border-bottom: 1px solid #272727;
    overflow: auto;
}

.tournament-categories .wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    margin: 0 auto;
}

.tournament-categories .wrapper .category-item {
    background-color: #000;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    min-width: max-content;
    font-weight: 700;
    transition: .3s;
}

.tournament-categories .wrapper .category-item:hover {
    transform: translateY(-3px);
}

.tournament-categories .wrapper .category-item.active-cat {
    background: var(--dark-blue);
}

.teams {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    --position-size: 5%;
    --team-size: 79%;
    --points-size: 8%;
}

.teams .ranking-title {
    color: #fff;
    font-size: 65px;
    margin: 0px 0px 60px;
    text-align: center;
    font-weight: 900;
    font-family: var(--fraunces-font);
    text-transform: uppercase;
    padding-bottom: 20px;
    border-bottom: 1px solid #393939;
    overflow: hidden;
}

.teams .ranking-title span {
    display: inline-block;
}

.teams-head {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    background: #000;
    padding: 10px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #393939;
}

.teams-head p {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin: 0;
}

.teams-head .position {
    width: var(--position-size);
}

.teams-head .team {
    width: var(--team-size);
}

.teams-head .points {
    width: var(--points-size);
    text-align: right;
}

.teams-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.teams-list .team-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 999px;
    color: #fff;
    border-bottom: 1px solid #393939;
    cursor: pointer;
    background: #000;
    z-index: 1;
    transition: 400ms;
}

.teams-list .team-item:hover {
    background: #292929;
}

.teams-list .team-item .position {
    font-size: 1.8rem;
    font-weight: 800;
    width: var(--position-size);
}

.teams-list .team-item .data {
    display: flex;
    align-items: center;
    gap: 20px;
    width: var(--team-size);
    padding-right: 15px;
}

.teams-list .team-item .data .team-name {
    margin: 0;
    transition: transform 400ms;
}

.teams-list .team-item:hover .data .team-name {
    transform: translateX(10px);
}

.teams-list .team-item .data .team-name {
    font-weight: 700;
    background: transparent;
    border: 0;
    text-decoration: none;
}

.teams-list .team-item .data .team-name:hover {
    color: #aaaaaa;
}

.teams-list .team-item .img-team {
    height: 60px;
    width: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 999px;
}

.teams-list .team-item .points {
    width: var(--points-size);
    text-align: right;
}

.players-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 10px 10px;
    background: #101010;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: -70px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.players-container .player-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    transition: 400ms;
}

.players-container .player-item:hover {
    background: #292929;
}

.players-container .player-item .data {
    display: flex;
    align-items: center;
    width: 70%;
    gap: 20px;
}

.players-container .player-item .data .player-name {
    transition: transform 400ms;
    padding-right: 10px;
}

.players-container .player-item:hover .data .player-name {
    transform: translateX(6px);
}

.players-container .player-item .img-club {
    width: 30px;
}

.players-container .player-item .img-player {
    height: 60px;
    width: 60px;
    object-position: center;
    border-radius: 999px;
}

.paginator {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
}

.paginator div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.paginator a {
    text-decoration: none;
    display: inline-block;
}

.paginator button {
    padding: 10px 12px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    transition: 300ms;
    border: 1px solid transparent;
    border-radius: 30px;
}

.paginator .transparent-btn {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.paginator .transparent-btn:hover {
    opacity: 0.7;
}

.paginator .dark-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #000;
}

@media (max-width: 768px) {
    .teams .ranking-title {
        font-size: 2.6rem;
        max-width: 400px;
        margin: 0 auto 60px;
    }
}

@media (max-width: 1000px) {
    .teams {
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 20px;
        --position-size: 10%;
        --team-size: 80%;
    }

    .teams .ranking-title {
        font-size: 3rem;
    }

    .teams-list .team-item .position {
        font-size: 1.4rem;
    }

    .teams-list .team-item .data {
        gap: 12px;
    }
}

@media (max-width: 660px) {
    .teams {
        padding: 80px 10px;
    }

    .teams .ranking-title {
        font-size: 2.2rem;
    }

    .tournament-categories .wrapper .category-item {
        padding: 9px 12px;
        font-size: 13px;
    }

    .players-container .player-item {
        font-size: 15px;
    }

    .teams-list .team-item .img-team,
    .players-container .player-item .img-player {
        height: 45px;
        width: 45px;
    }

    .players-container .player-item .img-club {
        display: none;
    }
    
    .teams-list .team-item *:not(.position) {
        font-size: 14px !important;
    }
}

@media (max-width: 580px) {
    .teams-head p {
        font-size: 12px;
    }
}