/* ctrl_progress_bar - 프로그레스 바 통합형 (office-N4 스타일) */

.MAIN_TOP_TOTAL .control_set.ctrl_progress_bar {
    position: absolute;
    z-index: 20;
    pointer-events: auto;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_inner {
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
}

/* 프로그레스 페이징 영역 */
.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_paging {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    padding-bottom: 0.4rem;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_item {
    width: 6rem;
    cursor: pointer;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_num {
    display: block;
    opacity: 0;
    visibility: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    transition: opacity 0.3s, visibility 0.3s;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_item.active .paging_num {
    opacity: 1;
    visibility: visible;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_bar {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 9rem;
    background: rgba(255, 255, 255, 0.4);
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_progress {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 9rem;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .paging_item.active .paging_progress.running {
    animation: ctrl_pg_progress var(--swiper-autoplay-delay, 5000ms) linear forwards;
}

@keyframes ctrl_pg_progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* 버튼 영역 */
.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transform: translateY(3px);
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 2.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0;
}

.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn:hover {
    opacity: 0.7;
}

/* i 태그 방식 (render.php 반영 후) */
.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn i {
    font-size: inherit;
    color: inherit;
    line-height: 1;
}

/* ::before 비활성화 (i 태그 사용) */
.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn::before,
.MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn::after {
    content: none;
}

/* 정지 짝대기 */
.MAIN_TOP_TOTAL .ctrl_progress_bar .btn_pause {
    gap: 3px;
    transform: translateY(3px);
}
.MAIN_TOP_TOTAL .ctrl_progress_bar .pause_bar {
    display: block;
    width: 3px;
    height: 14px;
    background: #fff;
    border-radius: 1px;
}

/* 반응형 */
@media screen and (max-width: 992px) {
    .MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_inner {
        gap: 0.8rem;
    }

    .MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_paging {
        gap: 0.4rem;
        padding-bottom: 0.2rem;
    }

    .MAIN_TOP_TOTAL .ctrl_progress_bar .paging_item {
        width: 3.2rem;
    }

    .MAIN_TOP_TOTAL .ctrl_progress_bar .paging_num {
        font-size: 12px;
    }

    .MAIN_TOP_TOTAL .ctrl_progress_bar .paging_bar {
        height: 4px;
    }

    .MAIN_TOP_TOTAL .ctrl_progress_bar .ctrl_btn {
        width: 2rem;
        height: 2rem;
        font-size: 2rem;
    }
}
