html, body {
  font-family: 'Helvetica Neue', sans-serif;
  padding: 0;
  margin: 0;
  font-size: 1em;
}

h1, h2, h3, h4, h5, h6, p, div, td {
  margin:0;
  padding: 0;
  font-size: 1em;
  font-weight: normal;
}

a {
  text-decoration: none;
}

.hidden {
  display: none;
}

/* Prevent text selection */
.prevent-selection {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.container {
  position: relative;
  min-width: 150px;
  padding: 0 7px;
}

#sm2-container {
  height: 8px;
  width: 8px;
  overflow: hidden;
}

#player_controls {
  height: 33px;
  clear: both;
  position: relative;
}

#play_button {
  outline: none;
  width: 33px;
  height: 33px;
  background: url(/media/embeddable_player/img/player-sprites.png) no-repeat;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
}

#play_button.playing {
  background-position: -33px 0;
}

#play_button.playing:hover, #play_button.playing:focus {
  background-position: -33px -33px;
}

#play_button.paused {
  background-position: 0 0;
}

#play_button.paused:hover, #play_button.paused:focus {
  background-position: 0 -33px;
}

.volume {
  width: 33px;
  height: 12px;
  margin: 10px 0 0;
  float: right;
  position: relative;
  cursor: pointer;
}

.volume-block {
  width: 3px;
  margin-left: 2px;
  height: 100%;
  float: left;
  background: white;
  opacity: 0.4;
  filter: alpha(opacity=40);
  pointer-events: none;
  -webkit-transition: -webkit-transform 0.25s linear;
  -webkit-transform-origin: 0 100%;
  -moz-transition: -moz-transform 0.25s linear;
  -moz-transform-origin: 0 100%;
  -o-transition: -o-transform 0.25s linear;
  -o-transform-origin: 0 100%;
  -ms-transition: -ms-transform 0.25s linear;
  -ms-transform-origin: 0 100%;
  transition: transform 0.25s linear;
  transform-origin: 0 100%;
}

.volume-block.hover {
  -webkit-transition-duration: 0s;
  -webkit-transform: scaleY(1.3);
  -moz-transition-duration: 0s;
  -moz-transform: scaleY(1.3);
  -o-transition-duration: 0s;
  -o-transform: scaleY(1.3);
  -ms-transition-duration: 0s;
  -ms-transform: scaleY(1.3);
  transition-duration: 0s;
  transform: scaleY(1.3);
}

.volume-block.set {
  opacity: 1;
  filter: alpha(opacity=100);
}

.volume-block:first-child {
  margin-left: 0;
}

.menu-toggle {
  width: 42px;
  height: 33px;
  float: right;
  background: none;
  position: relative;
}

  .menu-toggle .button {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 22px;
    height: 22px;
    background: url(/media/embeddable_player/img/player-sprites.png) no-repeat -97px -6px;
    cursor: pointer;
  }

  .menu-toggle .button:hover {
    background-position: -97px -39px;
  }

  .menu-toggle .button.active, .menu-toggle .button.active:hover {
    background-position: -97px -72px;
  }

.sharing-item {
  float: right;
  margin: 5px 8px 0 0;
  font-size: 0.6em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  zoom: 1;
}

.sharing-button {
  overflow: hidden;
  position: relative;
  background: url(/media/embeddable_player/img/player-sprites.png) no-repeat 0 0;
}

.sharing-button a {
  display: block;
  position: relative;
  width: 22px;
  height: 22px;
}

.twitter {
  background-position: -153px -6px;
}

.twitter:hover {
  background-position: -153px -39px;
}

.facebook {
  background-position: -125px -6px;
}

.facebook:hover {
  background-position: -125px -39px;
}

.email {
  background-position: -181px -6px;
}

.email:hover {
  background-position: -181px -39px;
}

.embed {
  width: 198px;
  height: 22px;
  position: relative;
  overflow: hidden;
  margin-right: 0;
}

.embed .embed-label, #embed_field {
  float: right;
  cursor: pointer;
}

/*
Hide the embed code field if the player isn't wide enough to accommodate
both it and the sharing buttons.
*/
@media (max-width: 370px) {
  .embed {
    display: none;
  }
}

.embed-label {
  width: 35px;
  height: 100%;
  color: #373737;
  line-height: 23px;
  padding: 0 5px 0 6px;
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
  /* The IE equivalent of an rgba background */
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#90ffffff,endColorstr=#90ffffff);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

#embed_field {
  height: 22px;
  width: 140px;
  padding: 0 6px;
  outline: none;
  border: 0;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  text-transform: none;
  line-height: 23px;
}

#player_controls {
  width: 100%;
  min-width: 170px;
}

#play_button {
  width: 33px;
  float: left;
  position: relative;
}

.midsection {
  margin: 0 42px 0 33px;
  position: relative;
  left: 0;
  width: auto;
  height: 100%;
}

.midsection.no-sharing {
  margin-right: 12px;
}

