/* ==========================================================================
   片屿 · 影院节目单（衬线 / 单一朱红 / 发丝线 / 不发光）
   取向：MUBI 的排版纪律 + Criterion 的资料馆气质 + Letterboxd 的海报密度
   ========================================================================== */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #0f0f10;
  --panel:     #121212;
  --tx:        #e9e6e0;
  --tx-dim:    #8d8880;
  --tx-faint:  #5d5952;
  --line:      #232322;
  --line-soft: #1a1a19;
  --acc:       #cf4520;   /* 朱红，海报油墨 */
  --acc-soft:  #e2633f;
  --good:      #6f9f5e;
  --bad:       #c2503c;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --gut: 20px;
  --max: 1560px;

  /* 动效令牌（见 docs/MOTION.md）：时长只允许 120 / 200 / 420ms 三档 */
  /* 动效令牌 —— 依据 LottieFiles/motion-design-skill（MIT）。
     品牌动效人格取 Premium：350–600ms、cubic-bezier(.4,0,.2,1)、不回弹。
     三档时长 + 一条签名曲线，见 docs/MOTION.md。 */
  --t-fast: 90ms;    /* 悬停等交互反馈，必须像没有延迟 */
  --t-base: 200ms;   /* 按钮/开关/图标的状态变化 */
  --t-slow: 380ms;   /* 卡片与内容进场 */
  --t-hero: 520ms;   /* 页面主角（海报、标题组） */
  --t-page: 480ms;   /* 换页转场，落在 skill 的 400–600ms 区间 */
  --ease-out: cubic-bezier(.4, 0, .2, 1);    /* Premium 签名曲线，进出场通用 */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-in: cubic-bezier(.3, 0, 1, 1);      /* 只用于退场 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc-soft); }
::selection { background: var(--acc); color: #fff; }

/* ---------- 顶栏 ---------- */

.hdr {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gut);
  height: 62px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .18em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.brand .brand-latin {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .34em;
  color: var(--tx-faint);
  text-transform: uppercase;
  font-weight: 500;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}
.search:focus-within { border-color: var(--acc); }

.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 0;
}
.search input::placeholder { color: var(--tx-faint); }

.search button {
  background: none;
  border: 0;
  color: var(--tx-dim);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0 4px 6px;
  font-family: var(--sans);
}
.search button:hover { color: var(--acc-soft); }

.user {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--tx-dim);
}
.user .who { color: var(--tx); }
.user a:hover { color: var(--acc-soft); }

/* ---------- 分类条 ---------- */

