﻿* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0b1720;
  --bg-secondary: #162a38;
  --bg-card: #162a38;
  --bg-hover: #233d4f;
  --accent: #22c5c7;
  --accent-glow: rgba(34, 197, 199, 0.21);
  --text-primary: #e8f4f5;
  --text-secondary: #8fb3b6;
  --border: rgba(255,255,255,0.07);
  --success: #39d1b3;
  --warning: #f0bc57;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* ====================== 全屏播放器样式 ====================== */
.full-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.full-player-overlay.show {
  display: flex;
}

.full-player-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 模糊专辑封面背景 */
.full-bg-blur {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(48px) brightness(0.35);
  opacity: 0.65;
  transform: scale(1.15);
  z-index: 0;
}

/* 顶部关闭按钮 */
.full-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.3em;
  cursor: pointer;
  z-index: 10;
  transition: 0.22s ease;
}

.full-close-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 全屏内容区 */
.full-player-content {
  position: relative;
  z-index: 1;
  width: min(720px, 92%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 24px 32px;
}

/* 封面 */
.full-cover-box {
  width: min(260px, 56vw);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.full-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 歌曲信息 */
.full-song-info {
  text-align: center;
  margin-bottom: 8px;
}

.full-song-info h2 {
  font-size: clamp(1.5em, 3.6vw, 2.4em);
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.full-song-info p {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1em, 2vw, 1.15em);
}

/* 歌词容器：中间聚焦模式 */
.full-lyric-box {
  width: 100%;
  flex: 1;
  max-height: 34vh;
  overflow-y: auto;
  text-align: center;
  padding: 12px 0;
  position: relative;
}

/* 隐藏滚动条但保留滚动 */
.full-lyric-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.full-lyric-box {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 歌词行 */
.full-lyric-line {
  padding: 10px 14px;
  transition: all 0.35s ease;
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(1.15em, 2.4vw, 1.45em);
  line-height: 1.55;
  cursor: pointer;
  border-radius: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.full-lyric-line:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.045);
}

/* 当前播放歌词：超大高亮 */
.full-lyric-line.active {
  color: #ffffff;
  font-size: clamp(1.25em, 2.8vw, 1.65em);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(34, 197, 199, 0.85);
  transform: scale(1.02);
}

/* 空歌词提示 */
.full-lyric-empty {
  color: rgba(255, 255, 255, 0.35);
  opacity: 0.9;
  font-size: clamp(1em, 2vw, 1.15em);
  padding: 20px 0;
}

/* 进度条区域 */
.full-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.full-progress {
  flex: 1;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.full-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6c5ce7);
  border-radius: 999px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.full-progress .progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.full-progress:hover .progress-bar::after {
  opacity: 1;
}

.full-time-left,
.full-time-right {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.55);
  min-width: 50px;
  font-variant-numeric: tabular-nums;
}

/* 控制按钮 */
.full-control-btns {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.full-control-btns .ctrl-btn {
  width: 56px;
  height: 56px;
  font-size: 1.4em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.75);
  transition: 0.22s ease;
}

.full-control-btns .ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.085);
  color: #ffffff;
}

.full-control-btns .play-btn {
  width: 72px;
  height: 72px;
  font-size: 1.6em;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(34, 197, 199, 0.55);
}

.full-control-btns .play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(34, 197, 199, 0.75);
}

/* 底部音质音量栏 */
.full-bottom-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.full-volume .volume-slider {
  width: 120px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .full-player-content {
    padding: 32px 16px 24px;
  }

  .full-cover-box {
    width: min(220px, 48vw);
  }

  .full-control-btns {
    gap: 16px;
  }

  .full-control-btns .ctrl-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25em;
  }

  .full-control-btns .play-btn {
    width: 64px;
    height: 64px;
    font-size: 1.45em;
  }

  .full-bottom-extra {
    flex-wrap: wrap;
    justify-content: center;
  }

  .full-lyric-box {
    max-height: 30vh;
  }

  .full-lyric-line {
    font-size: clamp(1em, 2.2vw, 1.25em);
    padding: 8px 12px;
  }

  .full-lyric-line.active {
    font-size: clamp(1.15em, 2.5vw, 1.45em);
  }
}
/* 全屏歌词容器 */
.full-lyric-box {
  width: 100%;
  max-height: 32vh;
  overflow-y: auto;
  text-align: center;
  line-height: 2.6;
  font-size: clamp(1em, 2vw, 1.3em);
  padding: 10px 0;
}
.full-lyric-empty {
  color: var(--text-secondary);
  opacity: 0.4;
}
.full-lyric-line {
  padding: 4px 0;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}
.full-lyric-line.active {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.18em;
  text-shadow: 0 0 24px var(--accent-glow);
}
/* 全屏进度条独立修复样式 */
.full-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}
.full-progress {
  flex: 1;
  height: 8px !important;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.full-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6c5ce7);
  border-radius: 4px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}
