/* ============================================================
   MacCMS 2025 · Components CSS
   23 个核心组件 · 所有状态 · 响应式变体
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. FilmCard · 影片卡片
   ═══════════════════════════════════════════════════════════ */
.film-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
  cursor: pointer;
  container-type: inline-size;
}
.film-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  z-index: var(--z-card-hover);
}
.film-card:active {
  transform: scale(0.98);
}

/* 海报区 */
.film-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-surface);
}
.film-card__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}
.film-card:hover .film-card__poster img {
  transform: scale(1.04);
}

/* 海报占位 */
.film-card__poster--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}
.film-card__poster--placeholder::after {
  content: '🎬';
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0.3;
}

/* 情绪色点 (左上角) */
.film-card__mood-dot {
  position: absolute; top: 8px; left: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: 2;
}
.film-card__mood-dot--healing  { background: var(--mood-healing); }
.film-card__mood-dot--tear     { background: var(--mood-tear); }
.film-card__mood-dot--relax    { background: var(--mood-relax); }
.film-card__mood-dot--adrenaline { background: var(--mood-adrenaline); }
.film-card__mood-dot--thriller { background: var(--mood-thriller); }
.film-card__mood-dot--together { background: var(--mood-together); }
.film-card__mood-dot--bedtime  { background: var(--mood-bedtime); }
.film-card__mood-dot--deep     { background: var(--mood-deep); }

/* 进度条 (续看) */
.film-card__progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.15);
  z-index: 2;
}
.film-card__progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width var(--dur-normal) var(--ease-out);
}

/* 徽章: 新/限时/HD */
.film-card__badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 6px; border-radius: var(--radius-sm);
  font-size: var(--fs-c2); font-weight: var(--fw-semibold);
  letter-spacing: 0.04em; z-index: 2;
}
.film-card__badge--new  { background: var(--red); color: #fff; }
.film-card__badge--hd   { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.film-card__badge--hot  { background: var(--gold); color: #080810; }

/* 信息区 */
.film-card__info {
  padding: clamp(6px, 1vw, 10px) clamp(8px, 1.2vw, 12px);
}
.film-card__title {
  font-size: var(--fs-h1); font-weight: var(--fw-semibold);
  color: var(--text-primary); line-height: 1.4;
}
.film-card__reason {
  font-size: var(--fs-c1); color: var(--purple);
  margin-top: 2px;
}
.film-card__meta {
  font-size: var(--fs-c1); color: var(--text-secondary);
  margin-top: 4px;
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
}
.film-card__meta-item {
  display: flex; align-items: center; gap: 3px;
}

/* 尺寸变体 */
.film-card--xl .film-card__poster { aspect-ratio: 2 / 3; }
.film-card--xl .film-card__info { padding: 12px 16px; }
.film-card--wide { display: flex; }
.film-card--wide .film-card__poster {
  aspect-ratio: 16 / 9;
  width: clamp(120px, 30%, 200px);
  flex-shrink: 0;
}
.film-card--wide .film-card__info { flex: 1; }
.film-card--sm .film-card__title { font-size: var(--fs-c1); }

/* 已浏览标记 */
.film-card--watched::after {
  content: '已看';
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; padding: 2px 6px;
  background: rgba(45,200,168,0.2); color: var(--teal);
  border-radius: var(--radius-sm); z-index: 2;
}


/* ═══════════════════════════════════════════════════════════
   2. MoodTag · 情绪标签
   ═══════════════════════════════════════════════════════════ */
.mood-tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 12px;
  border-radius: 14px;
  font-size: var(--fs-c1); font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-instant) var(--ease-out),
              color var(--dur-instant) var(--ease-out);
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.mood-tag:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.mood-tag:active {
  transform: scale(0.96);
}

/* 情绪变体色 */
.mood-tag--active {
  background: var(--mood-color);
  color: #fff;
  border-color: var(--mood-color);
  box-shadow: 0 0 16px rgba(255,255,255,0.1);
}
/* 情绪色变体 */
.mood-tag--healing    { --mood-color: var(--mood-healing); }
.mood-tag--tearjerker { --mood-color: var(--mood-tear); }
.mood-tag--brainoff   { --mood-color: var(--mood-relax); }
.mood-tag--adrenaline { --mood-color: var(--mood-adrenaline); }
.mood-tag--thriller   { --mood-color: var(--mood-thriller); }
.mood-tag--together   { --mood-color: var(--mood-together); }
.mood-tag--bedtime    { --mood-color: var(--mood-bedtime); }
.mood-tag--deep       { --mood-color: var(--mood-deep); }
.mood-tag--disabled {
  opacity: 0.35; cursor: not-allowed; pointer-events: none;
}

/* 方形小变体 (详情页) */
.mood-tag--chip {
  height: 20px; padding: 0 6px;
  border-radius: 4px; font-size: var(--fs-c2);
}


/* ═══════════════════════════════════════════════════════════
   3. AmbientBackground · 环境色背景
   设计规范: 呼吸式浮动动效 8-12s · 320px禁用 · P6

   实现策略:
   - 纯径向渐变, 无 filter blur (会稀释颜色强度)
   - 无 mix-blend-mode (增加复杂性但不增加可见度)
   - 呼吸动效用 opacity 在 animation 内部闭环, 不与 transition 冲突
   - 渐变 alpha 直接从 JS 注入高可见度值
   ═══════════════════════════════════════════════════════════ */
.ambient-bg {
  position: relative;
  overflow: hidden;
}
.ambient-bg__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0;
  /* 默认紫色光晕, JS 提取颜色后覆盖 */
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(107,92,231,0.55) 0%, rgba(107,92,231,0.20) 40%, transparent 70%);
}
.ambient-bg__glow--active {
  /* animation 控制 opacity, 此处不设值 */
}
@keyframes ambient-breathe {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.92; }
}
.ambient-bg__glow--breathing {
  animation: ambient-breathe var(--dur-ambient) var(--ease-out) infinite;
}

