/* ============================================================
   SISTEMA ESTADÍSTICAS BALONCESTO - TEMA PROFESIONAL
   AZUL MARINO & NARANJA · DISEÑO MODERNO Y RESPONSIVE
   VERSIÓN LIMPIA Y CORREGIDA
   ============================================================ */

/* ---------- VARIABLES GLOBALES ---------- */
:root {
    --primary-orange: #FF6B00;
    --primary-blue: #0047AB;
    --primary-white: #FFFFFF;
    --primary-dark: #0A1A2B;
    --orange-light: #FF8E53;
    --orange-dark: #E05A00;
    --blue-light: #2D5AA0;
    --blue-dark: #0D2B5C;
    --bg-body: #f0f2f6;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-orange: 0 4px 14px rgba(255,107,0,0.35);
    --shadow-blue: 0 4px 14px rgba(0,71,171,0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    --font-size-base: 15px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --navbar-height: 68px;
}

/* ---------- RESET Y BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---------- UTILIDADES ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--primary-orange); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- ANIMACIONES ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- LOGIN ---------- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(ellipse at 30% 20%, var(--primary-blue), var(--blue-dark));
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.login-box {
    background: var(--primary-white);
    border-radius: var(--radius-xl);
    padding: 45px 35px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    text-align: center;
    border-top: 6px solid var(--primary-orange);
    animation: fadeInUp 0.6s ease;
}
.league-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-orange);
    box-shadow: var(--shadow-orange);
    margin-bottom: 20px;
    background: white;
    transition: transform var(--transition-bounce);
}
.league-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}
.login-box h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}
.login-box h2 span {
    color: var(--primary-orange);
    font-size: 1.2rem;
    display: block;
}
.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.login-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    margin-bottom: 25px;
    box-shadow: var(--shadow-orange);
}
.admin-toggle {
    background: transparent;
    border: 2px dashed var(--primary-orange);
    color: var(--primary-blue);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin: 15px 0;
    width: 100%;
}
.admin-toggle:hover {
    background: rgba(255,107,0,0.08);
    border-style: solid;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-orange);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    background: white;
    object-fit: cover;
}
.nav-logo-text h1 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 900;
}
.nav-logo-text span {
    color: var(--orange-light);
    font-size: 0.7rem;
    display: block;
}
.user-info-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    padding: 5px 14px 5px 18px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.user-badge {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: white;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}
#logoutBtn {
    background: rgba(231,76,60,0.9);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}
#logoutBtn:hover {
    transform: scale(1.1) rotate(-8deg);
    background: #c0392b;
}

/* ---------- TABS (PESTAÑAS) – CONTRASTE CORREGIDO ---------- */
.tabs-container {
    max-width: 1400px;
    margin: 25px auto;
    padding: 0 16px;
}
.tabs-header {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    scrollbar-width: none;
}
.tabs-header::-webkit-scrollbar { display: none; }

.tab-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    color: #2c3e50; /* gris oscuro legible */
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tab-btn i {
    font-size: 1rem;
    transition: transform var(--transition);
}
.tab-btn:hover {
    background: rgba(0,71,171,0.08);
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
    color: white !important;
    box-shadow: 0 4px 20px rgba(0,71,171,0.25);
}
.tab-btn.active i {
    color: var(--primary-orange) !important;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}
.tab-content.active { display: block; }

/* ---------- SECCIONES Y TARJETAS ---------- */
.tab-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 400px;
}
.tab-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
}
.tab-title i { color: var(--primary-blue); }

.section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.section:last-child { margin-bottom: 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}
.section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.section-header h2 i { color: var(--primary-blue); }

/* ---------- ESTADÍSTICAS RÁPIDAS ---------- */
.quick-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-blue);
    transition: all var(--transition-bounce);
    text-align: center;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.stat-card .stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.1;
}
.stat-card .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 700;
}

/* ---------- TABLAS ---------- */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}
thead th {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
    color: white;
    padding: 16px 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    border-bottom: 3px solid var(--primary-orange);
}
tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}
tbody tr:nth-child(even) { background: #f8fafc; }
tbody tr:hover { background: #edf2f7; }

/* ---------- TARJETAS DE EQUIPOS Y JUGADORES ---------- */
.teams-grid, .players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.team-card, .player-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--primary-blue);
    transition: all var(--transition-bounce);
    cursor: pointer;
}
.team-card:hover, .player-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.team-card .team-name, .player-card .player-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.player-card .player-number {
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,71,171,0.35);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    box-shadow: var(--shadow-orange);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.35);
}
.btn-success {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.btn-info {
    background: linear-gradient(135deg, #3498db, #2176ae);
}
.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: var(--radius-sm);
}
.btn-light {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-orange);
}
.btn-light:hover {
    background: var(--primary-orange);
    color: white;
}

/* ---------- MODALES – CONTRASTE CORREGIDO ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    background: linear-gradient(145deg, #002244, #001a33);
    padding: 20px 28px;
    border-bottom: 4px solid #FF6B00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}
.modal-header .modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}
.modal-header .modal-title i {
    color: #FF6B00;
    font-size: 1.6rem;
}
.modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: rgba(255,107,0,0.3);
    transform: rotate(90deg) scale(1.05);
}
.modal-body {
    padding: 28px 30px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
    color: #1a202c;
}
.modal-body * {
    color: #1a202c; /* Fuerza texto oscuro en el contenido */
}
.modal-footer {
    padding: 16px 28px;
    background: #ffffff;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-footer .btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}
.modal-footer .btn-primary {
    background: linear-gradient(145deg, #0047AB, #002244);
    box-shadow: 0 4px 14px rgba(0,71,171,0.25);
}
.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,71,171,0.35);
}
.modal-footer .btn-info {
    background: #e2e8f0;
    color: #1e293b;
}
.modal-footer .btn-info:hover {
    background: #cbd5e1;
}
.modal-footer .btn-success {
    background: linear-gradient(145deg, #16a34a, #14532d);
}
.modal-footer .btn-danger {
    background: linear-gradient(145deg, #dc2626, #7f1d1d);
}

/* ---------- FORMULARIOS DENTRO DE MODALES ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 6px;
}
.input-group label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-group label i {
    color: #FF6B00;
    width: 18px;
    text-align: center;
}
.input-group input,
.input-group select,
.input-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
    color: #0f172a;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #0047AB;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,71,171,0.12);
}
.input-group textarea {
    resize: vertical;
    min-height: 80px;
}
.input-group input[type="color"] {
    padding: 4px;
    height: 50px;
    cursor: pointer;
}
.input-group small {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* ---------- CHECKBOX LISTA DE EQUIPOS (Temporada) ---------- */
.season-teams-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 4px;
}
.season-teams-list .team-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}
.season-teams-list .team-check-item:hover {
    border-color: #0047AB;
    background: #f0f7ff;
}
.season-teams-list .team-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0047AB;
    cursor: pointer;
}
.season-teams-list .team-check-item label {
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
}
.season-teams-list .team-check-item .team-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: #e2e8f0;
    color: var(--text-secondary);
}
.badge-success { background: #27ae60; color: white; }
.badge-danger { background: #e74c3c; color: white; }
.badge-warning { background: #f39c12; color: white; }
.badge-info { background: #3498db; color: white; }
.badge-primary { background: var(--primary-blue); color: white; }
.badge-gold { background: var(--primary-orange); color: white; }

/* ---------- TARJETA DE TEMPORADA EN DASHBOARD – CONTRASTE CORREGIDO ---------- */
.dashboard-season-section {
    background: linear-gradient(145deg, #002244, #001a33) !important;
    border-radius: 28px !important;
    padding: 32px 36px !important;
    border-left: 8px solid #FF6B00 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 36px !important;
}
.dashboard-season-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}
/* Forzar textos blancos dentro de la tarjeta */
.dashboard-season-section,
.dashboard-season-section * {
    color: #ffffff !important;
}
.dashboard-season-section .season-info {
    flex: 2;
    min-width: 240px;
}
.dashboard-season-section .season-title {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin: 0 0 6px 0 !important;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard-season-section .season-title .season-badge {
    font-size: 0.9rem !important;
    background: #FF6B00;
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255,107,0,0.35);
    color: #fff !important;
}
.dashboard-season-section .season-description {
    font-size: 1.15rem !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 6px 0 14px 0 !important;
    line-height: 1.6;
}
.dashboard-season-section .season-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}
.dashboard-season-section .season-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 6px 18px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.06);
}
.dashboard-season-section .season-meta i {
    color: #FF6B00;
}
.dashboard-season-section .season-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.dashboard-season-section .season-actions .btn {
    min-width: 150px;
    justify-content: center;
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 20px;
}
.dashboard-season-section .season-actions .btn-light {
    background: rgba(255,255,255,0.9);
    color: #002244 !important;
}
.dashboard-season-section .season-actions .btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
}
.dashboard-season-section .season-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff !important;
}
.dashboard-season-section .season-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ---------- ELIMINAR ESTILOS DE "EQUIPOS QUE DESCANSAN" ---------- */
.resting-message,
.resting-teams-badge,
.dashboard-season-content .resting-message,
.dashboard-season-content .resting-notice {
    display: none !important;
}

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, #002244, #001a33);
    border-top: 4px solid #FF6B00;
    color: white;
    margin-top: 40px;
}
.footer p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 6px 0;
}
.footer p:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}
.connection-status {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,107,0,0.3);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #FF6B00;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.connection-status i {
    color: #FF6B00;
    font-size: 1.3rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
        --font-size-base: 14px;
    }
    .navbar {
        padding: 0 12px;
        height: auto;
        flex-wrap: wrap;
    }
    .nav-container {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        padding: 8px 0;
    }
    .nav-logo-text h1 { font-size: 0.85rem; }
    .nav-logo-text span { font-size: 0.6rem; }
    .user-info-container {
        padding: 4px 10px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .user-badge span { display: none; }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .tab-btn span { display: none; }
    .tab-btn i { font-size: 1.2rem; }
    .quick-stats-container {
        grid-template-columns: 1fr 1fr;
    }
    .stat-card .stat-value { font-size: 2rem; }
    .teams-grid, .players-grid {
        grid-template-columns: 1fr;
    }
    .modal { max-width: 95%; }
    .section { padding: 20px; }
}
@media (max-width: 480px) {
    .quick-stats-container { grid-template-columns: 1fr; }
    .tab-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .tab-btn i { font-size: 1rem; }
    .login-box { padding: 30px 20px; }
    .league-logo { width: 110px; height: 110px; }
    .nav-logo-img { width: 36px; height: 36px; }
}

/* ============================================================
   ESTILOS ADICIONALES PARA MODALES ESPECÍFICOS
   (Jugador, Resumen de partido, Tarjetas de partidos, etc.)
   ============================================================ */

