/* perfil_jugador.css - Estilos mejorados para perfil de jugador con namespace pj- */

/* ===== LAYOUT PRINCIPAL ===== */
.pj-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* ===== GRID DE JUGADORES ===== */
.pj-jugadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pj-jugador-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    position: relative;
    border: 1px solid #e0e0e0;
}

.pj-jugador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== ESTADOS DE JUGADOR ===== */
.pj-jugador-retirado {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pj-jugador-baja {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.pj-jugador-activo {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.pj-retirado-badge {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pj-baja-badge {
    background: #ffc107;
    color: black;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pj-jugador-retirado-link {
    opacity: 0.7;
    text-decoration: line-through;
    color: #6c757d;
}

.pj-retirado-indicator {
    margin-left: 5px;
    font-size: 0.9em;
}
/* ===== POSICIÓN Y TEMPORADA ===== */
.pj-jugador-posicion {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    z-index: 2;
}

.lb-temporada-activa {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pj-jugadores-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== AVATAR E IMÁGENES - MEJORADO ===== */
.pj-jugador-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 3px solid #e0e0e0;
}

.pj-avatar-jugador {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* ← Añadir esta línea */
    object-position: center; /* ← Añadir esta línea */
    display: block;        /* ← Añadir esta línea */
}

.pj-avatar-iniciales {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 48px;
}

.pj-jugador-info-tabla {
    display: flex;
    align-items: center;
}

.pj-avatar-tabla {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.pj-nombre-jugador {
    font-weight: 500;
}

/* ===== INFORMACIÓN DEL JUGADOR EN LISTA ===== */
.pj-jugador-info h3 {
    margin: 0 0 15px 0;
    color: #1a472a;
    font-size: 1.4em;
}

/* ===== ESTADÍSTICAS EN LISTA - MEJORADO ===== */
.jugador-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.jugador-stats .pj-stat {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.jugador-stats .pj-stat:last-child {
    border-bottom: none;
}

.jugador-stats .pj-stat span {
    font-weight: 600;
    color: #2c3e50;
}

.jugador-stats .pj-puntos {
    grid-column: span 2;
    font-weight: bold;
    color: #1a472a;
    border-top: 2px solid #1a472a;
    padding-top: 10px;
    margin-top: 5px;
    background: #e8f5e8;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.handicap-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
}

.pj-handicap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.handicap-0 { 
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); 
}
.handicap-1 { 
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); 
    color: black;
}
.handicap-2 { 
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); 
}

.pj-puntos-desglose {
    font-size: 11px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-weight: 600;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* ===== ENLACES ===== */
.pj-enlace-jugador {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pj-enlace-jugador:hover {
    color: #3498db;
    transform: translateX(3px);
}

/* ===== PERFIL DETALLADO DEL JUGADOR ===== */
.pj-perfil_jugador {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.pj-perfil-header {
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.pj-perfil-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><polygon points="50,0 100,50 50,100 0,50" fill="white"/></svg>');
    background-size: 60px 60px;
}

.pj-perfil-header h1 {
    margin: 20px 0;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.1;
    position: relative;
}

.pj-btn-volver {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    font-size: 15px;
    position: relative;
    z-index: 2;
}

.pj-btn-volver:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(-5px) translateY(-2px);
    border-color: rgba(255,255,255,0.4);
    color: #ecf0f1;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

/* ===== BANNER INFORMATIVO ===== */
.pj-banner-estado-clasificacion {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 6px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pj-banner-estado-clasificacion:hover {
    transform: translateY(-2px);
}

.pj-banner-estado-clasificacion.definitiva {
    background: linear-gradient(135deg, #d4ffd4 0%, #a8e6a8 100%);
    border-left-color: #1e7e34;
}

.pj-banner-estado-clasificacion.provisional {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
}

.pj-banner-icono {
    font-size: 2.5em;
    margin-right: 20px;
    flex-shrink: 0;
}

.pj-banner-contenido h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 700;
}

.pj-banner-contenido p {
    margin: 0;
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

/* ===== INFORMACIÓN DEL PERFIL ===== */
.pj-perfil-info {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pj-perfil-info:hover {
    transform: translateY(-2px);
}

.pj-perfil-avatar {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pj-perfil-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ecf0f1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.pj-perfil-avatar img:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.pj-perfil-datos h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 800;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.pj-alias-jugador {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* ===== ESTADÍSTICAS DETALLADAS ===== */
.pj-estadisticas-jugador {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pj-estadistica {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pj-estadistica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pj-estadistica:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.pj-estadistica:hover::before {
    opacity: 1;
}

.pj-estadistica .pj-numero {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.pj-estadistica:hover .pj-numero {
    color: #3498db;
}

.pj-estadistica .pj-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Handicap en perfil */
.pj-estadistica .pj-handicap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pj-estadistica .pj-handicap-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

.pj-estadistica .pj-handicap-badge.definitivo {
    border: 2px solid #28a745;
}

.pj-estadistica .pj-handicap-badge.provisional {
    border: 2px solid #ffc107;
}

.pj-handicap-info {
    margin-top: 8px;
}

.pj-handicap-info small {
    font-weight: 600;
}

/* ===== PUNTOS EN AVATAR ===== */
.pj-puntos-avatar {
    margin-top: 20px;
    text-align: center;
}

.pj-puntos-totales {
    font-size: 42px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pj-puntos-label {
    font-size: 14px;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pj-puntos-detalle {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.pj-puntos-detalle.definitivo {
    background: #d4ffd4;
    border-color: #a8e6a8;
    color: #1e7e34;
    font-weight: 600;
}

.pj-puntos-detalle.provisional {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-weight: 600;
}

/* ===== HISTORIAL DE PARTIDOS - VERSIÓN SUPER COMPACTA ===== */
.pj-historial-partidos {
    background: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    margin-bottom: 25px !important;
    transition: transform 0.3s ease !important;
    max-height: 700px !important;
    display: flex !important;
    flex-direction: column !important;
}

.pj-historial-partidos h3 {
    color: #2c3e50 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

/* ===== CONTENEDOR CON SCROLL - MÁXIMA ALTURA ===== */
.pj-partidos-scroll-container {
    max-height: 600px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    border-radius: 6px !important;
    flex-grow: 1 !important;
}

/* ===== LISTA DE PARTIDOS - MÍNIMO ESPACIO ===== */
.pj-partidos-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.pj-partidos-list h4 {
    color: #1a472a !important;
    margin: 15px 0 8px 0 !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4edda 20%) !important;
    border-left: 3px solid #2196F3 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

/* ===== ITEMS DE PARTIDOS - MÁXIMA COMPACTACIÓN ===== */
.pj-partido-item {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 12px !important;
    border-left: 4px solid #3498db !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.pj-partido-item:hover {
    background: #e9ecef !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* ===== INFORMACIÓN DE PARTIDO - UNA SOLA LÍNEA ===== */
.pj-partido-info {
    display: grid !important;
    grid-template-columns: 1fr auto auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
}

.pj-partido-vs {
    min-width: 0 !important;
    overflow: hidden !important;
}

.pj-jugador-partido {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 13px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pj-jornada-info, .pj-fecha-info {
    font-size: 10px !important;
    color: #6c757d !important;
    display: inline !important;
    margin-right: 8px !important;
    font-weight: 500 !important;
}

/* ===== ESTADOS Y RESULTADOS - MÁS COMPACTOS ===== */
.pj-partido-estado {
    flex-shrink: 0 !important;
}

.pj-partido-estado .pj-estado {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
}

.pj-partido-posicion {
    font-size: 10px !important;
    color: #6c757d !important;
    font-style: italic !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.pj-partido-resultado {
    flex-shrink: 0 !important;
}

.pj-partido-resultado .pj-resultado {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    background: #e9ecef !important;
    white-space: nowrap !important;
}

/* ===== BADGES DE PARTIDOS - ENCIMA DE LA INFORMACIÓN ===== */
.pj-partido-header-vuelta {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pj-badge-vuelta {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.pj-partido-aplazado-badge,
.pj-partido-suspendido-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* ===== MULTIMEDIA INTEGRADA EN LA MISMA LÍNEA ===== */
.pj-partido-multimedia-link {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

.pj-multimedia-enlace {
    display: inline-flex !important;
    align-items: center !important;
    color: #2196F3 !important;
    text-decoration: none !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    background: #e3f2fd !important;
    border-radius: 3px !important;
    border: 1px solid #bbdefb !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.pj-multimedia-enlace:hover {
    background: #bbdefb !important;
    text-decoration: none !important;
    color: #1976D2 !important;
}

/* ===== VERSIÓN CON MULTIMEDIA INTEGRADA ===== */
/* Cuando hay multimedia, ajustamos el grid para incluirlo */
.pj-partido-item:has(.pj-partido-multimedia-link) .pj-partido-info {
    grid-template-columns: 1fr auto auto auto auto !important;
}

/* ===== ESTILOS ESPECÍFICOS PARA ESTADOS ===== */
.pj-partido-item.victoria {
    border-left-color: #28a745 !important;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%) !important;
}

.pj-partido-item.derrota {
    border-left-color: #dc3545 !important;
    background: linear-gradient(135deg, #fff9f9 0%, #f8e8e8 100%) !important;
}

.pj-partido-item.suspendido {
    background: linear-gradient(135deg, #fff3f3 0%, #ffe8e8 100%) !important;
    border-left-color: #ff6b6b !important;
}

.pj-primera-vuelta {
    border-left-color: #2196F3 !important;
}

.pj-segunda-vuelta {
    border-left-color: #FF9800 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pj-perfil_jugador {
        padding: 15px;
    }
    
    .pj-perfil-info {
        grid-template-columns: 180px 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .pj-estadisticas-jugador {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .pj-jugadores-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .pj-perfil-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        padding: 20px;
    }
    
    .pj-perfil-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .pj-estadisticas-jugador {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .jugador-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .jugador-stats .pj-puntos {
        grid-column: span 1;
    }
    
    .pj-partido-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .pj-partido-vs, .pj-partido-estado, .pj-partido-posicion {
        width: 100%;
        text-align: center;
    }
    
    .pj-partido-resultado {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .pj-partidos-scroll-container {
        max-height: 400px;
    }
    
    .pj-banner-estado-clasificacion {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .pj-banner-icono {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pj-historial-partidos {
        padding: 25px;
    }
    
    .pj-jugadores-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .pj-jugador-avatar {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .pj-perfil-header {
        padding: 25px 20px;
    }
    
    .pj-perfil-header h1 {
        font-size: 24px;
    }
    
    .pj-btn-volver {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pj-estadisticas-jugador {
        grid-template-columns: 1fr;
    }
    
    .jugador-stats {
        grid-template-columns: 1fr;
    }
    
    .pj-estadistica .pj-numero {
        font-size: 24px;
    }
    
    .pj-jugadores-grid {
        grid-template-columns: 1fr;
    }
    
    .pj-jugador-avatar {
        width: 130px;
        height: 130px;
    }
}
/* ===== ANIMACIONES ===== */
@keyframes pj-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pj-perfil-info,
.pj-historial-partidos,
.pj-jugadores-grid {
    animation: pj-fadeInUp 0.6s ease-out;
}

.pj-perfil-header {
    animation: pj-fadeInUp 0.8s ease-out;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* ===== MODO OSCURO ===== */
@media (prefers-color-scheme: dark) {
    .pj-perfil_jugador {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
    }
    
    .pj-perfil-info,
    .pj-historial-partidos,
    .pj-jugador-card {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .pj-estadistica,
    .pj-jugador-stats .pj-stat {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .pj-estadistica .pj-numero,
    .pj-jugador-info h3 {
        color: #ecf0f1;
    }
    
    .pj-estadistica .pj-label {
        color: #bdc3c7;
    }
}
/* Estilos para partidos suspendidos en el perfil */
.pj-partido-item.partido-suspendido {
    border-left: 4px solid #d63638;
    background-color: #fff6f6;
}

.pj-partido-suspension-badge {
    background: #d63638;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 5px;
}

.pj-partido-suspension-info {
    margin-top: 5px;
    padding: 5px;
    background: #ffeaea;
    border-radius: 3px;
    font-size: 0.85em;
}

.pj-partido-suspension-info small {
    color: #666;
}

/* Estado para partidos suspendidos */
.pj-estado.suspendido {
    color: #d63638;
    font-weight: bold;
}
/* ===== LEYENDA COMPACTA ===== */
.pj-leyenda-estadisticas {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #dee2e6;
    font-size: 13px;
}

.pj-leyenda-estadisticas h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1em;
    font-weight: 700;
}

.pj-leyenda-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.pj-leyenda-columna {
    flex: 1;
    min-width: 150px;
}

.pj-leyenda-item {
    margin-bottom: 6px;
    color: #495057;
}

.pj-leyenda-item strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 35px;
}

.pj-leyenda-explicacion ul {
    margin: 5px 0 0 0;
    padding-left: 15px;
}

.pj-leyenda-explicacion li {
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}