/* 环境光容器的直接子元素自动浮到光晕之上 */
.ambient-bg > :not(.ambient-bg__glow) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg__glow--breathing { animation: none; opacity: 0.75; }
}
@media (max-width: 359px) {
  .ambient-bg__glow--breathing { animation: none; opacity: 0.65; }
}

/* ── 页面头部环境光容器 ── */
.page-hero.ambient-bg {
  padding: clamp(24px, 4vh, 48px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── 播放页播放器上方氛围光容器 ── */
.player-ambient.ambient-bg {
  padding: 24px 0 0;
}

/* 注: 光晕颜色由 JS 根据 data-poster / data-ambient-source 动态注入,
   不需要 CSS 按页面硬编码颜色。CSS 仅提供 .ambient-bg__glow 的
   基础结构 (定位/z-index/动画)，颜色由内联 style 设置。 */


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   4. MoodMatch · 情绪匹配度
   ═══════════════════════════════════════════════════════════ */
.mood-match {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.mood-match__ring {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.mood-match__ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.mood-match__ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.mood-match__ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.mood-match__score {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-c1); font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.mood-match__text {
  font-size: var(--fs-c1); color: var(--text-secondary);
}
.mood-match__text strong {
  color: var(--text-primary); font-weight: var(--fw-semibold);
}
.mood-match__reason {
  font-size: var(--fs-c2); color: var(--text-tertiary);
  margin-top: 2px;
}

-- 未登录态 --
.mood-match--locked .mood-match__ring-fill { stroke: var(--text-tertiary); }
.mood-match--locked .mood-match__score::after { content: '?'; }
*/


/* ═══════════════════════════════════════════════════════════
   5. HoneycombNav · 蜂巢情绪导航
   ═══════════════════════════════════════════════════════════ */
.honeycomb {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  gap: 10px;
}
.honeycomb__cell {
  width: 120px !important;
  height: 120px !important;
  flex-shrink: 0 !important;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out);
}
.honeycomb__cell:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.08);
  border-color: var(--border-em);
}
.honeycomb__cell:active {
  transform: scale(0.96);
}
.honeycomb__icon {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  transition: transform var(--dur-normal) var(--ease-out);
}
.honeycomb__cell:hover .honeycomb__icon {
  transform: scale(1.15);
}
.honeycomb__label {
  font-size: var(--fs-c1); font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

/* 胶囊降级 (移动端) */
.honeycomb--pills {
  flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
  gap: 8px; padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.honeycomb--pills::-webkit-scrollbar { display: none; }
.honeycomb--pills .honeycomb__cell {
  width: auto; aspect-ratio: auto;
  padding: 8px 16px; border-radius: 20px;
  flex-shrink: 0; scroll-snap-align: start;
  flex-direction: row;
}
.honeycomb--pills .honeycomb__icon { font-size: 1rem; }

/* 2列网格降级 (320px) */
.honeycomb--grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.honeycomb--grid2 .honeycomb__cell {
  width: auto; aspect-ratio: auto;
  padding: 10px; border-radius: var(--radius-md);
}


/* ═══════════════════════════════════════════════════════════
   6. CuratedCarousel · AI 策展轮播
   ═══════════════════════════════════════════════════════════ */
.curated-carousel {
  position: relative;
}
.curated-carousel__header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.curated-carousel__title {
  font-family: var(--serif);
  font-size: var(--fs-d2); font-weight: var(--fw-normal);
  color: var(--text-primary);
}
.curated-carousel__more {
  font-size: var(--fs-c1); color: var(--text-tertiary);
  transition: color var(--dur-instant);
}
.curated-carousel__more:hover { color: var(--gold); }

.curated-carousel__track {
  display: flex; gap: var(--space-md);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.curated-carousel__track::-webkit-scrollbar { display: none; }
.curated-carousel__track > * {
  flex-shrink: 0;
  width: clamp(140px, 18vw, 200px);
  scroll-snap-align: start;
}

/* 空状态 */
.curated-carousel__empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-2xl); text-align: center;
  color: var(--text-tertiary);
}
.curated-carousel__empty-link {
  color: var(--gold); margin-top: var(--space-sm);
}
.curated-carousel__empty-link:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════
   7. BentoGrid · 非均匀砖格
   ═══════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-md);
}
.bento-grid__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-out);
}
.bento-grid__item:hover { transform: translateY(-2px); }
.bento-grid__item--xl  { grid-column: span 2; grid-row: span 2; }
.bento-grid__item--wide { grid-column: span 2; grid-row: span 1; }
.bento-grid__item--md  { grid-column: span 1; grid-row: span 1; }
.bento-grid__item--sm  { grid-column: span 1; grid-row: span 1; }

