:root {
  --bg: #1c1c1e;          /* 深灰（非全黑） */
  --bg2: #151517;         /* 專題頁頂、頁尾 */
  --surface: #2a2a2d;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f3f0;
  --muted: #a4a29d;
  --accent: #e0573a;      /* 地影朱紅 */
  --gold: #ecc45c;        /* 專題標題 */
  --sans: "Helvetica Neue", "Inter", system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --pad: clamp(16px, 4vw, 64px);
  --wrap: min(1500px, calc(100vw - 2 * var(--pad)));
  --gap: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

/* ----- 頂列 ----- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(env(safe-area-inset-top) + 60px);
  padding: env(safe-area-inset-top) var(--pad) 0; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  background: transparent; transition: background .25s; }
.bar.solid { background: rgba(28, 28, 30, .96); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 9px; }
.seal { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 18px; border-radius: 2px; }
.word { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 30px); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; }
.nav a { color: rgba(244, 243, 240, .62); padding: 4px 0; }
.nav a.on, .nav a:hover { color: var(--text); }
.iconbtn { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none;
  border-radius: 50%; cursor: pointer; color: var(--text); }
.iconbtn:hover { background: rgba(255,255,255,.1); }
@media (max-width: 560px) { .word { display: none; } .nav { gap: 14px; font-size: 13px; } }

/* ----- 劇照上的文字 ----- */
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, transparent 60%); }
.ph { display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-weight: 700;
  font-size: 18px; color: rgba(255,255,255,.4); background: radial-gradient(120% 120% at 0% 0%, #36322f, #1f1f22); }

/* ----- 橫列（每列 4 張） ----- */
.shelf { width: var(--wrap); margin: 0 auto; padding-top: 30px; }
.shead { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.shead h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shead a.all { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.shead a.all:hover { color: var(--text); }
.shead .sub { font-size: 13px; color: var(--muted); }
.trackwrap { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 680px) { .track { grid-auto-columns: 78%; } }
.arrow { position: absolute; top: 0; bottom: 0; width: 46px; border: 0; cursor: pointer; z-index: 2; color: #fff;
  font-size: 34px; line-height: 1; opacity: 0; transition: opacity .2s; display: grid; place-items: center; }
.arrow.l { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent); }
.arrow.r { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.6), transparent); }
.trackwrap:hover .arrow { opacity: 1; }
.arrow[disabled] { display: none; }
@media (hover: none) { .arrow { display: none; } }

.card { position: relative; display: block; min-width: 0; scroll-snap-align: start; }
.card .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.card.tall .frame { aspect-ratio: 8 / 9; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card .ph { width: 100%; height: 100%; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(12px, 1.4vw, 20px) clamp(12px, 1.2vw, 16px); }
.cap .kind { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; opacity: .85; margin-bottom: 2px; }
.cap .ct { display: block; font-size: clamp(17px, 1.55vw, 23px); font-weight: 700; line-height: 1.12; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.card.tall .cap .ct { font-size: clamp(20px, 1.9vw, 28px); }
.cap .cm { display: block; font-size: 11.5px; margin-top: 3px; letter-spacing: .03em; text-transform: uppercase; opacity: .92;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .cm b { font-weight: 700; }
.note { font-size: 13px; color: var(--muted); margin: 8px 2px 0; line-height: 1.55; }

/* ----- 網格 ----- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px var(--gap); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.grid.tight { row-gap: var(--gap); }
.empty { color: var(--muted); padding: 40px 0; }

/* ----- 首頁主視覺／影片頁主視覺 ----- */
.hero { position: relative; height: max(560px, min(100vh, 62vw)); overflow: hidden; background: #000; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img, .hero .slide .ph { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 28%),
              linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 42%),
              linear-gradient(90deg, rgba(0,0,0,.35) 0%, transparent 45%); }
.hero .in { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: var(--wrap);
  display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 88px) 0 clamp(36px, 7vh, 76px); transition: opacity .45s; }
.hero .in.fade { opacity: 0; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 10px; opacity: .9; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; font-weight: 700; text-transform: uppercase;
  max-width: 14em; text-shadow: 0 2px 24px rgba(0,0,0,.3); overflow-wrap: anywhere; }
.hero .alt { margin: 10px 0 0; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; opacity: .9; }
.hero .low { margin-top: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px clamp(24px, 6vw, 110px); align-items: end; }
@media (max-width: 760px) { .hero .low { grid-template-columns: 1fr; } }
.by { font-size: 12.5px; line-height: 1.35; text-transform: uppercase; letter-spacing: .03em; }
.by b { font-weight: 700; }
.by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acts { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.watch { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px 0 20px; border-radius: 99px; border: 0;
  background: #fff; color: #111; font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer; }
.watch:hover { background: #e9e7e2; }
.round { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.6px solid rgba(255,255,255,.85);
  font-size: 15px; font-weight: 700; }
.round:hover { background: rgba(255,255,255,.15); }
.blurb { font-size: 14px; line-height: 1.55; max-width: 780px; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.dots { position: absolute; right: var(--pad); bottom: clamp(36px, 7vh, 76px); z-index: 2; display: flex; gap: 7px; }
.dots button { width: 22px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button.on { background: #fff; }
@media (max-width: 760px) { .dots { bottom: auto; top: calc(env(safe-area-inset-top) + 70px); } }

/* ----- 影片頁的資訊列 ----- */
.facts { width: var(--wrap); margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 14px 46px; font-size: 13.5px; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.facts dd { margin: 0; }
.parts { width: var(--wrap); margin: 22px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.part { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 0; background: var(--surface); cursor: pointer; text-align: left; }
.part:hover { background: #343438; }
.part span { color: var(--muted); font-size: 13px; }

/* ----- 一般頁面 ----- */
.page { width: var(--wrap); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 92px) 0 70px; }
.page h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .01em; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: #111; border-color: var(--text); }
.flabel { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .14em; margin-right: 4px; }

/* ----- 專題頁頂 ----- */
.chero { position: relative; background: var(--bg2); min-height: min(76vh, 720px); display: flex; overflow: hidden; }
.chero .art { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; }
.chero .art img { width: 100%; height: 100%; object-fit: cover; }
.chero .art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg2) 0%, rgba(21,21,23,.6) 30%, transparent 60%),
              linear-gradient(0deg, var(--bg2) 0%, transparent 30%); }
.chero .in { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 92px) 0 40px; }
.chero .eyebrow { font-size: 13px; letter-spacing: .1em; margin: 0 0 22px; }
.chero h1 { margin: 0; color: var(--gold); font-size: clamp(34px, 4vw, 56px); line-height: 1.05; text-transform: uppercase; max-width: 11em; }
.chero .desc { max-width: 430px; font-size: 16px; line-height: 1.6; margin: 22px 0 0; white-space: pre-line; }
.chero .count { color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 760px) { .chero .art { width: 100%; opacity: .45; } }
.ccard .mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.ccard .mosaic > * { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.ccard .mosaic.n1 > :first-child { grid-column: span 3; }
.ccard .mosaic.n2 > :first-child { grid-column: span 2; }
.ccard .t { font-size: 16px; font-weight: 700; margin-top: 10px; text-transform: uppercase; }
.ccard .c { color: var(--muted); font-size: 13px; margin-top: 1px; }
.ccard:hover .t { color: var(--gold); }

/* ----- 搜尋 ----- */
.search { position: fixed; inset: 0; z-index: 40; background: rgba(22,22,24,.98); padding: calc(env(safe-area-inset-top) + 18px) var(--pad) 30px; overflow-y: auto; }
.searchbox { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; max-width: 900px; margin: 0 auto; }
.searchbox input { flex: 1; min-width: 0; background: none; border: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; padding: 8px 0; outline: none; }
.results { max-width: 900px; margin: 18px auto 0; display: grid; gap: 4px; }
.res { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; padding: 8px; }
.res:hover, .res:focus-visible { background: var(--surface); }
.res .frame { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.res .frame img, .res .frame .ph { width: 100%; height: 100%; object-fit: cover; }
.res .t { font-weight: 700; }
.res .d { color: var(--muted); font-size: 13.5px; }
.res.dir .t::before { content: "導演　"; color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .1em; }

/* ----- 播放器 ----- */
.player { position: fixed; inset: 0; z-index: 50; background: #000; --cue: 2.6vh; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player .ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .3s;
  pointer-events: none; }
.player.idle .ui { opacity: 0; }
.player.idle { cursor: none; }
.player .ui > * { pointer-events: auto; }
.ptop { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 16px 30px;
  background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); }
.ptop .iconbtn { margin: 0; width: 34px; height: 34px; }
.ptitle { font-size: 14px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbot { padding: 30px 16px calc(env(safe-area-inset-bottom) + 10px); background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.seek { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek .rail, .seek .buf, .seek .done { position: absolute; left: 0; height: 3px; border-radius: 2px; transition: height .12s; }
.seek .rail { right: 0; background: rgba(255,255,255,.25); }
.seek .buf { background: rgba(255,255,255,.4); }
.seek .done { background: #fff; }
.seek .knob { position: absolute; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.seek:hover .knob, .seek.drag .knob { transform: scale(1); }
.seek:hover .rail, .seek:hover .buf, .seek:hover .done { height: 5px; }
.ctrl { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; }
.ctrl button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 0; background: none; color: #fff;
  cursor: pointer; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.ctrl button:hover, .ctrl button[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.ctrl .time { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: .85; }
.ctrl .sp { flex: 1; }
.ctrl .tag { border: 1.3px solid rgba(255,255,255,.8); border-radius: 3px; padding: 0 5px; height: 20px; line-height: 17px; font-size: 11px; }
.ctrl input[type=range] { width: 76px; accent-color: #fff; }
@media (max-width: 560px) { .ctrl input[type=range] { display: none; } }
.menu { position: absolute; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 58px); min-width: 200px; max-height: 60vh; overflow: auto;
  background: rgba(24,24,26,.96); border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.menu h4 { margin: 6px 8px 4px; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; border-radius: 4px; font-size: 13px; }
.menu button:hover { background: rgba(255,255,255,.08); }
.menu button::before { content: ""; width: 12px; flex: none; }
.menu button.on::before { content: "✓"; }
.menu button small { color: var(--muted); margin-left: auto; padding-left: 10px; }
.menu .sizes { display: flex; gap: 4px; padding: 2px 4px 4px; }
.menu .sizes button { justify-content: center; border: 1px solid var(--line); }
.menu .sizes button::before { display: none; }
.menu .sizes button.on { background: var(--text); color: #111; }
video::cue { font-family: var(--sans); font-size: var(--cue); line-height: 1.3; background: rgba(0,0,0,.45); color: #fff; }
.pmsg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; background: rgba(0,0,0,.6); padding: 8px 14px; border-radius: 4px; }

footer { color: var(--muted); font-size: 12px; width: var(--wrap); margin: 50px auto 0; padding: 24px 0 50px; border-top: 1px solid var(--line); }
.cardbox { min-width: 0; scroll-snap-align: start; }

/* ----- 影片介紹頁 ----- */
.fhero { height: max(600px, 100vh); }
.fhero .in { padding-bottom: 28px; }
.ftop { display: flex; gap: 14px; flex-wrap: wrap; }
.flag { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flag:hover { text-decoration: underline; text-underline-offset: 3px; }
.resume { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 24px 0 20px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 99px; font-weight: 700; font-size: 15.5px;
  letter-spacing: .04em; background: rgba(0,0,0,.18); backdrop-filter: blur(2px); white-space: nowrap; }
.resume:hover { background: rgba(255,255,255,.16); }
.resume.off { opacity: .8; cursor: default; font-weight: 600; }
.fcols { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 3.5vw, 56px); align-items: end; }
@media (max-width: 900px) { .fcols { grid-template-columns: 1fr; } .resume { top: 38%; } }
.fmain h1 { font-size: clamp(28px, 2.6vw, 38px); max-width: none; }
.orig { margin: 4px 0 0; font-size: 16px; font-weight: 700; text-transform: uppercase; opacity: .9; }
.by2 { margin: 12px 0 0; font-size: 14px; line-height: 1.45; }
.by2 b { font-weight: 700; }
.genre { margin: 8px 0 0; font-size: 13.5px; color: rgba(244,243,240,.72); }
.icons { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: 13px; color: rgba(244,243,240,.85); }
.icons .hd { border: 1.3px solid currentColor; border-radius: 2px; padding: 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; }
.prog { margin-top: 14px; height: 3px; background: rgba(255,255,255,.3); max-width: 350px; }
.prog i { display: block; height: 100%; background: #fff; }
.fcol h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.fcol p { margin: 0; font-size: 13.5px; line-height: 1.55; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.chev { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 30px; line-height: 1; opacity: .8; }
.fbar { position: fixed; left: 0; right: 0; top: 0; z-index: 25; background: #2a2a2d; border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .25s; }
.fbar.show { transform: none; }
.fbin { width: var(--wrap); margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.fbin span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(244,243,240,.75); }
.fbin b { color: var(--text); }
.fbin a { font-weight: 700; color: var(--gold); letter-spacing: .06em; }

/* ----- 資料庫 ----- */
.dbq { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700;
  padding: 10px 0; margin: 4px 0 20px; outline: none; }
.dbq:focus { border-bottom-color: var(--text); }
.dbpage .filters { display: grid; gap: 8px; }
.dbl, .dbd { display: grid; border-top: 1px solid var(--line); }
.dbh, .dbr { display: grid; grid-template-columns: 56px minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .7fr) 98px; gap: 14px; align-items: center;
  padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dbh { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.dbr:hover { background: rgba(255,255,255,.04); }
.dbr .y { color: var(--muted); font-variant-numeric: tabular-nums; }
.dbr .tt b { display: block; font-weight: 700; font-size: 14.5px; }
.dbr .tt i { display: block; font-style: normal; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-top: 1px; }
.dbr .dn, .dbr .co, .dbr .k { color: rgba(244,243,240,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbr .st { font-size: 12px; color: var(--muted); text-align: right; }
.dbr .st .ok { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.dbr.na .tt b { color: rgba(244,243,240,.78); }
.dbd .dbr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 70px 110px; }
@media (max-width: 760px) {
  .dbh { display: none; }
  .dbr { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .dbr .dn, .dbr .co, .dbr .k { display: none; }
  .dbd .dbr { grid-template-columns: minmax(0, 1fr) auto; }
  .dbd .dbr .co, .dbd .dbr .k { display: none; }
}
.more { margin: 20px auto 0; display: block; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 8px 20px; cursor: pointer; color: var(--muted); }
.more:hover { color: var(--text); border-color: var(--muted); }

/* ----- 淡入淡出 ----- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slowIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
#app { transition: opacity .16s ease; }
#app.leaving { opacity: 0; }
#app.entering { animation: fadeIn .35s ease both; }
#app.entering .hero .slide.on img, #app.entering .chero .art img { animation: slowIn 1.1s ease both; }
#app.entering .fhero .in > *, #app.entering .fhero .fcols > *, #app.entering .chero .in > * { animation: fadeUp .7s ease both; }
#app.entering .fhero .fcols > :nth-child(1) { animation-delay: .15s; }
#app.entering .fhero .fcols > :nth-child(2) { animation-delay: .3s; }
#app.entering .fhero .fcols > :nth-child(3) { animation-delay: .45s; }
#app.entering .fhero .resume { animation: fadeIn .9s .35s ease both; }
#app.entering .chero .in > :nth-child(2) { animation-delay: .12s; }
#app.entering .chero .in > :nth-child(n+3) { animation-delay: .24s; }
#app.entering .shelf { animation: fadeUp .6s .2s ease both; }
.hero .in > * { animation: fadeUp .6s ease both; }
@media (prefers-reduced-motion: reduce) { #app, #app *, .hov { animation: none !important; transition: none !important; } }

/* ----- 跳出式介紹卡 ----- */
.hov { position: absolute; z-index: 30; background: #2b2b2e; box-shadow: 0 18px 50px rgba(0,0,0,.55); border-radius: 3px; overflow: hidden;
  opacity: 0; transform: scale(.94); transform-origin: center top; transition: opacity .2s ease, transform .22s ease; }
.hov.on { opacity: 1; transform: none; }
.hframe { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.hframe img, .hframe .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbody { padding: 14px 18px 16px; }
.hacts { display: flex; align-items: center; gap: 10px; }
.watch.sm { height: 36px; padding: 0 18px 0 14px; font-size: 13.5px; }
.hov .round { width: 30px; height: 30px; font-size: 13px; }
.hrate { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gold); }
.ht { font-weight: 700; font-size: 15px; margin-top: 12px; text-transform: uppercase; }
.htx { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: rgba(244,243,240,.85); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hmeta { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; }
.hmeta b { color: var(--text); }

/* ----- 影片頁：評分、簡介、演職員 ----- */
.ftop { align-items: flex-start; }
.rate { margin-left: auto; text-align: right; }
.rate span { font-size: 22px; font-weight: 700; }
.rate small { font-size: 13px; opacity: .75; margin-left: 2px; }
.rate em { display: block; font-style: normal; font-size: 11.5px; opacity: .7; margin-top: 2px; }
.fcol .clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.synopsis { max-width: 900px; display: grid; gap: 12px; font-size: 15px; line-height: 1.75; }
.synopsis p { margin: 0; }
.synopsis .en2 { color: var(--muted); font-size: 14px; }
.people { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { background: #26262a; padding-bottom: 12px; }
.person .ph2 { aspect-ratio: 185 / 230; background: #333338; overflow: hidden; display: grid; place-items: center; }
.person .ph2 img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person .ph2 span { font-size: 34px; font-weight: 700; color: rgba(255,255,255,.25); }
.person b { display: block; margin: 10px 12px 0; font-size: 13.5px; text-transform: uppercase; line-height: 1.25; }
.person small { display: block; margin: 3px 12px 0; font-size: 11.5px; color: var(--muted); }

/* ----- 標題改回襯線字（2026-11-29 使用者要求）；標誌只用文字「地影中心」 ----- */
.word { font-size: 21px; letter-spacing: .12em; }
.hero h1, .page h1, .chero h1, .cap .ct, .ccard .t, .ht, .person b, .fbin b, .shead h2, .res .t, .dbr .tt b, .searchbox input, .dbq, .ptitle {
  font-family: var(--serif); }
.hero h1, .chero h1 { letter-spacing: .02em; font-weight: 700; }
.cap .ct { letter-spacing: .01em; }
.shead h2 { font-size: 15px; letter-spacing: .08em; }

/* ===== 帳號、首頁（未登入）、求片、管理（2026-11-29） ===== */
.ubox { position: relative; }
.ubtn { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--text); border-radius: 99px; padding: 5px 14px; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-block; }
.ubtn:hover { background: rgba(255,255,255,.1); }
.umenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #2b2b2e; border: 1px solid var(--line); border-radius: 4px;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.45); display: grid; }
.umenu a, .umenu button { padding: 8px 10px; font-size: 14px; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; border-radius: 3px; }
.umenu a:hover, .umenu button:hover { background: rgba(255,255,255,.08); }
.ghost { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.8);
  background: none; color: var(--text); font-weight: 700; font-size: 14.5px; cursor: pointer; letter-spacing: .03em; }
.ghost:hover { background: rgba(255,255,255,.12); }
.ghost.sm { height: 28px; padding: 0 12px; font-size: 12px; border-width: 1px; }
.round.big2 { width: 46px; height: 46px; font-size: 22px; font-weight: 400; background: none; color: var(--text); cursor: pointer; }
.ulink { color: var(--gold); font-weight: 700; }
.ulink:hover { text-decoration: underline; text-underline-offset: 3px; }

.landing { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #111; }
.lslide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.lslide.on { opacity: 1; }
.lslide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); animation: slowIn 9s ease both; }
.lin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(640px, 90vw); text-align: center; }
.lin h1 { font-family: var(--serif); font-size: clamp(52px, 9vw, 104px); margin: 0; letter-spacing: .14em; font-weight: 700; animation: fadeUp 1s ease both; }
.ltag { margin: 8px 0 0; font-size: 14px; letter-spacing: .3em; opacity: .85; animation: fadeUp 1s .15s ease both; }
.lsub { margin: 26px 0 0; font-size: 15px; opacity: .85; animation: fadeUp 1s .3s ease both; }
.lacts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 18px; animation: fadeUp 1s .45s ease both; }
.lin .ulink { animation: fadeIn 1s .7s ease both; display: inline-block; }

.authwrap { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 90px 16px 40px; }
.authbg { position: absolute; inset: 0; overflow: hidden; }
.authbg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) blur(2px); transform: scale(1.04); }
.authcard { position: relative; width: min(440px, 100%); background: rgba(28,28,30,.92); border: 1px solid var(--line); border-radius: 6px; padding: 30px 30px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.authcard h1 { font-family: var(--serif); margin: 0 0 6px; font-size: 30px; }
.aform { display: grid; gap: 14px; margin-top: 18px; }
.aform label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.aform small { font-size: 11.5px; opacity: .8; }
.aform input, .aform select, .atable input, .atable select { background: #141416; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 10px 12px;
  font-size: 15px; color: var(--text); outline: none; min-width: 0; }
.aform input:focus, .atable input:focus { border-color: var(--text); }
.aform .watch, .aform .ghost { justify-self: start; }
.aform.row { grid-template-columns: repeat(auto-fit, minmax(150px, auto)); align-items: end; }
.aform.row .grow { min-width: 240px; }
.amsg { margin: 0; font-size: 13.5px; min-height: 0; }
.amsg.err { color: #ff8a80; }
.amsg.ok { color: #9fe3cf; }
.alinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: 13.5px; }
.alinks a { color: var(--muted); }
.alinks a:hover { color: var(--text); }
.rcode { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(20px, 4.4vw, 26px); letter-spacing: .08em; text-align: center; padding: 18px 10px;
  margin: 18px 0 4px; background: #111; border: 1px dashed rgba(255,255,255,.35); border-radius: 4px; user-select: all; }
.rcode.sm { display: inline-block; font-size: 16px; padding: 4px 10px; margin: 0 4px; }
.page.narrow { max-width: 720px; }
.h2 { font-family: var(--serif); font-size: 20px; margin: 34px 0 6px; }
.reqs { display: grid; border-top: 1px solid var(--line); }
.reqi { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.reqi small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.reqi small.an { color: var(--gold); }
.rs { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.rs.ok { color: #9fe3cf; border-color: #2f6b5c; } .rs.bad { color: #ff8a80; border-color: #6b2f2f; } .rs.warn { color: var(--gold); border-color: #6b5a2f; }
.reqx { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.reqbtn { background: none; border: 1px solid rgba(255,255,255,.3); color: var(--text); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; cursor: pointer; }
.reqbtn:hover { background: rgba(255,255,255,.1); }
.reqbtn:disabled { opacity: .7; cursor: default; }
.made { background: #1f2a26; border: 1px solid #2f6b5c; border-radius: 4px; padding: 12px 14px; margin: 10px 0 18px; font-size: 14px; line-height: 2; }
.made code { font-size: 12.5px; word-break: break-all; }
.atable { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.atable th { text-align: left; font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.atable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atable td small { color: var(--muted); }
.atable tr.dead { opacity: .45; }
.atable tr.saved td { transition: background 1s; background: rgba(47,107,92,.15); }
.atable input, .atable select { font-size: 13px; padding: 6px 8px; width: 100%; }
@media (max-width: 760px) { .atable { display: block; overflow-x: auto; } }
.aform label.chk { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; padding-bottom: 10px; }
.aform label.chk input { width: auto; }