.player-modal-enhanced {
    max-width: 650px;
    border-radius: 16px;
    overflow: hidden;
}
.player-modal-enhanced .modal-header {
    background: var(--primary-blue);
    color: white;
    padding: 20px 24px;
    border-bottom: 3px solid var(--primary-orange);
}
.player-modal-enhanced .modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.player-modal-enhanced .player-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
}
.player-modal-enhanced .player-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin: 15px 0;
}
.player-modal-enhanced .player-stat-item {
    background: #f8fafc;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}
.player-modal-enhanced .player-stat-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}
.player-modal-enhanced .stat-value-large {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    color: var(--primary-blue);
}
.player-modal-enhanced .stat-label-small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.player-modal-enhanced .modal-footer .brand-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-summary-modal-enhanced {
    max-width: 960px;
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
}
.game-summary-modal-enhanced .modal-header {
    background: var(--primary-blue);
    color: white;
    padding: 18px 24px;
    border-bottom: 3px solid var(--primary-orange);
}
.game-summary-modal-enhanced .modal-header .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.summary-scoreboard-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.summary-team-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}
.summary-team-logo-opt {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}
.summary-team-logo-opt img,
.summary-team-logo-opt span {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 1.5rem;
    color: white;
}
.summary-team-name-opt {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}
.summary-result-opt {
    display: flex;
    align-items: center;
    gap: 10px;
}
.summary-runs-opt {
    font-size: 2.8rem;
    font-weight: 900;
}
.summary-runs-opt.winner {
    color: #27ae60;
}
.summary-divider-opt {
    font-size: 2rem;
    color: #94a3b8;
}
.summary-meta-opt {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.winner-badge-opt {
    padding: 4px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    display: inline-block;
}
.summary-tabs-opt {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.summary-tab-opt {
    padding: 10px 16px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.summary-tab-opt.active,
.summary-tab-opt:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-orange);
}
.stats-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stats-table-compact th {
    background: #f1f5f9;
    padding: 10px 8px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}
.stats-table-compact td {
    padding: 8px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.stats-table-compact .name-col {
    text-align: left;
    font-weight: 500;
}
.stats-table-compact tbody tr:hover {
    background: #f0f7ff;
    cursor: pointer;
}
.mini-stat {
    background: #f0f9ff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mvp-card-mini {
    padding: 10px 14px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-blue);
}

/* Tarjetas de partidos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.game-modern-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}
.game-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.game-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.game-modern-header .date-location {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.game-status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}
.game-status-badge.completed { background: #27ae60; }
.game-status-badge.scheduled { background: #3498db; }
.game-status-badge.cancelled { background: #e74c3c; }
.game-status-badge.default { background: #E74C3C; }
.game-modern-body {
    padding: 18px 18px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}
.team-block-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}
.team-logo-circle-v2 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    overflow: hidden;
    background: #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.team-logo-circle-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-name-v2 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.2;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.score-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 5px;
}
.score-container-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 2.2rem;
    font-weight: 900;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}
.score-number.winner {
    color: #16a34a;
}
.score-divider {
    color: #94a3b8;
}
.vs-circle {
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.game-modern-footer {
    padding: 0 18px 14px 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.default-notice {
    margin-top: 8px;
    padding: 6px;
    background: #ffe6e6;
    border-radius: 6px;
    font-size: 0.8rem;
    border-left: 4px solid #E74C3C;
}

/* ============================================================
   MEJORAS PREMIUM PARA MODALES DINÁMICOS Y RESPONSIVE MÓVIL
   ============================================================ */

/* ---------- MODALES DINÁMICOS (creados por JS) ---------- */
.modal-overlay .modal {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 760px;
    width: 95%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

/* Cabecera con gradiente y detalles */
.modal-overlay .modal-header {
    background: linear-gradient(145deg, #002244, #001a33);
    padding: 20px 28px;
    border-bottom: 4px solid #FF6B00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-overlay .modal-header .modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-overlay .modal-header .modal-title i {
    color: #FF6B00;
    font-size: 1.6rem;
}
.modal-overlay .modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.modal-overlay .modal-close:hover {
    background: rgba(255, 107, 0, 0.35);
    transform: rotate(90deg) scale(1.08);
}

/* Cuerpo con fondo claro y scroll suave */
.modal-overlay .modal-body {
    padding: 28px 30px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
    color: #1a202c;
}
.modal-overlay .modal-body * {
    color: #1a202c;
}
.modal-overlay .modal-body h3,
.modal-overlay .modal-body h4,
.modal-overlay .modal-body h5,
.modal-overlay .modal-body h6 {
    color: #0f172a !important;
}
.modal-overlay .modal-body .status-message {
    background: #f1f5f9;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    margin: 12px 0;
}
.modal-overlay .modal-body .status-message.status-success {
    border-left-color: #27ae60;
    background: #f0fdf4;
}
.modal-overlay .modal-body .status-message.status-error {
    border-left-color: #e74c3c;
    background: #fef2f2;
}
.modal-overlay .modal-body .status-message.status-warning {
    border-left-color: #f39c12;
    background: #fffbeb;
}

/* Footer con botones alineados */
.modal-overlay .modal-footer {
    padding: 16px 28px;
    background: #ffffff;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    border-radius: 0 0 28px 28px;
}
.modal-overlay .modal-footer .btn {
    min-width: 120px;
    justify-content: center;
    border-radius: 40px;
    font-weight: 700;
    padding: 10px 24px;
}

/* ---------- FORMULARIOS DENTRO DE MODALES DINÁMICOS ---------- */
.modal-overlay .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 16px;
}
.modal-overlay .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-overlay .input-group label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-overlay .input-group label i {
    color: #FF6B00;
    width: 20px;
    text-align: center;
}
.modal-overlay .input-group input,
.modal-overlay .input-group select,
.modal-overlay .input-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s;
}
.modal-overlay .input-group input:focus,
.modal-overlay .input-group select:focus,
.modal-overlay .input-group textarea:focus {
    border-color: #0047AB;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.12);
}
.modal-overlay .input-group textarea {
    resize: vertical;
    min-height: 80px;
}
.modal-overlay .input-group input[type="color"] {
    padding: 4px;
    height: 50px;
    cursor: pointer;
}
.modal-overlay .input-group small {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* Vista previa de equipo/jugador */
.modal-overlay .team-preview-card,
.modal-overlay .player-preview-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    border-left: 6px solid #0047AB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 18px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.modal-overlay .team-preview-card .preview-logo,
.modal-overlay .player-preview-card .player-number-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}
.modal-overlay .team-preview-card .preview-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}
.modal-overlay .team-preview-card .preview-meta {
    font-size: 0.85rem;
    color: #64748b;
}
.modal-overlay .player-preview-card .player-info {
    flex: 1;
}
.modal-overlay .player-preview-card .player-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}
.modal-overlay .player-preview-card .player-detail {
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- RESULTADO DE PARTIDO (viewGame) ---------- */
.modal-overlay .game-detail-header {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.modal-overlay .game-detail-header .team-block {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-overlay .game-detail-header .team-block .team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}
.modal-overlay .game-detail-header .team-block .team-name {
    font-weight: 700;
    font-size: 1.05rem;
}
.modal-overlay .game-detail-header .vs-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #94a3b8;
}
.modal-overlay .game-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 18px 0;
}
.modal-overlay .game-score-display .score-item {
    text-align: center;
}
.modal-overlay .game-score-display .score-item .score-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
}
.modal-overlay .game-score-display .score-item .score-team {
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
}
.modal-overlay .game-score-display .score-divider {
    font-size: 2.2rem;
    color: #94a3b8;
}
.modal-overlay .game-score-display .winner-badge {
    background: #16a34a;
    color: #fff;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 6px;
}

/* ---------- RESUMEN DE PARTIDO (openGameSummary) ---------- */
.modal-overlay .summary-scoreboard-opt {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}
.modal-overlay .summary-team-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}
.modal-overlay .summary-team-logo-opt {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.modal-overlay .summary-team-logo-opt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-overlay .summary-team-logo-opt span {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}
.modal-overlay .summary-team-name-opt {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}
.modal-overlay .summary-result-opt .summary-runs-opt {
    font-size: 2.6rem;
    font-weight: 900;
}
.modal-overlay .summary-result-opt .summary-runs-opt.winner {
    color: #16a34a;
}
.modal-overlay .summary-result-opt .summary-divider-opt {
    font-size: 2rem;
    color: #94a3b8;
}
.modal-overlay .winner-badge-opt {
    padding: 6px 18px;
    border-radius: 40px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Pestañas internas */
.modal-overlay .summary-tabs-opt {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin: 16px 0 20px 0;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
}
.modal-overlay .summary-tab-opt {
    padding: 10px 16px;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-overlay .summary-tab-opt.active,
.modal-overlay .summary-tab-opt:hover {
    color: #0047AB;
    border-bottom-color: #FF6B00;
}
.modal-overlay .summary-tab-opt img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tablas de estadísticas dentro de resúmenes */
.modal-overlay .stats-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.modal-overlay .stats-table-compact th {
    background: #f1f5f9;
    padding: 10px 8px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}
.modal-overlay .stats-table-compact td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}
.modal-overlay .stats-table-compact .name-col {
    text-align: left;
    font-weight: 600;
}
.modal-overlay .stats-table-compact tbody tr:hover {
    background: #f0f7ff;
    cursor: pointer;
}
.modal-overlay .mvp-card-mini {
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 0.9rem;
    border-left: 4px solid #0047AB;
}
.modal-overlay .mini-stat {
    background: #f0f9ff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Análisis del partido */
.modal-overlay .game-analysis-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
}
.modal-overlay .game-analysis-box .narrative {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    line-height: 1.8;
}
.modal-overlay .game-analysis-box .keys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.modal-overlay .game-analysis-box .key-card {
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 4px solid #0047AB;
}
.modal-overlay .game-analysis-box .key-card.green {
    background: #f0fdf4;
    border-left-color: #27ae60;
}
.modal-overlay .game-analysis-box .key-card.yellow {
    background: #fef3c7;
    border-left-color: #f39c12;
}
.modal-overlay .game-analysis-box .top-scorer {
    background: #fef2f2;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #e74c3c;
}
.modal-overlay .game-analysis-box .mvp-section {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
}

/* ---------- MODAL DE ESTADÍSTICAS DE PARTIDO (showGameStats) ---------- */
.modal-overlay .player-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.modal-overlay .player-stats-table th {
    background: #f1f5f9;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
}
.modal-overlay .player-stats-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.modal-overlay .player-stats-table .player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.modal-overlay .player-stats-table .player-cell .number-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.modal-overlay .player-stats-table input[type="number"] {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.modal-overlay .player-stats-table input[type="number"]:focus {
    border-color: #0047AB;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* Panel de validación */
.modal-overlay .validation-panel {
    background: #fff8e6;
    border-left: 6px solid #f59e0b;
    padding: 20px;
    border-radius: 16px;
    margin-top: 24px;
}
.modal-overlay .validation-panel .validation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.modal-overlay .validation-panel .validation-item {
    background: #fff;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.modal-overlay .validation-panel .validation-item .val-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0047AB;
}
.modal-overlay .validation-panel .validation-item .val-label {
    font-size: 0.75rem;
    color: #64748b;
}
.modal-overlay .validation-panel .requirements-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}
.modal-overlay .validation-panel .requirements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
}
.modal-overlay .validation-panel .requirements-list li.valid {
    color: #16a34a;
}
.modal-overlay .validation-panel .requirements-list li.invalid {
    color: #dc2626;
}

/* ---------- BRANDING EN MODALES ---------- */
.modal-overlay .brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.modal-overlay .brand-tag i {
    color: #FF6B00;
}
.modal-overlay .brand-tag-light {
    background: #edf2f7;
    color: #2d3748 !important;
}
.modal-overlay .brand-tag-light i {
    color: #FF6B00;
}

/* ---------- RESPONSIVE PARA MÓVILES PEQUEÑOS ---------- */
@media (max-width: 600px) {
    .modal-overlay .modal {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .modal-overlay .modal-header {
        padding: 16px 20px !important;
        border-radius: 0 !important;
    }
    .modal-overlay .modal-header .modal-title {
        font-size: 1.1rem !important;
    }
    .modal-overlay .modal-body {
        padding: 20px 16px !important;
    }
    .modal-overlay .modal-footer {
        padding: 12px 16px !important;
        flex-direction: column;
        gap: 8px;
        border-radius: 0 !important;
    }
    .modal-overlay .modal-footer .btn {
        width: 100% !important;
        min-width: unset !important;
        justify-content: center;
    }

    .modal-overlay .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .modal-overlay .input-group input,
    .modal-overlay .input-group select,
    .modal-overlay .input-group textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
        padding: 14px 14px !important;
    }
    .modal-overlay .input-group label {
        font-size: 0.9rem !important;
    }

    /* Resumen de partido */
    .modal-overlay .summary-scoreboard-opt {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .modal-overlay .summary-team-opt {
        flex-direction: row !important;
        gap: 12px !important;
        min-width: unset !important;
        width: 100% !important;
        justify-content: center;
    }
    .modal-overlay .summary-team-logo-opt {
        width: 50px !important;
        height: 50px !important;
    }
    .modal-overlay .summary-result-opt {
        flex-direction: row !important;
        gap: 8px !important;
    }
    .modal-overlay .summary-runs-opt {
        font-size: 2rem !important;
    }
    .modal-overlay .summary-divider-opt {
        font-size: 1.6rem !important;
    }

    .modal-overlay .summary-tabs-opt {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        gap: 2px;
    }
    .modal-overlay .summary-tab-opt {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
    .modal-overlay .summary-tab-opt img {
        width: 20px !important;
        height: 20px !important;
    }

    .modal-overlay .stats-table-compact {
        font-size: 0.75rem !important;
    }
    .modal-overlay .stats-table-compact th,
    .modal-overlay .stats-table-compact td {
        padding: 6px 4px !important;
    }
    .modal-overlay .stats-table-compact .name-col {
        min-width: 100px !important;
        max-width: 130px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .modal-overlay .game-score-display {
        flex-direction: row !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .modal-overlay .game-score-display .score-item .score-number {
        font-size: 2.2rem !important;
    }
    .modal-overlay .game-detail-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 16px !important;
        gap: 6px !important;
    }
    .modal-overlay .game-detail-header .team-block {
        flex-direction: row !important;
        justify-content: center;
    }
    .modal-overlay .game-detail-header .vs-text {
        font-size: 1.2rem !important;
    }

    .modal-overlay .game-analysis-box .keys-grid {
        grid-template-columns: 1fr !important;
    }
    .modal-overlay .validation-panel .validation-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .modal-overlay .player-stats-table {
        font-size: 0.75rem !important;
    }
    .modal-overlay .player-stats-table input[type="number"] {
        width: 48px !important;
        font-size: 0.8rem !important;
        padding: 4px !important;
    }
    .modal-overlay .player-stats-table .player-cell .number-badge {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    /* Team/player preview */
    .modal-overlay .team-preview-card,
    .modal-overlay .player-preview-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px !important;
    }
    .modal-overlay .team-preview-card .preview-logo,
    .modal-overlay .player-preview-card .player-number-badge {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }
}

/* Ajustes extra para móviles muy pequeños (≤ 380px) */
@media (max-width: 380px) {
    .modal-overlay .modal-header .modal-title {
        font-size: 0.95rem !important;
    }
    .modal-overlay .modal-header .modal-title i {
        font-size: 1.2rem !important;
    }
    .modal-overlay .modal-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
    }
    .modal-overlay .summary-runs-opt {
        font-size: 1.6rem !important;
    }
    .modal-overlay .summary-team-logo-opt {
        width: 40px !important;
        height: 40px !important;
    }
    .modal-overlay .game-score-display .score-item .score-number {
        font-size: 1.8rem !important;
    }
    .modal-overlay .validation-panel .validation-grid {
        grid-template-columns: 1fr !important;
    }
    .modal-overlay .player-stats-table input[type="number"] {
        width: 40px !important;
    }
}

/* ============================================================
   MODAL DE JUGADOR - DISEÑO PREMIUM Y RESPONSIVE
   Corrige alineación del logo y adaptación a móviles
   ============================================================ */

/* --- Contenedor principal del modal de jugador --- */
.player-modal-enhanced {
    max-width: 700px !important;
    width: 95% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35) !important;
}

/* --- Cabecera con logo y nombre --- */
.player-modal-enhanced .modal-header {
    background: linear-gradient(145deg, #002244, #001a33) !important;
    padding: 20px 24px !important;
    border-bottom: 4px solid #FF6B00 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* Contenedor del logo y nombre (lado izquierdo) */
.player-modal-enhanced .modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 200px !important;
}

/* Wrapper del logo - CORREGIDO: sin desplazamiento */
.player-modal-enhanced .modal-title .team-logo-wrapper {
    background: white !important;
    border-radius: 50% !important;
    padding: 4px !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Evita que se encoja */
    border: 2px solid #FF6B00 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.player-modal-enhanced .modal-title .team-logo-wrapper img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    background: #0047AB !important;
}

/* Información del jugador (nombre, número, posición, edad) */
.player-modal-enhanced .modal-title .player-info-text {
    flex: 1 !important;
    min-width: 120px !important;
}

.player-modal-enhanced .modal-title .player-info-text .player-name {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

.player-modal-enhanced .modal-title .player-info-text .player-details {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.player-modal-enhanced .modal-title .player-info-text .player-details span {
    background: rgba(255, 255, 255, 0.12) !important;
    padding: 2px 12px !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
}

/* Botón cerrar - alineado a la derecha */
.player-modal-enhanced .modal-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 1.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
}

.player-modal-enhanced .modal-close:hover {
    background: rgba(255, 107, 0, 0.3) !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* --- Cuerpo del modal --- */
.player-modal-enhanced .modal-body {
    padding: 24px 28px !important;
    background: #f8fafc !important;
    color: #1a202c !important;
}

/* Tarjeta de información del equipo */
.player-modal-enhanced .player-info-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    margin-bottom: 24px !important;
    border-left: 6px solid #0047AB !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.player-modal-enhanced .player-info-card .team-logo-circle {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #0047AB !important;
    border: 2px solid #e2e8f0 !important;
}

.player-modal-enhanced .player-info-card .team-logo-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.player-modal-enhanced .player-info-card .team-logo-circle span {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.player-modal-enhanced .player-info-card .team-info-text {
    flex: 1 !important;
}

.player-modal-enhanced .player-info-card .team-info-text .team-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.player-modal-enhanced .player-info-card .team-info-text .team-meta {
    font-size: 0.85rem !important;
    color: #64748b !important;
}

/* Cuadrícula de estadísticas */
.player-modal-enhanced .player-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 12px !important;
    margin: 16px 0 !important;
}

.player-modal-enhanced .player-stat-item {
    background: #ffffff !important;
    padding: 12px 8px !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: 1px solid #edf2f7 !important;
    transition: all 0.2s ease !important;
}

.player-modal-enhanced .player-stat-item:hover {
    background: #edf2f7 !important;
    transform: translateY(-2px) !important;
}

.player-modal-enhanced .player-stat-item.highlight {
    background: #fffaf0 !important;
    border-color: #FF6B00 !important;
}

.player-modal-enhanced .stat-value-large {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    display: block !important;
    color: #0047AB !important;
    line-height: 1.2 !important;
}

.player-modal-enhanced .stat-label-small {
    font-size: 0.7rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-weight: 700 !important;
}

/* Últimos partidos */
.player-modal-enhanced .last-games-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 16px !important;
}

.player-modal-enhanced .last-game-item {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    border-left: 4px solid #0047AB !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.player-modal-enhanced .last-game-item .game-opponent {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
}

.player-modal-enhanced .last-game-item .game-stats {
    display: flex !important;
    gap: 12px !important;
    font-size: 0.85rem !important;
    flex-wrap: wrap !important;
}

.player-modal-enhanced .last-game-item .game-stats span {
    font-weight: 700 !important;
    color: #0047AB !important;
}

.player-modal-enhanced .last-game-item .game-result {
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 2px 12px !important;
    border-radius: 30px !important;
    color: #ffffff !important;
}

.player-modal-enhanced .last-game-item .game-result.win {
    background: #27ae60 !important;
}

.player-modal-enhanced .last-game-item .game-result.loss {
    background: #e74c3c !important;
}

.player-modal-enhanced .last-game-item .game-result.draw {
    background: #f39c12 !important;
}

/* --- Footer con branding --- */
.player-modal-enhanced .modal-footer {
    padding: 14px 24px !important;
    background: #ffffff !important;
    border-top: 2px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    border-radius: 0 0 24px 24px !important;
}

.player-modal-enhanced .modal-footer .brand-tag {
    font-size: 0.8rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.player-modal-enhanced .modal-footer .brand-tag i {
    color: #FF6B00 !important;
}

.player-modal-enhanced .modal-footer .btn-group {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* ============================================================
   RESPONSIVE PARA MODAL DE JUGADOR
   ============================================================ */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .player-modal-enhanced {
        max-width: 98% !important;
        width: 98% !important;
        border-radius: 20px !important;
    }

    .player-modal-enhanced .modal-header {
        padding: 16px 18px !important;
        gap: 10px !important;
    }

    .player-modal-enhanced .modal-title {
        gap: 10px !important;
        min-width: 160px !important;
    }

    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 48px !important;
        height: 48px !important;
    }

    .player-modal-enhanced .modal-title .team-logo-wrapper img,
    .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 1.1rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-details {
        font-size: 0.75rem !important;
        gap: 4px !important;
    }

    .player-modal-enhanced .modal-body {
        padding: 18px 16px !important;
    }

    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 8px !important;
    }

    .player-modal-enhanced .stat-value-large {
        font-size: 1.4rem !important;
    }

    .player-modal-enhanced .player-info-card {
        padding: 12px 16px !important;
        gap: 10px !important;
    }

    .player-modal-enhanced .player-info-card .team-logo-circle {
        width: 44px !important;
        height: 44px !important;
    }

    .player-modal-enhanced .player-info-card .team-info-text .team-name {
        font-size: 1rem !important;
    }

    .player-modal-enhanced .last-game-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 10px 14px !important;
    }

    .player-modal-enhanced .last-game-item .game-stats {
        gap: 8px !important;
        font-size: 0.8rem !important;
    }

    .player-modal-enhanced .modal-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
    }

    .player-modal-enhanced .modal-footer .btn-group {
        width: 100% !important;
        justify-content: center !important;
    }

    .player-modal-enhanced .modal-footer .btn-group .btn {
        flex: 1 !important;
        justify-content: center !important;
        min-width: 100px !important;
    }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
    .player-modal-enhanced .modal-header {
        padding: 14px 14px !important;
        flex-wrap: wrap !important;
    }

    .player-modal-enhanced .modal-title {
        min-width: 100% !important;
        justify-content: flex-start !important;
    }

    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 40px !important;
        height: 40px !important;
    }

    .player-modal-enhanced .modal-title .team-logo-wrapper img,
    .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 1rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-details {
        font-size: 0.7rem !important;
        gap: 4px !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-details span {
        padding: 1px 10px !important;
    }

    .player-modal-enhanced .modal-close {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.2rem !important;
    }

    .player-modal-enhanced .modal-body {
        padding: 14px 12px !important;
    }

    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .player-modal-enhanced .player-stat-item {
        padding: 8px 4px !important;
    }

    .player-modal-enhanced .stat-value-large {
        font-size: 1.2rem !important;
    }

    .player-modal-enhanced .stat-label-small {
        font-size: 0.6rem !important;
    }

    .player-modal-enhanced .player-info-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 12px !important;
    }

    .player-modal-enhanced .player-info-card .team-logo-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .player-modal-enhanced .last-game-item {
        padding: 8px 12px !important;
    }

    .player-modal-enhanced .last-game-item .game-opponent {
        font-size: 0.8rem !important;
    }

    .player-modal-enhanced .last-game-item .game-stats {
        font-size: 0.7rem !important;
        gap: 6px !important;
    }

    .player-modal-enhanced .last-game-item .game-result {
        font-size: 0.65rem !important;
        padding: 2px 10px !important;
    }

    .player-modal-enhanced .modal-footer .btn-group .btn {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        min-width: 80px !important;
    }

    .player-modal-enhanced .modal-footer .brand-tag {
        font-size: 0.7rem !important;
    }
}