@media (max-width: 1279px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(150px, auto); }
  .bento-grid__item--xl { grid-column: span 2; grid-row: span 1.5; }
}
@media (max-width: 767px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(130px, auto); }
  .bento-grid__item--xl { grid-column: span 2; grid-row: span 1; }
  .bento-grid__item--wide { grid-column: span 2; }
}
@media (max-width: 479px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid__item--xl,
  .bento-grid__item--wide { grid-column: span 1; }
}


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   8. QuickPreview · 快速预览浮层
   ═══════════════════════════════════════════════════════════ */
.quick-preview {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out);
  z-index: 5;
}
.quick-preview--active {
  opacity: 1;
  pointer-events: auto;
}
.quick-preview video {
  width: 100%; height: 100%; object-fit: cover;
}
.quick-preview__actions {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center;
  padding: 8px;
  opacity: 0; transition: opacity var(--dur-normal);
}
.quick-preview--ended .quick-preview__actions {
  opacity: 1;
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   9. HighlightReel · 精华预览播放器
   ═══════════════════════════════════════════════════════════ */
.highlight-reel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.highlight-reel__player {
  width: 100%;
  height: clamp(35vh, 50vh, 480px);
  object-fit: cover;
}
.highlight-reel__player--muted {
  cursor: pointer;
}
.highlight-reel__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--space-lg);
  background: linear-gradient(transparent 60%, rgba(8,8,16,0.8));
  pointer-events: none;
}
.highlight-reel__caption {
  font-size: var(--fs-c1); color: var(--text-secondary);
  max-width: 50ch;
}

/* 剧照降级 */
.highlight-reel__stills {
  display: flex; gap: 4px;
}
.highlight-reel__stills img {
  width: 33.333%; height: clamp(35vh, 50vh, 480px);
  object-fit: cover;
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   10. SentimentCard · 感受性评论卡
   ═══════════════════════════════════════════════════════════ */
.sentiment-cards {
  display: flex; gap: var(--space-md);
}
.sentiment-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  cursor: pointer;
  transition: border-color var(--dur-instant), background var(--dur-instant);
}
.sentiment-card:hover {
  border-color: var(--border-em);
  background: var(--bg-hover);
}
.sentiment-card__quote {
  font-family: var(--serif);
  font-size: var(--fs-h1); font-weight: var(--fw-normal);
  color: var(--text-primary);
  line-height: 1.6;
}
.sentiment-card__quote::before { content: '"'; color: var(--gold); }
.sentiment-card__quote::after  { content: '"'; color: var(--gold); }
.sentiment-card__author {
  font-size: var(--fs-c2); color: var(--text-tertiary);
  margin-top: var(--space-sm);
}
.sentiment-card--expanded {
  border-color: var(--gold);
  background: rgba(232,168,56,0.05);
}

@media (max-width: 767px) {
  .sentiment-cards { flex-direction: column; }
  .sentiment-card--collapsed-mobile { max-height: 60px; overflow: hidden; }
}
*/


/* ═══════════════════════════════════════════════════════════
   11. SmartEpisodeNav · 智能剧集导航
   ═══════════════════════════════════════════════════════════ */
.episode-nav {}
.episode-nav__seasons {
  display: flex; gap: 8px; margin-bottom: var(--space-md);
  overflow-x: auto; scrollbar-width: none;
}
.episode-nav__seasons::-webkit-scrollbar { display: none; }
.episode-nav__season {
  padding: 6px 16px; border-radius: 20px;
  font-size: var(--fs-c1); font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--dur-instant);
  cursor: pointer;
}
.episode-nav__season:hover { border-color: var(--border-em); color: var(--text-primary); }
.episode-nav__season--active {
  background: var(--gold); color: var(--bg-primary); border-color: var(--gold);
}

.episode-nav__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.episode-nav__ep {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-c1); font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-instant);
  position: relative;
}
.episode-nav__ep:hover {
  border-color: var(--gold); color: var(--text-primary);
}
.episode-nav__ep--current,
.ep-item--current {
  border-color: #E8A838 !important;
  color: #E8A838 !important;
  background: rgba(232,168,56,0.08) !important;
}
.episode-nav__ep--watched::after {
  content: '✓'; position: absolute; top: 4px; right: 6px;
  font-size: 9px; color: var(--teal);
}
.episode-nav__ep-duration {
  font-size: 9px; color: var(--text-tertiary);
  margin-top: 2px;
}