.full-progress .progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
}
.full-progress:hover .progress-bar::after {
  opacity: 1;
}
.full-time-left, .full-time-right {
  font-size: 0.85em;
  color: var(--text-secondary);
  min-width: 50px;
}
/* 全屏控制按钮 */
.full-control-btns {
  display: flex;
  align-items: center;
  gap: 22px;
}
.full-control-btns .ctrl-btn {
  width: 54px;
  height: 54px;
  font-size: 1.4em;
}
.full-control-btns .play-btn {
  width: 72px;
  height: 72px;
  font-size: 1.6em;
}
/* 底部音质音量栏 */
.full-bottom-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.full-volume .volume-slider {
  width: 120px;
}

/* 移动端全屏适配 */
@media (max-width:768px) {
  .full-control-btns {
    gap: 12px;
  }
  .full-control-btns .ctrl-btn {
    width: 44px;
    height: 44px;
  }
  .full-control-btns .play-btn {
    width: 60px;
    height: 60px;
  }
  .full-bottom-extra {
    flex-wrap: wrap;
    justify-content: center;
  }
  .full-lyric-box {
    max-height: 26vh;
  }
}

/* === Background Animation === */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(233,69,96,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(0,210,211,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(108,92,231,0.06) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* === Header === */
.header {
  text-align: center;
  padding: 40px 0 30px;
}

.header h1 {
  font-size: 2.4em;
  background: linear-gradient(135deg, #e94560, #6c5ce7, #00d2d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.header p {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* === Search Bar === */
.search-section {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1em;
  transition: all 0.3s;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  opacity: 0.5;
}

.source-btns {
  display: flex;
  gap: 6px;
}

.source-btn {
  padding: 14px 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s;
  white-space: nowrap;
  user-select: none;
}

.source-btn:hover { border-color: rgba(255,255,255,0.15); }

.source-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.search-btn {
  padding: 14px 36px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #e94560, #6c5ce7);
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 1px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.search-btn:active { transform: scale(0.97); }

/* === Player Bar (fixed bottom) === */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 1000;
  display: none;
  transition: all 0.3s;
}

.player-bar.show { display: block; }

.player-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.player-cover {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-hover);
  overflow: hidden;
  flex-shrink: 0;
}

.player-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.player-info {
  min-width: 120px;
  flex-shrink: 0;
}

.player-info .song-name {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-info .artist-name {
  font-size: 0.8em;
  color: var(--text-secondary);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ctrl-btn:hover { background: rgba(255,255,255,0.15); }

.ctrl-btn.play-btn {
  width: 46px; height: 46px;
  background: var(--accent);
  font-size: 1.2em;
}

.ctrl-btn.play-btn:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.05);
}

/* 进度区域改为垂直布局：歌词在上，进度时间在下 */
.progress-section {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 播放器单行歌词（进度条上方） */
.player-lyric-line {
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  overflow: hidden;
  white-space: nowrap;
}
.player-lyric-active {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px var(--accent-glow);
}
.player-lyric-empty {
  opacity: 0.4;
}

.progress-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.progress-bar-wrapper {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}

.progress-bar-wrapper:hover { height: 8px; }

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6c5ce7);
  border-radius: 3px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
}

.progress-bar-wrapper:hover .progress-bar::after { opacity: 1; }

.time-display {
  font-size: 0.75em;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 85px;
  text-align: center;
}

.player-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quality-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.8em;
  cursor: pointer;
  outline: none;
}

.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

/* === Results === */
.results-section {
  margin-bottom: 100px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-header h3 {
  font-size: 1.1em;
  color: var(--text-secondary);
}

.results-header h3 span { color: var(--accent); }

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.results-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.8em;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.results-table tbody tr {
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 12px;
}

.results-table tbody tr:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.results-table tbody tr.playing {
  background: rgba(233, 69, 96, 0.15);
  border-left: 3px solid var(--accent);
}

.results-table tbody td {
  padding: 14px 16px;
  font-size: 0.92em;
  vertical-align: middle;
}

.results-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
  width: 50px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85em;
}

.results-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.song-title-cell .name {
  font-weight: 600;
  margin-bottom: 2px;
}

.song-title-cell .album {
  font-size: 0.8em;
  color: var(--text-secondary);
}

.action-btns {
  display: flex;
  gap: 6px;
}

.action-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8em;
  transition: all 0.2s;
  white-space: nowrap;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233, 69, 96, 0.1);
}

.action-btn.lyric-btn:hover {
  border-color: var(--success);
  color: var(--success);
  background: rgba(0, 210, 211, 0.1);
}

.action-btn.dl-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
  background: rgba(254, 202, 87, 0.1);
}

