/* =============================================
   CookieTune 核心基础样式与全局布局 (main.css)
   ============================================= */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif SC', 'Cinzel', STSong, 'Songti SC', serif;
  
  /* 基础玻璃态与阴影 */
  --glass-bg: rgba(22, 16, 28, 0.58);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.35);
  --glass-blur: blur(16px);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.55);
  
  /* 默认主题色 */
  --primary-color: #ff758c;
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --accent-color: #ffd1ff;
  --btn-bg: rgba(255, 117, 140, 0.25);
  --btn-border: rgba(255, 117, 140, 0.5);
  --bg-overlay: rgba(14, 10, 20, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #0d0914;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* =============================================
   权限控制：管理员专属元素（默认隐藏，登录后呈现）
   ============================================= */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

body.is-admin div.admin-only:not(.settings-tab-pane):not(.story-editor-box),
body.is-admin section.admin-only {
  display: block !important;
}

/* 🎯 设置面板与各种 Tab 标签页专属权限规则（防止非 active 时穿模叠加） */
body.is-admin .settings-tab-btn.admin-only {
  display: inline-flex !important;
}

.settings-tab-pane.admin-only {
  display: none !important;
}

body.is-admin .settings-tab-pane.admin-only {
  display: none !important;
}

body.is-admin .settings-tab-pane.admin-only.active {
  display: flex !important;
}

/* 背景层与动态全屏壁纸 */
.bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(0px) brightness(0.95);
  transition: background-image 0.4s ease-in-out, filter 0.3s ease;
  z-index: 1;
}

.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 117, 140, 0.12), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.12), transparent 50%),
              var(--bg-overlay);
  backdrop-filter: blur(2px);
  transition: background 0.4s ease;
  z-index: 2;
}

/* 玻璃拟态卡片通用样式 (彻底修复直角溢出/直角半透明毛边 Bug) */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background-clip: padding-box;
  transition: var(--transition-smooth);
}

.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  width: min(85vw, 1540px);
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(6px, 1vh, 12px) clamp(10px, 1.2vw, 18px);
  gap: clamp(4px, 0.8vh, 8px);
  box-sizing: border-box;
  overflow: hidden;
}

/* 顶部 Header */
.app-header {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: clamp(6px, 0.9vh, 10px) clamp(12px, 1.2vw, 18px);
  background: rgba(18, 12, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: visible;
  background-clip: padding-box;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 🌟 侧边灵动浮动工坊与管理员R2规范入口 (加大号可爱微光浮动抽屉挂件) */
.floating-toolkit-container {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-toolkit-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: var(--text-color, #f1f5f9) !important;
  background: rgba(26, 16, 44, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(236, 72, 153, 0.55);
  border-right: none;
  border-radius: 32px 0 0 32px;
  padding: 10px 18px 10px 14px;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(139, 92, 246, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  /* animation: cute-side-bob 4s ease-in-out infinite; 已移除——无限晃动动画持续占用 GPU 合成资源 */
  cursor: pointer;
  white-space: nowrap;
}

.floating-toolkit-btn:link,
.floating-toolkit-btn:visited {
  color: #f1f5f9 !important;
  text-decoration: none !important;
}

/* @keyframes cute-side-bob 已移除 */

.floating-toolkit-btn:hover {
  background: rgba(42, 24, 68, 0.98);
  border-color: rgba(236, 72, 153, 0.85);
  transform: translateX(-14px) scale(1.05);
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 38px rgba(139, 92, 246, 0.6);
  /* animation-play-state: paused; 已随动画一并移除 */
}

/* 🏠 聚合门户首页入口差异化微光主题 (金黄流光与极光珊瑚) */
.floating-home-btn {
  background: rgba(28, 20, 16, 0.94) !important;
  border-color: rgba(255, 177, 66, 0.6) !important;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 177, 66, 0.35) !important;
  /* animation-delay: 1s; 已移除——对应动画已删除 */
}

.floating-home-btn:hover {
  background: rgba(42, 28, 20, 0.98) !important;
  border-color: rgba(255, 177, 66, 0.95) !important;
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 38px rgba(255, 177, 66, 0.6) !important;
}

.floating-home-btn .floating-icon-wrap {
  background: linear-gradient(135deg, rgba(255, 177, 66, 0.55), rgba(255, 107, 129, 0.45));
  border-color: rgba(255, 177, 66, 0.5);
  box-shadow: 0 0 12px rgba(255, 177, 66, 0.4);
  color: #ffeaa7;
}

.floating-home-btn .floating-dot.home-dot {
  background: #ffb142;
  box-shadow: 0 0 10px #ffb142;
}

.floating-home-btn .floating-title {
  color: #fffaf0;
}

/* 📀 音乐专辑独立入口差异化微光主题 (炫彩霓虹紫与幻境樱粉) */
.floating-albums-btn {
  background: rgba(28, 14, 36, 0.94) !important;
  border-color: rgba(236, 72, 153, 0.6) !important;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(236, 72, 153, 0.35) !important;
  /* animation-delay: 1.5s; 已移除——对应动画已删除 */
}

.floating-albums-btn:hover {
  background: rgba(42, 18, 54, 0.98) !important;
  border-color: rgba(244, 114, 182, 0.95) !important;
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 38px rgba(244, 114, 182, 0.65) !important;
}

.floating-albums-btn .floating-icon-wrap {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.55), rgba(168, 85, 247, 0.45));
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
  color: #fbcfe8;
}

.floating-albums-btn .floating-dot.album-dot {
  background: #f472b6;
  box-shadow: 0 0 10px #f472b6;
}

.floating-albums-btn .floating-title {
  color: #fffaf0;
}

/* 📂 管理员专属 R2 规范入口差异化微光主题 (清新青蓝与翡翠流光) */
.floating-r2-guide-btn {
  background: rgba(16, 24, 42, 0.92) !important;
  border-color: rgba(6, 182, 212, 0.55) !important;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(6, 182, 212, 0.3) !important;
  /* animation-delay: 2s; 已移除——对应动画已删除 */
}

.floating-r2-guide-btn:hover {
  background: rgba(22, 34, 58, 0.98) !important;
  border-color: rgba(6, 182, 212, 0.9) !important;
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 38px rgba(6, 182, 212, 0.6) !important;
}

.floating-r2-guide-btn .floating-icon-wrap {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(16, 185, 129, 0.45));
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.floating-r2-guide-btn .floating-dot.r2-dot {
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
}

.floating-r2-guide-btn .floating-title {
  color: #e0f2fe;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.floating-r2-guide-btn .floating-sub {
  color: #7dd3fc;
}

/* 🌌 SUNO 音乐创作全景知识库入口专属星空紫霓流光主题 */
.floating-suno-guide-btn {
  background: rgba(22, 14, 45, 0.94) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.4) !important;
  /* animation-delay: 1.5s; 已移除——对应动画已删除 */
}

.floating-suno-guide-btn:hover {
  background: rgba(35, 18, 68, 0.98) !important;
  border-color: rgba(216, 180, 254, 0.9) !important;
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 40px rgba(168, 85, 247, 0.65) !important;
}

.floating-suno-guide-btn .floating-icon-wrap {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.5));
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
  color: #f3e8ff;
}