/* 进度集 */
.episode-nav__current {
  background: rgba(232,168,56,0.08);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md); margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: var(--space-md);
}
.episode-nav__current-label {
  font-size: var(--fs-c2); color: var(--text-tertiary);
}
.episode-nav__current-title {
  font-size: var(--fs-h1); font-weight: var(--fw-semibold);
}
.episode-nav__current-progress {
  flex: 1; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.episode-nav__current-progress-bar {
  height: 100%; background: var(--gold);
}


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   12. PerceptiveSeekBar · 感知进度条
   ═══════════════════════════════════════════════════════════ */
.seekbar {
  position: relative;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: height var(--dur-normal) var(--ease-out);
}
.seekbar:hover,
.seekbar--dragging {
  height: 6px;
}
.seekbar__played {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.seekbar__buffered {
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.08);
}
.seekbar__keyframe {
  position: absolute; top: -2px;
  width: 2px; height: calc(100% + 4px);
  background: #fff;
  border-radius: 1px;
  transform: translateX(-1px);
}
.seekbar__thumb {
  position: absolute;
  top: 50%; width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.seekbar:hover .seekbar__thumb,
.seekbar--dragging .seekbar__thumb {
  opacity: 1;
}

.seekbar__preview {
  position: absolute; bottom: 20px;
  width: 160px; height: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transform: translateX(-50%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast);
}
.seekbar:hover .seekbar__preview,
.seekbar--dragging .seekbar__preview {
  opacity: 1;
}
.seekbar__preview img {
  width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 479px) {
  .seekbar { height: 4px; }
  .seekbar--dragging { height: 8px; }
  .seekbar__preview { display: none; }
}
@media (max-width: 359px) {
  .seekbar { height: 8px; }
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   13. EndCard · 片尾智能卡
   ═══════════════════════════════════════════════════════════ */
.end-card {
  position: absolute; right: clamp(16px, 3vw, 32px);
  bottom: 80px;
  width: 320px; max-width: 80vw;
  background: rgba(18,18,30,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: translateX(calc(100% + 20px));
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: var(--z-modal);
}
.end-card--visible {
  transform: translateX(0);
}
.end-card__content {
  padding: var(--space-lg);
}
.end-card__title {
  font-size: var(--fs-c1); color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}
.end-card__name {
  font-size: var(--fs-h1); font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
}
.end-card__countdown {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-c1); color: var(--text-secondary);
}
.end-card__countdown-ring {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: countdown-spin 10s linear forwards;
}
@keyframes countdown-spin {
  to { transform: rotate(360deg); }
}
.end-card__cancel {
  font-size: var(--fs-c2); color: var(--text-tertiary);
  cursor: pointer; margin-top: var(--space-sm);
}
.end-card__cancel:hover { color: var(--text-primary); }

@media (max-width: 479px) {
  .end-card {
    left: 0; right: 0; bottom: 0;
    max-width: none; border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: translateY(100%);
  }
  .end-card--visible { transform: translateY(0); }
}
@media (max-width: 359px) {
  .end-card {
    left: 0; right: 0; bottom: 0; top: auto;
    height: 100%; border-radius: 0;
    transform: translateY(100%);
  }
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   14. PauseContentLayer · 暂停内容层
   ═══════════════════════════════════════════════════════════ */
.pause-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  pointer-events: none; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-in-fast);
}
.pause-layer--visible {
  opacity: 1; pointer-events: auto;
}
.pause-layer__frame {
  position: absolute; inset: 0;
  filter: blur(4px);
  transition: filter var(--dur-fast);
}
.pause-layer__controls {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}
.pause-layer__play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: background var(--dur-instant);
}
.pause-layer__play-btn:hover {
  background: rgba(255,255,255,0.2);
}
.pause-layer__idle-hint {
  font-size: var(--fs-c1); color: var(--text-tertiary);
  opacity: 0; transition: opacity var(--dur-slow);
}
.pause-layer__idle-hint--visible { opacity: 1; }
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   15. ChapterNavigation · 播放页侧边面板
   ═══════════════════════════════════════════════════════════ */
.chapter-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%; max-width: 420px; min-width: 280px;
  background: rgba(18,18,30,0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: var(--z-drawer);
  overflow-y: auto;
}
.chapter-panel--open {
  transform: translateX(0);
}
.chapter-panel__header {
  position: sticky; top: 0;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: inherit;
}
.chapter-panel__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 18px; cursor: pointer;
  transition: background var(--dur-instant);
}
.chapter-panel__close:hover { background: rgba(255,255,255,0.1); }
.chapter-panel__body {
  padding: var(--space-lg);
}

