/* !Video Container */
.video_tag {
	display: none;
}

/* Prevent other stylesheets from modifying interactive elements */
.video_tag a,
.video_tag a:hover,
.video_tag a:active {
	background: transparent;
	outline: none;
}

/* !Video Layout */
video,
.mediaplayer {
	display: block;
	position: relative;
	overflow: hidden;
	outline: none;
}

/*!
 * Video States
 */
.mediaplayer {
	position: relative;
	background-color: #000;
}

.mediaplayer.mediaerror .poster {
	display: none;
}

.mediaplayer .poster {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.mediaplayer.state-waiting .poster,
.mediaplayer.state-idle .poster,
.mediaplayer.state-ended .poster {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	background-position: center center;
	cursor: default;
}

.mediaplayer.state-idle .poster,
.mediaplayer.state-ended .poster {
	cursor: pointer;
}

.mediaplayer.state-cycled .poster {
	display: none;
}

.mediaplayer .jme-default-control-bar {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
}

.mediaplayer .media-controls {
	font-family: 'Lucida Grande', Arial, Helvetica;
	opacity: 0;
	-webkit-transition: all 400ms ease 0s;
	-moz-transition: all 400ms ease 0s;
	-ms-transition: all 400ms ease 0s;
	-o-transition: all 400ms ease 0s;
	transition: all 400ms ease 0s;
	background: #000;
	color: #999999;
	font-size: 10px;
	height: 30px;
	line-height: 11px;
	margin: 0;
	padding: 0 105px 0 41px;
	position: relative;
	zoom: 1;
	z-index: 9;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.mediaplayer.state-idle .media-controls {
	-webkit-transition: all 400ms ease 0s;
	-moz-transition: all 400ms ease 0s;
	-ms-transition: all 400ms ease 0s;
	-o-transition: all 400ms ease 0s;
	transition: all 400ms ease 0s;
}

.mediaplayer.state-idle .media-controls,
.mediaplayer.state-pause .media-controls,
.mediaplayer.state-playing .media-controls {
	opacity: 0;
}

.mediaplayer.state-playing.useractive .media-controls,
.mediaplayer.state-pause.useractive .media-controls {
	opacity: 1;
	-webkit-transition: all 400ms ease 0s;
	-moz-transition: all 400ms ease 0s;
	-ms-transition: all 400ms ease 0s;
	-o-transition: all 400ms ease 0s;
	transition: all 400ms ease 0s;
}

.mediaplayer.state-pause .media-controls {
	opacity: 1;
}

.mediaplayer.cursor-hidden {
	/*
	cursor: url("/_gfx/cursors/none.gif"), url("/_gfx/cursors/none.cur"), none;
	*/
	cursor: none;
}


/* !Controller Buttons */
.mediaplayer button,
.mediaplayer button:hover {
	display: inline-block;
	margin: 0;
	padding: 0;
	cursor: pointer;
	overflow: visible;
	border: 0;
	border-radius: 5px;
	-webkit-appearance: none;
	background: transparent;
}

.mediaplayer button .jme-icon {
	display: block;
	width: 16px;
	height: 16px;
	overflow: hidden;
	background: transparent url("/_gfx/video-icons.png") no-repeat;
	text-indent: -9999px;
	cursor: pointer;
}

.mediaplayer .jme-text {
	display: block;
	position: absolute;
	left: -9999px;
	width: 3px;
}


/* !Time */
.mediaplayer .time {
	position: absolute;
	top: 9px;
	left: 50px;
}

.media-controls .time .currenttime-display, 
.media-controls .time .duration-display {
	display: inline;
}


/* !Vertical Separator */
.mediaplayer .vertical_border {
	position: absolute;
	top: 2px;
	bottom: 2px;
	width: 1px;
	background: #242424;
}		

.mediaplayer .vertical_border.first {
	left: 40px;
}

.mediaplayer .vertical_border.second {
	right: 105px;
}

.mediaplayer .vertical_border.third {
	right: 29px;
}


/* !Initial Play Button */
.state-waiting .play-pause,
.state-ended .play-pause,
.state-idle .play-pause {
	display: block;
	cursor: pointer;
	width: 40px;
	height: 30px;
	position: absolute;
	left: 20px;
	bottom: 20px;
	background: #000 url("/_gfx/video-icons.png") no-repeat -78px -11px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	z-index: 10;
}

.state-ended .play-pause:hover,
.state-ended .play-pause.postered,
.state-idle .play-pause:hover,
.state-idle .play-pause.postered {
	background-color: #00c460;
	background-position: -78px -41px;
}

.playing .media-state {
	display: none;
}

.state-ended .media-controls,
.state-idle .media-controls {
	display: none;
}

.state-waiting .play-pause {
	cursor: default;
	background: #000 url("/_gfx/video-loading-animation.gif") no-repeat 10px 5px;
}

.state-waiting a {
	cursor: default;
}



/* !Play/Pause Button */
.media-controls button.play-pause {
	position: absolute;
	top: 0;
	left: 0;
	outline: none;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.media-controls button.play-pause .jme-icon {
	width: 40px;
	height: 30px;
	background-position: 1000px 1000px;
}

.media-controls button.state-playing .jme-icon {
	background-position: -13px -11px;
}

.media-controls button.state-playing:hover .jme-icon {
	background-position: -13px -41px;
}

.media-controls button.state-paused .jme-icon {
	background-position: -78px -11px;
}

.media-controls button.state-paused:hover .jme-icon {
	background-position: -78px -41px;
}

.state-idle .media-controls button.play-pause {
	background: url("/_gfx/video-loading-animation.gif") no-repeat 10px 5px;
}

.state-idle .media-controls button.play-pause .ui-icon-play {
	background-position: 20px;
}


/* !Progress Bar */
.media-controls .ui-slider {
	position: relative;
	top: 2px;
	height: 26px;
	opacity: 0.35;
	/* opacity: 1;*/
}

.media-controls .buffer-progress .buffer-progress-indicator {
	height: 26px;
	background: #727272;
}

.media-controls .ui-slider-horizontal .ui-slider-range {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	background: #fff;
	cursor: default;
	/*
	cursor: ew-resize;
	cursor: -moz-grab;
	cursor: grab;
	*/
	z-index: 1;
}
		
.media-controls .ui-slider-horizontal:hover .ui-slider-range {
	color: #ccc;
}

.media-controls .ui-slider-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	margin-top: -8px;
	margin-left: -5px;
	width: 10px;
	outline: none;
}


/* !Volume Controls */
.media-controls button.mute-unmute {
	position: absolute;
	top: 10px;
	right: 81px;
	overflow: hidden;
	outline: none;
}

.media-controls button.volume-low .jme-icon {
	background-position: -32px -116px;
}

.media-controls button.volume-medium .jme-icon {
	background-position: -16px -116px;
}

.media-controls button.volume-high .jme-icon {
	background-position: 0 -116px;
}

.media-controls button.state-mute .jme-icon {
	background-position: 0 -116px;
}

.media-controls button.state-unmute .jme-icon {
	background-position: -48px -116px;
}

.media-controls .volume-slider {
	position: absolute;
	right: 38px;
	width: 40px;
	background: url("/_gfx/video-volume-bg.png");
	cursor: pointer;
	/*
	cursor: ew-resize;
	cursor: -moz-grab;
	cursor: grab;
	*/
}

.media-controls .volume-slider .ui-slider-handle {
	position: absolute;
	top: 8px;
	min-width: 3px;
	height: 100%;
	cursor: pointer;
	/*
	cursor: ew-resize;
	cursor: -moz-grab;
	cursor: grab;
	*/
}

.media-controls .volume-slider.ui-slider {
	height: 4px;
	margin: 11px 0 0 0;
	opacity: 1;
}

.media-controls .volume-slider.ui-slider .ui-slider-range {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 4px;
	background: #4e4e4e;
}

.media-controls .volume-slider:hover .ui-slider-range {
	background: #ccc;
}


/* !Full Screen Icon */
.media-controls .fullscreen {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 30px;
	height: 30px;
	overflow: hidden;
	outline: none;
}

.media-controls .fullscreen .jme-icon {
	width: 30px;
	height: 30px;
	background-position: -20px -73px;
}

.media-controls .fullscreen:hover .jme-icon {
	background-position: -86px -73px;
}


/* !Fallback */
.fallback {
	position: relative;
	zoom: 1;
}


/* !iOS Fallback Message */
.ios .mediaerror .poster {
	display: block;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}

.ios .mediaerror .ios-message {
	display: block;
	position: absolute;
	top: 50%;
	padding: 10px 0;
	margin-left: 10%;
	width: 80%;
	color: #fff;
	text-align: center;
	background: #000;
	opacity: 0.9;
	z-index: 2;
}


/* !Media Controls Hidden from iPhone */
.iphone .jme-default-media-overlay,
.iphone .mediaplayer.state-pause .media-controls {
	display: none !important;
}


/* !Full Screen */
:-webkit-full-screen {
	width: 100%;
	height: 100%;
	background-color: black;
}

video::-webkit-full-screen {
	width: 100%;
}

html.has-media-fullscreen,
body.has-media-fullscreen {
	overflow: hidden;
}

.player-fullscreen {
	position: fixed !important;
	z-index: 999999;
	background: #000;
}

html.has-media-fullscreen .jme-default-control-bar,
html.has-media-fullscreen .jme-default-media-overlay {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 40px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 944px;
}

html.has-media-fullscreen .state-ended .play-pause,
html.has-media-fullscreen .state-idle .play-pause {  
	left: -864px;
	max-width: 40px;
}

html.has-media-fullscreen .media-controls .fullscreen .jme-icon {
	background-position: -20px -139px;
}

html.has-media-fullscreen .media-controls .fullscreen:hover .jme-icon {
	background-position: -86px -139px;
}

.player-fullscreen,
.media-fullscreen {
	padding: 0 !important;
	margin: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.media-fullscreen {
	position: relative;
}