.floating-suno-guide-btn .floating-dot.suno-dot {
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
}

.floating-suno-guide-btn .floating-title {
  color: #f3e8ff;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.floating-suno-guide-btn .floating-sub {
  color: #d8b4fe;
}

/* 📖 关于本站与帮助指南入口专属金粉流光主题 */
.floating-about-btn {
  background: rgba(36, 18, 42, 0.92) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(251, 191, 36, 0.3) !important;
  /* animation-delay: 1s; 已移除——对应动画已删除 */
}

.floating-about-btn:hover {
  background: rgba(50, 24, 60, 0.98) !important;
  border-color: rgba(251, 191, 36, 0.9) !important;
  box-shadow: -12px 18px 42px rgba(0, 0, 0, 0.65), 0 0 38px rgba(251, 191, 36, 0.6) !important;
}

.floating-about-btn .floating-icon-wrap {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(244, 114, 182, 0.45));
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.floating-about-btn .floating-dot.about-dot {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

.floating-about-btn .floating-title {
  color: #fef3c7;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.floating-about-btn .floating-sub {
  color: #fde68a;
}

.floating-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.45));
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffd700;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.floating-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a85;
  box-shadow: 0 0 10px #ff2a85;
}

.floating-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.floating-sub {
  font-size: 11px;
  color: #c4b5fd;
  font-weight: 700;
}

.mobile-enter-pill {
  display: none;
}

.logo-icon-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
  overflow: hidden;
}

.logo-emoji {
  font-size: 22px;
}

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

.logo-upload-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-brand:hover .logo-upload-hover {
  opacity: 1;
}

.brand-text .brand-title {
  font-family: 'Cinzel', var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .brand-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.35);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.7;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
}

/* 顶部操作按键区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10002;
}


.icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-smooth);
}

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

/* 国际化语言下拉菜单 */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  z-index: 10005;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 145px;
  background: rgba(20, 14, 28, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(139, 92, 246, 0.35);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 10000;
}

