/* Styling for Triton player */
#td-player {
  width: 48px;
}
.triton-wrapper {
  background: #4a565f;
}

.triton-player-container {
  max-width: 62.5em;
  margin: auto;
}
@media only screen and (min-width: 40.063em){
  #td-player {
    height: 80px;
    width: 80px;
  }
}
.triton-player-container {
  background-color: #4a565f;
  display: -webkit-flex;
  display: flex;
  min-height: 3em;
}
#triton-player .td-player-bar__nowplaying {
  min-width: initial;
}

.triton-left {
  display: -webkit-flex;
  display:        flex;
  -webkit-align-items: center;
          align-items: center;
  width: 80%;
  width: calc(100% - 60px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 40.063em) {
  .triton-left {
    width: 80%;
    width: calc(100% - 80px)
  }
}
/* Current Stream Program Metadata */
.stream-program-container {
  color: #7f95a4;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
@media (min-width: 40.063em) {
  .stream-program-container {
    width: 60%; /* for browsers without calc() */
    width: calc(100% - 240px);
    padding: 0;
  }
}
.stream-program-box {
  padding: .5em;
}
@media (min-width: 40.063em) {
  .stream-program-box {
    padding: .5em 1em;
  }
}
.stream-program-header {
  color: #e4ecf2;
  opacity: 0.7;
  font-size: 13px;
}
.stream-program-name {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.2;
  color: #e4ecf2;
  white-space: nowrap;
  width: calc(100vw - 130px);
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (min-width: 40.063em) {
  .stream-program-name {
    font-size: 1.25em;
    font-weight: 300;
    white-space: initial;
    width: 100%;
  }
}

.stream-program-nextinfo {
  font-size: 12px;
  margin-top: 0.25em;
  display: none;
}

@media (min-width: 40.063em) {
  .expanded .stream-program-nextinfo {
    display: block;
  }
}

/* Current Song Metadata */
.stream-song-container {
  border-bottom: 1px solid #4a565f;
  overflow: hidden;
}
.stream-song-box {
  color: #7f95a4;
  line-height: 1.2;
  padding: 1.125em 1em 1.25em 1em;
  text-align: center;
}
.stream-song-artwork {
  background-size: contain !important;
  height: 80px;
  width: 80px;
  margin: 0 auto 1em;
  display: none;
  background: no-repeat center;
}
@media (min-width: 40.063em) {
  .stream-song-artwork {
    margin: 0 1em 0 0;
    float: left;
  }
}

.stream-song-trackname {
  margin-bottom: .4em;
  font-size: 1.5em;
}
.stream-song-artist {
  margin-bottom: .4em;
  font-size: 1em;
}
.stream-song-collection {
  font-size: 1em;
  opacity: 0.8;
}
@media (min-width: 40.063em) {
  .stream-song-box {
    padding: 1.125em 1em 1.25em 1em;
    text-align: left;
  }
  .stream-song-trackname {
    font-size: 1.7em;
  }
  .stream-song-artist {
    font-size: 1.35em;
  }
  .stream-song-collection {
    font-size: 1.125em;
  }
}
@media (min-width: 66.875em) {
  .stream-song-box {
    padding: 1.125em 0 1.25em 1.25em;
    width: 47.5em;
  }
}

/* Hide some Triton information */
.playing .td-player-bar__nowplaying__cover-art {
  background: url(../images/no-cover-art-80-s.png) no-repeat;
  color: #bbccdd;
  text-align: center;
  background-size: 100%;
}

.td-player-bar__volume-controls {
  width: 130px !important;
  margin-right: 10px !important;
  margin-top: -5px !important;
}
@media (min-width: 40.063em) {
  #triton-player .td-player-bar__volume-controls {
    display: block;
    line-height: 90px;
    position: absolute;
    right: 10px;
  }
}
.td-player-bar__volume-controls__volume {
  width: 10px !important;
}
.td-player-bar__nowplaying__trackinfo,
.td-player-bar__buy {
  display:none;
}

/* The grabber on the volume */
#triton-player .noUi-handle {
  border-radius: 13px;
  cursor: pointer;
  width: 13px;
  height: 13px;
  margin-top: -6px;
}

/* Unfortunate to use this id, but it enables us to over-ride styles injected by triton */
#triton-player .td-player-bar {
  height: 3em;
  line-height: 3em;
}
#triton-player .td-player-bar__nowplaying__cover-art {
  width: 48px;
  height: 48px;
}
#triton-player .td-player-bar__nowplaying__cover-art img {
  display: block;
}
#triton-player .td-player-bar__nowplaying__cover-art__media-controls {
  width: 48px;
}
@media (min-width: 40.063em){
  #triton-player .td-player-bar__nowplaying__cover-art__media-controls {
    width: 80px;
  }
  #triton-player .td-player-bar__nowplaying__cover-art {
    display: block;
    width: 80px;
    height: 80px;
  }
  #triton-player .td-player-bar {
    height: 80px;
    line-height: 80px;
  }
}

#triton-player .td-player-bar__nowplaying__cover-art__media-controls button {
  font-size: 16px;
  width: 51px;
  height: 48px;
  padding: 0;
  line-height: 46px;
}
@media only screen and (min-width: 40.063em) {
  #triton-player .td-player-bar__nowplaying__cover-art__media-controls button {
  font-size: 26px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  padding-left: 2rem;
  padding-right: 2rem;
}

}

.td-player-bar__nowplaying__cover-art__media-controls--play {
  padding: 0;
}

