/*
Audio Player: Responsive and Touch-Friendly by Osvaldas Valutis
http://osvaldas.info/audio-player-responsive-and-touch-friendly
*/

.audioplayer {
	height: 2em; /* 40 */
	color: #000;
	background: #fff;
	position: relative;
	z-index: 1;
	margin: 0;
}
div.latest-song {
	margin: 4em 0.5em;
}
div.latest-song .audioplayer {
	margin: 2em 0 12em 0;
}

/* fallback */
.audioplayer-mini {
	width: 2em; /* 40 */
	margin: 0 auto;
}

.audioplayer > div {
	position: absolute;
}

/* play & pause 
*/

.audioplayer-playpause {
	width: 2em; /* 40 */
	height: 100%;
	text-align: left;
	text-indent: -9999px;
	cursor: pointer;
	z-index: 2;
	top: 0;
	left: 0;
}

.audioplayer-mini .audioplayer-playpause { 
	width: 100%;
}

.audioplayer-playpause:hover,
.audioplayer-playpause:focus {
	background-color: #fff;
}

.audioplayer-playpause a {
	display: block;
}

/* "play" icon when audio is not being played */
.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
	width: 0;
	height: 0;
	border: 0.5em solid transparent; /* 8 */
	border-right: none;
	border-left-color: #000;
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -0.5em 0 0 -0.25em; /* 8 4 */
}
 
/* "pause" icon when audio is being played */
.audioplayer-playing .audioplayer-playpause a {
	width: 0.75em; /* 12 */
	height: 0.75em; /* 12 */
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -0.4em 0 0 -0.2em;
}

.audioplayer-playing .audioplayer-playpause a:before,
.audioplayer-playing .audioplayer-playpause a:after {
	width: 5px;
	height: 100%;
	background-color: #000;
	content: '';
	position: absolute;
	top: 0;
}

.audioplayer-playing .audioplayer-playpause a:before {
	left: 0;
}

.audioplayer-playing .audioplayer-playpause a:after {
	right: 0;
}


/* timers 
*/

.audioplayer-time {
	width: 4.375em; /* 70 */
	height: 100%;
	line-height: 2em; /* 40 */
	text-align: center;
	z-index: 2;
	top: 0;
	font-size: 1em;
}

.audioplayer-time-current {
	left: 1.5em; /* 40 */
}

.audioplayer-time-duration {
	right: 1.5em; /* 40 */
}

.audioplayer-novolume .audioplayer-time-duration {
	border-right: 0;
	right: 0;
}

/* progress bar 
*/

.audioplayer-bar {
	height: 0.5em; 
	background-color: #efefef;
	cursor: pointer;
	z-index: 1;
	top: 50%;
	right: 6em; 
	left: 6em; 
	margin-top: -0.25em;
}

.audioplayer-novolume .audioplayer-bar {
	right: 4.375em; /* 70 */
}

.audioplayer-bar div {
	width: 0;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.audioplayer-bar-loaded {
	background-color: #bebebe;
	z-index: 1;
}

.audioplayer-bar-played {
	background: #000;
	z-index: 2;
}

/* volume 
*/

.audioplayer-volume {
	width: 2em; /* 40 */
	height: 100%;
	text-align: left;
	text-indent: -9999px;
	cursor: pointer;
	z-index: 2;
	top: 0;
	right: 0;
}

.audioplayer-volume:hover,
.audioplayer-volume:focus {
	background-color: #fff;
}

.audioplayer-volume-button {
	width: 100%;
	height: 100%;
}
	 
/* "volume" icon */
.audioplayer-volume-button a {
	width: 0.313em; /* 5 */
	height: 0.375em; /* 6 */
	background-color: #000;
	display: block;
	position: relative;
	z-index: 1;
	top: 40%;
	left: 35%;
}

.audioplayer-volume-button a:before,
.audioplayer-volume-button a:after {
	content: '';
	position: absolute;
}

.audioplayer-volume-button a:before {
	width: 0;
	height: 0;
	border: 0.5em solid transparent; /* 8 */
	border-left: none;
	border-right-color: #000;
	z-index: 2;
	top: 50%;
	right: -0.25em;
	margin-top: -0.5em; /* 8 */
}

.audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after {
	/* "volume" icon by Nicolas Gallagher, http://nicolasgallagher.com/pure-css-gui-icons */
	width: 0.313em; /* 5 */
	height: 0.313em; /* 5 */
	border: 0.25em double #000; /* 4 */
	border-width: 0.25em 0.25em 0 0; /* 4 */
	left: 0.563em; /* 9 */
	top: -0.063em; /* 1 */
	-webkit-border-radius: 0 0.938em 0 0; /* 15 */
	-moz-border-radius: 0 0.938em 0 0; /* 15 */
	border-radius: 0 0.938em 0 0; /* 15 */
	-webkit-transform: rotate( 45deg );
	-moz-transform: rotate( 45deg );
	-ms-transform: rotate( 45deg );
	-o-transform: rotate( 45deg );
	transform: rotate( 45deg );
}
	 
/* volume adjuster */
.audioplayer-volume-adjust {
	width: 100%;
	height: 6.25em; /* 100 */
	cursor: default;
	position: absolute;
	left: 0;
	top: -9999px;
	background: #fff;
}

.audioplayer-volume:not(:hover) .audioplayer-volume-adjust {
	opacity: 0;
}

.audioplayer-volume:hover .audioplayer-volume-adjust {
	top: auto;
	bottom: 100%;
}

.audioplayer-volume-adjust > div {
	width: 30%;
	height: 80%;
	background-color: #bebebe;
	cursor: pointer;
	position: relative;
	z-index: 1;
	margin: 30% auto 0;
}

.audioplayer-volume-adjust div div {
	width: 100%;
	height: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	background: #000;
}

.audioplayer-novolume .audioplayer-volume {
	display: none;
}
