/* ==========================================================================
   PERAMOBET - DISEÑO VISUAL PREMIUM ESTILO BETMINES
   Color Palette: Dark Onyx, Emerald Green, Electric Cyan, Radiant Gold
   ========================================================================== */

@font-face {
    font-family: 'CountryFlags';
    src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2') format('woff2');
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0060-E007F;
    font-display: swap;
}

:root {
    --bg-main: #090d16;
    --bg-card: #111827;
    --bg-card-hover: #172033;
    --bg-card-glass: rgba(17, 24, 39, 0.85);
    --border-color: #1e293b;
    --border-light: #2d3748;
    --border-glow: rgba(0, 230, 118, 0.3);

    --primary: #00e676;
    --primary-rgb: 0, 230, 118;
    --primary-glow: rgba(0, 230, 118, 0.25);

    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.2);

    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.25);

    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-sans: 'Inter', 'CountryFlags', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 230, 118, 0.15);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar estilizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   NAVBAR SUPERIOR
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.mobile-nav-wrapper {
    display: none;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.brand-text {
    display: none !important;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff 40%, #00e676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.68rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-item a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active a {
    color: var(--primary);
    background: rgba(0, 230, 118, 0.1);
    font-weight: 600;
}

.nav-item.vip a {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-item.vip a:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px var(--gold-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0088cc, #00b0ff);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.45);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.48rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #10b981;
    color: #022c22;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.user-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-admin {
    background: #dc2626;
    color: #fff;
}

.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
}

.badge-free {
    background: #334155;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   BANNER SUPERIOR Y TICKER ESTILO BETMINES
   -------------------------------------------------------------------------- */
.top-ticker {
    background: #0d131f;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
}

.ticker-content {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.825rem;
}

.ticker-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ticker-stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.ticker-stat-value {
    color: var(--primary);
    font-weight: 700;
}

.date-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Widget Selector de Fecha Histórico estilo BetMines / Flashscore */
.date-navigator-widget {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.3rem;
    position: relative;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.date-nav-arrow {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.date-nav-arrow:hover:not(:disabled) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.date-nav-arrow:disabled {
    opacity: 0.22;
    cursor: not-allowed;
}

.date-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.date-display-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
}

.date-display-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.date-display-btn.is-open {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.4);
}

.date-display-btn .calendar-icon {
    color: var(--text-main);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.date-display-btn:hover .calendar-icon {
    transform: scale(1.08);
}

.date-label-text {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-family: var(--font-sans);
}

/* Menú flotante lista desplegable */
.date-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.35rem;
    min-width: 250px;
    box-shadow: 0 14px 35px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -6px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.date-dropdown-header {
    padding: 0.4rem 0.6rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-main);
    border: 1px solid transparent;
}

.date-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.date-dropdown-item.selected {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.35);
}

.date-dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.date-dropdown-item.selected .date-dropdown-item-left {
    color: var(--primary);
}

.date-dropdown-item-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.date-dropdown-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.badge-today {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-tomorrow {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-yesterday {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-past {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.date-dropdown-check {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
}

.date-selector-bar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-card);
    padding: 0.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.date-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.date-btn:hover {
    color: var(--text-main);
}

.date-btn.active {
    background: var(--primary);
    color: #000;
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.main-wrapper {
    max-width: 1350px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

/* Controles de filtro y búsqueda */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-pills-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-selects-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    border-color: var(--border-light);
    color: var(--text-main);
}

.pill-btn.active {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    width: 260px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.825rem;
    outline: none;
    width: 100%;
    margin-left: 0.4rem;
}

.search-box input::placeholder {
    color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   GRID DE PARTIDOS ESTILO BETMINES
   -------------------------------------------------------------------------- */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 40;
    overflow: visible;
}

.match-card.is-value {
    border-left: 4px solid var(--primary);
}

.match-card.is-safe {
    border-left: 4px solid var(--cyan);
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
}

.league-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 500;
}

.league-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-header-datetime {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.18rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.match-header-datetime:hover,
.match-header-datetime.clickable-match-time:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
    transform: translateY(-1px);
}

.match-header-datetime:active {
    transform: translateY(0);
}

/* Bombilla Amarilla Centrada entre la Hora y el Estado / Finalizado */
.match-header-bulb-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.35rem;
}

.match-header-bulb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    padding: 0;
    outline: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-header-bulb-btn:active {
    transform: scale(0.95);
}

/* Modal de Insight Contextual, Fatiga y Marcador Esperado */
.insight-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.insight-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.insight-modal-card {
    background: linear-gradient(145deg, #131d33 0%, #0c1222 100%);
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.25);
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.insight-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #facc15;
}

.insight-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.insight-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.insight-traffic-banner {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 0.95rem;
}

.insight-traffic-banner.RED {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.insight-traffic-banner.YELLOW {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.insight-traffic-banner.GREEN {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.insight-score-banner {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

.insight-score-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.insight-flag-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    border-left: 4px solid #64748b;
}

.insight-flag-box.RED {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.07);
}

.insight-flag-box.YELLOW, .insight-flag-box.ORANGE {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.07);
}

.insight-flag-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.insight-flag-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.45;
}

.insight-flag-action {
    font-size: 0.74rem;
    color: #38bdf8;
    font-weight: 700;
    margin-top: 0.35rem;
}

.match-header-status-col,
.hero-status-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Modal Hero Header Row */
.match-hero-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.6rem;
    gap: 0.75rem;
}

.hero-league-col {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #38bdf8;
    font-weight: 700;
}

.hero-league-col span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* En el modal de detalle del partido, estilo destacado para la fecha completa */
.match-hero-header-row .match-header-datetime {
    font-size: 0.82rem;
    padding: 0.25rem 0.8rem;
    letter-spacing: 0.5px;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
    .match-header-datetime {
        font-size: 0.68rem;
        padding: 0.15rem 0.4rem;
        letter-spacing: 0.2px;
    }
}

.league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.match-status {
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.status-live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

.status-ft {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.status-ns {
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
}

/* Equipos y marcador */
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 0.85rem 0;
    gap: 0.4rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
}

.team.away {
    justify-content: flex-end;
    text-align: right;
}

.team-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    position: relative;
}

.team-info-col.away {
    align-items: flex-end;
    text-align: right;
}

.team-red-badge-container {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

.team-red-badge-container.away {
    left: auto;
    right: 0;
    justify-content: flex-end;
}

.team-red-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.team-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ==========================================================================
   MEJORA HOJA DE EQUIPOS: POSICIÓN EN TABLA Y ÚLTIMOS 5 PARTIDOS CON TOOLTIP
   ========================================================================== */

/* Contenedor fila de nombre y posición */
.team-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.team-title-row.away {
    justify-content: flex-end;
}

.team-title-row .team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Columna del escudo del equipo con el número de posición justo arriba */
.team-logo-col {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    min-width: 32px;
    position: relative;
}

.team-logo-col.away {
    align-items: center;
}

.team-logo-col:empty {
    display: none !important;
}

/* Badge de posición en la tabla: círculo relleno verde con número blanco justo arriba del escudo */
.team-standing-pos {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    border-radius: 50% !important;
    background-color: #10b981 !important; /* Círculo relleno verde */
    background: #10b981 !important;
    color: #ffffff !important; /* Número en blanco */
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    letter-spacing: -0.3px !important;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(16, 185, 129, 0.6) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    user-select: none !important;
    transition: transform 0.15s ease !important;
    vertical-align: middle !important;
}

.team-standing-pos:hover {
    transform: scale(1.2) !important;
}

/* Badge distintivo de Cabeza de Serie (Seed) para Tenis */
.tennis-seed-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-size: 0.63rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(251, 191, 36, 0.1) !important;
    transition: all 0.15s ease !important;
    cursor: help !important;
    max-width: 100% !important;
}

.tennis-seed-badge:hover {
    background: rgba(251, 191, 36, 0.24) !important;
    border-color: rgba(251, 191, 36, 0.7) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
}

/* Badge de Cabeza de Serie (Seed) ubicado debajo de la foto del tenista */
.tennis-seed-badge-under {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background: rgba(251, 191, 36, 0.22) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.6) !important;
    padding: 0 4px !important;
    border-radius: 4px !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.25) !important;
    letter-spacing: 0.2px !important;
    margin-top: 1px !important;
}

/* Indicadores de Ventaja (ADV), Deuce y Puntos en Vivo para Tenis */
.tennis-live-pts-badge {
    background: rgba(0, 230, 118, 0.16);
    border: 1px solid rgba(0, 230, 118, 0.45);
    color: #00e676;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.22);
    white-space: nowrap;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.tennis-live-pts-badge.adv-p1,
.tennis-live-pts-badge.adv-p2 {
    background: rgba(251, 191, 36, 0.18) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3) !important;
    animation: tennisAdvPulse 1.8s ease-in-out infinite;
}

.tennis-live-pts-badge.deuce {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.22) !important;
}

.tennis-adv-tag {
    background: #fbbf24 !important;
    color: #0f172a !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-weight: 900 !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.tennis-adv-pill {
    background: rgba(251, 191, 36, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
}

.tennis-deuce-pill {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.5);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
}

@keyframes tennisAdvPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
    }
    50% {
        box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
    }
}

/* Botón A verde de Rushbet para Tenis y Básquetbol */
.rushbet-a-pill-btn {
    background: #00e676 !important;
    color: #022c22 !important;
    font-weight: 900 !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.7) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.rushbet-a-pill-btn:hover {
    transform: scale(1.18) !important;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.9) !important;
}

.rushbet-a-badge-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15) !important;
}

/* Alerta visual de Blowout (Hándicap >= 25 pts) en Naranja para descartar el partido */
.rushbet-a-badge-wrap.blowout-risk-wrap {
    background: rgba(249, 115, 22, 0.18) !important;
    border: 1.5px solid #f97316 !important;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4) !important;
}

.rushbet-a-badge-wrap.blowout-risk-wrap .rushbet-a-pill-btn {
    background: #f97316 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.85) !important;
}

.rushbet-a-badge-wrap.blowout-risk-wrap .rushbet-a-pill-btn:hover {
    transform: scale(1.18) !important;
    box-shadow: 0 0 14px rgba(249, 115, 22, 1) !important;
}

.rushbet-a-badge-wrap.blowout-risk-wrap .rushbet-pts-label {
    color: #ffedd5 !important;
    font-weight: 900 !important;
}

.rushbet-a-badge-wrap.blowout-risk-wrap .rushbet-time-label {
    color: #fb923c !important;
    font-weight: 900 !important;
}

/* Resaltado del Ultra Favorito en Tenis */
.tennis-ultra-fav-name {
    color: #38bdf8 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

.ultra-fav-badge {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1.2 !important;
}

/* Fila de puntos de los últimos 5 partidos */
.team-form-dots-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    position: relative;
    flex-shrink: 0;
}

.team-form-dots-row.away {
    justify-content: flex-end;
}

.team-match-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
}

.team-match-dot:hover {
    transform: scale(1.4);
    z-index: 100;
}

/* Punto verde para ganado */
.team-match-dot.dot-w {
    background: #00e676;
    box-shadow: 0 0 5px rgba(0, 230, 118, 0.6);
}

/* Punto rojo para perdido */
.team-match-dot.dot-l {
    background: #ef4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.6);
}

/* Punto blanco para empate */
.team-match-dot.dot-d {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Tooltip tag flotante con datos del partido (rival, marcador, fecha y resultado) */
.form-dot-tooltip {
    position: absolute;
    top: calc(100% + 7px);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-2px);
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 10px rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.18s;
    z-index: 9999;
    min-width: 150px;
    max-width: 240px;
}

.team-match-dot:hover .form-dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.form-dot-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.98) transparent;
}

