/* ====================================================================== */
/* CARDS DE PARTIDA AO VIVO — ESTILO SENSOR FIFA (TAMANHO MAIOR) */
/* ====================================================================== */

/* ===== FILTROS ===== */
.live-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.live-filter-btn {
    font-size: var(--fs-xs);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.live-filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.live-filter-btn.active {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    font-weight: 600;
}
.live-filter-btn .count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-left: 4px;
}
.live-filter-btn.active .count {
    color: var(--bg-body);
}

/* ===== LIVE CONTAINER (GRID VERTICAL) ===== */
.live-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ===== SECTION HEADER ===== */
.live-section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 14px 0;
}
.live-section-header .title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: var(--ls-tight);
}
.live-section-header .count {
    background: var(--bg-body);
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.live-section-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== CARD (SCAN-FRIENDLY) ===== */
.live-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: var(--shadow-sm);
}
.live-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Compacto: esconde detalhes e linhas frias */
.live-card:not(.expanded) .detail-only { display: none !important; }
.live-card:not(.expanded) .live-card-projection .bar-item.cool { display: none; }
.live-card:not(.expanded) .live-card-projection .bars-scan {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    max-width: 100%;
}
.live-card:not(.expanded) .scan-hint { display: block; }
.live-card.expanded .scan-hint { display: none; }
.live-card.expanded .live-card-projection .bar-item.cool { display: block; }
.live-card.expanded .live-card-projection .bars-scan {
    grid-template-columns: repeat(4, 1fr);
}
.live-card.expanded .meta.detail-only { display: flex !important; }
.live-card.expanded .player-over-wrap.detail-only { display: block !important; }
.live-card.expanded .team .sub.detail-only { display: block !important; }

.scan-hint {
    display: none;
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2px;
}

/* ===== CARD EXPANDED ===== */
.live-card.expanded,
.match-card.expanded {
    grid-column: 1 / -1;
    min-height: auto;
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.06);
    cursor: default;
}
.live-card.expanded .live-card-footer .click-hint .ti-chevron-down::before {
    content: "\ea5e"; /* chevron-up */
}
.match-card.expanded .match-preview {
    display: none;
}

