*,*:before,*:after {
    box-sizing: border-box;
    word-break: keep-all;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: "NanumSquareRound";
    font-size: 16px;
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
p {
    margin: 0;
    cursor: pointer;
}
/* 스크롤바 커스텀 */
.mCSB_scrollTools .mCSB_draggerRail {background-color: #ccc}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color:rgba(0,0,0,.6)}
.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,
.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {background-color:rgba(0,0,0,1)}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1010px;
    height: 610px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

#content-wrapper {
    position: relative;
    width: 100%;
    height: 568px;
}

#content-wrapper>video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#top-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    color: #fff;
    z-index: 100;
}
#top-wrapper .chapter {
    float: left;
    width: 50%;
    height: 100%;
    background: no-repeat center left 10px;
    /* background-image: url(../img/chapter.png); */
}
#top-wrapper .top-title {
    position: relative;
    top: 0px;
    float: right;
    width: 50%;
    height: 100%;
    background: url(../img/top_title.png) no-repeat center right 10px;
}

#index-wrapper {
    position: absolute;
    bottom: 42px;
    left: -200px;
    margin: auto;
    width: 200px;
    z-index: 105;
}
#index-wrapper.on {
    left: 0;
}
#index-wrapper>.btn-index {
    display: none;
    position: absolute;
    top: 50%;
    right: -38px;
    width: 38px;
    height: 87px;
    background: url(../img/index/btn_index.png);
    transform: translateY(-50%);
}
#index-wrapper>.btn-close {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin: 0;
    width: 57px;
    height: 12px;
    background-image: url(../img/index/btn_close.png);
}
#index-wrapper>.index-inner {
    margin: 0;
    padding: 0 0 40px;
    width: 100%;
    list-style: none;
    background-color: rgba(0,0,0,.8);
    color: #fff;
    overflow: hidden;
    word-break: keep-all;
}
#index-wrapper>.index-inner>li {
    padding-left: 10px;
    width: 100%;
    background: #000;
    line-height: 27px;
    font-size: 18px;
    letter-spacing: -0.02em;
    cursor: pointer;
}
#index-wrapper>.index-inner>li+li {
    margin-top: 10px;
}
#index-wrapper>.index-inner>li.sub {
    background: none;
    color: #c1c1c1;
    line-height: 20px;
    font-size: 16px;
}
#index-wrapper>.index-inner>li.active,
#index-wrapper>.index-inner>li:hover {background-color: #fc6c90}
#index-wrapper>.index-inner>li:not(.sub)+li.sub,
#index-wrapper>.index-inner>li.sub+li:not(.sub) {margin-top:5px}
#index-wrapper>.index-inner>li.sub+li.sub {margin-top: 5px}
#index-wrapper>.index-inner>li.sub:before {
    content: "";
    float: left;
    margin: 7px 3px;
    width: 4px;
    height: 4px;
    background-color: #c1c1c1;
    border-radius: 2px;
}

/* toolbar */
#toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background: #4b5b7e;
    color: #fff;
    z-index: 100;
}
/* index button */
#toolbar>.btn-index {
    position: absolute;
    top: 0;
    left: 18px;
    width: 62px;
    height: 40px;
    background: url(../img/toolbar/btn_index.png) no-repeat center;
}
/* 시간바 */
#toolbar>.timebar-wrapper {
    position: absolute;
    top: 0;
    left: 105px;
    width: 605px;
    height: 100%;
}
#toolbar>.timebar-wrapper>.timebar {
    position: relative;
    width: calc(100% - 110px);
    margin: 16px 0;
    height: 10px;
    background: #ccc;
    background-origin: content-box;
    background-clip: content-box;
    border-radius: 5px;
}
#toolbar>.timebar-wrapper>.timebar>.time-range {
    position: relative;
    float: left;
    max-width: 100%;
    width: 0;
    height: 100%;
    background: #fcd328;
    border-radius: 5px;
}
#toolbar>.timebar-wrapper>.timebar>.time-range:before {
    content: "";
    position: absolute;
    top: -3px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #fcd328;
    border-radius: 10px;
}
#toolbar>.timebar-wrapper>.currtime, #toolbar>.timebar-wrapper>.duration {
    position: absolute;
    top: 0;
    right: 55px;
    width: 45px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
}
#toolbar>.timebar-wrapper>.duration {right: 0px}
#toolbar>.timebar-wrapper>.currtime:after {
    content: "/";
    position: absolute;
    top: 0;
    right: -8px;
    width: 6px;
    line-height: 40px;
    font-size: 12px;
    font-weight: 800;
}
/* 영상 배속 */
#toolbar>.speed-wrapper {
    display: none;
    position: absolute;
    top: 0;
    right: 325px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
