video {
  border-radius: 6px;
}
.mediaplayer,.mediaContainer,.playlist {
	position: relative;
	  overflow: hidden;
	  background: #000;
	  color: #ccc;
	  border-radius: 6px;
	  border: 1px solid rgba(0, 0, 0, 0.8);
	  box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}
/* video container */
@media (min-width: 768px){
	.mediaplayer,.mediaContainer,.playlist {
	  width: 100%;
	  max-width: 600px;
	  min-width: 300px;
	}
}
@media (max-width: 767px){
	.mediaplayer,.mediaContainer,.playlist {
	  width: 100%;
	  max-width: 300px;
	}
}

.mediaplayer .close {
    color: #fff; 
    opacity: 1;
}
.mediaContainer.media{
	max-height: 400px;
	min-height: 150px;
}
.mediaContainer.media.youtube{
	position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.ytube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mediaplayer{
	margin: 0 auto 0;
}
.mediaplayer .modal-dialog{
	margin-top: 0;
}

.modal-backdrop.in{
	opacity: .9;
}
.playlist{
	height: auto;
	padding-bottom: 10px;
}

.mediaContainer:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 6;
  border-radius: 6px;
  pointer-events: none;
}
.btmControl .btn{
	padding: 0;
}
/* video caption css */
.mediaContainer .caption {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 10px;
  color: #ddd;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  border-radius: 6px 6px 0 0;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
}

/*** VIDEO CONTROLS CSS ***/
/* control holder */
.control {
  color: #ccc;
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: 590px;
  z-index: 5;
  display: none;
}

/* control bottom part */
.btmControl {
  clear: both;
}
.btmControl .btn{
	display: block;
	padding: 5px;
}
.btmControl .btn i{
	text-align: center;
}

.control .btnPlay {
  float: left;
  /*width: 34px;*/
  height: 30px;
  
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border-radius: 6px 0 0 6px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
}

/*.control .glyphicon-play,.control .glyphicon-pause {
  width: 6px;
  height: 9px;
  display: block;
  margin: 1px 0 0 5px;
}*/

.control .selected {
  font-size: 15px;
  color: #ccc;
}

.control .btnMute {
/*  width: 30px;*/
  height: 30px;
  float: left;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-left: none;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/*.control .glyphicon-volume-up,.control .glyphicon-volume-off {
  width: 13px;
  height: 10px;
  display: block;
  margin: 5px 0 0 8px;
}*/

.control .btnFS {
/*  width: 30px;*/
  height: 30px;
  float: left;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-left: none;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
}

/*.control .glyphicon-fullscreen {
  width: 10px;
  height: 10px;
  display: block;
  margin: 6px 0 0 8px;
}*/

/* PROGRESS BAR CSS */
/* Progress bar */
.progress-bar {
  width: auto;
  height: 30px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 0 6px 6px 0;
  border-left: none;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
  float: left;
}
.progress {
  width: 380px;
  height: 7px;
  position: relative;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  /* fallback */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 1px 1px black;
  border-radius: 10px;
}
@media (max-width: 767px){
	.progress {
		width: 280px;
	}
}

.progress span {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 10px;
}

.timeBar {
  z-index: 10;
  width: 0;
  background: -webkit-linear-gradient(top, #6bcce2 0%, #1da3d0 100%);
  box-shadow: 0 0 7px rgba(107, 204, 226, 0.5);
}

.bufferBar {
  z-index: 5;
  width: 0;
  background: rgba(255, 255, 255, 0.2);
}

/* VOLUME BAR CSS */
/* volume bar */
.volume {
  position: relative;
  cursor: pointer;
  width: 70px;
  height: 10px;
  float: right;
  margin-top: 10px;
  margin-right: 10px;
}

.volumeBar {
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #eee;
  z-index: 10;
}

@media (min-width: 768px) {
	#myMediaModal.modal{
		margin-top: 50px;
	}
}
@media (max-width: 767px){
	.control .btnFS {
		border-radius: 0 6px 6px 0;
	}
	.progress-bar{
		border-radius: 6px;
		max-width: 100%;
	}
	.progress{
		max-width: 100%;
	}
}
@keyframes ellipsis {
  to {
    width: 1.25em;    
  }
}

@-webkit-keyframes ellipsis {
  to {
    width: 1.25em;    
  }
}
