/* ============================================
   ESTADÍSTICAS PAGE - PREMIUM DARK THEME
   Design matching Liga/Equipo page aesthetic
   ============================================ */

/* ============================================
   CSS VARIABLES - DARK THEME
   ============================================ */
:root {
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --bg-card-hover: rgba(32, 32, 45, 0.9);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Accent Colors */
    --accent-gold: #c2a44a;
    --accent-gold-light: #d4b85a;
    --accent-gold-dark: #a08838;
    --accent-gold-glow: rgba(194, 164, 74, 0.4);

    /* Status Colors */
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.15);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.15);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.15);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --section-gap: 2.5rem;
    --card-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --radius-sm: 8px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body.dark-theme {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 80px;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content,
.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-symbol {
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold-glow);
}

.logo .gold {
    color: var(--accent-gold);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-header {
    display: none;
}

.nav-close {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.stats-hero {
    position: relative;
    padding: 3rem 0;
    margin-bottom: var(--section-gap);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-gold-glow) 0%, transparent 70%);
    opacity: 0.3;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(194, 164, 74, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(194, 164, 74, 0.03) 0%, transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 20px;
    font-size: 2.5rem;
    box-shadow: 0 8px 32px var(--accent-gold-glow);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary) !important;
    margin: 0;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
    margin-bottom: var(--section-gap);
    display: flex;
    justify-content: center;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

.filter-icon {
    color: var(--accent-gold);
    display: flex;
    align-items: center;
}

.filter-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.header-icon-box.warning {
    background: linear-gradient(135deg, var(--color-warning), #d97706);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-tertiary) !important;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    margin-bottom: var(--section-gap);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.disciplinary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.disciplinary-card {
    background: var(--bg-card);
}

/* ============================================
   STAT CARD
   ============================================ */
.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-gold-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1.25rem;
}

.card-icon.yellow {
    background: var(--color-warning-bg);
    border-color: rgba(245, 158, 11, 0.3);
}

.card-icon.red {
    background: var(--color-danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
}

.card-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 0;
}

.card-body {
    padding: 1rem 1.25rem;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    transition: var(--transition-fast);
}

.ranking-list li:first-child {
    background: linear-gradient(135deg, rgba(194, 164, 74, 0.15), rgba(194, 164, 74, 0.05));
    border: 1px solid rgba(194, 164, 74, 0.3);
    color: var(--accent-gold) !important;
}

.loading-item {
    padding: 0.75rem !important;
}

.skeleton-line {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.stat-card:hover .view-more {
    gap: 0.75rem;
}

.view-more svg {
    transition: var(--transition-fast);
}

.stat-card:hover .view-more svg {
    transform: translateX(4px);
}

/* ============================================
   SPOTLIGHT SECTION
   ============================================ */
.spotlight-section {
    margin-bottom: var(--section-gap);
}

.spotlight-card {
    position: relative;
    background: linear-gradient(135deg, rgba(194, 164, 74, 0.1), rgba(194, 164, 74, 0.02));
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.spotlight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

.spotlight-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spotlight-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.spotlight-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    opacity: 0.5;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

.spotlight-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0;
}

.spotlight-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-gold-glow);
}

