/* Phân trang */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.fcm-page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.fcm-page-link:hover {
    background-color: #bbb;
}

.fcm-page-link.active {
    font-weight: bold;
    background-color: #bbb;
}

.fcm-page-link.prev,
.fcm-page-link.next {
    font-weight: bold;
}

.site-main {
    padding: 10px;
    margin: auto;
    width: 1140px;
}

.page-header {
    margin-bottom: 20px;
    text-align: center;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    /*background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
}

/* Đội bóng */
#team-list, #tournament-list, #team-list-index {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.team-item, .tournament-item {
    display: flex;
    flex-direction: column; /* Xếp các phần tử theo chiều dọc */
    justify-content: space-between;
    width: 23.6%;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid#e9e9e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.team-item a, .tournament-item a {
    text-decoration: none;
    color: inherit;
}

.team-item:hover, .tournament-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.team-item h4, .tournament-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-item img, .tournament-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.team-item img {
    height: 220px;
}

.tournament-item img {
    height: auto;
}

.tournament-info {
    text-align:left; 
    font-size:14px;
}

.tournament-title {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
}

/* Single teams */
.team-header, .tournament-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 0px;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 10px;
}

.team-logo-name, .tournament-logo-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-header .team-logo,
.tournament-header .tournament-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.team-header .team-name,
.tournament-header .tournament-name {
    font-size: 2rem;
    font-weight: bold;
}

.team-details p, .tournament-details p {
    margin: 5px 0;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1em;
}

.matches-table tbody > tr:nth-child(odd) > td {
    background-color: rgb(237 237 237 / 7%);
}

.matches-table tbody > tr:nth-child(even) > td {
    background-color: #fff;
}

.matches-table th, .matches-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.matches-table th {
    background: #069e88;
    color: #fff;
    border: 1px solid #ddd;
}

.team-tabs, .tournament-tabs {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 10px;
}

.team-tabs a, .tournament-tabs a {
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
    color: #fff;
    font-weight: 600;
    border: 1px solid #069e88;
    border-radius: 5px;
    background-color: #069e88;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.team-tabs a:hover,
.tournament-tabs a:hover {
    background-color: #974b00;
    color: #fff;
    border-color: #974b00;
}

.team-tabs a.active,
.tournament-tabs a.active {
    background-color: #974b00;
    border-color: #974b00;
}

.team-tabs ul, .tournament-tabs ul {
    list-style: none;
    gap: 10px;
    padding: 0;
}

.tournament-tabs ul {
    display: flex;
}

.team-tab-content, .tournament-tab-content {
    margin-top: 20px;
}

/* Players */
.player-grid, .staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.player-card, .staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0px;
    width: 18.54%;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.player-info, .staff-info {
    padding: 10px;
    text-align: left;
}

.player-card:hover, .staff-card:hove {
    transform: scale(1.05);
}

.player-avatar, .staff-avatar {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.player-card img, .staff-card img {
    border-radius: 8px 8px 0 0;
}

.player-card h4, .staff-card h4 {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
}

.player-card p, .staff-card p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.player-index {
    position: absolute;
    top: 45%;
    left: 10px;
    color: #f80090;
    font-size: 30px;
    font-weight: bold;
    /* padding: 5px; */
    border-radius: 50%;
    background-color: transparent;
    z-index: 1;
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

.tournament-bio, .team-bio {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Mặc định hiển thị nội dung trên máy tính */
.tabs-desktop {
    display: flex;
}
.tabs-mobile {
    display: none;
}

@media screen and (max-width: 768px) {

    #team-list, #tournament-list, #team-list-index {
        gap: 10px;
    }
    .tabs-desktop {
        display: none;
    }
    .tabs-mobile {
        display: flex;
    }
    .entry-title {
        font-size: 1.7rem;
        font-weight: 700;
    }

    #team-list, .tournament-list, #team-list-index {
        gap: 10px;
    }

    .player-grid, .staff-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .player-card, .staff-card {
        width: 48.3%;
    }

    .team-header .team-logo, 
    .tournament-header .tournament-logo {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 0;
    }

    .team-header .team-name,
    .tournament-header .tournament-name {
        font-size: 1rem;
    }

    .team-header, .tournament-header {
        gap: 10px;
    }

    .team-logo-name, .tournament-logo-name {
        gap: 10px;
        flex-direction: column;
        align-items: center;
        width: 30%;
    }

    .team-item img {
        height: auto;
    }

    .tournament-item img {
        height: auto;
    }

    .team-item, .tournament-item {
        width: 48.3%;
    }

    .matches-table {
        font-size: 10px;
    }
    .player-index {
        font-size: 26px;
    }

    .tournament-info {
        font-size:12px;
    }

    .tournament-title {
        font-size: 14px;
        padding-bottom: 10px;
    }
    
    .site-main {
        padding: 10px;
        margin: auto;
        width: 1140px;
    }

}