/* Móviles muy pequeños (≤ 380px) */
@media (max-width: 380px) {
    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 36px !important;
        height: 36px !important;
    }

    .player-modal-enhanced .modal-title .team-logo-wrapper img,
    .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 0.9rem !important;
    }

    .player-modal-enhanced .modal-title .player-info-text .player-details {
        font-size: 0.65rem !important;
    }

    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .player-modal-enhanced .stat-value-large {
        font-size: 1rem !important;
    }

    .player-modal-enhanced .player-info-card .team-logo-circle {
        width: 36px !important;
        height: 36px !important;
    }

    .player-modal-enhanced .player-info-card .team-info-text .team-name {
        font-size: 0.9rem !important;
    }

    .player-modal-enhanced .player-info-card .team-info-text .team-meta {
        font-size: 0.75rem !important;
    }
}

/* ============================================================
   MEJORAS PARA ESTADÍSTICAS (Tabla de posiciones, equipo, resultados)
   ============================================================ */

/* --- Tabla de posiciones --- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.standings-table thead th {
    background: linear-gradient(145deg, #002244, #001a33);
    color: white;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 3px solid #FF6B00;
}
.standings-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
    vertical-align: middle;
    color: #1a202c;
}
.standings-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}
.standings-table tbody tr:hover {
    background: #eef4ff;
}
.standings-table tbody tr:last-child td {
    border-bottom: none;
}
.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-weight: 600;
}
.standings-table .team-cell img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.standings-table .team-cell .color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}
.standings-table .rank-number {
    font-weight: 800;
    font-size: 1.1rem;
}
.standings-table .rank-gold { color: #FFD700; }
.standings-table .rank-silver { color: #C0C0C0; }
.standings-table .rank-bronze { color: #CD7F32; }
.standings-table .win { color: #16a34a; font-weight: 700; }
.standings-table .loss { color: #dc2626; font-weight: 700; }
.standings-table .points-diff.positive { color: #16a34a; }
.standings-table .points-diff.negative { color: #dc2626; }
.standings-table .points-total { font-weight: 900; color: #0047AB; }

/* --- Estadísticas por equipo --- */
.team-header-card {
    background: linear-gradient(145deg, #002244, #001a33);
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-left: 6px solid #FF6B00;
}
.team-header-card .team-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.team-header-card .team-logo-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #FF6B00;
    flex-shrink: 0;
}
.team-header-card .team-logo-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-header-card .team-logo-big span {
    font-size: 2rem;
    font-weight: 900;
    color: #002244;
}
.team-header-card .team-name-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}
.team-header-card .team-season {
    font-size: 0.9rem;
    opacity: 0.8;
}
.team-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    font-size: 1rem;
}
.team-stats-row span {
    background: rgba(255,255,255,0.08);
    padding: 4px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}
.team-stats-row .stat-win { color: #27ae60; }
.team-stats-row .stat-loss { color: #e74c3c; }

/* --- Jugadores del equipo --- */
.team-players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.team-players-table th {
    background: #f1f5f9;
    padding: 10px 8px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}
.team-players-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}
.team-players-table .player-name-cell {
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-players-table .player-number-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.team-players-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.team-players-table tbody tr:hover {
    background: #f0f7ff;
}

/* --- Últimos partidos del equipo --- */
.recent-game-card-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #ccc;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}
.recent-game-card-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.recent-game-teams-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}
.team-side {
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-logo-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-name-side {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.team-name-side.winner {
    color: #16a34a;
}
.score-side {
    font-weight: 800;
    font-size: 1.3rem;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.score-side span:first-child {
    color: #1a202c;
}
.score-side span:last-child {
    color: #1a202c;
}
.recent-game-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Últimos resultados (Dashboard) --- */
.recent-result-card {
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid #16a34a;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 8px;
}
.recent-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.recent-result-card .result-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.recent-result-card .result-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 100px;
}
.recent-result-card .result-team:last-child {
    justify-content: flex-end;
    flex-direction: row-reverse;
}
.recent-result-card .result-team .team-logo-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.recent-result-card .result-team .team-logo-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recent-result-card .result-team .team-name-mini {
    font-weight: 600;
    font-size: 0.9rem;
}
.recent-result-card .winner-team {
    color: #16a34a !important;
    font-weight: 700 !important;
}
.recent-result-card .result-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 900;
}
.recent-result-card .result-score .score-separator {
    color: #94a3b8;
}
.recent-result-card .result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
}
.recent-result-card .winner-badge {
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
}
.recent-result-card .draw-badge {
    background: #f39c12;
    color: white;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* ============================================================
   MEJORAS PARA MÓVILES PEQUEÑOS (≤ 768px)
   ============================================================ */



/* --- Ajustes generales de modales para móviles --- */
@media (max-width: 600px) {
    .modal-overlay .modal {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .modal-overlay .modal-header {
        padding: 16px 20px !important;
        border-radius: 0 !important;
    }
    .modal-overlay .modal-header .modal-title {
        font-size: 1.1rem !important;
    }
    .modal-overlay .modal-body {
        padding: 20px 16px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .modal-overlay .modal-footer {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        border-radius: 0 !important;
    }
    .modal-overlay .modal-footer .btn {
        width: 100% !important;
        min-width: unset !important;
        justify-content: center !important;
    }
    .modal-overlay .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .modal-overlay .input-group input,
    .modal-overlay .input-group select,
    .modal-overlay .input-group textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
        padding: 14px 14px !important;
    }
    .modal-overlay .input-group label {
        font-size: 0.9rem !important;
    }

    /* Modal de jugador */
    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 48px !important;
        height: 48px !important;
    }
    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 1.1rem !important;
    }
    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 8px !important;
    }
    .player-modal-enhanced .stat-value-large {
        font-size: 1.4rem !important;
    }

    /* Resumen de partido */
    .modal-overlay .summary-scoreboard-opt {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .modal-overlay .summary-team-opt {
        flex-direction: row !important;
        gap: 12px !important;
        min-width: unset !important;
        width: 100% !important;
        justify-content: center;
    }
    .modal-overlay .summary-team-logo-opt {
        width: 50px !important;
        height: 50px !important;
    }
    .modal-overlay .summary-result-opt .summary-runs-opt {
        font-size: 2rem !important;
    }
    .modal-overlay .summary-tabs-opt {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 2px;
    }
    .modal-overlay .summary-tab-opt {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
    .modal-overlay .stats-table-compact {
        font-size: 0.75rem !important;
    }
    .modal-overlay .stats-table-compact th,
    .modal-overlay .stats-table-compact td {
        padding: 6px 4px !important;
    }

    /* Detalle de partido */
    .modal-overlay .game-detail-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 16px !important;
    }
    .modal-overlay .game-score-display {
        flex-direction: row !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .modal-overlay .game-score-display .score-item .score-number {
        font-size: 2.2rem !important;
    }
}

/* --- Móviles muy pequeños (≤ 480px) --- */
@media (max-width: 480px) {
    .player-modal-enhanced .modal-header {
        padding: 14px 14px !important;
        flex-wrap: wrap !important;
    }
    .player-modal-enhanced .modal-title {
        min-width: 100% !important;
        justify-content: flex-start !important;
    }
    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 1rem !important;
    }
    .player-modal-enhanced .modal-title .player-info-text .player-details {
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    .player-modal-enhanced .modal-close {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.2rem !important;
    }
    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .player-modal-enhanced .player-stat-item {
        padding: 8px 4px !important;
    }
    .player-modal-enhanced .stat-value-large {
        font-size: 1.2rem !important;
    }
    .player-modal-enhanced .player-info-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 12px !important;
    }
    .player-modal-enhanced .player-info-card .team-logo-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .modal-overlay .summary-scoreboard-opt .summary-team-opt {
        flex-wrap: wrap;
    }
    .modal-overlay .summary-result-opt .summary-runs-opt {
        font-size: 1.6rem !important;
    }
    .modal-overlay .game-score-display .score-item .score-number {
        font-size: 1.8rem !important;
    }
}

/* --- Móviles extra pequeños (≤ 380px) --- */
@media (max-width: 380px) {
    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 36px !important;
        height: 36px !important;
    }
    .player-modal-enhanced .modal-title .player-info-text .player-name {
        font-size: 0.9rem !important;
    }
    .player-modal-enhanced .modal-title .player-info-text .player-details {
        font-size: 0.65rem !important;
    }
    .player-modal-enhanced .player-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .player-modal-enhanced .stat-value-large {
        font-size: 1rem !important;
    }
    .modal-overlay .summary-result-opt .summary-runs-opt {
        font-size: 1.4rem !important;
    }
    .modal-overlay .game-score-display .score-item .score-number {
        font-size: 1.5rem !important;
    }
}

