/* ===== FIXED LEADERBOARD PAGE STYLES - SIMPLE & CLEAN ===== */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f2ff 100%);
    color: #1a202c;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Leaderboard Header */
.leaderboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 300ms ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-profile-small {
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Leaderboard Container */
.leaderboard-container {
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Quiz Info Card */
.quiz-info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.stat-item i {
    color: #4F46E5;
    width: 16px;
    text-align: center;
}

/* Podium Section */
.podium-section {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.podium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.crown-icon {
    position: absolute;
    top: -15px;
    color: #fbbf24;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.position-number {
    background: #4F46E5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.podium-position.first .position-number {
    background: #fbbf24;
}

.podium-position.second .position-number {
    background: #94a3b8;
}

.podium-position.third .position-number {
    background: #f59e0b;
}

.podium-avatar {
    margin-bottom: 8px;
    position: relative;
}

.podium-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    object-fit: cover;
}

.podium-position.first .podium-avatar img {
    border-color: #fbbf24;
    width: 70px;
    height: 70px;
}

.podium-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.podium-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 2px;
}

.podium-time {
    font-size: 0.8rem;
    color: #64748b;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Your Position Card */
.your-position-card {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.your-position-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.your-position-header i {
    font-size: 1.5rem;
}

.your-position-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.position-rank {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    min-width: 80px;
    text-align: center;
}

.position-details {
    flex: 1;
}

.position-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.position-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.position-time {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.position-progress {
    margin-top: 16px;
}

.progress-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Simple Video Advertisement Placeholder */
.video-ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
}

.video-ad-content {
    display: flex;
    justify-content: center;
}

.video-placeholder-box {
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
    padding: 32px;
    max-width: 300px;
    width: 100%;
}

.video-placeholder-box i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.video-placeholder-box p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.video-placeholder-box small {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Enhanced Filters with PDF Download Button */
.leaderboard-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    transition: all 300ms ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.filter-tab.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #4F46E5;
}

/* PDF Download Button */
.download-pdf-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.download-pdf-btn i {
    font-size: 1rem;
}

/* FIXED - Simple Clean Leaderboard Table */
.leaderboard-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Single Header Row - Moves with data */








/* Header inside scrollable container */
.list-header {
    display: grid;
    grid-template-columns: 80px 220px 80px 80px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}





/* Horizontal Scrollable Container */
.leaderboard-items-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom Scrollbar for WebKit browsers */
.leaderboard-items-wrapper::-webkit-scrollbar {
    height: 8px;
}

.leaderboard-items-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.leaderboard-items-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.leaderboard-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.leaderboard-items {
    display: flex;
    flex-direction: column;
    min-width: 576px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 80px 220px 80px 80px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 300ms ease;
}

.leaderboard-item:hover {
    background: #f8fafc;
}

.leaderboard-item.current-user {
    background: rgba(79, 70, 229, 0.05);
    border-left: 4px solid #4F46E5;
}

.item-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a202c;
}

.item-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.current-user-badge {
    background: #4F46E5;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
    margin-top: 2px;
}

.item-score {
    font-weight: 700;
    color: #4F46E5;
    text-align: center;
}

.item-time {
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.item-date {
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
}

/* Loading Placeholder Styles */
.loading-placeholder {
    display: flex;
    flex-direction: column;
}

.loading-item {
    display: grid;
    grid-template-columns: 80px 220px 80px 80px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.loading-rank,
.loading-participant,
.loading-score,
.loading-time,
.loading-date {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
}

.loading-participant {
    height: 36px;
    border-radius: 18px;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Simple Toast Advertisement - Below Leaderboard */
.simple-toast-ad {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

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

.toast-ad-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(108, 117, 125, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 200ms ease;
}

.toast-ad-close:hover {
    background: rgba(108, 117, 125, 0.3);
    transform: scale(1.1);
}

.toast-ad-content {
    display: flex;
    justify-content: center;
}

.toast-ad-placeholder {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    width: 100%;
}

.toast-ad-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

.toast-ad-text {
    flex: 1;
    color: #495057;
}

.toast-ad-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.toast-ad-text p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.toast-ad-action {
    flex-shrink: 0;
}

.ad-button-placeholder {
    background: rgba(108, 117, 125, 0.1);
    border: 2px dashed #dee2e6;
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Load More */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    background: #f8faff;
}

/* Statistics */
.leaderboard-stats {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.leaderboard-stats h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

/* Action Buttons */
.leaderboard-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    border: none;
    font-size: 0.95rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.action-btn.secondary {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.action-btn.secondary:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.action-btn.tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-content i {
    font-size: 1.2rem;
}

/* PDF Generation Modal */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.pdf-modal.show {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 300ms ease;
}

.pdf-modal.show .pdf-modal-content {
    transform: scale(1);
}

.pdf-modal-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 24px;
}

.pdf-modal-header i {
    color: #ef4444;
    font-size: 1.5rem;
}

.pdf-progress {
    width: 100%;
}

.pdf-progress-bar {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 6px;
    transition: width 500ms ease;
    width: 0%;
}

.pdf-progress-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms;
}

.loading-spinner.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner .spinner {
    text-align: center;
    color: #4F46E5;
}

.loading-spinner .spinner i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.loading-spinner .spinner p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
}

/* MOBILE RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .leaderboard-header {
        padding: 10px 16px;
    }
    
    .header-title h2 {
        font-size: 1rem;
    }
    
    .user-avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .leaderboard-container {
        padding: 70px 16px 32px;
        gap: 24px;
    }
    
    .quiz-info-card {
        padding: 20px 16px;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .podium-container {
        gap: 12px;
    }
    
    .podium-position {
        max-width: 100px;
    }
    
    .podium-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .podium-position.first .podium-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .your-position-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .position-rank {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .video-placeholder-box {
        padding: 24px;
    }
    
    .video-placeholder-box i {
        font-size: 2.5rem;
    }
    
    .leaderboard-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .download-pdf-btn {
        flex: 1;
        justify-content: center;
    }
    
    /* Mobile: Add scroll indicator */
    .leaderboard-items-wrapper::after {
        content: '← Swipe to see all columns →';
        display: block;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.75rem;
        color: #64748b;
        background: #f8fafc;
        font-style: italic;
        border-top: 1px solid #f1f5f9;
    }
    
    .toast-ad-placeholder {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .toast-ad-icon {
        align-self: center;
    }
    
    .toast-ad-text h4 {
        font-size: 1.1rem;
    }
    
    .toast-ad-text p {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .leaderboard-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .toast-notification {
        right: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .pdf-modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .leaderboard-container {
        padding: 65px 12px 24px;
    }
    
    .quiz-info-card,
    .podium-section,
    .your-position-card,
    .video-ad-placeholder,
    .leaderboard-filters,
    .leaderboard-list,
    .simple-toast-ad,
    .leaderboard-stats {
        padding: 16px;
    }
    
    .quiz-title {
        font-size: 1.3rem;
    }
    
    .podium-container {
        gap: 8px;
    }
    
    .podium-position {
        max-width: 80px;
    }
    
    .podium-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .podium-position.first .podium-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .position-rank {
        font-size: 2rem;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .download-pdf-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .list-header {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .leaderboard-item {
        padding: 12px 16px;
    }
    
    .player-avatar {
        width: 32px;
        height: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-toast-ad {
        padding: 12px;
        margin: 16px 0;
    }
    
    .toast-ad-close {
        width: 24px;
        height: 24px;
        top: 8px;
        right: 8px;
        font-size: 0.8rem;
    }
    
    .toast-ad-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .toast-ad-text h4 {
        font-size: 1rem;
    }
    
    .toast-ad-text p {
        font-size: 0.8rem;
    }
    
    .ad-button-placeholder {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .crown-icon,
    .simple-toast-ad,
    .loading-shimmer {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .leaderboard-item:hover {
        background: #000;
        color: #fff;
    }
    
    .filter-tab:hover {
        background: #000;
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .leaderboard-header,
    .video-ad-placeholder,
    .simple-toast-ad,
    .leaderboard-actions,
    .loading-spinner,
    .toast-notification,
    .pdf-modal {
        display: none !important;
    }
    
    .leaderboard-items-wrapper {
        overflow: visible;
    }
}
