/* ==========================================================================
   StatsGreen — Live Scores & Tag AO VIVO
   Design System: Terminal Analítico Dark / Alto Desempenho
   ========================================================================== */

.badge-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-live-pulse.is-interval {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    animation: livePulse 1.6s infinite ease-out;
}

.is-interval .live-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8);
    animation: livePulseAmber 1.6s infinite ease-out;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes livePulseAmber {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Placar individual nos cards dos Jogos do Dia - Centralização Geométrica Perfeita */
.daily-team-row b {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    background: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    justify-self: end !important;
    vertical-align: middle !important;
    transition: all 0.25s ease;
}

/* Destaque vibrante quando o jogo está ao vivo */
.is-match-live .daily-team-row b,
.daily-team-row b.score-live-highlight {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    color: #4ade80 !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3) !important;
}

/* Oculta totalmente quando vazio ou marcado como is-hidden */
.daily-team-row b.is-hidden,
.daily-team-row b:empty,
b.score-box.is-hidden,
b.score-box:empty {
    display: none !important;
}

.daily-match-card.is-match-live {
    border-color: rgba(34, 197, 94, 0.35) !important;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, rgba(20, 20, 22, 0.98) 100%) !important;
}

.daily-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-card-meta .badge-live-pulse {
    margin-right: 2px;
}

/* Placar texto geral */
.live-score-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    transition: color 0.3s ease;
}

.live-score-val.score-live-highlight {
    color: #4ade80 !important;
}

/* Links interativos para análise de partida */
.opp-analysis-link {
    color: #f8fafc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.opp-analysis-link:hover {
    color: #22c55e !important;
}

.opp-analysis-link i {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.opp-analysis-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Banner de Live na Tela de Análise */
.analise-live-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 999px;
    padding: 4px 14px;
    margin: 6px auto 12px auto;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.18);
}

.analise-live-status-label {
    font-size: 0.78rem;
    color: #f8fafc;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Placar Digital Compacto (~40% menor) Estilo E (Tela de Análise) */
.match-score-container-e {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 4px 0 14px 0;
    width: 100%;
}

.match-score-team-name {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.match-score-digital-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.match-score-card {
    min-width: 46px;
    height: 48px;
    padding: 0 10px;
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.match-score-number {
    font-size: 1.95rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Destaque Ao Vivo no Placar da Análise (Elegante e Contido) */
.is-match-live .match-score-card {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.18), inset 0 1px 2px rgba(34, 197, 94, 0.12) !important;
}

.is-match-live .match-score-number {
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.32);
}

.match-score-divider-e {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.match-score-ht-pill {
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

.team-standing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .match-score-team-name {
        font-size: 1.35rem;
    }
    
    .match-score-card {
        min-width: 40px;
        height: 42px;
        padding: 0 8px;
    }
    
    .match-score-number {
        font-size: 1.65rem;
    }
    
    .match-score-container-e {
        gap: 12px;
    }
}

/* Botão de Filtro Ao Vivo (Jogos do Dia) */
.daily-live-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    border: var(--border-default);
    border-radius: 8px;
    background: var(--bg-absolute);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.daily-live-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.daily-live-filter-btn.active {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.daily-live-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.60rem;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s ease;
}

.daily-live-filter-btn.has-live-matches .daily-live-count-badge,
.daily-live-filter-btn.active .daily-live-count-badge {
    background: #ef4444;
    color: #ffffff;
}

:root[data-theme="light"] .daily-live-filter-btn {
    background: var(--sg-surface);
    border-color: var(--sg-border);
    color: var(--sg-text-secondary);
}

:root[data-theme="light"] .daily-live-filter-btn:hover {
    background: var(--sg-surface-elevated);
    color: var(--sg-text-primary);
    border-color: var(--sg-text-muted);
}

:root[data-theme="light"] .daily-live-filter-btn.active {
    background: rgba(220, 38, 38, 0.10) !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    color: #b91c1c !important;
}

:root[data-theme="light"] .daily-live-count-badge {
    background: rgba(24, 24, 27, 0.08);
    color: var(--sg-text-primary);
}
