/*

HOW TO CREATE AN VIDEO PLAYER [TUTORIAL]

"How to create an Video Player [Tutorial]" was specially made for DesignModo by our friend Valeriu Timbuc.

Links:
http://vtimbuc.net/
https://twitter.com/vtimbuc
http://designmodo.com
http://vladimirkudinov.com

*/

/* Reset CSS */
.mejs-inner,
.mejs-inner div,
.mejs-inner a,
.mejs-inner span,
.mejs-inner button {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
}

/* Video Container / General Styles */
.mejs-container {
	position: relative;
	background: #000;
    border-radius: 6px;
}

.mejs-inner {
	position: relative;
	width: inherit;
	height: inherit;
}

.me-plugin { position: absolute; }

.mejs-container-fullscreen .mejs-mediaelement,
.mejs-container-fullscreen video,
.mejs-embed,
.mejs-embed body,
.mejs-mediaelement {
	width: 100%;
	height: 100%;
}

.mejs-embed,
.mejs-embed body {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.mejs-container-fullscreen {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	z-index: 1000;
}

.mejs-poster img { display: block; }

.mejs-background,
.mejs-mediaelement,
.mejs-poster,
.mejs-overlay {
	position: absolute;
	top: 0;
	left: 0;
}

.mejs-overlay-play { cursor: pointer; }

.mejs-inner:hover .mejs-overlay-button {
	position: absolute;
	top: 35%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -25px 0 0 -25px;
	background: url(../img/icon-play-b.png) no-repeat;
}

/* Controls Container */
.mejs-container .mejs-controls {
	position: absolute;
	width: 100%;
	height: 64px;
	left: 0;
	bottom: 0;
	background: #1b4164;
    border-radius: 0 0 6px 6px;
}

/* Controls Buttons */
.mejs-controls .mejs-button button {
	display: block;
	cursor: pointer;
	width: 16px;
	height: 16px;
	background: transparent url(../img/controls.png);
}

/* Play & Pause Button */
.mejs-controls div.mejs-playpause-button {
	position: absolute;
	top: 21px;
	left: 15px;
}

.mejs-controls .mejs-play button,
.mejs-controls .mejs-pause button {
	width: 29px;
	height: 29px;
	background: url(../img/icon-play.png) no-repeat;
}

.mejs-controls .mejs-pause button { 
    background: url(../img/icon-stop.png) no-repeat;
}

/* Mute & Unmute */
.mejs-controls div.mejs-volume-button {
	position: absolute;
	top: 25px;
	right: 50px;
}

.mejs-controls .mejs-mute button,
.mejs-controls .mejs-unmute button {
	width: 29px;
	height: 29px;
    background: url(../img/icon-sound.png) no-repeat;
	
}

.mejs-controls .mejs-unmute button { 
    background: url(../img/icon-sound-0.png) no-repeat;
}

.mejs-controls .mejs-volume-button .mejs-volume-slider {
    display: none;
    height: 115px;
    width: 25px;
    background: transparent;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    top: -115px;
    left: 0;
    z-index: 1;
    position: absolute;
    margin: 0;   
}
.mejs-controls .mejs-volume-button .mejs-volume-total {
    position: absolute;
    left: 11px;
    top: -20px;
    width: 4px;
    height: 100px;
    margin: 0;
    border: solid 1px #c69e2a;
}
.mejs-controls .mejs-volume-button .mejs-volume-current {
    position: absolute;
    left: 11px;
    top: -20px;
    width: 5px;
    height: 100px;
    background: #c69e2a;
    margin: 0;
}

.mejs-controls .mejs-volume-button .mejs-volume-handle {
	display: none;
}


/* Full-Screen Button */
.mejs-controls div.mejs-fullscreen-button {
	position: absolute;
	top: 24px;
	right: 15px;
}

.mejs-controls .mejs-fullscreen-button button,
.mejs-controls .mejs-unfullscreen button {
	width: 25px;
	height: 24px;
	background: url(../img/icon-fullscreen.png) no-repeat;
}

.mejs-controls .mejs-unfullscreen button {  }

/* Volume Slider */
.mejs-controls div.mejs-horizontal-volume-slider {
	position: absolute;
	cursor: pointer;
	top: 15px;
	left: 65px;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
	width: 60px;
	background: #d6d6d6;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
	position: absolute;
	width: 0;
	top: 0;
	left: 0;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
	height: 4px;

	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

/* Progress Bar */
.mejs-controls div.mejs-time-rail {
	position: absolute;
	width: 95%;
	left: 0px;
	top: 10px;
    float: left;
    margin: 0 14px 0 16px;
}

.mejs-controls .mejs-time-rail span {
	position: absolute;
	display: block;
	cursor: pointer;
	width: 100%;
	height: 5px;
	top: 0;
	left: 0;
}

.mejs-controls .mejs-time-rail .mejs-time-total {
	background: #214461;
    border: 1px solid #d59f0f;
}

.mejs-controls .mejs-time-rail .mejs-time-loaded {
	background: rgb(0,0,0); /* IE8- */
	background: rgba(0,0,0, .3);
}

.mejs-controls .mejs-time-rail .mejs-time-current { width: 0; }

/* Progress Bar Handle */
.mejs-controls .mejs-time-rail .mejs-time-handle {
	position: absolute;
	cursor: pointer;
	width: 16px;
	height: 18px;
	top: -3px;
	background: url(../img/handle.png);
}

/* Progress Bar Time Tooltip */
.mejs-controls .mejs-time-rail .mejs-time-float {
	position: absolute;
	display: none;
	width: 33px;
	height: 23px;
	top: -26px;
	margin-left: -17px;
	background: #214461 url(../img/tooltip.png);
}

.mejs-controls .mejs-time-rail .mejs-time-float-current {
	position: absolute;
	display: block;
	left: 0;
	top: 4px;

	font-family: Helvetica, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	color: #666666;
	text-align: center;
}

.mejs-controls .mejs-time-rail .mejs-time-float-corner { display: none; }

/* Green Gradient (for progress and volume bar) */
.mejs-controls .mejs-time-rail .mejs-time-current,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
	background: #d59f0f;
}