        /* ========== MATCHSTATS - FICHAS PRO ========== */
        .mc-card {
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            display: flex;
            border: 1px solid #e5e7eb;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        
        .mc-card:hover {
            box-shadow: 0 8px 28px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        /* Franja lateral de resultado */
        .mc-result-strip {
            width: 6px;
            min-width: 6px;
            flex-shrink: 0;
        }
        
        .mc-card.victoria .mc-result-strip { background: linear-gradient(180deg, #22c55e, #16a34a); }
        .mc-card.empate .mc-result-strip { background: linear-gradient(180deg, #f59e0b, #d97706); }
        .mc-card.derrota .mc-result-strip { background: linear-gradient(180deg, #ef4444, #dc2626); }
        .mc-card.pendiente .mc-result-strip { background: linear-gradient(180deg, #94a3b8, #64748b); }
        
        .mc-content {
            flex: 1;
            padding: 16px 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        /* Header: fecha + badges */
        .mc-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .mc-date-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .mc-date {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .mc-time {
            font-size: 11px;
            color: #94a3b8;
        }
        
        .mc-badges {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .mc-comp-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            background: #1e293b;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .mc-result-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.5px;
        }
        
        .mc-badge-victoria { background: #dcfce7; color: #15803d; }
        .mc-badge-empate { background: #fef3c7; color: #b45309; }
        .mc-badge-derrota { background: #fee2e2; color: #dc2626; }
        .mc-badge-pendiente { background: #f1f5f9; color: #64748b; }
        
        /* Matchup central */
        .mc-matchup {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 0;
        }
        
        .mc-team {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            flex: 1;
            min-width: 0;
        }
        
        .mc-escudo {
            width: 44px;
            height: 44px;
            object-fit: contain;
        }
        
        .mc-escudo-placeholder {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
        }
        
        .mc-team-name {
            font-size: 13px;
            font-weight: 700;
            color: #1e293b;
            text-align: center;
            line-height: 1.2;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .mc-team-side {
            font-size: 10px;
            color: #94a3b8;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Score */
        .mc-score {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
            padding: 0 6px;
        }
        
        .mc-score-num {
            font-size: 32px;
            font-weight: 900;
            color: #1e293b;
            line-height: 1;
            min-width: 28px;
            text-align: center;
        }
        
        .mc-score-sep {
            font-size: 20px;
            font-weight: 400;
            color: #cbd5e1;
            margin: 0 2px;
        }
        
        .mc-score-pending {
            background: #f8fafc;
            padding: 8px 16px;
            border-radius: 10px;
        }
        
        .mc-score-time {
            font-size: 18px;
            font-weight: 700;
            color: #64748b;
        }
        
        .mc-card.victoria .mc-score-num { color: #15803d; }
        .mc-card.derrota .mc-score-num { color: #dc2626; }
        .mc-card.empate .mc-score-num { color: #b45309; }
        
        /* Meta info */
        .mc-meta {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }
        
        .mc-meta-item {
            font-size: 11px;
            color: #64748b;
        }
        
        /* Actions */
        .mc-actions {
            display: flex;
            gap: 6px;
            padding-top: 10px;
            border-top: 1px solid #f1f5f9;
        }
        
        .mc-btn {
            flex: 1;
            padding: 8px 4px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.15s;
        }
        
        .mc-btn:hover { transform: translateY(-1px); opacity: 0.85; }
        
        .mc-btn-ver { background: #dbeafe; color: #1d4ed8; }
        .mc-btn-editar { background: #fef3c7; color: #b45309; }
        .mc-btn-stats { background: #ede9fe; color: #7c3aed; }
        .mc-btn-eliminar { background: #fee2e2; color: #dc2626; max-width: 42px; }
        
        @media (max-width: 480px) {
            .mc-content {
                padding: 12px 14px;
            }
            .mc-escudo {
                width: 34px;
                height: 34px;
            }
            .mc-score-num {
                font-size: 24px;
            }
            .mc-btn {
                font-size: 11px;
                padding: 6px 3px;
            }
        }
        
/* Stats resumen */
        .stats-resumen {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .stat-card .valor {
            font-size: 32px;
            font-weight: 700;
            color: #1f2937;
        }
        
        .stat-card .label {
            font-size: 13px;
            color: #6b7280;
            margin-top: 5px;
        }
        
        .stat-card.victoria { border-left: 4px solid #10b981; }
        .stat-card.empate { border-left: 4px solid #f59e0b; }
        .stat-card.derrota { border-left: 4px solid #ef4444; }
        
        /* Tabla stats */
        .stats-tabla {
            width: 100%;
            border-collapse: collapse;
        }
        
        .stats-tabla th {
            background: #f8fafc;
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            color: #64748b;
            font-size: 13px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .stats-tabla td {
            padding: 12px 15px;
            border-bottom: 1px solid #f1f5f9;
            color: #1f2937;
        }
        
        .stats-tabla tr:hover {
            background: #f8fafc;
        }
        
        .jugador-cell {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .jugador-mini-foto {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
            overflow: hidden;
        }
        
        .jugador-mini-foto img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* ========== CALENDARIO DE PARTIDOS ========== */
/* Añadir estos estilos en la sección de CSS */

/* Leyenda del calendario */
.calendario-leyenda {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.leyenda-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.leyenda-color.victoria {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.leyenda-color.empate {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.leyenda-color.derrota {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.leyenda-color.pendiente {
    background: #e0f2fe;
    border: 2px solid #3b82f6;
}

/* Eventos de partido en calendario */
.calendario-evento.partido {
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendario-evento.partido:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.calendario-evento.partido.victoria {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.calendario-evento.partido.empate {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.calendario-evento.partido.derrota {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.calendario-evento.partido.pendiente {
    background: #e0f2fe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.calendario-evento.partido .rival {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendario-evento.partido .resultado {
    font-size: 11px;
    font-weight: 700;
}

.calendario-evento.partido .hora {
    font-size: 9px;
    opacity: 0.8;
}

/* Resumen mensual */
.calendario-resumen {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.resumen-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.resumen-stat .numero {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.resumen-stat .label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.resumen-stat.victorias {
    border-top: 3px solid #10b981;
}

.resumen-stat.empates {
    border-top: 3px solid #f59e0b;
}

.resumen-stat.derrotas {
    border-top: 3px solid #ef4444;
}

.resumen-stat.pendientes {
    border-top: 3px solid #3b82f6;
}

.resumen-stat.goles-favor {
    border-top: 3px solid #059669;
}

.resumen-stat.goles-contra {
    border-top: 3px solid #dc2626;
}

/* Día del calendario con partido */
.calendario-dia.tiene-partido {
    background: #fafafa;
}

.calendario-dia.tiene-partido.hoy {
    background: #f0f0ff;
}

/* Mejoras responsive para calendario */
@media (max-width: 768px) {
    .calendario-evento.partido {
        font-size: 9px;
        padding: 3px 4px;
    }
    
    .calendario-evento.partido .resultado {
        font-size: 10px;
    }
    
    .calendario-leyenda {
        gap: 10px;
    }
    
    .leyenda-item {
        font-size: 11px;
    }
    
    .calendario-resumen {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .calendario-resumen {
        grid-template-columns: repeat(2, 1fr);
    }
}
        /* ========== CONVOCATORIA ========== */
        .convocatoria-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
        }
        
        .jugador-check {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f8fafc;
            border-radius: 10px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .jugador-check:hover {
            background: #f1f5f9;
        }
        
        .jugador-check.selected {
            background: #ecfdf5;
            border-color: #10b981;
        }
        
        .jugador-check input {
            width: 18px;
            height: 18px;
        }
        
        .jugador-check-info .nombre {
            font-weight: 600;
            font-size: 14px;
        }
        
        .jugador-check-info .posicion {
            font-size: 12px;
            color: #6b7280;
        }
        
        .jugador-check .jugador-foto-mini,
        .jugador-titular .jugador-foto-mini {
            flex-shrink: 0;
        }
        
        .jugador-check .dorsal {
            background: #1f2937;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 12px;
            margin-left: auto;
        }
/* ========== MODAL PARTIDO AMPLIADO ========== */
        .modal-large {
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .seccion-modal {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .seccion-modal:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .seccion-titulo {
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 15px;
        }
        
        .seccion-titulo-con-contador {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .seccion-titulo-con-contador .seccion-titulo {
            margin-bottom: 0;
        }
        
        .contador-jugadores {
            font-size: 12px;
            color: #6b7280;
            background: #f3f4f6;
            padding: 4px 10px;
            border-radius: 12px;
        }
        
        .hint-text {
            font-size: 12px;
            color: #9ca3af;
            margin-bottom: 10px;
        }
        
        .alineacion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 8px;
        }
        
        .jugador-titular {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f8fafc;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid #e5e7eb;
            transition: all 0.2s;
        }
        
        .jugador-titular:hover {
            border-color: #3b82f6;
        }
        
        .jugador-titular.es-titular {
            background: #dbeafe;
            border-color: #3b82f6;
        }
        
        .jugador-titular .dorsal {
            background: #1f2937;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 11px;
        }
        
        .jugador-titular.es-titular .dorsal {
            background: #3b82f6;
        }
        
        .jugador-titular .nombre {
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .modal-footer-partido {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .footer-izq, .footer-der {
            display: flex;
            gap: 10px;
        }
        
        @media (max-width: 600px) {
            .modal-footer-partido {
                flex-direction: column;
            }
            .footer-izq, .footer-der {
                width: 100%;
                justify-content: center;
            }
        }
        /* ========== STATS JUGADORES PARTIDO ========== */
        .stats-jugadores-grid .jugador-stats-row {
            display: grid;
            grid-template-columns: 2fr repeat(5, 1fr);
            gap: 10px;
            align-items: center;
            padding: 12px;
            background: #f8fafc;
            border-radius: 10px;
            margin-bottom: 8px;
        }
        
        .jugador-stats-row .nombre {
            font-weight: 600;
            font-size: 14px;
        }
        
        .jugador-stats-row input {
            width: 100%;
            padding: 8px;
            border: 2px solid #e5e7eb;
            border-radius: 6px;
            text-align: center;
            font-size: 14px;
        }
        
        .stats-labels {
            display: grid;
            grid-template-columns: 2fr repeat(5, 1fr);
            gap: 10px;
            padding: 0 12px;
            margin-bottom: 10px;
        }
        
        .stats-labels span {
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            text-align: center;
        }
        
        .stats-labels span:first-child {
            text-align: left;
        }
/* ========== VIDEO DEL PARTIDO ========== */
/* Añadir estos estilos en la sección de CSS */

.video-plataformas-hint {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.plataforma-badge {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
}

.plataforma-badge.youtube {
    background: #fee2e2;
    color: #dc2626;
}

.plataforma-badge.drive {
    background: #dbeafe;
    color: #2563eb;
}

.plataforma-badge.vimeo {
    background: #e0e7ff;
    color: #4f46e5;
}

.video-preview-box {
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-preview-box iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.video-preview-box .video-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.video-preview-box .video-placeholder .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.video-preview-box .video-placeholder .plataforma {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.video-detected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-detected-badge.youtube {
    background: #fee2e2;
    color: #dc2626;
}

.video-detected-badge.vimeo {
    background: #e0e7ff;
    color: #4f46e5;
}

.video-detected-badge.drive {
    background: #dbeafe;
    color: #2563eb;
}

.video-detected-badge.otro {
    background: #f3f4f6;
    color: #4b5563;
}

/* Video en modal de ver partido */
.video-section-ver {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.video-section-ver h4 {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-section-ver .video-embed {
    border-radius: 10px;
    overflow: hidden;
    background: #1f2937;
}

.video-section-ver .video-embed iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.video-section-ver .video-link-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #e5e7eb;
    border-radius: 10px;
}

.video-section-ver .video-link-box .icon {
    font-size: 32px;
}

.video-section-ver .video-link-box .info {
    flex: 1;
}

.video-section-ver .video-link-box .info .titulo {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.video-section-ver .video-link-box .info .url {
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
}

.video-section-ver .btn-ver-video {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.video-section-ver .btn-ver-video:hover {
    transform: scale(1.02);
}
        /* ========== ALINEACIÓN CAMPO VISUAL (estilo análisis) ========== */
        .alineacion-controls {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        
        .select-formacion-partido {
            padding: 6px 12px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-weight: 700;
            font-size: 14px;
            background: white;
        }
        
        .alineacion-layout {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        
        /* Suplentes debajo del campo */
        .suplentes-campo {
            background: #111827;
            padding: 12px 15px;
            border-radius: 0 0 12px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        
        .suplentes-campo-titulo {
            color: #9ca3af;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .suplentes-campo-grid {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .sup-jugador {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            transition: background 0.15s;
        }
        
        .sup-jugador:hover {
            background: rgba(255,255,255,0.1);
        }
        
        .sup-jugador.sup-destacado {
            animation: pulso-sup 1s infinite;
        }
        
        @keyframes pulso-sup {
            0%, 100% { background: rgba(59,130,246,0.1); }
            50% { background: rgba(59,130,246,0.3); }
        }
        
        .sup-foto {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .sup-foto img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .sup-inicial {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #374151;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }
        
        .sup-pos-badge {
            font-size: 8px;
            font-weight: 800;
            color: white;
            padding: 1px 5px;
            border-radius: 4px;
            flex-shrink: 0;
        }
        
        .sup-nombre {
            font-size: 11px;
            font-weight: 600;
            color: #d1d5db;
            white-space: nowrap;
        }
        
        .sup-jugador.nc {
            cursor: default;
            opacity: 0.4;
        }
        
        /* Slot vacío activo (pulsando) */
        .slot-vacio-activo .jugador-posicion-circulo {
            border-color: #3b82f6 !important;
            animation: pulso-slot 1s infinite;
        }
        
        @keyframes pulso-slot {
            0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
            50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
        }
        
        .vacio-seleccionado {
            background: rgba(59,130,246,0.3) !important;
            border-color: #3b82f6 !important;
            border-style: solid !important;
        }
        
        /* Reutilizar estilos del análisis para el campo */
        /* Los estilos .campo-futbol-container, .campo-futbol, areas, 
           .jugador-posicion, etc. ya están en analisis.css */
        
        @media (max-width: 600px) {
            .suplentes-campo-grid {
                gap: 6px;
            }
            .sup-nombre {
                display: none;
            }
        }
