body {
  user-select: none;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "Segoe UI", Arial, Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

.hidden {
  display: none !important;
}

.audio {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #404040;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.audio-cover {
  margin-top: 50px;
}

.audio-cover-img {
  width: 300px;
  height: 300px;
}

.audio-cover-video {
  width: 100vw;
}

.audio-singer {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  line-height: 100px;
}

.audio-player {
  width: 100vw;
  height: 160px;
  background-color: #5e5e5e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.audio-player-progress {
  width: 95vw;
  margin: 12px auto;
}

.audio-player-timeline {
  width: 95vw;
  margin: 12px auto;
  display: flex;
  justify-content: space-between;
  color: #93a6ad;
  font-size: 14px;
}

.audio-player-controls {
  width: 95vw;
  margin: 0 auto;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 32px;
}

.controls-mode {
  cursor: pointer;
}

.controls-mode-img {
  width: 32px;
  height: 32px;
  display: block;
}

.controls-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.controls-prev,
.controls-next,
.controls-bars {
  cursor: pointer;
}

.controls-play {
  width: 64px;
  height: 64px;
  border-radius: 64px;
  background-color: #fff;
  color: #5e5e5e;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.controls-play:active {
  transform: scale(0.95);
  background-color: #f0f0f0;
}

.controls-play .controls-icon {
  width: 36px;
  height: 36px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(94, 94, 94, 0.3);
  border-top-color: #5e5e5e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 进度条 —— 纯净版 range，替代 van-slider */
.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #93a6ad 0%,
    #93a6ad var(--progress, 0%),
    rgba(147, 166, 173, 0.3) var(--progress, 0%),
    rgba(147, 166, 173, 0.3) 100%
  );
  outline: none;
  margin: 0;
  padding: 8px 0;
  background-clip: content-box;
  cursor: pointer;
  touch-action: pan-y;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
}

/* 右侧播放列表抽屉 —— 替代 van-popup */
.popup-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.popup-mask.show {
  opacity: 1;
}

.audio-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 70vw;
  height: 100vh;
  height: 100dvh;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 11;
  overflow-y: auto;
}

.audio-popup.show {
  transform: translateX(0);
}

.popup-list {
  padding-top: env(safe-area-inset-top);
}

/* 播放列表项 —— 替代 van-cell */
.popup-item {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.popup-item:active {
  background-color: #f2f3f5;
}

.popup-item.active {
  background-color: #f5f5f5;
}

.popup-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #323233;
  font-size: 14px;
}

.popup-item-value {
  flex-shrink: 0;
  margin-left: 8px;
  color: #969799;
  font-size: 12px;
}

.popup-item.active .popup-item-value {
  color: #1989fa;
}

.popup-item-label {
  color: #969799;
  font-size: 12px;
}
