.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Enhanced Podium Styles */
.podium-section {
    margin-bottom: 4rem;
    position: relative;
}

.podium-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.container.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 3rem auto;
    position: relative;
    max-width: 800px;
}

.podium__item {
    width: 240px;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.podium__item:nth-child(1) { animation-delay: 0.2s; }
.podium__item:nth-child(2) { animation-delay: 0s; }
.podium__item:nth-child(3) { animation-delay: 0.4s; }

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

.podium__item:hover {
    transform: translateY(-10px) scale(1.05);
}

.podium__username {
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.podium__item:hover .podium__username {
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--shadow-lg);
}

.podium__rank {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ranking Table Styles */
.ranking-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    max-width: 100%;
}

.table-responsive {
    border-radius: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ranking-table {
    background: transparent;
    margin-bottom: 0;
}

.ranking-table thead th {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.2);
    white-space: nowrap;
}

.ranking-table thead th a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-table thead th a:hover {
    color: var(--primary);
}

.ranking-table thead th.sorted a {
    color: var(--primary);
    font-weight: 800;
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.ranking-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
}

.ranking-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    color: var(--text-secondary);
}

/* Ranking positions */
.rank-position {
    font-weight: 700;
    font-size: 1.125rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
}

.rank-position.gold {
    background: var(--gold-gradient);
    color: rgba(0, 0, 0, 0.8);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.rank-position.silver {
    background: var(--silver-gradient);
    color: rgba(0, 0, 0, 0.8);
    border-color: var(--silver);
    box-shadow: 0 0 20px rgba(209, 213, 219, 0.5);
}

.rank-position.bronze {
    background: var(--bronze-gradient);
    color: white;
    border-color: var(--bronze);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.5);
}

/* Player link styles */
.player-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.player-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.player-link .fa-trophy {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Stats values */
.stat-value {
    font-weight: 600;
    font-size: 1rem;
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

.stat-value.neutral {
    color: var(--text-primary);
}

/* Points badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Victory rate wrapper */
.victory-rate-cell {
    min-width: 140px;
}

.victory-rate-cell > div {
    display: block !important;
    width: 100% !important;
}

.victory-rate-cell .progress {
    display: flex !important;
    width: 100% !important;
}

/* Footer info */
.scoring-info {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.scoring-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .podium-backdrop {
        width: 80%;
        max-width: 300px;
        height: 300px;
    }
    
    .container.podium {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .podium__item {
        width: 30%;
        min-width: 100px;
        max-width: 140px;
        margin: 0 0.25rem;
    }
    
    .podium__username {
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .ranking-table {
        font-size: 0.875rem;
    }
    
    .ranking-table thead th,
    .ranking-table tbody td {
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .points-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .rank-position {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}