/* =============================================
   CookieTune 播放器核心、诗画意象大画卷与高清鉴赏 (player.css)
   ============================================= */

/* 主播放器卡片舞台 (采用 6 行 Grid 排版：顶部双端工具栏 auto, 媒体大图 1.1fr, 歌名元数据 auto, 纵向拖拽条 auto, 歌词 1.1fr, 底部控制栏 auto) */
.player-stage-card {
  flex: var(--player-flex, 2) 1 0px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, var(--media-flex, 1.1fr)) auto auto minmax(0, var(--lyrics-flex, 1.1fr)) auto;
  padding: clamp(6px, 1vh, 14px) clamp(8px, 1.2vw, 16px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  gap: clamp(3px, 0.6vh, 6px);
}

/* ↕️ 纵向拖拽虚化指示框线 (拖拽时流畅预览，零重绘无卡顿，释放鼠标后生效) */
.layout-resizer-ghost-v {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  background: var(--primary-gradient, linear-gradient(90deg, #ff758c, #00f2fe, #ff7eb3));
  box-shadow: 0 0 16px rgba(255, 117, 140, 0.95), 0 0 6px #ffffff;
  border-radius: 4px;
  z-index: 1000;
  pointer-events: none;
  display: none;
  transform: translateY(-50%);
  transition: none !important;
}

.layout-resizer-ghost-v::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  bottom: -6px;
  background: rgba(255, 117, 140, 0.2);
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ↕️ 纵向上下拖拽调节栏 (媒体视窗 vs 歌词区域高度自由调节) */
.layout-resizer.layout-resizer-v {
  flex: none;
  width: 100%;
  height: 12px;
  margin: 1px 0;
  z-index: 30;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: transparent;
}

.layout-resizer.layout-resizer-v::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 15%, rgba(255, 117, 140, 0.35) 50%, rgba(255, 255, 255, 0.18) 85%, transparent 100%);
  transform: translateY(-50%);
  transition: all 0.25s ease;
  pointer-events: none;
}

.layout-resizer.layout-resizer-v:hover::before,
.layout-resizer.layout-resizer-v.is-dragging::before {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 117, 140, 0.7) 25%, rgba(0, 242, 254, 0.9) 50%, rgba(255, 117, 140, 0.7) 75%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 117, 140, 0.6);
}

.layout-resizer.layout-resizer-v .resizer-handle {
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.layout-resizer.layout-resizer-v:hover .resizer-handle,
.layout-resizer.layout-resizer-v.is-dragging .resizer-handle {
  width: 68px;
  height: 6px;
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  box-shadow: 0 0 14px rgba(255, 117, 140, 0.9);
}

/* 顶部双端工具栏 (左侧 4 个视角切换按钮，右侧 2 个大图交互功能按钮，共 6 个) */
.player-media-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

/* 视觉风格切换栏 (🖼️ 诗画意境卷 vs 💃 虚拟歌姬 vs 🔮 3D全息 vs 💿 黑胶唱片台) - 靠左 */
.visual-style-switch-bar {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.4vw, 6px);
  padding: 2px 6px;
  width: fit-content;
  flex-shrink: 0;
}

.style-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: clamp(3px, 0.4vh, 5px) clamp(8px, 0.7vw, 12px);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: clamp(10.5px, 0.8vw, 12px);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.style-switch-btn:hover {
  color: #fff;
}

.style-switch-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 117, 140, 0.4);
}

.style-switch-btn .switch-icon {
  font-size: 12.5px;
  flex-shrink: 0;
}

/* 播放器模式视图切换容器 */
.player-view {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  animation: fadeIn 0.4s ease forwards;
}

.player-view.active {
  display: flex;
}

/* 播放器媒体视窗容器 - Grid Row 2 (1fr，与 Row 4 歌词 2fr 构成绝对稳定的 1:2 黄金比例) */
.player-media-viewport {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.audio-media-stage {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.audio-media-stage.active {
  display: flex;
}

/* =============================================
   🌟 核心亮点：沉浸式诗词意境大画卷展台 (Poetic Art Stage)
   ============================================= */
.poetic-art-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.art-frame-card {
  position: relative;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: zoom-in;
  background: #0e0716;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.art-frame-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--primary-color);
}

.poetic-art-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain; /* 100% 完整展示，人物头部、面容与诗词文字笔触绝不裁剪！ */
  display: block;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

.poetic-art-img:hover {
  opacity: 0.96;
}

.poetic-art-img:active {
  transform: scale(0.99);
}


/* ─── 底部共享栏：分页指示器 + 操作按钮组同行布局，彻底消灭重叠 ─── */
.slide-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  /* 底部渐变遮罩，保证按钮始终可读 */
  background: linear-gradient(to top, rgba(8, 4, 16, 0.72) 0%, rgba(8, 4, 16, 0.0) 100%);
  gap: 8px;
  pointer-events: none; /* 让背景不阻止图片点击 */
}

.slide-bottom-bar > * {
  pointer-events: auto;
}

.art-floating-actions {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.4vw, 6px);
}

.art-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: clamp(3px, 0.4vh, 5px) clamp(8px, 0.7vw, 12px);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: clamp(10.5px, 0.8vw, 12px);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  user-select: none;
}

.art-action-pill:hover {
  transform: scale(1.05);
}

.art-action-pill.btn-cinema-studio {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #ffb8d9;
}

.art-action-pill.btn-cinema-studio:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.6), rgba(139, 92, 246, 0.6));
  color: #ffffff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.art-action-pill.btn-view-hd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a5c7ff;
}

.art-action-pill.btn-view-hd:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.6);
}

.art-action-pill .pill-icon {
  font-size: 12.5px;
  flex-shrink: 0;
}

.art-action-pill.btn-view-hd:hover {
  background: var(--primary-gradient);
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255, 117, 140, 0.7);
}

/* =============================================
   💿 视角 2：极简现代高级黑胶唱机展台 (Turntable System)
   ============================================= */
.vinyl-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  container-type: size;
}

