﻿@charset "UTF-8"; @import url("common.css"); /* 지도 탭 */
.sec-predict-map {
    padding: 1.25em 0 1.875em;
}

.sec-predict-map.border-none {
    border: none;
}

.sec-predict-map .predict-map-tab {
    display: flex;
    justify-content: center;
    gap: 6px 8px;
    padding: 1.25em 0 1.875em;
}

.sec-predict-map .tab-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    background: #fff;
    border: 1px solid #DEE2E6;
    border-radius: 5em;
    font-size: var(--fs-lg);
    line-height: 1.43;
    font-family: 'mbcnew-medium';
    font-weight: normal;
    color: #495057;
}

.sec-predict-map .predict-map-tab.tab2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 100%));
    grid-template-rows: repeat(2, 40px);
}

.sec-predict-map .predict-map-tab.tab2 .tab-btn {
    width: 100%;
    height: 100%;
}

.sec-predict-map .tab-btn.active {
    border-color: transparent;
    background: url('//vote2026.imbc.com/images/m/bg-btn.jpg') no-repeat center center / 140% 140%;
}

.sec-predict-map .predict-panel:not(.active) {
    display: none;
}

.sec-predict-map .predict-panel.active {
    display: block;
}

.sec-predict-map .read {
    display: block;
    text-align: center;
    font-size: var(--fs-md);
    line-height: 1.43;
    margin-top: 20px;
}

/* 배너 */
.sec-banner {
    width: 100%;
}

.sec-banner .img-wrp {
    width: 100%;
}

.sec-banner .img-wrp img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* 예측 순위 */
.sec-forecast {
    padding: 1.25em 0 3.125em;
}

.sec-forecast .rank-list {
    display: block;
    margin-top: 1.25em;
}

.sec-forecast .rank {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border-bottom: none;
}

.sec-forecast .rank + .rank {
    margin-top: 1.875em;
}

.sec-forecast .rank-type {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 999px;
    background: url('//vote2026.imbc.com/images/m/bg-label.png') no-repeat center center / 160%;
    color: #495057;
    font-family: 'mbcnew-medium';
    font-size: var(--fs-lg);
    line-height: 1.43;
    font-weight: 500;
    text-align: center;
}

.select-option {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75em;
    z-index: 10;
    margin: 1.25em 0;
}

.select-option.open {
    z-index: 100;
}

.select-option .select {
    position: relative;
    flex: 1;
}

.select-option .select-city {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.select-option .city-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    text-align: center;
    border: 1px solid #DEE2E6;
    border-radius: 4px;
    background: #F8F9FA;
    color: #495057;
    font-size: var(--fs-02);
    line-height: 1.4286;
    font-family: 'mbcnew-medium';
    cursor: pointer;
}

.select-option .city-btn .city {
    display: block;
    width: 100%;
    flex: 1;
    font-family: 'mbcnew-medium';
    font-weight: normal;
    text-align: center;
}

.select-option:has(.select + .select) .city-btn, .select-option:has(.select + .select) .city-btn .city {
    text-align: left;
}

.select-option .city-btn .ico-arr-btm {
    position: absolute;
    right: 8px;
    top: 7px;
}

.select-option .city-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    margin: 0;
    list-style: none;
    min-width: 100%;
    max-width: calc(100% - 32px);
    max-height: 180px;
    overflow: auto;
    border: 1px solid #DEE2E6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.select-option .city-list[hidden] {
    display: none;
}

.select-option .city-list li[role="option"] {
    padding: 6px 12px;
    font-size: var(--fs-02);
    line-height: 1.4286;
    cursor: pointer;
}

.select-option .city-list li[role="option"][aria-selected="true"] {
    background: #EEF2FF;
    font-family: 'mbcnew-medium';
    font-weight: normal;
}

.rank-list .card {
    border: 1px solid #DEE2E6;
    border-radius: 16px;
    overflow: hidden;
}

.rank-list .card h4 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    background: #F1F3F5;
    font-family: 'mbcnew-bold';
    line-height: 1.5;
}

.rank-list .candi-rank {
    position: relative;
    padding: 1.25em 0.75em 1.875em;
}