/* Ajuste inteligente para el extremo izquierdo (local): expande hacia adentro de la tarjeta */
.form-dot-tooltip.align-edge-left {
    left: -6px !important;
    right: auto !important;
    transform: translateY(-2px) !important;
}
.team-match-dot:hover .form-dot-tooltip.align-edge-left {
    transform: translateY(0) !important;
}
.form-dot-tooltip.align-edge-left::after {
    left: 11px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Ajuste inteligente para el extremo derecho (visitante): expande hacia adentro de la tarjeta */
.form-dot-tooltip.align-edge-right {
    left: auto !important;
    right: -6px !important;
    transform: translateY(-2px) !important;
}
.team-match-dot:hover .form-dot-tooltip.align-edge-right {
    transform: translateY(0) !important;
}
.form-dot-tooltip.align-edge-right::after {
    left: auto !important;
    right: 11px !important;
    transform: translateX(50%) !important;
}

.form-dot-tooltip .tooltip-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.form-dot-tooltip .tooltip-res-tag {
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.form-dot-tooltip .tooltip-res-tag.dot-w {
    color: #00e676;
}
.form-dot-tooltip .tooltip-res-tag.dot-l {
    color: #ef4444;
}
.form-dot-tooltip .tooltip-res-tag.dot-d {
    color: #ffffff;
}

.form-dot-tooltip .tooltip-score {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

.form-dot-tooltip .tooltip-match-title {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-dot-tooltip .tooltip-date {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.45rem;
    min-width: 52px;
    flex-shrink: 0;
    white-space: nowrap;
}

.score-main {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.score-time {
    font-size: 0.75rem;
    color: var(--text-subtle);
    font-weight: 500;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   MEDIDOR DE PROBABILIDAD VISUAL BETMINES (1 - X - 2)
   -------------------------------------------------------------------------- */
.prob-meter-container {
    margin: 0.5rem 0;
}

.prob-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.prob-meter-bar {
    height: 8px;
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.bar-home {
    background: var(--primary);
    transition: width 0.4s ease;
}

.bar-draw {
    background: #64748b;
    transition: width 0.4s ease;
}

.bar-away {
    background: var(--cyan);
    transition: width 0.4s ease;
}

/* Cuotas (Odds) Chips */
.odds-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.odd-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.odd-label {
    color: var(--text-subtle);
    font-weight: 500;
}

.odd-val {
    color: #fff;
    font-weight: 700;
}

/* Chip de cuota cumplida / acertada (ej. Más de 2.5 Goles cumplido) */
.odd-chip.chip-hit {
    background: rgba(0, 230, 118, 0.15) !important;
    border-color: rgba(0, 230, 118, 0.45) !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.odd-chip.chip-hit .odd-label {
    color: #00e676 !important;
    font-weight: 700;
}

.odd-chip.chip-hit .odd-val {
    color: #00e676 !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

/* Pronóstico y badges */
.match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    max-width: 100%;
    white-space: nowrap;
    min-width: 0;
    background: rgba(0, 230, 118, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.tip-badge strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tip-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Tip Acertado (Verde) */
.tip-badge.tip-hit {
    background: rgba(0, 230, 118, 0.15) !important;
    color: #00e676 !important;
    border: 1px solid rgba(0, 230, 118, 0.45) !important;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

/* Tip No Acertado / Fallado (Rojo) */
.tip-badge.tip-missed {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* Tip Pendiente / Por Jugar (Azul Cian) */
.tip-badge.tip-pending {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.tip-odd-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.70rem;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.tip-prob-chip {
    opacity: 0.85;
    font-size: 0.68rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tip-icon-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
}

.tip-icon-hit {
    background: #00e676;
    color: #000;
}

.tip-icon-missed {
    background: #ef4444;
    color: #fff;
}

.tip-expand-arrow {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 2px;
    transition: transform 0.2s;
}

.tip-badge:hover .tip-expand-arrow {
    opacity: 1;
    transform: translateY(1px);
}

.value-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.16rem 0.42rem;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.2;
}

.value-badge.badge-safe {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.value-badge.badge-value {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--gold-light) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Resaltado del Borde de la Tarjeta según Acierto (Verde) o Fallo (Rojo) */
.match-card.card-hit {
    border-color: rgba(0, 230, 118, 0.45) !important;
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.03) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.match-card.card-hit:hover {
    border-color: #00e676 !important;
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.15);
}

.match-card.card-missed {
    border-color: rgba(239, 68, 68, 0.45) !important;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.match-card.card-missed:hover {
    border-color: #ef4444 !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

/* Bloque Visual Spotlight del Mercado Seleccionado */
.market-focus-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    margin: 0.75rem 0;
    transition: var(--transition);
}

.market-focus-box.focus-hit {
    border-color: rgba(0, 230, 118, 0.45);
    background: rgba(0, 230, 118, 0.06);
}

.market-focus-box.focus-missed {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.06);
}

.market-focus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.market-focus-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.market-focus-odd {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.market-focus-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.market-focus-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.market-focus-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.market-focus-prob {
    color: #94a3b8;
    font-weight: 600;
}

.market-focus-status {
    font-weight: 800;
    padding: 0.1rem 0.38rem;
    border-radius: var(--radius-full);
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.market-focus-status.hit {
    color: #00e676;
    background: rgba(0, 230, 118, 0.18);
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.market-focus-status.missed {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.market-focus-status.safe {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.market-focus-status.value {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.market-focus-status.no-data {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.value-badge.badge-no-data {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.tip-icon-tag.tip-icon-nodata {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   TABLA DE POSICIONES (STANDINGS)
   -------------------------------------------------------------------------- */
.standings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: visible;
    position: relative;
    box-shadow: var(--shadow-card);
}

.standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: #0f1523;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    z-index: 40;
    flex-wrap: wrap;
    gap: 1rem;
}

.league-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-league {
    background: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 320px;
}

.select-league:hover, .select-league:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.select-league option, .select-league optgroup {
    background: #111827;
    color: #f8fafc;
    font-family: inherit;
}

.select-league optgroup {
    font-weight: 800;
    color: #38bdf8;
    background: #0f172a;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
}

.select-league option {
    padding: 0.45rem 0.6rem;
    font-size: 0.86rem;
    color: #e2e8f0;
}

/* ==========================================================================
   SELECTOR PERSONALIZADO DE LIGAS CON BANDERAS HD Y BÚSQUEDA (BETMINES STYLE)
   ========================================================================== */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    font-family: inherit;
}

.custom-select-trigger {
    background: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    outline: none;
    max-width: 320px;
    text-align: left;
}

.custom-select-trigger:hover, .custom-select-trigger:focus, .custom-select-wrapper.open .custom-select-trigger {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.custom-select-trigger .flag-img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.custom-select-trigger .trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.custom-select-trigger .trigger-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open {
    z-index: 2500;
}

.custom-select-wrapper.open .custom-select-trigger .trigger-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 330px;
    width: max-content;
    max-width: min(440px, 92vw);
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 2600;
    padding: 0.5rem 0;
    animation: fadeInDropdown 0.15s ease-out;
    box-sizing: border-box;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-select-search-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    margin: 0.25rem 0.6rem 0.5rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.custom-select-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.82rem;
    width: 100%;
}

.custom-select-search-box input::placeholder {
    color: #64748b;
}

.custom-select-list {
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.custom-select-list::-webkit-scrollbar {
    width: 6px;
}
.custom-select-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.custom-select-group-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    background: #090e1a;
    padding: 0.45rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.custom-select-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #fff;
}

.custom-select-item.selected {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 600;
}

.custom-select-item .flag-img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.select-market {
    background: #111827;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 600;
}

.select-market:hover, .select-market:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.select-market option, .select-market optgroup {
    background: #111827;
    color: #fff;
}

.select-market optgroup {
    font-weight: 800;
    color: #94a3b8;
}

/* Barra de Resumen del Mercado Activo */
.market-summary-bar {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.market-summary-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.market-summary-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.market-summary-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.market-summary-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.market-stat-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.market-stat-box strong {
    color: #fff;
    font-weight: 700;
}

.market-stat-box.highlight strong {
    color: var(--primary);
}

.btn-clear-market {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.btn-clear-market:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
    border-color: #ef4444;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.standings-table th {
    background: #0c121e;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.standings-table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

.standings-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.standings-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.col-team {
    text-align: left !important;
    font-weight: 600;
    vertical-align: middle;
}

.col-team .team-cell-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    vertical-align: middle;
}

.col-pj {
    font-weight: 700;
}

.col-pj strong {
    color: #38bdf8;
}

.col-stat {
    color: #cbd5e1;
    font-size: 0.84rem;
}

.col-gd {
    font-weight: 700;
    font-size: 0.82rem;
}

.col-gd.gd-positive {
    color: #10b981;
}

.col-gd.gd-negative {
    color: #ef4444;
}

.col-gd.gd-neutral {
    color: #94a3b8;
}

.col-pts {
    font-size: 0.95rem;
    background: rgba(56, 189, 248, 0.07);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.col-pts strong {
    color: #fff;
    font-weight: 800;
}

.pos-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.pos-ucl {
    background: rgba(56, 189, 248, 0.2);
    color: var(--cyan);
}

.pos-uel {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold-light);
}

.pos-rel {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Círculos de forma reciente */
.form-badges {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.form-dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease;
}

.form-dot.clickable-dot {
    cursor: pointer;
}

.form-dot.clickable-dot:hover {
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
    z-index: 5;
}

.dot-w {
    background: var(--primary);
    color: #000;
}

.dot-d {
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}

.dot-l {
    background: var(--danger);
    color: #fff;
}

/* Estilos para goleadores que ya no forman parte del equipo */
.player-card-transferred {
    background: rgba(148, 163, 184, 0.04) !important;
    border: 1px dashed rgba(148, 163, 184, 0.28) !important;
    transition: all 0.2s ease;
}

.player-card-transferred:hover {
    background: rgba(148, 163, 184, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-2px);
}

.badge-ex-player {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.player-dest-team {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #38bdf8;
    margin-top: 3px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 4px;
    padding: 1px 6px;
    width: fit-content;
}

/* --------------------------------------------------------------------------
   GOLEADORES Y NOTICIAS
   -------------------------------------------------------------------------- */
.scorers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.scorer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.scorer-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.scorer-rank {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-subtle);
    width: 32px;
}

.scorer-rank.top-1 { color: #fbbf24; }
.scorer-rank.top-2 { color: #94a3b8; }
.scorer-rank.top-3 { color: #b45309; }

.scorer-info {
    flex: 1;
    padding: 0 0.75rem;
}

.scorer-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.scorer-team {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.scorer-stats {
    text-align: right;
}

.scorer-goals {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.scorer-assists {
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-top: 0.2rem;
}

/* News Cards - Revitalized */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.news-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.1);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
}

.news-card-header .league-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 600;
}

.news-card-header .league-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-header-datetime {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card:hover .news-header-datetime {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.35);
}

.news-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.news-teams .team {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.news-teams .team.away {
    justify-content: flex-end;
    text-align: right;
}

.news-teams .team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.news-teams .clickable-team:hover .team-logo {
    transform: scale(1.12);
}

.news-teams .team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-teams .score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    min-width: 50px;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-teams .score-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
}

.news-teams .score-time {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Tactical & Sentiment Info Bar */
.news-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.news-sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.news-sentiment-favorable {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.news-sentiment-neutral {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.news-sentiment-unfavorable {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.news-tactical-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

.news-tactical-chip strong {
    color: #e2e8f0;
}

/* Structured News Body */
.news-body {
    font-size: 0.83rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.news-body p {
    margin-bottom: 0.6rem;
}

.news-body p:last-child {
    margin-bottom: 0;
}

.news-body-section {
    margin-bottom: 0.75rem;
}

.news-body-section:last-child {
    margin-bottom: 0;
}

.news-body-section-title {
    font-weight: 800;
    color: #f8fafc;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.missing-players-chip {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.missing-players-chip strong {
    color: #fee2e2;
    font-weight: 700;
}

/* Footer with Action Button */
.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.5rem;
}

.news-updated-time {
    font-size: 0.72rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-open-match-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.38rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-open-match-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* --------------------------------------------------------------------------
   ZONA VIP & PAYWALL
   -------------------------------------------------------------------------- */
.vip-hero {
    background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.15);
    margin-bottom: 2rem;
}

.vip-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.vip-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.vip-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.95rem;
}

.btn-vip-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-vip-action:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

/* --------------------------------------------------------------------------
   MODAL DE DETALLE Y LOGIN
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex !important;
}

.modal-content {
    background: #0f1523;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 1.75rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

/* ==========================================================================
   MODAL DE TIPS ALTERNATIVOS
   ========================================================================== */
.alt-match-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alt-league-tag {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.alt-league-tag span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alt-teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.alt-team-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.alt-team-col.away {
    justify-content: flex-end;
    text-align: right;
}

.alt-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.alt-team-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.alt-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.alt-score-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
}

.alt-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Tarjeta Destacada del Tip Principal */
.main-tip-featured {
    background: #131d31;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.main-tip-featured.hit {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), #111b2d);
    border-color: #00e676;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.main-tip-featured.missed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), #111b2d);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.main-tip-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.main-tip-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-tip-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.main-tip-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.main-tip-odd-badge {
    background: #1e293b;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
}

.main-tip-odd-badge strong {
    color: var(--gold-light);
}

.main-tip-prob-badge {
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Grid de Tips Alternativos */
.alt-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.alt-tip-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.alt-tip-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    background: #151e33;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Acertado (Verde) */
.alt-tip-card.hit {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.05);
}

.alt-tip-card.hit:hover {
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.09);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

/* Fallado (Rojo) */
.alt-tip-card.missed {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.alt-tip-card.missed:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.09);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Pendiente */
.alt-tip-card.pending {
    border-color: var(--border-color);
}

/* Anulada / No Jugó */
.alt-tip-card.void {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.35);
    opacity: 0.72;
}

.alt-tip-card.void:hover {
    border-color: rgba(148, 163, 184, 0.35);
    opacity: 0.95;
}

.alt-tip-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.alt-tip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.alt-tip-odd-val {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.alt-tip-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}

.alt-tip-prob-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alt-tip-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.alt-tip-bar-fill {
    height: 100%;
    background: var(--cyan);
    border-radius: var(--radius-full);
}

.alt-tip-prob-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 32px;
}

.alt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.1rem 0.38rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1.2;
}

.alt-status-pill.hit {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.alt-status-pill.missed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.alt-status-pill.pending {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.alt-status-pill.void {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.alt-status-pill.no-data {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   INTERACCIÓN Y MODALES DE EQUIPOS Y LIGAS
   ========================================================================== */
.clickable-team {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    padding: 2px 4px;
}
.clickable-team:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-1px);
}
.clickable-team .team-logo {
    transition: transform 0.2s ease;
}
.clickable-team:hover .team-logo {
    transform: scale(1.1);
}

.clickable-league {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 6px;
}
.clickable-league:hover {
    color: #00e676 !important;
    background: rgba(0, 230, 118, 0.1);
}

/* Modal Ancho para Estadísticas */
.modal-stats-wide {
    max-width: 820px !important;
    max-height: 88vh;
    padding: 1.5rem !important;
}

#basketballDetailModal .modal-content,
.modal-stats-wide.modal-stats-extra-wide {
    max-width: 1080px !important;
    width: 95vw;
}

/* Header del Modal de Equipo / Liga */
.modal-hero-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.modal-hero-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.modal-hero-info {
    flex: 1;
}

.modal-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-hero-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.modal-hero-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-hero-badge.pos {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.3);
}

/* Grid de Tarjetas KPI */
.modal-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-kpi-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal-kpi-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.modal-kpi-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.modal-kpi-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.modal-kpi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-kpi-sub {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Sección con Título */
.modal-section-box {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.modal-section-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Comparativa Local vs Visitante */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.split-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.85rem;
}

.split-card-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.split-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.split-stat-row:last-child {
    border-bottom: none;
}

/* Barra de Distribución 1X2 */
.distribution-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem 0 0.25rem 0;
}

.dist-local { background: #00e676; }
.dist-draw { background: #f59e0b; }
.dist-away { background: #38bdf8; }

/* Timeline de Partidos Recientes */
.recent-matches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.recent-matches-table th {
    text-align: left;
    padding: 0.5rem;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-matches-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.outcome-pill {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.72rem;
}

.outcome-pill.w { background: rgba(0, 230, 118, 0.2); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.4); }
.outcome-pill.d { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.outcome-pill.l { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.badge-tag-chip {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    color: #cbd5e1;
}

/* Píldoras descriptivas con texto claro para estadísticas de partidos */
.stat-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-mini-pill.yellow {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.stat-mini-pill.red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stat-mini-pill.corner {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.stat-mini-pill.shot {
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

/* Interacción de Jugador Clickable */
.clickable-player {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.clickable-player:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-1px);
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Responsividad */
@media (max-width: 900px) {
    .navbar {
        padding: 0.55rem 0.85rem;
    }
    .nav-container {
        gap: 0.5rem;
    }
    .nav-links {
        display: none !important;
    }
    .brand-text {
        display: none !important;
    }
    .brand-logo {
        gap: 0;
    }
    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .mobile-nav-wrapper {
        display: flex;
        align-items: center;
    }
    .ticker-stats {
        display: none;
    }
    .matches-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .main-wrapper {
        padding: 0 0.75rem;
    }

    .matches-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .match-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .filter-pills {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        width: 100%;
    }

    /* Renglón 1: Todos, Apuestas de Valor y Alta Confianza en la misma fila */
    .filter-pills-group {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        width: 100%;
        flex-wrap: nowrap;
    }

    .filter-pills-group .pill-btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.38rem 0.4rem;
        font-size: 0.74rem;
        white-space: nowrap;
        text-align: center;
        letter-spacing: -0.15px;
    }

    /* Renglón 2: Selector de Mercado (Todos los Tips) y Selector de Ligas lado a lado */
    .filter-selects-group {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        flex-wrap: nowrap;
    }

    .filter-selects-group .select-market {
        flex: 1.15 1 0;
        min-width: 0;
        max-width: 58%;
        padding: 0.42rem 0.55rem;
        font-size: 0.78rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .filter-selects-group .custom-select-wrapper {
        flex: 0.85 1 0;
        min-width: 0;
        max-width: 45%;
    }

    .filter-selects-group .custom-select-trigger {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.42rem 0.55rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .filter-selects-group .custom-select-trigger .trigger-label {
        font-size: 0.78rem;
    }

    /* Renglón 3: Caja de búsqueda */
    .search-box {
        width: 100%;
        padding: 0.38rem 0.75rem;
    }

    /* Menú desplegable personalizado de ligas centrado y sin desbordes */
    .custom-select-dropdown {
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.2);
    }
}

@media (max-width: 520px) {
    .matches-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0.75rem;
    }

    .match-card {
        padding: 0.85rem 0.65rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .match-header {
        gap: 0.35rem;
        min-width: 0;
    }

    .match-header-bulb-btn,
    .match-header-whistle-btn,
    .match-header-target-btn {
        width: 23px;
        height: 23px;
        font-size: 0.78rem;
    }

    .match-teams {
        gap: 0.25rem;
        padding: 0.85rem 0 0.65rem 0;
        min-width: 0;
    }

    .team {
        gap: 0.35rem;
        min-width: 0;
    }

    .team-standing-pos {
        width: 17px !important;
        height: 17px !important;
        min-width: 17px !important;
        min-height: 17px !important;
        font-size: 0.6rem !important;
    }

    .team-match-dot {
        width: 9px;
        height: 9px;
    }

    .team-form-dots-row {
        gap: 2.5px;
    }

    .odds-row {
        gap: 0.25rem;
        min-width: 0;
    }

    .odd-chip {
        padding: 0.2rem 0.25rem;
        font-size: 0.7rem;
        min-width: 0;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
    }

    .user-chip {
        padding: 0.25rem 0.5rem;
        gap: 0.35rem;
        font-size: 0.78rem;
    }
    .user-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
    }
}

/* --------------------------------------------------------------------------
   MENÚ DESPLEGABLE MÓVIL (PARTIDOS, LIGAS Y DEMÁS)
   -------------------------------------------------------------------------- */
.mobile-nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 0.38rem 0.8rem;
    color: #f1f5f9;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle-btn:hover,
.mobile-nav-toggle-btn:active {
    background: rgba(30, 41, 59, 0.95);
    border-color: #00e676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

.mobile-nav-btn-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.mobile-nav-btn-label {
    letter-spacing: -0.2px;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-btn-chevron {
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-toggle-btn[aria-expanded="true"] .mobile-nav-btn-chevron {
    transform: rotate(180deg);
    color: #00e676;
}

.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(calc(100vw - 1.7rem), 380px);
    z-index: 2000;
    background: rgba(13, 19, 33, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.15);
    padding: 0.75rem;
    animation: mobileNavFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-nav-dropdown.active {
    display: block;
}

@keyframes mobileNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-nav-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.35rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.mobile-nav-brand-badge {
    color: #00e676;
    font-weight: 800;
    background: rgba(0, 230, 118, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 176, 255, 0.12));
    border-color: #00e676;
    color: #00e676;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.mobile-nav-item.vip {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
    color: #fbbf24;
}

.mobile-nav-item.vip.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    border-color: #fbbf24;
    color: #fbbf24;
}

.mobile-nav-item.superadmin {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.06);
    color: #38bdf8;
}

.mobile-nav-item.superadmin.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(3, 105, 161, 0.2));
    border-color: #38bdf8;
    color: #38bdf8;
}

.mobile-nav-item-icon {
    font-size: 1rem;
    line-height: 1;
}

.mobile-nav-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   LÍNEA DE TIEMPO DE TARJETAS (TIMELINE INTERACTIVO) Y BADGES DE LIGA
   -------------------------------------------------------------------------- */
#loginModal {
    z-index: 2500;
}

#playerDetailModal {
    z-index: 2100;
}

#matchDetailModal {
    z-index: 2060;
}

#teamDetailModal,
#leagueDetailModal,
#alternativeTipsModal {
    z-index: 2050;
}

.timeline-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-card-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.timeline-minute-pill {
    font-size: 0.8rem;
    font-weight: 800;
    min-width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f1f5f9;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.timeline-card-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.timeline-card-box.team-home {
    border-left: 3px solid #00e676;
}

.timeline-card-box.team-away {
    border-left: 3px solid #38bdf8;
}

.card-badge-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-badge-second-yellow {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-top-amonestado {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 9999px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.12);
    transition: all 0.2s ease;
}

.badge-top-amonestado:hover {
    background: rgba(234, 179, 8, 0.25);
    border-color: #facc15;
    transform: scale(1.03);
}

.badge-expulsable {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 9999px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.12);
    transition: all 0.2s ease;
}

.badge-expulsable:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    transform: scale(1.03);
}

.timeline-quick-stat {
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
    font-weight: 600;
}

.timeline-quick-stat:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

/* Interacción de Tarjetas en Ficha Técnica del Jugador */
.clickable-card-kpi {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.clickable-card-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    filter: brightness(1.15);
}

.tab-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-filter-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.player-card-item-box {
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-card-item-box:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Tarjetas de incidencias de jugador interactivas (goles, faltas y tarjetas) */
.player-card-item-box.clickable-match-card {
    cursor: pointer;
    position: relative;
}

.player-card-item-box.clickable-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.player-card-item-box.clickable-match-card:hover .match-detail-cta {
    background: #38bdf8 !important;
    color: #0b1120 !important;
    border-color: #38bdf8 !important;
    transform: scale(1.04);
}

.clickable-match-row {
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.clickable-match-row:hover {
    background: rgba(56, 189, 248, 0.12) !important;
}

.recent-matches-table tr.clickable-match-row:hover td {
    background: rgba(56, 189, 248, 0.08) !important;
}

/* ==========================================================================
   INCIDENCIAS DE PARTIDO: GOLES, ASISTENCIAS Y RENDIMIENTO DE JUGADORES
   ========================================================================== */

/* Barra de goleadores en el Hero del Modal */
.modal-hero-scorers {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
}

.hero-scorers-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.hero-scorers-col.home {
    text-align: left;
}

.hero-scorers-col.away {
    text-align: right;
    align-items: flex-end;
}

.hero-goal-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-scorers-col.away .hero-goal-item {
    justify-content: flex-end;
}

.goal-minute {
    font-weight: 800;
    color: #00e676;
    font-size: 0.75rem;
}

.hero-scorers-col.away .goal-minute {
    color: #38bdf8;
}

.goal-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.goal-tag.pen {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.goal-tag.own {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Timeline de Goles */
.timeline-goal-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-goal-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 230, 118, 0.35);
    transform: translateX(3px);
}

.timeline-goal-box.team-home {
    border-left: 3px solid #00e676;
}

.timeline-goal-box.team-away {
    border-left: 3px solid #38bdf8;
}

.card-badge-goal {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Tabla de Rendimiento de Jugadores (Box Score) */
.player-boxscore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.player-boxscore-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-boxscore-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.player-boxscore-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.78rem;
}

.rating-badge.rating-high {
    background: rgba(0, 230, 118, 0.18);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.rating-badge.rating-mid {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.rating-badge.rating-low {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.rating-badge.rating-none {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.badge-starter {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.badge-sub {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-weight: 600;
}

/* ==========================================================================
   TABS Y COMPONENTES DE MICRO-MERCADOS & PLAYER PROPS (MODAL Y VIP)
   ========================================================================== */

/* Tabs en Modal de Tips Alternativos */
.alt-modal-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1rem 0 1.25rem 0;
}

.alt-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.alt-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.alt-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.alt-tab-new-tag {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

/* Filtros de Categorías de Props */
.props-filter-bar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.props-filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.props-filter-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.props-filter-chip.active {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.4);
}

/* Grid de Props */
.props-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.prop-tip-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.prop-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.45rem;
    gap: 0.5rem;
}

.prop-player-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.prop-player-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.prop-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 4px;
}

.prop-ev-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.prop-ev-pill.positive {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.prop-ev-pill.neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.prop-ev-pill.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.prop-odds-comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.prop-odd-col {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prop-odd-lbl {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.prop-odd-val.fair {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.78rem;
}

.prop-odd-col.bm-col {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.25);
}

.prop-odd-lbl.bm-lbl {
    color: #34d399;
    font-weight: 700;
}

.prop-odd-val.bm {
    color: #00e676;
    font-weight: 800;
    font-size: 0.82rem;
}

/* ==========================================================================
   BOTÓN BOMBILLA AMARILLA Y MODAL EXPLICATIVO DE MICRO-MERCADOS
   ========================================================================== */
.prop-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.prop-explain-btn {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    line-height: 1;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.15);
}

.prop-explain-btn:hover {
    background: rgba(234, 179, 8, 0.28);
    border-color: #fde047;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.45);
}

#propExplainerModal {
    z-index: 2100; /* Abre con prioridad encima de alternativeTipsModal (z-index 2000) */
}

.modal-content.modal-prop-explainer {
    max-width: 580px;
    padding: 1.5rem;
    border: 1px solid rgba(234, 179, 8, 0.3);
    background: #0f1523;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(234, 179, 8, 0.12);
}

.explainer-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
}

.explainer-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.explainer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.explainer-player-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.explainer-market-sub {
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 600;
}

/* Callout de Frecuencia Proyectada */
.explainer-freq-callout {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 15px rgba(234, 179, 8, 0.05);
}

.explainer-freq-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fbbf24;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.explainer-freq-main {
    font-size: 1.05rem;
    line-height: 1.45;
    color: #f1f5f9;
}

.explainer-freq-main strong {
    color: #fde047;
}

.explainer-freq-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 0.45rem;
    line-height: 1.35;
}

/* Métricas Clave Grid */
.explainer-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.explainer-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.55rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.explainer-metric-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.explainer-metric-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.explainer-metric-val.prob { color: #38bdf8; }
.explainer-metric-val.fair { color: #f1f5f9; }
.explainer-metric-val.bm { color: #00e676; }
.explainer-metric-val.ev.pos { color: #00e676; }
.explainer-metric-val.ev.neg { color: #f87171; }
.explainer-metric-val.ev.neu { color: #94a3b8; }

/* Pros y Contras */
.explainer-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

@media (max-width: 580px) {
    .explainer-pros-cons {
        grid-template-columns: 1fr;
    }
    .explainer-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.explainer-side-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.explainer-side-card.pro {
    border: 1px solid rgba(0, 230, 118, 0.25);
    background: rgba(0, 230, 118, 0.03);
}

.explainer-side-card.con {
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.03);
}

.explainer-side-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
}

.explainer-side-card.pro .explainer-side-title { color: #4ade80; }
.explainer-side-card.con .explainer-side-title { color: #f87171; }

.explainer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.explainer-list li {
    font-size: 0.76rem;
    line-height: 1.35;
    color: #cbd5e1;
    position: relative;
    padding-left: 0.2rem;
}

.explainer-list li strong {
    color: #fff;
}

/* Veredicto */
.explainer-verdict-card {
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.explainer-verdict-card.positive {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.explainer-verdict-card.trap {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.explainer-verdict-card.neutral {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.explainer-verdict-card.pending {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.explainer-verdict-tag {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.explainer-verdict-card.positive .explainer-verdict-tag { color: #00e676; }
.explainer-verdict-card.trap .explainer-verdict-tag { color: #f87171; }
.explainer-verdict-card.neutral .explainer-verdict-tag { color: #38bdf8; }
.explainer-verdict-card.pending .explainer-verdict-tag { color: #94a3b8; }

.explainer-verdict-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0;
}

.explainer-footer-note {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.vip-match-selection-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-top: 0.35rem;
}

.vip-selection-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #fff;
    flex-wrap: wrap;
}

.vip-pick-accent {
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.75rem;
}

.vip-pick-text {
    color: #f1f5f9;
    font-weight: 700;
}

.vip-pick-pct {
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.78rem;
}

.vip-side-meta {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.vip-side-meta.hit {
    color: #00e676 !important;
    background: rgba(0, 230, 118, 0.15) !important;
    border: 1px solid rgba(0, 230, 118, 0.4) !important;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

/* Duelos Tácticos */
.tactical-duels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tactical-duel-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.duel-player-tag {
    font-size: 0.8rem;
    color: #e2e8f0;
}

.duel-player-tag.away {
    color: #94a3b8;
}

.duel-vs-chip {
    align-self: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 0 6px;
    border-radius: 4px;
}

.duel-type-meta {
    font-size: 0.7rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.25rem;
    margin-top: 0.2rem;
}

.duel-type-meta strong {
    color: #38bdf8;
}

/* ==========================================================================
   VISTA VIP: SNIPER PROPS & TABS VIP
   ========================================================================== */

.vip-tabs-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.vip-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.vip-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.vip-tab-btn.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.25));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.15);
}

.vip-tab-counter {
    background: rgba(0, 0, 0, 0.4);
    color: inherit;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.vip-props-intro-banner {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.vip-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.vip-prop-card {
    background: #111827;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vip-prop-card:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(251, 191, 36, 0.15);
}

.vip-prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vip-player-name {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.vip-team-name {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 1px;
}

.vip-ev-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.vip-match-context {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-prop-selection {
    background: rgba(251, 191, 36, 0.06);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
}

.vip-selection-title {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.vip-odds-box {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.vip-odd-item span {
    color: #94a3b8;
    margin-right: 0.35rem;
}

.vip-prop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-meta-pill {
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    color: #94a3b8;
}

.vip-meta-pill strong {
    color: #38bdf8;
}

.vip-meta-pill.kelly strong {
    color: #00e676;
}

.vip-btn-analyze {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vip-btn-analyze:hover {
    background: #fbbf24;
    color: #000;
    border-color: #fbbf24;
}

/* ==========================================================================
   TABLA DE POSICIONES CON GRUPOS Y CONFERENCIAS (Zona A/B, MLS, etc.)
   ========================================================================== */
.standings-group-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: thin;
}

.group-tab-btn {
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-tab-btn:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.group-tab-btn.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.group-header-row th {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95)) !important;
    color: #38bdf8 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 0.65rem 1rem !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
    text-align: left !important;
}

.group-header-row th span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================================================== */
/* CAMPO TÁCTICO INTERACTIVO (PITCH SOFASCORE STYLE)                          */
/* ========================================================================== */

.tactical-pitch-card {
    background: #0b131e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.tactical-pitch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.85rem;
}

.pitch-filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pitch-filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pitch-filter-tab:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.4);
}

.pitch-filter-tab.active {
    background: #fff;
    color: #0b131e;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.tactical-teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding: 0 0.5rem;
}

.tactical-team-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tactical-team-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.tactical-rating-pill {
    font-size: 0.85rem;
    font-weight: 900;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tactical-rating-pill.home {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.tactical-rating-pill.away {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.tactical-formation-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* El Campo de Fútbol SVG / CSS */
.tactical-field-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: radial-gradient(circle at center, #15271d 0%, #0d1a13 70%, #08120d 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.75rem;
}

/* Líneas de Cal del Campo */
.tactical-field-lines {
    position: absolute;
    inset: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.tactical-half-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.22);
}

.tactical-center-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110px;
    height: 110px;
    margin-left: -55px;
    margin-top: -55px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.tactical-center-spot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.tactical-penalty-area-left {
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 16%;
    border-right: 1.5px solid rgba(255, 255, 255, 0.22);
    border-top: 1.5px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
}

.tactical-penalty-area-right {
    position: absolute;
    right: 0;
    top: 22%;
    bottom: 22%;
    width: 16%;
    border-left: 1.5px solid rgba(255, 255, 255, 0.22);
    border-top: 1.5px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
}

.tactical-goal-area-left {
    position: absolute;
    left: 0;
    top: 36%;
    bottom: 36%;
    width: 6%;
    border-right: 1.5px solid rgba(255, 255, 255, 0.18);
    border-top: 1.5px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
}

.tactical-goal-area-right {
    position: absolute;
    right: 0;
    top: 36%;
    bottom: 36%;
    width: 6%;
    border-left: 1.5px solid rgba(255, 255, 255, 0.18);
    border-top: 1.5px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
}

/* Franjas del césped */
.tactical-field-stripes {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255, 255, 255, 0.015) 48px, rgba(255, 255, 255, 0.015) 96px);
    pointer-events: none;
}

/* Contenedor de Jugadores en Cancha */
.tactical-players-layer {
    position: absolute;
    inset: 16px;
    display: flex;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
}

.tactical-half-side {
    position: relative;
    width: 50%;
    height: 100%;
}

/* Nodo Individual de Jugador en el Campo */
.pitch-player-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    user-select: none;
}

.pitch-player-node:hover {
    transform: translate(-50%, -50%) scale(1.16);
    z-index: 25;
}

.pitch-player-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pitch-player-avatar-wrap.home-node {
    border-color: #38bdf8;
}

.pitch-player-avatar-wrap.away-node {
    border-color: #f59e0b;
}

.pitch-player-avatar-wrap.is-match-mvp {
    border-color: #facc15 !important;
    border-width: 2.5px !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.95), 0 0 24px rgba(250, 204, 21, 0.45) !important;
    animation: pulseMvpGlow 2.2s infinite ease-in-out;
}

@keyframes pulseMvpGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(250, 204, 21, 0.85), 0 0 4px rgba(250, 204, 21, 1);
    }
    50% {
        box-shadow: 0 0 22px rgba(250, 204, 21, 1), 0 0 32px rgba(250, 204, 21, 0.55);
    }
}

.pitch-mvp-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #422006;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    z-index: 25;
    letter-spacing: 0.4px;
    border: 1px solid #fef08a;
    pointer-events: none;
}

.pitch-player-rating-badge.mvp-rating-glow {
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #422006 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.85) !important;
    border: 1px solid #fef08a !important;
}

/* Franja destacada de MVP en la cabecera del campo táctico */
.pitch-mvp-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 1.5px solid rgba(250, 204, 21, 0.45);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.pitch-mvp-strip:hover {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.28) 0%, rgba(234, 179, 8, 0.1) 100%);
    border-color: rgba(250, 204, 21, 0.7);
    transform: translateY(-1px);
}

.pitch-mvp-strip-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.pitch-mvp-icon {
    font-size: 1.15rem;
}

.pitch-mvp-title {
    font-size: 0.74rem;
    font-weight: 900;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pitch-mvp-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
}

.pitch-mvp-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9999px;
}

.pitch-mvp-tag.starter {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.pitch-mvp-tag.sub {
    background: rgba(250, 204, 21, 0.18);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.pitch-mvp-strip-right {
    display: flex;
    align-items: center;
}

.pitch-mvp-score {
    font-size: 0.95rem;
    font-weight: 900;
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.pitch-player-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0f172a;
    display: block;
}

.pitch-player-avatar-fallback {
    font-size: 1.25rem;
    line-height: 1;
}

/* Badge de Valoración Flotante en el avatar */
.pitch-player-rating-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.rating-excellent {
    background: #00e676 !important;
    color: #042f1a !important;
}

.rating-good {
    background: #38bdf8 !important;
    color: #032030 !important;
}

.rating-average {
    background: #f59e0b !important;
    color: #291500 !important;
}

.rating-poor {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Micro-Badges de Eventos (Tarjeta, Gol, Cambio, Capitán) */
.pitch-event-badge {
    position: absolute;
    top: -4px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pitch-event-badge.card-yellow {
    right: -4px;
    background: #facc15;
    color: #713f12;
    border-radius: 2px;
    width: 9px;
    height: 12px;
}

.pitch-event-badge.card-red {
    right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 2px;
    width: 9px;
    height: 12px;
}

.pitch-event-badge.sub-icon {
    left: -4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.65rem;
}

.pitch-event-badge.goal-icon {
    top: -5px;
    right: -6px;
    left: auto;
    background: rgba(0, 230, 118, 0.95);
    color: #042f1a;
    font-size: 0.62rem;
    z-index: 20;
    border: 1.5px solid #0f172a;
}

/* Si el jugador tiene tanto gol como tarjeta, desplazar la tarjeta para que ambas sean 100% visibles */
.pitch-player-avatar-wrap.has-goal.has-card .pitch-event-badge.card-yellow,
.pitch-player-avatar-wrap.has-goal.has-card .pitch-event-badge.card-red {
    top: 13px !important;
    right: -5px !important;
}

/* Cuando el jugador sea MVP y goleador o hizo gol, el icono de balón debe estar no arriba sino a un lado */
.pitch-player-avatar-wrap.is-match-mvp .pitch-event-badge.goal-icon {
    top: 50% !important;
    right: -10px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 30 !important;
}

/* Si además de MVP y gol tiene tarjeta, ubicar la tarjeta en el flanco izquierdo para evitar colisiones */
.pitch-player-avatar-wrap.is-match-mvp.has-goal.has-card .pitch-event-badge.card-yellow,
.pitch-player-avatar-wrap.is-match-mvp.has-goal.has-card .pitch-event-badge.card-red {
    top: 50% !important;
    left: -7px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
}

/* Si es MVP con tarjeta y sin gol, colocar la tarjeta a un lado para no tapar el MVP */
.pitch-player-avatar-wrap.is-match-mvp:not(.has-goal) .pitch-event-badge.card-yellow,
.pitch-player-avatar-wrap.is-match-mvp:not(.has-goal) .pitch-event-badge.card-red {
    top: 50% !important;
    right: -7px !important;
    transform: translateY(-50%) !important;
}

/* Nombre y Dorsal debajo de la ficha */
.pitch-player-label {
    margin-top: 3px;
    text-align: center;
    max-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.pitch-player-name {
    font-size: 0.64rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 66px;
    line-height: 1.15;
}

.pitch-player-number {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 2px;
}

.pitch-secondary-pill {
    margin-top: 2px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 1px 5px;
    font-size: 0.62rem;
    color: #e2e8f0;
    font-weight: 700;
    white-space: nowrap;
}

/* Ficha del Árbitro en la base de la Cancha */
.tactical-referee-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #94a3b8;
}

.tactical-referee-bar strong {
    color: #fff;
}

.referee-cards-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================================================== */
/* RADAR PENTAGONAL DE JUGADORES DESTACADOS (IMAGEN 2)                         */
/* ========================================================================== */

.featured-players-radar-card {
    background: #0b131e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.radar-header {
    text-align: center;
    margin-bottom: 1rem;
}

.radar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.radar-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.radar-players-versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.radar-player-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.radar-player-profile:hover {
    transform: scale(1.05);
}

.radar-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-avatar-wrap.p1 {
    border-color: #00e676;
}

.radar-avatar-wrap.p2 {
    border-color: #818cf8;
}

.radar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.radar-rating-badge {
    position: absolute;
    bottom: -6px;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    color: #042f1a;
    background: #00e676;
}

.radar-rating-badge.p2 {
    background: #818cf8;
    color: #0f172a;
}

.radar-player-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.radar-vs-badge {
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.radar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.radar-legend-item.p1 {
    color: #00e676;
}

.radar-legend-item.p2 {
    color: #818cf8;
}

.radar-legend-line {
    width: 18px;
    height: 3px;
    border-radius: 2px;
}

.radar-legend-line.p1 {
    background: #00e676;
}

.radar-legend-line.p2 {
    background: #818cf8;
}

/* ========================================================================== */
/* SECCIÓN DE LESIONES Y SUSPENSIONES (IMAGEN 3)                               */
/* ========================================================================== */

.injuries-card-section {
    background: #0b131e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.injuries-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.injuries-split-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .injuries-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.injuries-divider {
    background: rgba(255, 255, 255, 0.08);
    width: 1px;
    height: 100%;
}

.injuries-team-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.injury-item-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.injury-item-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.injury-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}

.injury-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.injury-player-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.injury-status-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
}

.injury-status-badge {
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.74rem;
}

.injury-status-badge.badge-injury {
    color: #ef4444;
}

.injury-status-badge.badge-suspension {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
}

.injury-status-badge.badge-questionable {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
}

.injury-status-badge.badge-roster {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
}

.injury-reason-tag {
    color: #38bdf8;
    font-weight: 600;
}

.injury-reason-tag.tag-suspension {
    color: #fca5a5;
}

.injury-reason-tag.tag-questionable {
    color: #fde68a;
}

.injury-reason-tag.tag-roster {
    color: #94a3b8;
}

.injury-empty-team {
    transition: all 0.2s ease;
}

.injury-empty-team:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* ========================================================================== */
/* SECCIÓN DE SUSTITUCIONES Y BANQUILLO (IMAGEN 4)                             */
/* ========================================================================== */

.substitutions-card-section {
    background: #0b131e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.substitutions-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.substitutions-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .substitutions-split-grid {
        grid-template-columns: 1fr;
    }
}

.substitutions-team-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-group-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.75rem 0 0.35rem 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sub-group-header.unplayed {
    color: #64748b;
    margin-top: 1rem;
}

.sub-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 6px;
}

.sub-item-row.played {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.35rem;
    border-radius: 8px;
}

.sub-item-row.played:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sub-item-row.unplayed {
    opacity: 0.68;
    margin-bottom: 0.25rem;
    border-radius: 6px;
}

.sub-item-row.unplayed:hover {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.02);
}

.sub-item-row.is-mvp {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.18) 0%, rgba(250, 204, 21, 0.04) 100%) !important;
    border: 1.5px solid rgba(250, 204, 21, 0.65) !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.22) !important;
}

.sub-item-row.is-mvp:hover {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.26) 0%, rgba(250, 204, 21, 0.08) 100%) !important;
}

.sub-player-lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sub-avatar-container {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.sub-avatar-container.is-mvp .sub-avatar-img {
    border: 2px solid #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
}

.sub-mvp-crown-icon {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 0.95rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.sub-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.sub-avatar-img.unplayed {
    filter: grayscale(40%);
    opacity: 0.8;
}

.sub-text-wrap {
    display: flex;
    flex-direction: column;
}

.sub-name-line {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.sub-name-text.unplayed {
    color: #94a3b8;
}

.sub-number {
    color: #94a3b8;
    margin-right: 0.25rem;
}

.sub-number.unplayed {
    color: #64748b;
}

.sub-event-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sub-minute-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sub-minute-tag.played {
    background: rgba(0, 230, 118, 0.14);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.sub-minute-tag.unplayed {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.sub-minute-tag.unplayed.bench-carded {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Indicadores de Tarjetas para Sustituciones y Banquillo */
.sub-avatar-badge {
    position: absolute;
    bottom: -1px;
    right: -2px;
    width: 9px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.sub-avatar-badge.card-yellow {
    background: #facc15;
}

.sub-avatar-badge.card-red {
    background: #ef4444;
}

.sub-avatar-badge.card-yellow.has-both-cards {
    right: 9px;
}

.sub-card-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.2;
}

.sub-card-tag.yellow {
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.sub-card-tag.red {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.sub-out-tag {
    font-size: 0.71rem;
    color: #cbd5e1;
}

.sub-mvp-pill {
    font-size: 0.66rem;
    font-weight: 900;
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #422006;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 0.35rem;
    box-shadow: 0 1px 4px rgba(250, 204, 21, 0.4);
    letter-spacing: 0.3px;
    border: 1px solid #fef08a;
}

.sub-rating-pill {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    min-width: 28px;
    text-align: center;
}

.sub-rating-pill.rating-mvp {
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #422006 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7) !important;
    border: 1px solid #fef08a !important;
}

.sub-rating-pill.unplayed {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   VIP PROPS & COUNTDOWN HEADER STYLES (LAS JOYAS CON CONTADOR EN VIVO)
   ========================================================================== */
.vip-props-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.15rem;
    margin-top: 0.75rem;
}

.prop-card-wrapper {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prop-card-wrapper:hover {
    transform: translateY(-2px);
}

.prop-countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.76rem;
    gap: 0.5rem;
}

.countdown-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.2px;
}

.countdown-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #38bdf8;
    display: inline-block;
}

.countdown-live-dot.live {
    background-color: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: pulseDot 1.2s infinite;
}

.countdown-live-dot.finished {
    background-color: #10b981;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.countdown-match-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.72rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countdown-match-teams {
    color: #e2e8f0;
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countdown-local-time {
    color: #38bdf8;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 4px;
}

.prop-card-wrapper .prop-tip-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* ==========================================================================
   VIP PARTIDOS SELECCIONADOS - TARJETA ESTRUCTURADA Y RESPONSIVA
   Línea 1: Equipos y Marcador
   Línea 2: Fecha, Estado de Resultado y EV
   Línea 3: Caja de Selección PICK + Cuotas + Liga
   ========================================================================== */
.vip-match-card-clean {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.vip-match-card-clean:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Línea 1: Equipos y Marcador */
.vip-card-teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 0.45rem;
}

.vip-card-team {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.vip-card-team.home {
    justify-content: flex-start;
    text-align: left;
}

.vip-card-team.away {
    justify-content: flex-end;
    text-align: right;
}

.vip-card-team-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vip-card-score {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
    min-width: 48px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.vip-card-score.finished {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
}

.vip-card-score.live {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse 1.5s infinite;
}

/* Línea 2: Fecha, Estado y EV */
.vip-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.55rem;
}

.vip-card-meta-row .match-header-datetime {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.25px;
}

.vip-card-meta-row .match-header-bulb-col {
    margin: 0;
}

.vip-card-meta-row .match-header-bulb-btn,
.vip-card-meta-row .match-header-whistle-btn,
.vip-card-meta-row .match-header-target-btn {
    width: 24px;
    height: 24px;
}

.vip-meta-date-col {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.vip-meta-badges-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.vip-meta-badges-col .alt-status-pill {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Footer de Liga en la Caja de Selección */
.vip-card-league-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: #64748b;
}

.vip-card-league-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #94a3b8;
    font-weight: 500;
}

.vip-card-view-detail {
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.vip-match-card-clean:hover .vip-card-view-detail {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================================================
   ESTILOS: DASHBOARD Y EXPLORADOR DE LIGAS (PERAMOBET BETMINES STYLE)
   ========================================================================== */

.leagues-dashboard-header {
    background: #0b1120;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.leagues-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.league-picker-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.popular-leagues-pills {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.1rem;
    width: 100%;
    flex-basis: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.popular-leagues-pills::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}

.popular-leagues-pills.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.popular-league-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.popular-league-pill:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.popular-league-pill.active {
    background: rgba(0, 230, 118, 0.15);
    border-color: #00e676;
    color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.popular-league-pill .pill-flag-img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

/* Sub-Pestañas del Módulo Ligas */
.league-subtabs-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.league-subtabs-nav::-webkit-scrollbar {
    display: none;
}

.league-subtab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.league-subtab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.league-subtab-btn.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

/* Hero Box del Dashboard */
.league-dash-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.league-dash-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.league-dash-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.league-dash-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.league-dash-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.league-dash-badge {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.league-dash-accuracy-box {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    text-align: right;
    min-width: 170px;
}

.league-dash-acc-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: #00e676;
    line-height: 1;
}

.league-dash-acc-label {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid de Marcadores Exactos Frecuentes */
.scores-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.score-heatmap-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.score-heatmap-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.score-heatmap-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.score-heatmap-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.2rem;
}

.score-heatmap-occ {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.score-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #00e676);
    border-radius: 2px;
}

/* Grid de Reyes del Mercado */
.market-kings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.king-category-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.king-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.king-category-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.king-category-sub {
    font-size: 0.7rem;
    color: #94a3b8;
}

.king-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.king-team-row:last-child {
    border-bottom: none;
}

.king-team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.king-team-rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    width: 18px;
    text-align: center;
}

.king-team-rank.top1 {
    color: #facc15;
}

.king-team-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.king-team-val {
    text-align: right;
    flex-shrink: 0;
}

.king-team-main-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: #00e676;
}

.king-team-sub-val {
    font-size: 0.65rem;
    color: #64748b;
}

/* Tabla y Badges de Árbitros */
.referee-rsi-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.referee-rsi-badge.severe {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.referee-rsi-badge.balanced {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.referee-rsi-badge.lenient {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Barra de Filtros de Mercado para Partidos de la Liga */
.league-market-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* ==========================================================================
   BOMBILLA CENTRADA Y MODAL DE INSIGHT CONTEXTUAL (AMARILLA Y ROJA DE TRAMPA)
   ========================================================================== */
.match-header-bulb-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 0.4rem;
    cursor: pointer;
}

.match-header-bulb-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
    line-height: 1;
}

/* ==========================================================================
   BOMBILLA: ANALÍTICA DE FATIGA Y RIESGO FÍSICO
   - Verde: Sin riesgo físico (iluminación y sombreado verde)
   - Amarillo: Con riesgo físico (sombreado y borde amarillo)
   - Rojo: Riesgo crítico / Partido Trampa (sombreado y borde rojo pulsante)
   ========================================================================== */

.bulb-svg {
    display: block;
    filter: drop-shadow(0 0 2.5px currentColor);
    transition: filter 0.22s ease;
}

/* Estado 1: Sin Riesgo Físico (Verde - Plenitud Biomecánica y Brillo Lámpara) */
.match-header-bulb-btn.bulb-green {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.32) 0%, rgba(34, 197, 94, 0.08) 70%);
    border: 1.5px solid rgba(74, 222, 128, 0.75);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5), inset 0 0 6px rgba(34, 197, 94, 0.25);
    color: #22c55e;
    animation: bulbGreenPulseGlow 2.4s infinite ease-in-out;
}

.match-header-bulb-btn.bulb-green:hover {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.5) 0%, rgba(34, 197, 94, 0.2) 80%);
    border-color: #86efac;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9), inset 0 0 8px rgba(34, 197, 94, 0.45);
    transform: scale(1.18);
}

@keyframes bulbGreenPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.38), inset 0 0 4px rgba(34, 197, 94, 0.2);
        border-color: rgba(74, 222, 128, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.85), inset 0 0 8px rgba(34, 197, 94, 0.4);
        border-color: #86efac;
    }
}

/* Estado 2: Con Riesgo Físico Moderado (Amarillo - Fatiga Acumulada / <72h) */
.match-header-bulb-btn.bulb-yellow {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.08) 70%);
    border: 1.5px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.45), inset 0 0 6px rgba(250, 204, 21, 0.25);
    color: #f59e0b;
    animation: bulbYellowPulseGlow 2.4s infinite ease-in-out;
}

.match-header-bulb-btn.bulb-yellow:hover {
    background: radial-gradient(circle, rgba(250, 204, 21, 0.5) 0%, rgba(234, 179, 8, 0.2) 80%);
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.9), inset 0 0 8px rgba(250, 204, 21, 0.45);
    transform: scale(1.18);
}

@keyframes bulbYellowPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(234, 179, 8, 0.35), inset 0 0 4px rgba(234, 179, 8, 0.2);
        border-color: rgba(250, 204, 21, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(250, 204, 21, 0.8), inset 0 0 8px rgba(250, 204, 21, 0.4);
        border-color: #fde047;
    }
}

/* Estado 3: Riesgo Crítico / Partido Trampa (Rojo - Desgaste Severo) */
.match-header-bulb-btn.bulb-red {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0.1) 70%);
    border: 1.5px solid rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.65), inset 0 0 6px rgba(239, 68, 68, 0.3);
    color: #ef4444;
    animation: bulbRedPulseGlow 1.6s infinite ease-in-out;
}

.match-header-bulb-btn.bulb-red:hover {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.55) 0%, rgba(239, 68, 68, 0.25) 80%);
    border-color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.95), inset 0 0 8px rgba(239, 68, 68, 0.5);
    transform: scale(1.22);
}

@keyframes bulbRedPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.4), inset 0 0 4px rgba(239, 68, 68, 0.25);
        border-color: rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5);
        border-color: #fca5a5;
    }
}

/* Banner de Alerta de Partido Trampa dentro del Modal */
.insight-trap-alert-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.35) 100%);
    border: 1px solid rgba(239, 68, 68, 0.65);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.insight-trap-alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}

.insight-trap-alert-content {
    flex: 1;
}

/* Modal Overlay & Card */
.insight-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.insight-modal-overlay.active {
    display: flex;
}

.insight-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
    padding: 1.25rem 1.4rem;
}

.insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.insight-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.insight-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.insight-traffic-banner {
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
    text-align: center;
}

.insight-traffic-banner.RED {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.insight-traffic-banner.YELLOW {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.insight-traffic-banner.GREEN {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.insight-score-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
}

.insight-score-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
}

.insight-score-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 2px;
}

.insight-flag-box {
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
}

.insight-flag-box.RED {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.insight-flag-box.YELLOW {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.insight-flag-box.ORANGE {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.insight-flag-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.insight-flag-desc {
    color: #94a3b8;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.insight-flag-action {
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    display: inline-block;
}

/* ==========================================================================
   PANEL ADMIN: GESTIÓN DE SUSCRIPTORES Y MODAL DE EDICIÓN
   ========================================================================== */
.admin-subscribers-table th {
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.admin-subscribers-table td {
    vertical-align: middle;
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
}

.badge-user {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.plan-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.currency-badge {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.timezone-badge {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    background: #1e293b;
    border: 1px solid #334155;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-refresh-admin {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-refresh-admin:hover {
    background: #334155;
    border-color: #475569;
}

.admin-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.btn-admin-action {
    border: none;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-admin-action.edit {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-admin-action.edit:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.btn-admin-action.toggle-active {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-admin-action.toggle-active:hover {
    background: rgba(239, 68, 68, 0.22);
}

.btn-admin-action.toggle-inactive {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-admin-action.toggle-inactive:hover {
    background: rgba(16, 185, 129, 0.22);
}

/* Modal Form Grid */
.modal-admin-edit {
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.expiry-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.quick-days-btn-group {
    display: flex;
    gap: 0.35rem;
}

.btn-quick-day {
    background: #1e293b;
    border: 1px solid #334155;
    color: #38bdf8;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quick-day:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.btn-quick-day.danger {
    color: #f87171;
}

.btn-quick-day.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.btn-quick-day.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.btn-quick-day.danger.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.btn-cancel {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #1e293b;
    color: #f8fafc;
}

.btn-save-sub {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.btn-save-sub:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   CONTROL LIVE HUNTER (SUPERADMIN)
   ========================================================================== */
.btn-live-hunter {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    transition: all 0.2s ease;
}

.btn-live-hunter:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5);
    color: #fff;
}

.lh-modal-card {
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: #0b1329;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.15);
}

.lh-telemetry-container {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lh-telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lh-status-pill.online {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.lh-status-pill.delayed {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.lh-status-pill.offline {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.lh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.lh-status-pill.online .lh-status-dot {
    animation: lhPulse 1.8s infinite;
}

@keyframes lhPulse {
    0% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.lh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .lh-stats-grid {
        grid-template-columns: 1fr;
    }
}

.lh-stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.lh-stat-title {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.lh-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
}

.lh-stat-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.2rem;
    display: block;
}

.lh-progress-track {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.lh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.lh-modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .lh-modes-grid {
        grid-template-columns: 1fr;
    }
}

.lh-mode-card {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.lh-mode-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.75);
    transform: translateY(-1px);
}

.lh-mode-card.active {
    border: 2px solid #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.lh-mode-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.lh-mode-icon {
    font-size: 1.15rem;
}

.lh-mode-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #f8fafc;
}

.lh-mode-recommended {
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-weight: 700;
    margin-left: auto;
}

.lh-mode-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.lh-mode-desc code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    color: #38bdf8;
}

.lh-notif-box {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.lh-notif-box:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(56, 189, 248, 0.4);
}

.lh-notif-box.active {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
}

.lh-notif-box.muted {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.lh-toggle-indicator {
    width: 44px;
    height: 24px;
    background: #334155;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.lh-toggle-indicator.on {
    background: #22c55e;
}

.lh-toggle-knob {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lh-toggle-indicator.on .lh-toggle-knob {
    transform: translateX(20px);
}

/* ==========================================================================
   AI ENGINE CONTROL & LLM / SLM QUICK SWITCHER (SUPERADMIN)
   ========================================================================== */

.ai-quick-switcher {
    display: inline-flex;
    align-items: center;
    background: #111827;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.ai-quick-switcher:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

.ai-mode-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    transition: all 0.2s ease;
}

.ai-mode-dot.mode-AUTO {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.ai-mode-dot.mode-CLOUD_ONLY {
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
}

.ai-mode-dot.mode-LOCAL_ONLY {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.ai-mode-dot.mode-BYPASS {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.ai-quick-select {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.ai-quick-select:hover, .ai-quick-select:focus {
    border-color: #38bdf8;
    background: #1e293b;
    color: #f8fafc;
}

.btn-ai-info-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ai-info-badge:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: scale(1.05);
}

/* ==========================================================================
   SUBSISTEMA DISCIPLINARIO Y PROYECCIÓN ARBITRAL (Silbato & Faltas/Tarjetas)
   ========================================================================== */

/* Columna del Silbato junto a la Bombilla */
.match-header-whistle-col {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem;
}

/* Tooltip flotante interactivo al pasar el mouse por el silbato (Orientado hacia ABAJO) */
.whistle-hover-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
    z-index: 1000;
}

.whistle-hover-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.97) transparent;
}

.whistle-hover-tooltip.whistle-low,
.whistle-hover-tooltip.risk-clean {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 255, 255, 0.25);
}

.whistle-hover-tooltip.whistle-mid,
.whistle-hover-tooltip.risk-normal {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(245, 158, 11, 0.4);
}

.whistle-hover-tooltip.whistle-hot,
.whistle-hover-tooltip.risk-hot {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(239, 68, 68, 0.45);
}

.whistle-hover-tooltip .whistle-tooltip-cards {
    color: #fde047;
    font-weight: 800;
}

.whistle-hover-tooltip .whistle-tooltip-sep {
    color: #64748b;
    font-weight: 400;
}

.whistle-hover-tooltip .whistle-tooltip-fouls {
    color: #cbd5e1;
    font-weight: 600;
}

.whistle-hover-tooltip .whistle-tooltip-ref {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 500;
    margin-left: 0.15rem;
}

.match-header-whistle-col:hover .whistle-hover-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SILBATO DISCIPLINARIO: SEMÁFORO (BLANCO / AMARILLO / ROJO)
   ========================================================================== */
.match-header-whistle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    padding: 0;
    outline: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nivel Bajo: Blanco (Árbitro permisivo / Partido limpio / < 3.8 tarjetas) */
.match-header-whistle-btn.whistle-low,
.match-header-whistle-btn.risk-clean {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 70%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35), inset 0 0 5px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.match-header-whistle-btn.whistle-low:hover,
.match-header-whistle-btn.risk-clean:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 80%);
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scale(1.18);
}

/* Nivel Medio: Amarillo (Fricción normal / 3.8 a 4.9 tarjetas) */
.match-header-whistle-btn.whistle-mid,
.match-header-whistle-btn.risk-normal {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.08) 70%);
    border: 1.5px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.45), inset 0 0 6px rgba(250, 204, 21, 0.25);
    color: #f59e0b;
    animation: whistleMidPulseGlow 2.8s infinite ease-in-out;
}

.match-header-whistle-btn.whistle-mid:hover,
.match-header-whistle-btn.risk-normal:hover {
    background: radial-gradient(circle, rgba(250, 204, 21, 0.5) 0%, rgba(234, 179, 8, 0.2) 80%);
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.9), inset 0 0 8px rgba(250, 204, 21, 0.45);
    transform: scale(1.18);
}

@keyframes whistleMidPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(234, 179, 8, 0.35), inset 0 0 4px rgba(234, 179, 8, 0.2);
        border-color: rgba(250, 204, 21, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(250, 204, 21, 0.8), inset 0 0 8px rgba(250, 204, 21, 0.4);
        border-color: #fde047;
    }
}

/* Nivel Alto: Rojo (Partido caliente / Árbitro riguroso / >= 5.0 tarjetas) */
.match-header-whistle-btn.whistle-hot,
.match-header-whistle-btn.risk-hot {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(244, 63, 94, 0.1) 70%);
    border: 1.5px solid rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), inset 0 0 6px rgba(239, 68, 68, 0.3);
    color: #ef4444;
    animation: whistleHotPulseGlow 1.8s infinite ease-in-out;
}

.match-header-whistle-btn.whistle-hot:hover,
.match-header-whistle-btn.risk-hot:hover {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.55) 0%, rgba(239, 68, 68, 0.25) 80%);
    border-color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.95), inset 0 0 8px rgba(239, 68, 68, 0.5);
    transform: scale(1.18);
}

.match-header-whistle-btn:active {
    transform: scale(0.95);
}

@keyframes whistleHotPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.4), inset 0 0 4px rgba(239, 68, 68, 0.25);
        border-color: rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5);
        border-color: #f87171;
    }
}

/* Pastilla de Proyección Disciplinaria bajo el logo / cabecera */
.match-discipline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin: 0.35rem auto 0.2rem auto;
    width: fit-content;
}

.match-discipline-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.match-discipline-pill.pill-hot {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(35, 15, 20, 0.8);
}

.match-discipline-pill.pill-hot:hover {
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.match-discipline-pill.pill-clean {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(10, 30, 25, 0.8);
}

.match-discipline-pill .pill-cards {
    color: #fde047;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.match-discipline-pill .pill-sep {
    color: #64748b;
    font-weight: 400;
}

.match-discipline-pill .pill-fouls {
    color: #94a3b8;
}

/* Modal Disciplinario y de Rigor Arbitral */
.discipline-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.discipline-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.discipline-modal-card {
    background: linear-gradient(145deg, #0e172a 0%, #070d19 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.discipline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.discipline-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #38bdf8;
}

.discipline-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.discipline-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.discipline-ref-banner {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.discipline-ref-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.discipline-ref-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.discipline-ref-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
}

.discipline-ref-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.discipline-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.discipline-stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem;
}

.discipline-stat-title {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.discipline-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
}

.discipline-stat-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.discipline-bar-box {
    margin-bottom: 1rem;
}

.discipline-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.discipline-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

.discipline-bar-home {
    background: #38bdf8;
    height: 100%;
}

.discipline-bar-away {
    background: #f43f5e;
    height: 100%;
}

.discipline-market-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.discipline-market-chip {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.discipline-market-chip.hit-likely {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   MERCADOS DE FALTAS ESTILO RUSHBET / OPTA DATA (DISCIPLINE MODAL)
   ========================================================================== */
.rushbet-foul-section {
    margin-top: 1.25rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rushbet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.55rem;
    margin-bottom: 0.85rem;
}

.rushbet-title-col {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.rushbet-title-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.rushbet-badge-opta {
    font-size: 0.65rem;
    font-weight: 700;
    background: #0284c7;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rushbet-consensus-badge {
    font-size: 0.7rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 999px;
}

.rushbet-market-block {
    margin-bottom: 1rem;
}

.rushbet-market-block:last-child {
    margin-bottom: 0.2rem;
}

.rushbet-market-title {
    font-size: 0.76rem;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.rushbet-resolved-tag {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 400;
}

.rushbet-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.rushbet-odd-card {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    transition: all 0.2s ease;
}

.rushbet-odd-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.95);
}

.rushbet-odd-card.consensus {
    border: 1px solid #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.rushbet-odd-card.consensus .rushbet-odd-line {
    color: #e0f2fe;
    font-weight: 700;
}

.rushbet-odd-line {
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 600;
}

.rushbet-odd-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rushbet-odd-prob {
    font-size: 0.68rem;
    color: #94a3b8;
}

.rushbet-odd-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: #38bdf8;
}

.rushbet-odd-card.consensus .rushbet-odd-val {
    color: #38bdf8;
}

/* ==========================================================================
   SUBSISTEMA DE REMATES AL ARCO (Tiros a Puerta & Shots Insight)
   ========================================================================== */

/* Columna de la Diana junto al Silbato */
.match-header-target-col {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem;
}

/* Tooltip flotante interactivo al pasar el mouse por la diana */
.target-hover-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
    z-index: 1000;
}

.target-hover-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.97) transparent;
}

.target-hover-tooltip.target-low,
.target-hover-tooltip.pace-tactical {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 255, 255, 0.25);
}

.target-hover-tooltip.target-mid,
.target-hover-tooltip.pace-balanced {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(245, 158, 11, 0.4);
}

.target-hover-tooltip.target-hot,
.target-hover-tooltip.pace-fire {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(239, 68, 68, 0.45);
}

.target-hover-tooltip .target-tooltip-shots {
    color: #38bdf8;
    font-weight: 800;
}

.target-hover-tooltip .target-tooltip-sep {
    color: #64748b;
    font-weight: 400;
}

.target-hover-tooltip .target-tooltip-pace {
    color: #cbd5e1;
    font-weight: 600;
}

.match-header-target-col:hover .target-hover-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   DIANA DE REMATES AL ARCO: SEMÁFORO (BLANCO / AMARILLO / ROJO)
   ========================================================================== */
.match-header-target-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    padding: 0;
    outline: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nivel Bajo: Blanco (Partido cerrado / Táctico / < 8.2 remates) */
.match-header-target-btn.target-low,
.match-header-target-btn.pace-tactical {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 70%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35), inset 0 0 5px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.match-header-target-btn.target-low:hover,
.match-header-target-btn.pace-tactical:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 80%);
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scale(1.18);
}

/* Nivel Medio: Amarillo (Volumen estándar / 8.2 - 10.1 remates) */
.match-header-target-btn.target-mid,
.match-header-target-btn.pace-balanced {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.08) 70%);
    border: 1.5px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.45), inset 0 0 6px rgba(250, 204, 21, 0.25);
    color: #f59e0b;
    animation: targetMidPulseGlow 2.8s infinite ease-in-out;
}