/* 唱机现代白陶瓷底盘 (自适应等比例缩放展台) */
.turntable-chassis {
  position: relative;
  width: 100cqmin;
  height: 100cqmin;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f4f5f8 60%, #e6e8ee 100%);
  border-radius: clamp(14px, 12cqmin, 36px);
  box-shadow: 0 6cqmin 18cqmin rgba(0, 0, 0, 0.4), inset 0 0.8cqmin 1.6cqmin rgba(255, 255, 255, 0.95), inset 0 -0.8cqmin 2.4cqmin rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

/* 左上角三点菜单/铭牌装饰 */
.turntable-dot-menu {
  position: absolute;
  top: 7.2cqmin;
  left: 8cqmin;
  font-size: 7.2cqmin;
  line-height: 1;
  color: #a0a6b5;
  letter-spacing: 0.8cqmin;
  font-weight: 900;
  user-select: none;
  opacity: 0.8;
}

/* 唱片沉降凹槽铝圈 */
.turntable-platter-bed {
  position: relative;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(circle, #22252c 0%, #15171c 85%, #0d0e12 100%);
  box-shadow: inset 0 1.6cqmin 4.8cqmin rgba(0, 0, 0, 0.7), 0 0 0 1.6cqmin rgba(220, 224, 232, 0.75), 0 3.2cqmin 9.6cqmin rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 经典深邃黑胶唱片大圆盘 */
.vinyl-disc {
  position: relative;
  width: 96%;
  height: 96%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #171717 30%, #101010 70%, #0a0a0a 100%);
  box-shadow: 0 2.4cqmin 8cqmin rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
  animation: spin-vinyl 20s linear infinite;
  animation-play-state: paused;
  cursor: pointer;
  user-select: none;
}

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

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 拟真黑胶凹槽刻线纹理与镜面高光 */
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.vinyl-shine-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    rgba(255, 255, 255, 0.12) 0deg,
    transparent 60deg,
    rgba(255, 255, 255, 0.08) 120deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.12) 225deg,
    transparent 280deg,
    rgba(255, 255, 255, 0.08) 320deg,
    transparent 360deg
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 中心大封面标签 */
.vinyl-center-cover {
  position: relative;
  width: 44%;
  height: 44%;
  border-radius: 50%;
  overflow: hidden;
  border: clamp(1.5px, 1.2cqmin, 4px) solid #141414;
  box-shadow: 0 0 6.4cqmin rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

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

/* 中心金属轴销 */
.center-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6.4cqmin;
  height: 6.4cqmin;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555 0%, #222 70%, #111 100%);
  border: clamp(1px, 0.6cqmin, 2px) solid #666;
  box-shadow: 0 0.8cqmin 2cqmin rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.spindle-dot {
  width: 1.6cqmin;
  height: 1.6cqmin;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 1.2cqmin rgba(255,255,255,0.9);
}

/* =============================================
   🦾 真实金属质感机械唱臂与白玉唱头 (Tonearm & Stylus - 严格等比例响应式)
   ============================================= */
.stylus-arm-assembly {
  position: absolute;
  top: 5.6cqmin;
  right: 7.2cqmin;
  width: 30cqmin;
  height: 66cqmin;
  transform-origin: 69.33% 14.55%;
  transform: rotate(-32deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(1.6cqmin 4cqmin 4cqmin rgba(0, 0, 0, 0.45));
}

.stylus-arm-assembly.playing {
  transform: rotate(2deg);
}

/* 唱臂转轴底座 */
.arm-pivot-base {
  position: absolute;
  top: 4cqmin;
  right: 4cqmin;
  width: 11.2cqmin;
  height: 11.2cqmin;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e4ea 60%, #c4c8d4 100%);
  box-shadow: 0 1.6cqmin 3.2cqmin rgba(0,0,0,0.35), inset 0 0.4cqmin 0.8cqmin rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arm-pivot-cap {
  width: 5.6cqmin;
  height: 5.6cqmin;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f6fa 0%, #b8bcc8 100%);
  border: clamp(0.8px, 0.4cqmin, 1.5px) solid #9aa0b0;
}

/* 弯曲镀铬金属唱臂杆 */
.arm-metal-rod {
  position: absolute;
  top: 9.6cqmin;
  right: 8.8cqmin;
  width: 1.6cqmin;
  height: 44cqmin;
  background: linear-gradient(to right, #9fa5b5 0%, #ffffff 40%, #838a9c 80%, #5d6374 100%);
  border-radius: 1.2cqmin;
  transform-origin: top center;
  transform: rotate(14deg);
  box-shadow: 0.4cqmin 1.2cqmin 2.4cqmin rgba(0,0,0,0.3);
}

/* 现代白玉唱头 (Cartridge Head) */
.arm-cartridge-head {
  position: absolute;
  bottom: 3.2cqmin;
  left: 0.8cqmin;
  width: 7.2cqmin;
  height: 12cqmin;
  background: linear-gradient(135deg, #ffffff 0%, #ebeef5 70%, #d8dce6 100%);
  border-radius: 1.6cqmin;
  border: clamp(0.8px, 0.4cqmin, 1.5px) solid rgba(200, 205, 218, 0.8);
  box-shadow: 0 1.6cqmin 4cqmin rgba(0,0,0,0.4), inset 0 0.4cqmin 0.8cqmin #fff;
  transform: rotate(24deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* 唱针针尖 */
.stylus-needle {
  width: 1.2cqmin;
  height: 2.4cqmin;
  background: linear-gradient(to bottom, #d0d4dc, #555);
  border-radius: 0.4cqmin;
  margin-bottom: -1.2cqmin;
  box-shadow: 0 0.8cqmin 1.6cqmin rgba(0,0,0,0.6);
}

/* 优雅降级回退 (Fallback for older browsers without container queries) */
@supports not (container-type: size) {
  .turntable-chassis {
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: clamp(18px, 3vh, 36px);
  }
  .turntable-dot-menu {
    top: 18px;
    left: 20px;
    font-size: 18px;
  }
  .stylus-arm-assembly {
    top: 14px;
    right: 18px;
    width: 75px;
    height: 165px;
    transform-origin: 52px 24px;
    filter: drop-shadow(4px 10px 10px rgba(0, 0, 0, 0.45));
  }
  .arm-pivot-base {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
  .arm-pivot-cap {
    width: 14px;
    height: 14px;
    border: 1px solid #9aa0b0;
  }
  .arm-metal-rod {
    top: 24px;
    right: 22px;
    width: 4px;
    height: 110px;
  }
  .arm-cartridge-head {
    bottom: 8px;
    left: 2px;
    width: 18px;
    height: 30px;
  }
  .stylus-needle {
    width: 3px;
    height: 6px;
    margin-bottom: -3px;
  }
}

/* 音频波形律动画布 (采用 GPU 合成 drop-shadow 代替 CPU 软件模糊，节省海量 CPU 运算) */
.audio-visualizer {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 48px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(255, 117, 140, 0.45));
  will-change: transform;
}

/* 歌词卡片容器 - Grid Row 4 (2fr，与 Row 2 媒体视窗 1fr 严格维持 1:2 黄金比例) */
.lyrics-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.lyrics-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* 歌词控制工具栏 (单行紧凑排列，杜绝换行与弹窗遮挡) */
.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  padding-bottom: 2px;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}

.lyrics-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.lyrics-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* 💬 CC 多语种字幕选择器 */
.lyrics-cc-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  z-index: 100;
  height: 26px;
}

.lyrics-cc-btn {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.lyrics-cc-btn:hover,
.lyrics-cc-btn.active,
.lyrics-cc-menu-wrapper.open .lyrics-cc-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 117, 140, 0.6);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.25);
}

.lyrics-cc-btn .cc-icon {
  font-size: 12px;
}

.lyrics-cc-btn .cc-arrow-svg {
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.lyrics-cc-btn.active .cc-arrow-svg,
.lyrics-cc-menu-wrapper.open .cc-arrow-svg {
  transform: rotate(180deg);
}

.lyrics-cc-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: rgba(18, 14, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 117, 140, 0.2);
  backdrop-filter: blur(25px);
  padding: 6px;
  z-index: 99999;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: ccDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ccDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lyrics-cc-dropdown.active {
  display: flex !important;
}

.cc-dropdown-header {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.cc-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cc-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cc-option-row:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cc-option-row.active {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.25), rgba(121, 40, 202, 0.25));
  border: 1px solid rgba(255, 117, 140, 0.4);
  color: #fff;
  font-weight: 700;
}

.cc-opt-icon {
  font-size: 13px;
}

.cc-opt-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-opt-badge {
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(255, 117, 140, 0.3);
  color: #ff758c;
  border-radius: 4px;
  font-weight: 700;
}

.cc-opt-check {
  font-size: 12px;
  color: #55efc4;
  font-weight: 900;
  min-width: 14px;
  text-align: center;
}

.cc-option-off {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3px;
  padding-top: 6px;
  color: var(--text-muted);
}

.cc-option-off:hover {
  color: #ff7675;
}

/* 动效风格切换器 */
.lyrics-fx-picker {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.fx-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
  transition: var(--transition-smooth);
}

.fx-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.fx-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.4);
}

.lyrics-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* 字体大小调节 */
.lyrics-font-controls {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  padding: 2px 5px;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.font-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
  transition: var(--transition-smooth);
}

.font-ctrl-btn:hover {
  background: var(--primary-color);
  color: #000;
}

.font-size-label {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 14px;
  text-align: center;
  line-height: 1;
}

.lrc-action-btn {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box !important;
  line-height: 1;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.lrc-action-btn:hover {
  background: var(--primary-gradient);
  transform: translateY(-1px);
}

/* 🗕 最小化字幕窗口按钮 */
.lyrics-minimize-btn {
  height: 26px !important;
  width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lyrics-minimize-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 117, 140, 0.6);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.3);
}

.lyrics-minimize-btn.active {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.4);
}

/* 🗕 字幕窗口最小化状态 (画面最大化全屏展示，当前字幕叠加在视窗底部) */
.player-stage-card.lyrics-minimized {
  grid-template-rows: auto minmax(0, 1fr) auto auto 34px auto;
}

.player-stage-card.lyrics-minimized .layout-resizer.layout-resizer-v {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

.lyrics-card.is-minimized {
  padding: 3px 10px !important;
  gap: 0 !important;
  min-height: 34px !important;
  max-height: 34px !important;
  height: 34px !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
}

.lyrics-card.is-minimized .lyrics-scroller,
.lyrics-card.is-minimized .song-story-wrapper,
.lyrics-card.is-minimized .lyrics-fx-picker,
.lyrics-card.is-minimized .lyrics-font-controls,
.lyrics-card.is-minimized .lrc-action-btn,
.lyrics-card.is-minimized .lyrics-cc-menu-wrapper {
  display: none !important;
}

.lyrics-card.is-minimized .lyrics-header {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  height: 100%;
}

/* 💬 播放器画面底部字幕叠加条 (Floating Subtitle Overlay on Viewport) */
.viewport-lyrics-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92%, 580px);
  padding: 5px 14px;
  background: rgba(15, 10, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full, 24px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 117, 140, 0.3);
  z-index: 38;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: overlayLyricSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.viewport-lyrics-overlay:hover {
  background: rgba(25, 16, 40, 0.96);
  border-color: rgba(255, 117, 140, 0.6);
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 117, 140, 0.5);
}

@keyframes overlayLyricSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.viewport-overlay-icon {
  font-size: 13px;
  opacity: 0.85;
  flex-shrink: 0;
}

.viewport-lyric-text {
  font-family: var(--lyric-font-family, var(--theme-font, var(--font-serif)));
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 20px var(--primary-color, #ff758c);
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 460px;
  flex: 1;
  text-align: center;
  line-height: 1.3;
}

.viewport-lyrics-restore-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.viewport-lyrics-restore-btn:hover {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  transform: scale(1.15);
}

/* 歌词主滚动区域 (最大化自适应高度与平滑居中展示，保证至少 6 行字幕可见) */
.lyrics-scroller {
  position: relative;
  flex: 1 1 0px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--lyric-line-gap, 2px);
  padding: clamp(6px, 1.2vh, 16px) 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

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

/* 歌词文本基础样式 */
.lyric-line {
  font-family: var(--lyric-font-family, var(--theme-font, var(--font-serif)));
  font-size: var(--lyric-base-size, 14.5px);
  color: rgba(255, 255, 255, 0.62);
  transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: var(--lyric-line-padding, 2px 10px);
  border-radius: var(--radius-md);
  cursor: pointer;
  line-height: var(--lyric-line-height, 1.4);
  position: relative;
  letter-spacing: 0.4px;
}

.lyric-line:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* 上一句渐隐消失特效 */
.lyric-line.dissolve {
  animation: lyric-dissolve 0.6s ease forwards;
}

/* 1. 🖌️ 水墨晕染特效 (Ink Bloom & Diffuse) */
.lyrics-scroller.fx-ink .lyric-line.active {
  color: #ffffff;
  font-size: calc(var(--lyric-base-size, 14.5px) * 1.18);
  font-weight: 900;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px var(--primary-color), 0 0 38px rgba(254, 207, 239, 0.6);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18) 0%, rgba(255, 154, 158, 0.1) 60%, transparent 100%);
  animation: ink-wash-bloom 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  letter-spacing: 0.8px;
}