@media (max-width: 767px) {
  .chapter-panel {
    width: 100%; max-width: none;
    bottom: 0; top: auto; right: 0;
    height: 60vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: none; border-top: 1px solid var(--border);
    transform: translateY(100%);
  }
  .chapter-panel--open { transform: translateY(0); }
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   16. ThemeHeader · 主题沉浸头部
   ═══════════════════════════════════════════════════════════ */
.theme-header {
  position: relative;
  padding: clamp(60px, 12vh, 120px) var(--page-padding);
  overflow: hidden;
  transition: background var(--dur-slow) var(--ease-out);
}
.theme-header__glow {
  position: absolute; inset: 0; pointer-events: none;
}
.theme-header__content {
  position: relative; z-index: 1; max-width: var(--content-max);
  margin: 0 auto;
}
.theme-header__title {
  font-family: var(--serif);
  font-size: var(--fs-d1); font-weight: var(--fw-normal);
  line-height: 1.2;
  animation: theme-header-in 0.8s var(--ease-out) both;
}
.theme-header__curator-note {
  font-size: var(--fs-b1); color: var(--text-secondary);
  max-width: 60ch; margin-top: var(--space-md);
  animation: theme-header-in 0.8s var(--ease-out) 0.15s both;
}
.theme-header__nav {
  display: flex; gap: 8px; margin-top: var(--space-xl);
  overflow-x: auto; scrollbar-width: none;
  animation: theme-header-in 0.8s var(--ease-out) 0.3s both;
}
.theme-header__nav::-webkit-scrollbar { display: none; }

@keyframes theme-header-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .theme-header { padding: clamp(40px, 8vh, 60px) var(--page-padding); }
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   17. CuratorNote · 策展人注解
   ═══════════════════════════════════════════════════════════ */
.curator-note {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
}
.curator-note__quote {
  font-family: var(--serif);
  font-size: var(--fs-d2); font-weight: var(--fw-normal);
  color: var(--text-primary);
  line-height: 1.6;
}
.curator-note__quote::before { content: '"'; color: var(--gold); }
.curator-note__text {
  font-size: var(--fs-b1); color: var(--text-secondary);
  line-height: 1.8; margin-top: var(--space-sm);
  max-width: 65ch;
}
.curator-note__source {
  text-align: right; font-size: var(--fs-c1); color: var(--text-tertiary);
  margin-top: var(--space-md);
}
.curator-note__source span {
  opacity: 0.6;
}
*/


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   18. RadialHoneycomb · 径向蜂窝布局
   ═══════════════════════════════════════════════════════════ */
.radial-honeycomb {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-sm);
  max-width: 780px; margin: 0 auto;
}
.radial-honeycomb__cell {
  width: clamp(100px, 16vw, 160px);
  aspect-ratio: 0.866;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.radial-honeycomb__cell:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(0,0,0,0.3);
}
.radial-honeycomb__cell--center {
  box-shadow: 0 0 20px rgba(232,168,56,0.15);
}
.radial-honeycomb__cell--dimmed {
  opacity: 0.4;
}
.radial-honeycomb__cell img {
  width: 100%; height: 100%; object-fit: cover;
}
.radial-honeycomb__label {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; font-size: var(--fs-c1); font-weight: var(--fw-medium);
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@media (max-width: 767px) {
  .radial-honeycomb {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  }
  .radial-honeycomb__cell {
    clip-path: none; width: 100%; aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
  }
}
*/


/* ═══════════════════════════════════════════════════════════
   19. MoodFilter · 情绪状态筛选栏
   ═══════════════════════════════════════════════════════════ */
.mood-filter {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-sm) 0;
}
.mood-filter::-webkit-scrollbar { display: none; }
.mood-filter__chip {
  flex-shrink: 0; scroll-snap-align: start;
}
.mood-filter__chip--active {
  color: #fff;
  font-weight: var(--fw-semibold);
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}
.mood-filter__divider {
  width: 1px; background: var(--border);
  align-self: stretch; flex-shrink: 0;
  margin: 0 4px;
}


/* UNUSED:
   ═══════════════════════════════════════════════════════════
   20. VerticalFeed · 竖向短预览流
   ═══════════════════════════════════════════════════════════ */
.vertical-feed {
  width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2px;
}
.vertical-feed__card {
  position: relative;
  width: 100%; aspect-ratio: 9 / 16;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
}
.vertical-feed__card video {
  width: 100%; height: 100%; object-fit: cover;
}
.vertical-feed__card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.vertical-feed__card-title {
  font-size: var(--fs-h1); font-weight: var(--fw-semibold);
  color: #fff;
}
.vertical-feed__card-tags {
  display: flex; gap: 6px; margin-top: 6px;
}

