/* ==========================================================================
   小白热播 · 客户页设计系统   css/xb.css
   --------------------------------------------------------------------------
   硬规矩（本文件自己遵守，改样式先改这里）：
   1. 字号只有 3 级：--fs-title / --fs-body / --fs-fine。不许出现第四种。
   2. 间距只有 4 的倍数：--s1 4 / --s2 8 / --s3 12 / --s4 16 / --s5 20 / --s6 24 / --s7 32 / --s8 40
   3. 一个强调色（金，只给会员/付费/进度），其余全是暖中性灰。
   4. 不用渐变文字、不用发光、不用紫蓝、不用 emoji。
   5. 圆角同心：外圆角 = 内圆角 + 内边距。
   6. 动效只保留功能性：按压、弹层进出、banner 高亮一次。不做整页渐入。
   7. 数字一律等宽（tabular-nums），避免跳动。
   ========================================================================== */

/* ---------- 1. 变量：唯一来源 ---------- */
:root {
  /* 字号（3 级） */
  --fs-title: 19px;
  --fs-body: 15px;
  --fs-fine: 12.5px;

  /* 间距（4 的倍数） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;

  /* 行高 / 字重 */
  --lh-tight: 1.28;
  --lh-body: 1.62;
  --w-reg: 400;
  --w-med: 500;
  --w-semi: 600;

  /* 中性色（全部偏暖，不混冷灰） */
  --stage: #0b0907;      /* 播放区底色，不是纯黑 */
  --stage-2: #191410;
  --paper: #f6f3ec;      /* 页面底色 */
  --card: #fffdf8;       /* 浮起面 */
  --fg: #1b1712;
  --fg-2: #6e655a;       /* 辅助文字 */
  --fg-3: #9c9285;       /* 更弱：占位、禁用 */
  --line: #e4ddd0;       /* 结构线 */
  --line-2: #efeadf;     /* 更浅的分隔 */

  /* 强调色：金。只用于会员/付费/进度 */
  --gold: #9a6a22;
  --gold-deep: #7d5216;
  --gold-solid: #a9762b;
  --gold-soft: #f3e8d4;
  --gold-line: #dcc39a;
  --gold-on-dark: #e6b86b;

  /* 语义色（只有一个红） */
  --danger: #a22e22;
  --danger-soft: #f8e7e3;

  /* 圆角 */
  --r1: 8px;  --r2: 12px; --r3: 16px; --r4: 20px; --r-pill: 999px;

  /* 阴影：暖调，低对比，只给"真的浮起来"的东西 */
  --sh-1: 0 1px 2px rgba(43, 32, 20, .05), 0 2px 8px -2px rgba(43, 32, 20, .07);
  --sh-2: 0 2px 6px rgba(28, 20, 12, .09), 0 10px 24px -8px rgba(28, 20, 12, .18);
  --sh-sheet: 0 -1px 0 rgba(43, 32, 20, .04), 0 -14px 44px -10px rgba(28, 20, 12, .30);

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
          "Noto Sans CJK SC", "Microsoft YaHei UI", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas,
          "Liberation Mono", monospace;

  /* 栅格 */
  --page-max: 1120px;
  --gutter: var(--s4);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-reg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 浮标不压最后一行 */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r1);
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: 52px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgba(246, 243, 236, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}

.topbar-back {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: calc(var(--s2) * -1);
  border-radius: var(--r2);
  color: var(--fg);
  transition: background-color .16s var(--ease), scale .16s var(--ease);
}
.topbar-back:active { scale: .94; background: rgba(27, 23, 18, .06); }

.topbar-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-title);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
}

.topbar-meta {
  flex: 0 0 auto;
  font-size: var(--fs-fine);
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.topbar-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 32px;
  margin-left: var(--s1);
  padding: 0 var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-fine);
  color: var(--fg);
  transition: border-color .16s var(--ease), background-color .16s var(--ease), scale .16s var(--ease);
}
.topbar-link:active { scale: .96; background: rgba(27, 23, 18, .04); }
.topbar-link:hover { border-color: var(--fg-3); }

/* ---------- 4. 播放页骨架 ---------- */
.play-main {
  max-width: var(--page-max);
  margin: 0 auto;
}