/* === Lyrics Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal-overlay.show { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lyrics-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
}

.lyrics-header h3 {
  font-size: 1.1em;
}

.lyrics-header h3 small {
  display: block;
  font-size: 0.75em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.close-btn {
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover { background: var(--accent); }

.lyrics-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  text-align: center;
  line-height: 2.2;
  font-size: 0.95em;
  color: var(--text-secondary);
}

.lyrics-body .lyric-line {
  transition: all 0.3s;
  padding: 2px 0;
  border-radius: 4px;
}

.lyrics-body .lyric-line.active {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15em;
  text-shadow: 0 0 20px var(--accent-glow);
}

/* === Download Modal === */
.download-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.dl-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-body {
  padding: 20px 24px 24px;
}

.dl-quality-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-quality-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.dl-quality-item:hover {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.08);
}

.dl-quality-item .q-label {
  font-weight: 600;
}

.dl-quality-item .q-desc {
  font-size: 0.8em;
  color: var(--text-secondary);
}

.dl-quality-item .q-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 600;
}

.q-badge.standard { background: rgba(0,210,211,0.15); color: var(--success); }
.q-badge.high { background: rgba(108,92,231,0.15); color: #6c5ce7; }
.q-badge.extreme { background: rgba(233,69,96,0.15); color: var(--accent); }
.q-badge.lossless { background: rgba(254,202,87,0.15); color: var(--warning); }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9em;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* === Loading === */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

.loading .spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

.empty-state .icon { font-size: 3em; margin-bottom: 16px; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* === Responsive === */
@media (max-width: 768px) {
  body {
    padding-bottom: 110px;
  }
  .header h1 { font-size: 1.6em; }
  .search-section { flex-direction: column; }
  .source-btns { justify-content: center; }
  .results-table thead { display: none; }
  .results-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 4px;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  .results-table tbody td { padding: 4px 0; border-radius: 0 !important; }
  .results-table tbody td:first-child { width: 30px; }
  .results-table tbody td:nth-child(2) { flex: 1; }
  .results-table tbody td:nth-child(3) { width: 100%; }
  .action-btns { width: 100%; justify-content: flex-end; }
  .player-inner { gap: 10px; }
  .progress-section { min-width: 100%; order: 10; }
  .volume-wrapper { display: none; }
  .player-lyric-line {
    font-size: 0.82em;
  }
}

/* === Toast === */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 12px;
  z-index: 5000;
  font-size: 0.9em;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--accent); }
.toast.success { border-color: var(--success); }

/* 全屏打开时锁定页面样式 */
body.full-lock {
  overflow: hidden !important;
}
body.full-lock #mainContentWrap {
  display: none !important;
}
#mainContentWrap {
  transition: opacity 0.3s ease;
}
#fullPlayerOverlay {
  transition: opacity 0.3s ease;
}

/* ========== 底部版权 Footer 样式 ========== */
.page-footer {
  width: 100%;
  border-top: 1px solid #27273f;
  padding: 24px 16px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left p,
.footer-right p {
  margin: 6px 0;
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}
.footer-left p:first-child {
  color: #ccc;
  font-size: 15px;
}
.footer-left p:first-child a {
  color: #CCCCCC;
  text-decoration: none;
}
.footer-left p:first-child a:hover {
  color: #66b1ff;
}
.footer-right {
  text-align: right;
}
/* 移动端适配 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
}

/* 给主容器增加底部外边距，防止内容紧贴footer */
#mainContentWrap {
  padding-bottom: 20px;
}

/* body进入全屏锁定状态 */
body.full-lock {
  overflow: hidden !important;
  /* 移动端禁止滚动回弹 */
  overscroll-behavior: none !important;
}
/* 全屏打开：彻底移除footer + 兜底样式 */
body.full-lock .page-footer {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* 全屏遮罩【移动端防挤压完整版】 */
.full-player-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 动态视口高度，跟随浏览器底部导航栏自动变化 */
  height: 100dvh;
  z-index: 99999 !important;
  background: #000 !important;
  /* 禁止触发底层页面滚动 */
  touch-action: none;
  /* iOS橡皮筋滚动抑制 */
  overscroll-behavior: none;
  display: none;
}
.full-player-overlay.show {
  display: flex;
}

.full-player-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  /* 底部预留安全区域，防止内容被iPhone底部横条遮挡 */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  overflow: hidden;
}

.full-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* body全屏锁定 */
body.full-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
/* 打开全屏直接移除footer，彻底消除残影源头 */
body.full-lock .page-footer {
  display: none !important;
}
/* 移动端隐藏音量控件 */
@media screen and (max-width: 768px) {
  /* 底部迷你播放器音量 */
  .volume-wrapper {
    display: none !important;
  }
  /* 全屏播放器音量 */
  .full-volume {
    display: none !important;
  }
}