/* Stream selection links */
.stream-selector-container {
  background-color: #363d44;
  transition: all .4s ease .2s;
  height: 0;
  overflow: hidden;
}
.expanded .stream-selector-container {
  height: auto;
}
.stream-selector-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.triton-stream-selector-link, .triton-stream-selector-link:active, .triton-stream-selector-link:focus {
  outline: none;
}
.triton-stream-selector-link {
  color: #aabbcc;
  display: block;
  min-height: 60px;
  padding: 0.5em 1em 0.75em;
}
.triton-stream-selector-link.current {
  color: #e4ecf2;
}
.triton-stream-selector-link.current.playing {
  cursor: default;
}
.triton-stream-selector-link:hover, .triton-stream-selector-link:focus {
  color: #eeeeff;
  text-decoration: none;
}
.triton-stream-selector-link:hover .triton-stream-inactive,
.triton-stream-selector-link:focus .triton-stream-inactive {
  border-left: .9em solid #eeeeff;
}
.stream-selector-stream-summary {
  display: block;
  margin-left: 28px;
}
.stream-selector-stream-summary:before {
  display: inline-block;
  width: 1em;
}
.stream-selector-stream-name {
  font-size: .85em;
  font-weight: normal;
}
.stream-selector-program-name {
  font-size: 1.25em;
  line-height: 1.2em;
  font-weight: 400;
}

/* Stream selection area */
.triton-more-toggle {
  background: #363d44;
  border-left: 1px solid #363d44;
  font-size: .8em;
  opacity: .75;
  overflow: hidden;
  -webkit-flex: 1 0 60px;
  flex: 1 0 60px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;

}
.triton-player-btn {
  margin-top: -2px;
}
@media (min-width: 40.063em) {
  .triton-more-toggle {
    -webkit-flex: 1 0 80px;
    flex: 1 0 80px;
  }
  .triton-more-toggle:hover {
    color: #e4ecf2;
    cursor: pointer;
  }
  .triton-player-btn {
    line-height: 80px;
  }
}
.toggle-arrow {
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all .3s ease-out;
  transition: all .3s ease-out;
}
.expanded .toggle-arrow  {
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.toggle-arrow path {
  fill: #e4ecf2;
}
.audity-controls {
  padding-right: 1%;
  padding-left: 1%;
  text-align: center;
  width: 2.5em;
}
@media (min-width: 640px) {
  .audity-controls {
    width: 4.5em;
    padding-right: 2%;
    padding-left: 2%;
  }
}
@media (min-width: 640px) {
  .no-touch .audity-controls {
    width: 5em;
  }
}
.stream-list li{
    border-top: 1px solid #4a565f;
    color: #7f95a4;
}
.stream-list li:first-child {
  border-top: 0;
}
@media (min-width: 640px) {
  .stream-list li {
    border-top: 0;
    float: left;
    width: 33%;
    padding: 0.75em 2%;
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
  }
}
@media (min-width: 1024px) {
  .stream-list li {
    width: 30%;
  }
}
.stream-list li a {
  color: #7f95a4;
  font-size: 100%;
  text-decoration: none;
  position: relative;
  display: block;
}
@media (min-width: 640px) {
  .stream-list li a {
    font-size: 85%;
  }
}
a:focus.stream {
  outline: none;
}
.stream-indicator {
  border-radius: 50%;
  float: left;
  height: 23px;
  width: 23px;
  margin-top: 2px;
  margin-right: 5px;
  position: relative;
}
.triton-stream-inactive {
  width: 0;
  height: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .9em solid #7f95a4;
  position: absolute;
  top: 6px;
  left: 2px;
}
.current .triton-stream-inactive {
  border-left: .8em solid #e4ecf2;
}
.current.playing .triton-stream-inactive {
  display: none;
}
.triton-stream-active {
  display: none;
}
.current.playing .triton-stream-active {
  display: block;
  height: 25px;
  left: -8px;
  top: 2px;
  position: relative;
}
.stream-activebar {
  background: #e4ecf2;
  bottom: .5em;
  height: .1em;
  position: absolute;
  width: 3px;
  -webkit-animation: sound 1s cubic-bezier(.17,.37,.43,.67) infinite alternate;
  animation: sound 1s cubic-bezier(.17,.37,.43,.67) infinite alternate;
}
/* Playing animation */
@-webkit-keyframes sound {
  0%    { opacity: 0.5;height: 0.1em; }
  100%  { opacity: 1.0;height: 1.0em; }
}
@keyframes sound {
  0%    { opacity: 0.5;height: 0.1em; }
  100%  { opacity: 1.0;height: 1.0em; }
}
@-webkit-keyframes sound-loading {
  0%    { opacity: 0.1}
  100%  { opacity: 1.0 }
}
@keyframes sound-loading {
  0%    { opacity: 0.1 }
  100%  { opacity: 1.0 }
}
.stream-activebar:nth-child(1)  { left: .6em; -webkit-animation-duration: .4s; animation-duration: .4s; }
.stream-activebar:nth-child(2)  { left: .9em; -webkit-animation-duration: .2s; animation-duration: .2s; }
.stream-activebar:nth-child(3)  { left: 1.2em; -webkit-animation-duration: 1s; animation-duration: 1s; }
.stream-activebar:nth-child(4)  { left: 1.5em; -webkit-animation-duration: .3s; animation-duration: .3s;}

/* Ads */
.companionLeaderBoard:empty {
  display: none;
}
.companionLeaderBoard {
  text-align: center;
  margin: 0 0 1.5em 0;
}