/* ============================================================
   MEJORAS PARA LA TARJETA DE TEMPORADA EN MÓVILES
   ============================================================ */

/* Estilos base para la tarjeta (se mantienen los que ya tenías) */
.dashboard-season-section .season-info-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-season-section .season-logo-container {
    flex-shrink: 0;
}

.dashboard-season-section .season-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #FF6B00;
    background: white;
    padding: 6px;
    object-fit: contain;
    box-shadow: 0 0 0 6px rgba(255,107,0,0.2), 0 8px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.dashboard-season-section .season-info {
    flex: 1;
    min-width: 200px;
}

.dashboard-season-section .season-title {
    font-size: 2.4rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-season-section .season-title .season-badge {
    font-size: 0.9rem;
    background: #FF6B00;
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255,107,0,0.35);
    color: #fff !important;
}

.dashboard-season-section .season-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin: 6px 0 14px 0;
    line-height: 1.6;
}

.dashboard-season-section .season-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}

.dashboard-season-section .season-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 6px 18px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-season-section .season-meta i {
    color: #FF6B00;
}

.dashboard-season-section .season-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.dashboard-season-section .season-actions .btn {
    min-width: 150px;
    justify-content: center;
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 20px;
}

.dashboard-season-section .season-actions .btn-light {
    background: rgba(255,255,255,0.9);
    color: #002244 !important;
}

.dashboard-season-section .season-actions .btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
}

.dashboard-season-section .season-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff !important;
}

.dashboard-season-section .season-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ============================================================
   RESPONSIVE PARA LA TARJETA DE TEMPORADA EN MÓVILES (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .dashboard-season-section {
        padding: 20px 16px !important; /* Reduce el padding general */
    }

    .dashboard-season-section .season-info-wrapper {
        gap: 16px !important;
        flex-direction: column !important; /* Apila elementos verticalmente */
        align-items: stretch !important;
    }

    .dashboard-season-section .season-logo-container {
        display: flex;
        justify-content: center;
        margin-bottom: 4px;
    }

    .dashboard-season-section .season-logo {
        width: 70px !important;        /* Logo más pequeño */
        height: 70px !important;
        border-width: 3px !important;
        padding: 4px !important;
        box-shadow: 0 0 0 4px rgba(255,107,0,0.2), 0 4px 15px rgba(0,0,0,0.25) !important;
    }

    .dashboard-season-section .season-title {
        font-size: 1.6rem !important;   /* Título más pequeño */
        gap: 10px !important;
        justify-content: center;
        text-align: center;
    }

    .dashboard-season-section .season-title .season-badge {
        font-size: 0.7rem !important;
        padding: 4px 16px !important;
    }

    .dashboard-season-section .season-description {
        font-size: 0.95rem !important;
        text-align: center;
        margin: 4px 0 10px 0 !important;
    }

    .dashboard-season-section .season-meta {
        font-size: 0.75rem !important;
        gap: 8px !important;
        justify-content: center;
    }

    .dashboard-season-section .season-meta span {
        padding: 4px 12px !important;
        font-size: 0.7rem !important;
    }

    .dashboard-season-section .season-actions {
        flex-direction: row !important;   /* Botones en fila */
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        margin-top: 8px;
    }

    .dashboard-season-section .season-actions .btn {
        min-width: 100px !important;
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
        flex: 1 0 auto;
        max-width: 140px;
    }
}

/* Ajuste adicional para móviles muy pequeños (≤ 380px) */
@media (max-width: 380px) {
    .dashboard-season-section .season-logo {
        width: 60px !important;
        height: 60px !important;
    }

    .dashboard-season-section .season-title {
        font-size: 1.3rem !important;
    }

    .dashboard-season-section .season-meta span {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }

    .dashboard-season-section .season-actions .btn {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        min-width: 80px !important;
    }
}

