/**
 * Central de Eleições 2026 — Estilos do Modo Live / Estúdio de TV / OBS
 * Interface de estúdio profissional com alto contraste, glassmorphism e modos específicos.
 */

:root {
    --live-bg: #050811;
    --live-panel: rgba(14, 20, 38, 0.92);
    --live-panel-glass: rgba(18, 26, 48, 0.75);
    --live-border: rgba(255, 255, 255, 0.12);
    --live-border-glow: rgba(0, 210, 255, 0.3);
    --live-accent: #00d2ff;
    --live-gold: #ffaa00;
    --live-red: #ef4444;
    --live-green: #10b981;
    --live-text-primary: #ffffff;
    --live-text-muted: #94a3b8;
    --live-glow: 0 0 25px rgba(0, 210, 255, 0.35);
}

/* ==========================================================================
   Base e Modos Globais
   ========================================================================== */
body.live-body {
    background-color: var(--live-bg);
    background-image: 
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(0, 150, 255, 0.12), transparent 70%),
        radial-gradient(circle at 10% 90%, rgba(30, 58, 138, 0.1), transparent 50%);
    background-attachment: fixed;
    color: var(--live-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Modo Chroma Key / Fundo Verde para OBS */
body.live-body.chroma-mode {
    background-color: #00ff00 !important;
    background-image: none !important;
}

/* Modo Overlay OBS Transparente */
body.live-body[data-live-mode="overlay"] {
    background: transparent !important;
    background-image: none !important;
}
body.live-body[data-live-mode="overlay"] .live-controls-bar {
    opacity: 0.15;
    transition: opacity 0.25s ease;
}
body.live-body[data-live-mode="overlay"] .live-controls-bar:hover {
    opacity: 1;
}

/* ==========================================================================
   Barra Superior de Controles da Live
   ========================================================================== */
.live-controls-bar {
    background: rgba(9, 13, 26, 0.94);
    border-bottom: 1px solid var(--live-border);
    backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.live-ctrl-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.live-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.live-back-link:hover {
    opacity: 0.85;
}
.live-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00d2ff, #3b82f6);
    color: #040e1b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}
.live-brand-name strong {
    color: var(--live-accent);
}

.live-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: livePulse 1.2s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.live-clock {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--live-accent);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.live-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--live-text-muted);
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.countdown-spinner {
    width: 8px;
    height: 8px;
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-top-color: var(--live-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Seletor de Modos */
.live-ctrl-modes {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
}
.btn-live-mode {
    background: transparent;
    border: none;
    color: var(--live-text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-live-mode.is-active {
    background: var(--live-accent);
    color: #040e1b;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}
.btn-live-mode:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-ctrl-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--live-border);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-ctrl-action:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-ctrl-action.is-active {
    border-color: var(--live-accent);
    color: var(--live-accent);
}

/* ==========================================================================
   Container Palco Principal
   ========================================================================== */
.live-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

/* ==========================================================================
   Header de Estúdio
   ========================================================================== */
.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(16, 23, 44, 0.95), rgba(9, 13, 26, 0.98));
    border: 1px solid var(--live-border);
    border-radius: 18px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}
.live-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #3b82f6, #00e676);
}

.live-header-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.live-brand-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d2ff, #1d4ed8);
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}
.live-brand-tse {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}
.live-brand-year {
    font-size: 1.15rem;
    font-weight: 900;
}

.live-main-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
}
.live-main-title strong {
    color: var(--live-accent);
}
.live-main-title .sub-lead {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.live-header-meta {
    margin: 0.3rem 0 0;
    font-size: 0.72rem;
    color: var(--live-text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Hero Apuração Totalizada */
.live-tally-hero {
    min-width: 320px;
    flex: 1;
    max-width: 480px;
}
.tally-hero-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.4rem;
}
.tally-hero-titles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.tally-hero-label {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--live-text-muted);
    letter-spacing: 0.1em;
}
.tally-hero-status {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--live-green);
    letter-spacing: 0.04em;
}
.tally-hero-big {
    font-family: 'Outfit', sans-serif;
    font-size: 2.35rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tally-hero-big .big-num {
    color: var(--live-accent);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}
.tally-hero-big .pct-sign {
    font-size: 1.35rem;
    color: var(--live-text-muted);
    margin-left: 2px;
}
.tally-hero-bar-wrap {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.tally-hero-bar {
    height: 100%;
    background: linear-gradient(90deg, #0070f3, #00d2ff, #00e676);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}
.tally-hero-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--live-text-muted);
    margin-top: 0.45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   DUELO ARENA (1º x 2º LUGAR + TUG-OF-WAR)
   ========================================================================== */
.live-duel-arena {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px) 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.duel-card {
    background: var(--live-panel);
    border: 2px solid var(--live-border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: all 0.3s ease;
}
.duel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--cand-color);
    box-shadow: 0 0 15px var(--cand-color);
}
.duel-rank-badge {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--live-text-muted);
}
.duel-card-leader .duel-rank-badge {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
}

.duel-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.duel-avatar {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--cand-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: #1e293b;
}
.duel-cand-num {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--cand-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 2px solid #050811;
}

.duel-cand-details {
    flex: 1;
    min-width: 0;
}
.duel-cand-name {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.duel-cand-party {
    display: block;
    font-size: 0.82rem;
    color: var(--live-text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}
.duel-votes-block {
    margin-top: 0.85rem;
}
.duel-pct-display {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
.duel-pct-display .pct-unit {
    font-size: 1.7rem;
    color: var(--live-text-muted);
}
.duel-total-votes {
    display: block;
    font-size: 0.85rem;
    color: var(--live-text-muted);
    margin-top: 0.35rem;
    font-variant-numeric: tabular-nums;
}
.duel-total-votes strong {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

/* Ponte Central de Diferença + Tug-of-War */
.duel-vs-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0 0.5rem;
}
.duel-diff-card {
    background: rgba(14, 20, 38, 0.95);
    border: 1px solid var(--live-border);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.diff-title {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--live-text-muted);
}
.diff-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--live-green);
    margin: 0.2rem 0;
    font-variant-numeric: tabular-nums;
}
.diff-pct {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

/* Barra Tug-of-War (Batalha Proporcional) */
.duel-tow-wrap {
    width: 100%;
}
.duel-tow-bar {
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    position: relative;
    display: flex;
    overflow: hidden;
}
.duel-tow-fill-left, .duel-tow-fill-right {
    height: 100%;
    transition: width 0.8s ease;
}
.duel-tow-needle {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 4px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    transform: translateX(-50%);
    transition: left 0.8s ease;
    z-index: 2;
}
.duel-tow-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--live-text-muted);
    margin-top: 0.4rem;
    font-variant-numeric: tabular-nums;
}
.duel-50pct-marker {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--live-gold);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.marker-line {
    width: 8px;
    height: 2px;
    background: var(--live-gold);
}

/* ==========================================================================
   Gráfico de Evolução ao Vivo
   ========================================================================== */
.live-panel-chart {
    background: var(--live-panel);
    border: 1px solid var(--live-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.panel-header-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.65rem;
}
.panel-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.panel-title-live {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.panel-sub-live {
    font-size: 0.75rem;
    color: var(--live-text-muted);
    font-weight: 500;
}
.live-chart-canvas {
    background: rgba(4, 8, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 14px;
    overflow-x: auto;
}

/* ==========================================================================
   Destaques Governadores (Top 5)
   ========================================================================== */
.live-panel-hot-govs {
    background: var(--live-panel);
    border: 1px solid var(--live-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.btn-see-all-govs {
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--live-accent);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-see-all-govs:hover {
    background: var(--live-accent);
    color: #040e1b;
}

.live-hot-govs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.hot-gov-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hot-gov-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}
.hgc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.hgc-uf-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(0, 210, 255, 0.2);
    border: 1px solid rgba(0, 210, 255, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
}
.hgc-status-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.hgc-status-pill.is-ok {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}
.hgc-status-pill.is-2t {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.hgc-lead {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hgc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #1e293b;
    border: 2px solid var(--live-accent);
}
.hgc-lead-info {
    flex: 1;
    min-width: 0;
}
.hgc-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hgc-party {
    font-size: 0.72rem;
    color: var(--live-text-muted);
}
.hgc-pct {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--live-accent);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Hub Completo de Governadores (Modo Governors)
   ========================================================================== */
.live-panel-govs-hub {
    display: none;
    background: var(--live-panel);
    border: 1px solid var(--live-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.gov-search-wrap {
    min-width: 240px;
}
.live-gov-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    color: #fff;
    font-size: 0.82rem;
    box-sizing: border-box;
}
.live-gov-search-input:focus {
    outline: none;
    border-color: var(--live-accent);
}

.live-region-filters {
    display: flex;
    gap: 6px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}
.btn-region-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--live-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-region-pill.is-active, .btn-region-pill:hover {
    background: var(--live-accent);
    color: #040e1b;
}

.live-gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

/* ==========================================================================
   Demais Candidatos & Métricas
   ========================================================================== */
.live-grid-lower {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}
.live-panel-other-cands, .live-panel-metrics {
    background: var(--live-panel);
    border: 1px solid var(--live-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.live-cands-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.4rem;
}
.live-cand-row {
    display: grid;
    grid-template-columns: 28px 42px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s;
}
.live-cand-row:hover {
    background: rgba(255, 255, 255, 0.07);
}
.row-rank {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--live-text-muted);
}
.row-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--party-col);
    background: #1e293b;
}
.row-info {
    min-width: 0;
}
.row-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}
.row-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.row-party {
    color: var(--live-text-muted);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}
.row-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.row-bar-fill {
    height: 100%;
    background: var(--party-col);
    border-radius: 999px;
}
.row-metric {
    text-align: right;
    min-width: 90px;
    font-variant-numeric: tabular-nums;
}
.row-pct {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1;
}
.row-votes {
    display: block;
    font-size: 0.7rem;
    color: var(--live-text-muted);
    margin-top: 0.2rem;
}

/* Métricas Consolidadas */
.live-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.live-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem;
    font-variant-numeric: tabular-nums;
}
.live-metric-box.highlight-live {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(59, 130, 246, 0.1));
    border-color: rgba(0, 210, 255, 0.3);
}
.lm-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--live-text-muted);
}
.lm-val {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: #fff;
    margin: 0.2rem 0;
}
.lm-pct {
    display: block;
    font-size: 0.72rem;
    color: var(--live-accent);
    font-weight: 600;
}

