.container {
  display: flex;
  flex-wrap: wrap;
}
.track {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 20px 3% 20px 2%;
  width: 95%;
  position: fixed;
  background-color: white;
  z-index: 2;
  top: 0;
  left: 0;
}
.thumbnail {
  flex: 1;
  max-width: 150px;
  margin: 20px 20px 0 0;
}
.thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.info {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.info .id {
  display: none;
  visibility: hidden;
}
.title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0.8rem 0 0 0;
}
.title a {
  color: #000;
}
.date {
  font-size: 1rem;
  color: #666;
  margin: 0.4rem 0;
  white-space: nowrap;
}
.info .bpm, .info .download {
  position: absolute;
  right: 3%;
  top: 38px;
}
.info .download {
  top: 65px;
}
.listing {
  width: 80%;
  max-width:  660px;
  margin: 280px auto 20px;
  position: relative;
}
.listing .thumbnail {
  width: 60px;
  min-width:  30px;
  padding-right: 1rem;
  margin: 0;
}
.listing .thumbnail img {
    margin: 0 10px;
}
.listing .bpm {
  position: relative;
  right: inherit;
  top: inherit;
}
.listing .bpm, .listing .duration {
  padding:  6px 10px;
}
.listing .date, .listing .bpm, .listing .duration {
  text-align: right;
}

.listing .controls {
  text-align: right;
}

a.play-random, label {
  display: block;
  text-align: center;
  font-size: 0.8em;
}

.spinning {
  -webkit-animation:spin 1s linear infinite;
  -moz-animation:spin 1s linear infinite;
  animation:spin 1s linear infinite;
}

@-moz-keyframes spin { 
  100% { -moz-transform: rotate(360deg); } 
}

@-webkit-keyframes spin { 
  100% { -webkit-transform: rotate(360deg); } 
}

@keyframes spin { 
  100% { 
    -webkit-transform: rotate(360deg); 
    transform:rotate(360deg); 
  } 
}

@media (max-width: 500px) {
  .track {
    padding: 20px 3% 20px 2%;
    width: 95%;
    position: fixed;
    top: 0;
    left: 0;
  }
  .listing {
    width: 100%;
    margin-top: 250px;
  }
  .listing td.thumbnail {
    width: 8vw;
    padding-right: 1vw;
  }
  .listing td.thumbnail img {
    margin-bottom: -1vw;
    margin-left: -0.5vw;
  }
  .listing td.title {
    font-size: 1.2rem;
  }
  .listing td.bpm, .listing td.duration, .listing td.controls {
    font-size: 0.8rem;
  }
  .listing .date {
    display: none;
  }
  .listing .bpm, .listing .duration {
    padding:  1vw 2vw;
  }
  .listing .thumbnail img {
    margin: 1vw;
  }
}