:root {
  --paper: #f3f1ea;
  --paper-deep: #ebe7dc;
  --ink: #20211e;
  --muted: #77786f;
  --green: #293d34;
  --green-dark: #202820;
  --red: #913c33;
  --gold: #aa8b57;
  --line: rgba(32, 33, 30, .12);
  --white: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #252724;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #252724; }
body { min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.eyebrow { margin: 0; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; }

.mobile-page { color: #f5f2e9; background: linear-gradient(160deg, #33483e 0%, #20231f 54%, #171916 100%); }
.mobile-shell { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.landing-shell { justify-content: center; align-items: center; }
.landing-card, .access-card { width: 100%; text-align: center; }
.museum-mark { width: 76px; height: 76px; margin: 0 auto 27px; display: grid; place-items: center; color: #d0b67f; border: 1px solid rgba(208, 182, 127, .45); border-radius: 50%; background: rgba(255,255,255,.035); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.museum-mark svg { width: 42px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.landing-card h1, .access-card h1 { margin: 12px 0 0; font-family: "Songti SC", SimSun, serif; font-size: clamp(34px, 10vw, 44px); font-weight: 600; letter-spacing: .12em; }
.landing-copy { max-width: 320px; margin: 23px auto 0; color: rgba(245,242,233,.66); font-size: 14px; line-height: 1.9; }
.scan-tip { width: min(100%, 320px); min-height: 68px; margin: 34px auto 0; padding: 13px 17px; display: flex; align-items: center; gap: 14px; text-align: left; color: var(--ink); background: #f0ede4; border-radius: 3px; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.scan-tip strong, .scan-tip small { display: block; }
.scan-tip strong { font-size: 14px; font-weight: 600; }
.scan-tip small { margin-top: 5px; color: #8a887f; font-size: 10px; letter-spacing: .08em; }
.scan-icon { position: relative; width: 32px; height: 32px; flex: 0 0 auto; background: linear-gradient(90deg,var(--green) 4px,transparent 4px) 0 0/12px 12px, linear-gradient(var(--green) 4px,transparent 4px) 0 0/12px 12px; border: 1px solid rgba(41,61,52,.22); }
.scan-icon::after { content: ""; position: absolute; inset: 7px; border: 3px solid var(--gold); }
.admin-entry { margin-top: 42px; color: rgba(255,255,255,.36); font-size: 11px; text-decoration: none; letter-spacing: .08em; }

.access-shell { align-items: center; justify-content: center; }
.access-card h1 { font-size: 30px; letter-spacing: .08em; }
.verify-ring { position: relative; width: 82px; height: 82px; margin: 0 auto 30px; display: grid; place-items: center; border: 1px solid rgba(208,182,127,.22); border-radius: 50%; }
.verify-ring::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(208,182,127,.15); border-radius: inherit; }
.verify-ring span { width: 34px; height: 34px; border: 2px solid rgba(208,182,127,.22); border-top-color: #d0b67f; border-radius: 50%; animation: spin .9s linear infinite; }
.verify-ring.failed span { animation: none; border-color: rgba(208,182,127,.5); }
.verify-ring.failed span::before, .verify-ring.failed span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: #d0b67f; }
.verify-ring.failed span::before { transform: translate(-50%,-50%) rotate(45deg); }
.verify-ring.failed span::after { transform: translate(-50%,-50%) rotate(-45deg); }
.access-message { min-height: 48px; margin: 18px auto 0; color: rgba(245,242,233,.66); font-size: 13px; line-height: 1.8; }
.privacy-tip { margin: 25px 0 0; color: rgba(255,255,255,.32); font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-page { min-height: 100vh; color: var(--ink); background: #262825; }
.player-shell { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 70px rgba(0,0,0,.28); }
.player-header { min-height: 62px; padding: max(10px, env(safe-area-inset-top)) 17px 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; color: #eeece5; background: var(--green-dark); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #c4aa75; border: 1px solid rgba(196,170,117,.32); border-radius: 50%; }
.brand-mark svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.header-title { min-width: 0; text-align: center; }
.header-title strong, .header-title small { display: block; }
.header-title strong { font-family: "Songti SC", SimSun, serif; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.header-title small { margin-top: 3px; color: rgba(255,255,255,.38); font-size: 8px; letter-spacing: .16em; }
.overall { min-width: 48px; padding: 5px 9px; text-align: center; color: #c8b485; border: 1px solid rgba(200,180,133,.25); border-radius: 20px; font-size: 10px; font-variant-numeric: tabular-nums; }

.video-stage { position: relative; width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: #080908; }
.video-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #080908; }
.player-info { padding: 26px 20px 24px; border-bottom: 1px solid var(--line); }
.player-info > span { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.player-info h1 { margin: 8px 0 0; font-family: "Songti SC", SimSun, serif; font-size: clamp(24px, 7.2vw, 30px); font-weight: 600; line-height: 1.4; letter-spacing: .04em; }
.player-info > p:not(.player-notice) { margin: 12px 0 0; color: var(--muted); font-family: "Songti SC", SimSun, serif; font-size: 13px; line-height: 1.85; }
.player-notice { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 11px; line-height: 1.6; }
.player-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 3px; font-size: 12px; cursor: pointer; }
.mobile-button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mobile-button.primary { color: #f5f1e7; background: #30372f; box-shadow: 0 8px 18px rgba(32,40,32,.13); }
.mobile-button.secondary { color: #4f514b; background: transparent; border: 1px solid #d6d2c8; }
.mobile-button:disabled { opacity: .38; cursor: default; }
.access-card .mobile-button { width: min(100%, 260px); margin: 5px auto 0; color: var(--green-dark); background: #e9e4d8; }

.playlist-section { padding: 25px 20px 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
.section-heading span { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.section-heading h2 { margin: 5px 0 0; font-family: "Songti SC", SimSun, serif; font-size: 19px; font-weight: 600; letter-spacing: .08em; }
.section-heading > small { padding-bottom: 2px; color: #aaa69d; font-size: 9px; }
.playlist { margin-top: 15px; display: grid; gap: 8px; }
.playlist-item { position: relative; width: 100%; min-height: 64px; padding: 10px 35px 10px 11px; display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 11px; overflow: hidden; text-align: left; color: #74766f; background: rgba(255,255,255,.55); border: 1px solid #dfdcd3; border-radius: 4px; cursor: pointer; }
.playlist-item::after { content: "›"; position: absolute; right: 14px; top: 50%; color: #aaa79f; font-family: Arial,sans-serif; font-size: 20px; transform: translateY(-53%); }
.playlist-item > span { width: 35px; height: 35px; display: grid; place-items: center; color: #8c8b84; background: #ebe8df; border-radius: 50%; font-family: Georgia,serif; font-size: 12px; font-variant-numeric: tabular-nums; }
.playlist-item strong, .playlist-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-item strong { color: #4a4b46; font-family: KaiTi, "STKaiti", "Kaiti SC", "楷体", serif; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.playlist-item small { margin-top: 5px; color: #a19f97; font-size: 9px; }
.playlist-item.active { background: #fff; border-color: rgba(145,60,51,.48); box-shadow: 0 8px 22px rgba(50,46,38,.07); }
.playlist-item.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); }
.playlist-item.active > span { color: #fff; background: var(--red); }
.playlist-item.active strong { color: var(--red); }
.player-footer { padding: 18px 20px max(22px, env(safe-area-inset-bottom)); text-align: center; color: #9b9a92; background: var(--paper-deep); border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .08em; }

@media (min-width: 481px) {
  .mobile-page { padding: 24px 0; }
  .mobile-shell { min-height: calc(100dvh - 48px); border-radius: 8px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
}

@media (max-width: 350px) {
  .player-info, .playlist-section { padding-left: 15px; padding-right: 15px; }
  .landing-card h1 { font-size: 32px; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .player-shell { max-width: 960px; }
  .video-stage { max-height: calc(100dvh - 62px); aspect-ratio: 16/9; }
  .video-stage video { object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
  .verify-ring span { animation-duration: 1.8s; }
}