.cats {
  display: flex;
  gap: 22px;
  padding: 11px var(--gut);
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.cats a {
  color: var(--tx-dim);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cats a.on { color: var(--tx); border-color: var(--acc); }
.cats a:hover { color: var(--tx); border-color: var(--tx-faint); }

/* ---------- 主体 ---------- */

main {
  padding: 26px var(--gut) 60px;
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.15;
}
.hero p { margin: 0; color: var(--tx-dim); font-size: 13px; letter-spacing: .02em; }
.kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 14px;
}

.hero-stats { display: flex; gap: 36px; }
.hero-stats > div { display: flex; flex-direction: column; align-items: flex-start; }
.hero-stats b {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
}
.hero-stats span {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin-top: 5px;
}

.ptitle {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 6px 0 24px;
  letter-spacing: .04em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ptitle small {
  color: var(--tx-faint);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  margin-left: 12px;
  letter-spacing: .1em;
}

.empty { color: var(--tx-dim); padding: 60px 0; text-align: center; font-size: 13px; }

/* ---------- 海报网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 22px 16px;
}

.card { display: block; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #151515;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  border-radius: 2px;
  transition: border-color var(--t-fast);
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.94);
  transition: opacity var(--t-base), transform var(--t-slow) var(--ease-soft);
}
.card:hover .poster { border-color: #3a3a37; }
.card:hover .poster img { opacity: .82; transform: scale(1.02); }

.rmk {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 16px 6px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent);
  color: #d9d5cd;
  font-size: 10.5px;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dup {
  position: absolute;
  right: 5px;
  top: 5px;
  background: rgba(10, 10, 10, .78);
  border: 1px solid var(--line);
  color: var(--tx-dim);
  font-size: 9.5px;
  letter-spacing: .08em;
  padding: 1px 5px;
  border-radius: 2px;
}

.nm {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .01em;
}
.card:hover .nm { color: var(--acc-soft); }

.sub {
  color: var(--tx-faint);
  font-size: 11px;
  letter-spacing: .04em;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 分类横栏 ---------- */

.rail { margin: 0 0 40px; }

.rail-h {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 0 0 18px;
  color: var(--tx);
}
.rail-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rail .grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

/* ---------- 分页 ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 46px 0 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--tx-faint);
}
.pager a {
  color: var(--tx-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.pager a:hover { color: var(--acc-soft); border-color: var(--acc); }

/* ---------- 详情页 ---------- */

.detail { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }

.dposter { width: 232px; flex: 0 0 auto; }
.dposter img {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.dinfo { flex: 1; min-width: 300px; }
.dinfo h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.25;
}

.meta {
  color: var(--tx-dim);
  font-size: 12.5px;
  letter-spacing: .06em;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.meta .score {
  color: var(--acc-soft);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
}
.meta .tag {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 11.5px;
}
.meta .lang {
  border: 1px solid rgba(207, 69, 32, .55);
  color: var(--acc-soft);
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 11.5px;
}
.meta .tag.warn { border-style: dashed; color: var(--tx-faint); }

/* ---------- 偏好设置 ---------- */
.prefs { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 26px; }
.pref-row {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--tx-dim); margin: 14px 0 8px;
}
.pref-row select {
  background: var(--bg-soft); color: var(--tx);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 10px; font: inherit; font-size: 13px;
}

.line { font-size: 13px; margin: 7px 0; color: var(--tx); }
.line b { color: var(--tx-faint); font-weight: 400; margin-right: 10px; letter-spacing: .12em; }

.desc {
  color: var(--tx-dim);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 20px 0;
  max-width: 860px;
}

.hint { color: var(--tx-faint); font-size: 12px; line-height: 1.7; }

/* ---------- 选集 ---------- */

.eps { margin-top: 30px; }

.linegrp { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.linegrp .ln {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin-right: 6px;
  min-width: 58px;
}

.ep {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--tx-dim);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.ep:hover { color: var(--tx); border-color: var(--tx-faint); }
.ep.on { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ---------- 其他来源 ---------- */

.alts { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 26px; }
.alts h2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.altlist { display: flex; flex-wrap: wrap; gap: 10px; }
.altlist a {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--tx-dim);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.altlist a:hover { border-color: var(--acc); color: var(--tx); }
.altlist small { display: block; color: var(--tx-faint); font-size: 10.5px; letter-spacing: .08em; margin-top: 2px; }

/* ---------- 播放页 ---------- */

.playwrap { display: flex; gap: 22px; align-items: flex-start; }

.vbox {
  flex: 1;
  min-width: 0;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
}
.vbox video { width: 100%; max-height: 78vh; display: block; background: #000; }

.vmsg {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, .9);
  border: 1px solid var(--line);
  color: var(--tx-dim);
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 2px;
  display: none;
  max-width: 90%;
  text-align: center;
}

.plist {
  width: 330px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  max-height: 78vh;
  overflow: auto;
}

.plhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .04em;
}
.plhead a { color: var(--tx-faint); font-weight: 400; }
.plhead a:hover { color: var(--acc-soft); }

.pleps { padding: 14px 16px; }
.pleps .linegrp { gap: 6px; margin-bottom: 12px; }
.pleps .ep { padding: 4px 10px; font-size: 12px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-fast), border-color var(--t-fast);
}
.btn-solid { background: var(--acc); color: #fff; border: 1px solid var(--acc); }
.btn-solid:hover { background: var(--acc-soft); border-color: var(--acc-soft); color: #fff; }
.btn-line { border: 1px solid var(--line); color: var(--tx); background: none; }
.btn-line:hover { border-color: var(--tx-faint); color: var(--tx); }

/* ---------- 登录 / 注册 ---------- */

.authpage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.authbox {
  width: 100%;
  max-width: 372px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 38px 32px 32px;
}

.authbox h1 {
  font-family: var(--serif);
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .16em;
}
.authsub { color: var(--tx-faint); font-size: 12px; letter-spacing: .1em; margin: 0 0 28px; }

.authbox label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.authbox input {
  width: 100%;
  margin-top: 7px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
}
.authbox input:focus { border-color: var(--acc); }

.primary {
  width: 100%;
  background: var(--acc);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .2em;
  cursor: pointer;
  transition: background var(--t-base);
}
.primary:hover { background: var(--acc-soft); }

.authfoot { color: var(--tx-faint); font-size: 12px; margin: 22px 0 0; text-align: center; }
.authfoot a { color: var(--tx-dim); border-bottom: 1px solid var(--line); }
.authback { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--tx-faint); }

.err {
  background: rgba(207, 69, 32, .12);
  border: 1px solid rgba(207, 69, 32, .45);
  color: #e58a76;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ---------- 后台 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.stats > div { background: var(--bg-soft); padding: 18px 20px; }
.stats b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .02em;
}
.stats span { color: var(--tx-faint); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px;
}
.panel h2 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left;
  color: var(--tx-faint);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 8px; border-bottom: 1px solid var(--line-soft); color: var(--tx-dim); }

code {
  background: #161616;
  border: 1px solid var(--line-soft);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #c9c4bb;
}

.good { color: var(--good); }
.bad { color: var(--bad); }

.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  color: var(--tx);
  font-family: var(--mono);
  font-size: 13px;
  width: 74px;
  outline: none;
}
.inline input:focus { border-color: var(--acc); }
.inline .primary { width: auto; padding: 9px 22px; }

.newcodes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.newcodes code {
  background: rgba(207, 69, 32, .1);
  border-color: rgba(207, 69, 32, .45);
  color: #e0866c;
  padding: 5px 10px;
  font-size: 13px;
  letter-spacing: .1em;
}

/* ---------- 落地页 ---------- */

.land {
  display: grid;
  grid-template-columns: minmax(0, .86fr) 1.14fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 34px;
  min-height: 72vh;
}
.land-copy { max-width: 520px; padding-left: clamp(0px, 3vw, 44px); }

.land-title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--tx);
}

