/* --------------------------------------------------------------------------
   Painel público de resultados - versão refinada e responsiva.
   -------------------------------------------------------------------------- */
.results-page--refined {
    min-height: calc(100vh - 138px);
    padding: 26px 0 40px;
    background: #f3f6f9;
}

.results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.results-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-800);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.results-head__title h1 {
    margin: 0 0 5px;
    color: var(--color-primary-950);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.results-head__title p {
    margin: 0;
    color: #718094;
    font-size: .92rem;
}

.results-head__summary {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.result-stat,
.result-live,
.results-action {
    min-height: 50px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(21, 44, 72, .04);
}

.result-stat {
    min-width: 0;
    padding: 8px 12px;
}

.result-stat span,
.result-stat strong {
    display: block;
}

.result-stat span {
    color: #7b8796;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.result-stat strong {
    margin-top: 2px;
    color: var(--color-primary-900);
    font-size: 1.35rem;
    line-height: 1;
}

.result-live {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
}

.results-action {
    white-space: nowrap;
}

.result-live__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #1b8b52;
    box-shadow: 0 0 0 4px rgba(27,139,82,.09);
}

.result-live > span:last-child {
    display: grid;
    gap: 1px;
}

.result-live strong {
    color: #33465d;
    font-size: .72rem;
    font-weight: 600;
}

.result-live small {
    color: #8390a0;
    font-size: .66rem;
}

.results-action {
    padding: 0 15px;
    color: var(--color-primary-800);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
}

.results-action:hover {
    background: #f7f9fc;
}

/* Destaque do líder ------------------------------------------------------- */
.leader-card {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid #d7e0e9;
    border-radius: 16px;
    background: #fff;
}

.leader-card__info {
    min-width: 0;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #e5ebf1;
}

.leader-card__label {
    align-self: flex-start;
    margin-bottom: 13px;
    color: #1763ad;
    font-size: .69rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.leader-card h2 {
    margin: 0 0 7px;
    color: var(--color-primary-950);
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    line-height: 1.08;
}

.leader-card__info > p {
    margin: 0;
    color: #6f7e90;
    font-size: .9rem;
    line-height: 1.5;
}

.leader-card__numbers {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-top: 22px;
}

.leader-card__numbers > div {
    display: grid;
    gap: 2px;
    align-content: center;
}

.leader-card__numbers strong {
    color: #173f70;
    font-size: 1.7rem;
    line-height: 1;
}

.leader-card__numbers span:not(.leader-card__separator) {
    color: #7c8998;
    font-size: .7rem;
}

.leader-card__separator {
    width: 1px;
    background: #dfe6ed;
}

.leader-card__images {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f7f9fb;
    align-items: stretch;
}

.leader-card__images[hidden] {
    display: none;
}

.leader-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #fff;
}

.leader-photo figcaption {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8ef;
    color: #385778;
    background: #fff;
    font-size: .7rem;
    font-weight: 600;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    min-height: 286px;
    object-fit: cover;
    display: block;
}

/* Ranking ---------------------------------------------------------------- */
.ranking-card {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #d7e0e9;
    border-radius: 16px;
    background: #fff;
}

.ranking-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid #e7edf2;
}

.ranking-card__head h2 {
    margin: 0;
    font-size: 1.22rem;
}

.ranking-count {
    color: #6e7d8e;
    font-size: .72rem;
    font-weight: 600;
}

.ranking-list {
    display: grid;
}

.ranking-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid #edf1f4;
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-position {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1ea;
    border-radius: 9px;
    color: #536274;
    background: #f8fafc;
    font-size: .76rem;
    font-weight: 650;
}

.ranking-row.is-leading .ranking-position {
    color: #fff;
    border-color: #0f4e93;
    background: #0f4e93;
}

.ranking-thumb {
    width: 82px;
    height: 60px;
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #edf2f6;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-main {
    min-width: 0;
}

.ranking-main__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ranking-copy {
    min-width: 0;
}

.ranking-main h3 {
    margin: 0 0 2px;
    color: #173d6d;
    font-size: .95rem;
}

.ranking-main p {
    margin: 0;
    color: #7a8797;
    font-size: .73rem;
}