/* Exterior Ticker */
.live-zz-box {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-variant-numeric: tabular-nums;
}
.zz-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.zz-header strong {
    color: var(--live-accent);
}
.zz-bar-track {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.zz-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #00d2ff);
    border-radius: 999px;
}
.zz-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--live-text-muted);
    margin-top: 0.4rem;
}

/* ==========================================================================
   OBS Lower Third Overlay Widget
   ========================================================================== */
.obs-lower-third-overlay {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    background: rgba(6, 10, 22, 0.94);
    border: 2px solid var(--live-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 210, 255, 0.35);
    border-radius: 16px;
    padding: 12px 20px;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}
.lt-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.lt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.2s infinite;
}
.lt-tally {
    display: flex;
    flex-direction: column;
}
.lt-tally-label {
    font-size: 0.65rem;
    color: var(--live-text-muted);
    font-weight: 800;
}
.lt-tally-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--live-accent);
    line-height: 1;
}
.lt-candidates {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}
.lt-cand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lt-rank {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--live-gold);
}
.lt-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}
.lt-pct {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--live-accent);
}
.lt-sep {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--live-text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}
.lt-diff {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.lt-diff-label {
    font-size: 0.65rem;
    color: var(--live-text-muted);
    font-weight: 800;
}
.lt-diff-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--live-green);
    line-height: 1.1;
}

