body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(rgba(8, 18, 38, 0.8), rgba(8, 18, 38, 0.9)), 
                url('assets/images/top-players_background.webp') no-repeat center center fixed;
    background-size: cover;
    color: white;
    min-height: 100vh;
    animation: panBackground 30s linear infinite alternate;
}
.player-photo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 22px;
    border: 1px solid rgba(34,197,94,.45);
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
@keyframes panBackground {
    from { background-position: left center; }
    to { background-position: right center; }
}

.container {
    max-width: 1200px;
    width: 94%;
    margin: 60px auto 100px;
    padding: 0;
}

.hero-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 40px;
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #9fb3d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; 
    margin-top: 20px;
}


.hero-title span {
    color: #22c55e;
    -webkit-text-fill-color: #22c55e; 
}

.hero-subtitle {
    margin-top: 15px;
    color: rgba(203, 213, 225, 0.8);
    font-size: 18px;
    max-width: 600px;
}

.updated-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 12px 20px;
    border-radius: 14px;
}

.players-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.players-header h2 {
    font-size: 28px;
    font-weight: 800;
    border-left: 5px solid #22c55e;
    padding-left: 15px;
}

.filter-tabs {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    
}

.filter-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    background: #22c55e;
    color: #04111f;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px; 
    gap: 40px;        
    padding-top: 20px;
}

.filter-tab:visited {
    color: rgba(203, 213, 225, 0.8); 
}

.filter-tab.active:visited {
    color: #04111f; 
}

.player-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.player-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rank-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
    font-size: 20px;
    font-weight: 900;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.tour-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-badge.wta {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f9a8d4;
}

.player-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    min-height: 60px;
}

.player-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 25px;
}

.player-btn {
    width: 100%;
    background: #22c55e;
    color: #04111f;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
    text-decoration: none;
}

.player-btn:hover {
    background: #2ed66b;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-card:nth-child(1) { animation-delay: 0.1s; }
.player-card:nth-child(2) { animation-delay: 0.15s; }
.player-card:nth-child(3) { animation-delay: 0.2s; }
.player-card:nth-child(4) { animation-delay: 0.25s; }
.player-card:nth-child(5) { animation-delay: 0.3s; }
.player-card:nth-child(6) { animation-delay: 0.35s; }

@media (max-width: 768px) {
    .players-header { flex-direction: column; gap: 20px; align-items: flex-start; }
    .hero-box { padding: 30px 20px; }
    .players-grid { grid-template-columns: 1fr; }
}