/* 2. 🌸 樱花流光呼吸特效 (Sakura Shimmer) */
.lyrics-scroller.fx-sakura .lyric-line.active {
  color: #fff;
  font-size: calc(var(--lyric-base-size, 14.5px) * 1.18);
  font-weight: 800;
  text-shadow: 0 0 18px #ff758c, 0 0 35px #ff7eb3;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 117, 140, 0.25) 50%, transparent 100%);
  animation: sakura-breath 1.8s ease-in-out infinite alternate;
  letter-spacing: 0.8px;
}

/* 3. ✨ 梦幻霓虹特效 (Dreamy Neon) */
.lyrics-scroller.fx-neon .lyric-line.active {
  color: #fff;
  font-size: calc(var(--lyric-base-size, 14.5px) * 1.2);
  font-weight: 900;
  text-shadow: 0 0 10px #00f2fe, 0 0 25px #4facfe, 0 0 40px #f355da;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.2) 50%, transparent 100%);
  animation: neon-shimmer 1.5s infinite alternate;
  letter-spacing: 1px;
}

/* 4. 🎵 纯享经典特效 (Classic Smooth) */
.lyrics-scroller.fx-classic .lyric-line.active {
  color: #ffffff;
  font-size: calc(var(--lyric-base-size, 14.5px) * 1.15);
  font-weight: 800;
  text-shadow: 0 0 14px var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
}

/* 动效关键帧动画 */
@keyframes art-breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.05) translate(-1%, -1%); }
  100% { transform: scale(1.03) translate(1%, 1%); }
}

@keyframes ink-wash-bloom {
  0% {
    filter: blur(10px) brightness(1.6);
    transform: scale(0.92);
    opacity: 0.3;
  }
  60% {
    filter: blur(2px) brightness(1.2);
    transform: scale(1.06);
    opacity: 0.95;
  }
  100% {
    filter: blur(0px) brightness(1);
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes sakura-breath {
  0% {
    transform: scale(1.02);
    text-shadow: 0 0 15px #ff758c;
  }
  100% {
    transform: scale(1.07);
    text-shadow: 0 0 25px #ff7eb3, 0 0 45px rgba(255, 255, 255, 0.8);
  }
}

@keyframes neon-shimmer {
  0% {
    transform: scale(1.03);
    text-shadow: 0 0 10px #00f2fe, 0 0 20px #f355da;
  }
  100% {
    transform: scale(1.06);
    text-shadow: 0 0 20px #00f2fe, 0 0 35px #f355da, 0 0 50px #fff;
  }
}

@keyframes lyric-dissolve {
  0% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

.no-lyrics-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0;
  color: var(--text-muted);
}

.no-lyrics-icon {
  font-size: 32px;
}

.no-lyrics-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.upload-lrc-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
  transition: var(--transition-smooth);
}

.upload-lrc-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6);
}

/* =============================================
   专业 MV 影院播放器控制系统 (Professional Video Player Overlay)
   ============================================= */
.video-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-view.active {
  display: flex;
}

.video-theater-wrapper {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  user-select: none;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.video-theater-wrapper.theater-mode {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.video-theater-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 顶部控制栏 (Top Bar) */
.video-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px 28px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 12px;
}

.video-meta-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.video-title-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.video-quality-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 117, 140, 0.35);
  border: 1px solid var(--primary-color);
  color: #fff;
  flex-shrink: 0;
}