.side { padding: var(--s3) var(--gutter) 0; }

/* ---------- 5. 播放器 ---------- */
.stage-wrap { position: relative; }

.stage {
  position: relative;
  /*
   * 画框按内容方向走，不再写死 16:9：
   *   --stage-ar  高/宽。默认 1.7778 = 竖屏 9:16（拿不到分辨率就按竖屏，剧都是竖的）
   *   --stage-cap 画框最高多少，超了就按比例把宽度收窄 —— 宁可画框变窄，也不在里面留黑边
   * player.js 拿到真实分辨率后会改写 --stage-ar（横屏内容 → 0.5625 = 16:9）
   */
  --stage-ar: 1.7778;
  --stage-cap: 58dvh;
  width: min(100%, calc(var(--stage-cap) / var(--stage-ar)));
  aspect-ratio: 1 / var(--stage-ar);
  max-height: var(--stage-cap);
  margin: var(--s2) auto 0;
  border-radius: var(--r2);
  background: var(--stage);
  overflow: hidden;
  isolation: isolate;
  /* 横向滑动由 JS 接管，纵向留给页面滚动 */
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* 视频本体不许刷底色：没起播之前，海报就贴在它下面透出来 */
.stage-poster,
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* 封面是静帧，铺满画框（竖屏画框里不许出现上下黑边）；视频绝不裁，永远 contain */
.stage-poster { object-fit: cover; }
.stage video { object-fit: contain; }
.stage-poster { z-index: 0; background: var(--stage); }
.stage video { z-index: 1; background: transparent; }
.stage.has-media.is-playing .stage-poster { opacity: 0; }
.stage-poster { transition: opacity .28s var(--ease); }

/* 中央播放键（整块只作定位，点击穿透给舞台手势；只有按钮自己接收点击） */
.stage-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.stage.show-center .stage-center { opacity: 1; }
.stage.is-locked .stage-center { display: none; }

.big-play {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  /* 封面可能是浅色的：底子压深一点，两种封面上都看得清 */
  background: rgba(18, 14, 10, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 20px -8px rgba(0, 0, 0, .6);
  color: #fff;
  transition: scale .16s var(--ease), background-color .16s var(--ease);
}
.big-play:active { scale: .94; }
.big-play svg { width: 26px; height: 26px; margin-left: 3px; }

/* 锁着的集：播放区盖一层说明，不让人对着黑屏猜 */
.stage-locked {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s5);
  background: rgba(13, 10, 8, .58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  text-align: center;
}
.stage-locked p {
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
  line-height: 1.4;
  color: #f6f1e8;
  text-wrap: balance;
}
.stage-locked .btn { min-height: 42px; padding: 0 var(--s5); font-size: var(--fs-fine); }
/* 锁着的时候控制条没有意义 */
.stage.is-locked .controls { display: none; }

/* 播放失败 / 提示条 */
.stage-notice {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px 8px 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(20, 16, 12, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
  color: rgba(247, 243, 234, .92);
  font-size: 12px;
  line-height: 1.4;
}
.stage-notice svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--gold-on-dark); opacity: .9; }
.stage-notice span { flex: 0 1 auto; min-width: 0; }
.stage-notice button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: var(--gold-on-dark);
  font-size: 12px;
  font-weight: var(--w-med);
  transition: background-color .16s var(--ease), scale .16s var(--ease);
}
.stage-notice button:active { scale: .96; }

/* 断点续播提示 */
.resume {
  position: absolute;
  left: var(--s3); right: var(--s3);
  bottom: 88px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s2) var(--s2) var(--s3);
  border-radius: var(--r-pill);
  background: rgba(24, 19, 14, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #f6f1e8;
  font-size: var(--fs-fine);
  animation: rise .3s var(--ease) both;
}
.resume p { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume b { font-weight: var(--w-semi); font-variant-numeric: tabular-nums; }
.resume .resume-go {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  background: var(--gold-on-dark);
  color: #241a0c;
  font-size: var(--fs-fine);
  font-weight: var(--w-semi);
  transition: scale .16s var(--ease);
}
.resume .resume-go:active { scale: .96; }
.resume .resume-x {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(246, 241, 232, .72);
}
.resume .resume-x:active { scale: .94; }

/* 手势提示 */
.gesture-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  translate: -50% -50%;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  background: rgba(20, 16, 12, .74);
  color: #f7f2e9;
  font-size: var(--fs-fine);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: hint-fade .7s var(--ease) both;
}