.land-lead {
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--tx-dim);
  max-width: 400px;
  letter-spacing: .02em;
}

.land-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.land-fine {
  margin: 20px 0 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--tx-faint);
}

/* 右侧片条：三条胶片反向轮转 */
.wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
}
.strip {
  position: relative;
  padding: 11px 0;
  background: #0c0c0c;
  border-top: 1px solid #1d1b1a;
  border-bottom: 1px solid #1d1b1a;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .85), 0 0 0 1px #080808;
}
/* 齿孔：上下各一排，像 35mm 片边 */
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-image: radial-gradient(circle at 4px 4px, #2e2a28 0 1.9px, transparent 2.1px);
  background-size: 15px 8px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.strip::before { top: 1px; }
.strip::after { bottom: 1px; }

.wall-row {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.wall-row::-webkit-scrollbar { display: none; }
.wall-row.dragging { cursor: grabbing; }
.wall-row.dragging .ps { pointer-events: none; }
.wall-row:focus-visible { outline: 1px solid var(--acc); outline-offset: -1px; }
.wall-track {
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 0 1px;
}
.ps {
  flex: 0 0 auto;
  height: clamp(84px, 11.2vw, 138px);
  aspect-ratio: 2 / 3;
  display: block;
  background: #151515;
  border-radius: 1px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8);
}
.ps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.88) brightness(.86) contrast(1.04);
  transition: filter var(--t-slow) var(--ease-out);
}
.ps:hover img { filter: none; }

.land-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0 46px;
}
.land-facts > div { background: var(--bg); padding: 20px 22px; }
.land-facts b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--tx);
  line-height: 1.25;
}
.land-facts span {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.land-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  max-width: 940px;
}
.land-about h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--tx);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.land-about p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--tx-dim);
}