.video-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.video-overlay-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-overlay-btn:hover {
  background: var(--primary-gradient);
  border-color: #fff;
  transform: translateY(-1px);
}

/* 中央播放/暂停响应动画图标 */
.video-center-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-center-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.video-center-state.animate {
  animation: center-icon-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes center-icon-pop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 底部专业控制栏 (Bottom Bar) */
.video-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 12px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 专属悬浮进度条 */
.video-progress-wrapper {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.video-progress-wrapper:hover {
  height: 9px;
}

.video-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  width: 0%;
}

.video-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
  width: 0%;
  box-shadow: 0 0 8px rgba(255, 117, 140, 0.8);
}

.video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}

.video-progress-wrapper:hover .video-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.video-hover-time {
  position: absolute;
  bottom: 14px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.video-progress-wrapper:hover .video-hover-time {
  opacity: 1;
}

/* 底部工具栏布局 */
.video-bottom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-bottom-left, .video-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.2s ease, color 0.2s ease;
}

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

.video-time-display {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-sep {
  opacity: 0.6;
}

/* 倍速弹出菜单 */
.video-speed-wrapper {
  position: relative;
}

.speed-btn {
  font-size: 12px;
  font-weight: 800;
  width: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.speed-btn:hover {
  background: var(--primary-gradient);
  color: #fff;
}

.video-speed-menu {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 12, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  padding: 4px;
  gap: 2px;
  z-index: 30;
}

.video-speed-wrapper:hover .video-speed-menu,
.video-speed-menu.active {
  display: flex;
}

.speed-opt {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.speed-opt:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.speed-opt.active {
  background: var(--primary-gradient);
  color: #fff;
}

/* 视频音量滑块 */
.video-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-vol-slider-wrap {
  width: 0px;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
}

.video-volume-group:hover .video-vol-slider-wrap {
  width: 60px;
}

.video-vol-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* 分享成功 Toast 提示 */
.video-toast-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-toast-pill.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 鼠标闲置自动隐退模式 (Auto-Hide Controls) */
.video-theater-wrapper.user-inactive {
  cursor: none;
}

.video-theater-wrapper.user-inactive .video-top-overlay,
.video-theater-wrapper.user-inactive .video-bottom-overlay {
  opacity: 0;
  pointer-events: none;
}

/* 歌曲元信息栏 (宽度安全自适应) */
.current-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  border-bottom: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.title-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.current-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.original-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #3e2700;
}

.remix-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.category-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
}

.current-artist {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 互动按键组 (点赞、留言、切MV) */
.track-interactions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.interact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interact-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 117, 140, 0.4);
}

.interact-btn:active {
  transform: translateY(0) scale(0.96);
}

.interact-btn:disabled,
.interact-btn.disabled,
.switch-media-btn:disabled,
.switch-media-btn.disabled {
  opacity: 0.32 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.85);
  transform: none !important;
  box-shadow: none !important;
}

.btn-heart, .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.like-btn.liked {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
}

.like-btn.liked .btn-heart {
  animation: heart-pop 0.4s ease;
}

.share-btn {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.32);
}

.share-btn:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.share-btn.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.switch-media-btn {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.2), rgba(255, 126, 179, 0.3));
  border-color: rgba(255, 117, 140, 0.4);
}

.switch-media-btn:hover {
  background: var(--primary-gradient);
  border-color: #ffffff;
}

/* 全局轻量浮动提示 (Toast) */
.global-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-28px) scale(0.95);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.global-toast .toast-icon {
  font-size: 15px;
  line-height: 1;
}

/* 播放进度条与控制面板 (紧凑舒适防误触) */
.player-controls-container {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vh, 8px);
  padding: 2px 0 0 0;
  flex-shrink: 0;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.time-label {
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 38px;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-track:hover {
  height: 8px;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  width: 0%;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  width: 0%;
  box-shadow: 0 0 10px rgba(255, 117, 140, 0.7);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-track:hover .progress-handle {
  opacity: 1;
}

/* =============================================
   控制按钮工具栏 (高精专业矢量按钮美化系统)
   ============================================= */
.controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 22px);
  margin-top: 2px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: clamp(38px, 2.4vw, 44px);
  height: clamp(38px, 2.4vw, 44px);
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.45);
}

.ctrl-btn:active {
  transform: translateY(0) scale(0.96);
}

.ctrl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.svg-icon {
  display: block;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease, fill 0.2s ease;
}

.ctrl-btn:hover .svg-icon {
  transform: scale(1.1);
}

/* 核心主播放大按钮 (Radiant Halo Disc) */
.main-play-btn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #fecfef 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(255, 117, 140, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.main-play-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 34px rgba(255, 117, 140, 0.85), 0 0 20px rgba(254, 207, 239, 0.6), inset 0 1px 2px #fff;
  border-color: #ffffff;
}

.main-play-btn:active {
  transform: translateY(0) scale(0.96);
}

/* 音量控制组 */
.volume-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-wrapper {
  width: 80px;
  display: flex;
  align-items: center;
}

.volume-slider-wrapper input[type="range"] {
  width: 100%;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* 底部专属留言抽屉 */
.comments-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(20, 12, 28, 0.92);
  border-top: 1px solid var(--glass-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  transform: translateY(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

/* =============================================
   🌸 歌曲心语 · 专属留言板极致美工视觉系统
   ============================================= */
.comment-composer-box {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 2px;
  border-top: none !important;
  position: relative;
}

/* ↕️ 留言输入框顶部上下拖拽调节高度分割栏 (无边框极简药丸把手) */
.composer-resize-handle {
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  cursor: row-resize;
  position: relative;
  margin-bottom: 6px;
  user-select: none;
  touch-action: none;
  transition: all 0.2s ease;
}

.resize-handle-line {
  display: none !important; /* 彻底去除贯穿横线 */
}

.resize-handle-pill {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 2;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.composer-resize-handle:hover .resize-handle-pill,
.composer-resize-handle.is-dragging .resize-handle-pill {
  background: var(--primary-color, #ff758c);
  width: 50px;
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.6);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.form-row {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.text-input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.text-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.45);
}

.textarea-input {
  width: 100%;
  height: 80px;
  min-height: 50px;
  max-height: 360px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  resize: none !important; /* 彻底去除右下角原生小角标 */
  outline: none;
  font-family: var(--font-sans);
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.textarea-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.textarea-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.45);
}

.submit-comment-btn {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #fecfef 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 117, 140, 0.45);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 117, 140, 0.65);
  filter: brightness(1.08);
}

.submit-comment-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 留言列表项 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 2px 10px 2px;
}

.comment-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
  position: relative;
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 117, 140, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* 🌟 Cookie 站长专属高光留言卡片 */
.comment-card.is-cookie-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.12));
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
}

.comment-content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-author-avatar {
  font-size: 14px;
  line-height: 1;
}

.comment-author-avatar.cookie-avatar {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.comment-author-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.comment-author-name.cookie-name {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  font-weight: 800;
}

/* 🍪 站长专属认证标签 */
.cookie-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffd700;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  padding: 1px 6px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  line-height: 1.3;
}

.cookie-admin-badge.mini {
  font-size: 9.5px;
  padding: 0 4px;
}

/* 🎵 全站留言中的单曲标签（点击直达播放） */
.comment-song-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 1px 7px;
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.comment-song-badge:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.comment-text-body {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  word-break: break-word;
  margin: 2px 0 4px 0;
}

.comment-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 11px;
  gap: 8px;
}