/* 播完的"下一集"卡片 */
.endcard {
  position: absolute;
  right: var(--s3); bottom: 84px; left: var(--s3);
  z-index: 6;
  padding: var(--s3) var(--s4);
  border-radius: var(--r3);
  background: rgba(26, 21, 16, .93);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 16px 40px -18px rgba(0, 0, 0, .8);
  color: #f6f1e8;
  animation: rise .32s var(--ease) both;
}
.endcard-p { font-size: var(--fs-fine); color: rgba(246, 241, 232, .62); margin-bottom: var(--s1); }
.endcard-t {
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.endcard-a { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.endcard-a .btn {
  min-height: 38px;
  padding: 0 var(--s4);
  font-size: var(--fs-fine);
}

/* ---------- 6. 控制条 ---------- */
.controls {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  z-index: 4;
  padding: var(--s2) var(--s2) 2px;
  background: linear-gradient(to top, rgba(10, 8, 6, .88) 8%, rgba(10, 8, 6, .55) 58%, rgba(10, 8, 6, 0) 100%);
  color: #f7f3ea;
  opacity: 0;
  translate: 0 6px;
  transition: opacity .2s var(--ease), translate .2s var(--ease);
  pointer-events: none;
}
.stage.show-controls .controls,
.stage.is-paused .controls { opacity: 1; translate: 0; pointer-events: auto; }

/* 进度条：视觉 3px，命中区 22px */
.ctl-bar {
  position: relative;
  height: 22px;
  margin: 0 var(--s1);
  cursor: pointer;
  touch-action: none;
}
.ctl-track {
  position: absolute;
  top: 50%; right: 0; left: 0;
  height: 3px;
  translate: 0 -50%;
  border-radius: 2px;
  background: rgba(255, 255, 255, .24);
  transition: height .14s var(--ease);
}
.ctl-buffer,
.ctl-fill {
  position: absolute;
  top: 50%; left: 0;
  height: 3px;
  translate: 0 -50%;
  border-radius: 2px;
  transition: height .14s var(--ease);
}
.ctl-buffer { background: rgba(255, 255, 255, .36); width: 0; }
.ctl-fill { background: var(--gold-on-dark); width: 0; }
.ctl-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px; height: 12px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .14s var(--ease), scale .14s var(--ease);
}
.ctl-bar:hover .ctl-track,
.ctl-bar:hover .ctl-buffer,
.ctl-bar:hover .ctl-fill,
.ctl-bar.is-drag .ctl-track,
.ctl-bar.is-drag .ctl-buffer,
.ctl-bar.is-drag .ctl-fill { height: 5px; }
.ctl-bar:hover .ctl-thumb,
.ctl-bar.is-drag .ctl-thumb { opacity: 1; }
.ctl-bar.is-drag .ctl-thumb { scale: 1.25; }

.ctl-row {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 0 var(--s1) var(--s1);
}
.ctl-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r2);
  color: currentColor;
  opacity: .92;
  transition: opacity .14s var(--ease), scale .14s var(--ease), background-color .14s var(--ease);
}
.ctl-btn:hover { opacity: 1; background: rgba(255, 255, 255, .10); }
.ctl-btn:active { scale: .92; }
.ctl-btn svg { width: 19px; height: 19px; }
.ctl-btn.is-off { opacity: .5; }

.ctl-time {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-left: var(--s2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-fine);
  letter-spacing: .01em;
  color: rgba(247, 243, 234, .92);
}
.ctl-time i { font-style: normal; color: rgba(247, 243, 234, .42); }
.ctl-spacer { flex: 1 1 auto; }

