.modal-bg {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    display: none;
}

.modal-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    /* height: auto; */
    height: 80%;
    background: #fff;
    z-index: 9999999;
    overflow: auto;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    display: none;
}

.modal-close {
    height: 78px;
    width: 78px;
    background-color: transparent;
    border: 3px solid rgba(240, 240, 240, 0.5);
    border-radius: 500px;
    position: absolute;
    right: 0;
    top: 0;
    content: '';
    display: flex;
    font-size: 38px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 99999999999;
    justify-content: center;
    align-items: center;
}

.modal-close:hover {
    filter: brightness(110%);
    border-color: #fff;
}

.fa-solid,
.fas {
    display: flex !important;
    justify-content: center;
    align-items: center;
    color: #e0deff;
}

.modal-wrap::-webkit-scrollbar {
    width: 8px;
}

.modal-wrap::-webkit-scrollbar-thumb {
    height: 30%;
    background: #837bff;
    border-radius: 500px;
}

.modal-wrap::-webkit-scrollbar-track {
    background: rgba(33, 122, 244, .1);
    /*스크롤바 뒷 배경 색상*/
}

@media (max-width: 767px) {
    .modal-wrap {
        width: 80%;
        height: 80%;
        position: fixed;
        border-radius: 12px;
    }

    .pop_inner h1 {
        justify-content: flex-start;
        padding-left: 1.5rem;
    }

    .modal-close {}

    .controls {
        padding: 0px 10px 0px 0px !important
    }

    .playback-buttons button {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
    }

    .play-btn {
        margin: 0;
        font-size: 14px !important;
        padding: 0.8rem 1.6em;
    }

    .playback-buttons {
        display: none;
    }
}

/* CSS 코드 */


@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

#play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#play-button i {
    position: absolute;
    font-size: 32px;
    color: white;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
}

.video-player {
    font-family: 'Pretendard';
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 video aspect ratio */
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #070707;
}

.play-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Pretendard';
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Pretendard';
}

.progress-bar {
    position: relative;
    flex-grow: 1;
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.5s ease;
}

.progress-bar.active {
    width: 100%;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.playback-buttons button {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 500px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    padding: 0.5rem 1rem;
    font-family: 'Pretendard';
}

.time-controls {
    color: #fff;
    font-size: 14px;
    margin: 0 1rem;
}

.time-controls span {
    color: rgb(240, 240, 240) !important;
}

.volume-controls {
    display: flex;
    align-items: center;
}

.volume-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    display: none;
}

#volume-bar {
    width: 50px;
}