.land-list { margin: 0; padding: 0; list-style: none; }
.land-list li {
  font-size: 13px;
  line-height: 1.85;
  color: var(--tx-faint);
  padding: 0 0 12px;
}
.land-list li span {
  display: block;
  font-size: 13px;
  color: var(--tx);
  letter-spacing: .04em;
  margin-bottom: 1px;
}

.land-cta {
  margin: 50px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--tx-faint);
}

/* ---------- 登录弹窗 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}
.modal.on { display: flex; }

.modal-box {
  width: 100%;
  max-width: 360px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 34px 30px 28px;
  position: relative;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--tx-faint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--tx); }

.modal-box h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .16em;
  margin: 0 0 6px;
}
.modal-box .sub { color: var(--tx-faint); font-size: 12px; letter-spacing: .1em; margin: 0 0 24px; }

.modal-box label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tx-faint);
}
.modal-box input {
  width: 100%;
  margin-top: 7px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
}
.modal-box input:focus { border-color: var(--acc); }

.modal-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--tx-faint);
  letter-spacing: .06em;
}
.modal-foot a { color: var(--tx-dim); border-bottom: 1px solid var(--line); }

/* ---------- 页脚 ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px var(--gut) 40px;
  color: var(--tx-faint);
  font-size: 11px;
  letter-spacing: .12em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .land { grid-template-columns: 1fr; gap: 30px; padding-top: 16px; min-height: 0; }
  .land-title { font-size: 46px; }
  .land-copy { max-width: none; }
  .wall { gap: 11px; }
  .ps { height: clamp(66px, 15vw, 104px); }
  .land-facts { grid-template-columns: repeat(2, 1fr); }
  .land-about { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .hdr { gap: 14px; height: 56px; }
  .brand { font-size: 17px; letter-spacing: .12em; }
  .brand .brand-latin { display: none; }
  .user { gap: 12px; }
  .search { max-width: none; }
  main { padding: 16px 14px 44px; }
  .hero { padding: 16px 0 20px; margin-bottom: 24px; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 26px; margin-top: 4px; }
  .hero-stats b { font-size: 19px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 11px; }
  .rail .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .nm { font-size: 12px; }
  .detail { gap: 20px; }
  .dposter { width: 132px; }
  .dinfo h1 { font-size: 24px; }
  .playwrap { flex-direction: column; }
  .plist { width: 100%; max-height: 42vh; }
  .ptitle { font-size: 20px; }
  .land-title { font-size: 38px; letter-spacing: .1em; }
  .land-lead { font-size: 13px; margin-bottom: 26px; }
  .land-acts { gap: 8px; }
  .btn { padding: 10px 16px; font-size: 12px; letter-spacing: .1em; }
  footer { flex-direction: column; gap: 6px; }
}

/* ---- 筛选条 ---- */
.filters { margin: 4px 0 26px; border-top: 1px solid var(--line); }
.frow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  padding: 9px 0; border-bottom: 1px solid var(--line); }
.fk { flex: 0 0 44px; font-size: 11px; letter-spacing: .3em; color: var(--tx-faint);
  text-transform: uppercase; padding-top: 3px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 2px;
  font-size: 12.5px; color: var(--tx-dim); text-decoration: none;
  border: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-base); }