/* ---------- 6.1 未播放态：只有封面 + 一个播放键 + 一行轻提示 ---------- */
/* 控制条和中间播放键同时在屏上是两套控件，很乱；没点播放之前只留一个键 */
.stage.is-idle .controls {
  opacity: 0;
  translate: 0 6px;
  pointer-events: none;
}
.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(16, 12, 9, .52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(246, 241, 232, .92);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.stage.is-idle .stage-hint { opacity: 1; }
.stage.is-locked .stage-hint { display: none; }

/* ---------- 6.2 微信内：用系统原生播放器，自己的控制条让位 ---------- */
/* 老板的话：微信最后只能是原生播放器。两套控件同屏 = 客户点哪个都不对 */
.stage.is-native .controls { display: none; }
.stage.is-native .stage-hint { display: none; }
/* 原生播放器自带中间播放键，我们的不再叠上去（未播放时留一个，方便点开） */
.stage.is-native.is-playing .stage-center { display: none; }
.stage.is-native .stage-poster { opacity: 0; }

/* 打开弹层时把视频藏起来（iOS 微信里 video 层级高于 DOM，会把弹层盖住） */
.stage video.is-covered {
  visibility: hidden;
  opacity: 0;
}

/* 全屏时铺满 */
.stage:fullscreen { max-height: none; height: 100dvh; width: 100vw; }
.stage:-webkit-full-screen { max-height: none; height: 100%; }

/* 会员快到期的一条提示（只在前 3 天出现） */
.expire-note {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  padding: var(--s2) var(--gutter);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-fine);
  border-bottom: 1px solid var(--gold-line);
}
.expire-note svg { flex: 0 0 auto; width: 14px; height: 14px; }
.expire-note span { flex: 1 1 auto; min-width: 0; }
.expire-note b { font-variant-numeric: tabular-nums; font-weight: var(--w-semi); }
.expire-note button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  background: var(--gold-solid);
  color: #fff;
  font-size: var(--fs-fine);
  font-weight: var(--w-semi);
  transition: scale .16s var(--ease);
}
.expire-note button:active { scale: .96; }

/* ---------- 7. 免费群横幅（一条，不是卡片） ---------- */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 var(--gutter);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-fine);
  color: var(--fg-2);
}
.banner-icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.banner-icon svg { width: 14px; height: 14px; }
.banner-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--fg);
  font-size: var(--fs-fine);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-go {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-fine);
  font-weight: var(--w-semi);
  transition: scale .16s var(--ease), background-color .16s var(--ease);
}
.banner-go:active { scale: .96; }
.banner-x {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-right: calc(var(--s1) * -1);
  border-radius: 50%;
  color: var(--fg-3);
  transition: scale .16s var(--ease), color .16s var(--ease);
}
.banner-x:active { scale: .92; color: var(--fg-2); }

/* 免费集播完 → 高亮一次 */
.banner.is-hot { animation: hot 1.2s var(--ease) 2; }
.banner.is-hot .banner-text { color: var(--gold-deep); font-weight: var(--w-semi); }
.banner.is-hot .banner-icon { background: var(--gold-solid); color: #fff; }

@keyframes hot {
  0%, 100% { background: transparent; }
  42% { background: rgba(169, 118, 43, .10); }
}

/* ---------- 8. 集信息 ---------- */
/* 一行说清是什么：第 3 集 · 他叫了我一声姐 [免费]　　38:56 */
.ep-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s3);
}
.ep-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 17.5px;
  font-weight: var(--w-semi);
  line-height: 1.35;
  letter-spacing: .005em;
}
.ep-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-num {
  color: var(--fg-2);
  font-weight: var(--w-med);
  font-variant-numeric: tabular-nums;
}
.ep-dur {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--fg-2);
}
.tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--w-semi);
  letter-spacing: .02em;
  translate: 0 -1px;
}
.tag svg { width: 9px; height: 9px; }
.tag-free { background: rgba(27, 23, 18, .07); color: var(--fg-2); }
.tag-vip { background: var(--gold-soft); color: var(--gold-deep); }

