#player.maximized a#bigplay {
  display: none;
}

#player {
  padding: 15px 0;
  transition: all 0.25s ease;
  pointer-events: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
  font-size: 14px;
  opacity: 0;
}

#player a#bigplay {
  margin-right: 5px;
  font-size: 1.5em;
}

#player .songlist li.playing a {
    opacity: 1;
}

#player .songlist li.playing a, 
#player .songlist li.playing i {
  color: #fff;
}

#player,  
#player .toggle {
  background-color: #000;
  box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
}

#player *:not(a, i, img, .album) {
  cursor: default;
}

#player.open {
  opacity: 1;
  pointer-events: all;
}

#player p {
  margin: 0;
}

#player a:not(.album) {
  color: #fff;
  transform: none !important;
  opacity: 0.66;
}

#player #song {
  line-height: 1em;
}

#player > a.album,  
#player a.prev,  
#player a.next, 
#player #bigplay, 
#player #song, 
#player .actions {
  vertical-align: middle !important;
}

#player a.prev, 
#player a.next {
  opacity: .75;
  margin-left: 10px;
  margin-right: 10px;
}

#player .songlist li:not(.playing) i {
  color: #fff;
}

#player :not(.actions) a:hover {
  opacity: 1;
}

#player .actions .instrumental {
  display: none;
}

#player img.cover {
  width: 30px;
  margin-right: 5px;
  vertical-align: middle;
}

#player #tape img, 
#player.maximized > .album, 
#player #details a.album {
  display: none;
}

#player #tape {
  position: absolute;
  left: 80%;
  width: 280px;
  background-color: #000;
  top: 90px;
  opacity: 0.15;
  transform: translateX(-80%) rotate(15deg);
  pointer-events: none;
}

#player #details {
  transition: all 0.25s ease;
  height: 0;
  overflow: hidden;
}

#player #details .meta, 
#player #details .publishing {
  font-size: 12px;
  margin: 5px;
}

#player #details .meta > div {
  max-width: 250px;
  margin: 0 auto;
}

#player #key, 
#player #tempo {
  display: inline-block;
  margin: 10px 5px !important;
}

#player .meta span {
  opacity: 0.66;
}

#player #details .publishing {
  color: #777;
}

#player #details .songlist {
  font-size: 12px;
  line-height: 18px;
  display: inline-block;
  border-top: 0.5px solid;
  padding: 5px 10px;
}

#player #audio {
  margin-top: 10px;
}

#player #details.open {
  height: auto;
}

#player .songlist a.playing, 
#player .songlist a.playing i, 
#player .songlist a:hover i {
  opacity: 1;
}

#player .prev.disabled, 
#player .next.disabled {
  color: #555;
  pointer-events: none;
}

#player a.artist {
  margin-right: 10px;
}

#player .close,  
#player .toggle,  
#player .keyboard {
  position: absolute;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

#player .close,  
#player .keyboard {
  top: 1em;
  opacity: 0.1;
  transition: all 0.25s ease;
}

#player .close:hover, 
#player .keyboard:hover {
  opacity: 1;
}

#player .toggle {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  width: 60px;
  border-radius: 25px;
}

#player .toggle::before {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

#player .toggle.on::before {
  transform: translateX(-50%) rotate(180deg);
}

#player .keyboard {
  right: 20px;
}

#player .songlist li {
  margin-bottom: 0;
}

#player .songlist .favorite {
  display: none;
}

#player #details.open {
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-height: 600px) {
  #player #details.open {
    max-height: 30vh;
  }
}

@media (max-height: 599px) {
  #player #details.open {
    max-height: 30vh;
  }
}

@media (max-height: 449px) {
  #player #details.open {
    max-height: 70vh;
  }
}

@media (max-width: 399px) {
  div#player:not(.maximized) > a.album {
    display: none;
  }
}

@media (max-width: 599px) {
  #player .close, 
  #player .keyboard {
    display: none;
  }
}

#player.maximized > #song {
  display: inline-block;
  font-size: 1.25em;
}

@media (orientation: landscape) and (max-width: 767px) {
  #player.maximized > .album {
    display: inline-block;
  }
  #player.maximized #tape {
    top: 40px;
    bottom: unset;
  }
}

@media (orientation: portrait) {
  #player.maximized > .album {
    display: inline-block;
  }
}

@media (max-width: 767px) or ( (max-height: 599px) and (orientation: landscape) ) {

  body:has(div#player.maximized){
    overflow: hidden;
  }

  body:has(div#player.maximized) div#scroll-up{
    display: none;
  }

  #player.maximized {
    height: 100%;
    padding: 0;
  }

  #player.maximized > .album {
    margin-top: 5%;
  }

  #player .toggle {
    height: 40px;
    top: -20px;
    font-size: 1.5em;
  }

  #player .toggle::before {
    top: 10px;
  }

  #player .toggle.on {
    top: 0;
  }

  @media (max-height: 599px) and (orientation: landscape) {

    #player.maximized #song,  
    #player.maximized > .album, 
    #player.maximized .prev, 
    #player.maximized .next {
      margin-top: 40px;
    }

    #player .toggle.on {
      transform: translateX(-50%);
    }

  }

  @media (min-height: 500px) and (orientation: portrait) {

    #player.maximized > .album {
      margin-bottom: 1em;
    }

    #player.maximized > .album {
      display: block;
    }

    #player.maximized > .album img.cover {
      width: 90%;
      max-width: 375px;
      margin: 0;
    }

    #player .prev,  
    #player .next {
      font-size: 1.25em;
    }
  }

}

@media (min-width: 600px) {

  #player #details a.album:hover, 
  #player #details a.album.hovered {
    opacity: 1 !important;
  }

  #player #details img.cover {
    width: unset;
  }

}

@media (min-width: 768px) {

  #player .toggle {
    top: -20px;
    height: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  #player:not(:has(#details.open)) #audio {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;
  }

  @media (hover:hover) {

    #player a#bigplay {
      display: none;
    }

    #player .actions {
      margin: 0 0 0 20px;
      display: inline-block;
    }

    #player .actions a:hover {
      opacity: 1;
    }

  }

  @media (orientation: landscape) {

    #player.maximized #details a.album {
      display: block;
      position: absolute;
      top: -30px;
      left: 50%;
      transform: rotate(-10deg) translateX(-160%) !important;
      width: 280px;
      opacity: 0.5;
    }

    #player.maximized #tape {
      right: 50%;
      top: 40px;
      bottom: unset;
      transform: translateX(155%);
    }

  }

}

@media (min-width: 900px) {
  
  #player .songlist ul {
    margin: 0 0 0 -10px;
  }

  #player #details a.album {
    left: 2%;
  }

}

@media (hover: none) {

  #player:not(.maximized) audio,  
  #player:not(.maximized) .actions {
    display: none;
  }
  #player .actions {
    margin: 15px 0 0;
  }
  #player .actions{
    margin: .33em;
    font-size: 1.5em;
  }

}