#toolbar>.speed-wrapper>.btn-slow,
#toolbar>.speed-wrapper>.btn-fast {
    float: left;
    margin: 12px 2px;
    width: 16px;
    height: 16px;
    background: url(../img/toolbar/btn_speed.png);
}
#toolbar>.speed-wrapper>.btn-fast {
    background-position-x: -16px;
}
#toolbar>.speed-wrapper>.btn-slow:hover,
#toolbar>.speed-wrapper>.btn-fast:hover {
    background-position-y: -16px
}
#toolbar>.speed-wrapper>.currspeed {
    float: left;
    width: 25px;
    font-size: 18px;
}
#toolbar>.speed-wrapper>.currspeed+span {
    float: left;
    width: 35px;
    font-size: 16px;
}
/* 비디오버튼 */
#toolbar>.btn-play,#toolbar>.btn-pause,#toolbar>.btn-replay,#toolbar>.btn-script,#toolbar>.btn-mute,#toolbar>.btn-fullscreen {
    position: absolute;
    top: 0;
    margin: 7.5px 5px;
    width: 25px;
    height: 25px;
    background: url(../img/toolbar/buttons.png);
}
#toolbar>.btn-play:hover,#toolbar>.btn-pause:hover,#toolbar>.btn-replay:hover,#toolbar>.btn-script:hover,#toolbar>.btn-fullscreen:hover,
#toolbar>.btn-play.on,#toolbar>.btn-pause.on,#toolbar>.btn-mute.on {
    background-position-y: -25px;
}
#toolbar>.btn-play {right: 260px; background-position-x: 0}
#toolbar>.btn-pause {right: 230px; background-position-x: -25px}
#toolbar>.btn-replay {right: 200px; background-position-x: -50px}
#toolbar>.btn-script {right: 170px; background-position-x: -75px}
#toolbar>.btn-mute {right: 140px; background-position-x: -100px}
#toolbar>.btn-fullscreen {display: none; right: 140px; background-position-x: -125px}
#toolbar>.script-wrapper {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: auto;
    padding: 10px 30px 10px 10px;
    width: 900px;
    height: 100px;
    background: #ddd;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    overflow: hidden;
    z-index: 90;
}
#toolbar>.script-wrapper.on {display: block}
#toolbar>.script-wrapper>.btn-close {
    position: absolute;
    top: 0; right: 0;
    width: 25px;
    height: 25px;
    background: #000;
    opacity: .6;
    border-bottom-left-radius: 10px;
    text-align: center;
}
#toolbar>.script-wrapper>.btn-close:hover {opacity:1}
#toolbar>.script-wrapper>.btn-close:before {
    content: "X";
    line-height: 25px;
    color: #fff;
    font-size: 20px;
}
#toolbar>.script-wrapper>.script-inner {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow-x: hidden;
    overflow-y: auto;
}
#toolbar>.script-wrapper>.script-inner span:first-child {
    float: left;
    width: 65px;
    line-height: 20px;
}
#toolbar>.script-wrapper>.script-inner span:last-child {
    float: left;
    width: calc(100% - 65px);
    line-height: 20px;
    word-break: keep-all;
}
/* 페이지 컨트롤러 */
#toolbar>.page-wrapper {
    position: absolute;
    top: 0;
    right: 5px;
    height: 100%;
}
#toolbar>.page-wrapper>.btn-prev,
#toolbar>.page-wrapper>.btn-next {
    float: left;
    margin: 11.5px 4px;
    width: 23px;
    height: 17px;
    background: url(../img/toolbar/btn_page.png);
}
#toolbar>.page-wrapper>.btn-prev:hover,
#toolbar>.page-wrapper>.btn-next:hover {background-position-y: -17px}
#toolbar>.page-wrapper>.btn-prev {background-position-x: 0}
#toolbar>.page-wrapper>.btn-next {background-position-x: -23px}
#toolbar>.page-wrapper>span {
    float: left;
    width: 35px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
}
#toolbar>.page-wrapper:after {
    content: "/";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -4px;
    width: 8px;
    line-height: 40px;
    font-size: 13px;
}
#toolbar>.pop-next {
    position: absolute;
    bottom: 42px;
    right: 10px;
    width: 137px;
    height: 45px;
    background: url(../img/toolbar/pop_next.png);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: .3s linear;
}
#toolbar>.pop-next.last {background-position-y:-45px}
#toolbar>.pop-next.on {transform:scaleY(1)}

/* mobile */
#container.mobile #index-wrapper {
    top: 10%;
    transform: none;
}
#container.mobile #index-wrapper>.btn-index {
    top: 15px;
    transform: none;
}
#container.mobile #toolbar {padding: 0}
#container.mobile #toolbar>.timebar-wrapper>.timebar {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    width: 490px;
    height: 100%;
    border-radius: 0;
}
#container.mobile #toolbar>.timebar-wrapper>.timebar>.time-range {background-color: #a6120c}
#container.mobile #toolbar>.timebar-wrapper>.timebar>.time-range:before {content:none}
#container.mobile #toolbar>.page-wrapper {
    padding: 0 10px;
}
#container.mobile #toolbar>.btn-mute,
#container.mobile #toolbar>.page-wrapper>.btn-prev,
#container.mobile #toolbar>.page-wrapper>.btn-next {display: none}
#container.mobile #toolbar>.page-wrapper>span {
    width: 40px;
    font-size: 28px;
}
#container.mobile #toolbar>.page-wrapper:after {
    width: 10px;
    font-size: 18px;
}
/* 모바일 페이지 버튼 */
#container.mobile #toolbar-mobile>.btn-prev,
#container.mobile #toolbar-mobile>.btn-next {
    position: absolute;
    top: 50%;
    width: 134px;
    height: 250px;
    background: url(../img/toolbar/btn_page_m.png);
    transform: translateY(-50%);
    opacity: .5;
}
#container.mobile #toolbar-mobile>.btn-prev {
    left: 10px;
}
#container.mobile #toolbar-mobile>.btn-next {
    right: 10px;
    background-position-x: -134px;
}
#container.mobile #toolbar-mobile>.btn-prev:hover,
#container.mobile #toolbar-mobile>.btn-next:hover {
    opacity: 1;
}

/* 진행바 및 다음버튼, 인덱스 막기 */


#index-wrapper>.index_box,
#toolbar>.timebar-wrapper>.play_box,
#toolbar>.page-wrapper>.next_box,
#toolbar-mobile>.next_mobox{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
    cursor:default;}

#toolbar-mobile>.next_mobox{right:0; width:150px !important;}
#toolbar>.page-wrapper>.next_box{right:0; width:35px !important;}