.btn-secondary-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-secondary-premium:hover {
    background: rgba(194, 164, 74, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.1rem;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Modal Ranking List */
.modal-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-ranking-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-ranking-list li:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.modal-ranking-list li:first-child {
    background: linear-gradient(135deg, rgba(194, 164, 74, 0.15), rgba(194, 164, 74, 0.05));
    border-color: var(--accent-gold);
}

.ranking-item-clickable {
    cursor: pointer;
}

/* Pagination */
.paginacion {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paginacion-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.paginacion-numeros {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-pag,
.btn-pag-num {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-pag:hover:not(.disabled),
.btn-pag-num:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-pag.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-pag-num.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.paginacion-dots {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.paginacion-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

/* ============================================
   COMPARADOR STYLES
   ============================================ */
.comparador-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparador-selects {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparador-select {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparador-select label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
}

.comparador-select input {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.comparador-select input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.comparador-select input::placeholder {
    color: var(--text-muted);
}

.comparador-select select {
    display: none;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

.comparador-select select.visible {
    display: block;
}

.comparador-select select.matches-list {
    margin-top: 0.5rem;
}

.comparador-vs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    padding: 0 0.5rem;
    text-shadow: 0 0 20px var(--accent-gold-glow);
}

.comparar-btn {
    align-self: center;
}

.comparador-resultado {
    margin-top: 1rem;
}

.comparador-cards {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.comparador-player {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-align: center;
}

.comparador-player .player-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0 auto 1rem;
}

.comparador-player .player-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
}

.comparador-player .player-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparador-player .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.comparador-player .stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary) !important;
}

.comparador-player .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-secondary) !important;
}

.comparador-player .stat-value.winner {
    color: var(--color-success) !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.comparador-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding: 0 0.5rem;
}

/* ============================================
   JUGADORES MODAL
   ============================================ */
.jugadores-busqueda {
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.jugadores-busqueda input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.jugadores-busqueda input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.jugadores-busqueda input::placeholder {
    color: var(--text-muted);
}

.jugadores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.jugador-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.jugador-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.jugador-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    flex-shrink: 0;
}

.jugador-nombre {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jugador-stats-mini {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-tertiary) !important;
}

/* Jugador Perfil Modal */
.jugador-perfil {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jugador-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
}

.jugador-avatar-lg {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.jugador-info {
    flex: 1;
}

.jugador-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0 0 0.25rem;
}

.jugador-club {
    font-size: 0.9rem;
    color: var(--text-tertiary) !important;
}

.jugador-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.stat-box .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary) !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-links .separator {
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-scroll-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-scroll-top:hover {
    background: var(--bg-card);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.footer-info {
    text-align: right;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-credit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 1001;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 1.5rem;
        position: absolute;
        top: 0;
    }

    .nav-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
    }

    .nav-brand img {
        width: 32px;
        height: 32px;
    }

    .nav-brand span {
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        color: var(--text-primary);
    }

    .nav-close {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        font-size: 1.25rem;
        cursor: pointer;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hero Mobile */
    .stats-hero {
        padding: 2rem 0;
    }

    .hero-icon-wrapper {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .disciplinary-grid {
        grid-template-columns: 1fr;
    }

    /* Section Header Mobile */
    .section-header {
        gap: 0.75rem;
    }

    .header-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .header-text h2 {
        font-size: 1.25rem;
    }

    /* Spotlight Mobile */
    .spotlight-card {
        padding: 2rem 1.5rem;
    }

    .spotlight-avatar {
        width: 100px;
        height: 100px;
    }

    .spotlight-name {
        font-size: 1.5rem;
    }

    .spotlight-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-premium,
    .btn-secondary-premium {
        width: 100%;
        justify-content: center;
    }

    /* Modal Mobile */
    .modal-content {
        max-height: 90vh;
    }

    .comparador-selects {
        flex-direction: column;
    }

    .comparador-vs {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }

    .comparador-cards {
        flex-direction: column;
    }

    .comparador-divider {
        transform: rotate(90deg);
    }

    .jugadores-grid {
        grid-template-columns: 1fr;
    }

    .jugador-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-wrapper {
        width: 100%;
    }

    .filter-select {
        min-width: auto;
        flex: 1;
    }

    .stat-box .stat-value {
        font-size: 1.25rem;
    }

    .stat-box .stat-label {
        font-size: 0.7rem;
    }

    .paginacion-controls {
        flex-wrap: wrap;
    }

    .btn-pag {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RANKING ITEM STYLES (Card Lists)
   ============================================ */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.rank-medal {
    flex-shrink: 0;
    font-size: 1rem;
}

.rank-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.stat-num {
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--accent-gold) !important;
    background: rgba(194, 164, 74, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.empty-item {
    text-align: center;
    color: var(--text-muted) !important;
    font-style: italic;
}