/* Mejoras específicas para el resumen de partido en móviles */
@media (max-width: 600px) {
    .summary-scoreboard-opt {
        gap: 10px !important;
        padding: 15px !important;
    }
    .summary-team-logo-opt {
        width: 45px !important;
        height: 45px !important;
    }
    .summary-runs-opt {
        font-size: 2.2rem !important;
    }
    .summary-team-name-opt {
        font-size: 0.85rem !important;
    }
    .summary-tab-opt {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    .summary-tab-opt img {
        width: 18px !important;
        height: 18px !important;
    }
    .stats-table-compact {
        font-size: 0.7rem !important;
    }
    .stats-table-compact th, 
    .stats-table-compact td {
        padding: 4px 3px !important;
    }
    .stats-table-compact .name-col {
        max-width: 100px !important;
        white-space: normal !important;
        word-break: break-word;
    }
    .mvp-card-mini {
        font-size: 0.8rem !important;
    }
}

/* Ajustes para el modal de jugador en móviles */
@media (max-width: 480px) {
    .player-modal-enhanced .modal-title .team-logo-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
    .player-modal-enhanced .modal-title .player-name {
        font-size: 1.3rem !important;
    }
    .player-modal-enhanced .player-info-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .player-modal-enhanced .player-info-card .team-logo-circle {
        width: 40px !important;
        height: 40px !important;
    }
}
/* ============================================================
   CORRECCIONES PARA PANTALLAS MUY PEQUEÑAS (≤ 480px)
   Especialmente modales de jugador y resumen de partido
   ============================================================ */

/* --- Ajustes globales para modales en móviles --- */
@media (max-width: 480px) {
  /* Fuerza que el modal ocupe todo el ancho y alto */
  .modal-overlay .modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Cabecera: apila elementos y reduce padding */
  .modal-overlay .modal-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .modal-overlay .modal-header .modal-title {
    font-size: 1rem !important;
    min-width: 100% !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  /* Botón cerrar más pequeño */
  .modal-overlay .modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
  }

  /* Cuerpo y footer con padding reducido */
  .modal-overlay .modal-body {
    padding: 16px 12px !important;
  }

  .modal-overlay .modal-footer {
    padding: 12px 14px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .modal-overlay .modal-footer .btn {
    width: 100% !important;
    min-width: unset !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
  }

  /* Formularios: una columna */
  .modal-overlay .form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .modal-overlay .input-group input,
  .modal-overlay .input-group select,
  .modal-overlay .input-group textarea {
    font-size: 16px !important; /* evita zoom en iOS */
    padding: 12px 12px !important;
  }
}

/* ============================================================
   MODAL DE JUGADOR (player-modal-enhanced)
   ============================================================ */
@media (max-width: 480px) {
  .player-modal-enhanced .modal-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
  }

  .player-modal-enhanced .modal-title {
    min-width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  /* Logo más pequeño y sin desplazamiento */
  .player-modal-enhanced .modal-title .team-logo-wrapper {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    padding: 2px !important;
    border-width: 2px !important;
  }

  .player-modal-enhanced .modal-title .team-logo-wrapper img,
  .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text {
    min-width: 100px !important;
    flex: 1 !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-name {
    font-size: 1rem !important;
    margin-bottom: 2px !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details {
    font-size: 0.7rem !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details span {
    padding: 1px 8px !important;
    font-size: 0.65rem !important;
  }

  .player-modal-enhanced .modal-body {
    padding: 14px 12px !important;
  }

  /* Tarjeta de información del equipo */
  .player-modal-enhanced .player-info-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 12px !important;
    gap: 8px !important;
  }

  .player-modal-enhanced .player-info-card .team-logo-circle {
    width: 40px !important;
    height: 40px !important;
  }

  .player-modal-enhanced .player-info-card .team-info-text .team-name {
    font-size: 0.95rem !important;
  }

  /* Cuadrícula de estadísticas: 3 columnas en móvil */
  .player-modal-enhanced .player-stat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .player-modal-enhanced .player-stat-item {
    padding: 8px 4px !important;
  }

  .player-modal-enhanced .stat-value-large {
    font-size: 1.2rem !important;
  }

  .player-modal-enhanced .stat-label-small {
    font-size: 0.6rem !important;
  }

  /* Últimos partidos */
  .player-modal-enhanced .last-game-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .player-modal-enhanced .last-game-item .game-opponent {
    font-size: 0.85rem !important;
  }

  .player-modal-enhanced .last-game-item .game-stats {
    font-size: 0.75rem !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .player-modal-enhanced .last-game-item .game-result {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }

  /* Footer: botones apilados y centrados */
  .player-modal-enhanced .modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  .player-modal-enhanced .modal-footer .btn-group {
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .player-modal-enhanced .modal-footer .btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .player-modal-enhanced .modal-footer .brand-tag {
    font-size: 0.7rem !important;
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ============================================================
   MODAL DE RESUMEN DE PARTIDO (game-summary-modal-enhanced)
   ============================================================ */
@media (max-width: 480px) {
  .game-summary-modal-enhanced .modal-header {
    padding: 12px 14px !important;
  }

  .game-summary-modal-enhanced .modal-header .modal-title {
    font-size: 1rem !important;
    gap: 8px !important;
  }

  .game-summary-modal-enhanced .modal-body {
    padding: 14px 12px !important;
  }

  /* Scoreboard: apilar verticalmente y reducir tamaños */
  .modal-overlay .summary-scoreboard-opt {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .modal-overlay .summary-team-opt {
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    justify-content: center !important;
    min-width: unset !important;
  }

  .modal-overlay .summary-team-logo-opt {
    width: 42px !important;
    height: 42px !important;
  }

  .modal-overlay .summary-team-name-opt {
    font-size: 0.85rem !important;
  }

  .modal-overlay .summary-result-opt .summary-runs-opt {
    font-size: 2rem !important;
  }

  .modal-overlay .summary-result-opt .summary-divider-opt {
    font-size: 1.6rem !important;
  }

  /* Pestañas: scroll horizontal y texto más pequeño */
  .modal-overlay .summary-tabs-opt {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    padding-bottom: 2px !important;
    margin-bottom: 12px !important;
  }

  .modal-overlay .summary-tab-opt {
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }

  .modal-overlay .summary-tab-opt img {
    width: 18px !important;
    height: 18px !important;
  }

  /* Tablas compactas */
  .modal-overlay .stats-table-compact {
    font-size: 0.7rem !important;
  }

  .modal-overlay .stats-table-compact th,
  .modal-overlay .stats-table-compact td {
    padding: 4px 3px !important;
  }

  .modal-overlay .stats-table-compact .name-col {
    max-width: 80px !important;
    white-space: normal !important;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .modal-overlay .mini-stat {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
  }

  .modal-overlay .mvp-card-mini {
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
  }

  /* Análisis del partido */
  .modal-overlay .game-analysis-box .keys-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .modal-overlay .game-analysis-box .narrative {
    font-size: 0.85rem !important;
    padding: 12px 14px !important;
  }

  .modal-overlay .game-analysis-box .key-card {
    padding: 10px 12px !important;
  }

  .modal-overlay .game-analysis-box .mvp-section {
    padding: 12px 14px !important;
  }

  .modal-overlay .game-analysis-box .mvp-section .mvp-player {
    font-size: 0.85rem !important;
  }
}

/* ============================================================
   DETALLE DE PARTIDO (viewGame)
   ============================================================ */
@media (max-width: 480px) {
  .modal-overlay .game-detail-header {
    flex-direction: column !important;
    align-items: center !important;
    padding: 14px !important;
    gap: 6px !important;
  }

  .modal-overlay .game-detail-header .team-block {
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .modal-overlay .game-detail-header .team-block .team-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .modal-overlay .game-detail-header .team-block .team-name {
    font-size: 0.9rem !important;
  }

  .modal-overlay .game-detail-header .vs-text {
    font-size: 1.2rem !important;
  }

  .modal-overlay .game-score-display {
    flex-direction: row !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .modal-overlay .game-score-display .score-item .score-number {
    font-size: 2rem !important;
  }

  .modal-overlay .game-score-display .score-item .score-team {
    font-size: 0.75rem !important;
  }

  .modal-overlay .game-score-display .score-divider {
    font-size: 1.6rem !important;
  }

  .modal-overlay .game-score-display .winner-badge {
    font-size: 0.65rem !important;
    padding: 4px 10px !important;
  }
}

/* ============================================================
   AJUSTES ADICIONALES PARA PANTALLAS < 380px (muy pequeñas)
   ============================================================ */
@media (max-width: 380px) {
  .player-modal-enhanced .modal-title .team-logo-wrapper {
    width: 34px !important;
    height: 34px !important;
  }

  .player-modal-enhanced .modal-title .team-logo-wrapper img,
  .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-name {
    font-size: 0.9rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details {
    font-size: 0.6rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details span {
    padding: 0 6px !important;
  }

  .player-modal-enhanced .player-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .player-modal-enhanced .stat-value-large {
    font-size: 1rem !important;
  }

  .player-modal-enhanced .player-info-card .team-logo-circle {
    width: 34px !important;
    height: 34px !important;
  }

  .modal-overlay .summary-scoreboard-opt .summary-team-logo-opt {
    width: 34px !important;
    height: 34px !important;
  }

  .modal-overlay .summary-result-opt .summary-runs-opt {
    font-size: 1.6rem !important;
  }

  .modal-overlay .game-score-display .score-item .score-number {
    font-size: 1.6rem !important;
  }

  .modal-overlay .stats-table-compact {
    font-size: 0.6rem !important;
  }

  .modal-overlay .stats-table-compact th,
  .modal-overlay .stats-table-compact td {
    padding: 2px 2px !important;
  }
}

/* ============================================================
   CORRECCIONES DEFINITIVAS PARA MÓVILES PEQUEÑOS (≤ 480px)
   Resuelve: cabeceras de modales, selector de temporada,
   nombres de jugadores y botón de cierre.
   ============================================================ */

/* --- 1. Ajustes globales para todos los modales en móviles --- */
@media (max-width: 480px) {
  /* Fuerza que el modal ocupe toda la pantalla y su contenido se ajuste */
  .modal-overlay .modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Cabecera: asegura que el título y el botón de cierre estén visibles */
  .modal-overlay .modal-header {
    padding: 12px 14px !important;
    flex-wrap: nowrap !important; /* Evita que se desborde */
    gap: 8px !important;
    min-height: 56px !important;
    flex-shrink: 0 !important;
  }

  .modal-overlay .modal-header .modal-title {
    font-size: 1rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Permite que el texto se acorte */
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  .modal-overlay .modal-header .modal-title i {
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
  }

  .modal-overlay .modal-header .modal-title span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.95rem !important;
  }

  /* Botón de cierre: siempre visible y bien posicionado */
  .modal-overlay .modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    color: #fff !important;
  }

  /* Cuerpo del modal: scroll interno y padding reducido */
  .modal-overlay .modal-body {
    padding: 16px 14px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Footer: botones apilados y centrados */
  .modal-overlay .modal-footer {
    padding: 12px 14px !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    border-top: 2px solid #e2e8f0 !important;
  }

  .modal-overlay .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
  }

  /* Formularios: una sola columna */
  .modal-overlay .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-overlay .input-group input,
  .modal-overlay .input-group select,
  .modal-overlay .input-group textarea {
    font-size: 16px !important; /* Evita zoom en iOS */
    padding: 12px 12px !important;
  }
}

/* --- 2. Correcciones específicas para el MODAL DE JUGADOR --- */
@media (max-width: 480px) {
  .player-modal-enhanced .modal-header {
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
  }

  .player-modal-enhanced .modal-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  /* Logo del equipo: más pequeño y sin desplazamiento */
  .player-modal-enhanced .modal-title .team-logo-wrapper {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    padding: 2px !important;
    border-width: 2px !important;
  }

  .player-modal-enhanced .modal-title .team-logo-wrapper img,
  .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }

  /* Información del jugador: nombre visible y etiquetas reducidas */
  .player-modal-enhanced .modal-title .player-info-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-name {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details {
    font-size: 0.65rem !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details span {
    padding: 1px 6px !important;
    font-size: 0.6rem !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
  }

  /* Cuerpo: ajustes en tarjeta de equipo y estadísticas */
  .player-modal-enhanced .modal-body {
    padding: 14px 12px !important;
  }

  .player-modal-enhanced .player-info-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 12px !important;
    gap: 8px !important;
  }

  .player-modal-enhanced .player-info-card .team-logo-circle {
    width: 36px !important;
    height: 36px !important;
  }

  .player-modal-enhanced .player-stat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .player-modal-enhanced .player-stat-item {
    padding: 6px 4px !important;
  }

  .player-modal-enhanced .stat-value-large {
    font-size: 1.1rem !important;
  }

  .player-modal-enhanced .stat-label-small {
    font-size: 0.55rem !important;
  }

  /* Últimos partidos: apilados */
  .player-modal-enhanced .last-game-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 10px !important;
    gap: 4px !important;
  }

  .player-modal-enhanced .last-game-item .game-opponent {
    font-size: 0.8rem !important;
  }

  .player-modal-enhanced .last-game-item .game-stats {
    font-size: 0.7rem !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .player-modal-enhanced .last-game-item .game-result {
    font-size: 0.6rem !important;
    padding: 1px 8px !important;
  }

  /* Footer: botones apilados */
  .player-modal-enhanced .modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }

  .player-modal-enhanced .modal-footer .btn-group {
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .player-modal-enhanced .modal-footer .btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
  }

  .player-modal-enhanced .modal-footer .brand-tag {
    font-size: 0.65rem !important;
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --- 3. Correcciones para el MODAL DE RESUMEN DE PARTIDO --- */
@media (max-width: 480px) {
  .game-summary-modal-enhanced .modal-header {
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
  }

  .game-summary-modal-enhanced .modal-header .modal-title {
    font-size: 0.95rem !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .game-summary-modal-enhanced .modal-header .modal-title i {
    font-size: 1.1rem !important;
  }

  .game-summary-modal-enhanced .modal-body {
    padding: 14px 12px !important;
  }

  /* Scoreboard: apilar verticalmente y reducir tamaños */
  .modal-overlay .summary-scoreboard-opt {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .modal-overlay .summary-team-opt {
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: center !important;
    min-width: unset !important;
  }

  .modal-overlay .summary-team-logo-opt {
    width: 38px !important;
    height: 38px !important;
  }

  .modal-overlay .summary-team-name-opt {
    font-size: 0.8rem !important;
  }

  .modal-overlay .summary-result-opt .summary-runs-opt {
    font-size: 1.8rem !important;
  }

  .modal-overlay .summary-result-opt .summary-divider-opt {
    font-size: 1.4rem !important;
  }

  /* Pestañas: scroll horizontal y texto más pequeño */
  .modal-overlay .summary-tabs-opt {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    padding-bottom: 2px !important;
    margin-bottom: 10px !important;
  }

  .modal-overlay .summary-tab-opt {
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }

  .modal-overlay .summary-tab-opt img {
    width: 16px !important;
    height: 16px !important;
  }

  /* Tablas compactas */
  .modal-overlay .stats-table-compact {
    font-size: 0.65rem !important;
  }

  .modal-overlay .stats-table-compact th,
  .modal-overlay .stats-table-compact td {
    padding: 3px 2px !important;
  }

  .modal-overlay .stats-table-compact .name-col {
    max-width: 70px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .modal-overlay .mini-stat {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  .modal-overlay .mvp-card-mini {
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
  }

  /* Análisis del partido */
  .modal-overlay .game-analysis-box .keys-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .modal-overlay .game-analysis-box .narrative {
    font-size: 0.8rem !important;
    padding: 10px 12px !important;
  }

  .modal-overlay .game-analysis-box .key-card {
    padding: 8px 10px !important;
  }

  .modal-overlay .game-analysis-box .mvp-section {
    padding: 10px 12px !important;
  }

  .modal-overlay .game-analysis-box .mvp-section .mvp-player {
    font-size: 0.8rem !important;
  }
}

/* --- 4. Correcciones para el DETALLE DE PARTIDO (viewGame) --- */
@media (max-width: 480px) {
  .modal-overlay .game-detail-header {
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px !important;
    gap: 4px !important;
  }

  .modal-overlay .game-detail-header .team-block {
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .modal-overlay .game-detail-header .team-block .team-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .modal-overlay .game-detail-header .team-block .team-name {
    font-size: 0.85rem !important;
  }

  .modal-overlay .game-detail-header .vs-text {
    font-size: 1.1rem !important;
  }

  .modal-overlay .game-score-display {
    flex-direction: row !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .modal-overlay .game-score-display .score-item .score-number {
    font-size: 1.8rem !important;
  }

  .modal-overlay .game-score-display .score-item .score-team {
    font-size: 0.7rem !important;
  }

  .modal-overlay .game-score-display .score-divider {
    font-size: 1.4rem !important;
  }

  .modal-overlay .game-score-display .winner-badge {
    font-size: 0.6rem !important;
    padding: 2px 8px !important;
  }
}

/* --- 5. CORRECCIÓN DEL SELECTOR DE TEMPORADA EN ESTADÍSTICAS --- */
@media (max-width: 480px) {
  /* Contenedor del selector: evitar desbordamiento */
  .stats-controls .section-header {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .stats-controls .section-header h2 {
    font-size: 1.1rem !important;
    flex: 1 1 100% !important;
  }

  .stats-controls .section-header > div {
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  /* Selector de temporada: más pequeño y sin desbordar */
  #seasonSelector {
    max-width: 180px !important;
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }

  /* Botón "Gestionar" */
  #manageSeasonsBtn {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    min-height: 36px !important;
  }

  /* Selector de equipo en estadísticas */
  #teamStatsFilter {
    max-width: 100% !important;
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
  }
}

/* --- 6. CORRECCIÓN PARA QUE EL NOMBRE DEL JUGADOR Y EL CIERRE SIEMPRE VISIBLES --- */
@media (max-width: 480px) {
  /* En modales dinámicos, forzar que el título y el botón de cierre estén en la misma línea */
  .modal-overlay .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .modal-overlay .modal-header .modal-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .modal-overlay .modal-header .modal-title span {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .modal-overlay .modal-close {
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }
}

/* --- 7. Ajustes extra para móviles muy pequeños (≤ 380px) --- */
@media (max-width: 380px) {
  .player-modal-enhanced .modal-title .team-logo-wrapper {
    width: 30px !important;
    height: 30px !important;
  }

  .player-modal-enhanced .modal-title .team-logo-wrapper img,
  .player-modal-enhanced .modal-title .team-logo-wrapper .fallback-logo {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-name {
    font-size: 0.85rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details {
    font-size: 0.55rem !important;
  }

  .player-modal-enhanced .modal-title .player-info-text .player-details span {
    padding: 0 4px !important;
    font-size: 0.5rem !important;
  }

  .player-modal-enhanced .player-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .player-modal-enhanced .stat-value-large {
    font-size: 0.95rem !important;
  }

  .modal-overlay .summary-scoreboard-opt .summary-team-logo-opt {
    width: 30px !important;
    height: 30px !important;
  }

  .modal-overlay .summary-result-opt .summary-runs-opt {
    font-size: 1.4rem !important;
  }

  .modal-overlay .game-score-display .score-item .score-number {
    font-size: 1.5rem !important;
  }

  .modal-overlay .stats-table-compact {
    font-size: 0.55rem !important;
  }

  .modal-overlay .stats-table-compact th,
  .modal-overlay .stats-table-compact td {
    padding: 2px 1px !important;
  }

  /* Selector de temporada aún más pequeño */
  #seasonSelector {
    max-width: 140px !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    min-width: 90px !important;
  }
}

/* ================================================================
   MODAL DE JUGADOR PREMIUM — BASQUETBOL (bp-*)
   Diseño premium con contraste forzado y UX profesional
   ================================================================ */

/* --- Reset de contraste: SOBREESCRIBE reglas globales de styles-vet.css --- */
#bpPlayerModal.modal-overlay .modal-body,
#bpPlayerModal .modal-body,
#bpPlayerModal .bp-container,
#bpPlayerModal .bp-container * {
    color: inherit;
}

/* Excepción: los textos dentro de .bp-hero deben ser blancos */
#bpPlayerModal .bp-hero,
#bpPlayerModal .bp-hero * {
    color: #ffffff !important;
}

/* ================================================================
   WRAPPER
   ================================================================ */
#bpPlayerModal.modal-overlay {
    background: rgba(2, 8, 20, 0.75) !important;
    backdrop-filter: blur(10px);
    padding: 16px;
}

#bpPlayerModal .modal {
    max-width: 760px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: #f4f7fb;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: none !important;
}

.bp-modal-body {
    padding: 0 !important;
    background: #f4f7fb !important;
    overflow-x: hidden !important;
}

.bp-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
}

/* ================================================================
   1. HERO — Rediseño premium con contraste garantizado
   ================================================================ */
#bpPlayerModal .bp-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.22), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0, 180, 255, 0.15), transparent 55%),
        linear-gradient(135deg, #071528 0%, #0f2a52 55%, #0047AB 100%);
    padding: 18px;
    box-shadow:
        0 10px 30px rgba(7, 21, 40, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#bpPlayerModal .bp-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FFD700, #FF6B00);
    z-index: 2;
}

#bpPlayerModal .bp-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* --- Fila 1: Avatar + Info + Avg --- */
#bpPlayerModal .bp-hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* Avatar */
#bpPlayerModal .bp-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

#bpPlayerModal .bp-hero-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff !important;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.4),
        inset 0 -4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Número sobre el avatar */
#bpPlayerModal .bp-hero-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    color: #071528 !important;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: 2.5px solid #071528;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.5);
    letter-spacing: 0.3px;
    text-shadow: none;
}

/* Info central */
#bpPlayerModal .bp-hero-info {
    flex: 1;
    min-width: 0;
}

#bpPlayerModal .bp-hero-name {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

#bpPlayerModal .bp-hero-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Chips del hero */
#bpPlayerModal .bp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
#bpPlayerModal .bp-hero-chip i {
    font-size: 0.65rem;
    opacity: 0.95;
    color: inherit !important;
}
#bpPlayerModal .bp-hero-chip .bp-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

/* Chip de líder (dorado) */
#bpPlayerModal .bp-hero-chip.bp-chip-leader {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 215, 0, 0.12)) !important;
    color: #FFD700 !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
    font-weight: 800;
}
#bpPlayerModal .bp-hero-chip.bp-chip-leader i { color: #FFD700 !important; }

/* Chip de "best scorer" (naranja) */
#bpPlayerModal .bp-hero-chip.bp-chip-top {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.4), rgba(255, 107, 0, 0.15)) !important;
    color: #FFB366 !important;
    border-color: rgba(255, 140, 0, 0.65) !important;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.3);
    font-weight: 800;
}
#bpPlayerModal .bp-hero-chip.bp-chip-top i { color: #FFB366 !important; }

/* Promedio (PPP) */
#bpPlayerModal .bp-hero-avg {
    text-align: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 140, 0, 0.08)) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    flex-shrink: 0;
    min-width: 84px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}
#bpPlayerModal .bp-hero-avg-value {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: #FFD700 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
}
#bpPlayerModal .bp-hero-avg-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-top: 3px;
}

/* --- Fila 2: mini-stats horizontal --- */
#bpPlayerModal .bp-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
#bpPlayerModal .bp-hero-stat {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
#bpPlayerModal .bp-hero-stat:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-2px);
}
#bpPlayerModal .bp-hero-stat-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff !important;
    line-height: 1.1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
#bpPlayerModal .bp-hero-stat-label {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-top: 3px;
}

/* ================================================================
   2. SECCIONES
   ================================================================ */
#bpPlayerModal .bp-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 2px 12px rgba(10, 26, 43, 0.06),
        0 0 0 1px rgba(226, 232, 240, 0.7);
    border: none;
}

#bpPlayerModal .bp-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #0a1f3d !important;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px dashed #e2e8f0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
#bpPlayerModal .bp-section-heading i {
    color: #FF6B00 !important;
    font-size: 0.95rem;
}

#bpPlayerModal .bp-section-count {
    margin-left: auto;
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 11px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* ================================================================
   3. STATS GRID (8 tarjetas)
   ================================================================ */
#bpPlayerModal .bp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#bpPlayerModal .bp-stat-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    border: 1.5px solid #e8eef5;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
#bpPlayerModal .bp-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, transparent);
    transition: background 0.25s ease;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
#bpPlayerModal .bp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 26, 43, 0.1);
    border-color: #FF6B00;
}
#bpPlayerModal .bp-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
#bpPlayerModal .bp-stat-games .bp-stat-icon  { background: linear-gradient(135deg, #3498db, #2176ae); }
#bpPlayerModal .bp-stat-points .bp-stat-icon { background: linear-gradient(135deg, #FF6B00, #E05A00); }
#bpPlayerModal .bp-stat-ppg .bp-stat-icon    { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
#bpPlayerModal .bp-stat-threes .bp-stat-icon { background: linear-gradient(135deg, #27ae60, #1e8449); }
#bpPlayerModal .bp-stat-fouls .bp-stat-icon  { background: linear-gradient(135deg, #f39c12, #d68910); }
#bpPlayerModal .bp-stat-blocks .bp-stat-icon { background: linear-gradient(135deg, #2563EB, #1e40af); }
#bpPlayerModal .bp-stat-steals .bp-stat-icon { background: linear-gradient(135deg, #9b59b6, #6a1b9a); }
#bpPlayerModal .bp-stat-avg .bp-stat-icon    { background: linear-gradient(135deg, #FFD700, #D9A832); color: #002244 !important; }

#bpPlayerModal .bp-stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0a1f3d !important;
    line-height: 1.1;
    letter-spacing: -0.3px;
}
#bpPlayerModal .bp-stat-ppg .bp-stat-value  { color: #0284c7 !important; }
#bpPlayerModal .bp-stat-avg .bp-stat-value  { color: #B45309 !important; }

