/* Team Masculine Pages */

.team-page-main {
    padding: 44px 30px 70px;
    min-height: calc(100vh - 180px);
}

.team-page-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.team-page-title {
    color: var(--primary-color);
    font-size: clamp(24px, 3vw, 46px);
    line-height: 0.92;
    text-transform: uppercase;
}

.team-page-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 36px;
    border-top: 1px solid #dde0e6;
    border-bottom: 1px solid #dde0e6;
    padding: 14px 0;
}

.team-page-filter {
    text-decoration: none;
    color: #0f1528;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 16px;
    border-bottom: 3px solid transparent;
}

.team-page-filter:hover {
    color: var(--primary-color);
}

.team-page-filter.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.team-content-title,
.team-position-title {
    margin: 0 0 18px;
    color: #05070d;
    font-size: clamp(22px, 2.5vw, 42px);
    text-transform: uppercase;
}

.team-position-group {
    margin-bottom: 36px;
}

.team-players-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-player-card {
    background: #ffffff;
    border: 1px solid #e4e7ee;
    overflow: hidden;
}

.team-player-photo-wrap {
    background: white;
    aspect-ratio: 2 / 1.2;
    overflow: hidden;
    display: flex;
        align-items: flex-end;
        justify-content: center;
}

.team-player-photo-wrap.no-image {
    background: linear-gradient(135deg, #dde2eb 0%, #c9d1dd 100%);
}

.team-player-photo {
    display: block;
    width: 150px;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

.team-player-meta {
    padding: 12px 14px 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.team-player-meta-main {
    min-width: 0;
}

.team-player-first-name {
    display: block;
    margin: 0 0 2px;
    color: #a7afb8;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--body-typo);
    font-weight: 600;
}

.team-player-name {
    margin: 0;
    color: #05070d;
    font-size: clamp(22px, 1.6vw, 32px);
    line-height: 0.95;
    text-transform: uppercase;
}

.team-player-age {
    display: block;
    margin-top: 6px;
    color: #4b5667;
    font-size: 15px;
    font-weight: 700;
}

.team-player-number {
    color: #05070d;
    font-size: clamp(42px, 4.2vw, 68px);
    line-height: 0.8;
    font-family: var(--title-typo);
    font-weight: 400;
}

.team-empty-state {
    margin: 0;
    padding: 16px 0;
    color: #5a728f;
    font-size: 18px;
}

.team-content-section {
    margin: auto;
    max-width: 1280px;
}

.standings-container {
    overflow-x: auto;
    border-radius: 8px;
    color: var(--text-color);
}

/* Chrome / Edge / Safari */
.standings-container::-webkit-scrollbar {
    width: 10px;
}

.standings-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.standings-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.76);
    border-radius: 10px;
}

.standings-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.standings-table thead {
    border-bottom: 1px solid #d9dfeb;
}

.standings-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
}

.standings-table td {
    padding: 8px 10px;
    
    color: var(--text-color);
}

.standings-table tbody tr {
    border-left: 4px solid transparent;
}

.standings-table tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}

.standings-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.standings-table tbody tr.mans-fc-highlight {
    font-weight: 600;
    border-left: 4px solid #ffc107;
}


.team-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 1360px) {
    .team-players-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .team-page-main {
        padding: 28px 20px 44px;
    }

    .team-players-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .team-page-main {
        padding: 22px 14px 30px;
    }
    .team-page-filters {
        margin-bottom: 24px;
    }

    .team-page-filter {
        font-size: 15px;
        padding: 8px 10px;
    }

    .team-content-title,
    .team-position-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .team-players-grid {
        grid-template-columns: 1fr;
    }

    .team-player-name {
        font-size: 30px;
    }

    .team-player-first-name {
        font-size: 16px;
    }

    .team-player-number {
        font-size: 52px;
    }
}
