:root {
  color-scheme: dark;
  --paper: #f3e9db;
  --muted: #b4a79b;
  --amber: #e2a563;
  --back: #12100e;
  --line: #3c3128;
  --wrap: 1280px;
  font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--back);
  color: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
img, video { display: block; max-width: 100%; -webkit-user-drag: none; }
[hidden] { display: none !important; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px max(6vw, calc((100vw - var(--wrap)) / 2)); border-bottom: 1px solid var(--line); background: #15120f; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; letter-spacing: .09em; font-weight: 700; }
.wordmark i { display: block; width: 22px; height: 22px; border: 1px solid var(--amber); border-radius: 50%; position: relative; }
.wordmark i::after { content: ''; position: absolute; inset: 5px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.wordmark small { color: var(--muted); display: inline; margin-left: 14px; font-weight: 500; font-size: .73rem; }
.index-link { color: var(--muted); white-space: nowrap; font-size: .85rem; letter-spacing: .08em; }
.index-link span { color: var(--amber); margin-left: 6px; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-light { position: absolute; inset: 0; background: radial-gradient(ellipse at 72% 58%, #71452a91 0%, #281b16 43%, #14110f 76%); }
.hero-light::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #d49b6710 0 1px, transparent 1px 5px); opacity: .45; }
.hero-inner { position: relative; max-width: var(--wrap); width: 88%; margin: auto; min-height: 565px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; }
.hero-copy { z-index: 1; padding: 54px 0 60px; }
.eyebrow { color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .23em; margin: 0 0 20px; }
.eyebrow span { display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 6px; }
h1, h2 { font-family: 'Songti SC', 'SimSun', 'Noto Serif CJK SC', serif; margin: 0; }
h1 { font-size: clamp(3.7rem, 9.2vw, 8.8rem); line-height: .99; letter-spacing: -.08em; font-weight: 700; text-shadow: 0 8px 32px #08050387; }
h1 em { color: var(--amber); font-style: normal; }
.hero-desc { color: var(--muted); font-size: clamp(.88rem, 1.6vw, 1.02rem); margin: 28px 0 25px; }
.primary-action { display: inline-flex; gap: 25px; align-items: center; color: #22180f; background: var(--amber); padding: 12px 17px; font-size: .87rem; font-weight: 700; border-radius: 3px; }
.primary-action:hover { background: #f4c38e; }
.hero-art { position: relative; height: 100%; min-height: 460px; }
.hero-card { position: absolute; top: 50%; left: 51%; width: min(52%, 275px); aspect-ratio: 2 / 3; background-size: cover; background-position: center; border: 1px solid #ab7952; border-radius: 7px; box-shadow: 0 30px 65px #080504c2; }
.hero-card-main { transform: translate(-65%, -49%) rotate(6deg); }
.hero-card-side { width: min(47%, 250px); transform: translate(7%, -53%) rotate(16deg); filter: brightness(.69) saturate(.82); }
.projects, .screening-inner, .site-footer { width: 88%; max-width: var(--wrap); margin: 0 auto; }
.projects { padding: 60px 0 70px; scroll-margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 24px; gap: 14px; }
.section-heading h2, .detail-heading h2 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.16; }
#project-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 25px 15px; }
.project-card { padding: 0; min-width: 0; text-align: left; border: 0; background: none; }
.project-art { aspect-ratio: 2 / 3; width: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #37251b, #211913); border: 1px solid #4a3a2e; border-radius: 5px; overflow: hidden; transition: border-color .2s, transform .2s; }
.project-art img { width: 100%; height: 100%; object-fit: cover; }
.project-art.empty { color: var(--muted); font-size: .82rem; letter-spacing: .07em; }
.project-card:hover .project-art, .project-card[aria-pressed='true'] .project-art { border-color: var(--amber); transform: translateY(-3px); }
.project-name { display: block; margin-top: 10px; font-size: clamp(.82rem, 1.23vw, 1rem); font-weight: 700; line-height: 1.45; }
.creation-role { display: inline-block; color: var(--muted); font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; font-weight: 500; font-size: .76em; white-space: nowrap; }
.project-language { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; }
.screening { background: #1a1511; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.screening-inner { padding: 56px 0 66px; }
.detail-heading { margin-bottom: 32px; }
.return-link { float: right; margin: 0 0 8px 12px; color: var(--muted); font-size: .8rem; }
.return-link:hover { color: var(--amber); }
.detail-heading .eyebrow { margin-bottom: 12px; }
#project-note { color: var(--muted); margin: 14px 0 0; line-height: 1.7; }
.screening-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(18px, 4vw, 55px); align-items: start; }
.detail-heading .creation-role { font-size: .42em; vertical-align: middle; }
.poster-area { margin: 0; }
.poster-area figcaption, .clip-caption h3, .character-section h3 { margin: 0; font-size: 1.04rem; font-weight: 700; }
.poster-area img { margin-top: 12px; width: 100%; max-height: 525px; object-fit: contain; object-position: left top; border-radius: 5px; }
.clip-caption { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: baseline; }
.clip-caption span { color: var(--muted); font-size: .82rem; }
.player { position: relative; border: 1px solid #483426; border-radius: 6px; background: #0e0b0a; overflow: hidden; }
.player video { width: 100%; height: clamp(280px, 48vw, 495px); object-fit: contain; }
.play-overlay { position: absolute; left: 50%; top: calc(50% - 23px); transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; background: #16110edb; border-radius: 50%; border: 1px solid var(--amber); font-size: 1.35rem; color: var(--amber); }
.player-controls { display: flex; gap: 10px; align-items: center; background: #261d16; min-height: 46px; padding: 4px 8px; }
.player-controls button { background: none; padding: 7px; border: 0; min-width: 32px; font-size: .82rem; white-space: nowrap; }
.player-controls button:hover { color: var(--amber); }
.player-controls input { accent-color: var(--amber); flex: 1 1 40px; min-width: 30px; }
#time-display { font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.media-note { border: 1px dashed var(--line); padding: 15px; border-radius: 5px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.character-section { margin-top: 38px; }
.character-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.character-card { display: block; padding: 0; border: 1px solid var(--line); background: #211a15; border-radius: 5px; overflow: hidden; text-align: left; }
.character-card:hover { border-color: var(--amber); }
.character-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: #100d0b; }
.character-card span { display: block; font-size: .88rem; padding: 10px 11px; }
.site-footer { padding: 25px 0; color: var(--muted); font-size: .78rem; display: flex; justify-content: space-between; gap: 12px; }
.page-watermark { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; background-image: var(--watermark); background-repeat: repeat; }
.lightbox { position: fixed; z-index: 90; inset: 0; background: #100d0cec; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 18px 5vw; justify-items: center; }
.lightbox button { justify-self: end; background: #29211b; border: 1px solid #79614e; border-radius: 5px; padding: 8px 12px; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox p { margin: 0; text-align: center; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 1050px) { .project-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .hero-inner { min-height: 430px; }
  .hero-art { min-height: 360px; }
  .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .masthead { padding: 15px 6%; }
  .wordmark small { margin-left: 7px; }
  .hero-inner { min-height: 350px; grid-template-columns: 1fr .8fr; }
  .hero-copy { padding: 39px 0; }
  .hero-art { min-height: 270px; }
  .hero-card { width: 74%; }
  .hero-card-side { width: 65%; transform: translate(-6%, -51%) rotate(16deg); }
  .hero-desc { margin: 20px 0; }
  .projects { padding: 40px 0; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 9px; }
  .screening-inner { padding: 32px 0 38px; }
  .screening-grid { grid-template-columns: 1fr; }
  .poster-area img { max-height: 390px; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } * { transition: none !important; } }
@media print { body { visibility: hidden; } }
