body {
  margin: 0;
  font-family: sans-serif;
  color: white;
  user-select: none;
  background: #0f1117;
  overflow-x: hidden;
}

/* 🌌 背景光晕 */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(29,185,84,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(120,80,255,0.25), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(0,200,255,0.15), transparent 50%);
  filter: blur(40px);
  z-index: -1;
}

/* 主容器 */
.app {
  max-width: 600px;
  margin: 30px auto;
  padding: 16px;
  text-align: center;
}

/* 🌫️ 毛玻璃通用卡片 */
.control-row,
.controls,
.song,
.category {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 控制区 */
.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 10px;
}

.btn, .mode-btn {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn img, .mode-btn img {
  width: 22px;
}

/* switch */
.switch {
  flex: 1;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.1);
}

.knob {
  width: 46px;
  height: 34px;
  background: #1db954;
  border-radius: 999px;
  position: absolute;
  top: 9px;
  left: 6px;
  transition: 0.25s;
}

.switch.active .knob {
  left: calc(100% - 52px);
}

/* 进度区 */
.controls {
  margin: 10px 0 20px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.buffer {
  position: absolute;
  height: 100%;
  background: rgba(255,255,255,0.2);
  width: 0%;
}

.progress {
  position: absolute;
  height: 100%;
  background: #1db954;
  width: 0%;
}

/* tooltip */
.tooltip {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 6px;
  display: none;
}

/* 时间 */
.time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.8;
}

/* 📂 分类（胶囊玻璃） */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.category {
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

/* 🎵 歌单卡片 */
.list {
  margin-top: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  border-radius: 12px;
}

/* 自定义滚动条 */
.list::-webkit-scrollbar {
  width: 6px;
}

.list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(29,185,84,0.6);
  border-radius: 6px;
}

.list::-webkit-scrollbar-thumb:hover {
  background: rgba(29,185,84,0.8);
}

.song {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: 0.2s;
}

.song.active {
  border-left: 4px solid #1db954;
  transform: scale(1.02);
  background: rgba(29,185,84,0.1);
}

/* 反馈 */
.footer {
  margin-top: 30px;
  padding: 20px;
  font-size: 13px;
  opacity: 0.7;
}

.footer a {
  color: #1db954;
  text-decoration: none;
}

/* toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}
/* ===== 更新日志弹窗 ===== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 16px;
}

.modal-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.log-list {
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
}

.log-item {
  padding: 10px;
  border-bottom: 1px solid #333;
}

.log-version {
  color: #1db954;
  font-weight: bold;
}
/* ===== 更新日志滚动条美化 ===== */

.log-list::-webkit-scrollbar {
  width: 6px;
}

.log-list::-webkit-scrollbar-track {
  background: transparent;
}

.log-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.log-list::-webkit-scrollbar-thumb:hover {
  background: #1db954;
}