*{ font-family: 'Roboto', "Noto Sans TC", sans-serif; }
body{ position: relative; margin: 0; padding: 0; width: 100vw; overflow-x: hidden; background: #121212; font-size: 16px; }
a{ text-decoration: none; cursor: pointer; }
ul, li{ list-style: none; text-decoration: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, em{ margin: 0; padding: 0; }
em{ font-style: normal; text-transform: none; list-style: none; }
h1, h2, h3, h4, h5, h6{ font-family: 'Roboto', "Noto Sans TC", sans-serif; }
p{ font-family: 'Roboto', "Noto Sans TC", sans-serif; font-size: 1em; font-weight: 400;}
::selection { color: #ffffff; background: #28D2A0; }
section{ position: relative; width: 100%; margin: 0 auto; }
.scrollfixed{ overflow: hidden; }

/* ============================================================
player
============================================================ */
.screen{ position: fixed; width: 100%; height: 100vh; top: 0; left: 0;}
.player{ width: 100%; height: 100vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden;}
.fullscreen-setting{ width: 100%; height: 100vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden;}
.video{ width: 100%; position: relative;height: 100vh;}
.video-mask{ position: absolute; top: 0; left: 0; width: 100%; padding-bottom: 56.25%; background: rgba(0, 0, 0, 1.0); display: none;}
.video.fullscreen{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
.video video{ position: absolute; width: 100%; height: 100%; top: 0; left: 0; object-fit: contain; object-position: center;}

.video-top{ width: 100%; height: 80px; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); position: absolute; top: 0; left: 0; opacity: 0;}
.video-name{ width: calc(95% - 40px); position: relative; margin: 15px 0 0 2.5%; font-size: 1.2em; font-weight: 500; color: #ffffff; height: 30px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;}
@media all and (min-width: 768px){ .video-name{ font-size: 1.4em; } }

.player-icon{ width: 28px; position: relative; margin: 0 5px; color: #ffffff; font-size: .9em; font-weight: 500;}
.player-icon img{ width: 100%; vertical-align: bottom;}
.text-icon{ width: 40px; margin: 0 8px; color: #ffffff; font-size: .9em; font-weight: 500; text-align: center; position: relative;}
.text-icon a{ color: #ffffff;}
.icon-chromecast{ position: absolute; top: 15px; right: 2.5%; margin: 0;}

.video-tip-btn{ position: absolute; padding: 5px 10px; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .7); font-size: 1em; font-weight: 500; color: #ffffff; right: 15px; bottom: 90px; cursor: pointer; display: none;}
.video-tip-bg{ position: absolute; top: 0; left: 0; height: 100%; width: 0; background: rgba(255, 255, 255, .3);}
.video-control{ width: 100%; height: 80px; background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); position: absolute; bottom: -1px; left: 0; opacity: 0;}

.control-progress{ width: 98%; position: relative; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;}
.progress-bar{ width: calc(98% - 155px); position: relative; cursor: pointer; background: none;}
.player__progress{ -webkit-appearance: none; border-radius: 2px; width: 100%; height: 5px; position: relative; outline : none; transition: .1s; top: -2px; background: rgba(255, 255, 255, .4);}
.player__progress::-webkit-slider-thumb{ -webkit-appearance: none; width:18px; height:18px; background:#ffffff; border-radius:50%; transition:.1s;}
.player__progress::-webkit-slider-thumb:hover,
.player__progress::-webkit-slider-thumb:active{ width:22px; height:22px;}

.clipvideo{ width: 20%; position: absolute; top: 0; left: 0; transform: translate(-50%, -110%); border: 3px solid #ffffff; box-sizing: border-box; background: #ffffff; display: none;}
.clipvideo-pic{ width: 100%; padding-bottom: 56.25%; position: relative; overflow: hidden; }
.clipvideo-pic img{ width: 1000%; position: absolute; top: 0; left: 0;}
.clipvideo-time{ background: #ffffff; font-size: .9em; font-weight: 300; text-align: center; color: #333333; padding-top: 5px;}
.progress-time{ width: 155px; position: relative; text-align: left; font-size: .8em; font-weight: 300; color: #ffffff;}
.control-bottons{ width: 96%; position: relative; margin: 15px auto; position: relative; display: flex; justify-content: space-between; align-items: center;}
.control-left{ position: relative; display: flex; justify-content: flex-start; align-items: center;}

.volume-container{ margin-left: 8px; display: flex; justify-content: flex-start; align-items: center;}
.player__volume{ -webkit-appearance: none; border-radius: 2px; width: 90px; height: 7px; position: relative; background: rgba(255, 255, 255, .4); background-image: -webkit-linear-gradient(left ,#2745AF 0%,#672F7F 50%,rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .4) 100%); outline : none; transition: .1s; top: -2px; border-radius: 5000px;}
.player__volume.muted{ background: #666666; opacity: .5;}
.player__volume::-webkit-slider-thumb{ -webkit-appearance: none; width:7px; height:7px; background:#672F7F; border-radius:50%; transition:.1s;}

.volume-value-text{ position: absolute; top: -10px; right: 0; width: 40px; height: 15px; text-align: right; color: #ffffff; font-size: .8em; font-weight: 300; opacity: 0;}

.control-right{ position: relative; display: flex; justify-content: flex-start; align-items: center;}
.control-right .player-icon{ margin: 0 8px;}
@media all and (min-width: 960px){ .control-right .player-icon, .text-icon{ margin: 0 15px; }}

.hover-option{ position: absolute; bottom: 30px; background: rgba(0, 0, 0, .9); border-radius: 5px; width: 100px; transform: translate(-50%, 0); left: -1000em; opacity: 0; display: none; transition: opacity 0.5s 0s, left 0s 0.5s;}
.player-icon.active .hover-option{ opacity: 1; display: block; left: 50%;}
.player-icon.active .setting-group{ left: auto; right: -15px;}
.player-icon.active .hover-group{ opacity: 1; display: flex; left: 50%;}
.hover-option-out{ left: -1000em; opacity: 0;}

.option-title{ font-size: 1em; font-weight: 500; padding: 10px 0; border-bottom: 1px solid #555555; text-align: center; color: #eeeeee;}
.option-items li{ font-size: .9em; font-weight: 300; padding: 5px 0; cursor: pointer; text-align: center; transition: .15s linear; color: #eeeeee;}
.option-items li:nth-child(1){ padding-top: 10px;}
.option-items li:nth-last-child(1){ padding-bottom: 10px;}
.option-items li:hover{ color: #3899c1;}
.option-items li.active{ font-weight: 500; color: #4BCAFF;}

.text-icon:hover .all-tips,
.subtitle-btn:hover .all-tips,
.setting-btn:hover .all-tips,
.next-episode-btn:hover .all-tips,
.window-btn:hover .all-tips,
.fullscreen_btn:hover .all-tips{ left: 50%; opacity: 1; transition: opacity 0.5s 0s;}

.hover-group{ width: 210px; font-size: .9em; display: flex; justify-content: space-between; align-items: stretch; align-content: stretch; flex-wrap: wrap;}
.option-group{ min-width: 100px; position: relative;}
.setting-group{ width: 160px; font-size: .9em; transform: translate(0,0); left: auto; right: 15px;}
.setting-content{ width: 100%; position: relative; font-size: .9em; font-weight: 300; padding: 5px 0; cursor: pointer; text-align: center; transition: .15s linear; color: #eeeeee;}
.setting-item{ width: 100%; position: relative; margin: 8px 0; display: flex; justify-content: space-between; align-items: stretch; align-content: stretch; flex-wrap: wrap;}
.option-items li.setting-item:hover{ opacity: 1;}
.setting-item-name{ width: calc(100% - 70px); text-align: left; margin-left: 10px;}

.switch-btn{ width: 40px; height: 20px; position: relative; border-radius: 5000px; border: 2px solid #eeeeee; background: #666666; box-sizing: border-box; margin-right: 10px;}
.switch-circle{ width: 22px; height: 22px; position: absolute; top: -3px; left: -1px; border-radius: 50%; background: #ffffff; cursor: pointer; box-shadow: 1px 1px 5px rgba(0, 0, 0, .8);}
.switch-btn.active{ background: #4BCAFF;}
.switch-btn.active .switch-circle{ left: calc(100% - 21px);}
.setting-hover .setting-item-name{ transition: .15s linear;}
.setting-hover:hover .setting-item-name{ color: #4BCAFF;}

.all-tips{ position: absolute; width: auto; min-width: 50px; height: 30px; top: 0; left: 50%; transform: translate(-50%, -102%); border-radius: 5px; background: rgba(0, 0, 0, .8); color: #ffffff; font-size: .9em; font-weight: 300; text-align: center; line-height: 32px;}
.episode-tip, .quality-tip, .speed-tip, .setting-tip{ width: 50px; left: -1000em; opacity: 0; transition: opacity 0.5s 0s, left 0s 0.5s;}
.fullscreen-tip{ width: 65px; left: -1000em; opacity: 0; transition: opacity 0.5s 0s, left 0s 0.5s;}
.subtitle-tip{ width: 80px; left: -1000em; opacity: 0; transition: opacity 0.5s 0s, left 0s 0.5s;}
.next-tip{ width: 65px; left: -1000em; opacity: 0; transition: opacity 0.5s 0s, left 0s 0.5s;}
.window-tip{ width: 65px; left: -1000em; opacity: 0; transition: opacity 0.5s 0s, left 0s 0.5s;}
.icon-episode:hover .episode-tip{ left: 50%; opacity: 1; transition: opacity 0.5s 0s;}

.control-tip{ width: 100px; height: 100px; background: rgba(0, 0, 0, 1); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; display: none;}
.control-tip img{ position: absolute; width: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);}
.control-tip h5{ width: 100%; text-align: center; line-height: 100px; font-size: 2em; font-weight: 700; color: #ffffff;}

.keyboard-tip{ position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, .8); z-index: 5; opacity: 0; display: none;}
.keyboard-tip img{ position: absolute; width: 90%; max-width: 860px; top: 50%; left: 50%; transform: translate(-50%, -50%);}

.popupcover-info-close{ width: 30px; height: 30px; position: absolute; top: 15px; right: 15px; cursor: pointer; z-index: 2;}
.popupcover-info-close:before{ content: ''; display: table; width: 30px; height: 2px; transform: rotate(45deg); background: #ffffff; margin-top: 15px;}
.popupcover-info-close:after{ content: ''; display: table; width: 30px; height: 2px; transform: rotate(-45deg); background: #ffffff; margin-top: -2px;}

.player-episode-all{ position: absolute; width: 100%; height: 100%; top: 0; right: -340px; z-index: 4; opacity: 0; display: none;}
.player-episode-mask{ width: calc(100% - 340px); height: 100%; position: absolute; top: 0; left: 0;}
.player-episode-content{ position: absolute; width: 340px; height: 100%; top: 0; right: 0; background: rgba(0, 0, 0, .85);}
.player-episode-container{ width: 85%; height: calc(100% - 40px); position: relative; margin: 0 auto; padding: 20px 0;}
.player-choose-epi{ font-size: .9em; font-weight: 300; color: #eeeeee; margin-bottom: 10px;}
.player-choose-epi select{ width: calc(100% - 85px); border: 1px solid #f5f5f5; box-sizing: border-box; border-radius: 5px; background: none; color: #f5f5f5; padding: 5px; appearance:none;   -moz-appearance:none;   -webkit-appearance:none;  background: url('../img/player/select-arrow-down.svg') no-repeat 95% center transparent; background-size: 10px;}
.player-choose-epi select:focus{ border: 1px solid #f5f5f5; outline: none;}
.player-choose-epi select option{ width: 100%; position: relative; padding: 5px; box-sizing: border-box; background: rgba(0, 0, 0, .9); color: #f5f5f5; text-align: left; font-size: 1em; font-weight: 300; transition: .15s linear;}

ul.episode-player{ width: 100%; height: calc(100% - 70px); max-height: calc(100% - 70px); position: relative; overflow: auto;}
ul.episode-player:after{ content: ''; display: table; height: 30px;}
ul.episode-player::-webkit-scrollbar{ width: 8px }
ul.episode-player::-webkit-scrollbar-track { background: rgba(255, 255, 255, .1);}
ul.episode-player::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.4);  border-radius: 5000px;}

.epi-player-item{ width: 100%; position: relative; display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid #666666; padding: 17px 0; padding-right: 20px; padding-left: 12px; box-sizing: border-box; transition: .15s linear;}
.epi-player-item.seen{ background: #333333;}
.epi-player-item.current{ border: 1px solid #ffffff;}
.epi-player-item:hover{ border: 1px solid #999999;}
.epi-player-text{ width: 100%; position: relative; color: #ffffff; cursor: pointer;}
.epi-player-time{ width: 50px; position: relative; font-size: .8em; font-weight: 300; color: #999999; text-align: right;}
.epi-player-text h6{ width: 100%; font-size: .9em; font-weight: 500; text-align: left; margin-bottom: 5px; position: relative; height: 20px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;}
.epi-player-text h5{ width: 100%; font-size: .8em; font-weight: 300; text-align: left; position: relative; height: 18px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;}
.epi-player-down{ width: 14px; position: absolute; bottom: 0; right: 0; cursor: pointer;}
.epi-player-down img{ width: 100%; vertical-align: bottom;}
.epi-player-down.active{ transform: rotate(180deg);}
.epi-player-intro{ width: 95%; position: relative; margin: 10px auto; display: none;}
.epi-player-intro p{ font-size: .8em; font-weight: 300; color: #f5f5f5; text-align: justify;}


/* ============================================================
controller-in-out
============================================================ */
/* controller-in-out */
.controller-in{ animation: controlIn .2s linear forwards;}
.controller-out{ animation: controlOut .2s linear forwards;}

@keyframes controlIn{ 
	0%{ opacity: 0; }
	100%{ opacity: 1; }
}

@keyframes controlOut{ 
	0%{ opacity: 1; }
	100%{ opacity: 0; }
}

/* ============================================================
loading
============================================================ */
.loading{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); margin-top: -35px; margin-left: -35px; display: none;}
.loading-circle{ border: 4px solid #1b62b4; }

/* ============================================================
chapter
============================================================ */
.chapter-choose{ width: 100%; height: 100%; position: absolute; top: -100%; left: -100%; background: rgba(0, 0, 0, .85); opacity: 0; }
.chapter-choose.show{ top: 0; left: 0; }
.chapter-choose-container{ width: 90%; position: relative; margin: 0 auto; top: 50%; transform: translate(0,-50%); }
.chapter-item{ width: 220px; position: relative; margin: 0 5px; }
.chapter-title{ font-size: 1.2em; font-weight: 500; text-align: left; color: #fff; margin: 20px 0; }
.chapter-screen{ width: 100%; position: relative; padding-bottom: 56.25%; overflow: hidden; }
.chapter-screen img{ width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; }
.chapter-screen::before{ content: ''; display: table; position: absolute; width: 100%; padding-bottom: 56.25%; top: 0; left: 0; background: rgba(0, 0, 0, .3); z-index: 2; transition: .15s linear; }
.chapter-screen:after{ content: ''; display: table; position: absolute; width: 30px; height: 30px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: url(../../img/player/icon_play.svg); background-size: 100% 100%; opacity: .7; z-index: 2; transition: .15s linear; }
.chapter-item:hover .chapter-screen::before{ background: rgba(0, 0, 0, .15); }
.chapter-item:hover .chapter-screen:after{ opacity: 1; }
.chapter-info{ width: 100%; position: relative; background: #000; padding: 10px 0; }
.chapter-info-container{ width: 90%; position: relative; margin: 0 auto; color:#fff; }
.chapter-info-container h4{ font-size: 1em; font-weight: 400; height: 24px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.chapter-info-container p{ font-size: .85em; font-weight: 300; margin-top: 5px; }

.slick-next, .slick-prev{ width: 27px; height: 48px; z-index: 2; }
.slick-prev{ left: 10px; background: url(../../img/player/next-arrow.svg) no-repeat; background-size: contain; background-position: center; transform: rotate(180deg); margin-top: -25px; }
.slick-next{ right: 10px; background: url(../../img/player/next-arrow.svg) no-repeat; background-size: contain; background-position: center; }
.slick-next:before, .slick-prev:before{ content: ''; }


/* ============================================================
guide popup
============================================================ */
.btn-basic-container {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 40px;
    position: relative;
    padding: 0 18px;
    border-radius: 2000px;
    text-align: center;
    line-height: 38px;
    font-size: 1.1em;
    font-weight: 400;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: .15s linear;
    transition: .15s linear;
    cursor : pointer;
}

.btn-basic-container.border-white {
	background: none;
	border: 1px solid #fff;
	color: #fff;
	margin-right: 10px;
}

.btn-basic-container.blue {
    background: #1b62b4;
    border: 1px solid #1b62b4;
    color: #fff;
}

.guide-popup {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, .85);
	opacity: 0;
	display: none;
}

.guide-popup.active {
	opacity: 1;
	display: block;
}

.guide-popup-container {
	width: 90%;
	position: relative;
	margin: 0 auto;
	top: 50%;
	transform: translate(0, -35%);
	align-content: center;
	text-align: center
}

.guide-popup .guide-title {
	font-size: 1.5em;
	font-weight: 500;
	color: #fff;
	text-align: left;
	line-height: 1.5em;	
	text-align: center
}

.guide-popup .guide-btn-control{
	margin: 15px 0;
}

.guide-popup .guide-register {
	font-size: 1.5em;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
}

/* ============================================================
finish popup & next-episode popup
============================================================ */
.finish-popup {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display : none;
  opacity: 0;
  transition: 1s linear;
  --before-url: ""
}

.finish-popup.active{
  display : block;
  opacity: 1;
}

.finish-popup::before {
  content: '';
  display: table;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/img/packages/header_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-filter: blur(10px);
          filter: blur(10px);
  z-index: 1;
}

.finish-popup .finish-popup-poster {
  width: 70%;
  position: absolute;
  top: 50%;
  right: 0;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
  -webkit-box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
          box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.finish-popup .finish-popup-poster img {
  width: 100%;
  vertical-align: bottom;
}

.finish-popup::after {
  content: '';
  display: table;
  width: 70%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.9)), to(rgba(0, 0, 0, 0)));
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  z-index: 3;
}

.finish-popup .finish-popup-info {
  width: 50%;
  position: absolute;
  top: 5%;
  left: 3%;
  z-index: 4;
}

.finish-popup .finish-popup-info h3 {
  font-size: .875em;
  font-weight: 500;
  color: #A3B2BF;
  line-height: 1.8em;
  margin-bottom: 3px;
  position: relative;
  width: 100%;
  max-height: 80px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.finish-popup .finish-popup-info h3 em {
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    max-height: 130px;
  }
}

.finish-popup .finish-popup-info .finish-popup-count {
  font-size: .75em;
  font-weight: 500;
  color: #A3B2BF;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-info .finish-popup-count {
    font-size: 1.25em;
  }
}

.finish-popup .finish-popup-info .finish-popup-btn {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  font-size: .875em;
  font-weight: 500;
  line-height: 30px;
  height: 30px;
  padding: 0 14px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 10000px;
  background: #fff;
  margin-top: 20px;
  opacity: 1;
  -webkit-transition: .15s linear;
  transition: .15s linear;
  cursor : pointer;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-info .finish-popup-btn {
    font-size: 1.125em;
    line-height: 40px;
    height: 40px;
    padding: 0 20px;
  }
}

@media screen and (min-width: 1100px) {
  .finish-popup .finish-popup-info .finish-popup-btn {
    opacity: .8;
  }
  .finish-popup .finish-popup-info .finish-popup-btn:hover {
    opacity: 1;
  }
}

.finish-popup .finish-popup-info .finish-popup-btn img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-info .finish-popup-btn img {
    width: 18px;
    height: 18px;
  }
}

.finish-popup .finish-popup-info .finish-popup-btn a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.finish-popup .finish-popup-replay {
  width: 235px;
  position: absolute;
  bottom: 10%;
  right: -20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  border-radius: 1000px 0 0 1000px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 12px 20px;
  opacity: 1;
  z-index: 4;
  -webkit-transition: .15s linear;
  transition: .15s linear;
  cursor : pointer;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-replay {
    width: 340px;
  }
}

@media screen and (min-width: 1100px) {
  .finish-popup .finish-popup-replay {
    opacity: .8;
  }
  .finish-popup .finish-popup-replay:hover {
    opacity: 1;
  }
}

.finish-popup .finish-popup-replay img {
  width: 25px;
  position: relative;
  margin-right: 8px;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-replay img {
    width: 36px;
  }
}

.finish-popup .finish-popup-replay h3 {
  width: 160px;
  position: relative;
  font-size: .75em;
  font-weight: 500;
  line-height: 1.4em;
  color: #A3B2BF;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-replay h3 {
    width: 245px;
    font-size: 1em;
  }
}

.finish-popup .finish-popup-replay h3 em {
  font-size: 1.3em;
  font-weight: 700;
}

.finish-popup .finish-popup-replay a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.finish-popup .finish-popup-close {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 3%;
  top: 5%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  z-index: 5;
  -webkit-transition: .15s linear;
  transition: .15s linear;
  cursor : pointer;
}

@media screen and (min-width: 540px) {
  .finish-popup .finish-popup-close {
    width: 50px;
    height: 50px;
  }
}

@media screen and (min-width: 1100px) {
  .finish-popup .finish-popup-close {
    opacity: .8;
  }
  .finish-popup .finish-popup-close:hover {
    opacity: 1;
  }
}

.finish-popup .finish-popup-close::before {
  content: '';
  display: table;
  width: 60%;
  height: 3px;
  border-radius: 1000px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
}

.finish-popup .finish-popup-close::after {
  content: '';
  display: table;
  width: 60%;
  height: 3px;
  border-radius: 1000px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
}

.finish-popup-trailer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.finish-popup-trailer iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.next-episode-popup {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	opacity: 0;
	transition: 1s linear;
}

.next-episode-popup.active {
	display: block;
	opacity: 1;
}

.next-episode-popup .next-episode-popup-container {
  position: relative;
  top: 50%;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
}

.next-episode-popup .next-episode-popup-container h5 {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  margin: 0 auto 20px;
  font-size: 1em;
  font-weight: 500;
  color: #A3B2BF;
  text-align: center;
}

@media screen and (min-width: 540px) {
  .next-episode-popup .next-episode-popup-container h5 {
    font-size: 1.25em;
  }
}

.next-episode-popup .next-episode-popup-container h5 .next-episode-popup-countdown {
  color: #FF8400;
  font-weight: 700;
}

.next-episode-popup .next-episode-popup-container .episode-popup-controls {
  width: 70%;
  max-width: 400px;
  position: relative;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item {
  width: 30%;
  position: relative;
  margin: 0 1.6%;
  text-align: center;
  -webkit-transition: .15s linear;
  transition: .15s linear;
}

@media screen and (min-width: 1100px) {
  .next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item {
    opacity: .8;
  }
  .next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item:hover {
    opacity: 1;
  }
}

.next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item img {
  width: 70%;
  position: relative;
  margin: 0 auto;
  text-align: center;
  vertical-align: bottom;
}

.next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item p {
  margin-top: 10px;
  text-align: center;
  font-size: .75em;
  font-weight: 500;
  color: #A3B2BF;
}

@media screen and (min-width: 540px) {
  .next-episode-popup .next-episode-popup-container .episode-popup-controls .episode-popup-controls-item p {
    font-size: 1em;
  }
}

/* ============================================================
popup over
============================================================ */
@keyframes loadingOpacity{
	0%{ background: rgba(27, 98, 180, 0); }
	10%{ background: rgba(27, 98, 180, 1); }
	30%{ background: rgba(27, 98, 180, 1); }
	40%{ background: rgba(27, 98, 180, 0); }
	100%{ opacity: 0; }
}

.countdown-text{ width: 100%; position: relative; color: #fff; font-size: 1em; font-weight: 300; text-align: center; margin: 10px auto; }

/* ============================================================
recommend-popup
============================================================ */
.recommend-popup{ width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: rgba(0, 0, 0, .85); opacity: 0; display: none; }
.recommend-popup-container{ width: 90%; position: relative; margin:0 auto; top: 50%; transform: translate(0,-50%); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.recommend-popup-title{ font-size: 1.2em; font-weight: 500; text-align: left; color: #fff; margin: 20px 0; }
.recommend-popup-content{ width: 100%; position: relative; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.recommend-popup .related-text h5{ font-size: 1em; }
.recommend-popup .related-text p{ font-size: .85em; color: #eeeeee; }
.recommend-popup .detail-all-item .related-text{ transition: .15s linear; }
.recommend-popup .detail-all-item:hover .related-text{ background: rgba(255, 255, 255, .1); }
.recommend-popup .related-content:after{ content: ''; display: table; position: absolute; width: 30px; height: 30px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: url(../../img/player/icon_play.svg); background-size: 100% 100%; opacity: .7; z-index: 2; transition: .15s linear; }
.recommend-popup .detail-all-item:hover .related-content:after{ opacity: 1; }

.video-messages{ position: absolute; bottom:0; right: 15px; transform: translate(0,30%); background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .7); }
.video-messages-content{ font-size: 1em; font-weight: 400; text-align: right; color: #fff; padding: 5px 10px; }
.video-messages-close{ width: 12px; position: absolute; right: 15px; top: 50%; transform: translate(0,-50%); cursor: pointer; }
.video-messages-close img{ width: 100%; opacity: .6; }

/* ad free */
.ad-free{ position: absolute; right: 0; top: 125px; }
.ad-free h6{ font-size: 1em; font-weight: 500; color: #fff; padding: 12px 20px 12px 24px; border-radius: 1000px 0 0 1000px; background: #1b62b4; box-shadow: -2px 4px 4px rgba(0, 0, 0, 0.25); }