/* 上一集 / 下一集 / 继续看：三个都在首屏，前两个按内容宽，第三个吃剩下的 */
.ep-nav {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: 0 var(--s3);
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font-size: var(--fs-fine);
  font-weight: var(--w-med);
  white-space: nowrap;
  transition: scale .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.btn:active { scale: .96; }
.btn:hover { border-color: var(--fg-3); }
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--fg-3);
  border-color: var(--line-2);
  background: transparent;
  cursor: not-allowed;
}
.btn[disabled]:active,
.btn[aria-disabled="true"]:active { scale: 1; }
.btn-ghost { background: transparent; }
.btn-primary {
  border-color: transparent;
  background: var(--fg);
  color: #fbf8f2;
  font-weight: var(--w-semi);
}
.btn-primary:hover { border-color: transparent; background: #241e17; }
.btn-gold {
  border-color: transparent;
  background: var(--gold-solid);
  color: #fff;
  font-weight: var(--w-semi);
}
.btn-gold:hover { border-color: transparent; background: #96671f; }
.btn-block { width: 100%; }
.btn-lock { color: var(--gold-deep); border-color: var(--gold-line); background: var(--gold-soft); }

/* ---------- 9. 选集 ---------- */
.ep-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s6);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-2);
}
.ep-list-head h2 {
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
}
.ep-list-head span {
  font-size: var(--fs-fine);
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
  /* 底部留出浮标的位置：最后一排能完整滚到客服浮标上方，不被压住 */
  padding-bottom: 72px;
}

.ep-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* 按钮默认是"缩到内容宽"，这里必须撑满整列，否则格子又小又难点 */
  width: 100%;
  min-height: 52px;
  padding: var(--s1);
  border-radius: var(--r1);
  border: 1px solid var(--line);
  background: var(--card);
  transition: scale .14s var(--ease), border-color .14s var(--ease), background-color .14s var(--ease);
}
.ep-cell:active { scale: .96; }
/* 免费集：不写字，左上角一个小点就够（12 个格子写 12 遍"免费"全是噪声） */
.ep-cell.is-free::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-3);
}
.ep-cell.is-current.is-free::after { background: rgba(255, 255, 255, .72); }
.ep-cell-num {
  font-size: var(--fs-body);
  font-weight: var(--w-med);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ep-cell-sub {
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--fg-3);
}
/* 当前集：实底，白字 */
.ep-cell.is-current {
  border-color: var(--fg);
  background: var(--fg);
}
.ep-cell.is-current .ep-cell-num { color: #fff; font-weight: var(--w-semi); }
.ep-cell.is-current .ep-cell-sub { color: rgba(255, 255, 255, .68); }
/* 锁集：不灰，金边 + 金色副标，一眼看清"这是什么、怎么开" */
.ep-cell.is-locked {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}
.ep-cell.is-locked .ep-cell-num { color: var(--gold-deep); }
.ep-cell.is-locked .ep-cell-sub {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-deep);
  font-weight: var(--w-semi);
}
.ep-cell.is-locked .ep-cell-sub svg { width: 11px; height: 11px; }
.ep-cell.is-current.is-locked { background: var(--gold-solid); border-color: var(--gold-solid); }
.ep-cell.is-current.is-locked .ep-cell-num { color: #fff; }
.ep-cell.is-current.is-locked .ep-cell-sub { color: rgba(255, 255, 255, .82); }
/* 未转码好 */
.ep-cell.is-soon { border-style: dashed; color: var(--fg-3); }

.more-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: var(--s3);
  border-radius: var(--r2);
  border: 1px dashed var(--line);
  color: var(--fg-2);
  font-size: var(--fs-fine);
  transition: scale .16s var(--ease), border-color .16s var(--ease);
}
.more-btn:active { scale: .98; }
.more-btn:hover { border-color: var(--fg-3); }

.list-hint {
  margin-top: var(--s3);
  font-size: var(--fs-fine);
  color: var(--fg-3);
  text-wrap: pretty;
}

/* ---------- 10. 客服浮标 ---------- */
.fab {
  position: fixed;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 253, 248, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-2);
  color: var(--fg);
  transition: scale .16s var(--ease), box-shadow .16s var(--ease);
}
.fab:active { scale: .94; }
.fab svg { width: 19px; height: 19px; color: var(--gold); }
/* 图标下面那句"客服"只给读屏，眼睛看到的是一个干净的圆 */

