.shanhai-page {
  --product-pad: clamp(28px, 4.16vw, 80px);
  --product-header-height: 103px;
  --product-brown: #806044;
  background: var(--paper);
}
.shanhai-page [hidden] { display: none !important; }
.shanhai-page>.skip-link { top: -100px; transform: none; opacity: 0; pointer-events: none; }
.shanhai-page>.skip-link:focus { top: 12px; opacity: 1; pointer-events: auto; }

.shanhai-hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(650px, calc(100svh - var(--product-header-height))); }
.hero-painting, .hero-paper { position: absolute; inset: 0; z-index: -2; }
.hero-painting img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-paper { z-index: -1; background: linear-gradient(90deg, var(--paper) 0%, rgba(246,244,239,.99) 16%, rgba(246,244,239,.96) 28%, rgba(246,244,239,.86) 37%, rgba(246,244,239,.44) 47%, rgba(246,244,239,.06) 58%, rgba(246,244,239,0) 66%); }
.shanhai-copy { position: relative; width: 64%; max-width: 1100px; padding: clamp(66px, 6.2vw, 100px) 0 clamp(74px, 7vw, 112px) var(--product-pad); }
.product-signature { display: flex; align-items: center; gap: clamp(22px, 2vw, 32px); margin-bottom: clamp(24px, 2.2vw, 36px); }
.shanhai-seal { width: clamp(58px, 5.3vw, 84px); height: auto; filter: brightness(.78) saturate(1.12); }
.product-name { font-size: clamp(14px, 1.42vw, 22px); font-weight: 500; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.shanhai-title { font-family: var(--serif); font-size: clamp(68px, 6.4vw, 104px); line-height: .98; font-weight: 400; letter-spacing: -.018em; }
.shanhai-title span { display: block; white-space: nowrap; }
.shanhai-description { max-width: 630px; width: 82%; margin-top: clamp(26px, 2.6vw, 42px); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.38; color: #55564e; letter-spacing: .005em; }
.shanhai-actions { display: flex; align-items: flex-start; gap: 32px; margin-top: clamp(32px, 3.1vw, 49px); }
.watch-film { display: inline-flex; align-items: center; gap: 20px; min-height: 64px; border: 0; padding: 0; background: transparent; color: var(--product-brown); font-size: clamp(20px, 1.65vw, 26px); font-weight: 500; text-align: left; }
.play-disc { display: grid; place-items: center; width: clamp(54px, 4.2vw, 66px); aspect-ratio: 1; border: 2px solid currentColor; border-radius: 50%; transition: color .25s, background .25s, transform .25s; }
.play-disc svg { margin-left: 2px; width: 41%; height: 41%; }
.watch-film:hover .play-disc { background: var(--product-brown); color: var(--paper); transform: scale(1.06); }
.film-duration { font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-promise { margin-top: clamp(27px, 2.6vw, 42px); font-size: clamp(16px, 1.5vw, 23px); line-height: 1.55; color: #57584f; }
.product-promise span { padding-inline: .12em; }
.app-store-block { flex: 0 0 auto; text-align: center; }
.app-store-button { display: block; border: 0; padding: 0; border-radius: 11px; background: transparent; }
.app-store-button:disabled { cursor: not-allowed; opacity: .8; }
.app-store-button img { display: block; width: 180px; height: 60px; }
.app-store-status { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.app-store-block + .watch-film { border-left: 1px solid #b6b1a7; padding-left: 30px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px var(--product-pad); border-top: 1px solid var(--line); color: #64665d; font-size: 12px; }
.product-footer>div { display: flex; gap: 29px; }
.product-footer a { padding-block: 8px; }
.product-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.shanhai-page.film-is-open { overflow: hidden; }
.film-dialog { width: min(1100px, calc(100vw - 64px)); max-width: none; max-height: calc(100dvh - 64px); padding: 0; border: 1px solid #59584f; border-radius: 10px; background: #151715; color: #f6f4ef; box-shadow: 0 25px 100px #0008; overflow: auto; }
.film-dialog::backdrop { background: rgb(14 18 16 / 86%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px 12px 24px; }
.film-toolbar h2 { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.3; }
.film-toolbar h2 span { font-weight: 400; color: #b7b6ac; }
.close-film { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: inherit; background: transparent; }
.close-film:hover { background: #ffffff13; }
.close-film:focus-visible { outline-color: #d2b99e; outline-offset: 1px; }
.film-dialog video { display: block; width: 100%; max-height: calc(100dvh - 148px); aspect-ratio: 16/9; object-fit: contain; background: #000; }
.film-error { padding: 16px 24px; font-size: 14px; color: #e4dacb; }
.film-error a { text-decoration: underline; }
.no-script-film { padding: 20px var(--product-pad); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hero-painting img { animation: painting-arrive 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .shanhai-copy { animation: copy-arrive .8s ease-out both; }
  @keyframes painting-arrive { from { transform: scale(1.025); } to { transform: scale(1); } }
  @keyframes copy-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1900px) {
  .shanhai-copy { padding-top: 130px; }
  .shanhai-title { font-size: 116px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .shanhai-copy { width: 72%; }
  .product-name { font-size: 14px; letter-spacing: .13em; }
  .shanhai-title { font-size: clamp(63px, 7.5vw, 82px); }
  .shanhai-description { width: 76%; font-size: 21px; }
  .hero-paper { background: linear-gradient(90deg, #f6f4ef 0%, #f6f4eff2 25%, #f6f4efbd 41%, #f6f4ef2b 64%, #f6f4ef00 82%); }
  .hero-painting img { object-position: 63% center; }
  .product-promise { font-size: 16px; }
}
@media (max-width: 900px) {
  .shanhai-page { --product-pad: 24px; --product-header-height: 88px; }
  .shanhai-hero { display: flex; flex-direction: column; min-height: 0; }
  .shanhai-copy { order: 0; width: 100%; max-width: none; padding: 41px var(--product-pad) 0; }
  .product-signature { gap: 17px; margin-bottom: 25px; }
  .shanhai-seal { width: 49px; }
  .product-name { font-size: 12px; letter-spacing: .15em; }
  .shanhai-title { font-size: clamp(47px, 10.9vw, 73px); line-height: 1.01; letter-spacing: -.015em; }
  .shanhai-description { margin-top: 24px; width: 100%; max-width: 480px; font-size: 18px; line-height: 1.48; }
  .shanhai-actions { margin-top: 27px; gap: 24px; }
  .watch-film { min-height: 54px; gap: 11px; font-size: 16px; }
  .play-disc { width: 43px; }
  .film-duration { display: block; font-size: 12px; margin-top: 4px; }
  .app-store-button img { width: 153px; height: 51px; }
  .product-promise { margin-top: 24px; font-size: 13px; line-height: 1.65; }
  .hero-painting { position: relative; order: 1; inset: auto; height: clamp(330px, 76vw, 500px); margin-top: -2px; z-index: -1; }
  .hero-painting img { object-fit: cover; object-position: 70% center; }
  .hero-painting::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #f6f4ef 0%, #f6f4efb0 11%, #f6f4ef0a 29%, #f6f4ef00 65%, #f6f4ef30 100%); }
  .hero-paper { display: none; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 9px; padding-block: 23px; font-size: 11px; }
  .product-footer>div { gap: 25px; }
  .film-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 7px; }
  .film-toolbar { padding: 8px 8px 8px 16px; }
  .film-toolbar h2 { font-size: 14px; }
  .film-dialog video { max-height: calc(100dvh - 104px); }
  .app-store-block + .watch-film { padding-left: 0; border: 0; }
}
@media (max-width: 650px) {
  .shanhai-page { --product-header-height: 81px; }
}
@media (max-width: 359px) {
  .shanhai-page { --product-pad: 20px; }
  .product-name { font-size: 10px; letter-spacing: .13em; }
  .shanhai-title { font-size: 40px; }
  .shanhai-description { font-size: 17px; }
  .product-promise { font-size: 12px; max-width: 260px; }
  .shanhai-actions { gap: 12px; }
  .app-store-button img { width: 132px; height: 44px; }
  .watch-film { font-size: 13px; gap: 9px; min-height: 44px; }
  .play-disc { width: 34px; }
  .film-duration { font-size: 11px; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .shanhai-page *, .shanhai-page *::before, .shanhai-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
