/*
 * 本程序由【小马克程序定制】设计与制作，如有售后和开发需求官网：https://xiaomaker.cn
 * 前台播放页样式：蓝白基调，背景图不拉伸变形、边缘模糊，播放组件与歌词置于上层
 */

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
}

.play-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 模糊背景层：铺满屏幕并放大，边缘自然虚化 */
.bg-blur {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(36px) brightness(0.55) saturate(1.1);
  transform: scale(1.15);
  z-index: 0;
}

/* 主背景图层：等比 contain，不拉升变形 */
.bg-main {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 渐变压暗层，保证文字可读 */
.bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.15) 40%, rgba(15, 23, 42, 0.55) 100%);
  z-index: 2;
}

.play-overlay {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
}

/* ---------- 歌曲信息 ---------- */
.song-head {
  text-align: center;
  margin-bottom: 22px;
}

.song-title {
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.song-artist {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- 进度条 ---------- */
.progress-block {
  margin-bottom: 18px;
}

.progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fff;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  left: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- 控制区 ---------- */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 26px;
}

.control-btn {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.1s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.control-btn:active {
  transform: scale(0.94);
}

.play-main-btn {
  width: 72px;
  height: 72px;
  background: #fff;
  color: #2563eb;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-main-btn:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.speed-select {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  backdrop-filter: blur(6px);
}

.speed-select option {
  color: #1e293b;
}

/* ---------- 歌词 ---------- */
.lyrics-wrap {
  flex: 1;
  overflow-y: auto;
  text-align: center;
  padding: 8px 4px 20px;
  scroll-behavior: smooth;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.lyric-line {
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease, transform 0.25s ease, font-weight 0.25s ease;
}

.lyric-line.active {
  color: #fff;
  font-weight: 600;
  transform: scale(1.05);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.lyric-empty {
  margin-top: 40px;
  opacity: 0.7;
  font-size: 14px;
}

/* ---------- 加载 / 错误状态 ---------- */
.state-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.state-box .state-icon {
  font-size: 44px;
  opacity: 0.8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .play-overlay {
    padding: 24px 18px 20px;
  }
  .song-title {
    font-size: 20px;
  }
  .controls {
    gap: 18px;
  }
  .control-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .play-main-btn {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
  .lyric-line {
    font-size: 15px;
    padding: 8px 0;
  }
}