.comment-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-time-stamp {
  font-size: 10.5px;
  color: var(--text-dim, #94a3b8);
}

/* 📍 访客 IP 与地区归属标签 (仅管理员可见) */
.comment-ip-tag {
  display: none !important;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.is-admin .comment-ip-tag {
  display: inline-flex !important;
}

.comment-ip-tag.mini {
  font-size: 9.5px;
  padding: 0 4px;
}

.comment-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-reply-action-btn {
  background: none;
  border: none;
  color: #c4b5fd;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.comment-reply-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.comment-reply-action-btn.mini {
  font-size: 10.5px;
  padding: 1px 4px;
  color: #a78bfa;
}

/* 🌟 B站风格二级嵌套回复列表 */
.comment-replies-list {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
  border-left: 2.5px solid rgba(236, 72, 153, 0.45);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-reply-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.comment-reply-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.comment-reply-item.is-cookie-reply {
  background: rgba(245, 158, 11, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
}

.reply-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.reply-author-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.reply-avatar {
  font-size: 12px;
  line-height: 1;
}

.reply-author-name {
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.reply-target-tag {
  font-size: 11px;
  color: var(--text-dim, #94a3b8);
}

.reply-target-tag .target-name {
  color: #f472b6;
  font-style: normal;
  font-weight: 600;
}

.reply-text-body {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  word-break: break-word;
  padding-left: 2px;
}

.reply-footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.no-comments-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  gap: 8px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px 10px;
}

.no-comments-tip span {
  font-size: 32px;
  animation: pulse-mini 2s infinite alternate;
}

.no-comments-tip p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   高清诗画意境原图大图鉴赏灯箱 (HD Artwork Lightbox)
   ============================================= */
/* =============================================
   高清诗画意境原图大图鉴赏灯箱 (HD Artwork Lightbox - 占据屏幕 80% 沉浸大视界)
   ============================================= */
.artwork-lightbox-card {
  width: 80vw;
  height: 80vh;
  max-width: 85vw;
  max-height: 85vh;
  background: rgba(14, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.artwork-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.lightbox-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-title-group h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
}

.lightbox-artist {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
}

.artwork-lightbox-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08040d;
  border-radius: var(--radius-md);
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.artwork-lightbox-body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

.artwork-lightbox-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 4px;
}

/* 主题壁纸与全局弹窗遮罩层 */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 20px !important;
}

.modal-backdrop.active {
  display: flex !important;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theme-modal-card {
  width: 100%;
  max-width: 620px;
  background: rgba(26, 16, 36, 0.95);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}

.theme-section h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-wp-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-pill-btn {
  padding: 10px 22px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 117, 140, 0.4);
}

.secondary-pill-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   🖼️ 时间轴意境画卷幻灯片 (Timeline Slideshow & Ken Burns Effect)
   ========================================================================== */
.art-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  user-select: none;
  background: #09040e;
}

/* 双层 Ping-Pong 硬件加速容器图层 (专职控制透明度淡入淡出与软滤镜过渡，常态保持极致清晰无模糊) */
.art-slide-container .poetic-art-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, filter;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: #09040e;
  filter: none;
}

.art-slide-container .poetic-art-layer.active {
  pointer-events: auto;
}

/* 🌟 底层氛围光晕背景 (填满画框，绝美毛玻璃微光扩散) */
.poetic-art-backdrop {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(36px) saturate(140%) brightness(0.55);
  transform: scale(1.18);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
}

/* 🌟 核心前景画卷与短视频：完整展示竖版/横版画卷，人物头部、衣裳与诗词 100% 完整呈现，绝不裁切！ */
.art-slide-container .poetic-art-img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.68));
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

.art-slide-container .poetic-art-video {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ----------------------------------------------------
   🎨 5 种常态艺术运镜动效 (Silky Continuous Ken Burns)
   ---------------------------------------------------- */

/* 1. 缓慢推近运镜 (Slow Zoom-In & Drift Left) */
.anim-kb-zoom-in {
  animation: kbZoomIn 24s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate !important;
}
@keyframes kbZoomIn {
  0% { transform: scale3d(1.0, 1.0, 1) translate3d(0, 0, 0); }
  50% { transform: scale3d(1.06, 1.06, 1) translate3d(-1%, -0.8%, 0); }
  100% { transform: scale3d(1.11, 1.11, 1) translate3d(-2%, -1.5%, 0); }
}

/* 2. 缓慢拉远运镜 (Slow Zoom-Out & Drift Right) */
.anim-kb-zoom-out {
  animation: kbZoomOut 24s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate !important;
}
@keyframes kbZoomOut {
  0% { transform: scale3d(1.12, 1.12, 1) translate3d(1.5%, 1%, 0); }
  50% { transform: scale3d(1.06, 1.06, 1) translate3d(0.5%, 0, 0); }
  100% { transform: scale3d(1.01, 1.01, 1) translate3d(-0.8%, -0.6%, 0); }
}

/* 3. 横轴水墨平移 (Horizontal Pan & Breath) */
.anim-kb-pan-h {
  animation: kbPanH 26s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate !important;
}
@keyframes kbPanH {
  0% { transform: scale3d(1.06, 1.06, 1) translate3d(-2%, 0, 0); }
  50% { transform: scale3d(1.03, 1.03, 1) translate3d(0, -0.5%, 0); }
  100% { transform: scale3d(1.06, 1.06, 1) translate3d(2%, 0, 0); }
}

/* 4. 诗意对角浮动画卷 (Diagonal Pan & Scale) */
.anim-kb-diagonal {
  animation: kbDiagonal 24s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate !important;
}
@keyframes kbDiagonal {
  0% { transform: scale3d(1.04, 1.04, 1) translate3d(-1.5%, 1.5%, 0); }
  50% { transform: scale3d(1.08, 1.08, 1) translate3d(0, -0.8%, 0); }
  100% { transform: scale3d(1.04, 1.04, 1) translate3d(1.5%, -1.5%, 0); }
}

/* 5. 水墨律动呼吸与光感流淌 (Ink Wash Breathing & Glow) */
.anim-ink-breathe {
  animation: kbInkBreathe 20s ease-in-out infinite alternate !important;
}
@keyframes kbInkBreathe {
  0% { transform: scale3d(1.01, 1.01, 1); }
  50% { transform: scale3d(1.06, 1.06, 1) translate3d(0.5%, -0.5%, 0); }
  100% { transform: scale3d(1.02, 1.02, 1) translate3d(-0.5%, 0.5%, 0); }
}

/* 兼容旧类名 */
.art-slide-container .poetic-art-img.ken-burns,
.art-slide-container .poetic-art-layer.ken-burns {
  animation: kbZoomIn 24s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate !important;
}

/* ----------------------------------------------------
   🌊 5 种外层图层高级光影切换过渡特效 (Layer Transitions - 仅在切片过渡期间产生柔和晕染，常态保持极致清晰)
   ---------------------------------------------------- */
.layer-trans-ink {
  filter: brightness(1.08) contrast(1.04);
}
.layer-trans-depth {
  filter: blur(5px) brightness(1.05);
}
.layer-trans-aurora {
  filter: brightness(1.1) saturate(1.12);
}
.layer-trans-classic {
  filter: contrast(1.04) brightness(1.02);
}
.layer-trans-fade {
  filter: blur(3px);
}

/* ----------------------------------------------------
   🌌 水墨微晕叠加层 & 幻灯片指示器/翻页控件
   ---------------------------------------------------- */
.art-ink-bloom-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at center, transparent 65%, rgba(10, 6, 18, 0.4) 100%);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.slideshow-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* 底部多画卷分页导览指示器 (小圆点微光导览) — 在 slide-bottom-bar 中作为 flex 子项 */
.slideshow-pagination {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 6px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
  max-height: 48px;
}

