/* 전체 dimm */
#videoOverlay .video-dimm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/record/common_dimm.png') center center / cover no-repeat;
    z-index: 999;
}

/* 비디오 컨테이너 */
#videoOverlay .video-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('../images/video/common_video_frame_bg.png') center center / cover no-repeat;
    border-radius: 16px;
    width: 1410px;
    height: 906px;
    padding: 30px 30px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1000;
}

/* 헤더 영역 */
#videoOverlay .video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 제목 */
/* 250711 InputField close ─ 기존 .video-title 은 더 이상 사용되지 않으므로 주석 처리 */
/*
#videoOverlay .video-title {
    width: 496px;
    height: 61px;
    background: url('../images/video/common_video_title.png') center center / contain no-repeat;
    font-size: 24px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 20px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 75px;
}
*/

/* 250711 InputField add - 편집 가능한 파일명 입력 필드 */
#videoOverlay .video-title-input {
    width: 496px;
    height: 61px;
    font-size: 24px;
    color: #000;
    padding-left: 20px;
    box-sizing: border-box;
    border: none;
    background: url('../images/video/common_video_title.png') center center / contain no-repeat;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 75px;
}

/* 버튼 패널 */
#videoOverlay .video-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* 버튼 */
#videoOverlay .video-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 166px;
    height: 61px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
}

    /* close 버튼만 별도 크기 */
    #videoOverlay .video-btn.close {
        width: 45px;
        height: 46px;
        margin-right: 0px;
        margin-left: 11px;
    }

    /* 각 버튼별 이미지 */
    #videoOverlay .video-btn.restart {
        background-image: url('../images/video/common_video_btn_restart_n.png');
    }

    #videoOverlay .video-btn.save {
        background-image: url('../images/video/common_video_btn_save_n.png');
    }

    #videoOverlay .video-btn.delete {
        background-image: url('../images/video/common_video_btn_delete_n.png');
    }

    #videoOverlay .video-btn.close {
        background-image: url('../images/video/common_video_btn_close_n.png');
    }

    #videoOverlay .video-btn.restart:hover {
        background-image: url('../images/video/common_video_btn_restart_s.png');
    }

    #videoOverlay .video-btn.save:hover {
        background-image: url('../images/video/common_video_btn_save_s.png');
    }

    #videoOverlay .video-btn.delete:hover {
        background-image: url('../images/video/common_video_btn_delete_s.png');
    }

    #videoOverlay .video-btn.close:hover {
        background-image: url('../images/video/common_video_btn_close_s.png');
    }

#videoOverlay .video-player-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* 비디오 플레이어 */
#videoOverlay .video-player {
    width: 1203px;
    height: 680px;
    border-radius: 15px;
    aspect-ratio: auto; /* 비율 유지 무시 (일부 브라우저에서 필요) */
    object-fit: fill; /* 비율 무시하고 크기에 맞춤 */
    outline: none;
}

/* 컨트롤 바 전체 */
#customVideoControls {
    width: 1028px;
    height: 61px;
    background: url('../images/video/common_video_bar_bg.png') no-repeat center center;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 15px;
}

/* 속도 조절 전체 영역 */
.speed-control {
    position: relative;
    background: transparent;
    margin-right: 20px;
}

/* 현재 속도 표시 버튼 */
#speedToggle {
    width: 113px;
    height: 61px;
    border: none;
    cursor: pointer;
    position: relative;
    background-color: transparent; /* 회색 배경 제거 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 3px;
}

    #speedToggle .arrow-icon {
        position: absolute;
        right: 1px; /* 버튼 오른쪽 */
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 10px;
        background: url('../images/video/common_video_btn_speed_n.png') no-repeat center center;
        background-size: contain;
    }

/* 드롭다운 영역 */
#speedDropdown {
    position: absolute;
    bottom: 61px; /* 아래에서 위로 열림 (버튼 높이 만큼) */
    left: 0;
    width: 113px;
    height: 188px;
    background: url('../images/video/common_video_speed_bg.png') no-repeat center center;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
}

    /* 숨김 처리 */
    #speedDropdown.hidden {
        display: none;
    }

/* 속도 옵션 버튼 (이미지 기반) */
.speed-option {
    width: 98px;
    height: 39px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
}

.speed-05 {
    background-image: url('../images/video/common_video_speed_btn_0.5_n.png');
}

    .speed-05:hover {
        background-image: url('../images/video/common_video_speed_btn_0.5_s.png');
    }

.speed-10 {
    background-image: url('../images/video/common_video_speed_btn_1.0_n.png');
}

    .speed-10:hover {
        background-image: url('../images/video/common_video_speed_btn_1.0_s.png');
    }

.speed-15 {
    background-image: url('../images/video/common_video_speed_btn_1.5_n.png');
}

    .speed-15:hover {
        background-image: url('../images/video/common_video_speed_btn_1.5_s.png');
    }

