/* DNA Lounge theme for JPlayer with "premium-pixels" skin
 */

#dnaplayer {
  position: fixed;
  left: 0; bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 3em 0.25em 0 0.25em;
  background: -webkit-linear-gradient(bottom, #000 70%, rgba(0,0,0,0));
  background:    -moz-linear-gradient(bottom, #000 70%, rgba(0,0,0,0));
  background:      -o-linear-gradient(bottom, #000 70%, rgba(0,0,0,0));
}

/* When it appears on /webcast/video.html */
.dnavideo #dnaplayer {
  position: static;
  z-index: auto;
  background: none;
  padding: 0;
}

#jp_container_1 {
  width: 100%;
  max-width: 40em;
  padding: 0;
}

.jp-audio { margin-top: 1em; }
.dnavideo .jp-audio { margin-top: 2px; }

/* Don't float it in the popup audio player. */
.audio_player #dnaplayer {
   position: relative;
   padding: 0;
   background: none;
   z-index: 0;
}
.audio_player .likers {
  position: absolute;
  top: 0.5em; right: 0;
}

.audio_player .jp-audio { margin-top: 0; }


.jp-interface, .jp-playlist {
  background-color: #040;
  background-image: none;
 }

.jp-seek-bar { background: #000; }
.jp-playlist {
  padding: 0;
  color: #0F0;
  font-size: 10pt; font-weight: bold;
  text-align: center;
  height: 1.5em; overflow: hidden; text-overflow: ellipsis;
  /* white-space: nowrap;*/
  width: 100%;
}

.jp-time-holder {
  display: block;
  position: relative;
  visibility: visible;
  margin: 0 95px 0 40px;	/* match .jp-seek-bar */
}
.jp-start-time, .jp-duration,
.jp-current-time, .jp-dnalounge-current-time,
.jp-dnalounge-start-time, .jp-dnalounge-end-time,
.jp-dnalounge-buffering {
  position: absolute; 
  top: 17px;			/* match .jp-seek-bar */
  font-size: 7pt;
  color: #0C0;
}
.jp-dnalounge-start-time { left: 0; }
.jp-dnalounge-end-time { right: 0; }
.jp-current-time, .jp-dnalounge-current-time { left: 50%; margin-left: 10px; }
.jp-start-time, .jp-duration { display: none; }

.jp-current-time, .jp-dnalounge-current-time, .jp-dnalounge-buffering {
  display: none;
}

.jp-dnalounge-buffering {
  font-weight: bold;
  height: 1em;
  color: #FFF;
  bottom: 0;
  left: 50%;
  margin-left: -2em;
  padding: 0.1em 2em;
}

.jp-no-solution > span { font-weight: bold; }

.bottom { padding-bottom: 5.5em; }  /* leave room above player */


/* Bad craziness for when we are using this in /webcast/video.html
   and taking video from Youtube and audio from dnalounge.com.
 */
.dnaplayer_simulcast #dnaplayer {
  position: static;
  width: 14em;
  padding: 0;
  margin: 0 0 0 12px;
  background: none;
}
.dnaplayer_simulcast .jp-audio { margin: 0; }
.dnaplayer_simulcast .jp-seek-bar { display: none; }
.dnaplayer_simulcast .jp-current-time,
.dnaplayer_simulcast .jp-dnalounge-current-time {
  margin-left: -14px;
  top: 8px;
}
.dnaplayer_simulcast .jp-dnalounge-buffering {
  margin-left: -25px;
  padding: 0;
  top: 8px;
}
.dnaplayer_simulcast .jp-playlist {
  background: none;
  text-align: left;
  position: absolute;
  left: 240px;
  width: auto;
  bottom: 14px;
}


/* Tiny screens, e.g. iPhone.
 */
@media screen and (max-width: 530px) {
  #dnaplayer { padding: 2em 0 0 0; }
  .jp-playlist { font-size: 8pt; }

  .dnaplayer_simulcast .jp-playlist {
    left: 14px;
    bottom: 4em;
  }
  .noclick { display: none; }
}

@media screen and (max-width: 790px) {
  .audio_player #dnaplayer { padding-top: 1em; }
  .audio_player .likers { top: 6em; right: 0; }

}
