@font-face {
  font-family: MangoBrush;
  src: url("../fonts/display.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #faf7f0;
  --ink: #221c19;
  --wine: #592b32;
  --muted: #695f59;
  --line: #dcd4c8;
  --amber: #ff9d4f;
  --gutter: clamp(20px, 4.8vw, 82px);
  --serif: "Songti SC", "STSong", "SimSun", serif;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a, button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
button, a, video { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b45415; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon { width: 1.14em; height: 1.14em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 10; background: white; padding: 12px; }
.skip:focus { top: 10px; }
.mast { border-bottom: 1px solid var(--line); }
.bar, .brand, .bar nav, .download, .actions, .hero-reel, .eyebrow, .hero-meta, .reel-actions, .poster-save { display: flex; align-items: center; }
.bar { min-height: 76px; gap: clamp(18px, 4vw, 55px); }
.mast-title { flex: none; font-size: 1rem; }
.brand { gap: 14px; }
.brand img { width: 151px; height: auto; }
.edition { border-left: 1px solid #cbbbaf; padding-left: 14px; font-size: .9rem; color: var(--wine); line-height: 1.2; letter-spacing: .05em; }
.bar nav { margin-left: auto; gap: clamp(18px, 2.5vw, 40px); color: #514840; font-size: .92rem; }
.bar nav a { padding-block: 12px; }
.bar nav a:hover, .poster-save:hover { text-decoration: underline; text-underline-offset: 5px; }
.download { width: fit-content; justify-content: center; gap: 9px; min-height: 44px; border: 0; border-radius: 6px; white-space: nowrap; font-weight: 700; }
.nav-download, .footer-download { color: #fff8ed; background: #2c2421; padding: 10px 17px; font-size: .9rem; }
.nav-download:hover, .footer-download:hover { background: var(--wine); }
.primary { background: var(--amber); color: #291709; padding: 13px 21px; }
.primary:hover { background: #ffae68; }

.spotlight { padding-top: clamp(22px, 3.2vw, 52px); }
.hero { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); grid-template-areas: "copy art"; gap: clamp(24px, 4vw, 68px); align-items: center; }
.hero-canvas { grid-area: art; aspect-ratio: 1.53; position: relative; overflow: hidden; isolation: isolate; background: #211b22; border-radius: 10px; }
.hero-media, .hero-image, .hero-image img { display: block; width: 100%; height: 100%; }
.hero-media { position: absolute; inset: 0; }
.hero-image, .hero-image img { object-fit: cover; }
.hero-image.didi img { object-position: right center; }
.hero-image.stage { object-position: 50% 50%; }
.hero-image.summer { object-position: 50% 53%; }
.hero-canvas::after { content: ""; position: absolute; inset: 58% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent, #151018ae); }
.hero-inner { grid-area: copy; display: grid; min-width: 0; padding-block: 16px; }
.hero-story { grid-area: 1/1; }
.hero-story[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.eyebrow { gap: 9px; font-size: .82rem; font-weight: 700; color: var(--wine); letter-spacing: .1em; }
.accent-line { display: inline-block; width: 23px; height: 3px; background: #dc742e; }
.tiny-divider { display: inline-block; width: 1px; height: .85em; background: #bc968e; }
.hero-title { font-family: var(--serif); font-size: clamp(37px,4.3vw,70px); color: #2d2022; line-height: 1.08; letter-spacing: -.045em; margin: 16px 0; font-weight: 750; }
.hero-title span { display: block; }
.hero-title.didi { font-size: clamp(66px,7.1vw,112px); letter-spacing: -.055em; }
.hero-title.summer { font-family: MangoBrush, var(--serif); font-weight: 400; }
.hero-meta { gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: #997c6b; }
.hero-story h3 { margin: 24px 0 8px; font-size: clamp(18px,1.65vw,25px); line-height: 1.4; letter-spacing: -.02em; color: var(--wine); }
.hero-synopsis { max-width: 30em; font-size: 1rem; color: #574c46; line-height: 1.8; text-wrap: pretty; }
#story-didi .hero-synopsis { text-wrap: balance; }
.actions { gap: 13px; margin-top: 22px; }
.app-note { font-size: .85rem; color: var(--muted); }

.selector { margin-top: clamp(22px, 3vw, 43px); }
.feature-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); }
.feature-choice { display: flex; position: relative; align-items: center; gap: 13px; padding: 15px clamp(12px,2.2vw,32px); text-align: left; background: transparent; border: 0; color: #534942; }
.feature-choice + .feature-choice { border-left: 1px solid var(--line); }
.feature-choice img { border-radius: 4px; width: 40px; height: 50px; object-fit: cover; }
.feature-choice small, .feature-choice strong { display: block; }
.feature-choice small { font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.feature-choice strong { font-size: clamp(.88rem,1.08vw,1.03rem); line-height: 1.4; }
.feature-choice:hover { background: #f1eadd; }
.feature-choice[aria-pressed="true"] { background: #efe8dc; color: #352321; }
.feature-choice[aria-pressed="true"] .progress-mark { position: absolute; inset: auto 0 -1px; height: 3px; background: #a9542a; }

.reel { padding-block: clamp(47px,5.3vw,83px); background: var(--paper); }
.theater { display: grid; grid-template-columns: 1fr .84fr; align-items: center; isolation: isolate; position: relative; overflow: hidden; border-radius: 12px; color: #fff3e5; background: linear-gradient(104deg,#251e20 2%,#332328 56%,#61363b 100%); }
.theater-intro { padding: clamp(28px,5.6vw,84px); padding-right: 14px; }
.eyebrow.light { color: #f5bc8d; }
.section-title { font-family: var(--serif); font-size: clamp(39px,4.2vw,66px); font-weight: 750; line-height: 1.08; letter-spacing: -.055em; }
.theater-intro .section-title { margin: 11px 0 22px; }
.title-mark { color: #d87b44; padding-left: .04em; }
.reel-lead { font-size: clamp(20px,1.8vw,27px); font-weight: 700; }
.reel-story { max-width: 24em; margin: 7px 0 17px; color: #e0d1cd; line-height: 1.75; }
.reel-actions { flex-wrap: wrap; gap: 14px 20px; margin-top: 23px; }
.poster-save { gap: 6px; font-size: .85rem; color: #ffceb0; }

.catalog { padding: 0 0 clamp(45px,5.5vw,88px); }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.catalog-intro { color: var(--muted); margin-top: 11px; line-height: 1.65; }
.filters { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 24px; }
.filters button { border: 0; color: #64554e; background: transparent; padding: 8px 16px; border-radius: 20px; font-size: .88rem; white-space: nowrap; }
.filters button[aria-pressed="true"] { color: #fff9ec; background: var(--wine); }
.filters button:hover:not([aria-pressed="true"]) { background: #efe4d9; }
.catalog-count { color: var(--muted); font-size: .8rem; padding: 19px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: clamp(16px,2vw,32px); }
.card { min-width: 0; position: relative; display: grid; grid-template-columns: clamp(88px,8.5vw,130px) minmax(0,1fr); gap: clamp(12px,1.35vw,21px); padding: 19px 0; border-top: 1px solid var(--line); align-items: start; }
.card-copy { min-width: 0; padding-top: 3px; }
.poster { display: block; padding: 0; position: static; width: 100%; background: #2e2425; color: #fff4e6; border: 0; border-radius: 5px; }
.poster::after { content:""; position: absolute; inset: 0; }
.poster img { display: block; width: 100%; aspect-ratio: 3/4; height: auto; object-fit: cover; border-radius: 5px 5px 0 0; }
.play-pill { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; font-size: .7rem; }
.play-pill .icon { color: var(--amber); }
.card:has(.poster:hover) h3 { color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meta { color: #7a533d; font-size: .76rem; font-weight: 650; }
.card-meta span { color: #b49a89; }
.card h3 { font-size: clamp(18px,1.36vw,23px); line-height: 1.4; letter-spacing: -.025em; margin: 6px 0; overflow-wrap: anywhere; }
.card p { color: #635954; font-size: 1rem; line-height: 1.65; }
footer { border-top: 1px solid #e5bd97; background: #f7dec2; }
.footer-inner { display: flex; align-items: center; gap: clamp(15px,2.2vw,32px); padding-block: clamp(30px,4vw,56px); }
.app-icon { width: clamp(54px,5.2vw,78px); height: auto; }
.footer-copy h2 { font-family: var(--serif); font-size: clamp(25px,2.6vw,40px); letter-spacing: -.035em; line-height: 1.3; }
.footer-copy p { color: #6a5142; font-size: .9rem; margin-top: 6px; line-height: 1.55; }
.footer-download { margin-left: auto; }

@media (max-width:1150px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { grid-template-columns: clamp(100px,12vw,138px) minmax(0,1fr); }
}
@media (min-width:721px) and (max-width:950px) {
  .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: 22px; }
  .hero-canvas { aspect-ratio: auto; min-height: 385px; align-self: stretch; }
  .hero-title.didi { font-size: 63px; }
  .bar { gap: 20px; }
  .brand img { width: 128px; }
  .feature-choice { padding-inline: 12px; }
  .theater-intro { padding: 34px 12px 34px 34px; }
}
@media (max-width:720px) {
  :root { --gutter: clamp(15px,4.6vw,24px); }
  .bar { min-height: 62px; flex-wrap: wrap; gap: 4px 9px; padding-top: 8px; }
  .bar nav { display: flex; order: 1; width: 100%; gap: 0; margin: 0; border-top: 1px solid #e8e0d6; }
  .bar nav a { flex: 1; padding: 8px 4px; text-align: center; font-size: .8rem; }
  .brand { gap: 9px; }
  .brand img { width: clamp(101px,28vw,132px); }
  .edition { padding-left: 9px; font-size: .77rem; }
  .nav-download { margin-left: auto; font-size: .79rem; padding: 8px 10px; min-height: 39px; gap: 6px; }
  .spotlight { padding-top: 15px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "art" "copy"; gap: 0; }
  .hero-canvas { aspect-ratio: auto; height: clamp(193px,60vw,330px); border-radius: 7px; }
  .hero-image.didi img { object-position: 50% 22%; }
  .hero-image.stage { object-position: 50% 44%; }
  .hero-inner { padding-block: 20px 5px; }
  .hero-story[hidden] { display: none !important; }
  .hero-title { font-size: clamp(34px,6.4vw,48px); margin: 9px 0 10px; }
  .hero-title.didi { font-size: clamp(53px,11.6vw,72px); }
  .hero-title span { display: inline; }
  .hero-story h3 { margin: 13px 0 4px; font-size: 19px; }
  .hero-synopsis { font-size: .96rem; line-height: 1.65; }
  .hero-meta { font-size: .8rem; }
  .actions { margin-top: 16px; gap: 10px; }
  .primary { padding: 11px 15px; font-size: .92rem; }
  .app-note { font-size: .78rem; }
  .selector { margin-top: 17px; }
  .feature-choice { padding: 10px 8px; gap: 7px; align-items: center; }
  .feature-choice img { width: 31px; height: 41px; }
  .feature-choice strong { font-size: .78rem; line-height: 1.3; }
  .feature-choice small { margin: 0 0 3px; font-size: .67rem; }
  .reel { padding-block: 32px 39px; }
  .theater { grid-template-columns: 1fr; border-radius: 8px; }
  .theater-intro { padding: 26px 23px 0; }
  .theater-intro .section-title { margin: 8px 0 12px; }
  .reel-lead { font-size: 19px; }
  .reel-story { margin: 6px 0 12px; font-size: .95rem; }
  .catalog-head { display: block; }
  .catalog-intro { margin-top: 6px; font-size: .94rem; }
  .filters { width: fit-content; margin-top: 15px; }
  .filters button { padding: 7px 13px; }
  .catalog-count { padding: 13px 0 6px; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: clamp(91px,25vw,130px) minmax(0,1fr); gap: 15px; padding: 14px 0; }
  .card-copy { padding-top: 2px; }
  .card h3 { font-size: 18px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-copy { flex: 1; }
  .footer-copy p { font-size: .8rem; }
  .footer-download { margin: 3px 0 0; }
}
@media (max-width:490px) {
  .footer-inner { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
  .footer-copy { min-width: 0; }
  .footer-download { grid-column: 1 / -1; margin-top: 6px; }
  .feature-choice img { display:none; }
  .feature-choice { min-height: 65px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
}
