﻿.rodada-container {
    display: none;
}

    .rodada-container.ativa {
        display: block;
    }

.rodada-header {
    background: #111;
    color: #3cff00;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .rodada-header .titulo {
        font-size: 18px;
    }

    .rodada-header .seta {
        background: none;
        border: none;
        color: #3cff00;
        font-size: 22px;
        cursor: pointer;
    }

.eventos {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    font-size: 16px;
}

.status {
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
}

    .status.agendado {
        color: #aaa;
    }

    .status.finalizado {
        color: #999;
    }

    .status.ao-vivo {
        color: #3cff00;
        animation: piscar 1s infinite;
    }

.evento.paralisado {
    color: #ff5555;
}


.jogos-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jogo-card {
    background: #1c1f23;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
}

.linha-superior {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 6px;
}


.linha-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



    .time.fora {
        text-align: right;
    }

.placar {
    font-size: 22px;
    font-weight: bold;
}







tr.subiu {
    animation: subir 1s ease;
    background-color: rgba(0, 255, 0, 0.25);
}

tr.desceu {
    animation: descer 1s ease;
    background-color: rgba(255, 0, 0, 0.25);
}

@keyframes subir {
    from {
        transform: translateY(10px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes descer {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}




.placar.gol-animado {
    animation: golPulse 1s ease-in-out 2;
    color: #3cff00;
}

@keyframes golPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}





tr.novo-gol {
    background: rgba(255, 215, 0, 0.35);
    animation: brilho 1.5s ease;
}

@keyframes brilho {
    0% {
        box-shadow: 0 0 0 gold;
    }

    50% {
        box-shadow: 0 0 15px gold;
    }

    100% {
        box-shadow: 0 0 0 gold;
    }
}

.apuracao-vencedor-percentual {
    background: linear-gradient(135deg, #0f5132, #198754);
    color: #fff;
    font-weight: 700;
    border: 1px solid #20c997;
    box-shadow: 0 0 8px rgba(32,201,151,.35);
}

.apuracao-perdedor-percentual {
    background: linear-gradient(135deg, #58151c, #dc3545);
    color: #fff;
    font-weight: 700;
    border: 1px solid #ff6b6b;
    box-shadow: 0 0 8px rgba(220,53,69,.30);
}

.apuracao-empate-percentual {
    background: linear-gradient(135deg, #495057, #6c757d);
    color: #fff;
    font-weight: 700;
}

.apuracao-badge-percentual {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    margin-right: 6px;
    margin-top: 3px;
    transition: all .3s;
}

.time {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 40%;
    min-height: 34px;
    font-weight: 600;
}

    .time.fora {
        text-align: right;
        align-items: flex-end;
    }

.time-titulos {
    display: flex;
    gap: 1px;
    height: 10px;
    margin-bottom: 2px;
}

.estrela-titulo {
    color: gold;
    font-size: 9px;
    line-height: 1;
}

.time-classificacao {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    font-weight: 600;
}

.time-titulos-classificacao {
    display: inline-flex;
    gap: 1px;
    height: 10px;
    margin-bottom: 2px;
}

.table-classificacao th,
.table-classificacao td {
    vertical-align: middle;
}

.time-classificacao {
    display: grid;
    grid-template-rows: 12px 18px;
    align-items: center;
    line-height: 1;
    font-weight: 600;
    min-height: 32px;
}

.time-titulos-classificacao {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 12px;
}

.table-classificacao tbody tr.linha-eliminado td {
    color: #ff6b6b !important;
    background-color: rgba(220, 53, 69, 0.18) !important;
    border-top: 1px solid rgba(255, 107, 107, 0.35);
    border-bottom: 1px solid rgba(255, 107, 107, 0.35);
}

    .table-classificacao tbody tr.linha-eliminado td:first-child {
        border-left: 4px solid #dc3545;
    }

.table-classificacao tbody tr.linha-eliminado .estrela-titulo {
    color: #ffb3b3;
}

.ultimas-th,
.ultimas-td {
    text-align: center;
    min-width: 120px;
    width: 120px;
    white-space: nowrap;
}

.ultimos-resultados {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 105px;
}

.resultado-bolinha {
    width: 19px;
    height: 19px;
    min-width: 19px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}

.resultado-v {
    background: #28a745;
}

.resultado-e {
    background: #6c757d;
}

.resultado-d {
    background: #dc3545;
}


/* 📱 MOBILE */
@media (max-width:768px) {

    .time {
        padding-top: 10px;
    }

    .estrela-titulo {
        font-size: 8px;
    }
}



/* 📱 MOBILE */
@media (max-width: 576px) {

    /* Remove bordas e arredondamento dos cards */
    .jogo-card,
    .analise-rodada .card,
    .analise-rodada .border {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Reduz padding para caber melhor */
    .jogo-card {
        padding: 8px !important;
    }

    /* Placar em linha compacta */
    .linha-times {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .placar {
        font-size: 1.1rem;
        min-width: auto;
        white-space: nowrap;
    }

    .time {
        font-size: 0.85rem;
        max-width: 40%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .estrela-titulo {
        font-size: 8px;
    }

}

/* 📱 MOBILE */
@media (max-width: 576px) {

    /* Container de eventos */
    .analise-rodada .badge,
    .eventos .evento {
        max-width: 100%;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Linha de eventos empilhada */
    .analise-rodada .mb-1,
    .analise-rodada .mb-2 {
        display: block;
    }

    /* Espaçamento vertical entre eventos */
    .analise-rodada .badge {
        display: block;
        margin-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .analise-rodada .badge {
        font-size: 0.75rem;
        line-height: 1.2;
        padding: 4px 6px;
    }
}


@media (max-width: 576px) {
    .time-nome {
        max-width: 38%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .jogo-card {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

/* 📱 MOBILE – Classificação */
@media (max-width: 576px) {

    .classificacao-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .classificacao-container table {
            min-width: 600px; /* força scroll em vez de quebrar */
        }

        /* Fonte menor para caber melhor */
        .classificacao-container th,
        .classificacao-container td {
            font-size: 0.75rem;
            white-space: nowrap;
        }
    
}