#bpPlayerModal .bp-stat-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b !important;
    font-weight: 800;
    margin-top: 4px;
}

/* ================================================================
   4. BEST MARKS
   ================================================================ */
#bpPlayerModal .bp-best-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#bpPlayerModal .bp-best-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
#bpPlayerModal .bp-best-card:hover {
    transform: translateY(-3px) scale(1.01);
}
#bpPlayerModal .bp-best-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 60%);
    pointer-events: none;
}

#bpPlayerModal .bp-best-game {
    background: linear-gradient(135deg, #FF6B00, #E05A00, #B04500);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.35);
}
#bpPlayerModal .bp-best-threes {
    background: linear-gradient(135deg, #27ae60, #1e8449, #166534);
    box-shadow: 0 8px 22px rgba(39, 174, 96, 0.32);
}

#bpPlayerModal .bp-best-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff !important;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#bpPlayerModal .bp-best-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
#bpPlayerModal .bp-best-label {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#bpPlayerModal .bp-best-value {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    margin: 3px 0;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#bpPlayerModal .bp-best-hint {
    font-size: 0.62rem;
    opacity: 0.9;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
}

#bpPlayerModal .bp-best-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #E05A00 !important;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
#bpPlayerModal .bp-best-threes .bp-best-ribbon {
    color: #1e8449 !important;
}

/* ================================================================
   5. MATCH ROWS
   ================================================================ */
#bpPlayerModal .bp-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#bpPlayerModal .bp-match-row {
    background: #ffffff;
    border-radius: 14px;
    padding: 13px 15px;
    border: 1.5px solid #e8eef5;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10, 26, 43, 0.04);
}
#bpPlayerModal .bp-match-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF6B00, #E05A00);
    border-radius: 4px 0 0 4px;
}
#bpPlayerModal .bp-match-row:hover {
    transform: translateX(3px);
    border-color: #FFB366;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.15);
}

/* MVP row */
#bpPlayerModal .bp-match-row.bp-match-mvp {
    background: linear-gradient(135deg, #fffdf5, #fff8e0);
    border: 1.5px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}
#bpPlayerModal .bp-match-row.bp-match-mvp::before {
    background: linear-gradient(180deg, #FFD700, #FF8C00);
    width: 5px;
}

/* Head del match */
#bpPlayerModal .bp-match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
#bpPlayerModal .bp-match-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}
#bpPlayerModal .bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
#bpPlayerModal .bp-badge-week {
    background: linear-gradient(135deg, #0a1f3d, #0047AB);
    color: #ffffff !important;
}
#bpPlayerModal .bp-badge-side.home {
    background: rgba(52, 152, 219, 0.15);
    color: #1e5f8a !important;
}
#bpPlayerModal .bp-badge-side.away {
    background: rgba(231, 76, 60, 0.15);
    color: #a93226 !important;
}

#bpPlayerModal .bp-match-date {
    font-size: 0.68rem;
    color: #64748b !important;
    font-weight: 700;
    white-space: nowrap;
}
#bpPlayerModal .bp-match-date i {
    color: #E05A00 !important;
    margin-right: 4px;
}

/* MVP ribbon */
#bpPlayerModal .bp-match-mvp-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 10px;
    border-radius: 30px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #071528 !important;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.5);
    text-shadow: none;
}

/* ================================================================
   6. MEDALLAS DE LÍDER
   ================================================================ */
#bpPlayerModal .bp-leader-medals {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.03));
    border: 1.5px dashed rgba(255, 180, 0, 0.55);
}

#bpPlayerModal .bp-medal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1.5px solid;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}
#bpPlayerModal .bp-medal:hover {
    transform: translateY(-2px) scale(1.03);
}
#bpPlayerModal .bp-medal i {
    font-size: 0.62rem;
    color: inherit !important;
}

#bpPlayerModal .bp-medal-scorer {
    background: linear-gradient(135deg, #fff8e7, #ffe9a8);
    color: #8a5a00 !important;
    border-color: #ffd700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.35);
}
#bpPlayerModal .bp-medal-threes {
    background: linear-gradient(135deg, #eaf7ef, #c9ecd9);
    color: #166534 !important;
    border-color: #27ae60;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.28);
}
#bpPlayerModal .bp-medal-blocks {
    background: linear-gradient(135deg, #e8f4fd, #c6e3f7);
    color: #1e40af !important;
    border-color: #3498db;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.28);
}
#bpPlayerModal .bp-medal-steals {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #5b21b6 !important;
    border-color: #9b59b6;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.28);
}

/* ================================================================
   7. MATCH VS (equipos)
   ================================================================ */
#bpPlayerModal .bp-match-vs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
    line-height: 1.3;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #e2e8f0;
}
#bpPlayerModal .bp-team-name {
    font-weight: 600;
    color: #64748b !important;
}
#bpPlayerModal .bp-team-name.strong {
    color: #0a1f3d !important;
    font-weight: 800;
}
#bpPlayerModal .bp-vs-sep {
    color: #E05A00 !important;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 0 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ================================================================
   8. CHIPS DE STATS
   ================================================================ */
#bpPlayerModal .bp-match-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
#bpPlayerModal .bp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.68rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#bpPlayerModal .bp-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#bpPlayerModal .bp-chip i {
    font-size: 0.62rem;
    opacity: 0.95;
    color: inherit !important;
}

#bpPlayerModal .bp-chip-points {
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.35);
}
#bpPlayerModal .bp-chip-points.bp-chip-top {
    background: linear-gradient(135deg, #FFD700, #D9A832);
    color: #071528 !important;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.55);
}
#bpPlayerModal .bp-chip-threes {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #ffffff !important;
}
#bpPlayerModal .bp-chip-blocks {
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: #ffffff !important;
}
#bpPlayerModal .bp-chip-steals {
    background: linear-gradient(135deg, #9b59b6, #6a1b9a);
    color: #ffffff !important;
}
#bpPlayerModal .bp-chip-fouls {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #ffffff !important;
}
#bpPlayerModal .bp-chip-empty {
    background: #f1f5f9;
    color: #94a3b8 !important;
    font-size: 0.65rem;
    font-style: italic;
    box-shadow: none;
}

/* ================================================================
   9. MATCH FOOT
   ================================================================ */
#bpPlayerModal .bp-match-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}
#bpPlayerModal .bp-match-avg {
    font-size: 0.7rem;
    color: #64748b !important;
    font-weight: 700;
}
#bpPlayerModal .bp-match-avg i {
    color: #E05A00 !important;
    margin-right: 4px;
}
#bpPlayerModal .bp-match-avg strong {
    color: #0a1f3d !important;
    font-weight: 900;
    font-size: 0.85rem;
}

#bpPlayerModal .bp-series-result {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
#bpPlayerModal .bp-series-result i {
    color: inherit !important;
    font-size: 0.62rem;
}
#bpPlayerModal .bp-series-result.bp-won {
    background: linear-gradient(135deg, #d4f4dd, #b8ebc8);
    color: #14532d !important;
    border: 1px solid #16a34a;
}
#bpPlayerModal .bp-series-result.bp-lost {
    background: linear-gradient(135deg, #fde2e0, #fcc5c0);
    color: #7f1d1d !important;
    border: 1px solid #dc2626;
}
#bpPlayerModal .bp-series-result.bp-tie {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

/* ================================================================
   10. EMPTY STATE
   ================================================================ */
#bpPlayerModal .bp-empty-state {
    text-align: center;
    padding: 28px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfd, #eff3f8);
    border: 2px dashed #cbd5e1;
}
#bpPlayerModal .bp-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #64748b !important;
}
#bpPlayerModal .bp-empty-title {
    font-weight: 800;
    color: #0a1f3d !important;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
#bpPlayerModal .bp-empty-text {
    font-size: 0.78rem;
    color: #64748b !important;
}

/* ================================================================
   11. MODAL HEADER & FOOTER (override de styles-vet.css)
   ================================================================ */
#bpPlayerModal .modal-header {
    background: linear-gradient(145deg, #071528, #0f2a52) !important;
    border-bottom: 4px solid #FF6B00 !important;
    padding: 16px 22px !important;
}
#bpPlayerModal .modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.1rem;
}
#bpPlayerModal .modal-header .modal-title i {
    color: #FF6B00 !important;
}
#bpPlayerModal .modal-header .modal-title span {
    color: #ffffff !important;
}
#bpPlayerModal .modal-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
}
#bpPlayerModal .modal-close:hover {
    background: rgba(255, 107, 0, 0.4) !important;
    transform: rotate(90deg) scale(1.05);
}

#bpPlayerModal .modal-footer {
    background: #ffffff !important;
    border-top: 2px solid #e2e8f0 !important;
    padding: 12px 22px !important;
}
#bpPlayerModal .modal-footer .brand-tag,
#bpPlayerModal .modal-footer > div:first-child {
    color: #64748b !important;
}

/* Botones dentro del footer del modal */
#bpPlayerModal .btn-info {
    background: linear-gradient(135deg, #3498db, #2176ae) !important;
    color: #ffffff !important;
}
#bpPlayerModal .btn-primary {
    background: linear-gradient(135deg, #0047AB, #002244) !important;
    color: #ffffff !important;
}
#bpPlayerModal .btn-info i,
#bpPlayerModal .btn-primary i {
    color: #ffffff !important;
}

/* ================================================================
   12. RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
    .bp-container { padding: 10px; gap: 10px; }

    #bpPlayerModal .bp-hero { padding: 14px; border-radius: 16px; }
    #bpPlayerModal .bp-hero-top { gap: 10px; margin-bottom: 12px; }
    #bpPlayerModal .bp-hero-avatar { width: 54px; height: 54px; font-size: 1.2rem; border-width: 2.5px; }
    #bpPlayerModal .bp-hero-num { min-width: 24px; height: 24px; font-size: 0.65rem; padding: 0 6px; border-width: 2px; }
    #bpPlayerModal .bp-hero-name { font-size: 1.08rem; margin-bottom: 6px; }
    #bpPlayerModal .bp-hero-chip { font-size: 0.62rem; padding: 3px 9px; }
    #bpPlayerModal .bp-hero-avg { min-width: 68px; padding: 8px 10px; }
    #bpPlayerModal .bp-hero-avg-value { font-size: 1.4rem; }
    #bpPlayerModal .bp-hero-avg-label { font-size: 0.55rem; letter-spacing: 0.8px; }
    #bpPlayerModal .bp-hero-stats { gap: 6px; padding-top: 10px; }
    #bpPlayerModal .bp-hero-stat { padding: 6px 2px; }
    #bpPlayerModal .bp-hero-stat-value { font-size: 0.95rem; }
    #bpPlayerModal .bp-hero-stat-label { font-size: 0.52rem; }

    #bpPlayerModal .bp-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    #bpPlayerModal .bp-stat-card { padding: 9px 4px; border-radius: 12px; }
    #bpPlayerModal .bp-stat-icon { width: 26px; height: 26px; font-size: 0.72rem; margin-bottom: 5px; }
    #bpPlayerModal .bp-stat-value { font-size: 1.05rem; }
    #bpPlayerModal .bp-stat-label { font-size: 0.52rem; }

    #bpPlayerModal .bp-best-grid { grid-template-columns: 1fr; gap: 10px; }
    #bpPlayerModal .bp-best-card { padding: 12px 14px; gap: 10px; }
    #bpPlayerModal .bp-best-icon { width: 38px; height: 38px; font-size: 1rem; }
    #bpPlayerModal .bp-best-value { font-size: 1.5rem; }

    #bpPlayerModal .bp-section { padding: 13px; border-radius: 14px; }
    #bpPlayerModal .bp-section-heading { font-size: 0.8rem; padding-bottom: 10px; margin-bottom: 12px; }

    #bpPlayerModal .bp-match-row { padding: 11px 12px; border-radius: 12px; }
    #bpPlayerModal .bp-badge { font-size: 0.58rem; padding: 2px 8px; }
    #bpPlayerModal .bp-chip { padding: 3px 8px; font-size: 0.62rem; }
    #bpPlayerModal .bp-chip i { font-size: 0.55rem; }
    #bpPlayerModal .bp-match-vs { font-size: 0.75rem; padding: 6px 8px; }
    #bpPlayerModal .bp-team-name { font-size: 0.75rem; }
    #bpPlayerModal .bp-match-avg { font-size: 0.62rem; }
    #bpPlayerModal .bp-series-result { font-size: 0.6rem; padding: 3px 9px; }
    #bpPlayerModal .bp-medal { font-size: 0.58rem; padding: 3px 9px; }
    #bpPlayerModal .bp-medal i { font-size: 0.56rem; }
    #bpPlayerModal .bp-match-mvp-ribbon { font-size: 0.62rem; padding: 5px 12px; letter-spacing: 1px; }
}

@media (max-width: 380px) {
    #bpPlayerModal .bp-hero-avatar { width: 48px; height: 48px; font-size: 1rem; }
    #bpPlayerModal .bp-hero-num { min-width: 22px; height: 22px; font-size: 0.6rem; }
    #bpPlayerModal .bp-hero-name { font-size: 0.98rem; }
    #bpPlayerModal .bp-hero-chip { font-size: 0.58rem; padding: 2px 7px; }
    #bpPlayerModal .bp-hero-avg { min-width: 58px; padding: 6px 8px; }
    #bpPlayerModal .bp-hero-avg-value { font-size: 1.2rem; }
    #bpPlayerModal .bp-hero-stat-value { font-size: 0.88rem; }
    #bpPlayerModal .bp-stat-value { font-size: 0.95rem; }
    #bpPlayerModal .bp-stat-icon { width: 22px; height: 22px; font-size: 0.62rem; }
    #bpPlayerModal .bp-medal { font-size: 0.54rem; padding: 2px 7px; }
    #bpPlayerModal .bp-chip { font-size: 0.58rem; padding: 2px 7px; }
    #bpPlayerModal .bp-best-value { font-size: 1.3rem; }
    #bpPlayerModal .bp-best-icon { width: 32px; height: 32px; font-size: 0.9rem; }
}

/* ================================================================
   🏀 PRÓXIMOS PARTIDOS — PREMIUM REDESIGN v2
   AZB DATA © 2026 · Dashboard LIGA PREMIER
   ================================================================ */