.vertical-feed__toggle {
  display: flex; gap: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.vertical-feed__toggle-btn {
  padding: 6px 20px; font-size: var(--fs-c1);
  color: var(--text-secondary);
  transition: all var(--dur-instant);
}
.vertical-feed__toggle-btn--active {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
*/


/* ═══════════════════════════════════════════════════════════
   21. SurpriseBtn · 随机惊喜按钮
   ═══════════════════════════════════════════════════════════ */
.surprise-btn {
  position: fixed;
  bottom: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(10px);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: var(--z-fab);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}
.surprise-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}
.surprise-btn:active {
  transform: scale(0.9);
}
@keyframes surprise-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.surprise-btn--loading {
  animation: surprise-spin 0.4s var(--ease-out);
}

@media (max-width: 359px) {
  .surprise-btn {
    width: 40px; height: 40px;
    bottom: 80px;
    font-size: 1rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   22. SkeletonScreen · 骨架屏
   ═══════════════════════════════════════════════════════════ */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
.skeleton {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton--poster { aspect-ratio: 2 / 3; }
.skeleton--title { height: 16px; width: 80%; margin-top: 8px; }
.skeleton--meta  { height: 12px; width: 60%; margin-top: 6px; }
.skeleton--text  { height: 12px; width: 100%; margin-top: 6px; }
.skeleton--text-short { height: 12px; width: 40%; margin-top: 6px; }
.skeleton--circle { border-radius: 50%; }
.skeleton--card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.skeleton--wide { aspect-ratio: 16 / 9; }
.skeleton--highlight { height: clamp(35vh, 50vh, 480px); }


/* ═══════════════════════════════════════════════════════════
   23. GlobalNav · 全局导航栏
   ═══════════════════════════════════════════════════════════ */
.global-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px;
  display: flex; align-items: center;
  padding: 0 var(--page-padding);
  z-index: var(--z-sticky);
  transition: background var(--dur-normal) var(--ease-out),
              backdrop-filter var(--dur-normal) var(--ease-out);
}
.global-nav--scrolled {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.global-nav__inner {
  width: 100%; max-width: var(--content-max);
  margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-lg);
}
.global-nav__logo {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  color: var(--gold);
  flex-shrink: 0;
}
.global-nav__links {
  display: flex; gap: 0; flex: 1;
}
.global-nav__link {
  padding: 0 14px; height: 56px;
  display: flex; align-items: center;
  font-size: 13px; color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--dur-instant);
  white-space: nowrap;
}
.global-nav__link:hover { color: var(--text-primary); }
.global-nav__link--active {
  color: var(--gold); border-bottom-color: var(--gold);
}

.global-nav__actions {
  display: flex; align-items: center; gap: var(--space-md);
}
.global-nav__search {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1rem; color: var(--text-secondary);
  transition: all var(--dur-instant);
  cursor: pointer;
}
.global-nav__search:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.global-nav__history {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: var(--fs-c1); color: #7A788A;
  cursor: pointer;
  transition: color 0.15s;
}
.global-nav__history:hover { color: var(--text-primary); }

@media (max-width: 479px) {
  .global-nav { height: 48px; }
  .global-nav__link { height: 48px; padding: 0 10px; font-size: 12px; }
  .global-nav__links { overflow-x: auto; scrollbar-width: none; }
  .global-nav__links::-webkit-scrollbar { display: none; }
}
@media (max-width: 359px) {
  .global-nav { height: 44px; }
  .global-nav__link { height: 44px; padding: 0 8px; }
}


/* ═══════════════════════════════════════════════════════════
   PlayerControls · 播放器控件
   ═══════════════════════════════════════════════════════════ */
.volume-slider-wrap {
  position: absolute; bottom: 48px; right: 0;
  background: rgba(0,0,0,0.85); border-radius: 8px;
  padding: 8px 4px; z-index: 60; display: none;
}
.volume-slider-wrap input[type=range] {
  writing-mode: vertical-lr; direction: rtl;
  width: 40px; height: 100px;
  appearance: auto; background: transparent;
}
.speed-menu { display: none; position: absolute; bottom: 46px; right: 0; background: rgba(0,0,0,0.9); border-radius: 8px; padding: 4px 0; z-index: 60; }
.speed-option { padding: 6px 20px; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.speed-option.active { color: #E8A838; font-weight: bold; }
.speed-option:hover { background: rgba(255,255,255,0.1); }
.seek-button { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); align-items: center; justify-content: center; flex-direction: column; z-index: 25; color: rgba(255,255,255,0.9); cursor: pointer; transition: opacity 0.3s, transform 0.15s; }
.seek-button:active { transform: translateY(-50%) scale(0.9); background: rgba(0,0,0,0.55); }
.seek-button.left { left: 20px; }
.seek-button.right { right: 20px; }

/* ═══════════════════════════════════════════════════════════
   Buttons · 按钮系统
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2vw, 24px);
  border-radius: var(--radius-md);
  font-size: var(--fs-c1); font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--dur-instant) var(--ease-out);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: #f0b848;
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  border-color: var(--border-em);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn--purple {
  background: var(--purple);
  color: #fff;
}
.btn--purple:hover {
  background: #7b6cf0;
  box-shadow: var(--shadow-purple);
}

.btn--icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
}

.btn--lg {
  padding: clamp(12px, 1.5vw, 16px) clamp(24px, 3vw, 40px);
  font-size: var(--fs-h1);
}


/* ═══════════════════════════════════════════════════════════
   Form · 表单元素
   ═══════════════════════════════════════════════════════════ */
.input {
  height: 40px; padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-c1); color: var(--text-primary);
  transition: border-color var(--dur-instant);
}
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--text-tertiary); }

.search-input {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color var(--dur-instant), width var(--dur-normal);
}
.search-input:focus-within { border-color: var(--gold); }
.search-input input {
  height: 36px; width: 200px; padding: 0 12px;
  background: transparent; border: none;
  font-size: var(--fs-c1); color: var(--text-primary);
}
.search-input button {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════
   Toast / Notification
   ═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: var(--fs-c1); color: var(--text-primary);
  z-index: var(--z-toast);
  opacity: 0; transition: opacity var(--dur-normal);
}
.toast--visible { opacity: 1; }


