:root {
  --paper: #f5f3ee;
  --surface: #fff;
  --ink: #181a18;
  --muted: #6f726d;
  --line: rgba(24, 26, 24, .1);
  --green: #183e34;
  --green-soft: #dfe9e3;
  --gold: #c89535;
  --yellow: #f4c344;
  --shadow: 0 24px 64px rgba(33, 31, 24, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(210, 221, 213, .72), transparent 34rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.app-shell { width: min(100%, 1160px); margin: 0 auto; padding: 0 42px 120px; }

.access-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(238, 240, 235, .96); backdrop-filter: blur(18px); }
.access-card { width: min(100%, 440px); padding: 32px; border: 1px solid rgba(24, 62, 52, .10); border-radius: 28px; background: rgba(255, 255, 255, .98); box-shadow: 0 28px 80px rgba(24, 35, 29, .14); }
.access-card .brand-mark { width: 46px; height: 46px; margin-bottom: 24px; border-radius: 15px; }
.access-card .eyebrow { margin-bottom: 10px; font-size: 10px; }
.access-card h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 30px; font-weight: 600; line-height: 1.28; }
.access-copy { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.access-points { display: grid; gap: 10px; margin: 22px 0; padding: 18px 18px 18px 36px; color: #4d544f; border-radius: 16px; background: #f4f7f5; font-size: 12px; line-height: 1.6; }
.access-agree { display: flex; align-items: flex-start; gap: 9px; color: #515652; font-size: 12px; line-height: 1.55; cursor: pointer; }
.access-agree input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.access-button { width: 100%; height: 50px; margin-top: 18px; color: #fff; border: 0; border-radius: 15px; background: var(--green); font-weight: 750; cursor: pointer; }
.access-button:disabled { opacity: .38; cursor: not-allowed; }
.access-footnote { display: block; margin-top: 14px; color: #969a95; text-align: center; font-size: 10px; line-height: 1.5; }
.access-gate.is-error .access-points, .access-gate.is-error .access-agree { display: none; }
.access-gate.is-error .access-button { display: none; }

.brand-bar { height: 92px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); font-family: serif; font-weight: 700; }
.brand-name, .brand-note { margin: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.brand-note { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.secure-badge { margin-left: auto; padding: 8px 12px; color: var(--green); border: 1px solid rgba(24, 62, 52, .16); border-radius: 999px; font-size: 12px; font-weight: 650; }

.hero { max-width: 820px; padding: 80px 0 42px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.hero-copy { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.live-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.7); border-radius: 30px; box-shadow: var(--shadow); }
.video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; color: white; background: #07100d; }
.video-stage video, .poster { width: 100%; height: 100%; object-fit: cover; }
.video-stage video { position: relative; z-index: 1; background: #07100d; }
.poster { position: absolute; inset: 0; z-index: 2; }
.video-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 35%, rgba(0,0,0,.28)); }
.live-topline { position: absolute; z-index: 5; top: 22px; left: 22px; right: 22px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.live-pill, .audience { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(11,17,15,.54); backdrop-filter: blur(12px); font-size: 12px; font-weight: 650; }
.live-pill i { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ff655c; box-shadow: 0 0 0 5px rgba(255,101,92,.15); }
.audience { margin-left: auto; font-weight: 500; }
.state-panel { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: radial-gradient(circle at 50% 36%, rgba(45,84,70,.86), rgba(5,14,11,.95)); }
.state-panel[hidden] { display: none; }
.state-kicker { margin: 0 0 12px; color: #d9c28a; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.state-panel h2 { margin: 0; font-family: "Songti SC", serif; font-size: clamp(28px, 4vw, 48px); font-weight: 600; }
.state-schedule { margin: 12px 0 0; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.state-panel > p:not(.state-kicker) { max-width: 480px; margin: 16px 0 0; color: rgba(255,255,255,.68); line-height: 1.65; }
.state-panel > .state-schedule { margin-top: 12px; color: rgba(255,255,255,.86); line-height: 1.4; }
.countdown { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.countdown span { min-width: 64px; padding: 13px 11px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.08); }
.countdown b, .countdown small { display: block; }
.countdown b { font-size: 24px; font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 10px; }
.countdown em { color: rgba(255,255,255,.42); font-style: normal; }
.primary-button { margin-top: 26px; padding: 13px 24px; color: var(--green); border: 0; border-radius: 999px; background: white; font-weight: 700; cursor: pointer; }
.watermark { position: absolute; z-index: 6; left: 4%; top: 21%; max-width: 28%; padding: 3px 6px; overflow: hidden; color: rgba(255,255,255,.26); border-radius: 5px; background: rgba(0,0,0,.08); font-size: 9px; letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; transition: left 1.1s ease, top 1.1s ease; }
.live-meta { display: flex; align-items: center; padding: 24px 28px; }
.mobile-room-title, .teacher, .teacher-note { margin: 0; }
.mobile-room-title { display: none; }
.teacher { font-size: 16px; font-weight: 700; }
.teacher-note { margin-top: 5px; color: var(--muted); font-size: 12px; }
.capacity-note { margin-left: auto; color: var(--muted); font-size: 12px; }
.mobile-schedule { display: none; }

.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 64px 0; }
.insight-grid article { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.56); }
.insight-grid span { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.insight-grid h3 { margin: 52px 0 10px; font-family: "Songti SC", serif; font-size: 24px; }
.insight-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.comments-card { padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.75); }
.section-heading { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-family: "Songti SC", serif; font-size: 28px; }
.pulse-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #3c8d70; box-shadow: 0 0 0 8px rgba(60,141,112,.1); }
.comments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; max-height: 380px; padding-top: 22px; overflow: auto; }
.comments-empty { min-height: 190px; display: grid; place-content: center; gap: 6px; color: #727873; text-align: center; }
.comments-empty span { font-family: "Songti SC", serif; font-size: 18px; }
.comments-empty small { color: #a0a49f; font-size: 11px; }
.comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; }
.comment img { width: 38px; height: 38px; border-radius: 50%; }
.comment strong { display: block; margin-bottom: 4px; color: #4c514d; font-size: 12px; }
.comment p { margin: 0; font-size: 14px; line-height: 1.55; }
.comment.is-new { animation: commentIn .35s ease both; }
@keyframes commentIn { from { opacity: 0; transform: translateY(6px); } }
.comment-composer { display: flex; gap: 10px; margin-top: 18px; }
.comment-composer input { min-width: 0; flex: 1; height: 48px; padding: 0 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; outline: none; background: #f3f4f1; }
.comment-composer input:focus { border-color: rgba(24,62,52,.42); box-shadow: 0 0 0 3px rgba(24,62,52,.08); }
.comment-composer button { min-width: 82px; height: 48px; color: #fff; border: 0; border-radius: 14px; background: var(--green); font-weight: 700; cursor: pointer; }
.comment-composer button:disabled { opacity: .42; cursor: not-allowed; }

.cart-button { position: fixed; z-index: 20; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); width: 66px; height: 66px; display: grid; place-items: center; gap: 0; color: #30270f; border: 1px solid rgba(111,80,13,.18); border-radius: 22px; background: var(--yellow); box-shadow: 0 16px 36px rgba(75,55,13,.24); cursor: pointer; }
.cart-button span { display: block; font-size: 11px; font-weight: 750; }
.cart-button .cart-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(20,22,20,.42); backdrop-filter: blur(4px); }
.course-sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100%, 540px); height: min(92dvh, 760px); max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 70px rgba(0,0,0,.18); transform: translate(-50%, 105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.course-sheet.is-open { transform: translate(-50%, 0); }
.sheet-handle { flex: 0 0 auto; width: 42px; height: 4px; margin: 16px auto 14px; border-radius: 999px; background: #d8dad6; }
.sheet-close { position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; color: #5b5d59; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); font-size: 24px; cursor: pointer; }
.course-scroll { min-height: 0; flex: 1; padding: 0 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.course-cover { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 24px; padding: 26px; color: white; border-radius: 22px; background: radial-gradient(circle at 80% 20%, #456d5f, transparent 38%), #102c25; background-size: cover; background-position: center; }
.course-cover span { font-size: 10px; letter-spacing: .24em; }
.course-cover strong { font-family: "Songti SC", serif; font-size: 34px; font-weight: 600; line-height: 1.24; }
.course-sheet h2 { margin: 0; font-family: "Songti SC", serif; font-size: 28px; }
.course-subtitle { color: var(--muted); line-height: 1.6; }
.course-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.course-points span { padding: 7px 10px; color: var(--green); border-radius: 8px; background: var(--green-soft); font-size: 11px; font-weight: 650; }
.course-deliverables { padding: 20px; border-radius: 16px; background: #f4f7f5; }
.course-deliverables h3 { margin: 0 0 14px; font-size: 15px; }
.course-deliverables ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.course-deliverables li { position: relative; padding-left: 20px; color: #515652; font-size: 13px; line-height: 1.55; }
.course-deliverables li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.course-facts { margin: 22px 0 0; }
.course-facts div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.course-facts dt { color: #8c908b; font-size: 11px; }
.course-facts dd { margin: 0; color: #414642; font-size: 12px; line-height: 1.55; }
.course-support { margin: 18px 0 6px; color: #777c77; font-size: 11px; line-height: 1.6; }
.payment-footer { flex: 0 0 auto; padding: 10px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -12px 28px rgba(26,38,32,.06); }
.payment-bar { display: flex; align-items: center; gap: 18px; padding: 0; }
.payment-bar > div { min-width: 120px; }
.payment-bar small, .payment-bar strong { display: block; }
.payment-bar small { color: var(--muted); font-size: 10px; }
.payment-bar strong { margin-top: 2px; color: #b27719; font-size: 24px; }
.pay-button { flex: 1; height: 52px; color: white; border: 0; border-radius: 16px; background: var(--green); font-weight: 750; cursor: pointer; }
.pay-button:disabled { opacity: .55; cursor: wait; }
.payment-hint { margin: 0; color: #92958f; text-align: center; font-size: 10px; }
.payment-footer .payment-hint { margin-top: 7px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 110px; max-width: min(86vw, 380px); padding: 12px 16px; color: white; border-radius: 12px; background: rgba(12,17,15,.92); transform: translateX(-50%); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }

@media (max-width: 720px) {
  .access-gate { align-items: end; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .access-card { padding: 26px 22px; border-radius: 26px; }
  .access-card h1 { font-size: 26px; }
  body { background: var(--paper); }
  .app-shell { width: 100%; display: flex; flex-direction: column; padding: 0 0 100px; }
  .brand-bar, .hero, .insight-grid { display: none; }
  .live-card { order: 1; border: 0; border-radius: 0; box-shadow: none; }
  .video-stage { aspect-ratio: 16 / 9; }
  .live-topline { top: 10px; left: 10px; right: 10px; }
  .live-pill, .audience { min-height: 28px; padding: 0 9px; font-size: 11px; }
  .state-panel { padding: 46px 18px 12px; }
  .state-kicker, .state-panel > p:not(.state-kicker):not(.state-schedule) { display: none; }
  .state-panel h2 { font-size: 24px; }
  .state-panel > .state-schedule { display: block; margin-top: 8px; font-size: 11px; }
  .countdown { gap: 6px; margin-top: 14px; }
  .countdown span { min-width: 48px; padding: 8px 7px 6px; border-radius: 10px; }
  .countdown b { font-size: 18px; }
  .countdown small { margin-top: 1px; font-size: 8px; }
  .primary-button { margin-top: 14px; padding: 10px 20px; }
  .watermark { max-width: 25%; font-size: 8px; }
  .live-meta { min-height: 66px; display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .mobile-room-title { display: block; max-width: 220px; overflow: hidden; font-family: "Songti SC", serif; font-size: 15px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
  .teacher { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .teacher-note, .desktop-capacity { display: none; }
  .mobile-schedule { display: block; min-width: 72px; text-align: right; line-height: 1.45; }
  .comments-card { order: 2; min-height: calc(100dvh - 285px); margin: 0; padding: 18px 16px 92px; border: 0; border-radius: 0; background: #fff; }
  .section-heading { padding-bottom: 16px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 24px; }
  .comments { grid-template-columns: 1fr; max-height: calc(100dvh - 430px); padding-top: 8px; }
  .comments-empty { min-height: calc(100dvh - 430px); padding: 20px; }
  .comment-composer { position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; gap: 8px; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .comment-composer input { height: 46px; border: 0; border-radius: 23px; background: #f0f1ee; }
  .comment-composer button { min-width: 70px; height: 46px; border-radius: 23px; }
  .cart-button { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 20px; }
  .course-sheet { height: 92dvh; }
  .course-scroll { padding-inline: 18px; }
  .course-cover { min-height: 190px; margin-bottom: 20px; padding: 22px; }
  .course-cover strong { font-size: 30px; }
  .course-sheet h2 { font-size: 25px; }
  .payment-footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Mobile commerce and landscape player */
.view-controls {position:absolute;z-index:8;right:12px;bottom:10px;display:flex;gap:8px}
.view-controls button {border:1px solid #ffffff40;background:#111a;color:#fff;border-radius:20px;padding:8px 12px;font-size:12px;cursor:pointer}
#danmakuToggle {display:none}
.danmaku-layer {display:none;position:absolute;inset:62px 0 80px;z-index:7;overflow:hidden;pointer-events:none}
.danmaku-item {position:absolute;left:0;white-space:nowrap;color:#fff;font:600 20px/30px sans-serif;text-shadow:1px 1px 2px #000,-1px -1px 2px #000;will-change:transform}
.cart-button {background:#ff315b;color:white;border:0;border-radius:50%;box-shadow:0 8px 28px #ff315b40}
.cart-button .cart-icon {display:none}
.cart-button::before {content:'✣';font-size:32px;line-height:30px}
.cart-button span {font-size:10px}
.promo-card {position:fixed;z-index:20;right:14px;bottom:calc(150px + env(safe-area-inset-bottom));width:218px;padding:14px;border-radius:16px;background:white;box-shadow:0 8px 32px #0002;border:1px solid #f1e7e9}
.promo-close {position:absolute;right:5px;top:5px;border:0;background:transparent;color:#888;font-size:20px;cursor:pointer}
.promo-tag {display:inline-block;color:#ed3154;background:#fff0f3;border-radius:4px;padding:3px 6px;font-size:10px;margin-bottom:8px}
.promo-card>strong {display:block;font-size:14px;line-height:1.45;padding-right:4px}
.promo-card p {color:#888;font-size:11px;line-height:1.5;margin:6px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.promo-bottom {display:flex;align-items:center;justify-content:space-between;gap:8px}
.promo-bottom b {color:#ff315b;font-size:19px}
.promo-bottom button {border:0;border-radius:7px;background:#ff315b;color:#fff;font-size:11px;padding:9px 10px;cursor:pointer}
.course-sheet {border-radius:20px 20px 0 0;height:min(78dvh,680px)}
.course-cover {min-height:125px;margin-bottom:16px;padding:18px}
.course-cover strong {font-size:25px}
.pay-button {background:#ff315b;border-radius:10px}
.payment-bar strong {color:#ff315b}
body.landscape-mode {background:#000;overflow:hidden}
.landscape-mode .app-shell {width:100%;padding:0;margin:0}
.landscape-mode .brand-bar,.landscape-mode .hero,.landscape-mode .insight-grid,.landscape-mode .live-meta {display:none}
.landscape-mode .live-card {border:0;border-radius:0}
.landscape-mode .video-stage {position:fixed;inset:0;width:100%;height:100dvh;aspect-ratio:auto;z-index:10}
.landscape-mode video {object-fit:contain}
.landscape-mode .comments-card {position:static;min-height:0;padding:0;border:0}
.landscape-mode .comments-card>.section-heading,.landscape-mode #comments,.landscape-mode #commentsEmpty {display:none}
.landscape-mode .comment-composer {position:fixed;z-index:21;left:max(18px,env(safe-area-inset-left));right:auto;bottom:max(12px,env(safe-area-inset-bottom));width:min(48%,420px);padding:0;margin:0;background:transparent;border:0;backdrop-filter:none}
.landscape-mode .comment-composer input {height:38px;background:#2229;color:#fff;border:1px solid #ffffff30;border-radius:22px}
.landscape-mode .comment-composer button {height:38px;min-width:58px;border-radius:22px;background:#ff315b}
.landscape-mode .danmaku-layer,.landscape-mode #danmakuToggle {display:block}
.landscape-mode .view-controls {right:100px;bottom:15px}
.landscape-mode .cart-button {width:54px;height:54px;right:max(22px,env(safe-area-inset-right));bottom:12px}
.landscape-mode .promo-card {width:210px;right:max(22px,env(safe-area-inset-right));bottom:80px;padding:12px}
.landscape-mode .course-sheet {left:auto;right:0;bottom:0;width:min(380px,48vw);height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;transform:translateX(105%)}
.landscape-mode .course-sheet.is-open {transform:translateX(0)}
.landscape-mode .state-panel {padding:48px 24px 64px}
.landscape-mode .live-topline {top:16px;left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right))}

/* Product showcase and discussion share the area below the player. */
.comments-card {padding:0;overflow:hidden}
.community-columns {display:grid;grid-template-columns:minmax(0, 42fr) minmax(0, 58fr);min-height:360px}
.product-showcase {min-width:0;padding:24px;background:#f4f7f4;border-right:1px solid #e4e9e3}
.product-brand {font-size:10px;letter-spacing:3px;color:#839683;font-weight:700}
.product-heading h2 {margin:8px 0;font-size:22px;color:#233f32}
.product-heading p {font-size:11px;color:#879187;line-height:1.6}
.product-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;padding:18px 10px;margin-top:20px;border:1px dashed #bfcdbf;border-radius:14px;background:linear-gradient(145deg,#edf3eb,#e3ebe0);text-align:center;color:#6a806b}
.product-placeholder>span {font-size:34px;color:#91a48c}
.product-placeholder strong {font-size:14px}
.product-placeholder p,.product-placeholder small {margin:0;font-size:11px;line-height:1.5;color:#8d9b88}
.product-placeholder.secondary {min-height:120px;background:#fafcf9}
.discussion-panel {min-width:0;padding:24px}
.discussion-panel .comments {grid-template-columns:minmax(0,1fr)}
.discussion-panel .comment p {overflow-wrap:anywhere}
.discussion-panel .comments-empty {padding:16px 0}
.discussion-panel .comments-empty span {font-size:14px;line-height:1.6}
@media(max-width:720px) {
 .comments-card {padding:0 0 86px;min-height:calc(100dvh - 285px)}
 .community-columns {min-height:calc(100dvh - 355px)}
 .product-showcase {padding:18px 12px}
 .product-heading h2 {font-size:18px}
 .product-heading p {font-size:10px}
 .product-placeholder {min-height:150px;padding:14px 6px;margin-top:14px}
 .product-placeholder strong {font-size:12px}
 .product-placeholder.secondary {min-height:105px}
 .discussion-panel {padding:18px 12px}
 .discussion-panel .section-heading h2 {font-size:19px}
 .discussion-panel .pulse-dot {width:6px;height:6px;box-shadow:0 0 0 4px #3c8d701a}
 .discussion-panel .comment {grid-template-columns:26px minmax(0,1fr);gap:7px}
 .discussion-panel .comment img {width:26px;height:26px}
 .discussion-panel .comment strong {font-size:10px}
 .discussion-panel .comment p {font-size:12px}
 .discussion-panel .comments {max-height:calc(100dvh - 390px)}
}
.landscape-mode .community-columns {display:block;min-height:0}
.landscape-mode .product-showcase {display:none}
.landscape-mode .discussion-panel {padding:0}
.landscape-mode .discussion-panel .section-heading {display:none}

/* Switchable full-width panels below the player. */
.community-tabs {display:flex;align-items:stretch;border-bottom:1px solid #e7ebe6;background:#fff;padding:0 16px}
.community-tabs [role=tab] {position:relative;flex:1;min-height:58px;border:0;background:transparent;color:#8c948e;font-size:18px;font-weight:600;cursor:pointer}
.community-tabs [aria-selected=true] {color:#183e34}
.community-tabs [aria-selected=true]::after {content:'';position:absolute;bottom:0;left:calc(50% - 17px);width:34px;height:3px;border-radius:3px;background:#183e34}
.community-tabs [role=tab]:focus-visible {outline:2px solid #36755b;outline-offset:-5px;border-radius:6px}
.tab-live-dot {display:inline-block;width:6px;height:6px;margin-left:8px;border-radius:50%;background:#5ca084;vertical-align:middle}
.community-columns {display:block;min-height:360px}
.product-showcase {width:100%;border-right:0;padding:24px}
.product-heading {text-align:center}
.product-placeholder {max-width:600px;margin:18px auto 0;min-height:185px}
.product-placeholder.secondary {min-height:120px}
.discussion-panel {width:100%;padding:12px 24px 24px}
.discussion-panel>.section-heading {display:none}
.discussion-panel .comment {grid-template-columns:36px minmax(0,1fr);gap:12px}
.discussion-panel .comment img {width:36px;height:36px}
.discussion-panel .comment strong {font-size:12px}
.discussion-panel .comment p {font-size:14px}
@media(max-width:720px) {
 .community-tabs [role=tab] {min-height:55px;font-size:17px}
 .community-columns {min-height:calc(100dvh - 410px)}
 .discussion-panel {padding:8px 16px 20px}
 .product-showcase {padding:22px 20px}
 .discussion-panel .comments {max-height:calc(100dvh - 425px);padding-top:0}
 .products-selected .comments-card {padding-bottom:16px}
 .products-selected .cart-button {bottom:calc(22px + env(safe-area-inset-bottom))}
 .products-selected .promo-card {bottom:calc(96px + env(safe-area-inset-bottom))}
}
.landscape-mode .community-tabs {display:none}
.landscape-mode .discussion-panel {padding:0}

/* Original Shuque logo, without cropping or distortion. */
.brand-bar {background:#fff;padding:12px 20px;height:80px}
.brand-logo {display:block;width:190px;max-width:65%;height:auto;object-fit:contain}
@media(max-width:720px) {
 .app-shell>.brand-bar {display:flex;order:0;height:66px;min-height:66px;padding:10px 16px}
 .brand-logo {width:165px}
 .brand-bar .secure-badge {font-size:11px;padding:6px 10px}
 .discussion-panel .comments {max-height:calc(100dvh - 491px)}
 .community-columns {min-height:calc(100dvh - 476px)}
}
.landscape-mode .app-shell>.brand-bar {display:none}

/* Authentic event photography and registration introduction. */
.event-gallery {margin:8px 0 24px}
.event-gallery-heading {display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;padding-right:26px;font-size:13px;font-weight:700;color:#294e3d}
.event-gallery-heading small {font-size:10px;color:#939b96;font-weight:400}
.event-photo-tabs {display:flex;gap:8px;margin-bottom:12px}
.event-photo-tabs button {flex:1;padding:8px;border:1px solid #e3e9e4;border-radius:8px;background:#fff;color:#89968e;font-size:12px;cursor:pointer}
.event-photo-tabs button[aria-selected=true] {color:#fff;background:#214c3b;border-color:#214c3b}
.event-photo-tabs button:focus-visible {outline:2px solid #4b9371;outline-offset:2px}
.event-gallery figure {margin:0;overflow:hidden;border-radius:12px;border:1px solid #edf0ec;background:#f7f9f6}
.event-gallery img {display:block;width:100%;height:auto;object-fit:contain}
.event-gallery figcaption {display:flex;justify-content:space-between;padding:10px 12px;color:#52675a;font-size:10px;line-height:1.5}
.event-gallery figcaption span {color:#98a299;font-variant-numeric:tabular-nums}
.event-eyebrow {font-size:10px;letter-spacing:.08em;margin-bottom:10px}
.course-sheet #courseTitle {font-size:28px;line-height:1.3;letter-spacing:-.03em}
.course-sheet .course-subtitle {font-size:13px;line-height:1.85;margin:12px 0 22px;color:#7a847d}
.event-benefits {padding:18px;background:#f4f7f3;border:1px solid #e8eee5;border-radius:12px;margin-bottom:12px}
.event-benefits h3 {font-size:15px;margin-bottom:18px}
.event-benefits ul {gap:16px;counter-reset:benefit}
.event-benefits li {padding-left:32px;counter-increment:benefit}
.event-benefits li::before {content:'0' counter(benefit);font-size:11px;top:2px;color:#93a58b}
.event-benefits li strong {display:block;font-size:13px;color:#2b4c38}
.event-benefits li p {font-size:12px;line-height:1.7;margin:5px 0 0;color:#7c897c}
.course-sheet .sheet-close {z-index:2;top:10px;right:10px}
.course-sheet .sheet-handle {margin:10px auto 12px}

/* Compact viewer header. */
.app-shell>.brand-bar {display:none}
.live-meta {padding:12px 20px}
@media(max-width:720px) {
 .app-shell>.brand-bar {display:none}
 .live-meta {min-height:46px;padding:6px 14px;gap:10px}
 .live-meta .mobile-room-title {font-size:14px;line-height:18px}
 .live-meta .teacher {margin-top:1px;font-size:10px;line-height:14px}
 .live-meta .mobile-schedule {font-size:10px;line-height:1.3}
 .discussion-panel .comments {max-height:calc(100dvh - 405px)}
 .community-columns {min-height:calc(100dvh - 390px)}
}

/* Documents slide horizontally; event photographs form one vertical story. */
.patent-gallery {margin:8px 0 28px;min-width:0}
.patent-track {position:relative;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#afbcaf #f0f3ed;padding-bottom:8px}
.patent-track figure {flex:0 0 88%;min-width:0;margin:0;scroll-snap-align:start;border-radius:10px;overflow:hidden;background:#f7f8f4;border:1px solid #e9ece3}
.patent-track img {display:block;width:100%;height:310px;object-fit:contain;background:#f8f6e9}
.patent-track figcaption {padding:9px;text-align:center;color:#7b867b;font-size:10px}
.patent-navigation {display:flex;justify-content:center;align-items:center;gap:20px;margin-top:8px}
.patent-navigation button {width:34px;height:30px;border:1px solid #dde5dd;border-radius:7px;background:white;color:#315540;cursor:pointer}
.patent-navigation button:disabled {opacity:.3;cursor:default}
.patent-navigation span {font-size:11px;color:#869285;font-variant-numeric:tabular-nums}
.event-stack figure+figure {margin-top:18px}
.event-stack img {height:auto;width:100%;object-fit:contain}
.landscape-mode .patent-track img {height:245px}

/* Edge-to-edge original patent images, without surrounding cards. */
.patent-gallery {margin-left:-24px;margin-right:-24px}
.patent-gallery>.event-gallery-heading {margin-left:24px;margin-right:24px}
.patent-track {gap:0;padding:0;scrollbar-width:none}
.patent-track::-webkit-scrollbar {display:none}
.patent-track figure {flex-basis:100%;border:0;border-radius:0;background:transparent}
.patent-track img,.landscape-mode .patent-track img {width:100%;height:auto;display:block;background:transparent}
.patent-track figcaption {display:none}
@media(max-width:720px) {
 .patent-gallery {margin-left:-18px;margin-right:-18px}
 .patent-gallery>.event-gallery-heading {margin-left:18px;margin-right:18px}
}

/* Patent documents are browsed by horizontal swipe. */
.patent-navigation {display:none}

/* Full-width event photographs with captions retained. */
.event-stack {margin-left:-24px;margin-right:-24px}
.event-stack>.event-gallery-heading {margin-left:24px;margin-right:24px}
.event-stack figure {border:0;border-radius:0}
.event-stack img {display:block;width:100%;height:auto}
.event-stack figcaption {padding:10px 18px}
@media(max-width:720px) {
 .event-stack {margin-left:-18px;margin-right:-18px}
 .event-stack>.event-gallery-heading {margin-left:18px;margin-right:18px}
}

/* Text-only registration action. */
.cart-button::before {content:none;display:none}
.cart-button .cart-icon {display:none}
.cart-button {display:flex;align-items:center;justify-content:center;padding:0}
.cart-button span {font-size:12px;line-height:1.4;font-weight:700;white-space:nowrap}
.landscape-mode .cart-button span {font-size:11px}

/* Attendance gift, placed first in the registration details. */
.attendance-gift {margin:4px -24px 28px;background:#fff7f5}
.gift-copy {padding:18px 24px 16px}
.gift-label {display:inline-block;padding:5px 9px;border-radius:5px;background:#f9e4df;color:#a45c4d;font-size:10px;letter-spacing:.06em}
.course-sheet #giftTitle {margin:14px 0 12px;font-size:25px;line-height:1.4;color:#382823;letter-spacing:-.03em}
.gift-offer {margin:0;font-size:13px;color:#856d63;line-height:1.8}
.gift-offer strong {display:block;color:#42352e;font-size:19px}
.gift-value {display:flex;align-items:baseline;gap:6px;margin:10px 0 0;color:#a97969;font-size:11px}
.gift-value b {font-size:32px;color:#d54c51;font-weight:750;letter-spacing:-1px}
.gift-value span {font-size:10px;color:#ac8f83}
.attendance-gift img {display:block;width:100%;height:auto}
.gift-caption {margin:0;padding:13px 24px;font-size:11px;line-height:1.7;color:#95776b}
@media(max-width:720px) {
 .attendance-gift {margin-left:-18px;margin-right:-18px}
 .gift-copy {padding:16px 18px}
 .gift-caption {padding:12px 18px}
 .course-sheet #giftTitle {font-size:23px}
}

/* On-site hospitality information. */
.event-hospitality {margin:0 0 28px;padding:24px 20px;background:#f2f6f1;border:1px solid #e2e9de;border-radius:14px}
.hospitality-label {font-size:10px;color:#85957d;letter-spacing:.08em}
.course-sheet #hospitalityTitle {margin:12px 0 10px;font-size:25px;line-height:1.4;color:#284332}
.hospitality-lead {margin:0 0 14px;font-size:16px;font-weight:700;color:#42694c}
.hospitality-copy {margin:0;font-size:13px;line-height:1.9;color:#798574}
.hospitality-features {display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.hospitality-features span {padding:6px 9px;background:#e6eddf;border-radius:5px;color:#627858;font-size:11px}

/* Full-width hospitality section without a card frame. */
.event-hospitality {margin-left:-24px;margin-right:-24px;border:0;border-radius:0;padding:24px}
@media(max-width:720px) {
 .event-hospitality {margin-left:-18px;margin-right:-18px;padding:24px 18px}
}

/* Place content tabs directly below the player. */
.live-card>.live-meta {display:none}
@media(max-width:720px) {
 .discussion-panel .comments {max-height:calc(100dvh - 359px)}
 .community-columns {min-height:calc(100dvh - 344px)}
}

/* Hospitality version 2: warm editorial invitation. */
.event-hospitality.hospitality-v2 {position:relative;overflow:hidden;padding:26px 22px 28px;background:linear-gradient(135deg,#f9f1e4,#f4e6cf);color:#493525}
.hospitality-top {display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid #bc976a40;color:#9a7954;font-size:10px;letter-spacing:.12em}
.hospitality-mark {font-size:9px;letter-spacing:.22em}
.hospitality-intro {margin:24px 0 8px;font-size:12px;color:#9b7850}
.course-sheet .hospitality-v2 #hospitalityTitle {display:flex;align-items:baseline;gap:12px;margin:0;color:#513922;font-family:'Songti SC','STSong',serif;line-height:1.2;letter-spacing:-.04em}
.hospitality-v2 #hospitalityTitle b {font-size:52px;font-weight:500}
.hospitality-v2 #hospitalityTitle span {font-size:37px;font-weight:400}
.hospitality-promise {margin:14px 0 25px;font-size:16px;font-weight:600;letter-spacing:.08em;color:#725133}
.hospitality-services {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-top:1px solid #bc976a50;border-bottom:1px solid #bc976a50;padding:20px 0;gap:16px}
.hospitality-services>div+div {border-left:1px solid #bc976a50;padding-left:16px}
.service-number {font-size:9px;color:#ad8e67;letter-spacing:.08em}
.hospitality-services h3 {margin:12px 0 9px;font-family:'Songti SC','STSong',serif;font-size:21px;font-weight:500;color:#513922}
.hospitality-services strong {font-size:11px;font-weight:600;color:#87633e;line-height:1.5}
.hospitality-services p {margin:9px 0 0;font-size:11px;line-height:1.9;color:#a18b6c}
.hospitality-ending {margin:20px 0 0;font-size:12px;line-height:1.9;color:#92754e}

/* Unified player controls and iPhone inline landscape fallback. */
#playerViewport {display:contents}
.view-controls,.landscape-mode .view-controls {left:0;right:0;bottom:0;height:44px;padding:0 8px;align-items:center;gap:4px;background:linear-gradient(transparent,rgba(0,0,0,.75));border:0}
.view-controls button {display:grid;place-items:center;min-width:40px;height:40px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:#fff;font:12px system-ui;touch-action:manipulation}
.view-controls button:focus-visible {outline:2px solid white;outline-offset:-3px}
.view-controls svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.player-status {flex:1;font:12px system-ui;color:#fff9}
.landscape-mode .video-stage {height:var(--player-height,100dvh)}
.landscape-mode .comment-composer {bottom:58px;width:min(48%,420px)}
.landscape-mode .cart-button {bottom:56px}
.landscape-mode .promo-card {bottom:120px;max-height:calc(var(--player-height,100dvh) - 145px);overflow:auto}
.landscape-mode .course-sheet {width:min(380px,48%);height:var(--player-height,100dvh);max-height:var(--player-height,100dvh)}
.landscape-mode .view-controls {padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));height:48px}
.landscape-mode .danmaku-layer {bottom:110px}
@media (prefers-reduced-motion:reduce) {.course-sheet {transition:none}}

/* Independent keyboard-aligned editor; keep the landscape video layer unchanged. */
#commentDone {display:none}
#playerPlay[hidden] {display:none}
body .comment-composer.comment-editor-overlay {
  position:fixed;z-index:60;left:0;right:0;top:var(--comment-view-bottom,100dvh);bottom:auto;
  width:auto;margin:0;transform:translateY(-100%);display:flex;align-items:center;gap:8px;
  padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));
  background:#142b25;border:1px solid #ffffff24;border-radius:16px 16px 0 0;box-shadow:0 -8px 30px #0004;
}
body .comment-editor-overlay input {flex:1;min-width:0;font-size:16px;height:42px;background:#ffffff12;color:white;border:1px solid #ffffff30;border-radius:22px}
body .comment-editor-overlay button {height:42px;min-width:48px;padding:0 12px;border-radius:22px}
body .comment-editor-overlay #commentDone {display:block;background:#ffffff20;color:#fff}

/* Product posters form one continuous full-width page. */
#productsPanel {padding:0;border:0;line-height:0;background:#eef6ed}
#productsPanel img {display:block;width:100%;height:auto;max-width:100%;margin:0;border:0;border-radius:0}
.products-selected .comments-card {padding-bottom:0}

/* Apple viewers rotate the device to keep video and classroom interaction together. */
.apple-inline-player #landscapeToggle { display: flex !important; }

/* Freeze the classroom behind the native keyboard without rotating or pausing it. */
body.player-editing {position:fixed;top:var(--editing-body-top);left:var(--editing-body-left);width:var(--editing-body-width);overflow:hidden;overscroll-behavior:none}
body.player-editing .video-stage {position:fixed;inset:auto;top:var(--editing-video-top);left:var(--editing-video-left);width:var(--editing-video-width);height:var(--editing-video-height);aspect-ratio:auto;z-index:20}
body.player-editing .comments {overflow:hidden}

#landscapeToggle{display:flex;align-items:center;gap:5px}.landscape-label{white-space:nowrap;font-size:12px}

/* Audience-only live player: use the page controls, never a seekable native timeline. */
#video {pointer-events:none}
#video::-webkit-media-controls {display:none !important}
#video::-webkit-media-controls-timeline {display:none !important}

/* Mobile classroom: the viewport is fixed; only the selected lower panel scrolls. */
@media (max-width:720px) {
  html {height:100%;overflow:hidden;overscroll-behavior:none}
  body:not(.landscape-mode) {height:100%;overflow:hidden;overscroll-behavior:none}
  body:not(.landscape-mode) .app-shell {
    position:fixed;inset:0;width:100%;height:100vh;height:100dvh;
    display:flex;flex-direction:column;margin:0;padding:0;overflow:hidden;
  }
  body:not(.landscape-mode) .live-card {flex:0 0 auto;min-height:0}
  body:not(.landscape-mode) .video-stage {width:100%;height:calc(100vw * 9 / 16);max-height:45svh;aspect-ratio:16 / 9}
  body:not(.landscape-mode) .video-stage video {object-fit:contain}
  body:not(.landscape-mode) .comments-card {
    display:flex;flex-direction:column;flex:1 1 0;min-height:0;
    margin:0;padding:0;overflow:hidden;
  }
  body:not(.landscape-mode) .community-tabs {flex:0 0 auto}
  body:not(.landscape-mode) .community-columns {flex:1 1 0;min-height:0;overflow:hidden}
  body:not(.landscape-mode) .discussion-panel {
    display:flex;flex-direction:column;height:100%;min-height:0;padding:0;overflow:hidden;
  }
  body:not(.landscape-mode) .discussion-panel .comments {
    flex:1 1 0;min-height:0;max-height:none;margin:0;padding:12px 16px;
    overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
    align-content:start;
  }
  body:not(.landscape-mode) .comments-empty {flex:1 1 0;min-height:0;overflow:auto;padding:20px}
  body:not(.landscape-mode) .comment-composer:not(.comment-editor-overlay) {
    position:relative;inset:auto;flex:0 0 auto;width:100%;margin:0;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  body:not(.landscape-mode) .comment-composer input {min-width:0;font-size:16px}
  body:not(.landscape-mode) #productsPanel {
    height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;
    overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .access-gate {overflow:auto;overscroll-behavior:contain}
  .access-card {max-height:100%;overflow:auto}
  .course-scroll {overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
}
@media (max-width:720px) {
  body.player-editing:not(.landscape-mode) .live-card {height:var(--editing-video-height)}
  body.player-editing:not(.landscape-mode) .video-stage {max-height:none}
  body.player-editing:not(.landscape-mode) .discussion-panel .comments {overflow:hidden}
}
