/* DreamDrama website — beta styles. Four user-switchable color themes
   (Bao 2026-11-19: not just black — let users pick), driven entirely by
   CSS variables under :root[data-theme="..."]. Default = light
   (Bao + Danxu 2026-11-21; before that the default was blackgold,
   whose block still doubles as the shared-variable base on :root).
   Gold stays the brand accent in every theme (deepened on light
   themes so gold text/links keep enough contrast). The video player
   itself stays black in all themes — industry convention. */
:root, :root[data-theme="blackgold"]{
  /* (v169, K1) Values re-mapped from DreamDrama_Design_Tokens.json
     (dark set): cinema #111417 base, surface #202427, elevated
     #2B3033, ivory text #F7F6F2, secondary #B8B9B5, border #393D40,
     champagne #D6B77B accent (goldOnDark), success #79C9A3,
     error text #F38B87 on dark; the destructive BUTTON surface is
     #A23A3A in every theme (--danger). --gold is the accent FILL,
     --gold2 is accent TEXT (tokens goldOnDark/goldOnLight).
     (v176) STRENGTHENED palette (Bao 2026-11-29: the v169 mapping
     read 寡淡 — the approved scheme of dreamdrama-color-mockup-
     2026-11-29/MOCKUP.md, verified on the design book's own
     pages in color-mockup2): fill gold #C9A24E, dark accent text
     #E3BC63, on-gold #241A05, dark surface #20262D / elevated
     #262D35, dark border #454E57. --gold-hover is the one-step
     lighter derivation of the new fill (#D8B264). */
  --bg:#111417; --bg2:#20262d; --card:#20262d; --line:#454e57;
  --text:#f7f6f2; --muted:#b8b9b5; --gold:#c9a24e; --gold2:#e3bc63;
  --gold-hover:#d8b264;
  --red:#f38b87; --green:#79c9a3; --blue:#4c9aff; --purple:#9b7bea;
  --radius:16px; --shadow:0 8px 30px rgba(0,0,0,.45);
  --topbar-bg:rgba(17,20,23,.92); --text-soft:#e8e6df; --gold-tint:#2b2517;
  --hero-glow1:#3a2c10; --hero-glow2:#1d2b4a;
  --error-bg:#3d1416; --error-text:#ffc4c6; --ok-bg:#173a22; --ok-text:#b7ecc2;
  --warn-bg:#3d2b07; --track:#454e57;
  --surface-elevated:#262d35; --accent:var(--gold); --accent-text:var(--gold2);
  --on-gold:#241a05; --danger:#a23a3a; --danger-text:#ffffff;
  --success:var(--green); --warning:var(--gold2);
  --disabled-surface:#303436;
  --media-bg:#111417; --media-fg:#ffffff; --scrim:rgba(7,8,10,.76);
  /* (v86) Aliases for the publish menu / sheets: --surface and
     --border were USED by .global-publish-menu, .publish-item and
     .sheet-card but never DEFINED in any theme, so those surfaces
     rendered transparent over the video feed (desktop audit
     2026-11-22: menu "covered by the stream", sheet "translucent
     over dark video"). Aliasing them to the themed card/line pair
     gives every theme an opaque surface again. */
  --surface:var(--card); --border:var(--line);
}
:root[data-theme="light"]{
  /* (v169, K1) Tokens light set: ivory #F7F6F2 background, paper
     #FFFFFF surface, ink #1D2021 text, secondary #696D69, border
     #E6E5E0, accent text dark gold #83632E (goldOnLight), success
     #216649, error #A23A3A. --gold fill stays champagne #D6B77B.
     (v176) Strengthened per the approved scheme: warm ivory bg
     #F6EFDF, warm-white surface #FFFDF6, deepened border #D3B678,
     fill #C9A24E (hover derivation #B8913E, one step deeper on
     light grounds), dark-gold shadow 0 4px 14px rgba(131,99,46,
     .20), gold-tint aligned to the scheme's warm banner gold
     #F8ECD2. --gold2 stays #83632E (the scheme keeps the value
     and widens its USE — see .wf-act). --muted is untouched, so
     the v169-noted light secondary/disabled 4.25 pair is NOT
     silently altered; it stays in the ruling pool.
     (v177) Bao ruled the warmed SURFACES ugly (2026-11-29
     01:32): the light surface values below are REVERTED to
     the V1.1 tokens originals; only the strengthened gold
     family (--gold/--gold-hover, --gold2 use) stays. */
  --bg:#f7f6f2; --bg2:#ffffff; --card:#ffffff; --line:#e6e5e0;
  --text:#1d2021; --muted:#696d69; --gold:#c9a24e; --gold2:#83632e;
  --gold-hover:#b8913e;
  --red:#a23a3a; --green:#216649;
  --shadow:0 8px 24px rgba(20,20,40,.10);
  --topbar-bg:rgba(247,246,242,.92); --text-soft:#33333f; --gold-tint:#f3ead3;
  --hero-glow1:#f7e3ac; --hero-glow2:#dbe7fb;
  --error-bg:#fdecec; --error-text:#8f1d22; --ok-bg:#e6f6ea; --ok-text:#1d5c2e;
  --warn-bg:#fdf3d3; --track:#e6e5e0;
  --surface-elevated:#ffffff; --disabled-surface:#e9e7e0;
}
:root[data-theme="midnight"]{
  /* (v169, K1) Dark family, derived from the tokens dark set with
     the theme's navy shift kept: cinema lightness steps (bg /
     surface / elevated / border) carried into a deep-navy hue;
     text, accent, success and error take the tokens dark values
     verbatim (ivory text, champagne accent, #79C9A3, #F38B87).
     (v176) Same derivation discipline for the strengthened
     scheme: fill #C9A24E / accent text #E3BC63 verbatim; the
     surface/elevated/border steps carried into the navy hue at
     the scheme's new lightnesses (#222A35 / #2B333F / #48525F). */
  --bg:#10141b; --bg2:#222a35; --card:#222a35; --line:#48525f;
  --text:#f7f6f2; --muted:#adb3bc; --gold:#c9a24e; --gold2:#e3bc63;
  --gold-hover:#d8b264;
  --red:#f38b87; --green:#79c9a3;
  --shadow:0 8px 30px rgba(0,0,10,.5);
  --topbar-bg:rgba(16,20,27,.92); --text-soft:#d5d9e0; --gold-tint:#2b2517;
  --hero-glow1:#3a2c10; --hero-glow2:#274b8f;
  --error-bg:#3d1420; --error-text:#ffc4cd; --ok-bg:#0f3524; --ok-text:#a9e8c0;
  --warn-bg:#3d2b07; --track:#48525f;
  --surface-elevated:#2b333f; --disabled-surface:#2c333f;
}
:root[data-theme="cream"]{
  /* (v169, K1) Light family, derived from the tokens light set
     with the theme's warm-paper shift kept: ivory steps warmed,
     ink text and dark-gold accent text verbatim from tokens,
     success #216649 / error #A23A3A verbatim.
     (v176) Strengthened derivation: bg keeps cream's warm-paper
     step above the new light bg; bg2 takes the scheme's warm
     ivory #F6EFDF; card unifies on the scheme's warm white
     #FFFDF6; border takes the design book's own light-board
     border #D8BE85; fill/hover/gold-tint follow the light set.
     (v177) Same ruling as light: the warmed surface values
     below are reverted to cream's derived originals; the
     strengthened gold family stays. */
  --bg:#faf6ec; --bg2:#f5efdd; --card:#fffdf8; --line:#e6e0ce;
  --text:#1d2021; --muted:#6e6455; --gold:#c9a24e; --gold2:#83632e;
  --gold-hover:#b8913e;
  --red:#a23a3a; --green:#216649;
  --shadow:0 8px 24px rgba(90,70,20,.12);
  --topbar-bg:rgba(250,246,236,.92); --text-soft:#4a3d2c; --gold-tint:#f7ead0;
  --hero-glow1:#f3d98b; --hero-glow2:#f0dfba;
  --error-bg:#fbe9e4; --error-text:#8f2d1d; --ok-bg:#e9f4e2; --ok-text:#33691e;
  --warn-bg:#f7ead0; --track:#e6e0ce;
  --surface-elevated:#fffdf8; --disabled-surface:#eae4d2;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.55}
a{color:var(--gold2);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.25;margin:.2em 0 .5em}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:var(--text)}
img{max-width:100%}

/* ---------- one-tap update banner (js/app.js, v32) ---------- */
.update-bar{display:block;width:100%;border:0;margin:0;padding:13px 16px;background:var(--gold);color:var(--on-gold);font-size:16px;font-weight:800;text-align:center;cursor:pointer}

/* ---------- top bar ---------- */
.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:14px;padding:10px 18px;background:var(--topbar-bg);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.logo{font-size:22px;font-weight:800;color:var(--text);letter-spacing:0;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
/* (v178) The word wrapper carries the TEXT color explicitly.
   v177's first deployment shipped a broad `.logo span` gold
   rule; under the unchanged ?v=177 pin, browsers that cached
   that CSS applied it to .logo-word (a span) once the seam fix
   wrapped the word — the whole wordmark rendered gold. This
   rule (specificity 0,2,0) outranks any `.logo span` (0,1,1),
   so Dream's half is pinned to --text no matter what broad
   span rule a stale sheet still carries. */
.logo .logo-word{color:var(--text)}
.logo .logo-drama{color:var(--gold2)}
/* (v169, UI-11) The logo mark is the official gold D asset
   (icon-192.png), not an emoji glyph. */
.logo-img{width:30px;height:30px;border-radius:8px;flex:none}
.logo:hover{text-decoration:none}
/* (v53: the old top text-tab row .mainnav is gone — main navigation
   is the fixed bottom tab bar at the end of this file.) */
.topright{display:flex;gap:8px;align-items:center;margin-left:auto}
.topright select{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:7px 8px}
.credits-pill,.creator-btn{background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:7px 12px;font-weight:700;white-space:nowrap}
.credits-pill:hover,.creator-btn:hover{border-color:var(--gold)}
/* Topbar ⋯ "More" menu: low-frequency entries (language, theme,
   credits, creator name) live here so the bar itself stays just
   logo + the gold + publish button (v53). */
.more-wrap{position:relative}
.more-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;display:flex;flex-direction:column;gap:8px;min-width:200px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:10px}
.more-menu[hidden]{display:none}
.more-menu .credits-pill,.more-menu .creator-btn{text-align:left}

/* ---------- layout ---------- */
main{max-width:1180px;margin:0 auto;padding:0 18px 60px}
section{margin-top:34px}
.section-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.section-head h2{margin:0}
.section-head .sub{color:var(--muted);font-size:14px}
/* (v169, K1 + Addendum 02 §5) One button system site-wide:
   Primary = champagne solid + on-gold dark text; Secondary =
   neutral surface + border (the .btn default); Outline = accent
   border + accent text; Text = .btn.text / .btn.ghost (no box);
   Destructive = .btn.danger (#A23A3A in every theme). Corner
   12px and min-height 44px per the tokens (buttonHeight 48 for
   primary actions); .btn.small is the dense-row variant. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--bg2);color:var(--text);border-radius:12px;padding:10px 18px;min-height:44px;font-weight:700}
.btn:hover{border-color:var(--gold);text-decoration:none}
.btn:active{filter:brightness(.97)}
.btn.primary{background:var(--gold);border-color:var(--gold);color:var(--on-gold);min-height:48px}
.btn.primary:hover{background:var(--gold-hover);border-color:var(--gold-hover)}
.btn.outline{background:transparent;border-color:var(--gold);color:var(--gold2)}
.btn.ghost{background:transparent}
.btn.text{background:transparent;border-color:transparent;color:var(--gold2)}
.btn.text:hover{border-color:transparent;text-decoration:underline}
.btn.danger{background:var(--danger);border-color:var(--danger);color:var(--danger-text)}
.btn.danger:hover{border-color:var(--danger);filter:brightness(1.08)}
.btn.small{padding:6px 14px;font-size:14px;min-height:38px;border-radius:10px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
/* (v143) The completion card's big gold Publish: full row of its
   flex line, taller, larger type — the door you cannot miss. */
.btn.publish-big{flex:1 1 100%;padding:15px 20px;font-size:17px;text-align:center}
/* (v144) The just-published card on the works home wears a
   gold ring until the author navigates on — first eye lands
   on it, no hunting. */
.card.just-published{outline:2px solid var(--gold);outline-offset:2px}

/* ---------- hero ---------- */
.hero{margin-top:26px;background:radial-gradient(1000px 300px at 20% -10%,var(--hero-glow1),transparent),radial-gradient(800px 260px at 90% 0%,var(--hero-glow2),transparent),var(--bg2);border:1px solid var(--line);border-radius:24px;padding:34px 28px;text-align:center}
.hero h1{font-size:clamp(28px,5vw,46px);margin:.1em 0}
.hero h1 em{font-style:normal;color:var(--gold)}
.hero p.lede{color:var(--muted);font-size:17px;max-width:640px;margin:0 auto 18px}
.hero-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:6px}
/* ---------- (v170) hero carousel — Addendum 03 §3 ----------
   Standing desktop section (280–360px tall); on phones it is
   the first-entry browse hero at compact height (180–240px)
   and .hc-deferred removes it for returning users. Slides
   stack absolutely and crossfade; copy sits on the surface,
   art on the right under a scrim that melts into the surface
   so text contrast never depends on the picture.
   (v176) The surface is now the design book's form (V1.3 §02):
   a FIXED brand face in every theme — the VI dusk gradient
   (deep violet -> plum -> warm gold) with the copy directly
   on it, no themed card under the text. Like the player's
   black, this face does not follow the theme: serif display
   title in ivory, its italic clause and the eyebrow in bright
   gold #EFC96E, sub in #E0DED9, CTA the standard primary
   (fill --gold #C9A24E / on-gold #241A05). The featured slide
   keeps the work's real cover on the right, melted in by the
   same dusk scrim; brand/create keep the gold-D watermark art.
   Rotation machinery (7.5s / pause / dots / gestures /
   reduced-motion) is untouched — presentation only. */