/* ═══════════════════════════════════════════════════════════
   Q&A · 常见问答手风琴
   ═══════════════════════════════════════════════════════════ */
.qa-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}
.qa-item[open] { border-color: rgba(232,168,56,.15); }
.qa-question {
  display: flex; align-items: center; gap: 12px;
  padding: clamp(14px,1.8vw,18px) clamp(16px,2vw,20px);
  cursor: pointer; list-style: none;
  user-select: none;
}
.qa-question::-webkit-details-marker { display: none; }
.qa-q-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(232,168,56,.1);
  font-size: .75rem; font-weight: 700; color: #E8A838;
  flex-shrink: 0;
}
.qa-q-text { flex: 1; font-size: .85rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.qa-arrow { flex-shrink: 0; color: var(--text-tertiary); transition: transform .25s cubic-bezier(.25,0,0,1); }
.qa-item[open] .qa-arrow { transform: rotate(180deg); }
.qa-answer {
  display: flex; gap: 12px;
  padding: 0 clamp(16px,2vw,20px) clamp(16px,2vw,20px);
}
.qa-a-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(45,200,168,.1);
  font-size: .75rem; font-weight: 700; color: #2DC8A8;
  flex-shrink: 0;
}
.qa-a-text { flex: 1; font-size: .8rem; color: var(--text-secondary); line-height: 1.8; }
.qa-a-text p { margin: 0; }
.qa-expand-btn {
  display: block; margin-top: 8px;
  background: none; border: none;
  font-size: .7rem; color: var(--text-tertiary);
  cursor: pointer; padding: 0;
}
.qa-expand-btn:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   Paging · 分页 (MacCMS 官方类名)
   设计规范: 分段加载 · 页码按钮 · P1 无摩擦体验
   ═══════════════════════════════════════════════════════════ */
.mac_pages {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.page_tip {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.page_info {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
}

/* ── 页码按钮 ── */
.page_link {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--dur-instant), color var(--dur-instant), background var(--dur-instant);
  cursor: pointer;
  user-select: none;
}
.page_link:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

/* ── 当前页 ── */
.page_current {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  cursor: default;
  pointer-events: none;
}
.page_current:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* ── 页码输入框 ── */
.page_input {
  width: 44px; height: 38px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem; color: var(--text-primary);
  transition: border-color var(--dur-instant);
  margin-left: 6px;
}
.page_input:focus {
  border-color: var(--gold);
  outline: none;
}
.page_input::placeholder {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

/* ── GO 按钮 ── */
.page_btn {
  height: 38px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem; font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-instant);
  margin-left: 4px;
}
.page_btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── 移动端适配 ── */
@media (max-width: 479px) {
  .page_link {
    min-width: 34px; height: 34px;
    font-size: 0.75rem; padding: 0 8px;
  }
  .page_input { width: 38px; height: 34px; font-size: 0.75rem; }
  .page_btn { height: 34px; padding: 0 12px; font-size: 0.72rem; }
}


/* ═══════════════════════════════════════════════════════════
   24. HistoryDropdown · 历史记录弹出框
   ═══════════════════════════════════════════════════════════ */
.history-dropdown {
  position: fixed;
  top: 56px;
  right: 16px;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  background: rgba(18,18,30,0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-y: auto;
  box-shadow: var(--shadow-overlay);
  z-index: var(--z-modal);
  overscroll-behavior: contain;
}
.history-dropdown__title {
  padding: 12px 16px;
  font-size: var(--fs-c2);
  font-weight: var(--fw-semibold);
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(18,18,30,0.97);
  backdrop-filter: blur(24px);
}
.history-dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: var(--fs-c1); color: var(--text-secondary);
  transition: all var(--dur-instant);
  border-bottom: 1px solid var(--border);
}
.history-dropdown__item:last-child { border-bottom: none; }
.history-dropdown__item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.history-dropdown__item img {
  width: 32px; height: 48px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.history-dropdown__clear {
  display: block; width: 100%; padding: 8px;
  font-size: var(--fs-c2); color: var(--text-tertiary);
  text-align: center; cursor: pointer;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
  background: rgba(18,18,30,0.97);
  transition: color var(--dur-instant);
}
.history-dropdown__clear:hover { color: var(--red); }

@media (max-width: 479px) {
  .history-dropdown {
    top: 48px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}


/* ═══════════════════════════════════════════════════════════
   25. TopicCard · 专题卡片
   ═══════════════════════════════════════════════════════════ */
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.12);
}
.topic-card:hover img {
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════════════
   26. MetaLink · mac_url_create 生成的内联链接
   设计: 极低调融入正文 · 默认无下划线 · hover 微金 + 淡底线
   ═══════════════════════════════════════════════════════════ */
.detail-meta-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.detail-meta-links a:hover {
  color: #E8A838;
  border-bottom-color: rgba(232,168,56,0.35);
}
/* 移动端: 无hover, 默认虚线底+微亮色 暗示可点击 */
@media (hover: none) and (pointer: coarse) {
  .detail-meta-links a {
    color: #8B8799;
    border-bottom: 1px dotted rgba(255,255,255,0.2);
  }
}

/* ═══════════════════════════════════════════════════════════
   27. MetaPill · 元数据链接胶囊 (备用, 当前未使用)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   28. FilterPanel · 筛选侧边面板
   ═══════════════════════════════════════════════════════════ */

/* ── 触发按钮 ── */
.filter-panel-trigger {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px;
  background: rgba(107,92,231,0.08);
  border: 1px solid rgba(107,92,231,0.18);
  border-radius: 20px;
  font-size: 0.78rem; color: var(--purple); font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.filter-panel-trigger:hover {
  background: rgba(107,92,231,0.16);
  border-color: rgba(107,92,231,0.30);
}

/* ── 面板主体 ── */
.filter-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: rgba(14,14,26,0.985);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  z-index: calc(var(--z-drawer) + 5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25,0,0,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.filter-panel--open {
  transform: translateX(0);
}
.filter-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-panel__title {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: var(--fw-normal);
  color: var(--text-primary);
}
.filter-panel__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
  background: none; border: none;
}
.filter-panel__close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.filter-panel__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 32px;
}
.filter-panel__section {
  margin-bottom: 24px;
}
.filter-panel__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.filter-panel__chips {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.filter-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: var(--z-drawer);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.filter-panel-overlay--visible {
  opacity: 1; pointer-events: auto;
}

/* ── 筛选胶囊 ── */
.filter-chip {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 14px;
  border-radius: 16px;
  font-size: 0.78rem; font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
  user-select: none;
}
.filter-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.filter-chip--active {
  background: rgba(107,92,231,0.14);
  border-color: rgba(107,92,231,0.30);
  color: #a99ef0;
}
.filter-chip__clear {
  font-size: 0.65rem; font-weight: var(--fw-normal);
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--dur-fast);
}
.filter-chip__clear:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════
   29. MobileSearchDrawer · 移动搜索抽屉
   ═══════════════════════════════════════════════════════════ */
.mobile-search-trigger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-instant);
}
.mobile-search-trigger svg {
  width: 18px; height: 18px;
}
.mobile-search-trigger:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.mobile-search-drawer {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,8,16,0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-drawer);
  flex-direction: column;
  padding: var(--space-xl) var(--page-padding);
  opacity: 0; transition: opacity var(--dur-normal);
}
.mobile-search-drawer--open {
  display: flex; opacity: 1;
}
.mobile-search-drawer__close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem; color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: var(--space-xl);
  transition: background var(--dur-instant);
}
.mobile-search-drawer__close:hover {
  background: rgba(255,255,255,0.08);
}
.mobile-search-drawer form { width: 100%; }
.mobile-search-drawer form .btn { width: 100%; }
.mobile-search-drawer__input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem; color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.mobile-search-drawer__input:focus { border-color: var(--gold); }
.mobile-search-drawer__hot {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: var(--space-lg);
}
.mobile-search-drawer__hot a {
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  font-size: var(--fs-c1); color: var(--text-secondary);
}

