/* Grooveshark player and metabar styles */

/* whole bottom bar, player + meta */
#ds-gs-player-meta-wrapper {
  position: fixed;
  /*
    gs swf doesn't initialize properly if it finds itself invisible
    this sneaky bastard seems to be checking parents' visibility and display styles
    so we outsmart the swf and hide it outside the viewport
  */
  left: -100%;
  bottom: -100%;
  z-index: 100;
  text-align: left;
  font-size: 11px;
  width: 100%;
  z-index: 32768;
}
  #ds-gs-player-meta-wrapper.ds-player-shown {
    left: 0;
    bottom: 0;
  }

/* GS player itself */
#ds-gs-player-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 246px;
  height: 40px;
  padding: 0 49px 0;
}
  #ds-gs-player-z-index {
    position: relative;
    overflow: hidden;
    width: 246px; /* actual widget width is 250px, minus 2px from each side to cover borders */
    height: 40px;
    z-index: -1;
  }
    #ds-gs-player {
      position: relative;
      left: -2px;
    }
  .ds-gs-player-buttons {
    display: block;
    top: 0;
    width: 49px;
    height: 40px;
    background-color: #CCC;
    z-index: 1;
  }
    .ds-gs-player-buttons,
    .ds-gs-player-buttons a {
      position: absolute;
      background-image: url(/images/metro/icons/ds-player-button-sprite.png);
      background-position: 0 0;
      background-repeat: no-repeat;
    }
    .ds-gs-player-buttons a {
      display: block;
      top: 4px;
      width: 42px;
      height: 32px;
    }
    #ds-gs-player-buttons-prev {
      left: 0;
      background-position: 0 -192px;
    }
      #ds-gs-player-buttons-prev a {
        left: 4px;
        background-position: 0 0;
      }
        #ds-gs-player-buttons-prev a:hover {
          background-position: 0 -32px;
        }
        #ds-gs-player-buttons-prev a:active {
          background-position: 0 -64px;
        }
    #ds-gs-player-buttons-next {
      right: 0;
      background-position: 0 -232px;
    }
      #ds-gs-player-buttons-next a {
        right: 4px;
        background-position: 0 -96px;
      }
        #ds-gs-player-buttons-next a:hover {
          background-position: 0 -128px;
        }
        #ds-gs-player-buttons-next a:active {
          background-position: 0 -160px;
        }

/* Meta bar */
#ds-metabar {
  position: relative;
  margin-left: 344px;
  height: 40px;
  padding: 0 305px 0 15px;
}
  #ds-metabar a {
    text-decoration: none !important;
  }

  #ds-metabar .ds-metabar-loading {
    background: url(/images/metro/icons/spinner_trans.gif) left center no-repeat;
    padding-left: 21px;
    color: #FFF;
    font-size: 14px;
    line-height: 40px;
  }
  #ds-metabar .ds-metabar-band {
    display: inline-block;
    font-size: 14px;
    line-height: 40px;
  }
  #ds-metabar .ds-metabar-when-where {
    font-size: 13px;
    margin: 0 .5em;
  }
  #ds-metabar .ds-metabar-band-has-special {
    padding: 4px 0;
    line-height: 18px;
  }
    #ds-metabar .ds-metabar-special-offer {
      display: block;
      margin-top: 1px;
      font-size: 11px;
      line-height: 11px;
    }
  #ds-metabar .ds-metabar-actions {
    position: absolute;
    right: 245px;
    width: auto;
    top: 0;
    height: 20px;
    top: 10px;
  }
    #ds-metabar .ds-metabar-actions .ds-add-remove {
      display: inline-block;
      height: 16px;
      width: auto;
      line-height: 16px;
      padding-left: 20px;
      margin-top: 2px;
      text-indent: 0;
      position: static;
    }
    #ds-metabar .numholder {
      margin: 0;
      padding: .2em .4em;
      padding-left: 21px;
      background-position: 4px center;

      font-size: 11px;
      line-height: 15px !important;
    }
      #ds-metabar .numholder.follow {
        padding-left: .4em;
      }
  #ds-metabar .ds-metabar-social {
    position: absolute;
    right: 165px;
    top: 50%;
    margin-top: -8px;
    width: 60px; /* (16px + 4px) * 3 */
    height: 16px;
  }
    #ds-metabar .ds-metabar-social a {
      float:left;
      margin-left:4px;
      background-image:url(/images/metro/backgrounds/bg_do312.png);
      display: block;
      text-indent:-9999px;
      overflow: hidden;
      width:16px;
      height:16px;
    }
    #ds-metabar .ds-metabar-social .fb {
      background-position:-112px -111px;
    }
    #ds-metabar .ds-metabar-social .tw {
      background-position:-144px -111px;
    }
    #ds-metabar .ds-metabar-social .mail {
      background-position:-176px -111px;
    }

  #ds-metabar #ds-gs-player-band-link {
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -7px;
  }
  #ds-metabar #ds-gs-player-band-link img {
     margin-top: 3px;
     border: 0!important;
  }

/* meta bar theme */
#ds-gs-player-meta-wrapper {
  box-shadow: 0 0 10px #222;
  -webkit-box-shadow: 0 0 10px #222;
  -moz-box-shadow: 0 0 10px #222;
}
#ds-metabar {
  color: #FFF;
  background-color: #222;
}
  #ds-metabar a {
    color: #FFF !important;
  }
  #ds-metabar #ds-gs-player-band-link {
    text-shadow: #FFF 0 0 4px;
  }
  .ds-metabar-band-name {
    color: #FFF;
  }
  .ds-metabar-band-when {
    color: #FFF;
  }
  .ds-metabar-band-where {
    color: #CCC;
  }
