﻿.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 {
    width: 40%;
    font-weight: 600;
}

    .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;
    }
}



/* 📱 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;
    }
}

/* 📱 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;
        }
}