.rank-list .candi-wrp {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.rank-list .candi-wrp .candi {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 244px;
    justify-content: space-between;
    flex: 0 1 134px;
}

.rank-list .candi-wrp .candi::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 999px;
    /* overflow: hidden; */
    right: 0;
    top: 98px;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.3));
}

.rank-list .candi-wrp .candi:nth-child(1)::after {
    left: 0;
}

.rank-list .candi-wrp .candi:nth-child(2)::after {
    right: 0;
}

.rank-list .candi-wrp .candi.elected::after {
    background-image: url('//vote2026.imbc.com/images/m/badge-elected.png');
}

.rank-list .candi-wrp .candi.definite::after {
    background-image: url('//vote2026.imbc.com/images/m/badge-definite.png');
}

.rank-list .candi-wrp .candi.reliable::after {
    background-image: url('//vote2026.imbc.com/images/m/badge-reliable.png');
}

.rank-list .candi-wrp .candi.pred1::after {
    background-image: url('//vote2026.imbc.com/images/m/badge-pred1.png');
}

.rank-list .candi-wrp .candi.pred2::after {
    background-image: url('//vote2026.imbc.com/images/m/badge-pred2.png');
}

.rank-list .candi-wrp .candi .thumb {
    display: inline-block;
    max-width: 134px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #DEE2E6;
    border-radius: 999px;
    overflow: hidden;
}

.rank-list .candi-wrp .candi .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.rank-list .candi-rank .rank-graph {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 48px;
    height: 100px;
    left: 50%;
    gap: 8px;
    transform: translateX(-50%);
    bottom: -68px;
}

.rank-list .candi-info {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.rank-list .candi-info .num {
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.rank-list .candi-info .name {
    font-size: var(--fs-03);
    line-height: 1.5;
    margin: 2px 0;
    font-family: 'mbcnew-bold'
}

.rank-list .candi-info .party {
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.rank-list .candi-info .rate {
    font-size: var(--fs-05);
    line-height: 1.5;
    font-family: 'mbcnew-bold';
    line-height: 1.5;
    margin-top: .4em;
}

.rank-list .candi-info .rate span {
    font-size: var(--fs-sm);
    line-height: 1.5;
    font-family: 'mbcnew-light';
    font-weight: 300;
    vertical-align: baseline;
    margin-left: .1em;
}

.candi-rank .rank-graph .bar {
    position: relative;
    z-index: 2;
    display: block;
    width: 20px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1) 0 5px, transparent 5px), #C6CED8;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    border-radius: 5em 5em 0 0;
}

/* 2인 경합 */
.rank .card.vs-wrp .candi-rank::after {
    content: "경합";
    position: absolute;
    z-index: 2;
    display: block;
    width: 4.25em;
    height: 4.75em;
    background: url('//vote2026.imbc.com/images/m/badge-vs.png') no-repeat center center / contain;
    left: 50%;
    top: calc(1.25em + clamp(121px, 121px + (100vw - 320px) * 0.5, 134px) * 0.5 - 2.375em);
    transform: translateX(-50%);
    text-indent: -99999px;
    overflow: hidden;
}

/* 출구조사, 개표현황 동시 사용 */
.open-rank-wrp {
    border-radius: 1em;
    border: 1px solid #DEE2E6;
}

.open-rank-wrp .tit-wrp {
    display: block;
    padding: 0.75em;
    text-align: center;
    background: #F1F3F5;
    line-height: 1.5;
    border-radius: 1em 1em 0 0;
    overflow: visible;
}

.open-rank-wrp .tit-wrp h4 {
    position: relative;
    display: inline-block;
    font-size: var(--fs-03);
    font-family: 'mbcnew-bold';
    margin-bottom: 2px;
}

.open-rank-wrp .tit-wrp p {
    font-size: var(--fs-sm);
    font-family: 'mbcnew-light';
}

.open-rank-wrp .tit-wrp .bold {
    font-family: 'mbcnew-medium';
    font-weight: 500;
}

.open-rank {
    position: relative;
    padding: 0 1.25em 1.25em;
    border-radius: 0 0 1em 1em;
    overflow: hidden;
}

.open-candi {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid #E9ECEF;
    padding: 20px 0;
}

.open-rank:not(:has(.img-wrp)) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 1.875em 1.25em;
    min-height: 124px;
}