.chip:hover { color: var(--tx); border-color: #2b2a28; text-decoration: none; }
.chip.on { color: var(--tx-hi); border-color: #3a3835; background: #161616; }

.rt { color: var(--acc-soft); font-weight: 600; margin-right: 7px; letter-spacing: .02em; }

.score.tm { color: var(--tx-dim); }
.score i { font-style: normal; font-size: .8em; opacity: .72; margin-left: 3px; letter-spacing: .04em; }

.rt2 { color: var(--tx-dim); font-weight: 500; }
.fnote { color: var(--tx-faint); font-size: 12px; margin-left: 10px; letter-spacing: .02em; }

/* ---- 相关推荐 ---- */
.related{margin-top:42px}
.related .rail-h{margin-bottom:14px}
.related .grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.related-play{margin:34px 0 10px;padding:0 4px}
@media (max-width:1100px){.related .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.related .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* ---- 继续观看：卡片底部进度条 ---- */
.resume .poster .rmk{top:auto;bottom:0;border-radius:0}
.pbar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(0,0,0,.55)}
.pbar i{display:block;height:100%;background:var(--acc)}
.resume .card:hover .pbar i{background:var(--acc-soft, var(--acc))}

/* ---- 详情页操作区 / 我的 ---- */
.acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0 22px}
.acts .btn{font-size:14px}
.acts .btn.on{background:var(--acc);border-color:var(--acc);color:#0b0b0b}
.acts .rate{color:var(--tx-faint);font-size:13px;display:flex;align-items:center;gap:8px;margin-left:4px}
.acts .rate select{background:#121212;color:var(--tx);border:1px solid var(--line);border-radius:2px;padding:6px 8px;font-size:13px}
.mine-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:14px;margin:8px 0 24px}
.mine-head h1{font-size:34px;margin:0}
.tabs{display:flex;gap:22px}
.tabs a{color:var(--tx-dim);font-size:14px;letter-spacing:.02em}
.tabs a.on{color:var(--tx);border-bottom:1px solid var(--acc);padding-bottom:4px}
.tabs i{font-style:normal;color:var(--tx-faint);font-size:12px;margin-left:3px}
@media (max-width:640px){.mine-head{flex-direction:column;align-items:flex-start}}

/* ---- 播放器浮层提示 ---- */
.toast{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);background:rgba(8,8,8,.82);color:#f3f0ea;font-size:15px;letter-spacing:.03em;padding:10px 16px;border-radius:3px;opacity:0;pointer-events:none;transition: opacity var(--t-base), transform var(--t-base) var(--ease-out);z-index:9}
.toast.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.playwrap{position:relative}

/* ---- 离线页 ---- */
.offline{max-width:520px;margin:14vh auto;text-align:center}
.offline h1{font-size:44px;margin:6px 0 14px}
.offline .dim{color:var(--tx-dim);margin-bottom:26px}

/* ---- 榜单 ---- */
.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding-bottom:16px;margin:10px 0 26px;flex-wrap:wrap}
.topbar h1{font-size:40px;margin:4px 0 8px}
.topbar .dim{color:var(--tx-dim);font-size:13px}
.card .poster .rank{position:absolute;left:0;top:0;background:rgba(8,8,8,.82);color:var(--acc-soft);font:600 12px/1 var(--serif);padding:5px 7px;letter-spacing:.04em;border-bottom-right-radius:2px}

/* ---- 人物页链接 ---- */
.plink{color:var(--tx);border-bottom:1px solid transparent;margin-right:8px}
.plink:hover{color:var(--acc-soft);border-bottom-color:var(--acc-soft)}

/* ---- 热搜 / 最近搜索 ---- */
.hotrow{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:-6px 0 18px}
/* 筛选 chip 的命中数与置灰、随机入口 */
.chip i { font-style: normal; font-size: 11px; opacity: .55; margin-left: 5px; letter-spacing: 0; }
.chip.off { opacity: .32; pointer-events: none; }
.chip.pick { margin-left: auto; color: var(--acc); border-color: rgba(207, 69, 32, .45); }
.chip.pick:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.ovform {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 22px 0 30px; font-size: 13px;
}
.ovform input, .ovform select {
  background: var(--bg-soft); color: var(--tx);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 7px 10px; font: inherit; font-size: 13px;
}
.ovform input { min-width: 240px; }

/* ---- M4：账号 / 统计 / 分享 ---- */
.authbox { max-width: 460px; margin: 8vh auto 0; }
.authh1 { font-size: 30px; margin: 6px 0 10px; }
.authform { display: grid; gap: 14px; margin-top: 22px; }
.authform label { display: grid; gap: 6px; font-size: 13px; color: var(--tx-dim); }
.authform input { padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 2px; color: var(--tx); font-size: 14px; }
.err { color: var(--acc); font-size: 13px; margin-top: 8px; }
.ops form { display: flex; gap: 6px; flex-wrap: wrap; }
.ops .btn { padding: 3px 8px; font-size: 12px; }
.btn.danger { border-color: rgba(207,69,32,.5); color: var(--acc); }
.tbl .bad { color: var(--acc); }
.tbl .good { color: var(--acc-soft); }
.tbl .mid { color: var(--tx-dim); }
.newpw { margin: 10px 0 18px; font-size: 13px; color: var(--tx-dim); }
.newpw code { color: var(--acc-soft); letter-spacing: .06em; font-size: 15px; }
.stats-wrap { margin-top: 26px; }
.statgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
.statgrid > div { background: var(--bg); padding: 18px 16px; display: grid; gap: 6px; }
.statgrid b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--tx-hi); }
.statgrid span { font-size: 12px; color: var(--tx-faint); letter-spacing: .04em; white-space: nowrap; }
.stats-wrap .rail-h { margin-top: 30px; }
.bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px;
  font-size: 13px; color: var(--tx-dim); }