.speed-20 {
    background-image: url('../images/video/common_video_speed_btn_2.0_n.png');
}

    .speed-20:hover {
        background-image: url('../images/video/common_video_speed_btn_2.0_s.png');
    }

/* 선택된 버튼도 항상 hover 이미지 (_s.png) 유지 */
.speed-05.selected {
    background-image: url('../images/video/common_video_speed_btn_0.5_s.png');
}

.speed-10.selected {
    background-image: url('../images/video/common_video_speed_btn_1.0_s.png');
}

.speed-15.selected {
    background-image: url('../images/video/common_video_speed_btn_1.5_s.png');
}

.speed-20.selected {
    background-image: url('../images/video/common_video_speed_btn_2.0_s.png');
}

/* 재생/정지 버튼 */
#playPauseBtn {
    width: 46px;
    height: 46px;
    border: none;
    cursor: pointer;
}

    #playPauseBtn.play {
        background: url('../images/video/common_video_btn_play_n.png') no-repeat center center;
    }

        #playPauseBtn.play:hover {
            background: url('../images/video/common_video_btn_play_s.png') no-repeat center center;
        }

    #playPauseBtn.pause {
        background: url('../images/video/common_video_btn_stop_n.png') no-repeat center center;
    }

        #playPauseBtn.pause:hover {
            background: url('../images/video/common_video_btn_stop_s.png') no-repeat center center;
        }

/* 시간 표시 */
#currentTime, #duration {
    font-size: 20px;
    color: #000;
    margin-left: 10px;
    width: 50px;
    display: inline-block;
    text-align: center;
    height: 35px;
}

/* 슬라이더 */
.progress-bar {
    position: relative;
    width: 466px;
    height: 16px;
    margin-left: 10px;
}

.gauge-bg {
    width: 100%;
    height: 16px;
    background: url('../images/video/common_video_gauge_bg.png') no-repeat center center;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    background: url('../images/video/common_video_gauge.png') no-repeat left center;
    width: 0%;
}

.gauge-btn {
    position: absolute;
    top: -3.5px;
    left: 0;
    width: 23px;
    height: 23px;
    background: url('../images/video/common_video_gauge_btn.png') no-repeat center center;
    cursor: pointer;
    transition: transform 0.15s ease;
    /* 원래 크기 기준 */
    transform: scale(1);
}

/* 음량 버튼 */
.volume-control {
    position: relative;
}

/* 음량 버튼 */
#volumeBtn {
    width: 45px;
    height: 46px;
    background: url('../images/video/common_video_btn_sound_n.png') no-repeat center center;
    border: none;
    cursor: pointer;
}

    #volumeBtn:hover {
        background: url('../images/video/common_video_btn_sound_s.png') no-repeat center center;
    }

/* 볼륨 게이지 바 (펼쳐짐) */
.volume-bar {
    position: absolute;
    top: -100px; /* 버튼 위 위치 (61px + 여유) */
    left: -125px;
    display: flex;
    align-items: center;
    width: 353px; /* 배경 이미지 크기 맞춤 */
    height: 61px; /* 배경 이미지 크기 맞춤 */
    background: url('../images/video/common_video_sound_bg.png') no-repeat center center;
    background-size: contain;
    padding: 0 20px; /* 내부 여백 (아이콘과 게이지) */
    gap: 10px;
}

/* 숨김 */
.hidden {
    display: none;
}

/* 게이지 영역 */
.sound-gauge-bg {
    position: relative;
    flex-shrink: 0; /* 너비 고정 */
    width: 220px;
    height: 15px;
    background: url('../images/video/common_video_sound_gauge_bar.png') no-repeat center center;
    background-size: contain;
    margin-left: 40px;
}

/* 게이지 채움 */
.sound-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px; /* 이미지 높이에 맞춤 */
    background: url('../images/video/common_video_gauge.png') no-repeat left center;
    background-size: auto 100%; /* 세로는 100% 유지, 가로는 자동 */
    width: 35%; /* 기본 */
}

/* 게이지 핸들 */
.sound-gauge-btn {
    position: absolute;
    top: 50%; /*  게이지 바 중앙 정렬 */
    transform: translateY(-50%); /* 수직 중앙 */
    left: 30%; /* JS로 퍼센트 조절 (기본 30%) */
    width: 25px;
    height: 25px;
    background: url('../images/video/common_video_sound_gauge_btn.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* 음량 수치 */
.volume-value {
    width: 30px;
    text-align: right;
    font-size: 23px;
    color: #000;
    margin-left: 10px;
}

/* 전체 화면 버튼 */
#fullscreenBtn {
    width: 45px;
    height: 46px;
    background: url('../images/video/common_video_btn_fullscreen_n.png') no-repeat center center;
    border: none;
    cursor: pointer;
}

    #fullscreenBtn:hover {
        background: url('../images/video/common_video_btn_fullscreen_s.png') no-repeat center center;
    }