.ranking-row.is-leading h3::after {
    content: "Mais votado";
    margin-left: 7px;
    padding: 2px 5px;
    vertical-align: 2px;
    border-radius: 5px;
    color: #0a6138;
    background: #e9f7ef;
    font-size: .54rem;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ranking-numbers {
    flex: 0 0 auto;
    display: grid;
    justify-items: end;
    gap: 1px;
}

.ranking-numbers strong {
    color: #173f70;
    font-size: 1rem;
}

.ranking-numbers span {
    color: #7d8998;
    font-size: .67rem;
}

.ranking-numbers b {
    color: #536274;
    font-weight: 600;
}

.ranking-progress {
    width: 100%;
    height: 6px;
    margin: 10px 0 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #edf1f4;
}

.ranking-progress::-webkit-progress-bar {
    background: #edf1f4;
    border-radius: 999px;
}

.ranking-progress::-webkit-progress-value {
    background: #4384c5;
    border-radius: 999px;
    transition: width 320ms ease;
}

.ranking-progress::-moz-progress-bar {
    background: #4384c5;
    border-radius: 999px;
    transition: width 320ms ease;
}

.ranking-row.is-leading .ranking-progress::-webkit-progress-value {
    background: #0f4e93;
}

.ranking-row.is-leading .ranking-progress::-moz-progress-bar {
    background: #0f4e93;
}

.results-empty {
    padding-top: 20px;
}

.results-empty__card {
    padding: 52px 30px;
    text-align: center;
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    background: #fff;
}

.results-empty__inline {
    padding: 30px;
    text-align: center;
    color: #748194;
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 920px) {
    .results-page--refined {
        padding-top: 20px;
    }

    .results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .results-head__summary {
        width: 100%;
    }

    .leader-card {
        grid-template-columns: 1fr;
    }

    .leader-card__info {
        border-right: 0;
        border-bottom: 1px solid #e5ebf1;
    }

    .leader-card__images {
        min-height: 0;
    }

    .leader-photo img {
        min-height: 240px;
    }
}

/* Smartphone ------------------------------------------------------------- */
@media (max-width: 640px) {
    .results-page--refined {
        padding: 12px 0 24px;
    }

    .results-head {
        margin-bottom: 12px;
        gap: 10px;
    }

    .results-head__title h1 {
        font-size: 1.7rem;
        line-height: 1.02;
    }

    .results-head__title p {
        font-size: .84rem;
    }

    .results-head__summary {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-stat,
    .result-live {
        min-height: 0;
        padding: 10px 12px;
    }

    .result-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .result-stat span {
        font-size: .63rem;
    }

    .result-stat strong {
        margin-top: 0;
        font-size: 1.5rem;
    }

    .result-live {
        gap: 10px;
    }

    .result-live strong {
        font-size: .69rem;
    }

    .result-live small {
        font-size: .62rem;
    }

    .results-action--desktop {
        display: none;
    }

    .leader-card {
        border-radius: 14px;
        grid-template-columns: 1fr;
    }

    .leader-card__info {
        padding: 18px 16px;
        border-right: 0;
        border-bottom: 1px solid #e5ebf1;
    }

    .leader-card__label {
        margin-bottom: 8px;
        font-size: .62rem;
    }

    .leader-card h2 {
        font-size: 1.45rem;
    }

    .leader-card__info > p {
        font-size: .8rem;
    }

    .leader-card__numbers {
        gap: 12px;
        margin-top: 14px;
    }

    .leader-card__numbers strong {
        font-size: 1.3rem;
    }

    .leader-card__images {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .leader-photo {
        border-radius: 10px;
    }

    .leader-photo figcaption {
        padding: 7px 10px;
        font-size: .64rem;
        text-align: left;
    }

    .leader-photo img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .ranking-card {
        margin-top: 12px;
        border-radius: 14px;
    }

    .ranking-card__head {
        padding: 14px 14px;
        align-items: flex-end;
    }

    .ranking-card__head h2 {
        font-size: 1.02rem;
    }

    .ranking-count {
        font-size: .67rem;
    }

    .ranking-row {
        grid-template-columns: 30px 56px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 10px;
        align-items: start;
    }

    .ranking-position {
        width: 28px;
        height: 28px;
        font-size: .65rem;
        border-radius: 8px;
    }

    .ranking-thumb {
        width: 56px;
        height: 44px;
        border-radius: 8px;
    }

    .ranking-main__topline {
        flex-direction: column;
        gap: 4px;
    }

    .ranking-main h3 {
        font-size: .84rem;
        line-height: 1.15;
    }

    .ranking-main p {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .66rem;
    }

    .ranking-numbers {
        display: flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
    }

    .ranking-numbers strong {
        font-size: .86rem;
    }

    .ranking-numbers span {
        font-size: .64rem;
    }

    .ranking-progress {
        height: 5px;
        margin-top: 6px;
    }

    .ranking-row.is-leading h3::after {
        display: none;
    }
}

/* Resultado v2.6: apenas uma imagem principal no destaque */
.leader-card__images--single {
    grid-template-columns: 1fr;
}
.leader-photo--single {
    grid-template-rows: 1fr;
}
.leader-photo--single img {
    width: 100%;
    height: 100%;
    min-height: 286px;
    object-fit: cover;
}