.lang-dropdown-wrapper.active .lang-dropdown-menu {
  display: flex;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lang-opt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

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

/* 管理员登录状态按钮 */
.admin-auth-pill {
  border-color: rgba(255, 215, 0, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

body.is-admin .admin-auth-pill {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #2b1700;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* 后台管理入口按钮 */
.admin-dashboard-pill {
  border-color: rgba(99, 202, 183, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 202, 183, 0.15), rgba(56, 189, 248, 0.15));
  color: #63cab7;
  font-weight: 700;
  transition: all 0.2s ease;
}

.admin-dashboard-pill:hover {
  background: linear-gradient(135deg, #63cab7, #38bdf8);
  color: #0d1117;
  box-shadow: 0 2px 12px rgba(99, 202, 183, 0.45);
  transform: translateY(-1px);
}

.badge {
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 分类导航栏与右侧氛围特效控制组 */
.category-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
  position: relative;
  z-index: 80;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

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

/* 动效开关按钮 (默认关闭，轻巧雅致) */
.particle-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  user-select: none;
}

.particle-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

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

.particle-fx-icon {
  font-size: 14px;
  line-height: 1;
}

.particle-state-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.particle-toggle-btn.active .particle-state-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 动效选择子菜单下拉组件 */
.particle-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.particle-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.particle-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.particle-dropdown-wrapper.active .particle-menu-btn {
  background: var(--primary-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-arrow {
  font-size: 10px;
  opacity: 0.7;
}

.particle-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(22, 14, 32, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(139, 92, 246, 0.25);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 10000;
}

.particle-dropdown-wrapper.active .particle-dropdown-menu {
  display: flex;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.particle-menu-header {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.particle-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-light, #f1f5f9);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  font-size: 13px;
  font-weight: 600;
}

.particle-opt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.particle-opt-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.35));
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #ffffff;
  font-weight: 800;
}

.fx-opt-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.fx-opt-info {
  flex: 1;
  min-width: 0;
}

.fx-opt-title {
  display: block;
  white-space: nowrap;
}

.fx-check-mark {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.particle-opt-btn.active .fx-check-mark {
  opacity: 1;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-smooth);
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cat-pill.active {
  background: var(--primary-gradient);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 117, 140, 0.4);
}

/* 主工作区：自适应双栏/三栏拖拽布局 (默认播放器 vs 曲库 2 : 1，满宽铺满对齐顶部) */
.main-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  flex: 1 1 0px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

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

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

.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, 1fr) auto minmax(0, 2fr) auto;
  padding: clamp(6px, 1vh, 14px) clamp(8px, 1.2vw, 16px);
  overflow: hidden;
  box-sizing: border-box;
  gap: clamp(3px, 0.6vh, 6px);
  position: relative;
}

/* 左右拖拽调节栏 (提供 10px 优雅板块间距，无常驻分割白线，仅悬浮或拖拽时呈现灵动手柄) */
.layout-resizer {
  flex: 0 0 10px;
  width: 10px;
  margin: 0;
  z-index: 20;
  cursor: col-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 .resizer-handle {
  position: absolute;
  width: 3px;
  height: 36px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0.15;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.layout-resizer:hover .resizer-handle,
.layout-resizer.is-dragging .resizer-handle {
  opacity: 1;
  background: var(--primary-color, #ff758c);
  height: 52px;
  transform: scaleX(1.5);
  box-shadow: 0 0 12px var(--primary-color, #ff758c);
}

/* 中间曲库面板 (自适应拉伸高度) */
.library-panel {
  flex: var(--lib-flex, 1) 1 0px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  max-width: 100%;
  padding: clamp(6px, 1vh, 14px) clamp(8px, 1.2vw, 16px);
  gap: clamp(4px, 0.8vh, 8px);
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: nowrap !important;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.lib-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.lib-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  margin: 0;
}

.lib-count {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.lib-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 6px;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.lib-sort-wrapper {
  position: relative;
  flex-shrink: 0;
}

.lib-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.lib-sort-btn:hover,
.lib-sort-wrapper.active .lib-sort-btn {
  color: #fff;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.lib-sort-btn .sort-icon {
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.lib-sort-btn .sort-order-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #c4b5fd;
  margin-left: -1px;
  margin-right: 1px;
  opacity: 0.9;
}

.lib-sort-btn .sort-arrow {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.lib-sort-wrapper.active .sort-arrow {
  transform: rotate(180deg);
}

.lib-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(139, 92, 246, 0.25);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  animation: dropdown-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lib-sort-wrapper.active .lib-sort-dropdown {
  display: flex;
}

.sort-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 2px;
}

.sort-opt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  width: 100%;
}

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

.sort-opt-btn.active {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-weight: 700;
}

.sort-order-switch-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-sizing: border-box;
  margin-top: 4px;
}

.sort-order-pill-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 12px;
  background: transparent;
  border: none;
  outline: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.sort-order-pill-btn:hover {
  color: #fff;
}

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

.sort-order-pill-btn .sort-pill-icon {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.lib-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
  height: 28px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lib-tab-btn {
  padding: 2px 10px;
  height: 22px;
  line-height: 22px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-sizing: border-box;
}

.lib-tab-btn:hover {
  color: #fff;
}

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

.clear-queue-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff6b81;
  cursor: pointer;
  margin-left: 8px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.clear-queue-pill:hover {
  background: #ff4757;
  color: #fff;
}

/* 曲目网格列表 (自适应填满右侧容器) - 隐藏原生粗糙灰白滚动条，预留右侧留白防遮挡 */
.track-list-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Edge */
  padding-right: 16px !important;
  scroll-behavior: smooth;
}

.track-list-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* =============================================
   ⚡ 创意快速翻页与滚动电梯导航枢纽 (Quick Scroller)
   专为海量曲库与播放队列打造，不遮挡列表，支持逐页快翻、拖拽滑行、一键定位当前曲目
   ============================================= */
.list-quick-scroller {
  position: absolute;
  right: 5px;
  top: 56px;
  bottom: 12px;
  width: 22px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 3px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.35;
  transform: translateX(1px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
}

/* 悬停或处于滚动/拖拽状态时展开并高亮 */
.list-quick-scroller:hover,
.list-quick-scroller.is-active,
.list-quick-scroller.is-dragging {
  opacity: 1;
  transform: translateX(0) scale(1);
  background: rgba(22, 14, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 117, 140, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 117, 140, 0.3);
  pointer-events: auto;
}

/* 导航按键 (上一页 / 定位 / 下一页) */
.scroller-nav-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  position: relative;
}

.scroller-nav-btn:hover {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.8);
}

.scroller-nav-btn:active {
  transform: scale(0.92);
}

/* 定位正在播放歌曲按键特殊光晕脉冲 */
.scroller-btn-locate {
  background: rgba(255, 117, 140, 0.15);
  border-color: rgba(255, 117, 140, 0.4);
  color: var(--primary-color, #ff758c);
  margin: 3px 0;
}

.scroller-btn-locate .scroller-locate-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid var(--primary-color, #ff758c);
  opacity: 0;
  animation: scroller-pulse 2.2s infinite;
  pointer-events: none;
}

@keyframes scroller-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 滑动电梯轨道 */
.scroller-rail {
  flex: 1;
  width: 5px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  transition: width 0.2s ease, background 0.2s ease;
}

.list-quick-scroller:hover .scroller-rail,
.scroller-rail:hover,
.scroller-rail.is-dragging {
  width: 7px;
  background: rgba(255, 255, 255, 0.2);
}

.scroller-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary-gradient, linear-gradient(180deg, #ff758c, #ff7eb3));
  border-radius: 5px;
  pointer-events: none;
  will-change: height;
}

.scroller-rail.is-dragging .scroller-track-fill {
  transition: none !important;
}

/* 进度滑动胶囊手柄 */
.scroller-thumb {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #ff758c 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 117, 140, 0.8);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  z-index: 2;
  will-change: top, transform;
  touch-action: none;
}

.scroller-thumb-dot {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(26, 16, 44, 0.7);
}

.scroller-thumb:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 3px 12px rgba(255, 117, 140, 0.95), 0 0 14px #ffffff;
}

.scroller-thumb.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 4px 16px rgba(255, 117, 140, 1), 0 0 18px #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #ff4757 100%);
  transition: none !important;
}

/* 悬浮气泡信息提示框 (左侧弹出) */
.scroller-indicator-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  transform-origin: right center;
  background: rgba(18, 10, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 117, 140, 0.6);
  border-radius: 12px;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 117, 140, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 30;
}

.scroller-indicator-tooltip.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.scroller-indicator-tooltip .tooltip-page-num {
  font-weight: 700;
  color: #fff;
}

.scroller-indicator-tooltip .tooltip-percent {
  font-size: 10px;
  color: var(--primary-color, #ff758c);
  font-weight: 600;
}

/* 🎯 定位高亮脉冲动画 (当点击定位歌曲时，正在播放卡片产生的微光涟漪) */
@keyframes track-locate-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 117, 140, 0.8), 0 4px 20px rgba(255, 117, 140, 0.5);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 117, 140, 0), 0 6px 28px rgba(255, 117, 140, 0.8);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 117, 140, 0);
    transform: scale(1);
  }
}

