/*
 * Project: CirclePlayer
 * http://www.jplayer.org
 *
 * Copyright (c) 2012 Happyworm Ltd
 *
 * Author: Silvia Benvenuti
 * Edited by: Mark J Panaghiston
 * Date: 2nd October 2012
 * Artwork inspired by: http://forrst.com/posts/Untitled-CJz
 */

.cp-container {
	position:relative;
	width:35px; /* 200 - (2 * 48) */
	height:35px;
	background:url("circle_button.svg") 0 0 no-repeat;
	background-size: 35px 35px;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
	margin-bottom: 10px;
}

.cp-container :focus {
	border:none;
	outline:0;
}

.cp-buffer-1,
.cp-buffer-2,
.cp-progress-1,
.cp-progress-2 {
	position:absolute;
	top:0;
	left:0;
	width:35px;
	height:35px;
	clip:rect(0px,17.5px,35px,0px);

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

.cp-buffer-1,
.cp-buffer-2 {
	background:url("buffer.png") 0 0 no-repeat;
}


/* FALLBACK for .progress
 * (24 steps starting from 1hr filled progress, Decrease second value by 104px for next step)
 * (It needs the container selector to work. Or use div)
 */

.cp-container .cp-fallback {
	background:url("progress_sprite.jpg") no-repeat;
	background-position:0 104px; 
}

.cp-progress-1,
.cp-progress-2 {
	background:url("progress.png") 0 0 no-repeat;
}

.cp-buffer-holder,
.cp-progress-holder,
.cp-circle-control {
	position:absolute;
	width:35px;
	height:35px;
} 

.cp-circle-control {
	cursor:pointer;
}

.cp-buffer-holder,
.cp-progress-holder {
	clip:rect(0px,35px,35px,17.5px);
	display:none;
}


/* This is needed when progress is greater than 50% or for fallback */

.cp-buffer-holder.cp-gt50,
.cp-progress-holder.cp-gt50,
.cp-progress-1.cp-fallback{
	clip:rect(auto, auto, auto, auto);
}

.cp-controls {
	margin:0;
}

.cp-controls li{
	list-style-type:none;
	display:block;

	/*IE Fix*/
	position:absolute;
}

.cp-controls li a{
	position:relative;
	display:block;
	height: 15px;
	width: 15px;
	text-indent:-9999px;
	z-index:1;
    top: 10px;
    left: 11px;
	cursor:pointer;
}

.cp-controls .cp-play {
	background:url("controls.png") 0px 0px no-repeat;
}

/*.cp-controls .cp-play:hover {
	background:url("controls.jpg") -50px 0 no-repeat;
}*/

.cp-controls .cp-pause {
	background:url("controls.png") -1px -25px no-repeat;
}
/*
.cp-controls .cp-pause:hover {
	background:url("controls.jpg") -50px -50px no-repeat;
}*/

.cp-jplayer {
	width:0;
	height:0;
}

@media only screen and (max-width : 1199px) {
		.cp-container {
			position:relative;
			width:29px; /* 200 - (2 * 48) */
			height:29px;
			background:url("circle_button.svg") 0 0 no-repeat;
			background-size: 29px 29px;
			-webkit-tap-highlight-color:rgba(0,0,0,0);
			margin-bottom: 10px;
		}

		.cp-container :focus {
			border:none;
			outline:0;
		}

		.cp-buffer-1,
		.cp-buffer-2,
		.cp-progress-1,
		.cp-progress-2 {
			position:absolute;
			top:0;
			left:0;
			width:29px;
			height:29px;
			clip:rect(0px,14.5px,29px,0px);

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

		.cp-buffer-1,
		.cp-buffer-2 {
			background:url("buffer.png") 0 0 no-repeat;
		}


		/* FALLBACK for .progress
		 * (24 steps starting from 1hr filled progress, Decrease second value by 104px for next step)
		 * (It needs the container selector to work. Or use div)
		 */

		.cp-container .cp-fallback {
			background:url("progress_sprite.jpg") no-repeat;
			background-position:0 104px; 
		}

		.cp-progress-1,
		.cp-progress-2 {
			background:url("progress.png") 0 0 no-repeat;
		}

		.cp-buffer-holder,
		.cp-progress-holder,
		.cp-circle-control {
			position:absolute;
			width:29px;
			height:29px;
		} 

		.cp-circle-control {
			cursor:pointer;
		}

		.cp-buffer-holder,
		.cp-progress-holder {
			clip:rect(0px,29px,29px,14.5px);
			display:none;
		}


		/* This is needed when progress is greater than 50% or for fallback */

		.cp-buffer-holder.cp-gt50,
		.cp-progress-holder.cp-gt50,
		.cp-progress-1.cp-fallback{
			clip:rect(auto, auto, auto, auto);
		}

		.cp-controls {
			margin:0;
		}

		.cp-controls li{
			list-style-type:none;
			display:block;

			/*IE Fix*/
			position:absolute;
		}

		.cp-controls li a{
			position:relative;
			display:block;
			height: 15px;
			width: 15px;
			text-indent:-9999px;
			z-index:1;
		    top: 10px;
		    left: 11px;
			cursor:pointer;
		}

		.cp-controls .cp-play {
			background:url("controls.png") 0px 0px no-repeat;
			height: 10px;
			width: 10px;
			top: 9px;
			left: 10px;
			background-size: 26px 26px;
		}

		/*.cp-controls .cp-play:hover {
			background:url("controls.jpg") -50px 0 no-repeat;
		}*/

		.cp-controls .cp-pause {
			background:url("controls.png") 1px -17px no-repeat;
			top: 10px;
			left: 9px;
			background-size: 26px 26px;
		}
		/*
		.cp-controls .cp-pause:hover {
			background:url("controls.jpg") -50px -50px no-repeat;
		}*/

		.cp-jplayer {
			width:0;
			height:0;
		}
	}