.slide-page-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-page-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.4);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.slide-page-dot.active {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 8px #00f2fe, 0 0 14px rgba(0, 242, 254, 0.9), 0 0 20px rgba(79, 172, 254, 0.7);
}

/* 左右画卷翻页微光箭头 */
.slide-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
  user-select: none;
}

.art-slide-container:hover .slide-nav-arrow {
  opacity: 0.85;
}

.slide-nav-arrow:hover {
  opacity: 1 !important;
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 14px rgba(255, 117, 140, 0.6);
}

.slide-nav-arrow.prev {
  left: 10px;
}

.slide-nav-arrow.next {
  right: 10px;
}

/* ==========================================================================
   📖 歌词 vs 背景心语切换器与故事视图 (Lyrics vs Story Mode)
   ========================================================================== */
.lyrics-view-tabs {
  height: 26px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lyrics-tab-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lyrics-tab-btn.active {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.4);
}

.lyrics-tab-btn .tab-icon {
  font-size: 13px;
}

.song-story-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px 24px;
  scroll-behavior: smooth;
}

.song-story-wrapper::-webkit-scrollbar {
  width: 5px;
}
.song-story-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.story-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.8);
  gap: 12px;
}

.story-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
  font-size: calc(var(--lyric-base-size, 16px) * 0.95);
  max-width: 720px;
  margin: 0 auto;
}

.story-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 4px;
}

.story-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 2px;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.3) 0%, rgba(255, 126, 179, 0.2) 100%);
  border: 1px solid rgba(255, 154, 158, 0.4);
  border-radius: 12px;
  color: #ffd6df;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.15);
}

.section-tag-text {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.story-para {
  margin: 0;
  text-align: justify;
  text-indent: 2em;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", serif;
}

.story-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.stamp-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 4px rgba(239, 68, 68, 0.2), 0 2px 6px rgba(239, 68, 68, 0.25);
}

.sig-details {
  text-align: right;
}

.sig-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.sig-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   ✏️ 管理员专属心语操作条与在线编辑器 (Story Admin Toolbar & Editor)
   ========================================================================== */
.story-admin-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto 14px auto;
  padding: 8px 14px;
  background: rgba(255, 117, 140, 0.08);
  border: 1px dashed rgba(255, 117, 140, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.is-admin .story-admin-toolbar {
  display: flex !important;
}

.story-admin-tag {
  font-size: 11.5px;
  color: #ff9a9e;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.story-quick-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(255, 117, 140, 0.35);
}

.story-quick-edit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(255, 117, 140, 0.5);
}

.story-editor-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 4px 0 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.editor-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffd6df;
  letter-spacing: 0.5px;
}