/* ---------- 11. 弹层 ---------- */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  max-height: 90dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r4) var(--r4) 0 0;
  background: var(--paper);
  box-shadow: var(--sh-sheet);
  color: var(--fg);
  overflow: hidden;
  /* 默认状态（关闭动画的终点） */
  translate: 0 100%;
  opacity: 0;
  transition: translate .3s var(--ease), opacity .22s var(--ease);
}
.sheet[open] {
  translate: 0 0;
  opacity: 1;
}
.sheet[open].is-closing {
  translate: 0 100%;
  opacity: 0;
}
.sheet::backdrop {
  background: rgba(22, 17, 12, .52);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity .24s var(--ease);
}
.sheet.is-closing::backdrop { opacity: 0; }

.sheet-inner {
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s5) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.sheet-grab {
  width: 36px; height: 4px;
  margin: 0 auto var(--s4);
  border-radius: 2px;
  background: var(--line);
}

.sheet-x {
  position: absolute;
  top: var(--s3); right: var(--s3);
  z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--fg-2);
  transition: scale .16s var(--ease), background-color .16s var(--ease);
}
.sheet-x:active { scale: .92; background: rgba(27, 23, 18, .06); }

.sheet h2 {
  padding-right: var(--s8);
  font-size: var(--fs-title);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  letter-spacing: .005em;
  text-wrap: balance;
}
.sheet-sub {
  margin-top: var(--s1);
  font-size: var(--fs-fine);
  color: var(--fg-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 两档（结构是清单行，不是卡片堆叠） */
.plans {
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
}
.plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 64px;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background-color .16s var(--ease);
}
.plan-main { flex: 1 1 auto; min-width: 0; }
.plan-name {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
  line-height: 1.35;
}
.plan-note {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-fine);
  color: var(--fg-2);
}
.plan-price {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  /* 价格是这一屏的主角，比正文大两档才像"要付的钱" */
  font-size: 26px;
  font-weight: var(--w-semi);
  letter-spacing: -.02em;
  color: var(--gold-deep);
}
.plan-price i {
  font-style: normal;
  font-size: var(--fs-fine);
  font-weight: var(--w-med);
  margin-right: 1px;
}
.plan-dot {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: border-color .16s var(--ease);
}
.plan.is-active .plan-dot { border-color: var(--gold-solid); }
.plan-dot::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-solid);
  scale: 0;
  transition: scale .18s var(--ease);
}
.plan.is-active .plan-dot::after { scale: 1; }

/* 这句是消除"两档差在哪"的唯一说明，值得占一块背景色 */
.plans-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--r1);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  color: var(--gold-deep);
  font-size: 13.5px;
  font-weight: var(--w-med);
  line-height: 1.5;
}
.plans-note svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; }

/* 付款区 */
.pay {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-2);
}
.pay-inner {
  display: flex;
  gap: var(--s4);
  align-items: center;
}
.qr-card {
  flex: 0 0 auto;
  padding: 10px;
  border-radius: var(--r3);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.qr-card img { width: 118px; height: 118px; border-radius: 6px; }
.qr-card.is-empty {
  display: grid; place-items: center;
  width: 138px; height: 138px;
  background: var(--line-2);
  color: var(--fg-3);
  font-size: var(--fs-fine);
  text-align: center;
}
.pay-guide { flex: 1 1 auto; min-width: 0; }
.pay-guide h3 {
  font-size: var(--fs-body);
  font-weight: var(--w-semi);
  line-height: 1.4;
}
.pay-guide p {
  margin-top: var(--s1);
  font-size: var(--fs-fine);
  color: var(--fg-2);
  line-height: 1.55;
  text-wrap: pretty;
}
.pay-actions { margin-top: var(--s4); display: grid; gap: var(--s2); }
/* 收钱那颗按钮：比普通按钮高、字大一点，手指一按就中 */
.pay-actions .btn {
  min-height: 52px;
  font-size: 16px;
  letter-spacing: .02em;
}
.pay-done {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r2);
  background: rgba(31, 107, 70, .08);
  color: #1f6b46;
  font-size: var(--fs-fine);
  line-height: 1.6;
}
.pay-done b { font-weight: var(--w-semi); }

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-fine);
  color: var(--fg-2);
}
.sheet-foot button {
  color: var(--gold-deep);
  font-size: var(--fs-fine);
  font-weight: var(--w-semi);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 3px;
  min-height: 32px;
}