.sharing-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#playback_controls {
  height: 100%;
}

  #volume {
    width: 33px;
    float: right;
  }

  #progress_controls {
    height: 100%;
    margin-right: 33px;
  }

    #progress_controls label {
      line-height: 33px;
      width: 30px;
      padding: 0 5px;
      font-size: 0.6em;
    }

      #progress_controls.long-time-display label {
        width: 50px;
      }

    #progress_controls .current-time {
      float: left;
      text-align: right;
    }

    #progress_controls .total-time {
      float: right;
    }

    #progress_controls .progress-wrapper {
      width: auto;
      height: 100%;
      /* The #progress_controls label width + padding */
      margin: 0 40px;
      padding: 0;
      float: none;
      position: relative;
    }

      #progress_controls.long-time-display .progress-wrapper {
        margin: 0 60px;
      }

      .progress-wrapper .progress-bar {
        position: relative;
        top: 11px;
        width: auto;
        float: none;
        height: 10px;
      }

        .progress-bar .progress-fill {
          height: 10px;
          position: absolute;
          top: 0;
          left: 0;
        }

        .progress-bar .progress-background {
          border: 1px solid #fff;
          height: 8px;
          width: auto;
          position: relative;
        }


        .progress-bar .downloaded {
          background: #f18c9c;
        }

        .progress-bar .played {
          background: white;
        }

    .scrubber {
      background: white;
      position: absolute;
      width: 1px;
      height: 20px;
      top: 6px;
      left: 0;
      display: none;
    }

    .scrubber.visible {
      display: block;
    }



/* Branding colours and logos, shared by multiple players. */

/* Big logo brand link as used in the header of the streaming player. */
#brand_link {
  border: 0;
  width: 0;
  height: 60px;
  top: 0;
  display: block;
  background-image: url('/media/embeddable_player/img/logos-embed-player.png?v2');
  background-repeat: no-repeat;
  overflow: hidden;
  position: absolute;
}

/*
WNYC
WNYC Culture
WNYC AM 820
WNYC FM 939
*/
  .wnyc .user-backgroundColor
, .culture .user-backgroundColor
, .wnyc-am820 .user-backgroundColor
, .wnyc-fm939 .user-backgroundColor
, .jonathan-channel .user-backgroundColor
, .special-events-stream .user-backgroundColor
{
  background-color: #e21838; 
}

  .wnyc .user-downloadedColor
, .culture .user-downloadedColor
, .wnyc-am820 .user-downloadedColor
, .wnyc-fm939 .user-downloadedColor
, .jonathan-channel .user-downloadedColor
, .special-events-stream .user-downloadedColor
{
  background-color:#f18c9c;
}

  .wnyc .user-progressBorderColor
, .culture .user-progressBorderColor
{
  border-color: #f18c9c;
}

  .wnyc-am820 .user-linkColor
, .wnyc-fm939 .user-linkColor
, .culture .user-linkColor
{
  color: #e21838;
}

.jonathan-channel #header {
  background: #E01937;
}

.jonathan-channel #brand_link {
  background-position: 0 -665px;
  width: 150px;
  top: 4px;
  left: -7px;
}

.wnyc-am820 #brand_link
{
  width: 153px;
  background-position: 0px 0px;
}

.wnyc-fm939 #brand_link
{
  width: 155px;
  background-position: 0px -60px;
}

.special-events-stream #brand_link
{
  width: 110px;
  background-position: 0px -60px;
}


/* WQXR */
  .wqxr .user-backgroundColor
, .wqxr-special2 .user-backgroundColor
{
  background-color: #00b3e5;
}

  .wqxr .user-downloadedColor
, .wqxr-special2 .user-downloadedColor
{
  background-color: #94d5ef;
}

  .wqxr .user-progressBorderColor
, .wqxr-special2 .user-progressBorderColor
{
  border-color: #94d5ef;
}

  .wqxr .user-linkColor
, .wqxr-special2 .user-linkColor
{
  color: #00b3e5;
}

  .wqxr #brand_link
, .wqxr-special2 #brand_link
{
  width: 129px;
  background-position: 0px -127px;
  height: 50px;
}

/* Operavore */
.wqxr-special .user-backgroundColor
{
  background-color: #b21928;
}

.wqxr-special .user-linkColor
{
  color: #b21928;
}

.wqxr-special #brand_link
{
  width: 151px;
  background-position: 0px -246px;
}


/* Q2 */
.q2 .user-backgroundColor
{
  background-color: #00b3e5;
}

.q2 .user-linkColor
{
  color: #00b3e5;
}

.q2 #brand_link
{
  width: 60px;
  background-position: 0px -182px;
}


/* Radiolab */
.radiolab .user-backgroundColor
{
  background-color: #fe5800;
}

.radiolab .user-downloadedColor
{
  background-color: #ffac80;
}

.radiolab .user-progressBorderColor
{
  border-color: #ffac80;
}

.radiolab .brand-header
{
  background: #333;
}

.radiolab .user-linkColor
{
  color: #fe5800;
}

.radiolab #brand_link
{
  top: 10px;
  left: 9px;
  width: 123px;
  height: 33px;
  background-position: 0px -314px;
}


