/* THE MISSING PIECE — premiere microsite
   版面：影廳（深色）單頁由上往下；商品頁切成紙張（米白）模式。 */
:root {
  --cinema: #141211;
  --cinema-2: #1d1a18;
  --paper: #efe8dc;
  --paper-2: #e4dacb;
  --ink: #1f1c1a;
  --red: #b8322a;
  --red-hi: #e0574c;
  --mute-d: #a39889;
  --mute-l: #6c645b;
  --line-d: #3a3532;
  --line-l: #d3c8b8;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--cinema); color: var(--paper);
  font: 18px/1.6 var(--serif);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
body::after { /* 底片顆粒 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: var(--grain); opacity: .09; mix-blend-mode: overlay;
}
img, video { max-width: 100%; display: block }
a { color: inherit }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px }
.label { font: 700 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase }
.sec { padding-block: 72px 24px; display: grid; gap: 28px }
.sec-head { display: grid; gap: 6px }
.sec-head .label { color: var(--red-hi) }
.sec-head h2 { font: 400 clamp(40px, 9vw, 76px)/.92 var(--display); margin: 0; letter-spacing: .01em; text-wrap: balance }
.sec-head p { margin: 0; color: var(--mute-d); max-width: 52ch }

/* ---------- 0 進場：票根 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 40; background: var(--cinema);
  display: grid; place-items: center; padding: 24px;
  transition: opacity .6s ease .35s, visibility 0s linear .95s;
}
.gate.torn { opacity: 0; visibility: hidden }
.stub {
  width: min(340px, 100%); color: var(--ink); text-align: center;
  display: grid; position: relative; filter: drop-shadow(0 18px 40px #000a);
}
.stub-main, .stub-tail { background: var(--paper) var(--grain); background-blend-mode: multiply }
.stub-main {
  padding: 30px 24px 24px; display: grid; gap: 12px;
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%); /* 缺一角 */
}
.stub-main .label { font-size: 10px; color: var(--mute-l) }
.stub-title { font: 400 54px/.9 var(--display); margin: 0 }
.stub-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line-l); padding-top: 10px; font: 700 11px/1.4 var(--mono); letter-spacing: .1em; text-align: left }
.stub-row b { display: block; font-size: 9px; color: var(--mute-l); letter-spacing: .16em }
.stub-tail {
  border-top: 2px dashed var(--red); padding: 16px 24px 20px;
  transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .7s;
  transform-origin: 0 0;
}
.gate.torn .stub-tail { transform: translate(14px, 60px) rotate(8deg); opacity: 0 }
.tear {
  width: 100%; border: 0; cursor: pointer; background: var(--red); color: #fff;
  font: 700 13px/1 var(--mono); letter-spacing: .2em; padding: 15px 10px;
}
.tear:hover { background: #a02a23 }
.stub-tail small { display: block; margin-top: 10px; font: 11px/1.4 var(--mono); color: var(--mute-l) }

/* ---------- 1 預告片 ---------- */
.hero { padding-top: 16px }
.player { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; max-width: 100% }
.player video { width: 100%; height: 100%; object-fit: contain }
.cover {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000;
  display: block; width: 100%; text-align: left; container-type: inline-size;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1 }
.cover .lock { position: absolute; z-index: 2; display: grid; gap: .6cqw; color: var(--paper) }
.cover .t { font: 400 9.4cqw/.86 var(--display); letter-spacing: .005em; text-shadow: 0 .4cqw 2cqw #0008 }
.cover .tag { font: italic max(2.3cqw, 11px)/1.2 var(--serif) }
.cover .fine { font: 700 max(1.2cqw, 7px)/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; opacity: .85 }
.cover .laurel { display: inline-flex; align-items: center; gap: .8cqw; font: 700 max(1.25cqw, 7px)/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper) }
.cover .laurel svg { width: 2.6cqw; height: 4cqw; fill: currentColor }
.cover .laurel svg:last-child { transform: scaleX(-1) }
.cover .play {
  position: absolute; z-index: 2; right: 3.5cqw; bottom: 4cqw; width: 8cqw; height: 8cqw; min-width: 44px; min-height: 44px;
  border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center;
  transition: transform .25s;
}
.cover .play svg { width: 34%; height: 34%; fill: currentColor; margin-left: 8% }
.cover:hover .play { transform: scale(1.07) }
@container (max-width: 560px) { .cover .runtime { display: none } }
.cover .runtime { position: absolute; z-index: 2; left: 3.5cqw; top: 3.5cqw; font: 700 max(1.3cqw, 7px)/1 var(--mono); letter-spacing: .18em; background: #0009; padding: .9cqw 1.2cqw; color: var(--paper) }
/* 封面 A：兩人對視特寫，片名壓左下 */
.cover[data-v="a"]::before { background: linear-gradient(0deg, #0d0b0add 0%, #0d0b0a55 35%, transparent 60%) }
.cover[data-v="a"] .lock { left: 4cqw; bottom: 4cqw }
.cover[data-v="a"] .t { font-size: 6.6cqw }
/* 封面 B：沙發全景，片名置中偏下，海報式 */
.cover[data-v="b"]::before { background: radial-gradient(120% 90% at 50% 30%, transparent 30%, #0d0b0a99 70%), linear-gradient(0deg, #0d0b0aee 0%, transparent 55%) }
.cover[data-v="b"] .lock { left: 0; right: 0; bottom: 4cqw; justify-items: center; text-align: center }
.cover[data-v="b"] .t { font-size: 11cqw }
/* 封面 C：她拿著襪子，片名在左側暗區，紅字標語 */
.cover[data-v="c"] img { object-position: 70% 50% }
.cover[data-v="c"]::before { background: linear-gradient(90deg, #0d0b0af0 0%, #0d0b0aa0 38%, transparent 62%) }
.cover[data-v="c"] .lock { left: 4cqw; top: 50%; transform: translateY(-50%); max-width: 46cqw }
.cover[data-v="c"] .t { font-size: 10.5cqw }
.cover[data-v="c"] .tag { color: var(--red-hi); font: 700 max(1.6cqw, 8px)/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; font-style: normal }

.title-block { display: grid; gap: 4px; padding-block: 22px 0 }
.title-block h1 { font: 400 clamp(34px, 7vw, 64px)/.9 var(--display); margin: 0 }
.title-block .tag { font-style: italic; font-size: clamp(19px, 2.4vw, 24px); color: var(--paper) }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 10px; border-top: 1px solid var(--line-d); margin-top: 10px }
.meta span { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--mute-d) }
.meta span.date { color: var(--red-hi) }

/* ---------- 2 海報收藏 ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin }
.pcard { scroll-snap-align: start; text-decoration: none; display: grid; gap: 10px; min-width: 0 }
.pcard .frame { background: var(--cinema-2); padding: 14px; transition: background .3s }
.pcard img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 14px 30px #0009; transition: transform .35s }
.pcard:hover img { transform: translateY(-4px) }
.pcard:hover .frame { background: #26221f }
.pcard .no { font: 700 11px/1 var(--mono); letter-spacing: .18em; color: var(--red-hi) }
.pcard .nm { font: 400 26px/1 var(--display) }
.pcard .go { font: 700 11px/1 var(--mono); letter-spacing: .16em; color: var(--mute-d) }

/* ---------- 3 案件檔案 ---------- */
.case { background: var(--paper) var(--grain); background-blend-mode: multiply; color: var(--ink); padding-block: 64px 56px; margin-top: 72px }
.case .sec { padding-block: 0 }
.case .sec-head .label { color: var(--red) }
.case .sec-head p { color: var(--mute-l) }
.stamp { justify-self: start; border: 3px solid var(--red); color: var(--red); font: 700 14px/1 var(--mono); letter-spacing: .2em; padding: 8px 12px; transform: rotate(-3deg) }
.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px }
.ev { perspective: 1000px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; aspect-ratio: 4/5; max-width: 100%; width: 100%; display: block }
.ev-in { display: block; position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d }
.ev.on .ev-in { transform: rotateY(180deg) }
.ev-f, .ev-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f7f2ea; border: 1px solid var(--line-l); padding: 12px; display: grid; grid-template-rows: 1fr auto; gap: 10px; box-shadow: 0 6px 16px #3a2a1a22 }
.ev-f img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) }
.ev-f .cap { font: 700 12px/1.3 var(--mono); letter-spacing: .1em }
.ev-f .cap b { color: var(--red); display: block; font-size: 10px; letter-spacing: .18em }
.ev-b { transform: rotateY(180deg); align-content: start; grid-template-rows: auto; font: 13px/1.5 var(--mono); color: var(--ink) }
.ev-b b { color: var(--red); font-size: 11px; letter-spacing: .18em }
.ev-b .st { margin-top: auto; font-size: 11px; letter-spacing: .14em; color: var(--mute-l) }
.hint { font: 12px/1.4 var(--mono); color: var(--mute-l); letter-spacing: .08em }

/* ---------- 4 製作檔案 ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap }
.tabs button { background: none; border: 1px solid var(--line-d); color: var(--mute-d); font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; cursor: pointer }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper) }
.dept { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px }
.dept figure { margin: 0; display: grid; gap: 8px; min-width: 0 }
.dept img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in }
.dept figcaption { font: 13px/1.45 var(--mono); color: var(--mute-d) }
.dept figcaption b { color: var(--paper); letter-spacing: .1em }

/* ---------- 5 演職員 ---------- */
.billing { text-align: center; display: grid; gap: 14px; padding-block: 40px; border-block: 1px solid var(--line-d) }
.billing .pres { font: 700 13px/1.4 var(--mono); letter-spacing: .26em; color: var(--mute-d) }
.billing .cast { font: 400 clamp(34px, 7vw, 64px)/1 var(--display); letter-spacing: .03em }
.billing .block { font: 400 clamp(13px, 1.9vw, 17px)/1.5 var(--display); letter-spacing: .1em; color: var(--mute-d); max-width: 760px; margin: 0 auto; text-transform: uppercase }
.billing .block b { font-weight: 400; color: var(--paper) }
.billing .date { font: 700 14px/1 var(--mono); letter-spacing: .24em; color: var(--red-hi) }

/* ---------- 6 片尾彩蛋 ---------- */
.after { padding-block: 96px 120px; text-align: center; display: grid; gap: 22px; justify-items: center }
.after .lock { font: 700 12px/1.5 var(--mono); letter-spacing: .2em; color: var(--mute-d); border: 1px dashed var(--line-d); padding: 14px 18px; max-width: 34ch }
.after blockquote { margin: 0; font: italic clamp(24px, 4.4vw, 40px)/1.3 var(--serif); max-width: 22em; text-wrap: balance }
.after.revealed blockquote, .after.revealed .cert { animation: rise 1.2s ease both }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }
.cert { background: var(--paper) var(--grain); background-blend-mode: multiply; color: var(--ink); width: min(420px, 100%); padding: 28px 24px; display: grid; gap: 10px; outline: 1px solid var(--ink); outline-offset: -8px }
.cert .label { color: var(--mute-l); font-size: 10px }
.cert .no { font: 400 64px/1 var(--display); color: var(--red) }
.cert p { margin: 0; font-size: 16px }
footer { padding-block: 28px 40px; border-top: 1px solid var(--line-d); font: 12px/1.6 var(--mono); color: var(--mute-d); letter-spacing: .08em; text-align: center }

/* ---------- 燈箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 45; background: #000e; display: grid; place-items: center; padding: 16px; cursor: zoom-out; border: 0; width: 100% }
.lightbox img { max-height: 92vh; max-width: 100%; object-fit: contain }

/* ---------- 商品頁（紙張模式） ---------- */
body.shop { background: var(--paper); color: var(--ink); color-scheme: light }
body.shop::after { opacity: .14; mix-blend-mode: multiply }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line-l) }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px }
.topbar a { text-decoration: none; font: 400 22px/1 var(--display) }
.cartbtn { background: none; border: 1px solid var(--ink); padding: 9px 12px; cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .14em }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; align-items: start }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 26px; padding-top: 0 } }
.stage { background: var(--paper-2); padding: 8% 12%; display: grid; place-items: center; margin-inline: -20px }
@media (min-width: 761px) { .stage { margin-inline: 0; position: sticky; top: 72px } }
.stage button { border: 0; padding: 0; background: none; cursor: zoom-in }
.stage img { box-shadow: 0 24px 50px #3a2a1a55; aspect-ratio: 2/3; object-fit: cover; width: 100% }
.pinfo { display: grid; gap: 18px; min-width: 0 }
.pinfo .no { font: 700 12px/1 var(--mono); letter-spacing: .2em; color: var(--red) }
.pinfo h1 { font: 400 clamp(40px, 6vw, 60px)/.92 var(--display); margin: 0; text-wrap: balance }
.pinfo .desc { margin: 0; font-size: 18px; max-width: 46ch }
.price { display: flex; align-items: baseline; justify-content: space-between; border-block: 1px solid var(--ink); padding-block: 14px }
.price .amt { font: 400 36px/1 var(--display); font-variant-numeric: tabular-nums }
.price .left { font: 700 12px/1 var(--mono); letter-spacing: .14em; color: var(--red) }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font: 14px/1.5 var(--mono) }
.specs dt { color: var(--mute-l); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; padding-top: 2px }
.specs dd { margin: 0 }
.btn-dark { border: 0; background: var(--ink); color: var(--paper); font: 700 14px/1 var(--mono); letter-spacing: .2em; padding: 18px; cursor: pointer; width: 100% }
.btn-dark:hover { background: #000 }
.btn-red { background: var(--red) }
.btn-red:hover { background: #a02a23 }
.fineprint { font: 12px/1.6 var(--mono); color: var(--mute-l) }
.others { border-top: 1px solid var(--line-l); padding-block: 36px 56px; display: grid; gap: 16px }
.others .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px }
.others a { text-decoration: none; display: grid; gap: 6px; font: 700 11px/1.3 var(--mono); letter-spacing: .12em }
.others img { aspect-ratio: 2/3; object-fit: cover; width: 100% }

.drawer-bg { position: fixed; inset: 0; z-index: 30; background: #1f1c1a66 }
.drawer {
  position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--paper); color: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; box-shadow: -20px 0 40px #0003;
}
.drawer header { display: flex; justify-content: space-between; align-items: center }
.drawer h2 { font: 400 30px/1 var(--display); margin: 0 }
.drawer .x { background: none; border: 0; font: 700 13px/1 var(--mono); letter-spacing: .14em; cursor: pointer; padding: 8px }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; border-bottom: 1px solid var(--line-l); padding-bottom: 14px; font: 13px/1.4 var(--mono) }
.line img { width: 64px; aspect-ratio: 2/3; object-fit: cover }
.line b { display: block; font: 400 18px/1.1 var(--display); letter-spacing: .02em }
.empty { font: 14px/1.6 var(--mono); color: var(--mute-l) }
.totals { display: grid; gap: 8px; font: 14px/1 var(--mono) }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums }
.totals .sum { font-weight: 700; border-top: 1px solid var(--ink); padding-top: 10px }

.reveal { position: fixed; inset: 0; z-index: 45; background: var(--cinema); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 24px }
.reveal .in { display: grid; gap: 16px; justify-items: center; max-width: 520px }
.reveal .proc { font: 700 13px/1 var(--mono); letter-spacing: .24em; color: var(--mute-d) }
.reveal .sold { font: 400 clamp(64px, 18vw, 140px)/.85 var(--display); color: var(--red-hi) }
.reveal .no { font: 400 clamp(44px, 11vw, 80px)/1 var(--display) }
.reveal p { margin: 0; font-size: 20px; font-style: italic }
.reveal .small { font: 12px/1.6 var(--mono); color: var(--mute-d); font-style: normal; letter-spacing: .08em }
.reveal a { font: 700 13px/1 var(--mono); letter-spacing: .18em; border: 1px solid var(--paper); padding: 14px 18px; text-decoration: none; margin-top: 8px }
.reveal.go .after-proc { animation: rise 1s ease both }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important }
}
