/* 用户中心 · 悬浮音乐播放器 */
#xjc-music {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 10001;
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: none;
}
#xjc-music.on { display: block; }

#xjc-music .group { display: flex; align-items: center; gap: 8px; cursor: grab; touch-action: none; }
#xjc-music.xjc-drag .group { cursor: grabbing; }
#xjc-music.xjc-drag { transition: none; }

#xjc-music .btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 22, 28, .62);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  backdrop-filter: saturate(1.2);
  transition: transform .18s;
}
#xjc-music .btn:hover { transform: scale(1.06); }
#xjc-music .btn.small { width: 38px; height: 38px; font-size: 14px; opacity: .9; }
#xjc-music .btn.tiny {
  width: 26px;
  height: 26px;
  font-size: 11px;
  background: rgba(20, 22, 28, .45);
  align-self: flex-start;
  margin-left: -4px;
}
#xjc-music.playing .btn.small { animation: xjcSpin 9s linear infinite; }
@keyframes xjcSpin { to { transform: rotate(360deg); } }

#xjc-music .panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: 250px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(24, 26, 33, .92);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
  display: none;
}
#xjc-music.open .panel { display: block; }
#xjc-music .title {
  font-size: 12.5px;
  opacity: .72;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#xjc-music ul { list-style: none; margin: 0; padding: 0; max-height: 178px; overflow: auto; }
#xjc-music li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 6px 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}
#xjc-music li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#xjc-music li .del {
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
#xjc-music li .del:hover { background: rgba(255, 255, 255, .16); color: #fff; }
#xjc-music li:hover { background: rgba(255, 255, 255, .1); }
#xjc-music li.cur { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
#xjc-music .ctrl { display: flex; gap: 6px; margin-top: 8px; }
#xjc-music .ctrl button {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
#xjc-music .ctrl button:hover { background: rgba(255, 255, 255, .2); }

@media (max-width: 820px) {
  #xjc-music { left: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  #xjc-music .panel { width: 226px; }
}