.match-header-target-btn.target-mid:hover,
.match-header-target-btn.pace-balanced:hover {
    background: radial-gradient(circle, rgba(250, 204, 21, 0.5) 0%, rgba(234, 179, 8, 0.2) 80%);
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.9), inset 0 0 8px rgba(250, 204, 21, 0.45);
    transform: scale(1.18);
}

@keyframes targetMidPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(234, 179, 8, 0.35), inset 0 0 4px rgba(234, 179, 8, 0.2);
        border-color: rgba(250, 204, 21, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(250, 204, 21, 0.8), inset 0 0 8px rgba(250, 204, 21, 0.4);
        border-color: #fde047;
    }
}

/* Nivel Alto: Rojo (Alta pólvora / >= 10.2 remates) */
.match-header-target-btn.target-hot,
.match-header-target-btn.pace-fire {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(244, 63, 94, 0.1) 70%);
    border: 1.5px solid rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), inset 0 0 6px rgba(239, 68, 68, 0.3);
    color: #ef4444;
    animation: targetFirePulseGlow 1.8s infinite ease-in-out;
}

.match-header-target-btn.target-hot:hover,
.match-header-target-btn.pace-fire:hover {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.55) 0%, rgba(239, 68, 68, 0.25) 80%);
    border-color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.95), inset 0 0 8px rgba(239, 68, 68, 0.5);
    transform: scale(1.18);
}