.bars .bar { height: 8px; background: var(--bg-soft); position: relative; }
.bars .bar i { position: absolute; inset: 0 auto 0 0; background: var(--acc); }
.bars .bn { text-align: right; color: var(--tx-faint); }
.shareform { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.sharefoot { margin-top: 40px; font-size: 13px; }
@media (max-width: 900px) {
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars li { grid-template-columns: 90px 1fr 34px; }
}
.statgrid b.bad { color: var(--acc); }
.statgrid b.good { color: var(--acc-soft); }

/* 关于页 */
.about { max-width: 720px; margin: 8px 0 40px; }
.about .lead { font-size: 17px; line-height: 1.75; color: var(--tx-hi); margin: 0 0 26px; }
.about h2 {
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .04em;
  margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--tx-hi);
}
.about p { font-size: 14.5px; line-height: 1.85; color: var(--tx); margin: 0 0 12px; }
.about a { color: var(--acc-soft); }
footer a { color: inherit; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--acc-soft); border-bottom-color: var(--acc); }

/* ---- 动效层（规则见 docs/MOTION.md）----
   一页只保留一个有编排的时刻：落地页的文案与片墙依次到场。
   只动 transform / opacity；曲线不越 1；单段 50–700ms。 */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* 反向运动：主体抬起时，阴影铺开并变淡 —— 只动 transform/opacity */
@keyframes shadeSpread {
  from { opacity: .28; transform: scale(.9); }
  to   { opacity: .55; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* 主角先进：片墙位移最大（24px）、用签名曲线；文案是配角，晚 60ms 逐个跟上。
     stagger 用 60ms、总预算 240ms —— 落在 skill 的 standard 档（50–100ms / <400ms）。 */
  .strip { animation: riseIn var(--t-hero) var(--ease-out) both; }
    .strip:nth-child(2) { animation-delay: 60ms; }
    .strip:nth-child(3) { animation-delay: 120ms; }

    .land-copy > * { animation: riseIn var(--t-slow) var(--ease-out) both; }
    .land-copy > *:nth-child(1) { animation-delay: 60ms; }
    .land-copy > *:nth-child(2) { animation-delay: 120ms; }
    .land-copy > *:nth-child(3) { animation-delay: 180ms; }
    .land-copy > *:nth-child(4) { animation-delay: 240ms; }
    .land-copy > *:nth-child(5) { animation-delay: 300ms; }
}

/* 卡片与链接的悬停只用 120ms 的位移与描边；放大交给内层 img（已有的 scale(1.02)） */
.card .poster { transition: transform var(--t-fast) var(--ease-out),
                            border-color var(--t-fast); }
.card:hover .poster { transform: translateY(-2px); }
.rail a .poster { transition: transform var(--t-fast) var(--ease-out); }
.rail a:hover .poster { transform: translateY(-2px); }

/* 详情页海报的阴影层：既是视觉上的承托，也是进场时的反向运动层 */
.dposter { position: relative; }
.dposter img { position: relative; z-index: 1; }
.dposter::after {
  content: "";
  position: absolute;
  inset: 4% -5% -9% -5%;
  z-index: 0;
  border-radius: 50% / 40%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 72%);
  filter: blur(14px);
  opacity: .55;
  pointer-events: none;
}

