
/* Media player subtitle selection bubble */

#reader #book .bubble-subtitle {
	left: 4px;
	bottom: 15px;
	width: 60px;
	padding: 2px;
	font-size: 14px;
	color: #FFF;
	background-color: #18222E;
}

#reader #book .bubble-subtitle:after {
	border-color: #18222E transparent;
	left: 15px;
}
#reader #book .bubble-subtitle .track-option {
	display: block;
	margin: 20px auto;
}
#reader #book .bubble-subtitle .track-option:before {
	display: none;
}
#reader #book .bubble-subtitle .track-option[disabled] {
	opacity: .2;
}
/* // Media player subtitle selection bubble */

/*
 * Video / Audio subtitles / captions
 */

#reader #book .custom-player {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin-bottom: -44px;
	background-color: #18222E;
}
#reader #book .book-mediaplayer {
	display: none;
	width: 100%;
	position: absolute;
	margin: auto 0;
	bottom: 44px;
	background-color: rgba(0,0,0);
	/*text-align: center;*/
	z-index: 1;
}
#reader #book .book-mediaplayer > * { display: none; }

#reader #book .book-mediaplayer[loading] {
	background-image: url(../images/1024/loading.gif);
	background-repeat: no-repeat;
	background-position: center;
}

#reader #book[data-contenttype=""] .bottom-bar .bottom-bar-normal,
#reader #book[data-contenttype="audio"] .custom-player,
#reader #book[data-contenttype="audio"] .book-mediaplayer,
#reader #book[data-contenttype="audio"] .book-mediaplayer > audio,
#reader #book[data-contenttype="video"] .custom-player,
#reader #book[data-contenttype="video"] .book-mediaplayer,
#reader #book[data-contenttype="video"] .book-mediaplayer > video,
#reader #book[data-contenttype="flash"] .custom-player,
#reader #book[data-contenttype="flash"] .book-mediaplayer > #FLVPlayer,
#reader #book[data-contenttype="flash"] .book-mediaplayer > #flashContent
{ display: inline-block; }

#reader #book[data-contenttype="audio"] .book-mediaplayer .video-title,
#reader #book[data-contenttype="audio"] .custom-player .button-fullscreen
{ display: none; }

/* #reader #book[data-contenttype="audio"] .custom-player .timeline {
	right: 80px;
} */
#reader #book[data-contenttype="video"] .book-mediaplayer {
	height: calc(100% - 44px);
	top: 0;
}
#reader #book[data-contenttype="video"] .book-mediaplayer video {
	position: absolute;
	margin: auto;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 100%;
	max-height: 100%;
	cursor: pointer;
}
#reader #book .book-mediaplayer[loading] video {
	display: none;
}
#reader #book .book-mediaplayer[fullscreen] {
	height: 100%;
	bottom: 0;
}
#reader #book .book-mediaplayer[fullscreen] video {
	/*min-height: 98%;
	min-height: calc(100% - 44px);*/
	min-height: 100%;
	min-width: 100%;
}

#reader #book .book-mediaplayer[fullscreen] .custom-player {
	margin-bottom: 0;
}
#reader #book .book-mediaplayer[fullscreen] .subtitle,
#reader #book .book-mediaplayer[fullscreen] .custom-player,
#reader #book .book-mediaplayer[fullscreen] .volume-controller,
#reader #book .book-mediaplayer[fullscreen] .bubble-subtitle {
	z-index: 2147483647;
}
#reader #book .book-mediaplayer[fullscreen] .volume-controller,
#reader #book .book-mediaplayer[fullscreen] .bubble-subtitle {
	bottom: 60px;
}

::cue {
	font-family: "Helvetica Neue";
    font-weight: lighter;
    text-shadow: black 0 0 1px;
}
::cue(c.red) {
	color: #F00;
}

#reader #book .book-mediaplayer .subtitle {
	position: absolute;
	display: inline-block;
	/*z-index: 10;*/
	width: 100%;
	height: auto;
	background-color: rgba(0, 0, 0, .5);
	bottom: 0;
	left: 0;
	right: 0;
	color: #FFF;
	font-size: larger;
	font-family: "Helvetica Neue";
    font-weight: lighter;
    text-shadow: black 0 0 1px;
	line-height: 2em;
	text-align: center;
}

#reader #book .book-mediaplayer .subtitle c\.red {
	color: #F00;
}

#reader[data-lang="en"] #book .book-mediaplayer .subtitle c\.tc,
#reader[data-lang="tc"] #book .book-mediaplayer .subtitle c\.en {
	visibility: hidden;
	display: none;
}

#reader #book .book-mediaplayer .custom-close-button{
  z-index:2;
  position:absolute;
  top:5px;
  right:5px;
  background-color:rgba(255,255,255,0.2);
  width:50px;
  height:50px;
  text-align: center;
  display:block;
  line-height:50px;
  border-radius:5px;
  color:#FFF;
  cursor:pointer;
}

#reader #book .book-mediaplayer.scaleCloseButton .custom-close-button{
	line-height:40px;
	height:40px;
	top:2px;
}
#reader #book .book-mediaplayer .custom-close-button:hover{
  background-color:#fbaf2d;
}