@media (max-width: 479px) {
  .search-input { display: none; }
  .mobile-search-trigger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   30. EpisodeSource · 选集来源切换
   ═══════════════════════════════════════════════════════════ */
.episode-source {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(12px,2vw,20px);
  margin-bottom: 14px;
}
.episode-nav__sort {
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.episode-nav__toggle {
  padding: 6px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.episode-nav__toggle:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}
.episode-nav__source-name {
  padding: 3px 10px;
  background: rgba(232,168,56,0.1);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: var(--fw-medium);
}
.episode-nav__source-tip {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}
.episode-nav__source-count {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════
   31. EmptyState · 空状态
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  grid-column: 1 / -1;
}
.empty-state h2 {
  font-family: var(--serif);
  font-size: var(--fs-d2);
  font-weight: var(--fw-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.empty-state p {
  font-size: var(--fs-c1);
  color: var(--text-tertiary);
  max-width: 40ch;
}

/* ═══════════════════════════════════════════════════════════
   27. QuickPreview · 悬停预览浮层
   ═══════════════════════════════════════════════════════════ */
.quick-preview {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-card-hover, 10);
  pointer-events: none;
  animation: qp-fadein 0.2s var(--ease-out);
}
@keyframes qp-fadein {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.quick-preview__play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(232,168,56,0.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════════════════
   28. SurpriseBtn · 随机惊喜浮动按钮
   ═══════════════════════════════════════════════════════════ */
.surprise-btn {
  position: fixed;
  bottom: clamp(20px, 3vw, 32px);
  right: clamp(16px, 3vw, 28px);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: var(--z-fab, 50);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.surprise-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(232,168,56,0.2);
}
.surprise-btn--spinning {
  animation: surprise-spin 0.4s var(--ease-out);
  pointer-events: none;
}
@keyframes surprise-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 359px) {
  .surprise-btn { width: 40px; height: 40px; font-size: 1.1rem; bottom: 72px; }
}

/* ═══════════════════════════════════════════════════════════
   29. PagedLoad · 分段加载按钮
   ═══════════════════════════════════════════════════════════ */
.paged-load-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: clamp(20px, 3vw, 32px) auto;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-em);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-c1);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.paged-load-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.paged-load-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