/* ===== ANALYSIS INSIDE CARD ===== */
.live-card-analysis {
    display: none;
}
.card-analysis-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.card-analysis-inner {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
}
.ca-section {
    margin-bottom: 14px;
}
.ca-section:last-child {
    margin-bottom: 0;
}
.ca-title {
    font-size: 9px;
    font-weight: 700;
    color: #8b95a8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}
.ca-prob-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ca-prob {
    background: var(--bg-body);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
}
.ca-prob-val {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.ca-prob-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.ca-bar-track {
    display: flex;
    height: 4px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--border);
    margin-top: 8px;
}
.ca-bar-track > div {
    height: 100%;
}
.ca-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
}
.ca-pick {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ca-pick-market {
    font-size: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.ca-pick-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}
.ca-pick-conf {
    font-size: 9px;
    font-weight: 600;
}
.ca-pick.locked {
    opacity: 0.75;
    background: var(--bg-body);
}
.ca-pick.locked .locked-val {
    color: var(--text-muted);
    font-size: 13px;
}
.ca-pick.locked .ca-pick-conf {
    color: var(--text-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ca-callout {
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.31);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

/* ===== HEADER DO CARD ===== */
.live-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}
.live-card-header .league {
    font-size: 9px;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    font-weight: 400;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-card-header .time {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-variant-numeric: tabular-nums;
}
.live-card-header .status {
    font-size: 9px;
    font-weight: 700;
    color: #ef4444;
    background: transparent;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.live-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #ef4444;
    animation: pulse-live 1.5s ease infinite;
}

/* ===== PLACAR (SCAN: HORIZONTAL + GRANDE) ===== */
.live-card-score {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 8px 0;
    gap: 0;
}
.live-card-score .score-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.live-card-score .team {
    text-align: center;
    min-width: 0;
}
.live-card-score .team.left { text-align: right; }
.live-card-score .team.right { text-align: left; }
.live-card-score .team .name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-card-score .team .sub {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}
.live-card-score .team .sub .highlight {
    color: var(--primary);
    font-weight: 600;
}
.live-card-score .score {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-align: center;
    letter-spacing: -0.03em;
    padding: 2px 4px;
    line-height: 1;
    min-width: 64px;
}
.live-card-score .score .dash {
    color: #334155;
    margin: 0 1px;
    font-weight: 500;
}
.live-card.expanded .live-card-score .team .name { font-size: 15px; }
.live-card.expanded .live-card-score .score { font-size: 32px; }

/* ===== PROJEÇÃO DE GOLS (MAIOR) ===== */
.live-card-projection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--bg-body);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.live-card-projection .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.live-card-projection .label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.live-card-projection .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.live-card-projection .bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.live-card-projection .bar-item {
    text-align: center;
}
.live-card-projection .bar-item .pct {
    font-size: 13px;
    font-weight: 600;
}
.live-card-projection .bar-item .label {
    font-size: 7px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.live-card-projection .bar-bet-btn {
    border: none;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    width: 14px; height: 14px;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}
.live-card-projection .bar-bet-btn:hover {
    background: var(--primary);
    color: var(--bg-body);
}
.live-card-projection .quick-bet-main {
    margin-left: auto;
    font-size: 10px !important;
    padding: 2px 8px !important;
}
.live-card-projection .bar-item .bar-track {
    height: 4px;
    border-radius: 99px;
    background: var(--border);
    margin-top: 3px;
    overflow: hidden;
}
.live-card-projection .bar-item .bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
}
.live-card-projection .bar-item.locked .pct {
    filter: grayscale(1);
    opacity: 0.7;
}
.live-card-projection .bar-item.locked .bar-track {
    background: repeating-linear-gradient(45deg, var(--border), var(--border) 3px, transparent 3px, transparent 6px);
}
.live-card-projection .meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 8px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* ===== OVER DO JOGADOR ===== */
.live-card-player-over {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--bg-body);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.live-card-player-over .po-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}
.live-card-player-over .po-title {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.live-card-player-over .po-hint {
    font-size: 7px;
    color: var(--text-muted);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-card-player-over .po-hint b {
    color: var(--primary);
}
.live-card-player-over .po-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.live-card-player-over .po-row:first-of-type {
    border-top: none;
    padding-top: 0;
}
.live-card-player-over .po-player {
    min-width: 0;
    flex: 1;
}
.live-card-player-over .po-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.live-card-player-over .po-meta {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 1px;
}
.live-card-player-over .po-cells {
    display: grid;
    grid-template-columns: repeat(4, 38px);
    gap: 6px;
}
.live-card-player-over .po-cell {
    text-align: center;
    padding: 5px 3px 4px;
    border-radius: 7px;
    background: var(--bg-surface, var(--bg-body));
    border: 1px solid var(--border);
}
.live-card-player-over .po-cell .po-val {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}
.live-card-player-over .po-cell .po-track {
    height: 3px;
    border-radius: 999px;
    background: var(--border);
    margin: 4px 0 3px;
    overflow: hidden;
}
.live-card-player-over .po-cell .po-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}
.live-card-player-over .po-cell .po-lbl {
    display: block;
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.live-card-player-over.locked {
    border-style: dashed;
    border-color: var(--border);
}
.live-card-player-over .po-lock-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0 2px;
}
.live-card-player-over .po-lock-icon {
    font-size: 14px;
}
.live-card-player-over .po-lock-name {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.live-card-player-over .po-lock-cta {
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-body);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4px 14px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.live-card-player-over .po-lock-cta-ad {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    cursor: pointer;
}
.live-card-player-over .po-lock-cta-ad:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.live-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 8px;
    color: var(--text-muted);
}
.live-card-footer .click-hint {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}
.live-card-footer .click-hint i {
    font-size: 10px;
}
.live-card-footer .premium-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-body);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LIVROS ===== */
.live-card .no-projection {
    text-align: center;
    padding: 8px;
    color: var(--text-muted);
    font-size: 9px;
    margin-top: auto;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
    .live-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .live-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .live-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .live-card {
        padding: 12px 12px 10px;
        min-height: 200px;
    }
    .live-card-score .score {
        font-size: 24px;
    }
    .live-card-score .team .name {
        font-size: 14px;
    }
    .live-card-projection .bars {
        grid-template-columns: repeat(2, 1fr);
    }
    .live-card-projection .value {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .live-container {
        grid-template-columns: 1fr;
    }
}