/* ==========================================================================
   赵雷鸟巢演唱会音乐播放器与全屏歌词系统样式
   ========================================================================== */

:root {
  --bg-dark: #131211;
  --panel-bg: rgba(30, 27, 24, 0.85);
  --panel-border: rgba(226, 192, 130, 0.25);
  --gold-primary: #e2c082;
  --gold-glow: rgba(226, 192, 130, 0.4);
  --text-primary: #f5f0e6;
  --text-muted: #9e9587;
  --text-dim: #635b50;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --blur: blur(16px);
}

/* ==========================================================================
   1. 游戏内悬浮迷你胶囊播放器 (Floating Mini Player)
   ========================================================================== */
#mini-player {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--panel-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#mini-player.docked {
  padding: 6px;
  background: rgba(30, 27, 24, 0.9);
  border-color: rgba(226, 192, 130, 0.4);
  cursor: pointer;
}

#mini-player.docked .mini-content,
#mini-player.docked .mini-actions {
  display: none !important;
}

/* 旋转唱片头像 */
.mini-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  animation: spin 16s linear infinite;
  animation-play-state: paused;
}

.mini-disc.playing {
  animation-play-state: running;
}

.mini-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mini-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #1e1b18;
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
}

/* 歌曲名称与状态 */
.mini-content {
  display: flex;
  flex-direction: column;
  max-width: 150px;
  overflow: hidden;
  cursor: pointer;
}

.mini-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* 控制按钮组 */
.mini-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.mini-btn:hover {
  background: rgba(226, 192, 130, 0.2);
  color: var(--gold-primary);
}

.mini-btn:active {
  transform: scale(0.9);
}

.mini-btn.play-btn {
  background: var(--gold-primary);
  color: #1a1714;
}

.mini-btn.play-btn:hover {
  background: #eed5a3;
  transform: scale(1.06);
}

.mini-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   2. 沉浸式全屏歌词播放器 (Fullscreen Lyrics Stage)
   ========================================================================== */
#fullscreen-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 40%, rgba(226, 192, 130, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(80, 50, 20, 0.12) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(1.02);
  color: var(--text-primary);
  overflow: hidden;
}

#fullscreen-player.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* 顶部导航与状态条 */
.fs-header {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(19, 18, 17, 0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  z-index: 10;
}

.fs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fs-back-btn:hover {
  background: var(--gold-primary);
  color: #1a1714;
  border-color: var(--gold-primary);
  transform: translateX(-2px);
}

.fs-header-title {
  text-align: center;
}

.fs-header-title h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.fs-header-title p {
  font-size: 11px;
  color: var(--text-muted);
}

.fs-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-btn-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.fs-btn-pill:hover,
.fs-btn-pill.active {
  background: rgba(226, 192, 130, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* 主舞台双列布局 */
.fs-body {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 0;
  overflow: hidden;
}

/* 左侧：黑胶唱机与单曲信息 */
.fs-left-stage {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.vinyl-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 32px;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #252422 0%, #151413 50%, #0d0c0b 100%);
  box-shadow: 
    0 0 0 6px #1a1917,
    0 0 0 8px rgba(226, 192, 130, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  animation: spin 20s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

/* 唱片黑胶纹理 */
.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 
    inset 0 0 0 20px rgba(255, 255, 255, 0.015),
    inset 0 0 0 45px rgba(255, 255, 255, 0.015),
    inset 0 0 0 75px rgba(255, 255, 255, 0.015);
}

.vinyl-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #111;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.vinyl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: #e2c082;
  border: 3px solid #111;
  border-radius: 50%;
  z-index: 2;
}

.track-info {
  text-align: center;
  max-width: 320px;
}

.track-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.track-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 右侧：精确滚动歌词主舞台 */
.fs-right-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.lyrics-container {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 38vh 48px 38vh 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: none;
}

.lyrics-container::-webkit-scrollbar {
  display: none;
}

.lyric-line {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  transform-origin: left center;
}

.lyric-line:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.lyric-line.active {
  color: var(--gold-primary);
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 25px var(--gold-glow);
  transform: scale(1.04);
  background: transparent;
}

.lyric-empty {
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 20vh;
}

/* 底部全功能播放控制器 */
.fs-footer {
  height: 96px;
  background: rgba(19, 18, 17, 0.9);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

/* 进度条 */
.progress-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.time-stamp {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 44px;
}

.time-stamp.right {
  text-align: right;
}

.progress-bar-bg {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-bg:hover {
  height: 8px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cba157, #e2c082);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* 底部按钮栏 */
.controls-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-side {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-side.right {
  justify-content: flex-end;
}

.ctrl-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 8px;
}

.ctrl-btn:hover {
  color: var(--gold-primary);
  transform: scale(1.1);
}

.ctrl-btn:active {
  transform: scale(0.95);
}

.ctrl-btn.main-play {
  width: 46px;
  height: 46px;
  background: var(--gold-primary);
  color: #1a1714;
  box-shadow: 0 4px 18px var(--gold-glow);
}

.ctrl-btn.main-play:hover {
  background: #eed5a3;
  transform: scale(1.08);
}

.ctrl-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ctrl-btn.main-play svg {
  width: 22px;
  height: 22px;
}

/* 音量滑块 */
.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ==========================================================================
   3. 播放列表抽屉 (Playlist Drawer)
   ========================================================================== */
#playlist-drawer {
  position: absolute;
  top: 68px;
  right: 0;
  width: 360px;
  height: calc(100% - 68px - 96px);
  background: rgba(22, 20, 18, 0.95);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#playlist-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

.drawer-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.drawer-item.active {
  background: rgba(226, 192, 130, 0.12);
  color: var(--gold-primary);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}

.item-index {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-dim);
  width: 22px;
}

.drawer-item.active .item-index {
  color: var(--gold-primary);
}

.item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   动画与响应式断点
   ========================================================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .fs-body {
    grid-template-columns: 1fr;
  }
  .fs-left-stage {
    display: none;
  }
  .lyrics-container {
    padding: 30vh 24px;
    align-items: center;
    text-align: center;
  }
  .lyric-line {
    transform-origin: center center;
    font-size: 18px;
  }
  .lyric-line.active {
    font-size: 24px;
  }
  #playlist-drawer {
    width: 100%;
  }
  #mini-player {
    top: 14px;
    left: 14px;
  }
}