.track-card.locate-pulse {
  animation: track-locate-ripple 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 📂 全部歌曲-按目录排序时的一级目录头 (Sticky/Glassmorphism Directory Section Header) */
.track-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin: 14px 0 4px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3.5px solid var(--primary-color, #ff758c);
  border-radius: var(--radius-md, 12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-directory-header.first-header {
  margin-top: 2px;
}

.track-directory-header:hover {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 117, 140, 0.35);
  box-shadow: 0 6px 18px rgba(255, 117, 140, 0.2);
  transform: translateY(-1px);
}

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

.dir-header-icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dir-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  letter-spacing: 0.5px;
}

.dir-header-count {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim, rgba(255, 255, 255, 0.7));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.dir-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dir-header-path {
  font-size: 11px;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.3px;
}

.dir-header-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary, #ffffff);
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dir-header-filter-btn:hover {
  background: var(--primary-gradient, linear-gradient(135deg, #ff758c, #ff7eb3));
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.4);
}

@media (max-width: 600px) {
  .dir-header-path {
    display: none;
  }
}

.track-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-height: 48px;
  box-sizing: border-box;
}

.track-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.track-card.active {
  background: rgba(255, 117, 140, 0.25);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.track-queue-handle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: grab;
  touch-action: none;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.track-queue-handle:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.track-queue-handle:active {
  cursor: grabbing;
}

.drag-icon {
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: -1px;
  display: inline-block;
  line-height: 1;
}

.track-card.draggable {
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.track-card.dragging {
  opacity: 0.42 !important;
  background: rgba(255, 117, 140, 0.18) !important;
  border: 1.5px dashed var(--primary-color) !important;
  transform: scale(0.98) !important;
  box-shadow: 0 8px 24px rgba(255, 117, 140, 0.35) !important;
  transition: none !important;
  z-index: 99 !important;
}

.track-card.drag-displaced {
  border-color: rgba(255, 182, 193, 0.35) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.track-card.drag-target-slot {
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: 0 0 16px rgba(255, 117, 140, 0.45) !important;
  background: rgba(255, 117, 140, 0.12) !important;
}

.track-index-num,
.track-queue-num {
  display: none !important;
}

.track-queue-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  min-width: 14px;
}

.track-cover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

/* 统一序号角标：叠加在封面图片左上角 (PC & 手机统一) */
.track-index-overlay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  padding: 1px 4px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 6px;
  line-height: 1.2;
  z-index: 2;
  pointer-events: none;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-left: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.track-card.active .track-index-overlay {
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.95), rgba(121, 40, 202, 0.95));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 117, 140, 0.55);
}

/* 歌曲封面：紧凑 68px:40px (16:9) 保证曲库文字充裕舒展，杜绝截断 */
.track-card-cover {
  width: 68px;
  height: 40px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  content-visibility: auto;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, opacity 0.2s ease;
}

/* PC 端当右侧留言区块显示时：封面微调为 56px:38px */
.main-content.comments-open .track-card-cover,
body.comments-drawer-open .track-card-cover {
  width: 56px;
  height: 38px;
  aspect-ratio: 4 / 3;
}

/* 🌟 曲库无限滚动懒加载哨兵 */
.playlist-scroll-sentinel {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.5px;
  user-select: none;
}

.playlist-scroll-sentinel .loading-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.track-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
}

