.box-partidas {
    background: #171717 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.box-partidas h3 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.2rem;
    border-bottom: none !important;
    padding-bottom: 6px;
    color: #f9f9f9;
}

.partida {
    background: #171717 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border: none !important;
    padding: 14px 12px 10px;
    color: #eee;
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.18s ease !important;
}

.partida:hover:not(.partida--sem-id) {
    background: #242424 !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

.partida.sem-itens {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    color: #aaa;
    cursor: default;
}

.data-partida {
    font-size: .85rem;
    color: #a8a8a8;
    text-align: center;
    margin-bottom: 8px;
}

.detalhes-partida {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 6px auto;
}

.time-casa, .time-fora {
    width: 150px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.time-casa {
    justify-content: flex-end;
    text-align: right;
    padding-right: 10px;
}

.time-fora {
    justify-content: flex-start;
    text-align: left;
    padding-left: 10px;
}

.placar {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.local-partida {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.nome-time {
    font-size: 0.9rem;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.time-casa .nome-time {
    margin-right: 8px;
}

.time-fora .logo-time {
    margin-right: 8px;
}

.partida .logo-time {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.navegacao-partidas {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.seta-navegacao {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 32px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.seta-navegacao:hover {
    background-color: rgba(255,255,255,0.1);
}

.seta-navegacao.desabilitada {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* SETAS HABILITADAS EM AZUL */
.seta-navegacao:not(.desabilitada):not(:disabled) {
    background: var(--azul-selecionado) !important;
    border-color: var(--azul-selecionado) !important;
    color: #ffffff !important;
}

.seta-navegacao:not(.desabilitada):not(:disabled):hover {
    background: #2b82f0 !important;
    border-color: #2b82f0 !important;
    color: #ffffff !important;
}

/* ========== MEDIA QUERIES ========== */

/* DESKTOP (≥1050px) */
@media screen and (min-width: 1050px) {
    .detalhes-partida {
        max-width: 100% !important;
        gap: 12px !important;
        justify-content: space-between !important;
    }

    .time-casa, .time-fora {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .nome-time, .time-casa .nome-time, .time-fora .nome-time {
        max-width: none !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
    }
}

/* Telas menores que 772px */
@media screen and (max-width: 772px) {
    .box-partidas {
        padding: 0 !important;
    }

    .partida .logo-time {
        width: 24px;
        height: 24px;
    }

    .seta-navegacao {
        font-size: 1.1rem;
        padding: 0 !important;
        width: 40px;
        height: 36px;
    }
}

/* DESKTOP MÉDIO (1050–1699) */
@media screen and (min-width: 1050px) and (max-width: 1699px) {
    .box-partidas h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .partida {
        padding: 8px 6px !important;
    }

    .detalhes-partida {
        gap: 6px !important;
    }

    .partida .logo-time {
        width: 22px !important;
        height: 22px !important;
    }

    .nome-time {
        font-size: 0.74rem !important;
        max-width: 90px !important;
    }

    .placar {
        width: 38px !important;
        font-size: 0.8rem !important;
    }

    .data-partida {
        font-size: 0.7rem !important;
        margin-bottom: 5px !important;
    }

    .local-partida {
        font-size: 0.68rem !important;
    }

    .seta-navegacao {
        width: 32px;
        height: 28px;
    }
}

@media screen and (min-width: 1050px) and (max-width: 1299px) {
    .partida .logo-time {
        width: 20px !important;
        height: 20px !important;
    }

    .nome-time {
        font-size: 0.68rem !important;
        max-width: 75px !important;
    }

    .placar {
        width: 34px !important;
        font-size: 0.72rem !important;
    }
}

/* TOUCH */
@media (hover: none) and (pointer: coarse) {
    .seta-navegacao {
        min-height: 44px;
    }
}