/* Contenedor principal */
.azb-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ============ DÍA CARD ============ */
.azb-up-day {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10, 26, 43, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.6);
    transition: box-shadow 0.3s ease;
}
.azb-up-day:hover {
    box-shadow: 0 12px 40px rgba(10, 26, 43, 0.12), 0 0 0 1px rgba(255, 107, 0, 0.25);
}

/* Día HOY — acento extra dorado/naranja */
.azb-up-day.azb-up-today .azb-up-day-head {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.28), transparent 50%),
        linear-gradient(135deg, #0a1f3d 0%, #0f2a52 100%);
}
.azb-up-day.azb-up-today {
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.18), 0 0 0 2px rgba(255, 107, 0, 0.35);
}

/* --- HEAD del día --- */
.azb-up-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.18), transparent 50%),
        linear-gradient(135deg, #0a1f3d 0%, #0f2a52 100%);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.azb-up-day-head::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    background-size: 200% 100%;
    animation: azb-shimmer 3s infinite linear;
}
@keyframes azb-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.azb-up-day-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.azb-up-day-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.azb-up-day-info { min-width: 0; }
.azb-up-day-name {
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff !important;
    text-transform: capitalize;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.azb-up-day-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.2px;
}
.azb-up-day-tag {
    display: inline-block;
    padding: 3px 11px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #071528 !important;
    font-size: 0.62rem;
    font-weight: 900;
    border-radius: 20px;
    letter-spacing: 1.2px;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.45);
}
.azb-up-day-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    flex-shrink: 0;
}
.azb-up-day-count i { color: #FFD700 !important; }

/* --- BODY del día --- */
.azb-up-day-matches {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #fafbfd 0%, #f4f7fb 100%);
}

/* ============ MATCH CARD ============ */
.azb-up-match {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    border: 1.5px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(10, 26, 43, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}
.azb-up-match::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF6B00, #E05A00);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.azb-up-match:hover {
    transform: translateY(-3px);
    border-color: #FF6B00;
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.15), 0 2px 8px rgba(255, 107, 0, 0.08);
}
.azb-up-match:hover::before { opacity: 1; }

/* Próximo partido — acento dorado */
.azb-up-match.azb-up-next {
    border-color: #FF6B00;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.14), transparent 45%),
        linear-gradient(180deg, #fffdf5 0%, #fff8e7 100%);
    box-shadow: 0 8px 28px rgba(255, 107, 0, 0.18), 0 0 0 1px rgba(255, 107, 0, 0.15);
}
.azb-up-match.azb-up-next::before {
    opacity: 1;
    width: 5px;
}
.azb-up-next-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    color: #fff !important;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    padding: 6px 14px 6px 18px;
    border-bottom-left-radius: 14px;
    border-top-right-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: -3px 3px 12px rgba(255, 107, 0, 0.35);
    z-index: 2;
}
.azb-up-next-ribbon i {
    color: #FFD700 !important;
    font-size: 0.7rem;
}

/* --- BADGE de HORA --- */
.azb-up-match-time {
    position: absolute;
    top: 14px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.28);
    z-index: 2;
    min-width: 64px;
    border: 2px solid #fff;
}
.azb-up-match.azb-up-next .azb-up-match-time {
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.45);
}
.azb-up-time-clock {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -0.3px;
    line-height: 1;
}
.azb-up-time-label {
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-top: 3px;
}

/* --- FILA DE EQUIPOS --- */
.azb-up-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding-left: 82px;
    padding-top: 6px;
}
.azb-up-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.azb-up-team.azb-up-team-away {
    flex-direction: row-reverse;
    text-align: right;
}
.azb-up-team-info {
    min-width: 0;
    flex: 1;
}
.azb-up-team-away .azb-up-team-info { text-align: right; }
.azb-up-team-name {
    font-weight: 900;
    font-size: 0.92rem;
    color: #0a1f3d !important;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}
.azb-up-team-role {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8 !important;
    margin-top: 3px;
}

/* --- LOGO del equipo --- */
.azb-up-team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #0047AB, #071528);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.azb-up-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- VS central --- */
.azb-up-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.azb-up-vs-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52);
    color: #FFD700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(10, 31, 61, 0.28);
}
.azb-up-match.azb-up-next .azb-up-vs-inner {
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.45);
}

/* --- META: Jornada + Lugar --- */
.azb-up-match-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 82px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.azb-up-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569 !important;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.azb-up-meta-item i {
    color: #FF6B00 !important;
    font-size: 0.68rem;
    flex-shrink: 0;
}
.azb-up-meta-jornada {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.04));
    border-color: rgba(255, 107, 0, 0.3);
    color: #E05A00 !important;
}
.azb-up-meta-jornada i { color: #E05A00 !important; }

/* ============ EMPTY STATE ============ */
.azb-up-empty {
    text-align: center;
    padding: 48px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbfd, #eff3f8);
    border: 2px dashed #cbd5e1;
}
.azb-up-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #64748b !important;
}
.azb-up-empty-title {
    font-weight: 900;
    font-size: 1.05rem;
    color: #0a1f3d !important;
    margin-bottom: 6px;
}
.azb-up-empty-text {
    font-size: 0.85rem;
    color: #64748b !important;
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE — MÓVILES
   ============================================ */
@media (max-width: 640px) {
    .azb-upcoming-list { gap: 14px; }
    .azb-up-day { border-radius: 16px; }
    .azb-up-day-head { padding: 14px 16px; gap: 8px; }
    .azb-up-day-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
    .azb-up-day-name { font-size: 1rem; }
    .azb-up-day-date { font-size: 0.72rem; }
    .azb-up-day-count { padding: 6px 12px; font-size: 0.68rem; }
    .azb-up-day-matches { padding: 12px; gap: 10px; }

    .azb-up-match { padding: 14px; gap: 10px; }
    .azb-up-match-time {
        position: static;
        align-self: flex-start;
        flex-direction: row;
        padding: 5px 12px;
        gap: 6px;
        min-width: auto;
        margin-bottom: 4px;
        border-width: 2px;
    }
    .azb-up-time-clock { font-size: 0.85rem; }
    .azb-up-time-label { margin-top: 0; font-size: 0.55rem; letter-spacing: 0.8px; }

    .azb-up-match-teams {
        padding-left: 0;
        padding-top: 0;
        gap: 6px;
    }
    .azb-up-team-logo { width: 40px; height: 40px; font-size: 0.8rem; border-width: 2px; }
    .azb-up-team-name { font-size: 0.8rem; }
    .azb-up-team-role { font-size: 0.52rem; letter-spacing: 0.8px; }
    .azb-up-vs-inner { width: 36px; height: 36px; font-size: 0.68rem; border-width: 2px; }
    .azb-up-match-meta { padding-left: 0; padding-top: 10px; gap: 6px; }
    .azb-up-meta-item { font-size: 0.62rem; padding: 4px 10px; }
    .azb-up-next-ribbon { font-size: 0.55rem; padding: 5px 12px 5px 15px; }
    .azb-up-empty { padding: 36px 16px; }
    .azb-up-empty-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .azb-up-empty-title { font-size: 0.95rem; }
    .azb-up-empty-text { font-size: 0.78rem; }
}

@media (max-width: 400px) {
    .azb-up-day-head { padding: 12px 14px; }
    .azb-up-day-icon { width: 38px; height: 38px; font-size: 0.9rem; border-radius: 10px; }
    .azb-up-day-name { font-size: 0.92rem; }
    .azb-up-day-date { font-size: 0.66rem; }
    .azb-up-day-tag { font-size: 0.55rem; padding: 2px 8px; }
    .azb-up-day-count { font-size: 0.62rem; padding: 5px 10px; }
    .azb-up-day-matches { padding: 10px; gap: 8px; }
    .azb-up-match { padding: 12px; border-radius: 14px; gap: 8px; }
    .azb-up-team-logo { width: 36px; height: 36px; font-size: 0.72rem; border-width: 2px; }
    .azb-up-team-name { font-size: 0.74rem; }
    .azb-up-vs-inner { width: 32px; height: 32px; font-size: 0.6rem; letter-spacing: 0.4px; }
    .azb-up-meta-item { font-size: 0.58rem; padding: 3px 8px; gap: 4px; }
    .azb-up-match-time { padding: 4px 10px; }
    .azb-up-time-clock { font-size: 0.78rem; }
}

/* Efecto hover suave */
.azb-up-match::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.05), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.azb-up-match:hover::after { opacity: 1; }


/* ================================================================
   🏆 ÚLTIMOS RESULTADOS — PREMIUM REDESIGN v2
   AZB DATA © 2026 · Dashboard LIGA PREMIER
   ================================================================ */

.azb-res-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============ BANNER DE JORNADA ============ */
.azb-res-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.22), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0, 180, 255, 0.12), transparent 55%),
        linear-gradient(135deg, #071528 0%, #0f2a52 55%, #0047AB 100%);
    color: #fff !important;
    box-shadow: 0 12px 36px rgba(7, 21, 40, 0.28);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.azb-res-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FFD700, #FF6B00);
    background-size: 200% 100%;
    animation: azb-shimmer 3s infinite linear;
    z-index: 2;
}
@keyframes azb-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.azb-res-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}
.azb-res-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF6B00, #E05A00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.azb-res-banner-info { min-width: 0; }
.azb-res-banner-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #071528 !important;
    font-size: 0.6rem;
    font-weight: 900;
    border-radius: 20px;
    letter-spacing: 1.3px;
    margin-bottom: 6px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.45);
}
.azb-res-banner-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    line-height: 1.15;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 4px;
}
.azb-res-banner-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.azb-res-banner-subtitle i {
    color: #FFD700 !important;
    margin-right: 4px;
}

/* Mini stats del banner */
.azb-res-banner-stats {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.azb-res-banner-stat {
    text-align: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
    min-width: 62px;
}
.azb-res-banner-stat-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFD700 !important;
    line-height: 1;
    letter-spacing: -0.3px;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}
.azb-res-banner-stat-label {
    font-size: 0.52rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ============ MATCH CARD ============ */
.azb-res-match {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1.5px solid #eef2f7;
    box-shadow: 0 3px 14px rgba(10, 26, 43, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}
.azb-res-match::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--winner-color, #FF6B00);
    border-radius: 18px 0 0 18px;
}
.azb-res-match:hover {
    transform: translateY(-4px);
    border-color: var(--winner-color, #FF6B00);
    box-shadow: 0 14px 34px rgba(10, 26, 43, 0.12);
}

/* --- HEAD --- */
.azb-res-match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}
.azb-res-match-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569 !important;
    flex-wrap: wrap;
}
.azb-res-match-date > i {
    color: #FF6B00 !important;
    font-size: 0.85rem;
}
.azb-res-match-date > span:first-of-type {
    text-transform: capitalize;
    letter-spacing: 0.2px;
}
.azb-res-match-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52);
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}
.azb-res-match-time i { color: #FFD700 !important; }

.azb-res-match-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.azb-res-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.azb-res-badge-default {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff !important;
    animation: azb-pulse-danger 2s infinite;
}
@keyframes azb-pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
    50%      { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}
.azb-res-badge-draw {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.35);
}
.azb-res-badge-tight {
    background: linear-gradient(135deg, #E05A00, #B04500);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(224, 90, 0, 0.35);
}

/* --- BODY: EQUIPOS + MARCADOR --- */
.azb-res-match-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-left: 8px;
}
.azb-res-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.azb-res-team.azb-res-team-away {
    flex-direction: row-reverse;
    text-align: right;
}
.azb-res-team-info {
    min-width: 0;
    flex: 1;
}
.azb-res-team-away .azb-res-team-info { text-align: right; }
.azb-res-team-name {
    font-weight: 900;
    font-size: 0.95rem;
    color: #0a1f3d !important;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    transition: color 0.25s ease;
}
.azb-res-team.azb-res-winner .azb-res-team-name {
    color: #16a34a !important;
}
.azb-res-team-role {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    color: #94a3b8 !important;
    margin-top: 3px;
}
.azb-res-team.azb-res-winner .azb-res-team-role {
    color: #16a34a !important;
    opacity: 0.75;
}