/* On The Media */
.onthemedia .user-backgroundColor
{
  background-color: #f24f00;
}

.onthemedia .user-downloadedColor
{
  background-color:  #f9a780;
}

.onthemedia .user-progressBorderColor
{
  border-color: #f9a780;
}

.onthemedia #brand_link
{
  background-position: 0 -423px;
  width: 133px;
}

/* Studio 360 */
.studio360 .user-backgroundColor
{
  background-color: #5a5a5a;
}

.studio360 .user-downloadedColor
{
  background-color: #adadad;
}

.studio360 .user-progressBorderColor
{
  border-color: #adadad;
}

.studio360 #brand_link
{
  background-position: 0 -366px;
  width: 133px;
}


/* The Takeaway */
.takeaway .user-backgroundColor
{
  background-color: #dd0000;
}

.takeaway .user-downloadedColor
{
  background-color: #ee8080;
}

.takeaway .user-progressBorderColor
{
  border-color: #ee8080;
}

.takeaway #brand_link
{
  background-position: 0 -481px;
  width: 133px;
}

/* The Greene Space */
.greenespace .user-backgroundColor
{
  background-color: #8dc63f;
}

.greenespace .user-downloadedColor
{
  background-color: #c6e39f;
}

.greenespace .user-progressBorderColor
{
  border-color: #c6e39f;
}


/* Soundcheck */
.soundcheck .user-backgroundColor
{
  background-color: #C7D923;
}

.soundcheck .user-downloadedColor
{
  background-color: #f8ffaa;
}

.soundcheck .user-progressColor {
  color: white;
}

.soundcheck .user-progressBorderColor
{
  border-color: white;
}

.soundcheck .user-textColor
{
  color: white;
}

/* Freakonomics */

.freakonomics #brand_link
{
  background-position: 0 -542px;
  width: 133px;
}

/* Here's The Thing */
.heresthething .user-backgroundColor
{
  background-color: #5a5a5a;
}

.heresthething .user-downloadedColor
{
  background-color: #adadad;
}

.heresthething .user-progressBorderColor
{
  border-color: #adadad;
}

.heresthething .list-title {
  color: #666;
  background-color: #eee;
}

.heresthething #brand_link {
  /* set to the Takeaway image pending a new
     sprite */
  width: 265px;
  background-position: 0 -599px;
  left: 1px;
}

.heresthething .brand-header {
  background-color: white;
  border: 1px solid #eee;
}

.container {
  width: 474px;
  padding: 0;
}

#player_controls {
  color: white;
}

#volume {
  margin: 10px 1px 0 0;
  outline: none;
}

#title_bar {
  background: #e7e7e7 url(/static/embeddable_player/ondemand/img/gradient.png) repeat-x;
  height: 21px;
  position: relative;
}

#title_bar h1 {
  width: auto;
  height: 21px;
  line-height: 22px;
  padding: 0 0 0 7px;
  overflow: hidden;
  font-size: 0.7em;
  font-weight: 500;
  color: #777;
  text-shadow: 0 1px 0 #fafafa;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#sm2-container {
  background: #e7e7e7;
  position: absolute;
  left: 0px;
  top: -8px;
}

.user-backgroundColor {
  -o-transition: background-color 0.5s linear;
  -ms-transition: background-color 0.5s linear;
  -moz-transition: background-color 0.5s linear;
  -khtml-transition: background-color 0.5s linear;
  -webkit-transition: background-color 0.5s linear;
  transition: background-color 0.5s linear;
}

#title_bar #brand_link {
  /*title_bar is not redundant, it helps override other choices*/
  display: block;
  width: 0;
  height: 100%;
  float: right;
  margin: 0 8px;
  padding: 0;
  cursor: pointer;
  background: url(/static/embeddable_player/ondemand/img/logos.png) top left no-repeat;
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
}

#title_bar #brand_link.no-link {
  cursor: default;
}

.wnyc #title_bar #brand_link, .culture #title_bar #brand_link {
  width: 41px;
  height: 16px;
  margin-top: 3px;
  background-position: -4px -5px;
}

.greenespace #title_bar #brand_link {
  margin-top: 8px;
  background-position: -4px -130px;
  width: 81px;
  height: 7px;
}

.wqxr #title_bar #brand_link {
  width: 60px;
  height: 14px;
  margin-top: 5px;
  background-position: -4px -52px;
}

.radiolab #title_bar #brand_link {
  width: 79px;
  height: 8px;
  margin-top: 8px;
  background-position: -4px -115px;
}

.onthemedia #title_bar #brand_link {
  width: 68px;
  height: 18px;
  margin-top: 2px;
  background-position: -4px -92px;
}

.studio360 #title_bar #brand_link {
  width: 61px;
  height: 16px;
  margin-top: 3px;
  background-position: -4px -71px;
}

.takeaway #title_bar #brand_link {
  width: 43px;
  height: 16px;
  margin-top: 3px;
  background-position: -4px -28px;
}

.soundcheck #title_bar #brand_link {
  width: 95px;
  height: 16px;
  margin-top: 3px;
  background-position: -3px -142px;
}