@keyframes targetFirePulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.4), inset 0 0 4px rgba(239, 68, 68, 0.25);
        border-color: rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5);
        border-color: #fca5a5;
    }
}

.match-header-target-btn:active {
    transform: scale(0.95);
}

/* Modal de Remates al Arco (Shots Modal) */
.shots-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.shots-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.shots-modal-card {
    background: linear-gradient(145deg, #0e172a 0%, #070d19 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.shots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.shots-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #38bdf8;
}

.shots-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.shots-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.shots-bar-box {
    margin-bottom: 1rem;
}

.shots-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.shots-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

.shots-bar-home {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    height: 100%;
    transition: width 0.4s ease;
}

.shots-bar-away {
    background: linear-gradient(90deg, #f43f5e, #e11d48);
    height: 100%;
    transition: width 0.4s ease;
}

/* Grilla de Mercado 1X2 Tiros */
.shots-1x2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shots-1x2-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.shots-1x2-card.winner-likely {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.shots-1x2-label {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.shots-1x2-prob {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

/* Grilla de Chips de Mercado */
.shots-market-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shots-market-chip {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.shots-market-chip.hit-likely {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.12);
}

.shots-market-chip.hit-likely-corner {
    border-color: rgba(244, 63, 94, 0.6);
    background: rgba(244, 63, 94, 0.12);
}

/* Tarjetas de Artilleros Clave */
.shots-shooters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shots-shooter-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s ease;
}

.shots-shooter-card.starter-highlight {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.shots-shooter-card.probable-highlight {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.08);
}

.shooter-number-pill {
    background: #334155;
    color: #facc15;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
    border: 1px solid rgba(250, 204, 21, 0.35);
    line-height: 1;
}

.shooter-starter-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.shooter-starter-badge.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.shooter-starter-badge.probable {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.45);
}

.shooter-starter-badge.substitute {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.shooter-streak-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: 5px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    color: #7dd3fc;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.shooter-streak-bar.clickable-streak {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.shooter-streak-bar.clickable-streak:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: #38bdf8;
    border-style: solid;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.shooter-match-item:hover {
    transform: translateX(3px);
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
}

.shooter-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.15rem;
    text-transform: uppercase;
}

.shooter-badge.home-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.shooter-badge.away-badge {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.shooter-prop-chip {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #cbd5e1;
}

.shooter-prop-chip.likely {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.1);
    color: #f8fafc;
}

/* ==========================================================
   MODAL DE MÉTRICAS EN VIVO Y ESTADÍSTICAS TÉCNICAS (LIVE HUNTER)
   ========================================================== */
.match-header-status-col.clickable-status {
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    border-radius: 6px;
}

.match-header-status-col.clickable-status:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.2);
}

.match-header-status-col.clickable-status:active {
    transform: scale(0.98);
}

.live-metrics-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.live-metrics-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.live-metrics-modal-card {
    background: linear-gradient(155deg, #0b1329 0%, #060b17 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.18);
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.live-metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.live-metrics-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-metrics-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.live-metrics-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.live-metrics-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.live-metrics-hero {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.live-metrics-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.live-metrics-team-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-metrics-team-col.away {
    justify-content: flex-end;
    text-align: right;
}

.live-metrics-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.live-metrics-team-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #f8fafc;
}

.live-metrics-score-center {
    text-align: center;
    min-width: 100px;
}

.live-metrics-score-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00e676;
    letter-spacing: 2px;
}

.live-metrics-source-tag {
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.live-stat-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.live-stat-row {
    margin-bottom: 0.75rem;
}

.live-stat-row:last-child {
    margin-bottom: 0;
}

.live-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.live-stat-val-home {
    font-weight: 800;
    color: #38bdf8;
    min-width: 35px;
}

.live-stat-val-away {
    font-weight: 800;
    color: #f43f5e;
    min-width: 35px;
    text-align: right;
}

.live-stat-label {
    color: #94a3b8;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.live-stat-track {
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    display: flex;
    overflow: hidden;
    gap: 2px;
}

.live-stat-fill-home {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    height: 100%;
    border-radius: 999px 0 0 999px;
    transition: width 0.4s ease;
}

.live-stat-fill-away {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    height: 100%;
    border-radius: 0 999px 999px 0;
    transition: width 0.4s ease;
    margin-left: auto;
}

.live-events-box {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.live-event-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.live-event-item:last-child {
    border-bottom: none;
}

.live-event-min {
    font-weight: 800;
    color: #facc15;
    min-width: 32px;
}

.live-event-icon {
    font-size: 0.95rem;
}

.live-event-text {
    flex: 1;
    color: #e2e8f0;
}

.live-event-team-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.live-event-team-pill.home {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.live-event-team-pill.away {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   BTTS COMBO HUNTER - TELEMETRÍA Y AUDITORÍA RESPONSIVE GRIDS
   ========================================================================== */
.btts-telemetry-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.65fr 0.85fr 1fr 0.85fr 1.05fr;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.btts-audit-grid {
    display: grid;
    grid-template-columns: 0.78fr 0.85fr 0.78fr 1.55fr 0.95fr 1.15fr;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

@media (max-width: 960px) {
    .btts-telemetry-grid,
    .btts-audit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .btts-telemetry-grid,
    .btts-audit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   MODAL DE TRANSMISIONES DEPORTIVAS (DÓNDE VER EL PARTIDO)
   ========================================================================== */
.broadcast-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 7, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.broadcast-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.broadcast-modal-card {
    background: linear-gradient(155deg, #0b1329 0%, #060b17 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.18);
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
    animation: broadcastModalEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes broadcastModalEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.broadcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
    margin-bottom: 1.1rem;
}

.broadcast-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.broadcast-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: -0.2px;
}

.broadcast-title-sub {
    font-size: 0.73rem;
    color: #38bdf8;
    font-weight: 600;
}

.broadcast-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.broadcast-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Match Hero */
.broadcast-hero {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.1rem;
    margin-bottom: 1.1rem;
    position: relative;
    overflow: hidden;
}

.broadcast-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
}

.broadcast-hero-league {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.broadcast-hero-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.broadcast-hero-team {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.broadcast-hero-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.broadcast-hero-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.broadcast-hero-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.broadcast-hero-vs {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.broadcast-hero-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.broadcast-time-badge {
    color: #38bdf8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Country Selector Pills */
.broadcast-region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.broadcast-region-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.broadcast-country-pills {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.broadcast-country-pills::-webkit-scrollbar {
    height: 4px;
}
.broadcast-country-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.broadcast-country-pill {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.broadcast-country-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
}

.broadcast-country-pill.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Channels List */
.broadcast-channels-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.broadcast-channel-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.broadcast-channel-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.95);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.broadcast-channel-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.broadcast-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.broadcast-channel-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.broadcast-channel-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.broadcast-channel-side {
    text-align: right;
    flex-shrink: 0;
}

.broadcast-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.broadcast-badge.streaming {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.broadcast-badge.tv-cable,
.broadcast-badge.tv-paga {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.broadcast-badge.abierto {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.broadcast-badge.global,
.broadcast-badge.global-exclusivo {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.broadcast-channel-access {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Footer & Actions */
.broadcast-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.broadcast-telemetry-tag {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.broadcast-telemetry-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.broadcast-btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.broadcast-btn-copy:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

/* No Broadcast / Clean Status Card */
.broadcast-no-signal-card {
    background: radial-gradient(circle at top center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 2.2rem 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.broadcast-no-signal-icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.3));
    animation: broadcastPulse 2s infinite ease-in-out;
}

@keyframes broadcastPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

.broadcast-no-signal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
}

.broadcast-no-signal-sub {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-top: 0.4rem;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.broadcast-no-signal-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

.broadcast-no-signal-tip {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.75rem;
    color: #bae6fd;
    text-align: left;
    margin-top: 1.1rem;
    line-height: 1.4;
}

.broadcast-no-signal-live {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Notice Banner */
.broadcast-notice-banner {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.76rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Metadata pills row */
.broadcast-channel-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.broadcast-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.broadcast-tag-pill.verified {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.broadcast-tag-pill.lang-es {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

/* ==========================================================================
   CANCHA TÁCTICA 2D, RADAR EN VIVO Y MAPA DE TIROS (ESTILO BET365 / SOFASCORE)
   ========================================================================== */

/* Ampliar modal para albergar la cancha panorámica */
.live-metrics-modal-card {
    max-width: 660px;
    padding: 1.25rem;
}

/* Selector de pestañas superior */
.radar-tabs-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
}

.radar-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.55rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.radar-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.radar-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.radar-tab-btn.active.live-pulse {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: tabPulse 2s infinite;
}

@keyframes tabPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.75); }
}

/* Contenedor del terreno de juego */
.pitch-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.55;
    background: repeating-linear-gradient(
        90deg,
        #124827 0px,
        #124827 34px,
        #0e3c20 34px,
        #0e3c20 68px
    );
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7), 0 12px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 0.85rem;
    user-select: none;
}

/* Líneas SVG del campo */
.pitch-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Redes de arco */
.pitch-goal-net {
    position: absolute;
    top: calc(50% - 14%);
    width: 2.5%;
    height: 28%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
}
.pitch-goal-net.home { left: -1px; border-right: none; border-radius: 4px 0 0 4px; }
.pitch-goal-net.away { right: -1px; border-left: none; border-radius: 0 4px 4px 0; }

/* Zonas de Ataque Peligroso animadas */
.pitch-danger-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 32%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 4;
}

.pitch-danger-zone.home {
    right: 0;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0) 0%, rgba(239, 68, 68, 0.35) 100%);
}

.pitch-danger-zone.away {
    left: 0;
    background: linear-gradient(-90deg, rgba(239, 68, 68, 0) 0%, rgba(239, 68, 68, 0.35) 100%);
}

.pitch-danger-zone.active {
    opacity: 1;
    animation: dangerPulsing 1.8s infinite alternate;
}

@keyframes dangerPulsing {
    0% { opacity: 0.4; }
    100% { opacity: 0.9; }
}

/* Flechas direccionales de ataque */
.danger-chevrons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -2px;
    animation: chevronMove 1s infinite linear;
}
.pitch-danger-zone.home .danger-chevrons { right: 25%; }
.pitch-danger-zone.away .danger-chevrons { left: 25%; transform: translateY(-50%) rotate(180deg); }

@keyframes chevronMove {
    0% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.9; transform: translateY(-50%) translateX(6px); }
    100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
}

/* Tira HUD de Micro-Letreros de Telemetría en Vivo (Córners, Tarjetas, Faltas, Tiros) */
.radar-telemetry-hud-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    width: 100%;
}

.radar-telemetry-chip {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 0.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    user-select: none;
}

.radar-telemetry-chip:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(30, 41, 59, 0.85);
}

.radar-telemetry-chip.chip-flash {
    animation: chipFlashGlow 1.2s ease;
}

@keyframes chipFlashGlow {
    0% { transform: scale(1); border-color: rgba(0, 230, 118, 0.85); box-shadow: 0 0 14px rgba(0, 230, 118, 0.55); }
    50% { transform: scale(1.04); border-color: rgba(0, 230, 118, 0.95); box-shadow: 0 0 18px rgba(0, 230, 118, 0.75); }
    100% { transform: scale(1); border-color: rgba(255, 255, 255, 0.08); }
}

.telemetry-chip-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.15rem;
}

.telemetry-chip-icon {
    font-size: 0.8rem;
}

.telemetry-chip-score {
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.telemetry-chip-score .chip-h {
    color: #38bdf8;
}

.telemetry-chip-score .chip-a {
    color: #f43f5e;
}

.telemetry-chip-score .chip-sep {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.telemetry-chip-score .chip-dim {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.telemetry-chip-score .chip-red {
    font-size: 0.68rem;
    color: #ef4444;
    font-weight: 800;
    margin-left: 1px;
}

@media (max-width: 480px) {
    .radar-telemetry-hud-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }
    .telemetry-chip-header {
        font-size: 0.64rem;
    }
    .telemetry-chip-score {
        font-size: 0.78rem;
    }
}

/* HUD Banner de Incidencia en Vivo */
.radar-hud-banner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 19, 41, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 90%;
    gap: 0.5rem;
    z-index: 20;
    pointer-events: none;
    transition: all 0.3s ease;
}

.radar-hud-icon {
    font-size: 1rem;
    animation: bounceIcon 1s infinite alternate;
}

@keyframes bounceIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); }
}

.radar-hud-text {
    font-size: 0.76rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.radar-hud-team {
    color: #38bdf8;
    font-weight: 800;
}

.radar-hud-banner.is-danger {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.4);
}
.radar-hud-banner.is-danger .radar-hud-text {
    color: #fca5a5;
}

.radar-hud-banner.is-goal {
    border-color: rgba(0, 230, 118, 0.8);
    background: rgba(6, 78, 59, 0.9);
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.6);
}
.radar-hud-banner.is-goal .radar-hud-text {
    color: #86efac;
}

.radar-hud-banner.is-yellow {
    border-color: rgba(234, 179, 8, 0.8);
    background: rgba(113, 63, 18, 0.85);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}
.radar-hud-banner.is-yellow .radar-hud-text {
    color: #fef08a;
}

.radar-hud-banner.is-foul {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.radar-hud-banner.is-foul .radar-hud-text {
    color: #fed7aa;
}

.radar-hud-banner.is-keeper {
    border-color: rgba(2, 132, 199, 0.8);
    background: rgba(8, 47, 73, 0.88);
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.5);
}
.radar-hud-banner.is-keeper .radar-hud-text {
    color: #7dd3fc;
}

.radar-hud-banner.is-woodwork {
    border-color: rgba(234, 179, 8, 0.85);
    background: rgba(113, 63, 18, 0.88);
    box-shadow: 0 0 22px rgba(234, 179, 8, 0.55);
}
.radar-hud-banner.is-woodwork .radar-hud-text {
    color: #fef08a;
}

.radar-hud-banner.is-missed {
    border-color: rgba(249, 115, 22, 0.7);
    background: rgba(67, 20, 7, 0.85);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
}
.radar-hud-banner.is-missed .radar-hud-text {
    color: #fdba74;
}

/* Balón en Juego 2D */
.pitch-ball-node {
    position: absolute;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    z-index: 30;
    pointer-events: none;
    transition: none;
}

.pitch-ball-core {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    position: relative;
    animation: ballSpin 1.2s infinite linear;
}

@keyframes ballSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pitch-ball-pulse {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.35);
    border: 1.5px solid rgba(56, 189, 248, 0.8);
    animation: sonarPing 1.5s infinite cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
}

.pitch-ball-node.danger .pitch-ball-pulse {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.9);
}

@keyframes sonarPing {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Cono de Proyección Táctica en Sombra / Abanico de Ataque */
.pitch-ball-cone {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 145px;
    height: 72px;
    margin-top: -36px;
    transform-origin: 0% 50%;
    pointer-events: none;
    z-index: 28;
    opacity: 0.88;
    transition: transform 0.5s ease-out, opacity 0.4s ease;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.52) 0%, rgba(56, 189, 248, 0.2) 50%, rgba(56, 189, 248, 0) 100%);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.pitch-ball-node.danger .pitch-ball-cone {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.62) 0%, rgba(239, 68, 68, 0.25) 50%, rgba(239, 68, 68, 0) 100%);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