.editor-sub-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-maximize-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffd6df;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.story-maximize-btn:hover {
  background: rgba(255, 117, 140, 0.2);
  border-color: rgba(255, 117, 140, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.story-editor-textarea {
  width: 100%;
  flex: 1;
  min-height: 380px;
  height: 100%;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14.5px;
  line-height: 1.85;
  font-family: "Noto Serif SC", "PingFang SC", "Songti SC", monospace, sans-serif;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.story-editor-textarea:focus {
  border-color: var(--primary-color, #ff758c);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 0 3.5px rgba(255, 117, 140, 0.28);
}

.story-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.story-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.story-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.story-btn.cancel-btn {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-btn.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.story-btn.save-btn {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 117, 140, 0.35);
}

.story-btn.save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 117, 140, 0.5);
}

/* 🌟 全屏/最大化编辑模式 (Maximized Modal) */
.story-editor-box.maximized {
  position: fixed !important;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: calc(100vw - 48px) !important;
  height: calc(100vh - 48px) !important;
  max-width: none !important;
  z-index: 10000 !important;
  background: rgba(16, 12, 24, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1.5px solid rgba(255, 117, 140, 0.45) !important;
  border-radius: 18px !important;
  padding: 20px 24px 18px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 117, 140, 0.3) !important;
  margin: 0 !important;
}

.story-editor-box.maximized .editor-title {
  font-size: 16px;
}

.story-editor-box.maximized .story-editor-textarea {
  font-size: 16px;
  line-height: 2;
  min-height: 0;
  border-radius: 14px;
  padding: 20px 24px;
}

.story-editor-box.maximized .story-btn {
  padding: 10px 24px;
  font-size: 14px;
}

.view-hidden {
  display: none !important;
}

/* =============================================
   🔖 内容页面左侧精致书签挂件 (向左侧外沿延伸，不遮挡主体内容)
   ============================================= */
.site-stats-bookmark {
  position: fixed;
  left: auto;
  right: calc(50vw + var(--app-half-width, 770px) - 8px);
  top: 135px;
  z-index: 10 !important;
  display: flex;
  flex-direction: column;
  background: rgba(22, 16, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 182, 193, 0.28);
  border-right: 3.5px solid var(--primary-color, #ff758c);
  border-radius: 14px 0 0 14px;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 117, 140, 0.18);
  padding: 10px 10px;
  width: 116px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.site-stats-bookmark:hover {
  transform: translateX(-4px);
  box-shadow: -10px 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 117, 140, 0.35);
  border-color: rgba(255, 182, 193, 0.5);
}

.bookmark-ribbon-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.ribbon-tag-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.bookmark-ribbon-tag .bookmark-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.bookmark-ribbon-tag .bookmark-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffd6df;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bookmark-min-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bookmark-min-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.bookmark-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

/* 最小化 / 折叠状态样式 (向左折叠为精致窄标签) */
.site-stats-bookmark.collapsed {
  width: 34px;
  padding: 10px 4px;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
}

.site-stats-bookmark.collapsed:hover {
  background: rgba(35, 22, 50, 0.95);
  transform: translateX(-3px);
}

.site-stats-bookmark.collapsed .bookmark-ribbon-tag {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  flex-direction: column;
  gap: 8px;
}

.site-stats-bookmark.collapsed .bookmark-title {
  display: none;
}

.site-stats-bookmark.collapsed .bookmark-items-list {
  display: none;
}

.site-stats-bookmark.collapsed .bookmark-min-btn {
  color: var(--primary-color, #ff758c);
}

.site-stats-bookmark .stat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

body.is-admin .site-stats-bookmark .stat-item.admin-only {
  display: flex !important;
}

.site-stats-bookmark .stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-stats-bookmark .stat-icon {
  font-size: 12px;
  opacity: 0.9;
  flex-shrink: 0;
}

.site-stats-bookmark .stat-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-stats-bookmark .stat-label {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

.site-stats-bookmark .stat-value {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
}

.site-stats-bookmark .stat-online-item .stat-online-value {
  color: #55efc4;
  text-shadow: 0 0 8px rgba(85, 239, 196, 0.4);
}

/* 在线呼吸绿点 */
.online-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00e676;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 8px #00e676;
  animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

/* 单曲播放次数胶囊徽章 */
.track-plays-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.track-card:hover .track-plays-badge {
  background: rgba(255, 117, 140, 0.18);
  border-color: rgba(255, 117, 140, 0.35);
  color: #ffffff;
}

.track-plays-badge .play-icon {
  font-size: 8px;
  color: var(--primary-color, #ff758c);
}

/* 手机/平板移动端严格隐藏，绝不遮挡移动端浏览 */
@media (max-width: 1024px) {
  .site-stats-bookmark {
    display: none !important;
  }
}

/* =============================================
   💻 1080p 及以下中低分辨率视口 site-stats-bookmark 挂件等比缩小
   ============================================= */
@media (max-width: 1920px), (max-height: 960px) {
  .site-stats-bookmark {
    width: 96px;
    padding: 7px 8px;
    top: 115px;
    border-radius: 12px 0 0 12px;
  }

  .bookmark-ribbon-tag {
    padding-bottom: 4px;
    margin-bottom: 6px;
  }

  .bookmark-ribbon-tag .bookmark-icon {
    font-size: 11px;
  }

  .bookmark-ribbon-tag .bookmark-title {
    font-size: 9.5px;
  }

  .bookmark-min-btn {
    font-size: 9px;
    padding: 1px 3px;
  }

  .site-stats-bookmark .stat-item {
    gap: 5px;
    padding: 2px 3px;
  }

  .site-stats-bookmark .stat-icon {
    font-size: 10.5px;
  }

  .site-stats-bookmark .stat-label {
    font-size: 8.5px;
  }

  .site-stats-bookmark .stat-value {
    font-size: 10.5px;
  }

  .online-pulse-dot {
    width: 6px;
    height: 6px;
  }

  .site-stats-bookmark.collapsed {
    width: 30px;
    padding: 8px 3px;
  }
}

/* =============================================
   💻 低于 1080p 分辨率及小高度视口整体紧凑缩小优化 (Sub-1080p & Compact Viewport)
   ============================================= */
@media (max-width: 1600px), (max-height: 860px) {
  .site-stats-bookmark {
    width: 88px;
    padding: 5px 6px;
    top: 100px;
    border-radius: 10px 0 0 10px;
  }

  .bookmark-ribbon-tag {
    padding-bottom: 3px;
    margin-bottom: 4px;
  }

  .bookmark-ribbon-tag .bookmark-icon {
    font-size: 10px;
  }

  .bookmark-ribbon-tag .bookmark-title {
    font-size: 8.5px;
  }

  .bookmark-min-btn {
    font-size: 8px;
    padding: 1px 2px;
  }

  .site-stats-bookmark .stat-item {
    gap: 4px;
    padding: 1.5px 2px;
  }

  .site-stats-bookmark .stat-icon {
    font-size: 9.5px;
  }

  .site-stats-bookmark .stat-label {
    font-size: 7.5px;
  }

  .site-stats-bookmark .stat-value {
    font-size: 9.5px;
  }

  .online-pulse-dot {
    width: 5px;
    height: 5px;
  }

  .site-stats-bookmark.collapsed {
    width: 26px;
    padding: 6px 2px;
  }

  .player-stage-card {
    padding: clamp(4px, 0.8vh, 8px) clamp(6px, 1vw, 10px);
    gap: clamp(2px, 0.4vh, 4px);
  }

  .player-media-top-bar {
    gap: 4px;
  }

  .style-switch-btn {
    padding: 2px 7px;
    font-size: 11px;
    gap: 3px;
  }

  .style-switch-btn .switch-icon {
    font-size: 11.5px;
  }

  .art-action-pill {
    padding: 2px 7px;
    font-size: 11px;
    gap: 3px;
  }

  .art-action-pill .pill-icon {
    font-size: 11.5px;
  }

  .current-track-meta {
    padding: 1px 0;
    gap: 6px;
  }

  .current-title {
    font-size: 15px;
  }

  .original-badge,
  .remix-badge,
  .category-badge {
    font-size: 9.5px;
    padding: 1px 6px;
  }

  .interact-btn {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .interact-btn .svg-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .lyrics-card {
    padding: 4px 8px;
    gap: 2px;
  }

  .lyrics-view-tabs {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 1.5px;
  }

  .lyrics-tab-btn {
    padding: 0 8px;
    font-size: 11px;
  }

  .lyrics-cc-menu-wrapper,
  .lyrics-cc-btn {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  .lyrics-cc-btn {
    padding: 0 7px;
    font-size: 10.5px;
  }

  .lyrics-fx-picker {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 1px 3px;
    gap: 2px;
  }

  .fx-btn {
    padding: 0 6px;
    font-size: 10px;
  }

  .lyrics-font-controls {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 1px 3px;
  }

  .font-ctrl-btn {
    width: 16px;
    height: 16px;
    font-size: 8.5px;
  }

  .font-size-label {
    font-size: 9.5px;
  }

  .lrc-action-btn {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 6px;
    font-size: 10px;
  }

  .lyrics-minimize-btn {
    height: 24px !important;
    width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
  }

  .lyrics-scroller {
    padding: 4px 6px;
    gap: 2px;
  }

  .lyric-line {
    padding: 1.5px 8px;
    font-size: var(--lyric-base-size, 13.5px);
    line-height: 1.35;
  }

  .lyrics-scroller.fx-ink .lyric-line.active,
  .lyrics-scroller.fx-sakura .lyric-line.active,
  .lyrics-scroller.fx-neon .lyric-line.active,
  .lyrics-scroller.fx-classic .lyric-line.active {
    font-size: calc(var(--lyric-base-size, 13.5px) * 1.15);
  }

  .player-controls-container {
    gap: 2px;
    padding: 0;
  }

  .progress-bar-wrapper {
    gap: 6px;
    padding: 1px 0;
  }

  .time-label {
    font-size: 10px;
    width: 32px;
  }

  .controls-toolbar {
    gap: clamp(6px, 1.2vw, 12px);
    margin-top: 0;
  }

  .ctrl-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .ctrl-btn .svg-icon {
    width: 14px;
    height: 14px;
  }

  .ctrl-btn.ab-repeat-btn .btn-text {
    font-size: 10px;
  }

  .main-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .main-play-btn .svg-icon {
    width: 18px;
    height: 18px;
  }

  .volume-control-group {
    gap: 4px;
  }

  .volume-slider-wrapper {
    width: 50px;
  }
}

/* =============================================
   📱 移动端歌词与心语栏目深度视觉美化
   ============================================= */
@media (max-width: 768px) {
  .lyrics-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
  }

  .lyrics-scroller {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 20px 4px !important;
    gap: 4px !important;
    scrollbar-width: none !important;
  }


  .lyrics-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    width: 100%;
    border-bottom: none !important;
  }

  .lyrics-header-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .lyrics-view-tabs {
    display: inline-flex;
    flex-shrink: 0;
    padding: 2px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
  }

  .lyrics-tab-btn {
    padding: 4px 10px;
    font-size: 11.5px;
    border-radius: 16px;
  }

  .lyrics-tab-btn .tab-icon {
    font-size: 12px;
  }

  .lyrics-header-right {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    gap: 6px;
  }

  /* 手机端保留并精致呈现歌词字体大小设置 */
  .lyrics-font-controls {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 18px;
    padding: 2px 5px;
  }

  .font-ctrl-btn {
    width: 22px;
    height: 22px;
    font-size: 10px;
    font-weight: 800;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .font-size-label {
    font-size: 10.5px;
    min-width: 14px;
    text-align: center;
  }

  .lyrics-fx-picker,
  #upload-lrc-btn,
  #open-lyrics-studio-btn,
  .studio-pill-btn {
    display: none !important;
  }

  .lyrics-line {
    padding: 6px 10px;
    font-size: 15px;
    line-height: 1.5;
  }

  .story-article {
    padding: 12px 10px;
    font-size: 13.5px;
    line-height: 1.8;
  }
}

/* ==============================================================================
   🎬 诗画画卷独立剧场 & 4K全比例视频录制工坊 (Cinema Studio Modal Styles)
   ============================================================================== */
.btn-cinema-studio {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.35), rgba(120, 75, 160, 0.45)) !important;
  border: 1px solid rgba(255, 200, 220, 0.45) !important;
  box-shadow: 0 4px 14px rgba(255, 117, 140, 0.25) !important;
}

.btn-cinema-studio:hover {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.65), rgba(120, 75, 160, 0.75)) !important;
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.45) !important;
  transform: translateY(-2px) scale(1.04);
}

.cinema-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999999 !important;
  background: rgba(3, 2, 8, 0.98) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  user-select: none !important;
}

