/* ===========================================
   Placar das Favelas — ud-placar-das-favelas
   =========================================== */

.udf-campeonato {
    font-family: inherit;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0;
    box-sizing: border-box;
}

/* ---- Paginação de rodadas ---- */
.udf-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.udf-pagination__btn {
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.udf-pagination__btn:hover:not(:disabled) {
    background: #27ae60;
}

.udf-pagination__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.udf-pagination__label {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    flex: 1;
    text-align: center;
}

/* ---- Fase ---- */
.udf-phase + .udf-phase {
    margin-top: 40px;
}

.udf-phase__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-left: 4px solid #2ecc71;
    padding-left: 10px;
    color: #1a1a1a;
}

/* ---- Rodada ---- */
.udf-round {
    margin-bottom: 32px;
}

.udf-round__title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e8e8;
}

.udf-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Card de partida ---- */
.udf-match {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.udf-match:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.udf-match--played {
    border-left: 4px solid #2ecc71;
}

.udf-match--upcoming {
    border-left: 4px solid #bbb;
}

/* Meta: dia / data / hora */
.udf-match__meta {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.udf-match__meta span + span::before {
    content: '·';
    margin-right: 8px;
}

/* Times e placar */
.udf-match__teams {
    display: flex;
    align-items: center;
    gap: 12px;
}

.udf-match__team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.udf-match__team--home {
    align-items: flex-start;
    text-align: left;
}

.udf-match__team--away {
    align-items: flex-end;
    text-align: right;
}

.udf-match__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
}

.udf-match__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    line-height: 1.25;
}

.udf-match__team--winner .udf-match__name {
    color: #1a7c3e;
}

/* Placar central */
.udf-match__score {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    gap: 4px;
    flex-wrap: wrap;
}

.udf-match__score > span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.udf-match__separator {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #aaa !important;
    margin: 0 2px;
}

.udf-match__goals--win {
    color: #1a7c3e;
}

.udf-match__score-pending {
    font-size: 1.4rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 0.1em;
}

.udf-match__penalties {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

/* Local */
.udf-match__local {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.udf-match__local-icon {
    font-style: normal;
}

/* ---- Responsivo ---- */
@media (max-width: 500px) {
    .udf-match__logo {
        width: 36px;
        height: 36px;
    }

    .udf-match__name {
        font-size: 0.72rem;
    }

    .udf-match__score > span {
        font-size: 1.2rem;
    }

    .udf-match__teams {
        gap: 6px;
    }
}

/* ---- Erro ---- */
.udf-error {
    color: #c0392b;
    font-style: italic;
}