/* Ocultar la flecha direccional antigua sobre el balón (solo se conserva el cono de trayectoria) */
.pitch-ball-vector-line,
.pitch-ball-vector-arrow {
    display: none !important;
}

/* Badge Flotante del Nombre del Jugador sobre el Balón */
.pitch-ball-player-badge {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 8px rgba(56, 189, 248, 0.3);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 35;
    transition: all 0.3s ease;
}

.pitch-ball-node.danger .pitch-ball-player-badge {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 10px rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

/* Píldora de Dorsal del Jugador sobre el Balón */
.pitch-ball-player-dorsal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #38bdf8;
    color: #0b131e;
    font-size: 9px;
    font-weight: 900;
    padding: 0 4px;
    height: 14px;
    min-width: 14px;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: -0.2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.pitch-ball-node.danger .pitch-ball-player-dorsal {
    background: #ef4444;
    color: #ffffff;
}

/* Píldora de Dorsal en el HUD Banner Superior */
.radar-hud-player-dorsal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1;
    margin-right: 2px;
}

.radar-hud-banner.is-danger .radar-hud-player-dorsal {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

/* Badge Flotante de Balón Fuera / Tiro Desviado / Saque de Banda */
.pitch-ball-out-badge {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(225, 29, 72, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 8px rgba(225, 29, 72, 0.6);
    pointer-events: none;
    display: none;
    align-items: center;
    gap: 3px;
    z-index: 36;
    animation: pulseOutBadge 1.2s infinite ease-in-out;
}

.pitch-ball-out-badge.visible {
    display: inline-flex !important;
}

@keyframes pulseOutBadge {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.06); }
}