.track-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.track-card-artist {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* 📜 歌词/诗词传世金句引语 */
.track-card-famous-line {
  font-size: 10px;
  line-height: 1.2;
  color: #f6d365;
  background: linear-gradient(135deg, #f6d365, #fda085);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  letter-spacing: 0.2px;
  font-weight: 500;
  max-width: 100%;
}

.famous-quote-mark {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-style: normal;
  opacity: 0.85;
}

/* 🏺 歌曲年代小徽章 */
.badge-dynasty {
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(246, 211, 101, 0.15);
  border: 1px solid rgba(246, 211, 101, 0.4);
  color: #f6d365;
  letter-spacing: 0.2px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* 🏷️ 歌曲标签池 */
.track-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 1px;
}

.track-card-tag {
  font-size: 8.5px;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}

.track-card-tag-more {
  font-size: 8px;
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.track-card-badges, .track-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.track-media-badges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.media-type-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  line-height: 1.2;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-type-badge.badge-mp3 {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.media-type-badge.badge-mv {
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #f472b6;
}

.badge-mini-original {
  font-size: 8.5px;
  padding: 0 4px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #331e00;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}

.badge-mini-remix {
  font-size: 8.5px;
  padding: 0 4px;
  border-radius: 3px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

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

.track-fav-icon-btn {
  background: none;
  border: none;
  font-size: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.track-fav-icon-btn:hover {
  transform: scale(1.25);
}

.now-playing-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  animation: pulse-mini 1.5s infinite alternate;
  flex-shrink: 0;
}

.queue-remove-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.queue-remove-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  color: #fff;
  transform: scale(1.1);
}

.empty-tab-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 36px;
}

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

.empty-sub {
  font-size: 12px;
  color: var(--text-dim);
}

@keyframes pulse-mini {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; }
}

/* =============================================
   🌸 侧边独立模块：歌曲心语 · 专属留言板
   默认收起隐藏，支持点击右侧彩色便签纸抽屉式平滑展开与拖拽调节宽度
   ============================================= */
.comments-inline-section {
  display: none;
  flex-direction: column !important;
  flex: var(--comments-flex, 1) 1 0px;
  min-width: 260px;
  min-height: 0;
  max-width: 100%;
  padding: clamp(8px, 1.2vh, 16px) clamp(10px, 1.2vw, 18px);
  gap: clamp(6px, 0.8vh, 10px);
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.main-content.comments-open .comments-inline-section,
body.comments-drawer-open .comments-inline-section {
  display: flex !important;
  flex-direction: column !important;
}

.main-content.comments-open #resizer-lib-comments,
body.comments-drawer-open #resizer-lib-comments {
  display: flex !important;
}

.comments-section-header {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
  flex-shrink: 0;
}

.comments-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.comments-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.current-song-tag {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 700;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 140px;
}

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

.comments-total-badge {
  font-size: 11px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  flex-shrink: 0;
}

.comments-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.comments-close-btn:hover {
  background: rgba(255, 71, 87, 0.85);
  border-color: #ff4757;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* =============================================
   📝 侧边浮动彩色便签纸挂件 (吸附在 app-layout 右侧)
   ============================================= */
.comments-sticky-memo {
  position: fixed;
  left: calc(50vw + var(--app-half-width, 770px) - 8px);
  right: auto;
  top: 135px;
  z-index: 96;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}

.comments-sticky-memo .sticky-memo-tape {
  position: absolute;
  top: -8px;
  left: 28px;
  right: auto;
  width: 38px;
  height: 13px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transform: rotate(5deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 3;
  pointer-events: none;
}

.comments-sticky-memo .sticky-memo-pin {
  position: absolute;
  top: -12px;
  left: 12px;
  right: auto;
  font-size: 16px;
  transform: rotate(-22deg);
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.comments-sticky-memo .sticky-memo-body {
  background: linear-gradient(145deg, #fff3a8 0%, #ffc048 42%, #ff7675 100%);
  color: #2d3436;
  border-radius: 0 14px 14px 0;
  padding: 10px 16px 10px 14px;
  box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 192, 72, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-left: 3.5px solid #ff7675;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 90px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
  transform: rotate(1.5deg);
}

.comments-sticky-memo:hover .sticky-memo-body {
  transform: translateX(8px) rotate(0deg) scale(1.05);
  box-shadow: 12px 16px 36px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 118, 117, 0.5);
  background: linear-gradient(145deg, #fff7b2 0%, #ffb142 42%, #ff5252 100%);
}

.comments-sticky-memo.active .sticky-memo-body {
  background: linear-gradient(145deg, #55efc4 0%, #00cec9 45%, #0984e3 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  border-left-color: #0984e3;
  box-shadow: 8px 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(85, 239, 196, 0.45);
}

.sticky-memo-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sticky-memo-icon {
  font-size: 13px;
}

.sticky-memo-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: var(--font-serif);
}

.sticky-memo-badge {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.9;
  white-space: nowrap;
}

.sticky-memo-status {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 2px;
  padding-top: 3px;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
}

.comments-sticky-memo.active .sticky-memo-status {
  border-top-color: rgba(255, 255, 255, 0.35);
}

/* 🌟 全站留言板 vs 当前单曲 视图切换栏 */
.comments-scope-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 2px 0;
}

.comment-scope-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim, #cbd5e1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-scope-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ffffff;
}

.comment-scope-btn.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(139, 92, 246, 0.35));
  border-color: rgba(236, 72, 153, 0.65);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.25);
}

/* 留言列表独立滚动容器 */
.comments-list-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
}

/* 底部留言发送表单卡片 (无边框极简设计) */
.comment-composer-box {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 4px;
  border-top: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 💬 正在回复目标提示条 */
.comment-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 8px;
  font-size: 11.5px;
  color: #fbcfe8;
  animation: fadeIn 0.2s ease;
}

.reply-banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-banner-icon {
  font-size: 12px;
  color: #f472b6;
}

.cancel-reply-btn {
  background: none;
  border: none;
  color: #fda4af;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}

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

.nickname-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.composer-cookie-badge {
  position: absolute;
  right: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 2px 8px;
  pointer-events: none;
}

.composer-cookie-badge .badge-tag {
  color: #ff80bf;
  margin-left: 2px;
}

/* 管理员极简 ✕ 删除按钮 (仅管理员可见) */
.comment-del-btn {
  background: rgba(255, 71, 87, 0.15) !important;
  border: 1px solid rgba(255, 71, 87, 0.35) !important;
  color: #ff6b81 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-left: auto !important;
}

body.is-admin .comment-del-btn {
  display: inline-flex !important;
}

.comment-del-btn:hover {
  background: #ff4757 !important;
  border-color: #ff4757 !important;
  color: #fff !important;
  transform: scale(1.15) !important;
}

/* 全局模态弹窗遮罩层 (默认隐藏，仅在 .active 时居中展示) */
.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;
}

/* 管理员登录弹窗 */
.admin-login-card {
  width: 90vw;
  max-width: 440px;
  background: rgba(24, 14, 32, 0.96);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.admin-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.admin-tip-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.admin-input-group {
  display: flex;
  align-items: center;
  position: relative;
}

.admin-input-group .input-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  opacity: 0.7;
}

.admin-pass-field {
  width: 100%;
  padding-left: 38px !important;
  font-size: 15px !important;
}

.admin-error-msg {
  font-size: 12px;
  color: #ff6b81;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* =============================================
   📱 手机端专属左右标签页面切换组件 (Mobile View Switcher)
   ============================================= */
.mobile-page-tabs {
  display: none;
}

.art-corner-actions {
  display: none;
}

/* =============================================
   💻 1080p 及更低分辨率下所有 aside 挂件与文字精细等比缩小 (1080p & Sub-1080p Aside Scaling)
   ============================================= */
@media (max-width: 1920px), (max-height: 960px) {
  aside {
    font-size: 94%;
  }

  .floating-toolkit-container {
    gap: 7px;
    right: 0;
  }

  .floating-toolkit-btn {
    padding: 6px 12px 6px 10px;
    gap: 6px;
    border-radius: 26px 0 0 26px;
  }

  .floating-icon-wrap {
    width: 26px;
    height: 26px;
  }

  .floating-icon-wrap svg {
    width: 12px;
    height: 12px;
  }

  .floating-title {
    font-size: 11px;
  }

  .floating-sub {
    font-size: 8.5px;
  }

  .comments-sticky-memo {
    top: 115px;
  }

  .comments-sticky-memo .sticky-memo-tape {
    width: 28px;
    height: 10px;
    top: -6px;
    left: 20px;
  }

  .comments-sticky-memo .sticky-memo-pin {
    font-size: 13px;
    top: -9px;
    left: 8px;
  }

  .comments-sticky-memo .sticky-memo-body {
    padding: 7px 12px 7px 10px;
    min-width: 76px;
    gap: 2px;
    border-radius: 0 11px 11px 0;
  }

  .sticky-memo-icon {
    font-size: 11px;
  }

  .sticky-memo-title {
    font-size: 10.5px;
  }

  .sticky-memo-badge {
    font-size: 9px;
  }

  .sticky-memo-status {
    font-size: 8.5px;
    padding-top: 2px;
    margin-top: 1px;
  }
}

/* =============================================
   💻 低于 1080p 分辨率及小高度视口主界面紧凑缩小优化 (Sub-1080p Desktop/Laptop Scaling)
   ============================================= */
@media (max-width: 1600px), (max-height: 860px) {
  .app-layout {
    padding: 6px 12px 0 12px;
    gap: 4px;
  }

  .app-header {
    padding: 4px 12px;
    margin-bottom: 0;
  }

  .logo-icon-wrapper {
    width: 34px;
    height: 34px;
  }

  .logo-emoji {
    font-size: 18px;
  }

  .brand-text .brand-title {
    font-size: 16px;
  }

  .brand-text .brand-subtitle {
    font-size: 9.5px;
  }

  .header-search {
    max-width: 320px;
  }

  .header-search input {
    height: 30px;
    padding: 4px 12px;
    font-size: 11.5px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-btn {
    padding: 3px 9px;
    font-size: 11px;
    height: 28px;
  }

  .category-nav {
    padding: 2px 0;
    gap: 6px;
  }

  .cat-pill {
    padding: 4px 11px;
    font-size: 11.5px;
    max-width: 120px;
  }

  .photo-wall-nav-pill button,
  .photo-nav-action-btn {
    padding: 3px 8px;
    font-size: 11px;
  }

  .particle-toggle-btn {
    padding: 3px 8px;
    font-size: 11px;
  }

  .particle-menu-btn {
    padding: 3px 6px;
  }

  .library-panel {
    padding: clamp(4px, 0.8vh, 8px) clamp(6px, 1vw, 10px);
    gap: 4px;
  }

  .library-header {
    padding-bottom: 4px;
    border-bottom: none;
    gap: 6px;
  }

  .lib-title {
    font-size: 14px;
    max-width: 110px;
  }

  .lib-sort-btn {
    padding: 3px 8px;
    font-size: 11px;
    height: 26px;
  }

  .lib-tab-btn {
    padding: 3px 8px;
    font-size: 11px;
    height: 26px;
  }

  .open-uploader-pill-btn {
    padding: 3px 8px;
    font-size: 11px;
    height: 26px;
  }

  /* 侧边悬浮工具栏更紧凑 */
  .floating-toolkit-container {
    gap: 5px;
    right: 0;
  }

  .floating-toolkit-btn {
    padding: 5px 10px 5px 8px;
    gap: 5px;
    border-radius: 22px 0 0 22px;
  }

  .floating-icon-wrap {
    width: 24px;
    height: 24px;
  }

  .floating-icon-wrap svg {
    width: 11px;
    height: 11px;
  }

  .floating-title {
    font-size: 10.5px;
  }

  .floating-sub {
    font-size: 8px;
  }

  /* 留言便签更紧凑 */
  .comments-sticky-memo {
    top: 105px;
  }

  .comments-sticky-memo .sticky-memo-tape {
    width: 24px;
    height: 9px;
    top: -5px;
    left: 16px;
  }

  .comments-sticky-memo .sticky-memo-pin {
    font-size: 11px;
    top: -8px;
    left: 6px;
  }

  .comments-sticky-memo .sticky-memo-body {
    padding: 6px 10px 6px 8px;
    min-width: 68px;
    gap: 2px;
    border-radius: 0 9px 9px 0;
  }

  .sticky-memo-icon {
    font-size: 10px;
  }

  .sticky-memo-title {
    font-size: 9.5px;
  }

  .sticky-memo-badge {
    font-size: 8px;
  }

  .sticky-memo-status {
    font-size: 8px;
  }
}

/* =============================================
   📱 移动端与全屏幕尺寸智能自适应 (Responsive Optimization)
   核心目标：
   1. 隐藏歌单按钮、后台与管理员按钮、曲库/歌单切换按钮、字幕工坊按钮
   2. 播放器界面 与 歌曲列表 左右标签页面切换 (支持点击与左右轻扫手势)
   3. 维持 1:2 纵向比例与零重叠控制栏
   ============================================= */
@media (max-width: 768px) {
  /* 1. 隐藏多余按钮与旧互动栏 */
  #playlist-toggle-btn,
  #admin-dashboard-btn,
  .admin-dashboard-pill,
  #admin-auth-btn,
  .admin-auth-pill,
  #open-lyrics-studio-btn,
  .studio-pill-btn,
  .lib-tabs,
  #theme-btn,
  #settings-btn,
  #lang-dropdown-wrapper,
  #pwa-install-btn,
  #media-mode-toggle,
  .mode-switch-pill,
  #switch-mode-btn,
  .track-interactions {
    display: none !important;
  }

  html, body {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: fixed !important;
  }

  .app-body {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
  }

  .app-layout {
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 4px 8px 0 8px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  /* 顶部 Header：固定在手机顶端 */
  .app-header {
    flex: none !important;
    padding: 4px 8px !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background: rgba(18, 12, 28, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
  }

  .header-brand .brand-title {
    font-size: 15px;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  /* 2. 📱 手机端专用：左右标签页面切换栏 (固定在顶部，紧凑精致) */
  .mobile-page-tabs {
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 2.5px !important;
    background: rgba(18, 12, 28, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    z-index: 50 !important;
  }

  .mobile-tab-slider-bg {
    display: block !important;
    position: absolute !important;
    top: 2.5px !important;
    bottom: 2.5px !important;
    left: 2.5px !important;
    width: calc(50% - 2.5px) !important;
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.95), rgba(121, 40, 202, 0.95)) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 12px rgba(255, 117, 140, 0.45) !important;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body.mobile-view-library .mobile-tab-slider-bg {
    transform: translateX(100%) !important;
  }

  .mobile-page-tab-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
    transition: color 0.25s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-page-tab-btn .tab-icon {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .mobile-page-tab-btn.active {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  /* 3. 📱 手机端 ViewPager 左右滑动容器 (占满剩余垂直空间) */
  .main-content {
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 200% !important;
    min-width: 200% !important;
    max-width: 200% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    transform: translateX(0%);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    align-items: stretch !important;
  }

  body:not(.mobile-view-library) .main-content,
  body.mobile-view-player .main-content {
    transform: translateX(0%);
  }

  body.mobile-view-library .main-content {
    transform: translateX(-50%);
  }

  /* 4. 左侧播放器卡片：采用严格 5 行 Grid 排版保证 1:2 比例与零重叠 */
  .player-stage-card {
    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    flex: 0 0 50% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 2fr) auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 4px !important;
    margin: 0 !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .player-media-viewport {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .art-frame-card {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    width: auto !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    margin: 0 auto !important;
  }

  .poetic-art-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
  }

  /* 🌟 手机端专属：画卷内部右上角的点赞与分享纯图标按钮 */
  .art-corner-actions {
    display: flex !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    gap: 6px !important;
    z-index: 20 !important;
    pointer-events: auto !important;
  }

  .art-corner-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
  }

  .art-corner-btn:active {
    transform: scale(0.92) !important;
  }

  .art-corner-btn.liked {
    color: #ff4757 !important;
    border-color: rgba(255, 71, 87, 0.6) !important;
    background: rgba(255, 71, 87, 0.25) !important;
  }

  .art-corner-btn.copied {
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    background: rgba(52, 211, 153, 0.25) !important;
  }

  /* 歌曲标题精简行 */
  .current-track-meta {
    flex: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2px 2px !important;
    margin: 0 !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .current-title {
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 5. 中间字幕/歌词组件：Grid Row 4 2fr 缩放 */
  .lyrics-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    scrollbar-width: none !important;
  }

  .lyrics-card::-webkit-scrollbar,
  .lyrics-scroller::-webkit-scrollbar,
  .song-story-wrapper::-webkit-scrollbar {
    display: none !important;
  }

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

  .song-story-wrapper {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 6. 底部播放器控制台：Grid Row 5 Auto */
  .player-controls-container {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
  }

  /* 7. 右侧曲库列表页面：独立滚动，不影响左边播放器 */
  .library-panel {
    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    flex: 0 0 50% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 4px 60px 4px !important;
    margin: 0 !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .library-panel::-webkit-scrollbar {
    display: none !important;
  }

  .track-list-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    scrollbar-width: none !important;
  }

  .track-list-wrapper::-webkit-scrollbar,
  .track-grid::-webkit-scrollbar {
    display: none !important;
  }

  #track-quick-scroller,
  .list-quick-scroller {
    display: none !important;
  }

  .track-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .track-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    gap: 10px !important;
  }

  .track-card:hover,
  .track-card.active {
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.16), rgba(121, 40, 202, 0.16)) !important;
    border-color: rgba(255, 117, 140, 0.45) !important;
  }

  /* 手机端封面固定 96x72px (4:3) */
  .track-card-cover {
    width: 96px !important;
    height: 72px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 8px !important;
  }

  .track-cover-wrap {
    width: 96px !important;
    height: 72px !important;
    position: relative !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  /* 隐藏左侧单独占位的序号与拖拽把手序号 */
  .track-index-num,
  .track-queue-handle {
    display: none !important;
  }

  /* 手机端：序号叠加在图片 img 标签左上角 */
  .track-index-overlay {
    display: inline-flex !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
    padding: 2px 5px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 8px !important;
    line-height: 1.2 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    border-left: none !important;
  }

  .track-card.active .track-index-overlay {
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.92), rgba(121, 40, 202, 0.92)) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 6px rgba(255, 117, 140, 0.45) !important;
  }

  .library-header {
    border: none !important;
    background: transparent !important;
    padding: 4px 2px 6px 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* 8. 浪漫氛围动效与所有特效选择器全隐藏 */
  .category-nav-actions,
  #particle-toggle-btn,
  #particle-dropdown-wrapper,
  .visual-style-switch-bar,
  .art-floating-actions,
  #view-artwork-hd-btn,
  .lyrics-fx-picker,
  .audio-visualizer {
    display: none !important;
  }

  /* 移动端：slide-bottom-bar 简化为仅显示分页点，无操作按钮 */
  .slide-bottom-bar {
    justify-content: center;
    padding: 6px 8px;
  }

  /* 9. 分类导航栏优化：在手机端仅在「曲库列表」顶部显示并固定吸顶，播放器页面自动隐藏释放空间 */
  body:not(.mobile-view-library) .category-nav,
  body.mobile-view-player .category-nav {
    display: none !important;
  }

  body.mobile-view-library .category-nav {
    display: flex !important;
    flex: none !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 45 !important;
    width: 100% !important;
    margin: 0 0 4px 0 !important;
    padding: 3px 4px !important;
    background: rgba(18, 12, 28, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  .category-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
    padding: 1px 2px !important;
  }

  .category-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .cat-pill {
    padding: 5px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 16px !important;
  }



  /* 10. 歌曲留言板与互动区完全隐藏 */
  .comments-inline-section,
  #comments-inline-section,
  #comments-toggle-btn,
  .comment-composer-box,
  #comment-form {
    display: none !important;
  }

  /* 11. 侧边悬浮挂件、便签与书签挂件完全隐藏 */
  .floating-toolkit-container,
  #floating-toolkit-container,
  .site-stats-bookmark,
  #site-stats-bookmark,
  .comments-sticky-memo,
  #comments-sticky-memo,
  .layout-resizer {
    display: none !important;
  }

  /* 12. 播放器内的高级音效、A-B循环与传歌入口隐藏 */
  #audio-fx-btn,
  #ab-repeat-btn,
  #upload-lrc-btn,
  #upload-lrc-trigger-now,
  .open-uploader-pill-btn,
  #open-uploader-btn {
    display: none !important;
  }

  /* 13. 歌曲信息与交互区：保留点赞、分享与MV切换 */
  .current-track-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .track-interactions {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .interact-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* 14. 底部播放控制台：优雅居中对齐 */
  .controls-toolbar {
    gap: 16px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }

  .ctrl-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
  }

  .main-play-btn {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(255, 117, 140, 0.5) !important;
  }

  .volume-slider-wrapper {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .controls-toolbar {
    justify-content: space-evenly;
    gap: 8px;
  }

  .library-header {
    gap: 4px;
    padding-bottom: 8px;
  }

  .lib-title {
    font-size: 14px;
    max-width: 120px;
  }

  .lib-count {
    display: none;
  }

  .lib-header-actions {
    gap: 4px;
  }

  .lib-sort-btn {
    padding: 4px 10px;
    font-size: 11.5px;
  }
}

/* 🔖 侧边音乐档案挂件与主页面 (.app-layout) z轴严格保持一致 */
.site-stats-bookmark,
#site-stats-bookmark {
  z-index: 10 !important;
}

/* =============================================
   🖥️ 2K 超高清大屏自适应等比缩放 (2K QHD Scaling, 2000px - 3199px)
   ============================================= */
@media (min-width: 2000px) and (max-width: 3199px) {
  .app-layout {
    width: min(76vw, 1920px);
    max-width: 1920px;
    padding: clamp(10px, 1.2vh, 18px) clamp(14px, 1.4vw, 26px);
    gap: clamp(6px, 1vh, 12px);
  }

  .brand-text .brand-title {
    font-size: 24px;
  }

  .brand-text .brand-subtitle {
    font-size: 12px;
  }

  .header-search {
    max-width: 440px;
  }

  .header-search input {
    height: 40px;
    font-size: 14.5px;
  }

  .icon-btn {
    padding: 6px 14px;
    font-size: 12.5px;
  }

  .cat-pill {
    padding: 8px 18px;
    font-size: 14px;
    max-width: 180px;
  }

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

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

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

  .track-card {
    padding: 9px 12px;
    gap: 12px;
  }

  .track-card-cover {
    width: 156px;
    height: 88px;
  }

  .main-content.comments-open .track-card-cover,
  body.comments-drawer-open .track-card-cover {
    width: 120px;
    height: 88px;
  }

  .track-card-title {
    font-size: 15px;
  }

  .track-card-artist {
    font-size: 12.5px;
  }

  .lyric-line {
    font-size: calc(var(--lyric-base-size, 16px) * 1.15);
  }
}

/* =============================================
   🖥️ 4K 超高清大屏自适应等比缩放 (4K UHD Scaling, ≥ 3200px)
   ============================================= */
@media (min-width: 3200px) {
  .app-layout {
    width: min(66vw, 2520px);
    max-width: 2520px;
    padding: clamp(14px, 1.6vh, 26px) clamp(18px, 1.8vw, 36px);
    gap: clamp(10px, 1.4vh, 18px);
  }

  .brand-text .brand-title {
    font-size: 30px;
  }

  .brand-text .brand-subtitle {
    font-size: 14px;
  }

  .header-search {
    max-width: 540px;
  }

  .header-search input {
    height: 48px;
    font-size: 16.5px;
  }

  .icon-btn {
    padding: 8px 18px;
    font-size: 14.5px;
  }

  .cat-pill {
    padding: 11px 24px;
    font-size: 16px;
    max-width: 240px;
  }

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

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

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

  .track-card {
    padding: 12px 18px;
    gap: 16px;
  }

  .track-card-cover {
    width: 196px;
    height: 110px;
  }

  .main-content.comments-open .track-card-cover,
  body.comments-drawer-open .track-card-cover {
    width: 148px;
    height: 110px;
  }

  .track-card-title {
    font-size: 17.5px;
  }

  .track-card-artist {
    font-size: 14.5px;
  }

  .lyric-line {
    font-size: calc(var(--lyric-base-size, 16px) * 1.35);
  }
}