.hero-carousel{position:relative;margin-top:26px;height:320px;background:linear-gradient(120deg,#2a2140,#4a2a52 45%,#7a3b5e 75%,#b06a44);border:none;border-radius:24px;overflow:hidden}
.hero-carousel + .official-strip{margin-top:14px}
.hc-slide{position:absolute;inset:0;display:flex;align-items:center;padding:28px 34px;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s}
.hc-slide.on{opacity:1;visibility:visible}
.hc-copy{position:relative;z-index:2;max-width:57%}
.hc-eyebrow{font-size:12px;letter-spacing:2.5px;font-weight:800;color:#efc96e;text-transform:uppercase;margin-bottom:10px}
.hc-title{font-family:Georgia,"Times New Roman","Noto Serif CJK SC","Noto Serif SC","Songti SC",serif;font-size:clamp(25px,3.2vw,38px);line-height:1.16;margin:0 0 10px;font-weight:400;color:#f7f6f2}
.hc-title em{font-style:italic;color:#efc96e}
.hc-featured .hc-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:clamp(22px,2.6vw,32px)}
.hc-sub{color:#e0ded9;font-size:15.5px;margin:0 0 16px}
.hc-art{position:absolute;top:0;right:0;bottom:0;width:44%;display:block}
.hc-art img{width:100%;height:100%;object-fit:cover;display:block}
.hc-art::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to right,#2a2140 0%,rgba(42,33,64,.45) 34%,rgba(42,33,64,0) 68%)}
.hc-art-brand,.hc-art-create{display:flex;align-items:center;justify-content:center;background:none}
.hc-art-brand img,.hc-art-create img{width:190px;height:190px;object-fit:contain;opacity:.16}
.hc-art-create img{opacity:.1}
.hc-art-empty{background:radial-gradient(420px 300px at 70% 20%,rgba(239,201,110,.28),transparent),linear-gradient(120deg,#4a2a52,#7a3b5e)}
.hc-controls{position:absolute;right:16px;bottom:12px;z-index:5;display:flex;align-items:center;gap:10px}
.hc-dots{display:flex;gap:2px}
.hc-dot{width:32px;height:32px;background:none;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.hc-dot span{width:7px;height:7px;border-radius:99px;background:#f7f6f2;opacity:.5;transition:all .3s}
.hc-dot.on span{width:20px;background:var(--gold);opacity:1}
.hc-pause{width:38px;height:38px;border-radius:50%;border:1px solid rgba(247,246,242,.35);background:rgba(20,14,28,.45);color:#f7f6f2;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.hc-pause svg{width:15px;height:15px}
@media (prefers-reduced-motion:reduce){.hc-slide{transition:none}}
.stats-bar{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 20px;min-width:130px}
.stat b{display:block;font-size:26px;color:var(--gold2)}
.stat span{font-size:12.5px;color:var(--muted)}
.stat small{display:block;font-size:11px;color:var(--muted);opacity:.75}
.mode-banner{margin-top:12px;display:inline-block;background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:3px 10px;font-size:12px;opacity:.75}

/* ---------- language tabs ---------- */
.lang-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.lang-tabs button{background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:8px 16px;font-weight:700}
.lang-tabs button.active{background:var(--gold);border-color:var(--gold);color:var(--on-gold)}
.lang-tabs button .count{opacity:.7;font-weight:400;font-size:12px;margin-left:4px}

/* ---------- drama grid & cards ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;position:relative}
.card.promoted{border:2px solid var(--gold)}
.card-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-body h3{margin:0;font-size:17px}
.card-body .meta{font-size:13px;color:var(--muted)}
.card-body .logline{font-size:14px;color:var(--text-soft);flex:1}
/* (v124) content i18n 原文/译文 toggle: a quiet inline pill beside
   any drama/moment text shown in translation. */
.ctr-toggle{margin-left:6px;padding:0 7px;font-size:11px;line-height:1.8;color:var(--muted);background:none;border:1px solid var(--line);border-radius:9px;cursor:pointer;vertical-align:middle;white-space:nowrap}
.ctr-toggle:active{color:var(--gold2);border-color:var(--gold2)}
.card-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
/* (v164) Watch feed card (Addendum 01 §2 / 02 §2): hairline border
   only, no shadow, no gold frame for promoted — the feed reads as
   an entertainment stream, not a product catalog. The action-row
   classes use the wf- prefix on purpose: the retired river feed
   still owns .feed-actions / .feed-act / .feed-title /
   .feed-logline lower in this file (position:absolute overlay
   rules) — reusing those names put the row on top of the card's
   原文 toggle and made it untappable (found by the v164 walk). */
.feed-card{box-shadow:none}
.feed-card.promoted{border:1px solid var(--line)}
.feed-author-row{padding:12px 14px 0}
.feed-author{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;max-width:100%}
.feed-author-ava{position:relative;width:30px;height:30px;border-radius:50%;background:var(--bg2);flex:none;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}
.feed-author-initial{font-size:14px;font-weight:700;color:var(--muted)}
.feed-author-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feed-author-name{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-cover{display:block;margin-top:10px}
.feed-play{font-size:0;text-shadow:none;opacity:1}
.feed-play-ic{width:54px;height:54px;border-radius:50%;background:rgba(18,18,22,.42);color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;padding-left:3px;border:1px solid rgba(255,255,255,.55)}
.wf-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wf-logline{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feed-src{color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px;font-size:11px;white-space:nowrap}
.feed-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}
.wf-actions{display:flex;gap:14px;align-items:center}
/* (v176) The feed action row (icons + counts) rides the accent
   text color, not muted gray: the strengthened scheme widens
   dark gold's USE on light themes (icons / counts / active
   states in --gold2) and lifts it to #E3BC63 on dark themes.
   .wf-act.on below already keyed on --gold2; the base row now
   matches it, and v172's measured icon contrast still holds
   (gold2 on every theme's card/bg parses >= 4.5 — v176 suite). */
.wf-act{background:none;border:none;padding:4px 2px;font-size:13.5px;color:var(--gold2);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:4px;min-height:32px;font-family:inherit}
.wf-act.on{color:var(--gold2);font-weight:700}
.ctr-toggle-all{margin-left:0;flex:none}
.badge{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.4px;border-radius:999px;padding:3px 9px;background:#33334a;color:#fff}
.badge.gold{background:var(--gold);color:var(--on-gold)}
.badge.green{background:#173a22;color:#8ee6a5}
.badge.blue{background:#14273d;color:#9cc8ff}
.badge.red{background:var(--error-bg);color:var(--red)}
.badge.purple{background:#2a1f45;color:#cdb4ff}
.poster{position:relative;aspect-ratio:9/12;display:flex;flex-direction:column;justify-content:flex-end;padding:16px;overflow:hidden}
.poster .poster-title{font-size:22px;font-weight:800;line-height:1.15;text-shadow:0 2px 12px rgba(0,0,0,.7)}
.poster .poster-genre{font-size:12px;letter-spacing:2px;text-transform:uppercase;opacity:.85}
.poster .poster-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:54px;opacity:.9;text-shadow:0 4px 20px rgba(0,0,0,.8)}
.poster.mosaic .poster-title,.poster.mosaic .poster-genre{filter:blur(6px)}
.poster .mosaic-label{position:absolute;top:10px;left:10px;background:#000a;border:1px solid var(--gold);color:var(--gold2);font-size:11px;font-weight:700;border-radius:999px;padding:4px 10px}
.pg-1{background:linear-gradient(160deg,#3b1d4e,#12081f 70%)}
.pg-2{background:linear-gradient(160deg,#7a2e2e,#2b0d0d 70%)}
.pg-3{background:linear-gradient(160deg,#14424e,#08161c 70%)}
.pg-4{background:linear-gradient(160deg,#6b4d12,#241a05 70%)}
.pg-5{background:linear-gradient(160deg,#1d4d2e,#08170d 70%)}
.pg-6{background:linear-gradient(160deg,#4a2b6b,#160a26 70%)}
.pg-7{background:linear-gradient(160deg,#274b8f,#0a1428 70%)}
.pg-8{background:linear-gradient(160deg,#8f3a5b,#260a18 70%)}
.ad-slot{border:1.5px dashed var(--line);border-radius:var(--radius);padding:22px;text-align:center;color:var(--muted);font-size:13px}
.ad-slot b{color:var(--gold2)}

/* ---------- detail view ---------- */
/* (v170, Addendum 03 §4) Cinema detail grid: media stage
   (~62%) + info side (~38%) above the fold, extras full width
   below. The pre-v170 300px poster column is gone — for video
   dramas the poster block is not rendered at all (the player's
   own poster is the cover); for storyboard dramas it sits atop
   the stage. Mobile stacking lives in the ≤820px block. */
.detail{display:grid;grid-template-columns:minmax(0,62fr) minmax(320px,38fr);grid-template-areas:"stage side" "extra extra";gap:26px;margin-top:22px;align-items:start}
.detail-stage{grid-area:stage;min-width:0}
.detail-side{grid-area:side;min-width:0}
.detail-extra{grid-area:extra;min-width:0}
.detail-stage .player{margin-top:0}
.detail-stage .vp-wrap{max-width:min(400px,calc((100dvh - 250px)*.5625))}
.detail-stage .video-player{max-width:100%;max-height:min(560px,calc(100dvh - 250px))}
.detail-stage .poster{max-width:300px}
.detail .poster{border-radius:var(--radius)}
.detail h1{margin-top:0}
.detail .meta{color:var(--muted);font-size:14px}
/* (v170) Desktop creator row: avatar + name + the page's one
   Follow door. The meta line's author span is the mobile twin
   of this row — exactly one of them is ever visible. */
.detail-author{display:flex;align-items:center;gap:10px;margin:2px 0 12px}
.detail-author-ava{position:relative;width:42px;height:42px;border-radius:50%;background:var(--bg2);flex:none;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}
.detail-author-initial{font-size:17px;font-weight:700;color:var(--muted)}
.detail-author-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.detail-author-name{font-size:16.5px;font-weight:700;color:var(--text);text-decoration:none}
.detail-author .follow-btn{margin-left:2px}
@media (min-width:821px){.detail-meta-author{display:none}}
/* (v170) Desktop inline comments + related, in the side rail. */
.detail-comments{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}
.detail-comments h3{margin:0 0 6px;font-size:16px}
.detail-related{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}
.detail-related h3{margin:0 0 6px;font-size:16px}
.rel-row{display:flex;gap:10px;align-items:center;padding:7px 0;color:var(--text);text-decoration:none}
.rel-thumb{width:52px;height:70px;object-fit:cover;border-radius:8px;background:var(--bg2);flex:none;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.rel-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.rel-title{font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rel-sub{font-size:12.5px;color:var(--muted)}
.episodes{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.episode{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.episode b{color:var(--gold2)}
.episode p{margin:4px 0 0;font-size:14px;color:var(--text-soft)}
.player{background:#000;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:18px}
.player-frame{aspect-ratio:9/16;max-height:520px;margin:0 auto;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px}
.player-frame .frame-visual{font-size:15px;color:#e8e4da;max-width:340px}
.player-frame .frame-caption{position:absolute;bottom:0;left:0;right:0;padding:14px 18px;background:linear-gradient(transparent,rgba(0,0,0,.85));font-size:15px}
.player-frame.mosaic .frame-visual{filter:blur(10px)}
.player-controls{display:flex;gap:8px;align-items:center;padding:12px}
.player-controls .progress{flex:1;height:6px;background:var(--track);border-radius:99px;overflow:hidden}
.player-controls .progress i{display:block;height:100%;background:var(--gold)}
.warn-banner{background:var(--warn-bg);border:1px solid var(--gold);color:var(--gold2);border-radius:12px;padding:10px 14px;font-size:14px;margin-top:14px}
.vote-box{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:18px}
.tip-line{margin-top:8px;font-size:14px;color:var(--gold2)}
.tip-tiers{display:flex;gap:8px;flex-wrap:wrap}
.tip-tiers .btn{min-width:76px}
.vote-opt{display:block;width:100%;text-align:left;background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:10px;padding:10px 14px;margin-top:8px}
.vote-opt:hover{border-color:var(--gold)}
.vote-opt .bar{height:6px;background:var(--track);border-radius:99px;margin-top:6px;overflow:hidden}
.vote-opt .bar i{display:block;height:100%;background:var(--gold)}
.vote-opt.voted{border-color:var(--gold)}

/* ---------- studio ---------- */
.studio{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:18px}
.studio label{display:block;font-weight:700;margin:14px 0 6px}
.studio textarea,.studio select,.studio input[type=text]{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
.studio textarea{min-height:130px;resize:vertical}
.studio .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.radio-cards{display:flex;gap:10px;flex-wrap:wrap}
.radio-cards label{margin:0}
.radio-card{border:1px solid var(--line);border-radius:12px;padding:10px 14px;cursor:pointer;background:var(--bg2)}
.radio-card input{display:none}
.radio-card:has(input:checked){border-color:var(--gold);background:var(--gold-tint)}
.radio-card b{display:block}
.radio-card span{font-size:12.5px;color:var(--muted)}
/* Collapsed "More settings" — options live here, off the main path,
   on both the create and upload pages (Bao 2026-11-19: keep it simple). */
.more-settings{margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg2);padding:2px 14px 14px}
.more-settings>summary{cursor:pointer;font-weight:700;padding:10px 0 4px;list-style:none;color:var(--muted)}
.more-settings>summary::-webkit-details-marker{display:none}
.more-settings>summary::after{content:" ▾";color:var(--gold)}
.more-settings[open]>summary::after{content:" ▴"}
.result-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}
.result-card h3{margin-top:0}
.char-chip{display:inline-block;background:var(--bg2);border:1px solid var(--line);border-radius:999px;padding:5px 12px;margin:3px;font-size:13px}
.sb-frame{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:8px}
.sb-frame.mosaic .sb-visual{filter:blur(8px)}
.limit-note{font-size:13px;color:var(--muted)}
.error-box{background:var(--error-bg);border:1px solid var(--red);color:var(--error-text);border-radius:12px;padding:12px 14px;margin-top:14px}
.ok-box{background:var(--ok-bg);border:1px solid var(--green);color:var(--ok-text);border-radius:12px;padding:12px 14px;margin-top:14px}

/* ---------- brand / referral ---------- */
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;margin-top:16px}
.panel h3{margin-top:0}
.tier-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:14px}
.tier{background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center}
.tier.hot{border-color:var(--gold)}
.tier b{font-size:22px;color:var(--gold2);display:block}
.invite-box{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.invite-box input{flex:1;min-width:220px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
.wallet-entries{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ref-count-num{font-size:42px;font-weight:800;line-height:1.1;color:var(--gold);margin:2px 0 10px}
.wallet-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;background:var(--bg2)}
.wallet-row + .wallet-row{border-top:1px solid var(--line)}
.wallet-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.wallet-row-meta{font-size:12.5px;color:var(--muted)}
.wallet-row-amt{font-weight:800;color:var(--gold2);white-space:nowrap}

/* ---------- modals ---------- */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}
.modal[hidden]{display:none}
.modal-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px;max-width:440px;width:100%}
.modal-card input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:8px}
.modal-card textarea{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:8px;resize:vertical;font:inherit}
/* (v122) Cover picker inside the publish sheet: an Auto chip +
   up to 4 frame thumbnails grabbed from the finished video. */
.cover-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cover-thumb{position:relative;padding:0;border:2px solid var(--line);border-radius:10px;background:var(--bg2);cursor:pointer;overflow:hidden;line-height:0}
.cover-thumb img{width:64px;height:96px;object-fit:cover;display:block}
.cover-thumb.sel{border-color:var(--gold)}
.cover-auto{display:flex;align-items:center;justify-content:center;width:64px;height:96px;border:2px solid var(--line);border-radius:10px;background:var(--bg2);color:var(--text);cursor:pointer;font-weight:600;font:inherit}
.cover-auto.sel{border-color:var(--gold)}
.cover-loading{padding:12px 0}
/* (v123) One-page publish (Douyin/TikTok-style): preview, title,
   description, cover, Moments switch and Publish on one sheet. */
.pubpage-card{max-height:92vh;overflow-y:auto}
.pubpage-preview{position:relative;margin-top:10px;border-radius:12px;overflow:hidden;background:#000;line-height:0}
.pubpage-preview video{width:100%;max-height:36vh;display:block}
.pubpage-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;border:none;background:rgba(0,0,0,.55);color:#fff;font-size:22px;cursor:pointer;line-height:1}
.pubpage-seekrow{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.pubpage-seekrow input[type=range]{flex:1;min-width:110px;width:auto;margin-top:0;padding:0;border:none;background:transparent}
.cover-thumb .cover-badge{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.62);color:#fff;font-size:10px;line-height:1.3;padding:2px 3px;text-align:center;font-weight:600}
.pubpage-switchrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-weight:600;cursor:pointer}
.pubpage-switchrow input[type=checkbox]{width:22px;height:22px;margin-top:0;padding:0;flex:none;accent-color:var(--gold)}
/* (v137 add-on) Publish-note page: the WeChat-quiet publish
   step for AI dramas — top bar (reuses .up-topbar/.up-cancel),
   one note line, the video, the title. Nothing else. */
/* (v147) The publish-note PAGE: full-bleed and frameless.
   The modal shell goes opaque and edge-to-edge for this one
   page; inside, a borderless textarea (no input box at all)
   beside one small thumbnail — the big preview and the card
   are gone (Bao 2026-11-28 02:12: "人家上面就跳出一个白屏，
   空白上面写感想，都很简单，你非要给他做一个框出来"). */
.modal.pubnote-modal{background:var(--bg);padding:0;align-items:flex-start;justify-content:center}
.pubnote-page{width:100%;max-width:640px;min-height:100dvh;background:var(--bg);padding:calc(12px + env(safe-area-inset-top)) 16px 16px}
.pubnote-row{display:flex;gap:12px;align-items:flex-start}
.pubnote-thumb{position:relative;width:72px;height:96px;flex:none;border-radius:10px;overflow:hidden;background:#000}
.pubnote-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.pubnote-thumb .pubpage-play{width:34px;height:34px;font-size:14px}
/* (v145) The note page's OWN top bar. It used to borrow the
   upload editor's .up-topbar — and the editor shell hides
   every .up-topbar under body.up-editing, which ate this bar
   (Cancel + Publish) alive on the upload door: the author
   faced a note page with no Publish button at all, only the
   editor's own Publish glowing dim behind the backdrop, and
   every tap landed on the backdrop — a publish loop with no
   request ever sent (Bao 2026-11-28 02:01). A modal never
   borrows a shell class again. */
.pubnote-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.pubnote-topbar .btn[disabled]{opacity:.45;cursor:default}
#publishNoteErr{margin-bottom:10px}
/* (v146) In-flight upload tiles on the works home: the card
   the author watches after the same-tick landing. Progress
   paints in place (.pu-bar i width + .pu-pct text); the error
   state keeps the card and adds the retry button. */
.pending-upload .pu-body{padding:14px}
.pending-upload .pu-title{font-weight:700;margin-bottom:6px;word-break:break-word}
.pending-upload .pu-state{color:var(--muted);font-size:13px;margin-bottom:8px}
.pending-upload.is-error .pu-state{color:var(--red)}
.pending-upload .pu-bar{margin-top:4px}
.pubnote-page textarea{flex:1;min-width:0;background:transparent;border:none;outline:none;resize:none;font:inherit;color:var(--text);padding:6px 2px;margin:0;min-height:72px}
.pubnote-title{font-weight:700;font-size:16px;margin-top:12px}
/* (v123) Fullscreen cover preview layer — sits above the
   publish page modal. */
.coverview-modal{z-index:120}
.coverview-card{max-width:520px}
.coverview-card img{max-width:100%;max-height:68vh;border-radius:12px;display:block;margin:0 auto}
.modal-actions{display:flex;gap:10px;margin-top:18px;justify-content:flex-end}
.demo-tag{font-size:13px;color:var(--gold2)}
.topup-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.topup-opt{width:100%;min-width:0}
.topup-options[hidden]{display:none}

.back-link{display:inline-block;margin-top:20px}

/* ---------- upload ---------- */
.upload-panel label{display:block;font-weight:700;margin:14px 0 6px}
.upload-panel input[type=text],.upload-panel textarea,.upload-panel select,.upload-panel input[type=file]{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
.upload-panel textarea{min-height:90px;resize:vertical}
.upload-preview{width:100%;max-width:300px;aspect-ratio:9/16;max-height:380px;background:#000;border-radius:12px;display:block;margin:6px 0}
.music-note{margin-top:10px;font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.subs-select,.dub-select{font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid var(--line);background:var(--bg2);color:var(--text)}

/* ---------- voice-to-drama ---------- */
.voice-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 2px}
.voice-btn{border-color:var(--gold);color:var(--gold2)}
.voice-btn.recording,.voice-btn.dictating{border-color:var(--red);color:var(--red);animation:voice-pulse 1.2s ease-in-out infinite}
@keyframes voice-pulse{0%,100%{box-shadow:0 0 0 0 rgba(229,72,77,.35)}50%{box-shadow:0 0 0 8px rgba(229,72,77,0)}}
.voice-status{font-size:14px;color:var(--muted)}
.voice-status .error-box,.voice-status .ok-box{margin-top:0;display:inline-block}
.rec-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--red);margin-right:4px;animation:voice-pulse 1.2s ease-in-out infinite}
.progress-wrap{margin-top:14px}
.progress-wrap .progress{height:8px;background:var(--track);border-radius:99px;overflow:hidden}
.progress-wrap .progress i{display:block;height:100%;background:var(--gold)}
.progress-wrap small{color:var(--muted)}
.video-player{width:100%;max-width:420px;aspect-ratio:9/16;max-height:560px;background:var(--media-bg);border-radius:16px;display:block;margin:0 auto}
/* ---------- detail player clean controls (v118) ----------
   WeChat standard: nothing sits on the picture while playing.
   The bar fades like the call HUD (.hud-hidden pattern); while
   paused only the small translucent center ▶ remains. */
.vp-wrap{position:relative;width:100%;max-width:420px;margin:0 auto}
.vp-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3;width:58px;height:58px;border-radius:50%;border:none;background:rgba(10,10,14,.45);color:#fff;font-size:22px;line-height:1;display:none;align-items:center;justify-content:center;cursor:pointer;padding:0 0 0 4px}
.vp-wrap.vp-paused .vp-center{display:inline-flex}
.vp-bar{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;align-items:center;gap:9px;padding:16px 12px 9px;background:linear-gradient(transparent,rgba(0,0,0,.55));border-radius:0 0 16px 16px;transition:opacity .35s ease}
.vp-wrap.vp-ui-hidden .vp-bar{opacity:0;pointer-events:none}
.vp-btn{background:none;border:none;color:#fff;font-size:15px;line-height:1;cursor:pointer;padding:5px 6px;flex:none}
.vp-progress{position:relative;flex:1;height:5px;border-radius:3px;background:rgba(255,255,255,.35);cursor:pointer}
.vp-progress i{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:3px;background:#fff;display:block}
.vp-time{color:#fff;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
/* (v120) Clean player everywhere: the full-width variant takes the
   video's natural width (Moments cards, upload previews) instead of
   the detail player's 420px column, its bar follows the 12px card
   radius, and a video inside a wrap drops its own outer margins —
   the wrap carries the spacing. */
.vp-wrap.vp-fill{max-width:none}
.vp-wrap.vp-fill .vp-bar{border-radius:0 0 12px 12px}
.vp-wrap .moment-video{margin-top:0}
.vp-wrap .upload-preview-full{margin:0}
.video-tag{position:absolute;top:10px;right:10px;background:#000a;border:1px solid var(--red);color:var(--red);font-size:11px;font-weight:700;border-radius:999px;padding:4px 10px}

/* ---------- chat v1 ---------- */
/* (the unread badge moved into the bottom tab bar in v53 — see
   .tab-badge in the v53 section at the end of this file) */
.chat-plus{margin-left:auto;font-size:18px;line-height:1;padding:8px 14px}
.chat-menu{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.chat-menu[hidden]{display:none}
.chat-search{margin-top:12px}
.chat-search input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text)}
.chat-chips{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.chat-chips button{background:var(--bg2);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:7px 14px;font-weight:700;cursor:pointer}
.chat-chips button.active{background:var(--gold);border-color:var(--gold);color:#111}
.chat-chips[hidden],.chat-search[hidden]{display:none}
.chat-empty-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.chat-panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:14px}
.chat-panel label{display:block;font-weight:700;margin:4px 0 8px}
.chat-panel input[type=text],.chat-panel input:not([type]){width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px}
.chat-setup{max-width:480px;margin:0 auto}
/* v59 friends page, WeChat Add-Friend layout (js/chat.js renderFriends):
   add-method rows as one plain list; my QR as a big bottom card. */
.friend-method{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:none;border-bottom:1px solid var(--line);padding:13px 2px;cursor:pointer;color:var(--text);font-size:15px}
.friend-method:last-of-type{border-bottom:none}
.fm-icon{font-size:20px;line-height:1}
.fm-main{flex:1;display:flex;flex-direction:column;gap:2px}
.fm-title{font-weight:600}
.fm-sub{color:var(--muted);font-size:13px}
.fm-arrow{color:var(--muted);font-size:18px}
.qr-box.big{width:248px;max-width:78vw;margin-left:auto;margin-right:auto}
/* (v92) Recovery code + Scan: the code reads like a bank card
   number (mono, grouped, big enough for presbyopia); the restore
   block sits above the name field on the name gates, set off by
   a hairline; the scanner is a full-screen dark stage with the
   manual entry always reachable at the bottom. */
.recovery-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:23px;font-weight:700;letter-spacing:2px;text-align:center;padding:14px 8px;margin:8px 0;background:var(--bg2);border:1px solid var(--line);border-radius:12px;color:var(--text);word-break:break-all}
.recovery-box{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:0 0 14px;text-align:left}
.scan-overlay{position:fixed;inset:0;z-index:200;background:#101014;color:#f5f2e8;display:flex;flex-direction:column;padding:14px;gap:10px}
.scan-head{display:flex;align-items:center;justify-content:space-between;font-size:18px;font-weight:700}
.scan-overlay video{width:100%;flex:0 1 auto;max-height:52vh;aspect-ratio:4/3;object-fit:cover;background:#000;border-radius:14px}
.scan-hint{margin:0;font-size:14px;opacity:.85;text-align:center}
.scan-manual{margin-top:auto}
.qr-box{margin-top:10px;background:#fff;border-radius:14px;padding:8px;width:196px;max-width:70vw;line-height:0}
.qr-box svg{width:100%;height:auto;display:block}
.qr-box canvas{width:100%;height:auto;display:block}
.chat-setup input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px}
.conv-row{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-top:10px;color:var(--text)}
.conv-row:hover{border-color:var(--gold);text-decoration:none}
.conv-avatar{width:44px;height:44px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;color:var(--gold2)}
.conv-main{flex:1;min-width:0;display:flex;flex-direction:column}
.conv-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-preview{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.conv-time{font-size:12px;color:var(--muted)}
.unread-badge{background:var(--red);color:#fff;font-size:11.5px;font-weight:800;min-width:20px;height:20px;line-height:20px;text-align:center;border-radius:999px;padding:0 6px}
.friend-row{display:flex;gap:10px;align-items:center;padding:8px 0;flex-wrap:wrap}
.friend-row .conv-avatar{width:36px;height:36px;font-size:15px}
.friend-name{flex:1;font-weight:600}
.nc-tag{display:inline-block;font-size:11px;font-weight:600;color:var(--gold2);background:var(--gold-tint);border:1px solid var(--gold);border-radius:999px;padding:1px 8px;vertical-align:middle}
/* Official account + stranger pool (v148): the storefront strip
   on the entry page, the pinned official row in contacts, and
   the pool's big-face recommendation rows (Bao: people look at
   faces first — avatars big and clear). */
.official-strip{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 18px}
.official-strip-avatar{width:56px;height:56px;border-radius:14px;flex:none}
.official-strip-main{flex:1;min-width:0}
.official-strip-name{font-size:18px;font-weight:800}
.official-strip-sub{font-size:13.5px;color:var(--muted);margin-top:2px}
.official-strip-qr{width:96px;height:96px;flex:none;border-radius:8px}
.official-badge{display:inline-block;font-size:11px;font-weight:700;color:var(--gold2);background:var(--gold-tint);border:1px solid var(--gold);border-radius:999px;padding:1px 8px;vertical-align:middle}
.official-row{cursor:default}
.pool-row .pool-avatar{width:56px;height:56px;font-size:22px}
.pool-avatar{border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--gold2);flex:none;overflow:hidden;position:relative}
.pool-avatar .avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Shake （摇一摇， v108): the meet-a-stranger panel on the Friends
   page. The stage's phone wiggles while a match is being drawn —
   the pause is the ritual (design §2). */
.shake-panel{border:1px solid var(--gold);background:var(--gold-tint)}
.shake-stage{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 0 4px}
.shake-phone{font-size:44px;line-height:1}
.shake-stage.shaking .shake-phone{animation:shakeWiggle .18s ease-in-out infinite}
@keyframes shakeWiggle{0%{transform:rotate(0deg)}25%{transform:rotate(-14deg)}75%{transform:rotate(14deg)}100%{transform:rotate(0deg)}}
.shake-btn{font-size:17px;padding:12px 34px;border-radius:999px}
.shake-searching{text-align:center;padding:8px 0}
.shake-card{margin-top:12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg2)}
.shake-cover{position:relative;cursor:pointer;background:#14100a}
.shake-cover img{width:100%;height:210px;object-fit:cover;display:block}
.shake-cover-title{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 8px;font-weight:700;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.shake-cover-avatar{display:flex;justify-content:center;padding:18px 0 6px;cursor:default}
.shake-big-avatar{width:84px;height:84px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800;color:var(--gold2);overflow:hidden}
.shake-big-avatar .avatar-img{width:100%;height:100%;object-fit:cover}
.shake-who{padding:10px 12px 0}
.shake-line{margin:6px 12px 0;color:var(--muted);font-size:14px}
.shake-actions{display:flex;gap:10px;padding:12px;flex-wrap:wrap}
.shake-share-row{padding:0 12px 12px}
.shake-share-row .limit-note{margin-top:6px}
.shake-pref{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:13.5px;color:var(--muted);cursor:pointer}
.member-pick{display:inline-block;margin:4px 10px 4px 0;font-weight:600}
.chat-room-wrap{max-width:760px;margin:0 auto}
.chat-room-head{display:flex;align-items:center;gap:12px;margin-top:6px}
.chat-room-head .back-link{margin-top:0}
.chat-room-title{flex:1;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.share-bar{background:var(--gold-tint);border:1px solid var(--gold);border-radius:12px;padding:10px 14px;margin-top:12px;font-size:14px}
.chat-msgs{display:flex;flex-direction:column;gap:10px;height:52vh;min-height:300px;overflow-y:auto;padding:16px 4px;margin-top:10px}
.msg-row{display:flex;gap:8px;align-items:flex-start}
.msg-row.mine{justify-content:flex-end}
/* (v119) Bubble-side avatars in 1:1 threads + the chat page's Me
   bar + my-card popup head. Same gold letter-circle family as
   .conv-avatar; a photo (avatarHTML's .has-photo img) covers it. */
.msg-avatar{width:34px;height:34px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:var(--gold2)}
.me-bar{display:flex;gap:12px;align-items:center;width:100%;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:10px;color:var(--text);cursor:pointer;text-align:left}
.me-bar:hover{border-color:var(--gold)}
.me-bar-name{flex:1;font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-bar-hint{color:var(--muted);font-size:13px;white-space:nowrap}
.mycard-head{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:14px}
.mycard-avatar{width:84px;height:84px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800;color:var(--gold2)}
.mycard-name{font-size:19px;font-weight:800}
.msg-bubble{max-width:78%;background:var(--bg2);border:1px solid var(--line);border-radius:16px;padding:9px 13px}
.msg-row.mine .msg-bubble{background:var(--gold-tint);border-color:var(--gold)}
.msg-name{font-size:12px;color:var(--gold2);font-weight:700;margin-bottom:2px}
.msg-text{white-space:pre-wrap;word-break:break-word;font-size:15px}
.msg-translation{font-size:13px;color:var(--muted);margin-top:5px;padding-top:5px;border-top:1px dashed var(--line);white-space:pre-wrap;word-break:break-word}
.tr-toggle{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);cursor:pointer;white-space:nowrap}
.tr-toggle input{accent-color:var(--gold);width:16px;height:16px;margin:0}
.msg-meta{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:4px}
.msg-meta span{font-size:11px;color:var(--muted)}
/* (v160, Q29/Q30) Send-state label in the meta line, the failed
   send's retry button, the typing line, and presence marks. */
.msg-meta .msg-state{color:var(--gold2);white-space:nowrap}
.msg-retry{flex:none;align-self:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--red);background:none;color:var(--red);font-size:16px;line-height:1;cursor:pointer;padding:0}
.msg-retry:hover{background:var(--red);color:#fff}
.chat-typing{margin-top:8px;font-size:13px;color:var(--muted);font-style:italic}
.peer-presence{font-size:12.5px;color:var(--green);white-space:nowrap}
.presence-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green);margin-right:7px;vertical-align:1px}
.e2ee-badge{font-size:13px;line-height:1}
.e2ee-note{margin-top:10px;padding:8px 12px;border-radius:10px;font-size:13px;background:var(--gold-tint);border:1px solid var(--gold);color:var(--text)}
.e2ee-note.warn{background:none;border-color:var(--red);color:var(--red)}
.msg-lock{font-size:10px}
.msg-report{background:none;border:none;color:var(--muted);font-size:11px;padding:0;cursor:pointer}
.msg-report:hover{color:var(--red)}
.msg-report-box{margin-top:6px;display:flex;gap:6px;flex-wrap:wrap}
.msg-voice{display:flex;align-items:center;gap:8px}
.msg-voice audio{height:36px;max-width:210px}
.msg-drama{display:flex;flex-direction:column;gap:2px;color:var(--text);background:var(--card);border:1px solid var(--gold);border-radius:12px;padding:10px 12px;min-width:170px}
.msg-drama:hover{text-decoration:none;border-color:var(--gold2)}
.msg-drama span{color:var(--gold2);font-size:13px;font-weight:700}
/* Chat photo messages (v69): one picture wide, a set as a 3-up
   grid. The link carries a 🖼 placeholder tile behind the img —
   a broken picture removes itself and the tile is what remains. */
.msg-photos{display:flex;flex-direction:column;gap:4px}
.msg-photos.grid{display:grid;grid-template-columns:repeat(3,74px);gap:4px}
.msg-photo-link{position:relative;display:block;border-radius:10px;overflow:hidden;background:var(--surface-muted,#f3ead2);min-height:64px}
.msg-photo-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:24px}
.msg-photo-img{position:relative;display:block;max-width:230px;max-height:300px;border-radius:10px}
.msg-photos.grid .msg-photo-img{width:74px;height:74px;max-width:none;max-height:none;object-fit:cover;border-radius:6px}
.msg-photos.grid .msg-photo-link{border-radius:6px;min-height:74px}
/* Chat file messages (v131): a download card inside the bubble —
   📎 beside name (ellipsized) over size + download line. */
.msg-file-btn{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;color:var(--text);text-align:left;min-width:180px;max-width:250px}
.msg-file-btn:hover{border-color:var(--gold)}
.msg-file-ic{font-size:22px}
.msg-file-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.msg-file-name{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.msg-file-sub{color:var(--muted);font-size:12px}
.chat-inputbar{display:flex;gap:8px;align-items:flex-end;position:sticky;bottom:0;background:var(--bg);padding:10px 0 calc(10px + env(safe-area-inset-bottom))}
.chat-inputbar input{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:999px;padding:12px 16px;min-width:0}
/* (v162, #42) The chat composer is a wrapping, auto-growing
   textarea — same chrome as the old pill input, but long text
   wraps onto new lines instead of scrolling out of sight. */
.chat-inputbar textarea{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:22px;padding:12px 16px;min-width:0;resize:none;overflow-y:auto;line-height:1.4;font:inherit;color:inherit;max-height:132px}
/* The bar's buttons (＋ / 🎙 / ✕ / Send) never shrink or wrap out of
   the bar at phone widths — only the text input gives way. */
.chat-inputbar>.btn{flex:none}
.room-menu{flex-direction:column;align-items:stretch}
.room-rules{margin:2px 0 0}
.chat-tool{font-size:18px;line-height:1;padding:10px 14px}
.chat-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-bottom:8px}
.chat-tools[hidden]{display:none}
.chat-mic{font-size:18px;line-height:1;padding:10px 13px;flex:none}
.chat-mic.rec{border-color:var(--red);color:var(--red);animation:voice-pulse 1.2s ease-in-out infinite;font-size:14px;font-variant-numeric:tabular-nums}
.chat-mic.busy{opacity:.55}
.chat-mic-cancel{font-size:13px;line-height:1;padding:10px 11px;flex:none;color:var(--muted)}
.chat-mic-cancel[hidden]{display:none}
.drama-pick{margin:4px 6px 4px 0}

/* ---------- responsive ---------- */
@media (max-width:820px){
  /* (v170) The cinema grid stacks: poster (storyboard only —
     video dramas render no poster block at all now) → player
     → side → extras, the v155 mobile order unchanged. The
     desktop creator row, inline comments and related hide;
     the meta line's author span carries the by-line instead. */
  .detail{display:flex;flex-direction:column;gap:20px}
  .detail .poster{max-width:280px}
  .detail-author{display:none}
  .detail-comments{display:none}
  .detail-related{display:none}
  .detail-stage .player{margin-top:18px}
  .detail-stage .vp-wrap{max-width:420px}
  .detail-stage .video-player{max-width:420px;max-height:68vh}
  /* (v170) Compact first-entry hero (Addendum 03 §2:
     180–240px); a returning user's home carries no banner. */
  .hero-carousel{height:210px;margin-top:16px}
  .hero-carousel.hc-deferred{display:none}
  .hc-slide{padding:18px 20px}
  .hc-copy{max-width:63%}
  .hc-art{width:42%}
  .hc-title{font-size:23px}
  .hc-featured .hc-title{font-size:21px}
  .hc-sub{font-size:13.5px;margin-bottom:12px}
  .hc-art-brand img,.hc-art-create img{width:120px;height:120px}
  .studio{grid-template-columns:1fr}
  .topbar{flex-wrap:wrap}

  /* --- mobile speed/UX pass (2026-11-17) --- */
  /* Tap targets: min ~44px tall on touch screens. */
  .btn.small{padding:10px 16px}
  .lang-tabs button{padding:11px 18px}
  .topright select{padding:10px 8px}
  .credits-pill,.creator-btn{padding:10px 14px}
  /* (v170) The old video-first ordering rules retired with
     the cinema restructure: the player is first by DOM order
     now (stage before side), and video dramas render no
     poster block to hide. The 68vh cap lives on the
     .detail-stage .video-player rule above. */
  .video-player{max-height:68vh}
}

/* ---------- smart install guide card (js/app.js) ----------
   Small bottom card, above content but below modals; never covers
   the main actions. Gold border so it reads as an official prompt. */
.install-card{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));z-index:90;display:flex;gap:12px;align-items:flex-start;width:min(480px,calc(100vw - 24px));background:var(--card);border:1px solid var(--gold);border-radius:16px;box-shadow:var(--shadow);padding:12px 14px}
.install-card[hidden]{display:none}
.install-card-icon{width:44px;height:44px;border-radius:10px;flex:none}
.install-card-main{flex:1;min-width:0}
.install-card-title{font-weight:700;font-size:15px}
.install-card-text{color:var(--muted);font-size:13.5px;margin-top:2px}
.install-card-actions{margin-top:8px}
.install-card-close{background:none;border:none;color:var(--muted);font-size:15px;line-height:1;padding:2px 4px;flex:none;cursor:pointer}
/* (v132) WeChat guide: numbered steps, big type for elderly users,
   copy-link fallback box. */
.install-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.install-card.wechat-guide .install-card-title{font-size:18px}
.install-card.wechat-guide .install-card-text{font-size:16px;line-height:1.5;color:var(--text)}
.install-card-steps{margin-top:10px;display:flex;flex-direction:column;gap:9px}
.install-card-steps[hidden]{display:none}
.install-step{display:flex;gap:10px;align-items:flex-start;font-size:16.5px;line-height:1.45}
.install-step-num{flex:none;width:26px;height:26px;border-radius:50%;background:var(--gold);color:var(--on-gold);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.install-card-en{font-size:12px;color:var(--muted);margin-top:2px}
.install-card-linkbox{margin-top:10px;border:1px dashed var(--gold);border-radius:10px;padding:8px 10px}
.install-card-linkbox[hidden]{display:none}
.install-card-linkhint{font-size:13.5px;margin-bottom:4px}
.install-card-link{font-size:13px;word-break:break-all;user-select:all;-webkit-user-select:all}

/* ---------- theme picker (topbar 🎨 button -> #themeModal) ----------
   Options are rendered by js/app.js from the THEMES constant; each row
   shows the palette as three swatch dots (page bg / card / gold). */
.theme-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.theme-opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:12px;padding:12px 14px;font-weight:700;cursor:pointer}
.theme-opt:hover{border-color:var(--gold)}
.theme-opt.active{border-color:var(--gold);background:var(--gold-tint)}
.theme-swatches{display:inline-flex;gap:4px;flex:none}
.theme-swatches i{width:18px;height:18px;border-radius:50%;border:1px solid var(--line);display:block}
.theme-opt-name{flex:1}
.theme-check{color:var(--gold2);font-weight:800}
/* Watch-page language picker rows reuse .theme-list/.theme-opt; only
   the per-language drama count needs its own muted small style. */
.lang-opt-count{opacity:.7;font-weight:400;font-size:12.5px}

/* ---------- upload four-step flow (v50, js/app.js renderUpload) ---------- */
.upload-pick-big{display:block;width:100%;padding:34px 16px;font-size:19px;font-weight:800;color:var(--gold2);background:var(--gold-tint);border:2px dashed var(--gold);border-radius:16px;cursor:pointer}
.upload-pick-big:hover{border-style:solid}
.upload-preview-full{width:100%;max-height:62vh;background:#000;border-radius:12px;display:block;margin:10px 0}
.upload-bottom-bar{margin-top:16px}
.upload-bottom-bar .btn{width:100%;font-size:17px;padding:14px}

/* ---------- moments feed (v50, js/chat.js renderMoments) ---------- */
.moment-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;margin:0 0 14px;box-shadow:var(--shadow)}
.moment-head{display:flex;align-items:center;gap:10px}
.moment-avatar{width:40px;height:40px;border-radius:50%;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;flex:none}
.moment-name{font-weight:700}
.moment-time{color:var(--muted);font-size:12.5px;margin-left:auto}
.moment-text{margin:10px 0 0;white-space:pre-wrap;word-break:break-word}
.moment-video{width:100%;max-height:56vh;background:#000;border-radius:12px;display:block;margin-top:10px}
.moment-drama-link{display:inline-block;margin-top:8px;font-weight:700;color:var(--gold2);text-decoration:none}
.moment-actions{display:flex;gap:10px;margin-top:12px}
.moment-act-btn{background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:7px 14px;font-size:14px;cursor:pointer}
.moment-act-btn.liked{border-color:var(--gold);color:var(--gold2);background:var(--gold-tint)}
.moment-likers{color:var(--muted);font-size:13px;margin-top:8px}
.moment-comments{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.moment-comment-row{font-size:14px;margin:6px 0;word-break:break-word}
.moment-comment-row b{color:var(--gold2)}
.moment-comment-form{display:flex;gap:8px;margin-top:8px}
.moment-comment-form input{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:10px;color:var(--text)}
.moments-empty{text-align:center;padding:28px 16px}
.moments-empty .btn{margin:6px 4px}
.moment-composer{margin-bottom:16px}
.moment-composer[hidden]{display:none}
.moments-empty-note{color:var(--muted);margin:0 0 6px}
/* (v139) Diagnostic code on the Moments error card: tiny and
   faint on purpose — readable in a screenshot, invisible in
   normal use. */
.mom-errcode{font-size:10px;opacity:.45;margin:6px 0 0}
/* (v67) Composer location row + the small location line under a
   post's content (WeChat shape: quiet, small, gold-tinted). */
.moment-loc-row{display:flex;align-items:center;gap:6px;width:100%;margin-top:12px;padding:10px 2px;background:none;border:none;border-top:1px solid var(--line);color:var(--muted);font-size:15px;cursor:pointer;text-align:left}
.moment-loc-row.has-loc{color:var(--gold2);font-weight:600}
.moment-loc-arrow{margin-left:auto;color:var(--muted);font-weight:400}
#momentLocEditor{margin-top:4px}
.moment-location{color:var(--gold2);font-size:13px;margin-top:8px}

/* ---------- in-chat voice/video calls (v50, js/chat.js call module) ---------- */
/* ---------- in-chat voice/video calls (v50, js/chat.js call module) ---------- */
/* (v112) FaceTime format (Bao, 2026-11-25, annotated screenshot:
   "改成跟 FaceTime 一样的制式，不要这么丑，需要全屏的，不要遮挡，
   要有审美，符合用户需求和习惯"): the call layer takes over the
   WHOLE viewport in every state — ringing, calling, voice,
   video — on a black/dark stage, and the remote picture owns
   the screen. The only furniture is the v110 HUD at the top,
   your own small PiP window, and one row of frosted round icon
   buttons along the bottom. Retired here: the v90 light brand
   screen (ov-voice is a dark gradient now — the big green/red
   round answer buttons are what keep a dark ringing screen
   unambiguous) and the v110 in-card tidy-up (centered card,
   light control bar floating over the picture). */
.call-overlay{position:fixed;inset:0;height:100dvh;z-index:200;background:#000}
.call-overlay.ov-voice{background:linear-gradient(180deg,#26262e 0%,#131318 55%,#000 100%)}
.call-card{position:absolute;inset:0;z-index:2;color:#fff;padding:calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom))}
/* (v110, kept) Call info is ONE compact pill — name · kind ·
   timer · 🔒 — small type on a translucent dark chip. On the
   video stage it floats at the TOP CENTRE of the screen, clear
   of the PiP window on the right; on connected calls it
   auto-fades ~5s in (JS adds .hud-hidden to the overlay) and a
   tap on the call view brings it back. The 🔒 stays —
   encryption is a selling point — just small, up top. */
.call-hud{position:absolute;top:calc(10px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:6;display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:min(94vw,calc(100vw - 230px));background:rgba(12,12,16,.55);color:#fff;border-radius:999px;padding:6px 13px;font-size:12px;line-height:1.25;white-space:nowrap;transition:opacity .45s ease}
.call-hud .call-name{font-size:13px;font-weight:700}
.call-hud .call-status{color:#d8d8de;font-size:12px}
.call-hud .call-timer{color:#fff;font-size:12px;font-variant-numeric:tabular-nums}
.call-hud .call-timer:empty{display:none}
.call-hud .call-enc{color:#9fd89f;font-size:11px}
.call-hud .call-name,.call-hud .call-status{min-width:0;overflow:hidden;text-overflow:ellipsis}
.call-hud .call-timer,.call-hud .call-enc{flex:none}
.call-overlay.hud-hidden .call-hud{opacity:0;pointer-events:none}
/* (v113) Pinned 🔒 pill (connected video only, rendered by
   showCallOverlay): top-LEFT under the safe area — the PiP
   owns the top-right — same translucent chip look as the HUD,
   small green lock text. It is visible ONLY while the HUD is
   faded (.hud-hidden), so exactly one lock is ever on screen:
   the HUD's for the first ~5s and after any tap, the pin's
   the rest of the call. Encryption is a core selling point
   and Bao shoots ad screenshots mid-call — the lock must
   never leave the picture. */
.call-enc-pin{position:absolute;top:calc(12px + env(safe-area-inset-top));left:14px;z-index:6;background:rgba(12,12,16,.55);color:#9fd89f;border-radius:999px;padding:5px 11px;font-size:11px;line-height:1.25;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .45s ease}
.call-overlay.hud-hidden .call-enc-pin{opacity:1}
/* (v118) Peer-camera-off badge: same pill family as .call-enc-pin
   but amber and ALWAYS visible while shown (JS toggles display
   from peerNoCam() in chat.js) — it must be readable the moment
   a video call connects with no peer picture, HUD faded or not.
   It sits one pill-height below the enc pin so the two never
   overlap when the HUD is faded and both are on screen. */
.call-peer-nocam{position:absolute;top:calc(46px + env(safe-area-inset-top));left:14px;z-index:6;background:rgba(122,53,15,.82);color:#ffd9a3;border-radius:999px;padding:5px 11px;font-size:11px;line-height:1.25;white-space:nowrap;pointer-events:none}
/* Non-video screens (ov-voice: ringing / calling / connected
   voice, and video calls not yet connected): the FaceTime
   incoming layout — avatar centred upper, and the HUD becomes
   plain stacked text UNDER the avatar (name big, then kind /
   timer / 🔒 below it), no pill. Same element, same strings. */
.call-overlay.ov-voice .call-card{display:flex;flex-direction:column;align-items:center}
.call-overlay.ov-voice .call-avatar{order:1;margin-top:11vh}
.call-overlay.ov-voice .call-hud{order:2;position:static;transform:none;max-width:94vw;margin-top:16px;background:transparent;padding:0;flex-direction:column;gap:4px;white-space:normal;text-align:center}
.call-overlay.ov-voice .call-hud .call-name{font-size:24px}
.call-overlay.ov-voice .call-hud .call-status{font-size:14px;color:rgba(255,255,255,.72)}
.call-overlay.ov-voice .call-hud .call-timer{font-size:15px;color:rgba(255,255,255,.9)}
.call-overlay.ov-voice .call-hud .call-enc{font-size:12px}
.call-avatar{position:relative;z-index:3;width:104px;height:104px;border-radius:50%;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:42px;margin:0 auto}
/* Video stage before remote video lands: the placeholder
   avatar sits in the upper area under the HUD; the moment real
   remote video is on screen (has-rv, v91) it retires. */
.call-overlay:not(.ov-voice) .call-avatar{margin-top:15vh}
.call-card.has-rv .call-avatar{display:none}
.call-remote-video{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;z-index:1}
.call-card.has-rv .call-remote-video{display:block}
/* Your own picture: small PiP, top-right, clear of the safe
   area (v112: 96x128 per the FaceTime layout spec). */
.call-local-video{display:none;position:absolute;top:calc(12px + env(safe-area-inset-top));right:14px;width:96px;height:128px;object-fit:cover;border-radius:14px;border:1.5px solid rgba(255,255,255,.35);box-shadow:0 4px 18px rgba(0,0,0,.45);background:#000;z-index:4}
.call-card.has-lv .call-local-video{display:block}
/* (v112) Bottom control row, FaceTime style: round frosted
   buttons in one centred row anchored to the bottom edge of
   the screen — icon in the circle, 10px label under it. The
   row itself has no bar background; the picture (or the dark
   stage) shows through between the buttons. */
.call-actions{position:absolute;left:0;right:0;bottom:calc(22px + env(safe-area-inset-bottom));z-index:6;display:flex;gap:30px;justify-content:center;align-items:flex-start}
.call-btn{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:none;padding:0;cursor:pointer;color:#fff;font:inherit;-webkit-tap-highlight-color:transparent}
.call-btn-circle{width:58px;height:58px;border-radius:50%;background:rgba(48,48,58,.66);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;color:#fff;transition:background .2s ease}
.call-btn-circle svg{width:27px;height:27px;display:block}
.call-btn-label{font-size:10px;line-height:1.2;font-weight:600;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.call-btn.accept .call-btn-circle{background:#2fbf71;color:#fff}
.call-btn.decline .call-btn-circle,.call-btn.hangup .call-btn-circle{background:var(--danger);color:#fff}
/* Phone-down pose for decline/hangup: the shared phone glyph
   rotated 135deg. */
.call-btn.decline .call-btn-circle svg,.call-btn.hangup .call-btn-circle svg{transform:rotate(135deg)}
/* Cam state (kept from before): .toggled = camera on = gold. */
.call-btn.toggled .call-btn-circle{background:var(--gold);color:#1a1a1a}
/* (v111, kept) Mute button ONLY, while muted: solid red circle
   (same red as hangup), so "my mic is off" reads at a glance. */
.call-btn.muted-on .call-btn-circle{background:var(--danger);color:#fff}
/* Toggle buttons carry both icon states; the state class the
   handlers already maintain picks which one shows. */
.call-btn .ic-off{display:none}
.call-btn.muted-on .ic-on{display:none}
.call-btn.muted-on .ic-off{display:block}
.call-btn[data-call-action="cam"] .ic-on{display:none}
.call-btn[data-call-action="cam"].toggled .ic-on{display:block}
.call-btn[data-call-action="cam"].toggled .ic-off{display:none}
/* Ringing buttons a touch bigger; the accept circle pulses so
   the eye lands on it first (v90). */
.call-btn.big .call-btn-circle{width:66px;height:66px}
.call-btn.big .call-btn-circle svg{width:30px;height:30px}
.call-btn.accept .call-btn-circle{animation:callPulse 1.6s ease-out infinite}
@keyframes callPulse{0%{box-shadow:0 0 0 0 rgba(47,191,113,.55)}100%{box-shadow:0 0 0 20px rgba(47,191,113,0)}}
/* v58 floating call pill (js/chat.js showCallPill): green, bottom-right
   above the tab bar; tap restores the full call UI. */
.call-pill{position:fixed;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:150;display:flex;align-items:center;gap:6px;background:#2fbf71;color:#fff;font-weight:700;font-size:15px;border-radius:999px;padding:10px 16px;box-shadow:var(--shadow);cursor:pointer;font-variant-numeric:tabular-nums}
.msg-call{display:inline-block;background:var(--bg2);border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:14px;cursor:pointer;color:var(--text)}
.msg-call.missed{color:var(--red);border-color:var(--red)}
.conv-missed{color:var(--red);font-weight:700}
/* moments action buttons (js/chat.js emits .moment-like/.moment-comment-btn) */
.moment-like,.moment-comment-btn,.moment-share-out{background:var(--bg2);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:7px 14px;font-size:14px;cursor:pointer}
.moment-like.liked{border-color:var(--gold);color:var(--gold2);background:var(--gold-tint)}

/* v50 poster pass: real video face on watch cards — the extracted
   poster frame shows before play so cards are never a black box. */
.poster-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--media-bg)}
.poster .poster-genre,.poster .poster-title{position:relative;z-index:1}
.poster .poster-play,.poster .mosaic-label,.poster .video-tag{z-index:1}

/* v67 moments cover header (WeChat shape — Bao's reference shots,
   2026-11-21): a full-width cover opens the page; my name in white
   bold with the square avatar overlapping the cover's bottom-right
   corner, and ONE small white camera at the cover's top-right.
   Everything else on the page hides behind that lens. The cover
   escapes the section/main padding so it runs edge to edge. The
   default cover is a brand-gold gradient with a faint oversized
   play mark — users cannot change it yet. (Replaces the v50
   .moments-top row: prompt pill + page-level gold ＋, the second
   ＋ in Bao's circled screenshot.) */
.moments-cover{position:relative;height:206px;margin:-34px -18px 36px;background:linear-gradient(155deg,var(--gold-hover) 0%,var(--gold) 45%,var(--gold2) 100%);overflow:visible}
.moments-cover::after{content:"▶";position:absolute;left:20px;bottom:6px;font-size:76px;line-height:1;color:rgba(255,255,255,.15);pointer-events:none}
.cover-cam{position:absolute;top:12px;right:14px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45));padding:0}
.moments-cover-id{position:absolute;right:16px;bottom:-22px;display:flex;align-items:center;gap:10px;z-index:1}
.moments-cover-name{color:#fff;font-size:19px;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.5);max-width:52vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-bottom:26px}
.publish-menu{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
/* (v65 compact, Bao 2026-11-21: the menu items were tall stacked
   blocks — icon over text, 16px padding — and the panel felt
   endless. Now every item is ONE row ~50px: icon left, label
   right. Only the Dream Factory item carries a small second line
   (its subtitle) inside .publish-item-text. This component is
   shared by the top bar ＋ menu and its chat context group.
   (The Moments page's own publish menu was removed in v67 — the
   top bar ＋ is the only publish entry site-wide.) */
.publish-item{display:flex;flex-direction:row;align-items:center;gap:10px;text-align:left;font-size:16px;font-weight:600;padding:6px 14px;min-height:50px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}
.publish-item-text{display:flex;flex-direction:column;gap:1px;text-align:left;min-width:0}
.publish-item-sub{font-size:12px;font-weight:400;color:var(--muted)}

/* The [hidden] attribute must win over .publish-menu's flex —
   without this both publish menus would sit open on the page. */
.publish-menu[hidden]{display:none}

/* v50 定版: the site's ONE publish entry — gold + in the top bar,
   its four-item menu floats under the bar, hidden by default. */
.publish-fab{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:none;background:var(--gold);color:var(--on-gold);font-size:24px;font-weight:800;line-height:1;cursor:pointer;box-shadow:var(--shadow)}
/* (v86) The word-labelled Upload door in the top bar (Bao
   2026-11-22: he hunted for the upload entry and could not find
   it — it used to take + → Publish → "Shoot a video", three hops
   of guessing). One tap on a button that SAYS Upload goes
   straight to the upload page. */
.upload-topbtn{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;background:var(--gold);color:var(--on-gold);font-size:15px;font-weight:800;line-height:1;padding:12px 14px;border-radius:999px;box-shadow:var(--shadow);white-space:nowrap}
.upload-topbtn:hover{text-decoration:none;filter:brightness(1.06)}
/* (v86) The upload page's big pick control is a <label for> now
   (see app.js renderUpload) — keep it centred like the button
   it replaces, without the field-label margins. */
.upload-panel label.upload-pick-big{text-align:center;margin:0 0 6px}
.global-publish-menu{position:fixed;top:64px;right:12px;z-index:1200;width:min(300px,calc(100vw - 24px));background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:8px;box-shadow:var(--shadow);margin-bottom:0}

/* ---------- v53 bottom tab bar + slim hero + mine page ----------
   Bao 2026-11-21 定版: X / Facebook / WeChat all navigate with a
   fixed bottom icon bar — four tabs （看剧/聊天/朋友圈/我的）, icon
   over a small label, the current page in brand gold. The bar is
   fixed, so the body keeps bottom padding of the same height and
   page content is never hidden behind it. */
/* (v87) The bottom tab bar is gone — no body bottom padding. */
body{padding-bottom:0}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:80;display:flex;background:var(--topbar-bg);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabbar a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 0 6px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.3}
.tabbar a:hover{text-decoration:none;color:var(--text)}
.tabbar .tab-ic{font-size:21px;line-height:1.2}
.tabbar a.active{color:var(--gold2)}
.tab-badge{position:absolute;top:3px;left:calc(50% + 1px);background:var(--red);color:#fff;font-size:11px;font-weight:800;min-width:19px;height:19px;line-height:19px;text-align:center;border-radius:999px;padding:0 5px}
/* (v87) No tab bar any more — the install card floats at the
   plain bottom offset again. */
.install-card{bottom:calc(16px + env(safe-area-inset-bottom))}
/* The ⋯ menu now also hosts the language select: full-width rows. */
.more-menu select{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:9px 8px;color:var(--text)}

/* The founding line as one small, quiet line under the logo in the
   top bar (Bao 2026-11-21: 「在我们 logo 下面用一行小字标出来就行
   了」). The home page itself has no banner — it opens on the feed. */
.brand{display:flex;flex-direction:column;line-height:1.25}
.brand-slogan{display:block;font-size:13px;font-weight:400;color:var(--text-soft);white-space:nowrap;margin-top:1px;text-decoration:none;cursor:pointer}
.slogan-arrow{color:var(--gold);font-weight:700}
/* (v75, Bao 2026-11-22 01:39 — 改回来): the gold guide bar is
   back, restored verbatim from its v70/v71 form; it now sits in
   the shared top bar under the slogan + points lines (the one
   context rule below just snugs its margins to the header), so
   the Dream Factory's door is loud again on every page while
   the slogan line itself stays a door too. */
.river-guide{display:block;margin:10px 14px 12px;padding:11px 14px;border-radius:12px;background:var(--gold-tint);color:var(--gold2);font-weight:800;font-size:15px;text-align:center;border:1px solid var(--gold)}
.river-guide:hover{text-decoration:none}
.brand .river-guide{margin:8px 0 2px}
.brand-points{font-size:11px;color:var(--muted);white-space:nowrap}

/* Mine page: identity head + settings-style entrance rows. Every
   row leads to a page/modal that already existed before v53. */
.mine-head{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}
.mine-avatar{flex:0 0 auto;width:56px;height:56px;border-radius:50%;border:none;background:var(--gold);color:var(--on-gold);font-size:26px;font-weight:800;cursor:pointer}
.mine-id{flex:1;min-width:0}
.mine-name{font-size:20px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mine-sub{color:var(--muted);font-size:14px}
.mine-empty{color:var(--muted)}
.mine-list{display:flex;flex-direction:column;gap:10px}
.mine-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;color:var(--text);font-size:16px;font-weight:600;text-align:left;cursor:pointer;font-family:inherit}
.mine-row:hover{border-color:var(--gold);text-decoration:none}
.mine-ic{font-size:20px}
.mine-row-label{flex:1}
.mine-arrow{color:var(--muted);font-size:20px}
.mine-lang{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:8px;color:var(--text);font-size:15px}
/* my works (v83): the owner's episode list on the Mine page */
.works-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin-bottom:10px}
/* (v135) Owner-delete icons — WeChat spec (Bao 2026-11-27):
   a small grey trash glyph beside the item's meta line, never
   a big button, never a red block. The armed state (first tap)
   grows only a small "🗑 确认？" label for 3s. One class serves
   the upload preview, Mine works rows, Mine drama cards and
   Moments cards. */
.ico-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:14px;line-height:1;padding:2px 5px;vertical-align:middle;opacity:.75}
.ico-btn:hover{opacity:1}
.ico-btn.armed{opacity:1;font-size:12px;white-space:nowrap}
.ico-btn:disabled{opacity:.4;cursor:default}
/* (v149) The labeled delete button: the word 删除 itself, in a
   small pill a finger can find — replacing the bare 🗑 glyph
   that Bao could not see on his own works. Armed state (first
   tap, showing 确认？) goes bold so the state change is obvious. */
.del-text-btn{font-size:13px;line-height:1.25;padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--red);opacity:.9;white-space:nowrap;cursor:pointer;vertical-align:middle}
.del-text-btn:hover{opacity:1}
.del-text-btn.armed{opacity:1;font-weight:800}
.del-text-btn:disabled{opacity:.4;cursor:default}
button.btn.del-text-btn{border:1px solid var(--line)}
.card-mine-row{display:flex;gap:2px;align-items:center;margin-top:2px}
.works-main{flex:1;min-width:0}
.works-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.works-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:4px;font-size:13px;color:var(--muted)}
.works-st{font-weight:700;color:var(--text)}
.works-st.done{color:var(--gold)}
.works-st.dropped{color:var(--red)}
.works-detail{flex:1 1 100%;margin-top:8px}

/* ---------- (v137) upload compose, WeChat shape + author doors ----------
   The upload page is one quiet screen: a top bar (Cancel /
   small gold Publish), light placeholder-led inputs, and ONE
   music row whose library lives in a bottom sheet. The author
   door (avatar + name -> personal Moments) is a plain link that
   must not disturb the flex rows it sits in. */
.up-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.up-cancel{background:none;border:none;color:var(--text);font-size:16px;cursor:pointer;padding:6px 2px}
.up-topbar .btn[disabled]{opacity:.45;cursor:default}
.up-hint{text-align:center}
.upload-pick-big[hidden]{display:none}
.up-hint[hidden]{display:none}
.up-meta-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.up-meta-actions{display:flex;align-items:center;gap:4px}
.up-reselect{color:var(--gold2);font-size:14px;cursor:pointer;padding:2px 4px}
.up-line-input,.up-line-area{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-top:10px;font:inherit;color:var(--text);resize:none;box-sizing:border-box}
.up-line-input::placeholder,.up-line-area::placeholder{color:var(--muted)}
.up-music-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-top:10px;font:inherit;color:var(--text);cursor:pointer;text-align:left;box-sizing:border-box}
.up-music-cur{color:var(--muted);white-space:nowrap}
.up-music-check{margin-left:auto;color:var(--gold2);font-weight:800}
.up-sheet-cancel{justify-content:center}
.sheet-credit{font-size:11.5px;line-height:1.5;color:var(--muted);padding:6px 8px 0;margin:0}
.up-discard-card{max-width:340px;text-align:center}
.up-discard-title{font-size:17px;font-weight:700;margin:4px 0 2px}
.up-discard-actions{justify-content:center}

/* ---------- (v138) upload editor shell: bottom icon bar ----------
   Compose state only — body.up-editing is set by
   setUploadEditing when a take is picked and stripped when it
   is cleared (and on every route change). The site chrome
   (top bar + footer) folds away, the panel goes full-bleed
   and the video stage fills what is left above ONE dark
   bottom bar: T (words) / 🎵 (music) / 🗑 (throw away) on
   the left, the gold Publish on the right. WeChat editor
   shape, but only REAL tools sit in the bar — no sticker,
   beautify or crop fakes (Bao 2026-11-27: 没有的不充门面).
   The bar is near-black like the editor bars in his
   screenshots; it reads as part of the stage, not the page. */
body.up-editing .topbar,body.up-editing .site-footer{display:none}
body.up-editing main{max-width:none;padding:0}
body.up-editing section{margin-top:0}
body.up-editing .up-wx{max-width:none !important;min-height:100dvh;display:flex;flex-direction:column;margin:0;padding:0;border:none;border-radius:0}
body.up-editing .up-topbar{display:none}
body.up-editing #upPreview{flex:1;display:flex;min-height:0}
.up-stage{position:relative;flex:1;background:#000;min-height:0}
.up-stage .vp-wrap{position:absolute;inset:0;max-width:none}
.up-stage .upload-preview-full{width:100%;height:100%;max-height:none;margin:0;object-fit:contain;background:#000;border-radius:0}
.up-stage .vp-bar{border-radius:0}
.up-stage .up-stage-reselect{position:absolute;top:10px;left:10px;z-index:6;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:400;margin:0;cursor:pointer}
.up-stage-info{position:absolute;top:14px;right:10px;z-index:6;color:#fff;background:rgba(0,0,0,.45);border-radius:999px;padding:3px 9px;font-size:12px}
.up-stage-info:empty{display:none}
.up-toolbar{display:flex;align-items:center;gap:4px;background:#16130e;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
.up-toolbar[hidden]{display:none}
.up-tool{position:relative;background:none;border:none;color:#fff;font-size:20px;width:46px;height:46px;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;padding:0}
.up-tool-t{font-weight:800;font-size:21px;line-height:1}
.up-dot{position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.up-dot[hidden]{display:none}
.up-toolbar-pub{margin-left:auto}
.up-toolbar .btn[disabled]{opacity:.45;cursor:default}
.up-text-card{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.up-text-card .up-line-input{margin-top:2px}
.moment-author-link{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;min-width:0}
.moment-comment-row .moment-author-link{display:inline-flex;gap:6px;vertical-align:middle}
.moments-cover-id .moment-author-link{display:flex;align-items:center;gap:10px}
.room-head-link{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;min-width:0}
.user-moments-cover{margin-top:10px}

/* ---------- watch feed (v60): full-screen vertical stream ----------
   Bao 2026-11-21, from his WeChat Channels （视频号） walkthrough:
   one drama fills the screen, swipe to the next, almost nothing
   on top of the picture. The feed is an internal snap scroller
   sized by js (feedFit) to sit exactly between the sticky top bar
   and the fixed tab bar; while it is up, the page itself does not
   scroll and the footer stays out of the stream. The stage is
   black in every theme, like the detail player. Landscape videos
   (Zhipu Flash is 1792x1024) play object-fit:contain over a
   blurred blow-up of their own poster frame — contain, not cover,
   because cover on a 9:19 screen would crop away most of a 16:9
   picture; the blur keeps the letterbox from reading as dead
   black bars. */
body.dd-feed{overflow:hidden}
body.dd-feed main{max-width:none;padding:0}
.feed{position:relative;height:calc(100dvh - 170px);overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;background:#000;scrollbar-width:none}
.feed::-webkit-scrollbar{display:none}
.feed-item{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#000;color:#fff}
.feed-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(28px) brightness(.55);transform:scale(1.18)}
.feed-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.feed-item.feed-war .feed-video{filter:blur(14px)}
.feed-war-label{position:absolute;top:12px;left:12px;z-index:3;background:#000a;border:1px solid var(--gold);color:var(--gold);font-size:11px;font-weight:700;border-radius:999px;padding:4px 10px}
.feed-shade{position:absolute;left:0;right:0;bottom:0;height:48%;background:linear-gradient(transparent,rgba(0,0,0,.74));pointer-events:none}
.feed-bigplay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:66px;color:rgba(255,255,255,.92);text-shadow:0 2px 18px rgba(0,0,0,.6);pointer-events:none;opacity:0;transition:opacity .15s}
.feed-item.paused .feed-bigplay{opacity:1}
.feed-soundchip{position:absolute;top:12px;right:12px;z-index:3;background:rgba(15,15,15,.62);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:700;backdrop-filter:blur(6px);cursor:pointer}
.feed-subs{position:absolute;top:12px;left:12px;z-index:3}
.feed-subs .music-note{margin-top:0;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.feed-subs .subs-select{background:rgba(15,15,15,.62);color:#fff;border-color:rgba(255,255,255,.35);backdrop-filter:blur(6px)}
.feed-meta{position:absolute;left:14px;right:14px;bottom:58px;z-index:2}
.feed-detail-link{display:block;color:#fff}
.feed-detail-link:hover{text-decoration:none}
.feed-creator{font-size:15px;font-weight:700;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.feed-star{color:var(--gold);font-size:12px;font-weight:800}
.feed-title{font-size:19px;font-weight:800;line-height:1.3;margin-top:2px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.feed-logline{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.45;opacity:.94;margin:4px 0 0;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.feed-sub{font-size:12px;opacity:.78;margin-top:5px}
.feed-actions{position:absolute;left:14px;right:14px;bottom:12px;z-index:2;display:flex;gap:9px;align-items:center}
.feed-act{display:inline-flex;align-items:center;gap:6px;background:rgba(15,15,15,.55);color:#fff;border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:7px 13px;font-size:14px;font-weight:600;backdrop-filter:blur(6px);cursor:pointer;font-family:inherit}
a.feed-act:hover{text-decoration:none;color:#fff}
span.feed-act{cursor:default}
.feed-sound{margin-left:auto}
/* (v62) Divider inside the top bar ＋ menu: separates the chat
   context group (Friends / Add friend / New group / Send my
   drama) from the four publish items above it. */
.publish-sep{height:1px;background:var(--line);margin:4px 8px}
/* (v63) Moments composer source row (shoot / upload / photo as
   three separate doors) + photo posts in the feed and preview. */
.moment-pick-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.moment-photo{width:100%;height:auto;display:block;border-radius:12px;margin-top:8px}
/* (v64) Custom avatars: a photo img covers its letter circle;
   the letter stays underneath and the img removes itself on
   error, so every surface degrades to the old letter circle. */
.has-photo{position:relative;overflow:hidden}
.avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.call-avatar{position:relative;overflow:hidden}
/* (v67) Cover avatar: WeChat's square-with-rounded-corners photo,
   white-bordered, hanging over the cover's bottom edge. */
.cover-avatar{width:66px;height:66px;border-radius:10px;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:26px;border:2px solid #fff;box-shadow:var(--shadow);flex:none}
.cover-avatar .avatar-img{border-radius:8px}
.room-head-avatar{width:32px;height:32px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:var(--gold2)}
.moment-comment-row{display:flex;gap:6px;align-items:flex-start}
.moment-comment-avatar{width:22px;height:22px;border-radius:50%;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;flex:none;margin-top:1px}
.room-info-peer{display:flex;align-items:center;gap:10px}
/* (v65) Source sheet + publish sheet + photo grids + the
   Moments camera entry. The sheets are bottom sheets (WeChat
   action-sheet shape); the publish sheet reuses the same card. */
.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1300;display:flex;align-items:flex-end;justify-content:center}
.sheet-backdrop[hidden]{display:none}
.sheet-card{background:var(--surface);width:100%;max-width:520px;border-radius:16px 16px 0 0;padding:10px 10px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow)}
.sheet-row{display:flex;align-items:center;gap:10px;padding:14px 16px;font-size:17px;font-weight:700;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text);cursor:pointer;text-align:left}
/* (v86) The sub-label sits on the SAME line as the row label —
   margin-left:auto used to split "Shoot / Photo or video" into
   two far-apart columns (desktop audit 2026-11-22). */
.sheet-row-sub{font-size:13px;font-weight:400;color:var(--muted)}
/* (v86) .sheet-row sets display:flex, which beats the [hidden]
   attribute — the "Write text" row leaked into the video shoot
   sheet (where it has no handler and just closed the sheet).
   The attribute must win. */
.sheet-row[hidden]{display:none}
/* (v86) Publish sheet fields: title + description get the same
   filled, bordered look as modal inputs. */
.publish-card input,.publish-card textarea{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text)}
.publish-card textarea{resize:vertical;min-height:64px}
/* (v73) File inputs for the source sheet: visually hidden but NOT
   display:none — some WebView hosts swallow JS .click() on a
   display:none input, which is exactly how Shoot died in the
   Muse app's browser (Bao 2026-11-22). The sheet rows are
   <label for> elements, so the tap reaches the input natively. */
.file-vh{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;overflow:hidden}
.dd-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:86vw;background:rgba(20,20,20,.92);color:#fff;font-size:14px;line-height:1.45;padding:10px 16px;border-radius:999px;z-index:1400;text-align:center;box-shadow:var(--shadow)}
.sheet-cancel{justify-content:center}
.publish-card{padding:16px 14px calc(14px + env(safe-area-inset-bottom))}
.sheet-actions{display:flex;gap:10px;margin-top:12px}
.sheet-actions .btn{flex:1}
.moment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px}
.moment-grid-img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;display:block}
/* (v67) The old round .moment-cam-btn is gone — the Moments camera
   is the cover's white .cover-cam now (see the cover block). */
.creator-avatar{width:18px;height:18px;border-radius:50%;object-fit:cover;vertical-align:-4px;margin-right:4px}
.feed-creator-avatar{width:22px;height:22px;border-radius:50%;object-fit:cover;vertical-align:-6px;margin-right:6px}
.mine-avatar{position:relative;overflow:hidden}

/* (v70) The merged river's chrome + Moment screens. The chrome
   (the one-line identity head; v72: the Dream Factory guide bar
   that sat under it is deleted — the header slogan line is the
   door now) sits between the top bar and the stream; feedFit
   subtracts its height, so the river still fills exactly what
   is left. */
#riverChrome{background:var(--bg)}
.river-head{display:flex;align-items:center;gap:10px;padding:10px 14px 0}
.river-head-avatar{position:relative;overflow:hidden;width:38px;height:38px;border-radius:50%;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex:none}
.river-head-name{font-weight:700;font-size:16px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.river-cam{margin-left:auto;width:38px;height:38px;border-radius:50%;border:none;background:var(--gold);color:var(--on-gold);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.25);padding:0;flex:none}
/* A Moment inside the river gets a full snap-screen of its own:
   the page's own surface (not the drama black), the card
   vertically centred and internally scrollable when it runs
   long (9-photo grids, open comment boxes). */
/* (v70) Dream Factory channels: two boxes on the surface (no
   prices showing); the chosen one lights gold and its duration
   chips open underneath. Fast-channel chips carry their price. */
.chan-cards{display:flex;gap:10px;flex-wrap:wrap}
.chan-card{flex:1 1 150px;text-align:left;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;background:var(--bg2);color:var(--text);font:inherit}
.chan-card b{display:block;font-size:16px}
.chan-card.selected{border-color:var(--gold);background:var(--gold-tint)}
.chan-card .chan-sub{display:block;margin-top:6px;font-size:13px;font-weight:400;color:var(--muted);line-height:1.45}
.ex-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.ex-chip{max-width:44%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dur-cards{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 6px}
.dur-chip{border:1px solid var(--line);border-radius:999px;padding:8px 14px;cursor:pointer;background:var(--bg2);color:var(--text);font:inherit;font-size:14px}
.dur-chip.selected{border-color:var(--gold);background:var(--gold-tint);font-weight:700}
.feed-item.feed-moment{background:var(--bg);color:var(--text)}
.river-moment-wrap{height:100%;overflow-y:auto;display:flex;justify-content:center;align-items:flex-start;padding:18px 12px;box-sizing:border-box;scrollbar-width:none}
.river-moment-wrap::-webkit-scrollbar{display:none}
.river-moment-wrap .moment-card{width:100%;max-width:560px;margin:auto 0}

/* ================= v87 shell (Bao 2026-11-22) =================
   The restored anchor layout: the top bar stacks — logo row,
   then language dropdown + 🎨 Theme + round ⋯, then the word
   pill nav — and a one-block page footer closes every page.
   The tab bar rules above are inert (the element is gone). */
.topbar{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
.topbar-row{display:flex;align-items:center;gap:10px}
.topright-row{flex-wrap:nowrap}
.top-lang{flex:0 1 230px;min-width:0;background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:9px 8px;color:var(--text);font-size:14.5px}
.pillnav{display:flex;gap:8px;flex-wrap:wrap}
.pillnav a{position:relative;display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:999px;background:var(--bg2);border:1px solid var(--line);color:var(--text);font-weight:700;font-size:15.5px;line-height:1.25}
.pillnav a:hover{text-decoration:none;border-color:var(--gold)}
.pillnav a.active{background:var(--gold);border-color:var(--gold);color:#1c1503}
.pill-badge{position:static;background:var(--red);color:#fff}
.pillnav a.active .pill-badge{background:var(--red);color:#fff}
/* ⋯ menu rows (the menu shell itself is the old .more-menu). */
.more-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--text);padding:11px 4px;font-size:15px;font-weight:600;cursor:pointer}
a.more-item:hover{text-decoration:none;color:var(--gold2)}
.more-ic{font-size:17px}
.more-item-label{flex:1}
.more-credits{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 4px;border-bottom:1px solid var(--line)}
.more-credits-n{font-size:15px}
/* Page footer: slogan line, word links, rules line. */
.site-footer{max-width:1060px;margin:34px auto 0;padding:20px 16px 30px;border-top:1px solid var(--line);text-align:center}
.footer-brand{font-weight:800;color:var(--text);font-size:15px}
.footer-links{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:10px}
.footer-links a{color:var(--gold2);font-weight:700;font-size:15px}
.footer-rules{color:var(--muted);font-size:12.5px;margin-top:12px}
/* Chat list doors row (v87): the four doors as word buttons. */
.chat-doors{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
/* v87 shell polish: the Theme button never wraps its label and
   the ⋯ stays a full round tap target on narrow screens. */
.theme-btn{white-space:nowrap;flex:0 0 auto}
.more-btn{width:42px;height:42px;flex:0 0 auto;font-size:19px}
.more-wrap{margin-left:auto}
/* (v175) Header globe: the UI-language door in the shell header
   (the home header). A round icon button sized like the ⋯ beside
   it, themed surface + border so it reads in all four themes;
   opens #langUiModal. It lives outside .more-wrap (whose
   margin-left:auto keeps the pair right-aligned), so it never
   overlaps the logo row or the ⋯ menu on narrow screens. */
.lang-globe-btn{width:42px;height:42px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;background:var(--bg2);border:1px solid var(--line);border-radius:50%;color:var(--text);cursor:pointer;padding:0}
.lang-globe-btn:hover{border-color:var(--gold)}
.lang-globe-btn .dd-ic{width:20px;height:20px}

/* v130 like leaderboard (#/rank): one simple ranked list. */
.rank-note{color:var(--muted);margin:4px 0 14px}
.rank-list{display:flex;flex-direction:column;gap:8px}
.rank-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:inherit;text-decoration:none}
.rank-no{font-weight:800;font-size:17px;min-width:26px;text-align:center;color:var(--muted)}
.rank-no-1{color:var(--gold2)}
.rank-no-2{color:#8a8f98}
.rank-no-3{color:#b0793f}
.rank-thumb{width:46px;height:62px;object-fit:cover;border-radius:8px;flex:0 0 auto;background:#222}
.rank-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:20px}
.rank-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.rank-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-sub{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-likes{font-weight:700;color:var(--red);flex:0 0 auto}

/* (v150) Player action row + author homepages. Bao's layout
   rule: icons evenly spaced, one icon + one number, generous
   spacing, never crammed — the row is flex with each item
   flex:1 and centered, so four items always divide the width
   exactly, on any screen. */
.act-row{display:flex;align-items:stretch;gap:8px;margin:14px 0 4px}
.act-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 4px;font-size:15px;font-weight:600;font-family:inherit;color:var(--ink,#eee);background:var(--gold-tint);border:1px solid var(--line);border-radius:999px;cursor:pointer;text-decoration:none}
.act-btn:hover{text-decoration:none}
.act-btn[data-act-like].on{color:var(--gold2);border-color:var(--gold2)}
.act-btn[data-act-fav].on{color:#e0245e;border-color:#e0245e}
.feed-actions .act-row{flex:1;margin:0}
.feed-actions .act-btn{background:rgba(15,15,15,.55);color:#fff;border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(6px);padding:8px 4px}
.feed-actions .act-btn[data-act-like].on{color:#ffd76a;border-color:#ffd76a}
.feed-actions .act-btn[data-act-fav].on{color:#ff7aa8;border-color:#ff7aa8}
.follow-btn{background:var(--gold);color:var(--on-gold);border:none;border-radius:999px;padding:4px 14px;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer;vertical-align:middle}
.follow-btn.on{background:transparent;color:var(--gold2);border:1px solid var(--gold2)}
.feed-creator .follow-btn{padding:3px 12px;font-size:12px}
.feed-author-link{color:#fff;text-decoration:none}
.author-name-link{color:inherit;font-weight:700}
.comments-box{margin-top:18px;scroll-margin-top:76px}
.comment-item{padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.comment-item b{margin-right:7px}
.comment-form{display:flex;gap:8px;margin-top:12px}
.comment-form input{flex:1;min-width:0}
.author-head{display:flex;gap:14px;align-items:center;margin:10px 0 4px}
.author-avatar{width:76px;height:76px;border-radius:50%;background:var(--gold-tint);color:var(--gold2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:30px;flex:none;position:relative;overflow:hidden}
.author-head-main{flex:1;min-width:0}
.author-head-main h1{margin:0 0 6px;font-size:22px}
.author-counts{display:flex;gap:20px;font-size:14px}
.author-counts b{font-size:16px}
.author-btns{display:flex;gap:8px;margin-top:10px;align-items:center}
.author-btns .follow-btn{padding:8px 20px;font-size:14px}
.author-tabs{display:flex;gap:8px;margin:16px 0 10px}
.author-tab{flex:1;padding:8px 4px;border-radius:999px;border:1px solid var(--line);background:transparent;color:inherit;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.author-tab.on{background:var(--gold);color:var(--on-gold);border-color:transparent}
.author-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
/* (v174) Each tile is an <article> cell (the ctr combined
   toggle lives under the link, like the Watch feed cards);
   the link itself keeps the old tile look. */
.author-cell{min-width:0;display:flex;flex-direction:column}
.author-cell .author-work{flex:1}
.author-cell .ctr-toggle-all{margin-top:4px;align-self:flex-start}
.author-work{display:block;color:inherit;text-decoration:none}
.author-work img,.author-work-ph{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:var(--gold-tint)}
.author-work-t{display:block;font-size:12px;font-weight:600;margin-top:5px;line-height:1.3;overflow:hidden}
.author-work small{opacity:.65;font-size:11px}

/* ================= v154 Reborn skeleton =================
   One slim top row + the fixed bottom five-cell tab bar. The
   bar reuses the v53 .tabbar base above; the deltas here: a
   raised gold ＋ disc in the center cell (PRD §07 — modest
   brand emphasis, never oversized), SVG icons in the .tab-ic
   slot, body bottom padding so no content ever hides behind
   the bar, the install card lifted above it, and the bar
   hidden while the upload editor owns the screen. */
body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
.topbar{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.topbar-row{flex:1}
.tabbar a .tab-ic{display:flex;align-items:center;justify-content:center}
.tab-create{position:relative;flex:1;background:none;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}
/* (v169, UI-15) Flat champagne disc: gradient, heavy shadow and
   the border ring are gone (Addendum 02 §7); the v154 raised-disc
   structure itself is unchanged. */
.tab-create-plus{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--gold);color:var(--on-gold);font-size:28px;font-weight:700;line-height:1;margin-top:-14px;box-shadow:none;border:none}
.tab-create:active .tab-create-plus{filter:brightness(1.08)}
.install-card{bottom:calc(70px + env(safe-area-inset-bottom))}
body.up-editing .tabbar{display:none}
.mine-moments-link{margin-left:auto;font-weight:700;color:var(--gold2)}

/* ---------- (v155) Reborn player: actions inside the frame ----------
   Bao 定版 #16/#17/#18 + PRD §09 + checklist F16/F17/F18/Q12/
   Q13/Q15. The player's social surface lives INSIDE the video
   frame: a Channels-style right rail (author avatar on top,
   then like / share / favorite / comment, each with its real
   count) and a bottom-left caption (@author + title) floating
   above the control bar. The rail never fades with the bar —
   one tap, always reachable. Nothing social sits below the
   player any more, and the video itself is never cropped:
   object-fit stays contain inside its frame. */
.vp-rail{position:absolute;right:8px;bottom:60px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:13px}
.vp-rail-avatar{position:relative;width:46px;height:46px;border-radius:50%;background:rgba(12,12,16,.55);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;text-decoration:none;overflow:hidden;flex:none}
.vp-rail-initial{color:#fff;font-weight:800;font-size:19px;line-height:1}
.vp-rail-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.vp-rail-btn{display:flex;flex-direction:column;align-items:center;gap:1px;background:none;border:none;color:#fff;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer;padding:2px 4px;text-shadow:0 1px 4px rgba(0,0,0,.65);font-variant-numeric:tabular-nums}
.vp-rail-ic{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:rgba(12,12,16,.45);font-size:21px;line-height:1}
.vp-rail-btn[data-act-like].on{color:#ffd76a}
.vp-rail-btn[data-act-like].on .vp-rail-ic{background:rgba(185,138,30,.55)}
.vp-rail-btn[data-act-fav].on{color:#ff7aa8}
.vp-rail-btn[data-act-fav].on .vp-rail-ic{background:rgba(224,36,94,.45)}
.vp-caption{position:absolute;left:12px;right:76px;bottom:56px;z-index:3;pointer-events:none;text-align:left}
.vp-caption-name{pointer-events:auto;color:#fff;font-weight:700;font-size:15px;text-decoration:none;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.vp-caption-title{color:#fff;font-size:13px;margin-top:3px;text-shadow:0 1px 4px rgba(0,0,0,.7);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vp-error{position:absolute;left:10px;right:10px;top:10px;z-index:5;background:rgba(12,12,16,.85);color:#fff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px}
.vp-error[hidden]{display:none}
.vp-error p{flex:1;margin:0;font-size:13px}
.video-player{object-fit:contain}
/* Comments as a bottom sheet tied to the player (PRD §09 /
   Q13): list + form in one floating panel, under the generic
   message modal (z 100) so failure feedback can land on top. */
.cmt-sheet{position:fixed;inset:0;z-index:95;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.cmt-sheet[hidden]{display:none}
.cmt-sheet-card{background:var(--card);color:var(--text);width:min(560px,100%);max-height:72vh;display:flex;flex-direction:column;border-radius:18px 18px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
.cmt-sheet-head{display:flex;align-items:center;justify-content:space-between}
.cmt-sheet-head h3{margin:0}
.cmt-sheet-close{background:none;border:none;color:inherit;font-size:17px;cursor:pointer;padding:6px 10px}
.cmt-sheet-list{overflow-y:auto;margin-top:6px;min-height:60px}
.cmt-sheet .comment-form{margin-top:10px}
/* (v165) Mine workspace — one home, three tabs (Addendum 01 §4 /
   02 §3+§4): tab bar with real counts, compact task strip,
   two-column cover grids, quiet card action row with an in-card
   compact menu, drafts list with a document visual, full-width
   private preview under the grid. All classes carry the mw-
   prefix (the v164 lesson: no collisions with retired surfaces'
   leftover rules). */
.mw-tabs{display:flex;gap:8px;margin:12px 0 4px}
.mw-tab{flex:1;padding:9px 6px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.mw-tab.on{border-color:var(--gold);color:var(--gold)}
.mw-count{font-size:12px;color:var(--muted);font-weight:700}
.mw-tab.on .mw-count{color:var(--gold)}
.mw-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}
@media (min-width:720px){.mw-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
.mw-card .card-body{gap:5px;padding:10px 12px 12px}
.mw-card-acts{display:flex;align-items:center;gap:8px;margin-top:4px}
.mw-card-acts .del-text-btn{margin-left:auto}
.mw-menu-btn{font-size:15px;line-height:1.25;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--muted);cursor:pointer}
.mw-menu{margin-top:8px;border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:4px}
.mw-menu[hidden]{display:none}
.mw-menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:none;color:var(--text);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.mw-cover{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;position:relative;text-align:left}
.mw-priv-tag{position:absolute;left:8px;top:8px;z-index:2;background:rgba(12,12,16,.62);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px}
.mw-strip{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden}
.mw-strip-head{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 14px;background:none;border:0;color:var(--text);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.mw-strip-chev{color:var(--muted)}
.mw-task-list{border-top:1px solid var(--line);padding:8px 10px;display:flex;flex-direction:column;gap:8px}
.mw-task-list .card.pending-upload{box-shadow:none;margin:0}
.mw-task-row{display:flex;align-items:center;gap:10px;padding:8px 6px}
.mw-task-row.is-fail .mw-task-state{color:var(--red)}
.mw-task-main{flex:1;min-width:0}
.mw-task-title{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-task-state{font-size:12.5px;color:var(--muted);margin-top:2px}
.mw-drafts{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.mw-draft-row{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.mw-doc{width:46px;height:58px;flex:none;display:flex;align-items:center;justify-content:center;font-size:24px;background:var(--bg2);border:1px solid var(--line);border-radius:8px}
.mw-draft-main{flex:1;min-width:0}
.mw-draft-excerpt{font-size:14px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mw-draft-when{font-size:12px;color:var(--muted);margin-top:3px}
.mw-preview-inner{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:12px}
.mw-preview-acts{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}

/* (v166) Me page, Addendum 01 §3: the View-my-profile door in
   the identity head (a quiet text action under the credits
   line) and the Settings page (#/settings), whose list reuses
   .mine-list/.mine-row/.mine-lang unchanged — the only new
   surface is this head link. Touch area: the link carries
   vertical padding so its tap box stays generous inside the
   head; rows keep .mine-row's ≥44px box. */
.mine-view-profile{display:inline-block;padding:6px 0 2px;color:var(--gold);font-size:14px;font-weight:600}
.mine-view-profile:hover{text-decoration:underline}

/* (v167, #44) Group @mentions: the member picker that pops above
   the composer while an @fragment is being typed, the gold
   mention link inside message bubbles, and the red "mentioned
   you" pill on conversation rows. The picker is a plain stacked
   list that hugs the input bar (deliberately NOT a .chat-panel —
   no card margin); its rows reuse the conversation avatar. */
.mention-picker{background:var(--card);border:1px solid var(--line);border-radius:14px;margin-top:10px;max-height:252px;overflow-y:auto;padding:6px}
.mention-picker[hidden]{display:none}
.mention-opt{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;padding:8px 10px;border-radius:10px;color:var(--text);font:inherit;font-size:15px;text-align:left;cursor:pointer}
.mention-opt:hover{background:var(--bg2)}
.mention-opt-name{font-weight:600}
.mention{color:var(--gold);font-weight:700;text-decoration:none}
.mention-badge{background:var(--red);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;white-space:nowrap}

/* (v168, K7) Public identity lines + the profile editor's new
   fields. The @username sits quietly under the display name on
   both the author page (Gallery surface) and the Me head; the
   bio is one short paragraph under it, absent entirely while
   empty. Editor fields stack inside the existing modal card;
   the error line is the destructive token, hidden until a
   server refusal needs words. */
.author-username{color:var(--muted);font-size:15px;margin:0 0 4px}
.author-bio{font-size:14px;line-height:1.5;margin:2px 0 8px;white-space:pre-wrap;word-break:break-word}
.mine-username{color:var(--muted);font-size:14px;margin-top:1px}
.profile-field{display:block;margin-top:12px}
.profile-field>span{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:5px}
.profile-field input,.profile-field textarea{width:100%;box-sizing:border-box}
.profile-field textarea{resize:vertical;font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg2);color:var(--text)}
.profile-hint{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.45}
.creator-err{color:var(--red);font-size:14px;margin:10px 0 0}

/* ================= v169 Global visual system (K1) =================
   One vector icon set for all UI chrome: inline SVGs from ddIc()
   (js/app.js) and cic() (js/chat.js) — 24 viewBox, 1.8 stroke,
   round caps, currentColor, the same hand as the v154 tab bar.
   .dd-ic sizes to the surrounding text; fixed slots size up. */
.dd-ic{display:inline-block;width:1.12em;height:1.12em;vertical-align:-.16em;flex:none}
.mine-ic .dd-ic,.more-ic .dd-ic{width:21px;height:21px;vertical-align:middle}
.mine-ic,.more-ic{display:inline-flex;align-items:center;justify-content:center}
.act-btn .dd-ic,.wf-act .dd-ic{width:17px;height:17px}
.vp-rail-ic .dd-ic{width:23px;height:23px}
.feed-play-ic .dd-ic{width:22px;height:22px;margin-left:2px}
.poster-play .dd-ic{width:54px;height:54px}
.vp-center .dd-ic{width:30px;height:30px}
.vp-btn .dd-ic{width:19px;height:19px}
.pubpage-play .dd-ic{width:24px;height:24px}
#msgTitle .dd-ic{width:30px;height:30px;vertical-align:middle;color:var(--gold2)}
.sheet-row .dd-ic{width:21px;height:21px;vertical-align:-.22em}
.conv-avatar .dd-ic{width:22px;height:22px}
.msg-lock .dd-ic{width:11px;height:11px;vertical-align:-.1em}
.msg-report .dd-ic{width:13px;height:13px}
.fm-icon .dd-ic{width:22px;height:22px;vertical-align:middle}
.up-tool .dd-ic{width:19px;height:19px}
.moment-like .dd-ic{width:16px;height:16px}
.moment-like.liked .dd-ic{fill:var(--red);stroke:var(--red)}
.rank-likes .dd-ic{width:13px;height:13px;vertical-align:-.12em}
.del-text-btn .dd-ic{width:13px;height:13px;vertical-align:-.14em}
h2 .dd-ic,h3 .dd-ic{width:.95em;height:.95em;vertical-align:-.08em;color:var(--gold2)}
.btn .dd-ic{width:17px;height:17px}
.chat-tool .dd-ic,.chat-mic .dd-ic{width:19px;height:19px}
.invite-hero-ic{color:var(--gold2);display:flex;justify-content:center}
.invite-hero-ic .dd-ic{width:44px;height:44px}

/* (v172, #43) Group call (mesh): room banner + multi-party stage.
   The banner rides the room's own surface colors so it reads in
   every theme; the stage is a dark cinema surface like the 1:1
   call overlay (media is dark in all themes by design). */
.gcall-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 12px 0;padding:8px 12px;background:var(--gold-soft,rgba(214,183,123,.16));border:1px solid var(--gold2);border-radius:12px;color:var(--text);font-size:14px}
.gcall-banner[hidden]{display:none}
.gcall-banner-txt{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.gcall-banner-txt .dd-ic{width:17px;height:17px;color:var(--gold2)}
.gcall-overlay{position:fixed;inset:0;height:100dvh;z-index:200;background:#101014;display:flex;flex-direction:column;color:#fff}
.gcall-overlay .gcall-hud{position:static;transform:none;margin:10px auto 4px}
.gcall-min{position:absolute;top:10px;right:12px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;font-size:20px;line-height:1;cursor:pointer;z-index:5}
.gcall-grid{flex:1;display:grid;gap:8px;padding:10px;min-height:0;grid-template-columns:1fr;grid-auto-rows:1fr}
.gcall-grid[data-n="2"]{grid-template-columns:1fr 1fr}
.gcall-grid[data-n="3"],.gcall-grid[data-n="4"]{grid-template-columns:1fr 1fr}
.gcall-grid[data-n="5"],.gcall-grid[data-n="6"],.gcall-grid[data-n="7"],.gcall-grid[data-n="8"]{grid-template-columns:1fr 1fr}
@media (min-width:760px){.gcall-grid[data-n="5"],.gcall-grid[data-n="6"]{grid-template-columns:repeat(3,1fr)}.gcall-grid[data-n="7"],.gcall-grid[data-n="8"]{grid-template-columns:repeat(4,1fr)}}
.gcall-tile{position:relative;border-radius:14px;overflow:hidden;background:#1c1c22;display:flex;align-items:center;justify-content:center;min-height:120px}
.gcall-tile .gcall-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.gcall-tile.has-vid .gcall-vid{display:block}
.gcall-tile.has-vid .gcall-av{display:none}
.gcall-av{display:flex;align-items:center;justify-content:center}
.gcall-av-img{width:64px;height:64px;flex:none;border-radius:50%;background:var(--gold-tint);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:var(--gold2);position:relative;overflow:hidden}
.gcall-av-img .avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gcall-name{position:absolute;left:8px;bottom:8px;z-index:2;background:rgba(0,0,0,.55);color:#fff;font-size:12.5px;padding:3px 9px;border-radius:999px;max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcall-badge{position:absolute;top:8px;left:8px;z-index:2;background:rgba(0,0,0,.62);color:#ffd97a;font-size:12px;padding:3px 9px;border-radius:999px}
.gcall-controls{display:flex;gap:26px;justify-content:center;align-items:flex-start;padding:14px 10px calc(20px + env(safe-area-inset-bottom))}
.gcall-endall{align-self:center;background:none;border:1px solid rgba(255,255,255,.4);color:#ff9a9a;border-radius:999px;padding:9px 14px;font-size:13.5px;cursor:pointer;font-family:inherit}

/* ================= v177 Chat visual (design alignment C) =================
   Presentation only — chat.js is byte-identical this version.
   Three moves, all from the GAP audit (§7/§8) plus Bao's
   2026-11-29 01:28 screenshot of the desktop room floating
   mid-viewport over a dead band:

   1) Chat LIST header slimming (§7-1): the Me bar snugs up,
      the five doors become ONE scrollable row (no door lost —
      Friends / Add friend / New group / Send my drama / call
      reminders all stay worded and reachable), the search box
      tightens. The stack was ~1/3 of a phone first screen.
   2) Conversation rows de-carded (§7-2): full-width list rows
      on hairline separators, WeChat-style, instead of floating
      white cards. Badges (unread, the v167 red @-me pill,
      presence dot) are markup — untouched, not weakened.
   3) ROOM shell (body.in-room, toggled by app.js route()):
      the global top bar and the footer step aside so the
      room's own head is the ONLY header (GAP 8-1 — no more two
      stacked ⋯ menus), and the room fills the viewport: the
      message list flexes, the composer (and the expanded ＋
      tools row under it) sits directly above the tab bar,
      which stays visible in flow (GAP 8-5's hide-the-tab-bar
      question is NOT decided and is not taken here). The v154
      body bottom padding (58px, from the fixed-bar era) is
      zeroed in-room — left in place it pads a dead band under
      the in-flow bar (measured: exactly 58px on every window). The old
      .chat-msgs height:52vh is what stranded the composer at
      3/4 height on tall windows. The group-call banner keeps
      its exact mount and markup (v172) — in the flex column it
      simply takes its natural height above the messages. */
.me-bar{padding:7px 12px;margin-bottom:8px}
.me-bar .conv-avatar{width:38px;height:38px;font-size:16px}
.chat-doors{flex-wrap:nowrap;overflow-x:auto;margin-bottom:6px;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chat-doors::-webkit-scrollbar{display:none}
.chat-doors .btn{flex:none;white-space:nowrap}
.chat-search{margin-top:6px}
.chat-search input{padding:10px 12px}
.conv-row{background:transparent;border:none;border-bottom:1px solid var(--line);border-radius:0;padding:12px 4px;margin-top:0}
.conv-row:hover{background:var(--bg2);border-color:var(--line);text-decoration:none}
body.in-room{display:flex;flex-direction:column;height:100vh;height:100dvh;padding-bottom:0}
body.in-room .topbar,body.in-room .site-footer{display:none}
body.in-room main{flex:1;min-height:0;width:100%;padding-bottom:0;display:flex;flex-direction:column}
body.in-room .tabbar{position:static;flex:none}
body.in-room .chat-room-wrap{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
body.in-room .chat-room-head{margin-top:0;padding:10px 0;border-bottom:1px solid var(--line)}
body.in-room .chat-msgs{flex:1;height:auto;min-height:0}
body.in-room .chat-inputbar{padding-bottom:10px}

/* ================= v179 Account (log out / delete account) =================
   Settings-page account doors and their two sheets. All new
   classes; nothing above this block is touched. */
.acct-danger-head{padding:10px 16px 2px;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--danger,#c0392b);text-transform:uppercase}
.acct-danger-row .mine-row-label,.acct-danger-row .mine-ic{color:var(--danger,#c0392b)}
.acct-note{font-size:14.5px;line-height:1.55;color:var(--text);margin:0 0 12px}
.acct-code{font-size:21px;font-weight:800;letter-spacing:.14em;text-align:center;padding:14px 10px;margin:0 0 14px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;color:var(--gold2);word-break:break-all}
.acct-check{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;line-height:1.45;cursor:pointer}
.acct-check input{width:19px;height:19px;margin-top:1px;flex:none;accent-color:var(--gold)}
.acct-effects{margin:0 0 6px;padding-left:20px;font-size:14.5px;line-height:1.6;color:var(--text)}
.acct-code-input{width:100%;box-sizing:border-box;padding:12px 14px;margin-top:8px;border:1px solid var(--line);border-radius:12px;background:var(--bg2);color:var(--text);font:inherit;font-size:16px;letter-spacing:.12em;text-transform:uppercase}
.acct-code-input:focus{outline:2px solid var(--gold2);outline-offset:1px}
.acct-err{color:var(--danger,#c0392b);font-size:14px;margin:10px 0 0}
.modal-actions .btn.danger{background:var(--danger,#c0392b);border-color:var(--danger,#c0392b);color:#fff}
/* ================= v179 Desktop home (design alignment D) =================
   Mockup 03 as Bao sent it 2026-11-29 01:32: at >=1024px the
   shell is a left sidebar + a content top row, and the Watch
   section wears the figure's furniture (Discover title, kind
   tabs, four-column grid of frameless cards). Everything
   below the media query is display:none furniture that only
   the desktop rules switch on, so the mobile shell and the
   mobile feed card stay pixel-identical to v177/v178. */
.sidenav{display:none}
.desk-toprow{display:none}
.watch-title-desk{display:none}
.kind-tabs{display:none}
.feed-genre-desk{display:none}
.feed-menu-wrap{display:none}
@media (min-width:1024px){
  /* --- shell: sidebar in, top bar + bottom tab bar out --- */
  .topbar{display:none}
  .tabbar{display:none}
  body{padding-bottom:0}
  .sidenav{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:232px;z-index:70;background:var(--bg2);border-right:1px solid var(--line);padding:20px 14px;overflow-y:auto}
  .sidenav .logo{padding:0 8px 20px}
  .sidenav-list{display:flex;flex-direction:column;gap:4px}
  .sidenav-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:none;border-radius:12px;background:none;color:var(--text);font:inherit;font-size:15.5px;font-weight:600;text-decoration:none;cursor:pointer;text-align:left}
  .sidenav-item .tab-ic{display:inline-flex;flex:none}
  .sidenav-item.active{color:var(--gold2);background:var(--gold-tint)}
  .sidenav-badge{position:static;margin-left:auto}
  .sidenav-create-disc{width:38px;height:38px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--gold);color:var(--on-gold);font-size:23px;font-weight:800;line-height:1}
  main{margin:0 auto 0 232px}
  .site-footer{margin-left:232px}
  body.in-room main{width:auto}
  /* --- content top row: search + relocated globe / ⋯ --- */
  .desk-toprow{display:flex;align-items:center;justify-content:flex-end;gap:12px;position:sticky;top:0;z-index:65;margin-left:232px;padding:10px 18px;background:var(--topbar-bg);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
  body.in-room .desk-toprow{display:none}
  .desk-search{display:flex;align-items:center;gap:8px}
  .desk-icon-btn{width:42px;height:42px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;background:var(--bg2);border:1px solid var(--line);border-radius:50%;color:var(--text);cursor:pointer;padding:0}
  .desk-icon-btn:hover{border-color:var(--gold)}
  .desk-icon-btn .dd-ic{width:20px;height:20px}
  #deskSearchInput{width:280px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--bg2);color:var(--text);font:inherit;font-size:14.5px}
  #deskSearchInput:focus{outline:2px solid var(--gold2);outline-offset:1px}
  .desk-search-clear{width:30px;height:30px;flex:0 0 auto;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--muted);font-size:16px;cursor:pointer;line-height:1}
  .desk-toprow-slot{display:flex;align-items:center;gap:12px}
  .desk-toprow-slot .more-wrap{margin-left:0}
  /* --- Watch section furniture (desktop only) --- */
  .watch-title-mobile{display:none}
  .watch-title-desk{display:block}
  .section-head .btn.small{background:none;border:none;box-shadow:none;color:var(--muted);font-weight:600;padding:6px 2px;min-height:0}
  .section-head .btn.small .dd-ic{display:none}
  .section-head .btn.small::after{content:" ›"}
  .kind-tabs{display:flex;gap:28px;margin:14px 0 0;border-bottom:1px solid var(--line)}
  .kind-tab{background:none;border:none;padding:9px 2px;font:inherit;font-size:15.5px;font-weight:600;color:var(--muted);cursor:pointer}
  .kind-tab.active{color:var(--text);box-shadow:inset 0 -2px 0 var(--gold)}
  .watch-grid{grid-template-columns:repeat(4,1fr)}
  /* --- desktop feed card: cover / title / author row --- */
  .watch-grid .feed-card{background:transparent;border:none;box-shadow:none;border-radius:0;overflow:visible}
  .watch-grid .feed-cover{order:1;margin-top:0}
  .watch-grid .feed-cover .poster{border-radius:14px}
  .watch-grid .card-body{order:2;padding:10px 2px 0;gap:4px}
  .watch-grid .wf-title a{color:var(--text)}
  .watch-grid .card-body .meta,.watch-grid .wf-logline,.watch-grid .feed-foot{display:none}
  .watch-grid .feed-author-row{order:3;padding:8px 2px 0;display:flex;align-items:center;gap:7px}
  .watch-grid .feed-author-name{font-size:13.5px;color:var(--muted)}
  .watch-grid .feed-genre-desk{display:inline;color:var(--muted);font-size:13.5px;white-space:nowrap}
  .watch-grid .feed-menu-wrap{display:inline-flex;margin-left:auto;position:relative;flex:none}
  .feed-menu-btn{width:32px;height:32px;border-radius:50%;border:none;background:none;color:var(--muted);font-size:17px;cursor:pointer;line-height:1}
  .feed-menu-btn:hover{background:var(--bg2);color:var(--text)}
  .feed-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:180px;display:flex;flex-direction:column;gap:2px;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
  .feed-menu[hidden]{display:none}
  .feed-menu-item{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:none;border-radius:8px;background:none;color:var(--text);font:inherit;font-size:14.5px;text-decoration:none;cursor:pointer;text-align:left;box-sizing:border-box}
  .feed-menu-item:hover{background:var(--bg2)}
  .feed-menu-item .dd-ic{width:17px;height:17px;flex:none}
}

/* (v179, R6 — niece's ruling relayed by Bao 2026-11-29 02:06)
   Desktop official strip, slim form: the SAME strip markup
   and the same scan-to-follow chain, compressed at >=1024px
   to one line — small avatar, official name, the one follow
   line, and the small code (44px, still scannable-size in
   the row). Height lands at roughly half the full card.
   Below 1024px the strip is byte-for-byte the v148 form. */
@media (min-width:1024px){
  .official-strip{padding:8px 14px;gap:12px;border-radius:12px;margin:0 0 14px}
  .official-strip-avatar{width:36px;height:36px;border-radius:10px}
  .official-strip-name{font-size:15.5px}
  .official-strip-sub{font-size:12.5px;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .official-strip-qr{width:44px;height:44px;border-radius:6px}
}

/* ================= v181 V1.4 mobile immersive feed =================
   The feed shell only ever exists at <=767.98px (route() gates
   it) and every rule below is scoped to body.in-feed or the
   .mf- classes, so desktop rendering is untouched. The stage
   is a dark cinema surface in EVERY theme (V14-1): colors are
   stated literally here instead of riding theme vars. */
/* --- shell: in-room pattern — body becomes the app frame --- */
body.in-feed{display:flex;flex-direction:column;height:100vh;height:100dvh;padding-bottom:0;background:#090a0b;overflow:hidden}
body.in-feed .topbar,body.in-feed .site-footer{display:none}
body.in-feed main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0;display:flex;flex-direction:column}
body.in-feed .tabbar{position:static;flex:none;background:rgba(10,11,12,.88);backdrop-filter:blur(12px);border-top:1px solid rgba(247,246,242,.09)}
body.in-feed .tabbar a{color:#9a9da2}
body.in-feed .tabbar a:hover{color:#f7f6f2}
body.in-feed .tabbar a.active{color:#e3bc63}
body.in-feed .btn.outline{color:#e9c979;border-color:#c9a24e}
/* --- stage frame --- */
.mf-shell{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:#090a0b;color:#f7f6f2}
.mf-view{position:relative;flex:1;min-height:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;overflow-anchor:none}
.mf-view::-webkit-scrollbar{display:none}
.mf-item{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative}
.mf-stage{position:absolute;inset:0;background:#090a0b;overflow:hidden}
.mf-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;border:none}
.mf-video::cue{background:rgba(0,0,0,.55);color:#f7f6f2;font-size:15px}
/* --- top overlay: tabs centered, back / more at the edges --- */
.mf-top{position:absolute;top:0;left:0;right:0;z-index:6;display:flex;align-items:flex-start;justify-content:center;padding:calc(6px + env(safe-area-inset-top)) 8px 16px;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,0));pointer-events:none}
.mf-top>*{pointer-events:auto}
.mf-tabs{display:flex;gap:4px}
.mf-tabs button{position:relative;background:none;border:none;color:rgba(247,246,242,.62);font:inherit;font-size:16px;font-weight:600;padding:8px 13px;min-height:44px;cursor:pointer;text-shadow:0 1px 5px rgba(0,0,0,.5)}
.mf-tabs button.on{color:#f7f6f2;font-weight:800}
.mf-tabs button.on::after{content:"";position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:22px;height:3px;border-radius:2px;background:#c9a24e}
.mf-back,.mf-top-more{position:absolute;top:calc(6px + env(safe-area-inset-top));width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:none;color:#f7f6f2;cursor:pointer}
.mf-back{left:6px}
.mf-top-more{right:6px}
.mf-back svg,.mf-top-more svg{width:24px;height:24px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.5))}
/* --- right rail: avatar (+follow badge), like, heart, comment, share --- */
.mf-rail{position:absolute;right:8px;bottom:126px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:13px}
.mf-ava-wrap{position:relative;width:48px;height:48px;margin-bottom:4px}
.mf-ava{width:48px;height:48px;border-radius:50%;overflow:hidden;display:block;border:2px solid rgba(247,246,242,.85);background:#2a2d31;position:relative}
.mf-ava-initial{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:19px;color:#f7f6f2}
.mf-ava-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mf-ava-follow{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);width:20px;height:20px;border-radius:50%;background:#c9a24e;color:#241a05;border:none;font-size:15px;font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;padding:0}
.mf-ava-follow::after{content:"";position:absolute;inset:-12px}
.mf-rail-btn{width:48px;min-height:50px;display:flex;flex-direction:column;align-items:center;gap:0;background:none;border:none;color:#f7f6f2;cursor:pointer;font:inherit;font-size:12px;font-weight:600;padding:2px 0;text-shadow:0 1px 5px rgba(0,0,0,.55)}
.mf-rail-ic{width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.mf-rail-ic svg{width:31px;height:31px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.5))}
.mf-rail-btn.on{color:#e9c979}
/* --- bottom-left identity cluster: one name, one title, one line --- */
.mf-meta{position:absolute;left:12px;right:84px;bottom:64px;z-index:5;color:#f7f6f2;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.mf-creator{display:flex;align-items:center;gap:9px;margin-bottom:6px;flex-wrap:wrap}
.mf-creator-name{color:#f7f6f2;font-weight:700;font-size:16.5px;text-decoration:none}
.mf-meta .follow-btn.on{color:#e9c979;border-color:#e9c979}
.mf-title{font-size:15.5px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mf-logline{font-size:13.5px;color:rgba(247,246,242,.88);line-height:1.4;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px}
.mf-expand{background:none;border:none;color:rgba(247,246,242,.78);font:inherit;font-size:13px;min-height:44px;display:inline-flex;align-items:center;padding:4px 8px 4px 0;cursor:pointer}
/* --- playback affordances --- */
.mf-bigplay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;border-radius:50%;background:rgba(0,0,0,.45);border:1px solid rgba(247,246,242,.35);color:#f7f6f2;display:none;align-items:center;justify-content:center;cursor:pointer;z-index:4;padding:0}
.mf-bigplay svg{width:34px;height:34px}
.mf-item.mf-paused .mf-bigplay{display:flex}
.mf-spin{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;border:3px solid rgba(247,246,242,.25);border-top-color:#f7f6f2;animation:mfspin .9s linear infinite;z-index:4;pointer-events:none}
@keyframes mfspin{to{transform:rotate(360deg)}}
.mf-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;background:rgba(12,13,14,.85);border:1px solid rgba(247,246,242,.16);border-radius:14px;padding:16px 18px;text-align:center;color:#f7f6f2;max-width:82%}
.mf-error p{margin:0}
.mf-error-btns{display:flex;gap:8px;justify-content:center;margin-top:10px}
/* --- control row + progress, between stage and nav (R2b) --- */
.mf-controls{position:absolute;left:0;right:0;bottom:15px;z-index:6;display:flex;align-items:center;gap:2px;padding:0 6px}
.mf-ctl{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:none;color:#f7f6f2;cursor:pointer;padding:0}
.mf-ctl svg{width:23px;height:23px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.5))}
.mf-time{font-size:12px;color:rgba(247,246,242,.88);font-variant-numeric:tabular-nums;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.mf-ctl-sp{flex:1}
.mf-progress{position:absolute;left:0;right:0;bottom:0;height:15px;z-index:7;cursor:pointer;background:linear-gradient(to top,rgba(247,246,242,.16) 0,rgba(247,246,242,.16) 3px,rgba(0,0,0,0) 3px)}
.mf-progress i{position:absolute;bottom:0;left:0;height:3px;background:#c9a24e;width:0%}
/* --- end / empty states --- */
.mf-end{height:100%;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;background:#0b0c0e}
.mf-end-in{text-align:center;color:#f7f6f2;padding:20px}
.mf-end-logo{width:54px;height:54px;border-radius:14px}
.mf-end-in p{font-size:15px;color:rgba(247,246,242,.8)}
.mf-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#f7f6f2;padding:20px;text-align:center}
/* --- sheets: dark cards on the dark stage --- */
.mf-sheet{position:fixed;inset:0;z-index:96;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.mf-sheet[hidden]{display:none}
.mf-sheet-card{background:#17191d;color:#f7f6f2;width:min(560px,100%);max-height:78vh;max-height:78dvh;overflow-y:auto;border-radius:18px 18px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
.mf-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.mf-sheet-head h3{margin:0;font-size:16.5px;display:flex;align-items:center;gap:7px}
.mf-sheet-head h3 svg{width:20px;height:20px}
.mf-sheet-close{background:none;border:none;color:inherit;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:-8px -8px -8px 0;padding:0}
.mf-sheet-rows{display:flex;flex-direction:column}
.mf-row{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:8px 4px;background:none;border:none;border-bottom:1px solid rgba(247,246,242,.08);color:#f7f6f2;font:inherit;font-size:15px;cursor:pointer;text-align:left}
.mf-row:last-child{border-bottom:none}
.mf-row>svg{width:22px;height:22px;flex:none}
.mf-row-danger{color:#e08a8a}
.mf-cc-rows .mf-row>svg{visibility:hidden;color:#c9a24e}
.mf-cc-rows .mf-row.on{color:#e9c979}
.mf-cc-rows .mf-row.on>svg{visibility:visible}
.mf-sheet-sec{font-size:13px;color:rgba(247,246,242,.6);margin:13px 0 2px;font-weight:600}
.mf-det-title{font-size:16.5px;font-weight:700;line-height:1.4}
.mf-det-log{font-size:14px;color:rgba(247,246,242,.88);line-height:1.55;margin-top:5px}
.mf-det-meta{font-size:12.5px;color:rgba(247,246,242,.6);margin-top:8px;display:flex;align-items:center;gap:5px}
.mf-det-meta svg{width:15px;height:15px}
.mf-sheet .ctr-toggle{color:#e9c979;border-color:rgba(233,201,121,.5)}
.mf-sheet .btn{border-color:rgba(247,246,242,.25);color:#f7f6f2;background:rgba(247,246,242,.06)}
.mf-sheet .btn.primary{background:#c9a24e;color:#241a05;border-color:transparent}
.mf-sheet .vote-box{background:rgba(247,246,242,.05);color:#f7f6f2;border:1px solid rgba(247,246,242,.12);border-radius:12px;padding:12px;margin-top:10px}
.mf-report-reasons{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}
.mf-cmt .cmt-sheet-card{background:#17191d;color:#f7f6f2}
.mf-cmt .comment-form input{background:#0f1113;color:#f7f6f2;border:1px solid rgba(247,246,242,.18)}
.mf-cmt .comment-item b{color:#f7f6f2}
/* --- first-entry brand guide (R2a) --- */
.mf-intro{position:absolute;inset:0;z-index:20;background:rgba(7,8,9,.92);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.mf-intro-card{width:min(430px,100%);text-align:center;color:#f7f6f2;margin:auto}
.mf-intro-logo{width:64px;height:64px;border-radius:16px}
.mf-intro-word{font-size:21px;font-weight:800;margin-top:9px}
.mf-intro-word span{color:#e9c979}
.mf-intro-slogan{font-size:24px;line-height:1.32;margin:14px 0 6px}
.mf-intro-sub{color:rgba(247,246,242,.75);font-size:14px;margin:0 0 16px}
.mf-intro-official{display:flex;gap:11px;text-align:left;background:rgba(247,246,242,.06);border:1px solid rgba(247,246,242,.12);border-radius:14px;padding:12px;align-items:flex-start}
.mf-intro-ava{width:40px;height:40px;border-radius:10px;flex:none}
.mf-intro-off-main{flex:1;min-width:0}
.mf-intro-off-name{font-weight:700;font-size:15px}
.mf-intro-off-sub{font-size:12.5px;color:rgba(247,246,242,.72);margin-top:2px}
.mf-intro-pool{font-size:12.5px;color:rgba(247,246,242,.72);margin-top:6px;line-height:1.45}
.mf-intro-follow{margin-top:9px}
.mf-intro-follow .follow-btn.on{color:#e9c979;border-color:#e9c979}
.mf-intro-qr{width:64px;height:64px;border-radius:8px;flex:none}
.mf-intro-btns{display:flex;gap:9px;margin-top:16px}
.mf-intro-btns .btn{flex:1;display:flex;justify-content:center;align-items:center}
.mf-intro-skip{background:none;border:none;color:rgba(247,246,242,.65);font:inherit;font-size:13.5px;margin-top:8px;padding:10px 16px;min-height:44px;cursor:pointer}
@media (prefers-reduced-motion: reduce){
  .mf-view{scroll-snap-type:y proximity}
  .mf-spin{animation-duration:2.4s}
}
