/* AV-Pronos — Shortcode Résultats */

.avp-resultats-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.avp-resultats-empty {
    text-align: center;
    color: #646970;
    font-style: italic;
}

/* ── En-tête de phase ─────────────────────────────────────────────────────── */

.avp-res-phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 8px;
    margin-top: 20px;
    margin-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}

.avp-res-phase-header:first-of-type { margin-top: 0; }

.avp-res-phase-title {
    font-weight: 700;
    font-size: 15px;
    color: #1d2327;
}

.avp-res-phase-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.avp-res-phase-badge.group       { background: #d7f0d2; color: #1a6e14; }
.avp-res-phase-badge.elimination { background: #fce8e8; color: #8a1515; }

/* ── Match card ───────────────────────────────────────────────────────────── */

.avp-res-match {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* ── Date bar ─────────────────────────────────────────────────────────────── */

.avp-res-date-bar {
    background: #1a6e14;
    color: #fff;
    padding: 7px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.avp-res-date-text { text-transform: capitalize; }

.avp-res-phase-tag {
    background: #fff;
    color: #1a6e14;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.avp-res-match-tag {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.avp-res-body { padding: 12px 14px; }

.avp-res-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.avp-res-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avp-res-team-left  { justify-content: flex-end; flex-direction: row-reverse; }
.avp-res-team-right { justify-content: flex-start; }

.avp-res-flag {
    max-width: 44px;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.avp-res-flag-ph {
    width: 44px;
    height: 30px;
    background: #e9ecef;
    border-radius: 2px;
    flex-shrink: 0;
}

.avp-res-team-name {
    font-weight: 700;
    font-size: 14px;
    color: #1d2327;
    line-height: 1.2;
}

.avp-res-team.avp-res-winner .avp-res-team-name { color: #0f9147; }
.avp-res-team.avp-res-loser  .avp-res-team-name { color: #8c8f94; }

/* ── Score ────────────────────────────────────────────────────────────────── */

.avp-res-score-block {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.avp-res-score {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    min-width: 28px;
    text-align: center;
    line-height: 1;
}

.avp-res-score.avp-res-score-win { color: #0f9147; }

.avp-res-sep {
    font-size: 20px;
    font-weight: 700;
    color: #c3c4c7;
    line-height: 1;
}

/* ── Qualifié (élim.) ─────────────────────────────────────────────────────── */

.avp-res-qualified {
    text-align: center;
    font-size: 12px;
    color: #0f9147;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
    .avp-res-team-name { font-size: 12px; }

    .avp-res-flag, .avp-res-flag-ph {
        max-width: 32px;
        width: 32px;
        height: 24px;
        max-height: 24px;
    }

    .avp-res-teams {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 6px 4px;
    }

    .avp-res-team-left {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        justify-content: flex-start;
    }

    .avp-res-team-right {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .avp-res-score-block {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 4px;
    }

    .avp-res-score { font-size: 24px; }
}