/* 通用二维码弹层（免费群 / 客服） */
.qr-sheet-body { text-align: center; }
.qr-sheet-body .qr-card { display: inline-block; margin-top: var(--s5); }
.qr-sheet-body .qr-card img { width: 196px; height: 196px; }
.qr-sheet-body h2 { padding: 0; }
.qr-sheet-body .sheet-sub { margin-top: var(--s2); white-space: normal; text-wrap: pretty; }
.qr-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s3);
  font-size: var(--fs-fine);
  color: var(--fg-2);
}
.qr-tip svg { width: 13px; height: 13px; color: var(--gold); }

/* ---------- 12. toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: min(86vw, 420px);
  padding: var(--s3) var(--s4);
  border-radius: var(--r2);
  background: rgba(24, 19, 14, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f6f1e8;
  font-size: var(--fs-fine);
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  translate: -50% 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), translate .2s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- 13. 骨架 / 空态 / 错误 ---------- */
.skeleton {
  border-radius: var(--r1);
  background: linear-gradient(100deg, var(--line-2) 30%, #f7f4ee 46%, var(--line-2) 62%);
  background-size: 240% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}
.sk-title { height: 19px; width: 62%; margin-bottom: var(--s2); }
.sk-line { height: 13px; width: 84%; }
.sk-line + .sk-line { margin-top: var(--s2); }
.sk-stage { background: var(--stage); }
.sk-stage .skeleton { background: linear-gradient(100deg, #221b15 30%, #2c241c 46%, #221b15 62%); background-size: 240% 100%; }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 60dvh;
  padding: var(--s8) var(--gutter);
  text-align: center;
}
.state-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(27, 23, 18, .06);
  color: var(--fg-2);
}
.state-mark svg { width: 20px; height: 20px; }
.state h2 {
  font-size: var(--fs-title);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.state p {
  max-width: 30ch;
  font-size: var(--fs-fine);
  color: var(--fg-2);
  line-height: 1.65;
  text-wrap: pretty;
}
.state-actions { display: flex; gap: var(--s2); margin-top: var(--s2); }
.state-actions .btn { min-width: 112px; }

/* ---------- 14. 片库 ---------- */
.lib-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s5) var(--gutter) var(--s8);
}
.lib-head h1 {
  font-size: var(--fs-title);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  letter-spacing: .005em;
}
.lib-head p {
  margin-top: var(--s2);
  font-size: var(--fs-fine);
  color: var(--fg-2);
  text-wrap: pretty;
}
.search {
  position: relative;
  margin-top: var(--s4);
}
.search svg {
  position: absolute;
  top: 50%; left: var(--s3);
  translate: 0 -50%;
  width: 16px; height: 16px;
  color: var(--fg-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 var(--s6) 0 var(--s8);
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-body);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.search input::placeholder { color: var(--fg-3); }
.search input:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(169, 118, 43, .12);
}
.search-clear {
  position: absolute;
  top: 50%; right: var(--s2);
  translate: 0 -50%;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--fg-3);
}
.search-clear:active { scale: .92; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
  margin-top: var(--s5);
}