.open-rank:not(:has(.img-wrp)) > p {
    font-size: var(--fs-md);
    line-height: 1.412;
}

.open-candi:first-child {
    border-top: 0;
}

.open-candi:last-child {
    padding-bottom: 0;
}

.open-candi .rank-label {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #495057;
    font-family: 'mbcnew-bold';
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    width: 24px;
    white-space: nowrap;
}

.open-candi .rank-label span {
    font-size: 12px;
}

.open-candi .img-wrp {
    position: relative;
    display: inline-block;
    width: 4.0625em;
    height: 4.0625em;
    margin: 0 16px 0 12px;
}

.open-candi .thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 99999px;
    overflow: hidden;
    border: 1px solid #DEE2E6;
    overflow: hidden;
    box-sizing: border-box;
}

.open-candi .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.open-candi .img-wrp.elected::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('//vote2026.imbc.com/images/m/badge-elected.png') no-repeat center center / contain;
    border-radius: 999px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    left: -16px;
    bottom: -8px;
}

.open-candi .img-wrp.definite::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('//vote2026.imbc.com/images/m/badge-definite.png') no-repeat center center / contain;
    border-radius: 999px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    left: -16px;
    bottom: -8px;
}

.open-candi .img-wrp.reliable::after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('//vote2026.imbc.com/images/m/badge-reliable.png') no-repeat center center / contain;
    border-radius: 999px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    left: -16px;
    bottom: -8px;
}

.open-candi .candi-info {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    margin: 0;
}

.open-candi .candi-info .num {
    color: #646D76;
    font-family: 'mbcnew-light';
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 2px;
}

.open-candi .candi-info .name {
    display: block;
    font-family: 'mbcnew-bold';
    font-size: var(--fs-03);
    line-height: 1.5;
    margin: 0 0 2px;
}

.open-candi .candi-info .party {
    color: #646D76;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.open-candi .candi-info .exit-poll {
    position: absolute;
    color: #7E96C2;
    font-family: 'mbcnew-medium';
    font-weight: 500;
    font-size: var(--fs-sm);
    line-height: 1.5;
    left: 0;
    bottom: 0;
}

.open-result {
    position: absolute;
    text-align: right;
    white-space: nowrap;
    right: 0;
    top: 1.25em;
}

.open-result .rate {
    display: block;
    color: #495057;
    font-family: 'mbcnew-bold';
    font-size: var(--fs-05);
    line-height: 1.5;
}

.open-result .rate span {
    font-size: .65em;
    font-family: 'mbcnew-light';
    font-weight: 300;
    line-height: 30px;
    vertical-align: baseline;
}

.open-result .votes {
    display: block;
    margin-top: 2px;
    color: #646D76;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.open-result .votes.bold {
    font-family: 'mbcnew-medium';
}

.open-rank-wrp .open-vote-gap {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35em;
    min-width: 128px;
    padding: 4px 20px;
    border-radius: 999px;
    background: #F1F3F5;
    color: #495057;
    font-size: var(--fs-01);
    line-height: 1.43;
    right: 10px;
    top: clamp(124px, calc(114px + 2.7778vw), 134px);
    transform: translateY(-50%);
}

.open-rank-wrp .open-vote-gap dt {
    font-family: 'mbcnew-bold';
}

.open-rank-wrp .open-vote-gap dd {
    display: flex;
    gap: .35em;
    font-family: 'mbcnew-light';
    font-weight: 300;
}

/* 3인 경합 */
.open-rank-wrp.vs-wrp .tit-wrp h4::after {
    content: "경합";
    position: absolute;
    display: inline-block;
    width: 4.25em;
    height: 4.75em;
    background: url('//vote2026.imbc.com/images/m/badge-vs.png') no-repeat center center / contain;
    left: 106%;
    top: -1.6em;
    text-indent: -99999px;
}

/* open 페이지에만 쓰이도록 */
#cont-open .open-rank {
    padding: 0 1.25em 1.875em;
}

#cont-open .open-rank:not(:has(.img-wrp)) {
    padding: 1.875em 1.25em;
}

#cont-open .open-candi .img-wrp {
    position: relative;
    display: inline-block;
    width: 4.0625em;
    height: 5.25em;
    margin: 0 16px 0 12px;
}

#cont-open .open-candi .thumb {
    border-radius: .5em;
}