/* ---- 详情页 / 播放页的版式与动效统一（M7，规则见 docs/MOTION.md）----
   详情页的唯一时刻：海报先到，标题与元信息各晚 60ms。播放页不做进场，
   视频必须立刻可用；它只解决「元数据加载前的高度跳动」。 */

@media (min-width: 980px) {
  .detail { gap: 44px; }
  .dposter {
    width: 248px;
    position: sticky;
    top: 84px;
  }
}

.dinfo h1 {
  font-size: 38px;
  text-wrap: balance;
  margin-bottom: 16px;
}
.dinfo .desc {
  max-width: 68ch;
  line-height: 1.85;
}
.dinfo .eps { margin-top: 34px; }

@media (prefers-reduced-motion: no-preference) {
  /* 主角：海报抬升 24px（1/3 屏以内），520ms；配角：标题 +60ms、元信息 +120ms。
     反向运动（counter-motion）：海报抬起时，它身后的阴影同时放大、变淡（20–30% 幅度）。 */
  .dposter { animation: riseIn var(--t-hero) var(--ease-out) both; }
  .dposter::after { animation: shadeSpread var(--t-hero) var(--ease-out) both; animation-delay: 60ms; }
  .dinfo h1 { animation: riseIn var(--t-slow) var(--ease-out) both; animation-delay: 60ms; }
  .dinfo .meta { animation: riseIn var(--t-slow) var(--ease-out) both; animation-delay: 120ms; }
}

/* 播放页：固定 16:9 画框，视频未就绪时不塌陷；播放列表随页滚动停靠 */
.vbox {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vbox video {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.vbox #vmsg { place-self: end center; }

@media (min-width: 980px) {
  .plist {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}

/* 章节之间的呼吸统一：其他来源 / 相关推荐 / 同片列表 */
.alts { margin-top: 56px; }
.related { margin-top: 52px; }
.alts h2,
.related .rail-h { margin-bottom: 16px; }

/* 集数很多时先给 40 个，多出来的收在「展开全部」后面（不是动效，是可读性） */
.linegrp.short a.ep:nth-of-type(n+41) { display: none; }
.linegrp.short.open a.ep:nth-of-type(n+41) { display: inline-block; }
.linegrp .more {
  border: 1px dashed var(--line);
  background: none;
  color: var(--acc-soft);
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.linegrp .more:hover { color: var(--tx); border-color: var(--acc); }

/* 榜单前三：序号用实底朱红，其余保持低调（不改变排版，只加强层级） */
.card.top3 .poster .rank {
  background: var(--acc);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 9px;
}
.card.top3 .poster { border-color: rgba(207, 69, 32, .45); }

/* ---- 页面切换：不用跨文档视图转场 ----
   曾经写过 @view-transition { navigation: auto }，与逐元素进场用
   @supports not (view-transition-name…) 互斥。问题是 Chrome 111+ 全都
   支持 view-transition-name，于是所有进场动画在 Chrome 里被整块关掉，
   现象就是「刷了没反应」。现在把转场去掉，进场动画对所有浏览器一律生效：
   换页时看到的是新页面自己的进场（卡片错峰 / 文案上浮），不是整页淡入。 */

/* ---- 卡片错峰进场（首页 rail / 榜单）----
   由 base.html 的 IntersectionObserver 驱动：每个 .grid.stagger 第一次进入视口时
   给子卡片加 .in，卡片按 --i × 60ms 逐个亮起，380ms 落位。
   首屏的那几组在 IO 回调里立刻触发，往下滚的每一组各触发一次，滚回去不重播。
   初始隐藏态挂在 .js-motion 下：没有 JS / 脚本报错 / 开了减弱动效，卡片照常可见。 */

@media (prefers-reduced-motion: no-preference) {
  .js-motion .grid.stagger > .card {
    opacity: 0;
    transform: translateY(24px);
  }
  .js-motion .grid.stagger > .card.in {
    opacity: 1;
    transform: none;
    transition: opacity var(--t-slow) var(--ease-out),
                transform var(--t-slow) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
}

/* 减弱动效：把过渡与动画压到不可感知（胶片带的停顿由 landing.html 的 JS 负责） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
