.song-control-drawer {
  position: fixed !important;
  z-index: 9500 !important;
  right: 18px !important;
  bottom: 18px !important;
  width: min(560px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 36px) !important;
  margin: 0 !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  border: 1px solid rgba(70, 191, 255, .52) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .68),
    0 0 42px rgba(52, 128, 255, .22) !important;
  transform-origin: right bottom;
  transition:
    opacity .20s ease,
    transform .20s ease,
    visibility .20s ease !important;
}

.song-control-drawer[hidden] {
  display: none !important;
}

.song-control-drawer.is-open {
  visibility: visible !important;
  opacity: 1 !important;
  transform:
    translate3d(0, 0, 0)
    scale(1) !important;
  pointer-events: auto !important;
}

.song-control-drawer.is-collapsed {
  visibility: hidden !important;
  opacity: 0 !important;
  transform:
    translate3d(34px, 24px, 0)
    scale(.96) !important;
  pointer-events: none !important;
}

.song-control-drawer-head {
  position: sticky;
  z-index: 2;
  top: -22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin:
    -22px
    -22px
    18px;
  padding: 13px 15px;
  border-bottom:
    1px solid rgba(255, 255, 255, .10);
  background:
    linear-gradient(
      100deg,
      rgba(9, 18, 34, .98),
      rgba(34, 17, 52, .98)
    );
  backdrop-filter: blur(16px);
}

.song-control-drawer-head > div {
  min-width: 0;
}

.song-control-drawer-head strong,
.song-control-drawer-head small {
  display: block;
}

.song-control-drawer-head strong {
  color: #fff;
  font-size: .88rem;
  font-weight: 1000;
  letter-spacing: .10em;
}

.song-control-drawer-head small {
  margin-top: 3px;
  overflow: hidden;
  color: #aebbd0;
  font-size: .70rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-control-drawer-close {
  flex: 0 0 auto;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border:
    1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}

.song-control-drawer-close:hover {
  background: rgba(255, 73, 118, .25);
  border-color: rgba(255, 73, 118, .58);
}

.song-control-drawer-handle {
  position: fixed;
  z-index: 9499;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: min(260px, calc(100vw - 20px));
  padding: 13px 15px;
  border:
    1px solid rgba(70, 191, 255, .48);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  color: #fff;
  background:
    linear-gradient(
      100deg,
      rgba(0, 127, 203, .97),
      rgba(105, 64, 226, .97),
      rgba(219, 35, 132, .97)
    );
  box-shadow:
    0 15px 50px rgba(0, 0, 0, .55);
  transform: translateY(-50%);
  cursor: pointer;
}

.song-control-drawer-handle[hidden] {
  display: none !important;
}

.song-control-drawer-handle span {
  font-weight: 1000;
  letter-spacing: .06em;
}

.song-control-drawer-handle small {
  display: block;
  overflow: hidden;
  max-width: 225px;
  color: rgba(255, 255, 255, .84);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#queueList .song-item,
#historyList .song-item {
  cursor: pointer;
  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease;
}

#queueList .song-item:hover,
#historyList .song-item:hover {
  border-color:
    rgba(73, 181, 255, .48);
  background:
    rgba(20, 48, 76, .30);
}

#queueList .song-item.song-item-is-opening,
#historyList .song-item.song-item-is-opening {
  border-color: #49b5ff;
  transform: scale(.995);
  box-shadow:
    0 0 24px rgba(73, 181, 255, .18);
}

@media (max-width: 720px) {
  .song-control-drawer {
    right: 10px !important;
    bottom: 10px !important;
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
  }

  .song-control-drawer-handle {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    border-right:
      1px solid rgba(70, 191, 255, .48);
    border-radius: 13px;
    transform: none;
  }
}
