:root {
  color-scheme: dark;
  --surface: #101611;
  --raised: #162019;
  --ink: #f1f3ec;
  --muted: #b8c5b9;
  --line: #314037;
  --accent: #b6e8c6;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--surface);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p { margin: 0; }
body { min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }
.shell { width: min(100% - 96px, 1312px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; padding: 12px 16px; transform: translateY(-150%); background: var(--accent); color: var(--surface); }
.skip:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 2; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 75px; gap: 24px; border-bottom: 1px solid #d6ead03b; }
.brand { display: flex; align-items: center; justify-self: start; gap: 9px; font-size: 1.22rem; line-height: 1.1; font-weight: 720; }
.brand img { object-fit: contain; flex: none; }
.brand-secondary { display: block; margin-top: 5px; font-size: .71rem; letter-spacing: .08em; font-weight: 560; color: var(--muted); }
.main-nav, .languages { display: flex; align-items: center; }
.main-nav { gap: 30px; font-size: .91rem; }
.main-nav a, .languages a { display: grid; min-height: 42px; place-items: center; }
.languages { justify-self: end; gap: 5px; }
.languages a { min-width: 44px; padding-inline: 6px; color: var(--muted); font-size: .81rem; }
.languages [aria-current] { color: var(--ink); box-shadow: inset 0 -1px var(--accent); }
.main-nav a:hover, .languages a:hover, .footer-inner a:hover { color: var(--accent); }

.hero { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(555px, 82svh, 815px); background: #26362a; }
.hero-photo, .hero-background-video, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo, .hero-background-video { object-fit: cover; object-position: 61% center; }
.hero-background-video { opacity: 0; pointer-events: none; }
.hero-background-video.is-visible { opacity: 1; }
.hero::after {
  content: '';
  background: linear-gradient(0deg, #101611 0%, #10161100 42%),
    linear-gradient(180deg, #0a110bd9 0%, #0a110b00 25%),
    linear-gradient(90deg, #090f0bea 0%, #0a130a9e 38%, #0a130a06 84%);
}
.hero-inner { padding-block: 126px 90px; }
.eyebrow { color: var(--accent); letter-spacing: .14em; font-size: .79rem; font-weight: 680; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin-top: 14px; color: #f7faf4; letter-spacing: -.065em; font-size: clamp(64px, 9vw, 132px); font-weight: 750; line-height: 1; }
html[lang='zh-CN'] .hero h1 { letter-spacing: -.045em; font-size: clamp(59px, 8.5vw, 118px); }
.hero-subtitle { margin-top: 10px; color: #e5f0e5; font-size: clamp(24px, 4vw, 50px); font-weight: 580; letter-spacing: -.04em; line-height: 1.18; }
.hero-intro { margin-top: 20px; max-width: 360px; color: #dfebe0; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.65; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; font-size: .91rem; font-weight: 670; }
.button-primary { background: var(--accent); color: #11271b; }
.button-primary:hover { background: #cbf5db; }
.button-quiet { background: #0d1710a8; color: var(--ink); border-color: #799182; }
.button-quiet:hover { border-color: var(--accent); background: #1f3928; }
.hero-toggle { position: absolute; right: max(48px, calc((100% - 1312px) / 2)); bottom: 22px; min-height: 42px; padding: 7px 12px; font-size: .8rem; }

.works { padding-block: 31px 0; }
.works-heading { display: grid; gap: 20px; margin-bottom: 7px; }
.works-heading h2 { justify-self: start; }
h2 { font-size: clamp(33px, 5vw, 64px); line-height: 1.08; font-weight: 670; letter-spacing: -.051em; }
.work-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; padding-bottom: 15px; }
.work-nav { display: flex; flex-wrap: wrap; gap: 7px; font-size: .875rem; }
.work-nav a, .preview-toggle { display: inline-flex; align-items: center; min-height: 39px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: transparent; }
.work-nav a:hover, .preview-toggle:hover { color: var(--ink); border-color: var(--accent); }
.preview-toggle { gap: 9px; font-size: .82rem; font-weight: 620; cursor: pointer; }
.preview-toggle[aria-pressed='true'] { color: var(--ink); }
.preview-switch { position: relative; width: 26px; height: 15px; border: 1px solid #698071; border-radius: 12px; }
.preview-switch::after { content: ''; position: absolute; width: 7px; height: 7px; inset: 3px auto auto 3px; border-radius: 50%; background: #819789; }
.preview-toggle[aria-pressed='true'] .preview-switch { border-color: var(--accent); background: var(--accent); }
.preview-toggle[aria-pressed='true'] .preview-switch::after { left: auto; right: 3px; background: #183021; }

.collection { border-top: 1px solid var(--line); padding-block: clamp(27px, 3.4vw, 47px) clamp(39px, 5vw, 67px); }
.collection-lead { display: grid; gap: 24px; min-width: 0; }
.collection-heading { display: grid; gap: 13px; align-content: start; min-width: 0; }
.collection-heading h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.12; font-weight: 670; letter-spacing: -.043em; }
.collection-heading p, .about p, .contact p { color: var(--muted); line-height: 1.7; }
.collection-heading p { max-width: 63ch; font-size: .95rem; }
.collection-pair .collection-heading { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: end; gap: 10px 32px; }
.collection-spotlight .collection-lead { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.55fr); gap: clamp(28px, 5vw, 78px); }
.collection-spotlight .collection-heading { padding-block: clamp(14px, 4vw, 52px) 0; }
.collection-portrait .collection-lead { align-items: center; }
.collection-portrait .collection-heading { padding-block: 0; }
.collection-portrait .film-grid-spotlight { justify-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(ellipse at 50% 22%, #213229 0%, var(--raised) 43%, #131b16 95%); }

.film-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.film-grid-pair { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.film-grid-extras { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.film-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.film { min-width: 0; }
.film.portrait { width: min(295px, 100%); }
.film-stage { position: relative; }
.film-link { position: relative; display: block; border-radius: 6px; }
.film-frame { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); }
.portrait .film-frame { aspect-ratio: 9 / 16; }
.film-frame img, .film-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-preview { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.film-preview.is-playing { opacity: 1; }
.film-link:hover .film-frame, .film-link:focus-visible .film-frame { border-color: #8eb7a0; }
.film-play, .preview-retry { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 11px; border: 1px solid #c5e2d29e; border-radius: 4px; background: #101913e8; color: #f1f9f0; font-size: .75rem; font-weight: 650; line-height: 1.2; }
.film-play { right: 10px; bottom: 10px; }
.film-link:hover .film-play, .film-link:focus-visible .film-play { color: #14281d; background: var(--accent); border-color: var(--accent); }
.play-icon { flex: none; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.preview-retry { inset: 50% auto auto 50%; z-index: 2; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 20px); cursor: pointer; }
.preview-retry:hover { background: #284737; }
.film-caption { padding-top: 10px; }
.film-title { font-size: clamp(1.04rem, 1.5vw, 1.3rem); font-weight: 670; line-height: 1.37; overflow-wrap: break-word; }
.film-grid-extras .film-title { font-size: .93rem; }
.film-note { margin-top: 5px; max-width: 68ch; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.film-grid-extras .film-note { font-size: .81rem; }

.site-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px clamp(28px, 6vw, 85px); align-items: start; padding-block: 40px 51px; border-top: 1px solid var(--line); }
.about h2, .contact h2 { margin-bottom: 14px; font-size: clamp(27px, 3.5vw, 42px); }
.about p { max-width: 64ch; }
.contact .email { margin-top: 15px; text-align: center; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding-block: 18px 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.footer-inner a { padding-block: 10px; }

.player { max-width: min(92vw, 1100px); width: 100%; max-height: 94dvh; background: #111a14; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0; }
.player.is-portrait { width: min(92vw, 43dvh, 440px); }
.player::backdrop { background: #050905ed; }
.player-header { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 7px 10px 7px 15px; }
.player-header h2 { font-size: 1rem; letter-spacing: 0; line-height: 1.25; }
.player-header button { width: 44px; height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; font-size: 1.6rem; cursor: pointer; }
.player-header button:hover { background: #263829; }
.player-video { display: block; width: 100%; height: auto; max-height: min(72dvh, 641px); aspect-ratio: 16 / 9; background: #050805; object-fit: contain; }
.player.is-portrait .player-video { aspect-ratio: 9 / 16; }
.player-error { margin: 10px 15px 15px; }
.player-direct { display: inline-block; margin-top: 7px; text-decoration: underline; color: var(--accent); }
body:has(.player[open]) { overflow: hidden; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 15px; min-height: 69px; }
  .main-nav { gap: 15px; }
  .hero { min-height: clamp(540px, 77svh, 680px); }
  .hero-inner { padding-bottom: 85px; }
  .hero-toggle { right: 24px; }
  .collection-spotlight .collection-lead { grid-template-columns: minmax(170px, .78fr) minmax(0, 1.22fr); gap: 24px; }
  .film-grid-extras, .film-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
}

@media (max-width: 610px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { display: flex; justify-content: space-between; gap: 8px; min-height: 66px; }
  .brand { gap: 4px; font-size: 1rem; }
  .brand img { width: 30px; height: 27px; }
  .brand-secondary { margin-top: 3px; }
  .main-nav { font-size: .81rem; }
  .main-nav a:not([data-contact]) { display: none; }
  .hero-photo, .hero-background-video { object-position: 64% center; }
  .hero::after { background: linear-gradient(0deg, #101611 0%, #0a120cc7 23%, #0a120c22 63%, #0a120cce 100%); }
  .hero h1 { font-size: clamp(46px, 11vw, 70px); }
  html[lang='zh-CN'] .hero h1 { font-size: clamp(48px, 12vw, 70px); }
  .hero-inner { padding-bottom: 77px; }
  .hero-toggle { right: 18px; bottom: 15px; }
  .hero-intro { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .works { padding-top: 23px; }
  .works-heading { gap: 13px; }
  .work-controls { gap: 12px; padding-bottom: 9px; }
  .work-nav { gap: 6px; }
  .work-nav a { min-height: 39px; padding-inline: 9px; font-size: .79rem; }
  .collection { padding-block: 25px 31px; }
  .collection-pair .collection-heading, .collection-spotlight .collection-lead, .site-details { grid-template-columns: minmax(0, 1fr); }
  .collection-lead, .collection-spotlight .collection-lead { gap: 15px; }
  .collection-pair .collection-heading, .collection-heading { gap: 7px; padding-block: 0; }
  .collection-spotlight .collection-heading { padding: 0; }
  .collection-heading p { font-size: .92rem; }
  .film-grid { gap: 17px 11px; }
  .film-grid-pair { grid-template-columns: minmax(0, 1fr); }
  .film-grid-extras, .film-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 17px; padding-top: 13px; }
  .film-grid-extras .film-title { font-size: .87rem; }
  .film-grid-extras .film-play { right: 5px; bottom: 5px; min-height: 32px; padding: 4px 6px; font-size: .68rem; }
  .collection-portrait .film-grid-spotlight { padding: 13px; }
  .site-details { padding-block: 30px 37px; }
}