/* ==========================================================================
   Ticker Marquee Footer
   ========================================================================== */
.live-ticker-footer {
    display: flex;
    align-items: center;
    background: #04060d;
    border: 1px solid var(--live-border);
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.ticker-badge {
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ticker-marquee-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0 1rem;
}
.ticker-marquee-content {
    display: inline-block;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    animation: marqueeMove 32s linear infinite;
}
@keyframes marqueeMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Flash de atualização de número */
.number-flash {
    animation: numberFlashPulse 0.8s ease;
}
@keyframes numberFlashPulse {
    0% { color: #00e676; text-shadow: 0 0 20px #00e676; transform: scale(1.05); }
    100% { color: inherit; text-shadow: none; transform: scale(1); }
}

/* ==========================================================================
   VISIBILIDADE ESPECÍFICA POR MODO
   ========================================================================== */

/* 1. MODO DUEL (1x1 Gigante) */
body.live-body[data-live-mode="duel"] .live-panel-chart,
body.live-body[data-live-mode="duel"] .live-panel-hot-govs,
body.live-body[data-live-mode="duel"] .live-panel-govs-hub,
body.live-body[data-live-mode="duel"] .live-grid-lower {
    display: none;
}
body.live-body[data-live-mode="duel"] .duel-card {
    padding: 2.2rem 2rem;
}
body.live-body[data-live-mode="duel"] .duel-avatar {
    width: 135px;
    height: 135px;
}
body.live-body[data-live-mode="duel"] .duel-pct-display {
    font-size: 4.2rem;
}
body.live-body[data-live-mode="duel"] .duel-cand-name {
    font-size: 2.2rem;
}

/* 2. MODO GOVERNORS (Central Estadual 27 UFs) */
body.live-body[data-live-mode="governors"] .live-duel-arena,
body.live-body[data-live-mode="governors"] .live-panel-chart,
body.live-body[data-live-mode="governors"] .live-panel-hot-govs,
body.live-body[data-live-mode="governors"] .live-grid-lower {
    display: none;
}
body.live-body[data-live-mode="governors"] .live-panel-govs-hub {
    display: block;
}

/* 3. MODO CHART (Tendência & Linha do Tempo) */
body.live-body[data-live-mode="chart"] .live-duel-arena,
body.live-body[data-live-mode="chart"] .live-panel-hot-govs,
body.live-body[data-live-mode="chart"] .live-panel-govs-hub,
body.live-body[data-live-mode="chart"] .live-grid-lower {
    display: none;
}
body.live-body[data-live-mode="chart"] .live-chart-canvas {
    min-height: 480px;
}

/* 4. MODO OVERLAY OBS (Transmissão Transparente) */
body.live-body[data-live-mode="overlay"] .live-header,
body.live-body[data-live-mode="overlay"] .live-duel-arena,
body.live-body[data-live-mode="overlay"] .live-panel-chart,
body.live-body[data-live-mode="overlay"] .live-panel-hot-govs,
body.live-body[data-live-mode="overlay"] .live-panel-govs-hub,
body.live-body[data-live-mode="overlay"] .live-grid-lower,
body.live-body[data-live-mode="overlay"] .live-ticker-footer {
    display: none !important;
}
body.live-body[data-live-mode="overlay"] .obs-lower-third-overlay {
    display: flex;
}

/* ==========================================================================
   Modal de Detalhes dos Governadores
   ========================================================================== */
.live-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.live-modal-backdrop.is-open {
    display: flex;
}
.live-modal-content {
    background: #0b1020;
    border: 2px solid var(--live-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.live-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.live-modal-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
}
.live-modal-sub {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--live-text-muted);
}
.btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.4);
}
.live-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Toast */
.live-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #040e1b;
    border: 1px solid var(--live-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.live-toast.is-show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Responsividade Mobile First
   ========================================================================== */
@media (max-width: 1024px) {
    .live-duel-arena {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .duel-vs-bridge {
        padding: 0.5rem 0;
    }
    .live-grid-lower {
        grid-template-columns: 1fr;
    }
    .obs-lower-third-overlay {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .live-controls-bar {
        padding: 0.5rem 0.85rem;
        flex-direction: column;
        gap: 0.6rem;
    }
    .live-ctrl-group {
        width: 100%;
        justify-content: space-between;
    }
    .live-ctrl-modes {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .live-header {
        padding: 1rem;
    }
    .duel-card {
        padding: 1rem;
        gap: 1rem;
    }
    .duel-avatar {
        width: 80px;
        height: 80px;
    }
    .duel-cand-name {
        font-size: 1.35rem;
    }
    .duel-pct-display {
        font-size: 2.3rem;
    }
    .live-metrics-grid {
        grid-template-columns: 1fr;
    }
}