#cinema-studio-modal.cinema-modal-backdrop.active,
.cinema-modal-backdrop.active {
  display: flex !important;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 诗画剧场开启时，强制隐藏侧边音乐档案挂件与所有浮动挂件，杜绝顶层遮挡 */
body.cinema-studio-active .site-stats-bookmark,
body.cinema-studio-active #site-stats-bookmark,
body.cinema-studio-active .floating-toolkit-container,
body.cinema-studio-active #floating-toolkit-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cinema-studio-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部悬浮控制栏 */
.cinema-top-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(to bottom, rgba(5, 2, 12, 0.85) 0%, rgba(5, 2, 12, 0.4) 75%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cinema-toolbar-hidden {
  opacity: 0 !important;
  transform: translateY(-10px);
  pointer-events: none !important;
}

.cinema-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cinema-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.cinema-brand-badge .cinema-icon {
  font-size: 16px;
}

.cinema-brand-badge .cinema-title {
  font-family: var(--theme-font, var(--font-serif));
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.cinema-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinema-control-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  white-space: nowrap;
}

.cinema-select {
  background: rgba(20, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 16px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cinema-select:hover,
.cinema-select:focus {
  border-color: var(--primary-color, #ff758c);
  background: rgba(30, 22, 45, 0.95);
  box-shadow: 0 0 10px rgba(255, 117, 140, 0.3);
}

.cinema-scale-slider-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cinema-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cinema-slider:hover {
  background: rgba(255, 255, 255, 0.35);
}

.cinema-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color, #ff758c);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 117, 140, 0.6);
  transition: transform 0.15s ease;
}

.cinema-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.cinema-scale-val-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ffd6df;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 36px;
  text-align: center;
}

.cinema-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-admin-record-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cinema-record-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.35);
}

.cinema-record-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.55);
}

.cinema-record-btn.recording {
  background: linear-gradient(135deg, #2ed573, #1e90ff);
  animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(46, 213, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

.cinema-record-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  border-radius: 14px;
}

.cinema-tool-btn,
.cinema-close-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cinema-tool-btn:hover,
.cinema-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.cinema-close-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
}

/* 中央画卷视窗 */
.cinema-viewport-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 60px 20px;
  box-sizing: border-box;
}

.cinema-canvas-scaler {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.25s ease-out;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.cinema-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 底部微悬浮控制栏 */
.cinema-bottom-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 20px;
  background: linear-gradient(to top, rgba(5, 2, 12, 0.9) 0%, rgba(5, 2, 12, 0.4) 80%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cinema-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  max-width: 280px;
}

.cinema-song-title {
  margin: 0;
  font-size: 15px;
  font-family: var(--theme-font, var(--font-serif));
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-song-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-progress-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-time-label {
  font-size: 12px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.7);
  min-width: 40px;
}

.cinema-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.cinema-progress-track:hover {
  height: 8px;
}

.cinema-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 117, 140, 0.6);
}

.cinema-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.cinema-playback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cinema-play-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cinema-play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.cinema-play-btn.main {
  width: 44px;
  height: 44px;
  font-size: 18px;
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  border: none;
  box-shadow: 0 4px 14px rgba(255, 117, 140, 0.4);
}

.cinema-play-btn.main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 117, 140, 0.6);
}

.custom-mask-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 12px;
  height: 28px;
  width: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.custom-mask-btn:hover {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  border-color: transparent;
}

/* ==========================================================================
   ⚡ 极速离线合成 MP4 进度浮层与微缩窗 (Cinema Offline Synthesizer Overlay)
   ========================================================================== */
.cinema-synth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 2, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.2s ease-out;
}

.cinema-synth-card {
  width: 90%;
  max-width: 520px;
  background: rgba(25, 18, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 117, 140, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}

.synth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.synth-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.synth-icon {
  font-size: 20px;
  animation: pulse-recording 1.2s infinite;
}

.synth-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.synth-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(46, 213, 115, 0.2);
  border: 1px solid rgba(46, 213, 115, 0.4);
  color: #2ed573;
}

.synth-preview-wrap {
  width: 100%;
  height: 180px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.synth-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.synth-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.synth-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff758c, #ff7eb3, #a29bfe, #00cec9);
  background-size: 200% 100%;
  animation: shimmer-progress 2s linear infinite;
  border-radius: 6px;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.6);
}

@keyframes shimmer-progress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.synth-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.synth-stat-item.main-percent {
  font-size: 16px;
  font-weight: 800;
  color: #ff758c;
  grid-column: span 2;
}

.synth-stat-item.eta {
  color: #ffd6df;
  font-weight: 600;
}

.synth-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.synth-cancel-btn {
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ff6b81;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.synth-cancel-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: #ff4757;
}

/* ==========================================================================
   ⚙️ 全局默认设置面板 (PC网页版) (Settings Modal Styles)
   ========================================================================== */
.settings-modal-card {
  width: 92vw;
  max-width: 960px;
  min-width: 340px;
  height: 86vh;
  max-height: 92vh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background: rgba(22, 14, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 117, 140, 0.15);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  animation: fadeIn 0.25s ease-out;
  resize: both;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  font-size: 24px;
  line-height: 1;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted, #aaa);
  margin: 3px 0 0 0;
  line-height: 1.4;
}

/* 顶部分页导航 */
.settings-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-tabs-bar::-webkit-scrollbar {
  display: none;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #ddd);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.settings-tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.settings-tab-btn.active {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 117, 140, 0.35);
}

/* 主体分页与分组 */
.settings-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 4px 12px 0;
  margin-right: -4px;
}

.settings-modal-body::-webkit-scrollbar {
  width: 6px;
}
.settings-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.settings-tab-pane {
  display: none !important;
  flex-direction: column;
  gap: 16px;
}

.settings-tab-pane.active {
  display: flex !important;
  animation: fadeIn 0.22s ease-out;
}

.settings-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.settings-group:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.settings-group-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.settings-group-header .section-desc {
  font-size: 12px;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.4;
}

/* 网格与选项胶囊按钮 */
.setting-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.setting-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.setting-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-secondary, #ccc);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.setting-pill-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.setting-pill-btn.active {
  background: rgba(255, 117, 140, 0.22);
  border-color: #ff758c;
  color: #ffb1c0;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 117, 140, 0.25);
}

.setting-pill-btn .badge-rec {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 117, 140, 0.35);
  color: #fff;
  font-weight: 700;
  margin-left: 2px;
}

/* 开关行与滑块行 */
.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.setting-toggle-label {
  font-size: 13px;
  color: #eee;
  cursor: pointer;
}

.setting-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.setting-slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  accent-color: #ff758c;
  cursor: pointer;
}

.setting-slider-val {
  font-size: 13px;
  font-weight: 700;
  color: #ff9cb0;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 下拉原生选择 */
.setting-select-wrap {
  margin-top: 10px;
}

.setting-native-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.setting-native-select:focus {
  border-color: #ff758c;
}

.setting-native-select option {
  background: #1f142c;
  color: #fff;
}

/* 重置按钮 */
.settings-reset-group {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}

.setting-danger-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setting-danger-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 底部操作条 */
.settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  margin-top: 6px;
}

.settings-footer-tip {
  font-size: 12px;
  color: var(--text-muted, #888);
}