.tile {
  display: block;
  border-radius: var(--r2);
  text-align: left;
  transition: scale .16s var(--ease);
}
.tile:active { scale: .98; }
.tile-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--stage-2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.tile-poster img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding-top: var(--s2); }
.tile-title {
  font-size: var(--fs-body);
  font-weight: var(--w-med);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-meta {
  margin-top: 2px;
  font-size: var(--fs-fine);
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.tile-badge {
  position: absolute;
  top: var(--s2); left: var(--s2);
  padding: 2px var(--s2);
  border-radius: 4px;
  background: rgba(24, 19, 14, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #f6f1e8;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* 锁定态：看得见，但摸不到 */
.lib-lock-head {
  margin-top: var(--s5);
  padding: var(--s4);
  border-radius: var(--r3);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.lib-lock-head h2 {
  font-size: var(--fs-title);
  font-weight: var(--w-semi);
  line-height: var(--lh-tight);
  color: var(--gold-deep);
  text-wrap: balance;
}
.lib-lock-head p {
  margin-top: var(--s2);
  font-size: var(--fs-fine);
  color: #6b4f1f;
  line-height: 1.6;
}
.lib-lock-head .btn { margin-top: var(--s4); }

/* 锁定态：看得见形状，看不见内容 —— 不做成一堵白墙 */
.ghost-grid { margin-top: var(--s5); }
.ghost { position: relative; }
.ghost-poster {
  display: grid;
  place-items: center;
  background: var(--stage-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ghost-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px);
}
.ghost-poster svg { position: relative; color: var(--gold-on-dark); opacity: .5; }
.ghost-text { display: grid; gap: 6px; padding-top: var(--s2); }
.ghost-bar {
  display: block;
  height: 11px;
  border-radius: 3px;
  background: var(--line);
  filter: blur(2.4px);
}
.ghost-bar.short { width: 46%; }
.ghost-cta { margin-top: var(--s6); }

/* 搜索空态 */
.lib-empty {
  margin-top: var(--s7);
  padding: var(--s6) var(--s4);
  border-radius: var(--r3);
  border: 1px dashed var(--line);
  text-align: center;
}
.lib-empty h2 { font-size: var(--fs-body); font-weight: var(--w-semi); }
.lib-empty p {
  margin-top: var(--s2);
  font-size: var(--fs-fine);
  color: var(--fg-2);
}
.lib-empty .btn { margin-top: var(--s4); }

/* ---------- 15. 落地页（index） ---------- */
.landing {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s8) var(--gutter);
}
.landing-inner { width: 100%; max-width: 420px; }
.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-fine);
  font-weight: var(--w-semi);
  letter-spacing: .16em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.brand i {
  display: block;
  width: 18px; height: 1px;
  background: var(--gold-solid);
}
.landing h1 {
  margin-top: var(--s5);
  font-size: 26px;
  font-weight: var(--w-semi);
  line-height: 1.22;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.landing p {
  margin-top: var(--s3);
  font-size: var(--fs-body);
  color: var(--fg-2);
  line-height: 1.7;
  text-wrap: pretty;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s6);
}
.landing-actions .btn { min-height: 46px; padding: 0 var(--s5); }
.landing-foot {
  margin-top: var(--s8);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-fine);
  color: var(--fg-3);
}

/* ---------- 16. 平板 / 桌面 ---------- */
@media (min-width: 720px) {
  :root {
    --fs-title: 22px;
    --fs-body: 15.5px;
    --gutter: var(--s6);
  }
  body { padding-bottom: var(--s8); }
  .topbar { height: 58px; }
  .stage { --stage-cap: 70vh; border-radius: var(--r3); }
  .banner {
    margin: 0;
    padding: var(--s3) var(--s4);
    border: 1px solid var(--line-2);
    border-top: 0;
    border-radius: 0 0 var(--r3) var(--r3);
  }
  .ep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fab { height: 46px; }

  /* 弹层在桌面上是居中的对话框 */
  .sheet {
    inset: 0;
    margin: auto;
    width: min(460px, calc(100vw - 48px));
    max-height: min(86dvh, 720px);
    border-radius: var(--r3);
    translate: 0 14px;
    scale: .985;
    transition: translate .24s var(--ease), opacity .2s var(--ease), scale .24s var(--ease);
  }
  .sheet[open] { translate: 0 0; scale: 1; }
  .sheet[open].is-closing { translate: 0 10px; scale: .99; opacity: 0; }
  .sheet-inner { max-height: min(86dvh, 720px); }
  .sheet-grab { display: none; }
  .sheet-x { top: var(--s2); right: var(--s2); }
  .resume { bottom: 76px; }
  .endcard { left: auto; width: min(360px, 60%); bottom: 76px; }
}

@media (min-width: 1000px) {
  :root { --fs-title: 24px; }
  .play-main {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(316px, 1fr);
    gap: var(--s7);
    align-items: start;
    padding: var(--s6) var(--gutter) var(--s8);
  }
  .stage-wrap { position: sticky; top: 74px; }
  .side {
    padding: 0;
    border-left: 1px solid var(--line-2);
    padding-left: var(--s7);
    margin-left: calc(var(--s7) * -0.5);
  }
  .ep-head { margin-top: 0; }
  .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lib-main { padding-top: var(--s6); }
}

/* ---------- 17. 动效开关 ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes hint-fade {
  0% { opacity: 0; scale: .94; }
  16%, 66% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