/* Badge Flotante de Tarjeta (Amarilla / Roja) y Falta sobre el Balón */
.pitch-ball-card-badge {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 37;
    animation: pulseOutBadge 1.2s infinite ease-in-out;
}

.pitch-ball-card-badge.visible {
    display: inline-flex !important;
}

.pitch-ball-card-badge.yellow-card {
    background: rgba(202, 138, 4, 0.95);
    border: 1px solid #fef08a;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.7);
    color: #000000;
}

.pitch-ball-card-badge.red-card {
    background: rgba(220, 38, 38, 0.95);
    border: 1px solid #fecaca;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
    color: #ffffff;
}

.pitch-ball-card-badge.foul {
    background: rgba(217, 119, 6, 0.92);
    border: 1px solid #fde68a;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    color: #ffffff;
}

.pitch-ball-card-badge.corner {
    background: rgba(2, 132, 199, 0.95);
    border: 1px solid #7dd3fc;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    color: #ffffff;
}

.pitch-ball-card-badge.penalty {
    background: rgba(192, 38, 211, 0.95);
    border: 1px solid #f0abfc;
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.7);
    color: #ffffff;
}

.pitch-ball-card-badge.keeper-save {
    background: rgba(14, 165, 233, 0.95);
    border: 1.5px solid #7dd3fc;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.75);
    color: #ffffff;
}