/* Logo del equipo */
.azb-res-team-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #0047AB, #071528);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.25s ease;
}
.azb-res-team.azb-res-winner .azb-res-team-logo {
    transform: scale(1.05);
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4), 0 0 0 3px rgba(255, 215, 0, 0.25);
}
.azb-res-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- MARCADOR --- */
.azb-res-score {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52);
    box-shadow: 0 6px 18px rgba(10, 31, 61, 0.3);
    flex-shrink: 0;
    border: 2px solid #fff;
    position: relative;
}
.azb-res-score.azb-res-score-draw {
    background: linear-gradient(135deg, #d68910, #b45309);
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.35);
}
.azb-res-score-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}
.azb-res-score-num {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: -1px;
    transition: color 0.25s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.azb-res-score-winner .azb-res-score-num {
    color: #FFD700 !important;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.azb-res-score-sep {
    font-size: 1.1rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 0 2px;
}

/* --- FOOT --- */
.azb-res-match-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}
.azb-res-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.azb-res-winner-badge i { color: #FFD700 !important; }

.azb-res-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    font-size: 0.66rem;
    font-weight: 700;
    color: #78350f !important;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.azb-res-note i { color: #d97706 !important; }
.azb-res-note-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #dc2626;
    color: #991b1b !important;
}
.azb-res-note-danger i { color: #dc2626 !important; }

.azb-res-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.66rem;
    font-weight: 700;
    color: #475569 !important;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.azb-res-location i { color: #FF6B00 !important; }

/* ============ EMPTY STATE ============ */
.azb-res-empty {
    text-align: center;
    padding: 48px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbfd, #eff3f8);
    border: 2px dashed #cbd5e1;
}
.azb-res-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #64748b !important;
}
.azb-res-empty-title {
    font-weight: 900;
    font-size: 1.05rem;
    color: #0a1f3d !important;
    margin-bottom: 6px;
}
.azb-res-empty-text {
    font-size: 0.85rem;
    color: #64748b !important;
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE — MÓVILES
   ============================================ */
@media (max-width: 768px) {
    .azb-res-banner {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .azb-res-banner-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; }
    .azb-res-banner-title { font-size: 1.25rem; }
    .azb-res-banner-subtitle { font-size: 0.72rem; }
    .azb-res-banner-stats { width: 100%; justify-content: space-between; }
    .azb-res-banner-stat { flex: 1; }
}

@media (max-width: 640px) {
    .azb-res-list { gap: 14px; }
    .azb-res-match { padding: 14px 12px; border-radius: 16px; gap: 12px; }
    .azb-res-match::before { width: 4px; border-radius: 16px 0 0 16px; }
    .azb-res-match-body { gap: 6px; padding-left: 4px; }
    .azb-res-team-logo { width: 42px; height: 42px; font-size: 0.8rem; border-width: 2px; }
    .azb-res-team-name { font-size: 0.82rem; }
    .azb-res-team-role { font-size: 0.52rem; letter-spacing: 0.8px; }
    .azb-res-score { padding: 8px 12px; gap: 4px; border-radius: 12px; }
    .azb-res-score-num { font-size: 1.5rem; }
    .azb-res-score-side { min-width: 32px; }
    .azb-res-score-sep { font-size: 0.9rem; }
    .azb-res-match-foot { padding-left: 4px; padding-top: 10px; gap: 6px; }
    .azb-res-winner-badge { font-size: 0.62rem; padding: 4px 10px; }
    .azb-res-note, .azb-res-location { font-size: 0.62rem; padding: 3px 10px; }
    .azb-res-badge { font-size: 0.58rem; padding: 3px 9px; }
    .azb-res-match-date { font-size: 0.7rem; gap: 6px; }
    .azb-res-match-time { font-size: 0.62rem; padding: 2px 8px; }
}

@media (max-width: 480px) {
    .azb-res-banner { padding: 14px 16px; }
    .azb-res-banner-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
    .azb-res-banner-title { font-size: 1.1rem; }
    .azb-res-banner-tag { font-size: 0.55rem; padding: 2px 10px; letter-spacing: 1px; }
    .azb-res-banner-subtitle { font-size: 0.68rem; }
    .azb-res-banner-stat { padding: 6px 10px; min-width: auto; }
    .azb-res-banner-stat-value { font-size: 1rem; }
    .azb-res-banner-stat-label { font-size: 0.48rem; }

    /* En móviles: apilar equipos y score */
    .azb-res-match-body {
        grid-template-columns: 1fr auto 1fr;
        gap: 4px;
    }
    .azb-res-team { gap: 8px; }
    .azb-res-team-name { font-size: 0.75rem; }
    .azb-res-team-logo { width: 36px; height: 36px; font-size: 0.7rem; }
    .azb-res-score { padding: 6px 10px; }
    .azb-res-score-num { font-size: 1.35rem; }
    .azb-res-score-side { min-width: 26px; }
    .azb-res-match-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .azb-res-winner-badge,
    .azb-res-note,
    .azb-res-location {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .azb-res-banner-title { font-size: 0.98rem; }
    .azb-res-banner-subtitle { font-size: 0.62rem; }
    .azb-res-banner-stat-value { font-size: 0.88rem; }
    .azb-res-team-name { font-size: 0.7rem; }
    .azb-res-team-logo { width: 32px; height: 32px; font-size: 0.62rem; }
    .azb-res-score-num { font-size: 1.15rem; }
    .azb-res-score-side { min-width: 22px; }
    .azb-res-match { padding: 12px 10px; }
    .azb-res-match-head { gap: 6px; }
    .azb-res-match-date { font-size: 0.65rem; }
}


/* ================================================================
   🚑 FIX DEFINITIVO — LIGA PREMIER · SIN SUPERPOSICIONES
   Sobrescribe TODO con !important. AZB DATA © 2026
   ================================================================ */

/* ============================================================
   A) PRÓXIMOS PARTIDOS — Layout vertical estricto
   ============================================================ */

/* Matar toda posición absoluta heredada */
.azb-up-match-time,
.azb-up-match .azb-up-match-time,
.azb-up-match.azb-up-next .azb-up-match-time {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}
.azb-up-next-ribbon,
.azb-up-match .azb-up-next-ribbon {
    display: none !important;
}

/* Tarjeta del partido */
.azb-up-match {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header: hora + jornada + PRÓXIMO */
.azb-up-match-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
}

.azb-up-match-time {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    min-width: 0 !important;
    width: auto !important;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52) !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.25) !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.azb-up-match.azb-up-next .azb-up-match-time {
    background: linear-gradient(135deg, #FF6B00, #E05A00) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.45) !important;
}
.azb-up-match-time i {
    color: #FFD700 !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
}
.azb-up-match.azb-up-next .azb-up-match-time i { color: #fff !important; }
.azb-up-time-clock { color: inherit !important; font-weight: 900 !important; line-height: 1 !important; }
.azb-up-time-label { display: none !important; }

.azb-up-match-jornada {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.04)) !important;
    border: 1px solid rgba(255,107,0,0.3) !important;
    color: #E05A00 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
.azb-up-match-jornada i { color: #E05A00 !important; font-size: 0.7rem !important; line-height: 1 !important; }

.azb-up-next-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #FF6B00, #E05A00) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35) !important;
}
.azb-up-next-badge i { color: #FFD700 !important; font-size: 0.72rem !important; line-height: 1 !important; }

/* Equipos: grid de 3 columnas sin padding */
.azb-up-match-teams {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: static !important;
}

.azb-up-team {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    position: static !important;
}
.azb-up-team.azb-up-team-away {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

.azb-up-team-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-weight: 900 !important;
    font-size: 0.92rem !important;
    color: #0a1f3d !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
    letter-spacing: -0.2px !important;
}
.azb-up-team-role { display: none !important; }

.azb-up-team-logo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0047AB, #071528) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    position: static !important;
}
.azb-up-team-logo img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

.azb-up-vs { display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
.azb-up-vs-inner {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52) !important;
    color: #FFD700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.8px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 14px rgba(10, 31, 61, 0.28) !important;
}
.azb-up-match.azb-up-next .azb-up-vs-inner {
    background: linear-gradient(135deg, #FF6B00, #E05A00) !important;
    color: #fff !important;
}

/* Meta */
.azb-up-match-meta {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 12px 0 0 0 !important;
    margin: 0 !important;
    border-top: 1px dashed #e2e8f0 !important;
    width: 100% !important;
}
.azb-up-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.azb-up-meta-item i { color: #FF6B00 !important; font-size: 0.68rem !important; flex-shrink: 0 !important; }

@media (max-width: 640px) {
    .azb-up-match { padding: 12px !important; gap: 10px !important; }
    .azb-up-match-time { padding: 5px 11px !important; font-size: 0.75rem !important; }
    .azb-up-match-jornada { padding: 5px 10px !important; font-size: 0.62rem !important; }
    .azb-up-next-badge { padding: 5px 10px !important; font-size: 0.58rem !important; }
    .azb-up-team-logo { width: 40px !important; height: 40px !important; font-size: 0.78rem !important; }
    .azb-up-team-name { font-size: 0.82rem !important; }
    .azb-up-vs-inner { width: 34px !important; height: 34px !important; font-size: 0.62rem !important; }
    .azb-up-match-teams { gap: 6px !important; }
}
@media (max-width: 400px) {
    .azb-up-match { padding: 10px !important; gap: 8px !important; }
    .azb-up-team-logo { width: 34px !important; height: 34px !important; font-size: 0.68rem !important; }
    .azb-up-team-name { font-size: 0.76rem !important; }
    .azb-up-vs-inner { width: 30px !important; height: 30px !important; font-size: 0.58rem !important; }
    .azb-up-match-time { padding: 4px 9px !important; font-size: 0.7rem !important; }
    .azb-up-match-jornada { padding: 4px 8px !important; font-size: 0.58rem !important; }
}

/* ============================================================
   B) ÚLTIMOS RESULTADOS — Layout vertical estricto
   ============================================================ */

.azb-res-match {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.azb-res-match-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.azb-res-match-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    flex-wrap: wrap !important;
}
.azb-res-match-date > i { color: #FF6B00 !important; font-size: 0.85rem !important; }

.azb-res-match-time {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 10px !important;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52) !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
}
.azb-res-match-time i { color: #FFD700 !important; }

.azb-res-match-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 0 !important;
    width: 100% !important;
}

.azb-res-team {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}
.azb-res-team.azb-res-team-away {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

.azb-res-team-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.azb-res-team-away .azb-res-team-info { text-align: right !important; }

.azb-res-team-name {
    flex: 1 1 auto !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    color: #0a1f3d !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
    letter-spacing: -0.2px !important;
}
.azb-res-team.azb-res-winner .azb-res-team-name { color: #16a34a !important; }
.azb-res-team-role { display: none !important; }

.azb-res-team-logo {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0047AB, #071528) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
.azb-res-team.azb-res-winner .azb-res-team-logo {
    border-color: #FFD700 !important;
    box-shadow: 0 6px 20px rgba(255,215,0,0.4), 0 0 0 3px rgba(255,215,0,0.25) !important;
}
.azb-res-team-logo img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

.azb-res-score {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0a1f3d, #0f2a52) !important;
    box-shadow: 0 6px 18px rgba(10, 31, 61, 0.3) !important;
    flex-shrink: 0 !important;
    border: 2px solid #fff !important;
}
.azb-res-score.azb-res-score-draw {
    background: linear-gradient(135deg, #d68910, #b45309) !important;
}
.azb-res-score-side {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
}
.azb-res-score-num {
    font-size: 1.9rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: rgba(255,255,255,0.75) !important;
    letter-spacing: -1px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}
.azb-res-score-winner .azb-res-score-num {
    color: #FFD700 !important;
    text-shadow: 0 0 14px rgba(255,215,0,0.55), 0 2px 6px rgba(0,0,0,0.4) !important;
}
.azb-res-score-sep {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: rgba(255,255,255,0.4) !important;
    padding: 0 2px !important;
}

.azb-res-match-foot {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 0 0 0 !important;
    border-top: 1px dashed #e2e8f0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    .azb-res-match { padding: 14px 12px !important; gap: 12px !important; }
    .azb-res-team-logo { width: 42px !important; height: 42px !important; font-size: 0.8rem !important; }
    .azb-res-team-name { font-size: 0.82rem !important; }
    .azb-res-score { padding: 8px 12px !important; }
    .azb-res-score-num { font-size: 1.5rem !important; }
    .azb-res-score-side { min-width: 32px !important; }
}
@media (max-width: 480px) {
    .azb-res-team { gap: 8px !important; }
    .azb-res-team-name { font-size: 0.78rem !important; }
    .azb-res-team-logo { width: 36px !important; height: 36px !important; }
    .azb-res-score-num { font-size: 1.35rem !important; }
    .azb-res-match-foot {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .azb-res-winner-badge,
    .azb-res-note,
    .azb-res-location {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ============================================================
   C) LÍDERES DEL DASHBOARD — Layout limpio sin superposición
   ============================================================ */

.azb-leaders-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.azb-leader-card {
    display: block !important;
    background: #fff !important;
    border-radius: 18px !important;
    padding: 14px 14px 10px !important;
    box-shadow: 0 4px 18px rgba(10, 26, 43, 0.06) !important;
    border: 1.5px solid #eef2f7 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.azb-leader-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 2px dashed #e2e8f0 !important;
}

.azb-leader-head-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
}

.azb-leader-head-title {
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    color: #0a1f3d !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

.azb-leader-row {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.azb-leader-row:last-child { border-bottom: none !important; }
.azb-leader-row:hover {
    background: #f0f7ff !important;
    transform: translateX(3px) !important;
}

.azb-leader-rank {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
}

.azb-leader-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.azb-leader-team-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45) !important;
}
.azb-leader-team-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.azb-leader-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.azb-leader-name {
    font-weight: 800 !important;
    font-size: 0.86rem !important;
    color: #0a1f3d !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.azb-leader-team {
    font-size: 0.68rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.azb-leader-value {
    text-align: right !important;
    flex-shrink: 0 !important;
    min-width: 46px !important;
}
.azb-leader-value-num {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.5px !important;
}
.azb-leader-value-label {
    font-size: 0.55rem !important;
    font-weight: 900 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.8px !important;
    margin-top: 3px !important;
    text-transform: uppercase !important;
}

@media (max-width: 480px) {
    .azb-leaders-grid { gap: 12px !important; }
    .azb-leader-team-logo { width: 34px !important; height: 34px !important; font-size: 0.65rem !important; }
    .azb-leader-name { font-size: 0.8rem !important; }
    .azb-leader-team { font-size: 0.62rem !important; }
    .azb-leader-value-num { font-size: 1rem !important; }
    .azb-leader-rank { width: 28px !important; height: 28px !important; font-size: 0.78rem !important; }
    .azb-leader-row { grid-template-columns: 28px minmax(0, 1fr) auto !important; gap: 8px !important; padding: 6px 4px !important; }
}