.pitch-ball-card-badge.woodwork {
    background: rgba(202, 138, 4, 0.95);
    border: 1.5px solid #fef08a;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.85);
    color: #000000;
}

/* ==========================================================================
   CARTELES INFORMATIVOS DE INCIDENCIAS EN VIVO (BROADCAST TV OVERLAY)
   Aparecen con animación prominente en la base de la cancha y desaparecen
   automáticamente con temporizador suave (Faltas, Córners, Tarjetas, Goles)
   ========================================================================== */
.radar-incident-toast {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: auto;
    min-width: 320px;
    max-width: 90%;
    background: rgba(11, 19, 41, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 0, 0, 0.5);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

.radar-incident-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.radar-incident-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-15px);
    transition: transform 0.4s ease-in, opacity 0.4s ease-in;
}

.incident-toast-badge-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.incident-toast-min {
    font-size: 0.76rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.incident-toast-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.incident-toast-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.incident-toast-type {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.incident-toast-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.incident-toast-title strong {
    color: #f8fafc;
}

.incident-toast-dorsal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #38bdf8;
    color: #0b131e;
    font-size: 9px;
    font-weight: 900;
    padding: 0 4px;
    height: 14px;
    min-width: 14px;
    border-radius: 4px;
    line-height: 1;
}

.incident-toast-timer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.incident-toast-timer-progress {
    height: 100%;
    width: 100%;
    background: #38bdf8;
}

.radar-incident-toast.is-foul {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 14px rgba(245, 158, 11, 0.35);
}
.radar-incident-toast.is-foul .incident-toast-type { color: #fbbf24; }
.radar-incident-toast.is-foul .incident-toast-timer-progress { background: #f59e0b; }

.radar-incident-toast.is-corner {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.4);
}
.radar-incident-toast.is-corner .incident-toast-type { color: #38bdf8; }
.radar-incident-toast.is-corner .incident-toast-timer-progress { background: #38bdf8; }

.radar-incident-toast.is-yellow {
    border-color: rgba(250, 204, 21, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(250, 204, 21, 0.5);
}
.radar-incident-toast.is-yellow .incident-toast-type { color: #fef08a; }
.radar-incident-toast.is-yellow .incident-toast-timer-progress { background: #facc15; }

.radar-incident-toast.is-red {
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.6);
}
.radar-incident-toast.is-red .incident-toast-type { color: #fca5a5; }
.radar-incident-toast.is-red .incident-toast-timer-progress { background: #ef4444; }

.radar-incident-toast.is-goal {
    border-color: rgba(0, 255, 136, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 255, 136, 0.55);
}
.radar-incident-toast.is-goal .incident-toast-type { color: #86efac; }
.radar-incident-toast.is-goal .incident-toast-timer-progress { background: #00ff88; }

.radar-incident-toast.is-penalty {
    border-color: rgba(217, 70, 239, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(217, 70, 239, 0.5);
}
.radar-incident-toast.is-penalty .incident-toast-type { color: #f0abfc; }
.radar-incident-toast.is-penalty .incident-toast-timer-progress { background: #d946ef; }

.radar-incident-toast.is-offside {
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 14px rgba(249, 115, 22, 0.4);
}
.radar-incident-toast.is-offside .incident-toast-type { color: #fdba74; }
.radar-incident-toast.is-offside .incident-toast-timer-progress { background: #f97316; }

.radar-incident-toast.is-missed {
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(249, 115, 22, 0.5);
}
.radar-incident-toast.is-missed .incident-toast-type { color: #fdba74; }
.radar-incident-toast.is-missed .incident-toast-timer-progress { background: #f97316; }

.radar-incident-toast.is-woodwork {
    border-color: rgba(234, 179, 8, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(234, 179, 8, 0.6);
}
.radar-incident-toast.is-woodwork .incident-toast-type { color: #fef08a; }
.radar-incident-toast.is-woodwork .incident-toast-timer-progress { background: #eab308; }

.radar-incident-toast.is-keeper {
    border-color: rgba(14, 165, 233, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(14, 165, 233, 0.55);
}
.radar-incident-toast.is-keeper .incident-toast-type { color: #7dd3fc; }
.radar-incident-toast.is-keeper .incident-toast-timer-progress { background: #0284c7; }

/* Vector Fuera de Límites (Dashed Orange/Red Warning) */
.pitch-ball-vector-line.out-of-bounds {
    background: repeating-linear-gradient(90deg, #f97316 0px, #f97316 6px, transparent 6px, transparent 11px) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.95) !important;
}

.pitch-ball-vector-line.out-of-bounds .pitch-ball-vector-arrow {
    border-left-color: #f97316 !important;
    filter: drop-shadow(0 0 6px #f97316) !important;
}

/* Overlay SVG de Trayectorias del Mapa de Tiros */
.pitch-shotmap-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.pitch-shotmap-lines-svg line {
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* Overlay SVG de Trayectorias en Vivo del Radar 2D (Líneas Láser Reales Visibles) */
.pitch-radar-vectors-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

/* Aura Luminous Glow de la trayectoria */
.radar-glow-vector-line {
    stroke-width: 6.5px !important;
    stroke-linecap: round;
    opacity: 0.45;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.3s ease;
}

/* Haz Láser Principal Activo (Marching Neon Line) */
.radar-active-vector-line {
    stroke-width: 3.2px !important;
    stroke-linecap: round;
    stroke-dasharray: 6 3;
    vector-effect: non-scaling-stroke;
    animation: radarVectorDash 0.75s linear infinite;
    filter: drop-shadow(0 0 6px currentColor);
    transition: all 0.25s ease;
}

/* Conector de Transición Suave entre Jugadores (Fase 1) */
.radar-transitional-vector-line {
    stroke: #94a3b8 !important;
    stroke-width: 2px !important;
    stroke-linecap: round;
    stroke-dasharray: 4 4;
    opacity: 0.6;
    vector-effect: non-scaling-stroke;
    animation: radarVectorDash 1s linear infinite;
}

.radar-active-vector-line.is-danger {
    stroke: #ff2a55 !important;
    filter: drop-shadow(0 0 9px rgba(255, 42, 85, 0.95)) !important;
}

.radar-active-vector-line.is-goal {
    stroke: #00ff88 !important;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.95)) !important;
}

.radar-active-vector-line.is-out {
    stroke: #ff7700 !important;
    stroke-dasharray: 6 4 !important;
    filter: drop-shadow(0 0 9px rgba(255, 119, 0, 0.95)) !important;
}

@keyframes radarVectorDash {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

/* Ondas de Pulso en el Origen del Pase/Tiro (Kick Origin) */
.radar-origin-pulse {
    fill: none;
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
    animation: originPulseAnim 1.6s infinite ease-out;
}

@keyframes originPulseAnim {
    0% { r: 1.0; stroke-width: 2.5px; opacity: 1; }
    100% { r: 4.8; stroke-width: 0.5px; opacity: 0; }
}

/* Marcador de Llegada y Radares de Destino */
.radar-target-dot {
    transition: cx 0.25s ease, cy 0.25s ease;
    filter: drop-shadow(0 0 5px currentColor);
}

.radar-target-ping {
    fill: none;
    stroke-width: 1.8px;
    vector-effect: non-scaling-stroke;
    animation: targetPingAnim 1.4s infinite ease-out;
}

.radar-target-ping.ping-delay {
    animation-delay: 0.7s;
}

@keyframes targetPingAnim {
    0% { r: 1.2; stroke-width: 2.2px; opacity: 1; }
    100% { r: 5.5; stroke-width: 0.5px; opacity: 0; }
}

/* Estela Táctica de Pases y Jugadas Anteriores (Circuito de Pases Conectados) */
.radar-trail-line {
    stroke-width: 2.2px !important;
    stroke-linecap: round;
    stroke-dasharray: 4 3;
    vector-effect: non-scaling-stroke;
    opacity: 0.42;
    filter: drop-shadow(0 0 3px currentColor);
    transition: opacity 0.5s ease;
}

.radar-trail-line.trail-faded {
    opacity: 0.22 !important;
    stroke-width: 1.6px !important;
}

.radar-trail-dot {
    opacity: 0.55;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px currentColor);
}

.radar-hud-player {
    font-weight: 700;
    color: #38bdf8;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.radar-hud-banner.is-danger .radar-hud-player {
    color: #fca5a5;
}
.radar-hud-banner.is-goal .radar-hud-player {
    color: #86efac;
}

/* Fichas de Jugadores (Cancha Táctica 22 Jugadores) */
.pitch-player-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: auto;
    height: auto;
    pointer-events: auto;
}

.pitch-player-pin:hover {
    transform: translate(-50%, -50%) scale(1.22);
    z-index: 25;
}

.pitch-player-jersey {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #38bdf8;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.pitch-player-pin.home .pitch-player-jersey {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #7dd3fc;
}

.pitch-player-pin.away .pitch-player-jersey {
    background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
    border-color: #fda4af;
}

.pitch-player-pin.is-gk .pitch-player-jersey {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-color: #fef08a;
    color: #000;
}

.pitch-player-name {
    margin-top: 3px;
    background: rgba(11, 19, 41, 0.94);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2px;
}

/* Puntos de Remate (Shot Map) */
.pitch-shot-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 50%;
    z-index: 12;
    cursor: pointer;
    box-shadow: 0 0 10px currentColor;
    transition: transform 0.2s;
}

.pitch-shot-dot:hover {
    transform: scale(1.6);
    z-index: 30;
}

.pitch-shot-dot.goal { background: #00e676; color: #00e676; }
.pitch-shot-dot.saved { background: #38bdf8; color: #38bdf8; }
.pitch-shot-dot.missed { background: #ef4444; color: #ef4444; }
.pitch-shot-dot.blocked { background: #94a3b8; color: #94a3b8; }
.pitch-shot-dot.post { background: #facc15; color: #facc15; }

/* Barra de Relato Ticker en Vivo */
.radar-ticker-bar {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.radar-ticker-min {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.radar-ticker-text {
    font-size: 0.78rem;
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

/* Leyenda del Mapa de Tiros */
.radar-shotmap-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    color: #cbd5e1;
}

.shotmap-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shotmap-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.shotmap-legend-dot.goal { background: #00e676; box-shadow: 0 0 6px #00e676; }
.shotmap-legend-dot.saved { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.shotmap-legend-dot.missed { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.shotmap-legend-dot.blocked { background: #94a3b8; }
.shotmap-legend-dot.post { background: #facc15; box-shadow: 0 0 6px #facc15; }

/* Tooltip emergente para tiros con posicionamiento adaptativo */
.radar-shot-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 260px;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 6px rgba(56, 189, 248, 0.2);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Alineación vertical inteligente: arriba si hay espacio, abajo si está cerca del borde superior */
.radar-shot-tooltip.v-top {
    bottom: calc(100% + 6px);
    top: auto;
}
.radar-shot-tooltip.v-bottom {
    top: calc(100% + 6px);
    bottom: auto;
}

/* Alineación horizontal inteligente: si está a la izquierda se expande a la derecha, y viceversa */
.radar-shot-tooltip.h-left {
    left: 2px;
    right: auto;
    transform: translateX(0);
}
.radar-shot-tooltip.h-right {
    left: auto;
    right: 2px;
    transform: translateX(0);
}
.radar-shot-tooltip.h-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.pitch-shot-dot:hover .radar-shot-tooltip,
.pitch-shot-dot.active .radar-shot-tooltip {
    opacity: 1;
}

@media (max-width: 600px) {
    .live-metrics-modal-card {
        padding: 0.85rem;
    }
    .pitch-player-pin {
        width: auto;
        height: auto;
    }
    .pitch-player-jersey {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }
    .pitch-player-name {
        font-size: 0.6rem;
        max-width: 65px;
        padding: 1px 4px;
        line-height: 1.25;
    }
    .radar-tab-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.3rem;
    }
}

/* ==========================================================================
   RESUMEN DE PARTIDO Y REPRODUCTOR DE VIDEOS (.mp4 / .m3u8 CDN)
   ========================================================================== */
.recap-view-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.recap-media-block {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    backdrop-filter: blur(10px);
}

.recap-player-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recap-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.recap-current-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recap-video-badge {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.recap-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recap-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.recap-playlist-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #94a3b8;
    margin: 0.85rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recap-playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

.recap-video-thumb-card {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recap-video-thumb-card:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.recap-video-thumb-card.active {
    background: rgba(14, 165, 233, 0.22) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 1.5px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.4) !important;
}

.recap-video-thumb-card.active .recap-thumb-overlay .play-icon {
    background: #0284c7 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7) !important;
}

.recap-thumb-img-wrap {
    position: relative;
    width: 72px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recap-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recap-thumb-placeholder {
    font-size: 1.2rem;
    opacity: 0.6;
}

.recap-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.recap-video-thumb-card:hover .recap-thumb-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.recap-thumb-overlay .play-icon {
    font-size: 0.75rem;
    color: #fff;
    background: rgba(14, 165, 233, 0.85);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.recap-thumb-img-wrap .recap-video-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.8);
}

.recap-thumb-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recap-thumb-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recap-thumb-tag {
    font-size: 0.64rem;
    color: #38bdf8;
    font-weight: 600;
}

.recap-story-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    backdrop-filter: blur(10px);
}

.recap-story-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recap-story-badge {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
}

.recap-story-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.recap-story-lead {
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #38bdf8;
}

.recap-story-body {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
}

.recap-story-body p {
    margin-bottom: 0.75rem;
}

.recap-story-body strong {
    color: #e2e8f0;
}

.radar-tab-badge {
    background: #f43f5e;
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 3px;
    font-weight: 800;
}

/* ==========================================================================
   MODAL DE GOLES Y MARCADORES EXACTOS (GOALS INSIGHT)
   ========================================================================== */
.insight-score-banner.clickable-score {
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-score-banner.clickable-score:hover {
    background: rgba(234, 179, 8, 0.16);
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.25);
}

.goals-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.goals-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.goals-modal-card {
    background: linear-gradient(145deg, #0e172a 0%, #060b16 100%);
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 40px rgba(250, 204, 21, 0.18);
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.goals-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #facc15;
}

.goals-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.goals-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Grid de Marcadores Exactos */
.exact-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.exact-score-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.5rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.exact-score-card:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.exact-score-card.projected {
    border: 1px solid #facc15;
    background: rgba(234, 179, 8, 0.14);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}

.exact-score-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.exact-score-prob {
    font-size: 0.8rem;
    font-weight: 800;
    color: #38bdf8;
    margin-top: 2px;
}

.exact-score-odd {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 1px;
}

.exact-score-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 3px;
    display: inline-block;
    text-transform: uppercase;
}

.exact-score-badge.home {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.exact-score-badge.draw {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.exact-score-badge.away {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}

.exact-score-projected-tag {
    position: absolute;
    top: 0; right: 0;
    background: #facc15;
    color: #0f172a;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 5px;
    border-bottom-left-radius: 5px;
}

/* ==========================================================================
   MINI TARJETAS - ANALÍTICA CUANTITATIVA DE GOLES
   ========================================================================== */
.goals-group-container {
    margin-top: 1.15rem;
    margin-bottom: 0.85rem;
}

.goals-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    padding: 0 2px;
}

.goals-view-nav {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
}

.goals-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.goals-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.goals-tab-btn.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.2) 100%);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #facc15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.goals-mini-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    padding: 0.65rem 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.goals-mini-card:hover {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.goals-mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.15rem;
}

.goals-mini-card.global {
    border-color: rgba(56, 189, 248, 0.25);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.goals-mini-card.home {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.goals-mini-card.away {
    border-color: rgba(244, 63, 94, 0.3);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.goals-mini-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.goals-mini-card .shots-market-chip {
    padding: 0.4rem 0.55rem;
    font-size: 0.73rem;
}

.goals-mini-card.home .shots-market-chip.hit-likely,
.goals-mini-card.home .shots-market-chip.hit-likely-corner {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(56, 189, 248, 0.16);
}

.goals-mini-card.away .shots-market-chip.hit-likely,
.goals-mini-card.away .shots-market-chip.hit-likely-corner {
    border-color: rgba(244, 63, 94, 0.65);
    background: rgba(244, 63, 94, 0.16);
}

.goals-mini-card.cards-global {
    border-color: rgba(250, 204, 21, 0.3);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.08) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.goals-mini-card.cards-global .shots-market-chip.hit-likely {
    border-color: rgba(250, 204, 21, 0.65);
    background: rgba(250, 204, 21, 0.16);
}

@media (max-width: 520px) {
    .goals-mini-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VISTA VIP: COMBINADAS TOP (+EV) - TARJETAS Y TELEMETRÍA
   ========================================================================== */
.vip-combos-intro-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(30, 27, 75, 0.6) 50%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vip-combos-telemetry-chips {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.vip-combo-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.vip-combos-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

.vip-combo-ticket-card {
    background: linear-gradient(150deg, #111827 0%, #0b1220 100%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.vip-combo-ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.55);
}

.vip-combo-ticket-card.hit {
    border-color: #10b981;
    background: linear-gradient(150deg, rgba(16, 185, 129, 0.1) 0%, #0b1220 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.22);
}

.vip-combo-ticket-card.live {
    border-color: #38bdf8;
    background: linear-gradient(150deg, rgba(56, 189, 248, 0.1) 0%, #0b1220 100%);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.2);
}

.vip-combo-ticket-card.missed {
    border-color: rgba(239, 68, 68, 0.35);
    opacity: 0.92;
}

.vip-combo-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.vip-combo-strategy-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vip-combo-strategy-badge.strat-double {
    background: rgba(16, 185, 129, 0.15);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.vip-combo-strategy-badge.strat-trident {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.vip-combo-strategy-badge.strat-shield {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.vip-combo-strategy-badge.strat-over25 {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.vip-combo-strategy-badge.strat-shots {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.vip-combo-strategy-badge.strat-elite {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.vip-combo-ticket-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 0.4rem;
    line-height: 1.35;
}

.vip-combo-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    text-align: center;
}

.vip-combo-metric-box .val {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.vip-combo-metric-box .lbl {
    font-size: 0.66rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.vip-combo-legs-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.vip-combo-leg-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s;
}

.vip-combo-leg-row.hit {
    border: 1px solid rgba(16, 185, 129, 0.75) !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.26) 0%, rgba(16, 185, 129, 0.09) 100%) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.28), inset 4px 0 0 #10b981 !important;
    position: relative;
}

.vip-combo-leg-row.hit .vip-combo-leg-teams {
    color: #f0fdf4 !important;
    font-weight: 700;
}

.vip-combo-leg-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background: #10b981;
    color: #064e3b;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
    margin-right: 5px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}

.vip-combo-pick-text {
    color: #fbbf24;
    font-weight: 700;
    transition: color 0.15s;
}

.vip-combo-pick-text.hit {
    color: #4ade80 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.vip-combo-leg-odd.hit {
    color: #4ade80 !important;
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.35);
}

.vip-combo-leg-score-chip {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.45);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-combo-leg-score-chip.hit {
    color: #4ade80;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.vip-combo-leg-row.missed {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.10), rgba(15, 23, 42, 0.6));
    opacity: 0.8;
}

.vip-combo-leg-row.live {
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.6));
    box-shadow: inset 4px 0 0 #38bdf8;
}

.vip-combo-leg-teams {
    font-size: 0.83rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.vip-combo-leg-pick {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.vip-combo-leg-odd {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fbbf24;
    white-space: nowrap;
}

.vip-combo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.75rem;
    margin-top: auto;
}

.vip-combo-copy-action {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vip-combo-copy-action:hover {
    background: rgba(251, 191, 36, 0.25);
    color: #fff;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
    .vip-combos-cards-grid {
        grid-template-columns: 1fr;
    }
    .vip-combo-metrics-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
    .vip-combo-leg-teams {
        max-width: 160px;
    }
}

/* ==========================================================================
   🏀 MÓDULO DE BALONCESTO & LOGROS DE JUGADORES (BET365 STYLE)
   ========================================================================== */

.bball-header-banner {
    position: relative;
    background: radial-gradient(circle at 50% 30%, #1e3a2b 0%, #0d1e16 65%, #08110c 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bball-header-court-lines {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: 
        radial-gradient(circle at 50% 100%, transparent 60px, rgba(255,255,255,0.8) 61px, transparent 62px),
        linear-gradient(to right, transparent 49.5%, rgba(255,255,255,0.8) 49.5%, rgba(255,255,255,0.8) 50.5%, transparent 50.5%);
    pointer-events: none;
}

.bball-match-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.bball-team-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
}

.bball-team-meta.away,
.bball-team-meta.left {
    justify-content: flex-start;
}

.bball-team-meta.home,
.bball-team-meta.right {
    justify-content: flex-end;
    text-align: right;
}

.bball-team-logo-lg {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.bball-team-name-lg {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.bball-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
}

.bball-live-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.4rem;
}

.bball-scheduled-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.4rem;
}

.bball-match-card {
    background: linear-gradient(145deg, #131b2a 0%, #0d121c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    container-type: inline-size;
}

.bball-match-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 230, 118, 0.15);
    z-index: 40;
    overflow: visible;
}

.bball-match-card.card-hit {
    border-color: rgba(0, 230, 118, 0.45) !important;
    background: linear-gradient(145deg, rgba(0, 230, 118, 0.05) 0%, #0d121c 100%);
    box-shadow: 0 4px 18px rgba(0, 230, 118, 0.1);
}
.bball-match-card.card-hit:hover {
    border-color: #00e676 !important;
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 230, 118, 0.25);
    z-index: 50;
    overflow: visible;
}

.bball-match-card.card-missed {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.04) 0%, #0d121c 100%);
}
.bball-match-card.card-missed:hover {
    border-color: #ef4444 !important;
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.6), 0 0 18px rgba(239, 68, 68, 0.2);
    z-index: 50;
    overflow: visible;
}

.bball-card-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bball-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 32px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.bball-header-left {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.bball-header-badge-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

@container (max-width: 345px) {
    .bball-card-header {
        flex-wrap: wrap;
    }
    .bball-header-badge-wrap {
        order: 2;
    }
    .bball-race-strip {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 4px auto 0 auto !important;
    }
}

@media (max-width: 380px) {
    .bball-card-header {
        flex-wrap: wrap;
    }
    .bball-header-badge-wrap {
        order: 2;
    }
    .bball-race-strip {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 4px auto 0 auto !important;
    }
}

/* ==========================================================================
   BASKETBALL RACE TO POINTS STRIP (25, 50, 75, 100 PTS)
   ========================================================================== */
.bball-race-strip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 auto;
    z-index: 10;
    flex-shrink: 0;
}

.bball-race-box {
    position: relative;
    width: 27px;
    height: 29px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.bball-race-box:hover {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.35);
    z-index: 60;
}

.bball-race-box .race-target {
    font-size: 0.60rem;
    font-weight: 900;
    color: #f1f5f9;
    letter-spacing: -0.3px;
}

.bball-race-box .race-leader {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

/* Tooltip tag flotante con las probabilidades de Carrera a X Puntos */
.bball-race-tooltip {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 14px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(14px);
    color: #e2e8f0;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.18s;
    z-index: 99999;
    min-width: 170px;
    text-align: left;
}

.bball-race-box:hover .bball-race-tooltip {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bball-race-box:first-child .bball-race-tooltip {
    left: 0;
    transform: translateY(-3px);
}
.bball-race-box:first-child:hover .bball-race-tooltip {
    transform: translateY(0);
}
.bball-race-box:first-child .bball-race-tooltip::after {
    left: 14px;
    transform: none;
}

.bball-race-box:last-child .bball-race-tooltip {
    left: auto;
    right: 0;
    transform: translateY(-3px);
}
.bball-race-box:last-child:hover .bball-race-tooltip {
    transform: translateY(0);
}
.bball-race-box:last-child .bball-race-tooltip::after {
    left: auto;
    right: 14px;
    transform: none;
}

.bball-race-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.98) transparent;
}

.bball-race-tooltip .race-tip-header {
    font-size: 0.74rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.bball-race-tooltip .race-tip-hint {
    font-size: 0.65rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 2px;
}

.bball-race-tooltip .race-tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
}

.bball-race-tooltip .race-tip-neither {
    font-size: 0.65rem;
    color: #f59e0b;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 2px;
    margin-top: 2px;
}

.bball-race-tooltip .race-tip-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3px;
    margin-top: 3px;
    font-size: 0.70rem;
    color: #cbd5e1;
}

/* ==========================================================================
   ESTADOS DE ACIERTO / FALLO DE CARRERA A PUNTOS (RACE TO POINTS)
   ========================================================================== */
.bball-race-box.race-hit {
    background: rgba(0, 230, 118, 0.22) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.45) !important;
}

.bball-race-box.race-hit .race-target {
    color: #a7f3d0 !important;
}

.bball-race-box.race-hit .race-leader {
    color: #00e676 !important;
    font-weight: 900 !important;
}

.bball-race-box.race-missed {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important;
    opacity: 0.85;
}

.bball-race-box.race-missed:hover {
    opacity: 1;
}

.bball-race-box.race-missed .race-target {
    color: #fca5a5 !important;
}

.bball-race-box.race-missed .race-leader {
    color: #f87171 !important;
    text-decoration: line-through;
}

.bball-race-box.race-live-hit {
    background: rgba(0, 230, 118, 0.26) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.55) !important;
}

.bball-race-box.race-live-hit .race-leader {
    color: #00e676 !important;
    font-weight: 900 !important;
}

.bball-race-box.race-live-active {
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3) !important;
}

.bball-race-tooltip .race-tip-status {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
}

.bball-race-tooltip .race-tip-status.hit {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.bball-race-tooltip .race-tip-status.missed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.bball-race-tooltip .race-tip-status.live {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.bball-race-tooltip .race-tip-status.pending {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.bball-lines-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.bball-line-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bball-line-lbl {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.bball-line-val {
    font-weight: 800;
    color: #fbbf24;
}

/* BET365 PLAYER PROPS TABS & MATRIX */
.bball-props-container {
    background: #14161b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.25rem;
}

.bball-props-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bball-props-header-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bball-props-nav-tabs {
    display: flex;
    overflow-x: auto;
    background: #101217;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0 0.75rem;
    scrollbar-width: none;
}

.bball-props-nav-tabs::-webkit-scrollbar {
    display: none;
}

.bball-prop-tab-btn {
    background: transparent;
    border: none;
    color: #8f9cae;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bball-prop-tab-btn:hover {
    color: #fff;
}

.bball-prop-tab-btn.active {
    color: #ffffff;
    font-weight: 800;
}

.bball-prop-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: #00e676;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

/* ==========================================================================
   BASKETBALL STANDINGS TABLE (TABLA DE POSICIONES OFICIAL)
   ========================================================================== */
.bball-standings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c121e;
    margin-top: 0.35rem;
}

.bball-standings-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.bball-standings-table-wrap::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 3px;
}

.bball-standings-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 3px;
}

.bball-standings-table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

.bball-standings-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 0.82rem;
    white-space: nowrap;
}

.bball-standings-table th {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}

.bball-standings-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 0.80rem;
    line-height: 1.2;
}

.bball-standings-table tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

/* TABLE MATRIX */
.bball-matrix-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.bball-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 480px;
}

.bball-matrix-table th {
    background: #181b22;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: capitalize;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bball-matrix-table th.col-player {
    text-align: left;
    width: 42%;
    padding-left: 1.25rem;
}

.bball-matrix-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    vertical-align: middle;
}

.bball-matrix-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bball-player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding-left: 0.5rem;
}

.bball-jersey-badge {
    width: 32px;
    height: 38px;
    background: #1e293b;
    border-radius: 4px 4px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    flex-shrink: 0;
    position: relative;
}

.bball-player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bball-player-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.bball-player-sub {
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bball-last5-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.bball-l5-pill {
    background: #232732;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    min-width: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bball-l5-pill.hit {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.4);
}

/* BET365 ODDS BUTTON */
.bball-odd-box {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 6px;
    padding: 0.55rem 0.4rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 58px;
    user-select: none;
}

.bball-odd-box:hover {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
}

.bball-odd-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
}

.bball-ev-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
}

/* BET365 SELECTED CHECKMARK */
.bball-odd-box.selected {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.bball-odd-box.selected .bball-odd-val {
    display: none;
}

.bball-odd-box.selected .bball-ev-badge,
.bball-odd-box.selected .bball-odd-prob {
    display: none;
}

.bball-odd-box.selected::after {
    content: '✓';
    font-size: 1.15rem;
    font-weight: 900;
    color: #059669;
}

.bball-odd-prob {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
}

.bball-odd-prob.prob-high {
    color: #00e676;
    background: rgba(0, 230, 118, 0.14);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.bball-odd-prob.prob-med {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.bball-odd-prob.prob-low {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.bball-expected-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    margin-top: 2px;
    width: fit-content;
}

.bball-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.bball-form-badge.clickable {
    cursor: pointer;
}

.bball-form-badge.clickable:hover {
    transform: translateY(-2px) scale(1.12);
    filter: brightness(1.18);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.35);
}

.bball-form-badge.win {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.bball-form-badge.loss {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

.bball-team-l5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.bball-team-l5-card {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.85rem;
}

.bball-l5-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.42rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.bball-l5-match-row.clickable {
    cursor: pointer;
}

.bball-l5-match-row.clickable:hover {
    background: rgba(56, 189, 248, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(2px);
}

.bball-stat-compare-row {
    margin-bottom: 0.7rem;
}

.bball-stat-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 0.28rem;
}

.bball-stat-bar-dual {
    display: flex;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: #232834;
    gap: 2px;
}

.bball-ai-top-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 230, 118, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* BPI BAR */
.bball-bpi-meter {
    background: #171a21;
    border-radius: 8px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.bball-bpi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.bball-bpi-bar-track {
    height: 10px;
    background: #252a36;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
}

.bball-bpi-away-fill {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    transition: width 0.6s ease;
}

.bball-bpi-home-fill {
    background: linear-gradient(90deg, #34d399, #00e676);
    transition: width 0.6s ease;
}






