/* xlji · 设计令牌对齐 xlji2/index.html。dark-first。 */
:root{
  --bg:#080c0e; --surface:#0e1417; --surface-2:#151c20;
  --ink:#f3f5f5; --muted:#8f989c; --faint:#596267;
  --line:rgba(255,255,255,.17); --line-strong:rgba(255,255,255,.28);
  --paper:#f1f2f1; --accent:#e8b62c; --radius:9px;
  --rail:84px; --rail-open:286px; --tabbar:64px;
  --ease:cubic-bezier(.22,.8,.24,1);
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg)}
body.xlji{margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---- 外壳 rail（可展开，对齐 xlji2）---- */
.rail{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--rail);overflow:hidden;
  display:flex;flex-direction:column;border-right:1px solid var(--line);
  background:rgba(7,11,13,.92);backdrop-filter:blur(18px);
  transition:width .36s var(--ease),box-shadow .36s var(--ease),transform .32s var(--ease)}
.rail:hover,.rail.is-open{width:var(--rail-open);box-shadow:20px 0 50px rgba(0,0,0,.3)}
.rail-head{height:150px;flex:0 0 150px;position:relative}
.brand{position:absolute;top:23px;left:20px;width:44px;height:44px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.3);border-radius:11px;overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025));
  font-weight:850;font-size:24px;letter-spacing:-.06em;color:#fff}
.brand img{width:100%;height:100%;object-fit:cover}
.brand-full{position:absolute;top:24px;left:78px;right:14px;opacity:0;transform:translateX(-8px);
  transition:.25s var(--ease);white-space:nowrap;overflow:hidden}
.brand-name{display:block;color:#fff;font-size:19px;line-height:1.15;letter-spacing:.16em;font-weight:800;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-tagline{display:block;margin-top:6px;color:#8e989d;font-size:11px;line-height:1.35;text-overflow:ellipsis;overflow:hidden}
.rail:hover .brand-full,.rail.is-open .brand-full{opacity:1;transform:none}
.rail-toggle{position:absolute;left:22px;top:86px;width:38px;height:38px;border:0;background:transparent;padding:8px;cursor:pointer}
.rail-toggle::before,.rail-toggle::after,.rail-toggle span{content:"";display:block;width:20px;height:1.5px;background:#aeb4b6;margin:5px 0;transition:.25s var(--ease)}
.rail:hover .rail-toggle::before,.rail.is-open .rail-toggle::before{transform:translateY(6.5px) rotate(45deg)}
.rail:hover .rail-toggle span,.rail.is-open .rail-toggle span{opacity:0}
.rail:hover .rail-toggle::after,.rail.is-open .rail-toggle::after{transform:translateY(-6.5px) rotate(-45deg)}
.nav{display:flex;flex-direction:column;gap:8px;padding-top:34px}
.nav-link{position:relative;min-height:52px;width:calc(100% - 18px);margin-left:9px;border-radius:8px;
  color:#aeb6ba;display:flex;align-items:center;transition:color .2s,background .2s}
.nav-link:hover{background:rgba(255,255,255,.055);color:#fff}
.nav-link.active{color:#fff;background:rgba(255,255,255,.075)}
.nav-link.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.nav-icon{width:65px;flex:0 0 65px;display:grid;place-items:center}
.nav-icon .icon{width:24px;height:24px}
.nav-label{opacity:0;white-space:nowrap;transform:translateX(-7px);transition:.25s var(--ease);font-size:14px}
.rail:hover .nav-label,.rail.is-open .nav-label{opacity:1;transform:none}
.rail-foot{margin-top:auto;padding:16px 9px 26px;border-top:1px solid var(--line)}
.legal{margin:12px 16px 0 66px;width:170px;color:#687176;font-size:10.5px;line-height:1.7;opacity:0;transform:translateX(-8px);transition:.25s var(--ease)}
.legal a{color:#7c858a}.legal a:hover{color:#aeb6ba}
.rail:hover .legal,.rail.is-open .legal{opacity:1;transform:none}
.rail-backdrop{display:none}

.shell{margin-left:var(--rail);min-height:100vh;transition:margin-left .36s var(--ease)}

/* ---- 顶栏 ---- */
.topbar{display:flex;align-items:flex-start;gap:30px;padding:34px 42px 12px 31px}
.mobile-header{display:none}
.creators{display:flex;gap:13px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;padding-bottom:6px}
.creators::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
.creator{flex:0 0 74px;text-align:center;color:#aeb5b8}
.creator-face{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;overflow:hidden;
  border:1px solid rgba(255,255,255,.25);color:#fff;font-weight:700;font-size:22px;
  transition:transform .25s var(--ease),border-color .25s}
.creator-face img{width:100%;height:100%;object-fit:cover}
.creator:hover .creator-face{transform:translateY(-3px);border-color:rgba(255,255,255,.65)}
.creator-name{display:block;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.utility{display:flex;gap:14px;flex:0 0 auto}
.icon-btn{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:#f6f7f7;transition:background .2s,transform .2s}
.icon-btn:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.icon-btn .icon{width:24px;height:24px}
.account-chip{padding:0;overflow:hidden}
.account-chip .u-avatar,.account-chip .text-avatar{width:34px!important;height:34px!important;border:0;font-size:14px!important}
.account-chip:hover{transform:translateY(-1px)}

/* 非首页:顶栏收成右上角浮动的两个图标,内容顶到最上 */
.topbar-slim{position:absolute;top:14px;right:24px;left:auto;width:auto;min-height:0;padding:0;z-index:6}
.topbar-slim .topbar-spacer,.topbar-slim .mobile-header{display:none}
body.xlji-slim .app-main{padding-top:18px}
.app-main{padding:0 42px 90px 31px}
.content{max-width:none}
.page-head{margin:0 0 16px}
.page-head h1{font-size:21px;margin:0;letter-spacing:-.02em}

/* ---- 首页 hero（后台"首页"tab 开关控制，默认不显示）---- */
.hero{max-width:640px;margin:0 auto 32px;padding:48px 20px 12px;text-align:center}
.hero-title{margin:0 0 8px;font-size:30px;font-weight:700;letter-spacing:-.02em;color:#fff}
.hero-tagline{margin:0 0 22px;color:var(--muted);font-size:14.5px}
.hero-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 20px;margin:0 auto;
  max-width:520px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--muted)}
.hero-search svg{width:19px;height:19px;flex:0 0 auto}
.hero-search input{flex:1;background:none;border:0;color:#fff;font-size:15px;outline:none;min-width:0}
.hero-search:focus-within{border-color:rgba(255,255,255,.5)}

/* ---- chips ---- */
.category-row{position:relative;display:flex;align-items:center;gap:10px;margin-bottom:24px}
.chips{display:flex;gap:11px;overflow-x:auto;scrollbar-width:none;flex:1;scroll-snap-type:x proximity}
.chip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  height:38px;min-width:96px;padding:0 20px;border:1px solid var(--line-strong);border-radius:999px;
  font-size:13.5px;line-height:1;color:#a8b0b4;white-space:nowrap;scroll-snap-align:start;transition:.2s;cursor:pointer;background:transparent}
.chip:hover{color:#fff;border-color:rgba(255,255,255,.6)}
.chip.active{background:var(--paper);color:#111517;border-color:var(--paper);font-weight:650}
.chip-c{opacity:.55;font-weight:400;margin-left:2px}

/* ---- 创作者页 ---- */
.creator-page .c-profile{display:grid;grid-template-columns:176px minmax(0,1fr);gap:26px;align-items:start;
  max-width:900px;margin:4px 0 28px}
.c-avatar{width:176px;height:176px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  border:1px solid var(--line-strong);color:#fff;font-weight:700;font-size:56px}
.c-avatar img{width:100%;height:100%;object-fit:cover}
.c-id-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.c-identity h1{margin:0;font-size:28px;line-height:1.12;font-weight:570;letter-spacing:-.035em}
.c-follow{height:36px;min-width:104px;padding:0 22px;border:0;border-radius:999px;background:var(--paper);color:#111517;font-weight:620;cursor:pointer}
.c-follow.active{background:#232a2e;color:#fff;border:1px solid var(--line-strong)}
.c-handle{margin:5px 0 2px;color:#9aa2a6}
.c-role{margin:0;color:#adb4b7}
.c-bio{margin:11px 0;max-width:52ch;line-height:1.45;color:#e0e3e3;white-space:pre-line}
.c-stats{display:flex;margin-top:16px}
.c-stat{min-width:78px;padding-right:20px;margin-right:20px;border-right:1px solid var(--line)}
.c-stat:last-child{border:0;margin:0;padding:0}
.c-stat strong{display:block;font-size:16px;font-weight:560}
.c-stat span{color:#9ba3a7;font-size:12px}
@media(max-width:820px){
  .creator-page .c-profile{grid-template-columns:1fr;text-align:center;justify-items:center}
  .c-avatar{width:120px;height:120px;font-size:40px}
  .c-id-row,.c-stats{justify-content:center}
  .c-bio{margin-left:auto;margin-right:auto}
}
.chip-next{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;color:var(--muted)}
.chip-next .icon{width:22px;height:22px}

/* ---- 网格 / 卡片（对齐 xlji2 .card > .poster + .card-info）---- */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px;row-gap:22px}
/* Popular 瀑布流:混合长/短/图,按原始比例排列 */
.grid[data-layout=masonry]{display:block;columns:4;column-gap:16px}
.grid[data-layout=masonry] .card{display:inline-block;width:100%;margin:0 0 22px;break-inside:avoid}
.card{min-width:0}
/* content-visibility 只给非瀑布流网格用 —— 多列容器里它会漏渲染图片 */
.grid:not([data-layout=masonry]) .card{content-visibility:auto;contain-intrinsic-size:auto 340px}
.poster{position:relative;display:block;width:100%;border-radius:var(--radius);overflow:hidden;
  border:1px solid rgba(255,255,255,.18);box-shadow:0 9px 30px rgba(0,0,0,.13);isolation:isolate}
.poster img,.poster .poster-vid{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s var(--ease)}
.poster img.is-in,.poster .poster-vid.is-in{opacity:1}
.poster .poster-vid{position:absolute;inset:0;pointer-events:none}
.card.is-previewing .poster-vid{opacity:1}
.card.is-previewing .play,.card.is-previewing .poster::before{opacity:0!important;animation:none}
/* 无缩略图时:载入前用主色 + 轻微脉冲,别让用户以为卡死 */
.poster:has(.poster-vid:not(.is-in))::before,
.poster.sk-hint::before{content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(115deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.06) 50%,rgba(255,255,255,0) 60%);
  background-size:220% 100%;animation:skm 1.4s var(--ease) infinite}
.poster::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.09);opacity:0;transition:.25s}
.card:hover .poster::after{opacity:1}
.play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-40%) scale(.92);width:48px;height:48px;border-radius:50%;
  background:rgba(7,10,11,.72);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.35);opacity:0;transition:.25s var(--ease)}
.play::before{content:"";position:absolute;inset:50% auto auto 54%;translate:-50% -50%;
  border-left:13px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent}
.card:hover .play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.duration{position:absolute;right:6px;bottom:6px;padding:3px 6px;border-radius:4px;background:rgba(0,0,0,.83);font-size:12px}
.feat-tag{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:4px;background:var(--accent);color:#12181b;font-size:11px;font-weight:700}
.card-info{display:grid;grid-template-columns:43px minmax(0,1fr);gap:10px;padding-top:9px}
.avatar{width:43px;height:43px;border-radius:50%;border:1px solid rgba(255,255,255,.17);display:grid;place-items:center;
  color:#fff;font-weight:700;font-size:16px;flex:0 0 auto;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.byline{color:#929a9e;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title{margin:3px 0 0;font-size:16px;font-weight:500;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title a{color:#f5f6f6}
.meta{margin-top:4px;display:flex;flex-wrap:nowrap;gap:8px;color:#8c9599;font-size:12px;white-space:nowrap;overflow:hidden}
.meta span+span::before{content:"•";color:#586166;margin-right:8px}

.load-status,.feed-more{height:88px;display:grid;place-items:center;color:#747e83;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.loader,.spinner{display:inline-flex;align-items:center;gap:10px}
.loader::before,.spinner{content:"";width:14px;height:14px;border:1.5px solid #4c565b;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.spinner{border:2px solid #4c565b;border-top-color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}
.xlji-empty{color:var(--muted);padding:40px 0;text-align:center}
.xlji-empty code{background:var(--surface-2);padding:2px 6px;border-radius:4px}

/* 骨架 */
.sk{display:block;background:linear-gradient(100deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%);
  background-size:200% 100%;animation:skm 1.3s var(--ease) infinite;border-radius:6px}
.sk-line{height:12px;margin-top:9px}.sk-line.sk-short{width:55%}
@keyframes skm{to{background-position:-200% 0}}

/* ---- 合集网格 ---- */
.coll-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.coll-card{position:relative;display:block;aspect-ratio:16/10;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);isolation:isolate}
.coll-card img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s var(--ease)}
.coll-card img.is-in{opacity:.72}
.coll-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.6))}
.coll-meta{position:absolute;left:12px;right:12px;bottom:11px;z-index:1}
.coll-meta b{display:block;font-size:15px;text-transform:capitalize;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.coll-meta span{color:#c3c9cb;font-size:12px}

/* ---- 播放器(长视频竖滑每个slot都用这套控制条) ---- */
.player{position:relative;background:#000;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9;
  outline:none;user-select:none}
.player:fullscreen{border-radius:0;aspect-ratio:auto;width:100%;height:100%}
.player video{width:100%;height:100%;object-fit:contain;background:#000;display:block}

.pl-big{position:absolute;inset:50% auto auto 50%;translate:-50% -50%;width:64px;height:64px;border-radius:50%;
  background:rgba(8,10,11,.55);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.3);
  display:grid;place-items:center;transition:opacity .2s,scale .2s}
.pl-big svg{width:28px;height:28px;margin-left:3px}
.player.is-playing .pl-big,.short.is-playing .pl-big{opacity:0;scale:.9;pointer-events:none}
/* 省流量模式下 needs-tap 自己那个"点击播放"提示(::after)已经够用，.pl-big 会跟它叠在一起 */
.short.needs-tap .pl-big{display:none}
.pl-resume{position:absolute;left:14px;bottom:64px;padding:8px 12px;border-radius:8px;font-size:13px;
  background:rgba(8,10,11,.8);backdrop-filter:blur(6px);border:1px solid var(--line);cursor:pointer;z-index:3}
.pl-resume button{margin-left:6px;color:var(--muted);text-decoration:underline}

.pl-bar{position:absolute;left:0;right:0;bottom:0;padding:6px 12px 10px;
  background:linear-gradient(transparent,rgba(0,0,0,.72));opacity:0;transition:opacity .2s;z-index:2}
.player.is-active .pl-bar,.player:not(.is-playing) .pl-bar{opacity:1}
.pl-scrub{position:relative;height:16px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.pl-scrub::before{content:"";position:absolute;left:0;right:0;height:3px;background:rgba(255,255,255,.25);border-radius:3px}
.pl-buf{position:absolute;left:0;height:3px;background:rgba(255,255,255,.4);border-radius:3px;width:0}
.pl-prog{position:absolute;left:0;height:3px;background:var(--accent);border-radius:3px;width:0}
.pl-knob{position:absolute;width:11px;height:11px;border-radius:50%;background:var(--accent);left:0;translate:-50% 0;
  scale:0;transition:scale .15s}
.pl-scrub:hover .pl-knob,.player.is-scrubbing .pl-knob{scale:1}
.pl-scrub:hover::before,.player.is-scrubbing .pl-scrub::before{height:5px}
.pl-tip{position:absolute;bottom:16px;translate:-50% 0;padding:2px 6px;border-radius:4px;background:#000;
  font-size:11px;font-variant-numeric:tabular-nums;pointer-events:none}
.pl-row{display:flex;align-items:center;gap:6px;margin-top:2px}
.pl-b{width:34px;height:34px;border-radius:7px;display:grid;place-items:center;color:#fff}
.pl-b:hover{background:rgba(255,255,255,.14)}
.pl-b svg{width:19px;height:19px}
.pl-q{width:auto;padding:0 10px;font-size:12px;border:1px solid rgba(255,255,255,.25)}
.pl-time{font-size:12px;color:#dfe3e4;font-variant-numeric:tabular-nums;margin-left:4px}
.pl-spacer{flex:1}
.pl-vol{width:78px;accent-color:#fff}
.pl-menu-wrap{position:relative}
.pl-menu{position:absolute;right:0;bottom:40px;background:#12181b;border:1px solid var(--line);border-radius:8px;
  padding:5px;min-width:110px;display:grid;gap:2px}
.pl-menu button{text-align:left;padding:7px 10px;border-radius:5px;font-size:13px;color:var(--muted)}
.pl-menu button:hover{background:rgba(255,255,255,.08);color:#fff}
.pl-menu button.on{color:var(--accent)}
@media(max-width:700px){.pl-vol{display:none}}

.wc-avatar,.text-avatar{display:grid;place-items:center;border-radius:50%;font-weight:700;color:#fff;flex:0 0 auto}
.wc-avatar{width:40px;height:40px;font-size:16px;overflow:hidden}
.wc-avatar img{width:100%;height:100%;object-fit:cover}
.wc-name{font-weight:600}

/* ---- 内容页动作条(居中,内容下方)---- */
.content-actions{display:flex;justify-content:center;align-items:center;gap:14px;
  margin:26px auto 4px;padding-top:20px;border-top:1px solid var(--line)}
.ca{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border:1px solid var(--line-strong);
  border-radius:999px;color:#e7eaea;font-size:13px;transition:.18s}
.ca:hover{border-color:rgba(255,255,255,.55)}
.ca .icon{width:19px;height:19px}
.ca.on{background:var(--accent);color:#12181b;border-color:var(--accent)}
.ca.on .icon{fill:currentColor}
.ca-comment{color:var(--muted)}

/* ---- 登录态 admin bar：把固定元素顶下来 ---- */
body.admin-bar .rail{top:32px}
body.admin-bar .shorts-stage{top:32px}
body.admin-bar .gifs-stage{top:32px}
body.admin-bar .longs-stage{top:32px}
@media screen and (max-width:782px){
  body.admin-bar .rail{top:46px}
  body.admin-bar .shorts-stage{top:46px}
  body.admin-bar .gifs-stage{top:46px}
  body.admin-bar .longs-stage{top:46px}
}

/* ---- shorts（PC 三栏：中 播放器 / 右 发现栏；手机端右栏隐藏）---- */
.shorts-stage{position:fixed;inset:0 0 0 var(--rail);z-index:20;background:#000;display:flex}
.shorts{flex:1;min-width:0;height:100%;scroll-snap-type:y mandatory;overflow-y:scroll;
  background:#000;scrollbar-width:none;overscroll-behavior:contain}
.shorts::-webkit-scrollbar{display:none}
.short{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;
  display:grid;place-items:center;overflow:hidden;background:#000}
/* 播放器画框：PC 上把视频约束成 9:16，rail/信息贴着视频边；手机端铺满 */
.short-frame{position:relative;height:100%;aspect-ratio:9/16;max-width:100%;margin:auto}

.shorts-side{flex:0 0 clamp(320px,26vw,412px);height:100%;overflow-y:auto;overscroll-behavior:contain;
  background:var(--bg);border-left:1px solid var(--line);padding:16px 16px 40px}
.ss-search{display:flex;align-items:center;gap:8px;height:42px;padding:0 12px;border:1px solid var(--line-strong);
  border-radius:10px;background:var(--surface);color:var(--muted)}
.ss-search .icon{width:17px;height:17px;flex:0 0 auto}
.ss-search input{flex:1;background:none;border:0;color:#fff;font-size:14px;outline:none;min-width:0}
.ss-sec{margin-top:20px}
.ss-sec h3{margin:0 0 12px;font-size:14px;font-weight:600;color:#eef0f0;display:flex;align-items:center;gap:7px}
.ss-sec h3 .icon{width:15px;height:15px}
.ss-sec h3 span{color:var(--muted);font-weight:400}
.ss-chips{display:flex;flex-wrap:wrap;gap:8px}
.ss-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--line-strong);
  border-radius:9px;font-size:12.5px;color:#d7dbdb;background:var(--surface);white-space:nowrap}
.ss-chip .icon{width:12px;height:12px;color:var(--muted)}
.ss-chip:hover{border-color:rgba(255,255,255,.45);color:#fff}
.ss-muted{color:var(--faint);font-size:13px}
.ss-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ss-card{display:block}
.ss-thumb{position:relative;display:block;aspect-ratio:3/4;border-radius:9px;overflow:hidden;border:1px solid var(--line);background:#141a1d}
.ss-thumb img,.ss-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.ss-stat{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:6px;
  padding:14px 7px 6px;font-size:11px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.ss-stat b{display:inline-flex;align-items:center;gap:3px;font-weight:600}
.ss-stat svg{width:12px;height:12px}
.ss-title{display:block;margin-top:6px;font-size:12.5px;line-height:1.35;color:#d9dcdc;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ss-card:hover .ss-title{color:#fff}
@media(max-width:1040px){ .shorts-side{display:none} }
.short video,.short-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* 播放页统一纯黑底：不用每条的主色，避免和列表页一个观感 */
.short-poster{background:#000!important}
img.short-poster{filter:blur(22px) brightness(.5);scale:1.1}
.short video{z-index:1;opacity:0;transition:opacity .35s var(--ease)}
.short.has-frame video{opacity:1}
/* 缓冲指示:未拿到首帧且已进入视口时转圈 */
.short.is-loading::after{content:"";position:absolute;z-index:3;width:34px;height:34px;
  border:2.5px solid rgba(255,255,255,.28);border-top-color:#fff;border-radius:50%;
  animation:spin .8s linear infinite}
.short.needs-tap::after{content:"";position:absolute;z-index:3;width:74px;height:74px;border-radius:50%;
  background:rgba(7,10,11,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23fff'%3E%3Cpath d='M9 6.5v17l14-8.5z'/%3E%3C/svg%3E") center/34px no-repeat;
  backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35)}
.short.needs-tap.is-loading::after{background:rgba(7,10,11,.6)}
/* bottom:68px 不是随便定的——桌面端画框中间那个"下一条"按钮(.feed-next)固定在 bottom:16~60px，
   标题是 bottom 锚定、行数越多只会往上长(不会往下)，锚点定在按钮上边缘之上就永远不会压到它，
   不用管标题到底会不会换行到第3行(2026-09-29 真实反馈：长标题换行后压住了按钮)。 */
.short-info{position:absolute;left:16px;right:76px;bottom:68px;z-index:2}
.short-info h2{font-size:16px;margin:0;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.short-rail{position:absolute;right:10px;bottom:30px;display:flex;flex-direction:column;gap:18px;z-index:2}
.sr{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;color:#fff}
.sr svg{width:24px;height:24px}
.sr.on{color:var(--accent)}.sr.on svg{fill:currentColor}
.short-muted{position:absolute;top:16px;left:50%;translate:-50% 0;z-index:3;font-size:12px;
  padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.5);opacity:0;transition:opacity .3s}
.shorts.is-muted .short-muted{opacity:1}
.shorts.is-muted.hint-seen .short-muted{opacity:0}
.short-heart{position:absolute;inset:50% auto auto 50%;translate:-50% -50%;width:90px;height:90px;z-index:4;
  background:currentColor;color:var(--accent);pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21 3 12a5 5 0 0 1 7-7l2 2 2-2a5 5 0 0 1 7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21 3 12a5 5 0 0 1 7-7l2 2 2-2a5 5 0 0 1 7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:heart .7s var(--ease) forwards}
@keyframes heart{0%{scale:0;opacity:0}30%{scale:1.1;opacity:1}100%{scale:1.4;opacity:0}}

/* ---- item-tags（短/长视频详情条左上角的最多3个标签，短/长视频共用一份样式）---- */
.item-tags{position:absolute;top:18px;left:16px;z-index:2;display:flex;flex-direction:column;gap:8px;max-width:60%}
.item-tags a{display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;font-size:13px;
  font-weight:600;color:#fff;background:rgba(20,24,26,.55);border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(6px);text-shadow:0 1px 4px rgba(0,0,0,.5);white-space:nowrap}
.item-tags a::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto}
.item-tags a:hover{background:rgba(20,24,26,.8);border-color:rgba(255,255,255,.4)}

/* ---- feed-next（桌面端专用的"下一条"按钮：短视频/GIF 竖滑流叠在画框上，
   习惯点按钮而不是滚轮的用户可以用它翻下一条，同时也暗示"这里还能往下滑"）
   渲染在每条内容自己的画框内(short-frame/gif-frame)而不是整个 stage 上——
   短视频页 PC 端右边还有 discover 侧栏，挂在 stage 上 left:50% 会算上侧栏宽度导致偏移，
   挂在画框内则天然只相对视频本身居中。长视频画框叠满了控制条/rail，按钮压在视频上
   反而挡内容(2026-09-29 真实反馈)——挪到 .long-meta-row 里、跟tag同一行、贴右边，
   见下面 .feed-next-long 覆盖。 */
.feed-next{position:absolute;left:50%;bottom:16px;translate:-50% 0;z-index:5;width:44px;height:44px;
  border-radius:50%;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
  color:#fff;display:grid;place-items:center;backdrop-filter:blur(6px);transition:.2s}
.feed-next svg{width:22px;height:22px}
.feed-next:hover{background:rgba(255,255,255,.26)}
.feed-next-long{position:static;left:auto;bottom:auto;translate:none;width:34px;height:34px;
  flex:0 0 auto;margin-left:auto}
.feed-next-long svg{width:17px;height:17px}
@media(max-width:1040px){.feed-next{display:none}}

/* ---- gifs（GIF 沉浸竖滑：黑底整屏，没有 PC discover 侧栏，纯流）---- */
.gifs-stage{position:fixed;inset:0 0 0 var(--rail);z-index:20;background:#000;display:flex}
.gifs{flex:1;min-width:0;height:100%;scroll-snap-type:y mandatory;overflow-y:scroll;
  background:#000;scrollbar-width:none;overscroll-behavior:contain}
.gifs::-webkit-scrollbar{display:none}
.gif-sec{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;
  display:grid;place-items:center;overflow:hidden;background:#000}
.gif-frame{position:relative;width:100%;height:100%;display:grid;place-items:center}
/* 动图本身不裁切——不同比例的图直接按原比例居中展示，避免 cover 裁掉内容 */
.gif-img{max-width:100%;max-height:100%;object-fit:contain}
.gif-info{position:absolute;left:16px;right:76px;bottom:68px;z-index:2;text-align:center}
.gif-info h2{font-size:14px;margin:0;font-weight:600;text-shadow:0 1px 8px rgba(0,0,0,.7);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gif-tags{margin-top:7px;display:flex;flex-wrap:wrap;justify-content:center;gap:9px;font-size:12.5px}
.gif-tags a{color:var(--accent);text-shadow:0 1px 6px rgba(0,0,0,.6)}
.gif-tags a:hover{text-decoration:underline}
.gif-rail{position:absolute;right:10px;bottom:30px;display:flex;flex-direction:column;gap:18px;z-index:2}

/* ---- longs（长视频竖滑：保留完整播放器控制条，画面按16:9嵌在竖流里，不铺满裁切）----
   之前标题/标签叠在画框里、按固定bottom像素定位——画框按16:9铺满手机屏宽时实际只有
   ~200px高，标题/标签/rail 三块挤在一起必然重叠(2026-09-29 真机截图就是这个问题)。
   现在标题+标签挪到画框下方正常排版(黑边本来就空着，别浪费)，只留右侧点赞/分享/收藏/
   静音这个纯图标rail继续叠在画框上——没有文字，矮画框也不会重叠。 */
.longs-stage{position:fixed;inset:0 0 0 var(--rail);z-index:20;background:#000;display:flex}
.longs{flex:1;min-width:0;height:100%;scroll-snap-type:y mandatory;overflow-y:scroll;
  background:#000;scrollbar-width:none;overscroll-behavior:contain}
.longs::-webkit-scrollbar{display:none}
.long-sec{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;
  display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:#000;padding:14px}
/* 长视频是横屏内容，不硬拉伸/裁切成竖屏——按16:9嵌在竖流当中，宽/高哪个先顶到上限就按哪个来 */
.long-sec .player{width:100%;max-width:100%;aspect-ratio:16/9;max-height:60vh;flex:0 0 auto}
.long-meta{width:100%;max-width:min(100%,calc(60vh * 16 / 9));margin-top:14px;color:#f0f2f2}
.long-meta h2{margin:0;font-size:16px;font-weight:600;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.long-meta h2 a{color:inherit}
.long-meta-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.long-meta .item-tags{position:static;flex-direction:row;flex-wrap:wrap;max-width:100%;gap:8px;margin-top:0}
.long-meta .item-tags a{padding:6px 13px;font-size:12.5px}
.long-rail{position:absolute;right:8px;bottom:78px;display:flex;flex-direction:column;gap:14px;z-index:2}
.long-rail .sr{width:40px;height:40px}
.long-rail .sr svg{width:20px;height:20px}

/* ---- gallery ---- */
.gallery{max-width:none}
.crumbs{display:flex;gap:0;color:var(--muted);font-size:13px;margin-bottom:14px;flex-wrap:wrap}
.crumbs a,.crumbs span{color:var(--muted)}
.crumbs a:hover{color:#fff}
.crumbs a+a::before,.crumbs a+span::before{content:"/";margin:0 9px;color:var(--faint)}
.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.gallery-head h1{font-size:27px;margin:0 0 3px;font-weight:560;letter-spacing:-.03em;line-height:1.15}
.gallery-meta{color:#f0f2f2;font-size:14px}
.gallery-lead{margin:12px 0 0;color:#bec4c6;font-size:14px;line-height:1.4;max-width:80ch}
.gallery .tags{display:flex;flex-wrap:wrap;gap:0 0;margin:12px 0 20px;font-size:12px}
.gallery .tags a{color:#929b9f}
.gallery .tags a:hover{color:#fff}
.gallery .tags a+a::before{content:"";display:inline-block;width:1px;height:12px;margin:0 14px -2px;background:rgba(255,255,255,.18)}
.gallery .tags .tags-author{color:var(--accent);font-weight:600}
.gallery .tags .tags-author:hover{color:#fff}
/* 瀑布流：竖图横图各按自己的比例排，不再统一裁成一个格子（避免横图上下大黑边） */
.gallery-grid{columns:3;column-gap:14px}
.photo{display:block;width:100%;margin:0 0 14px;break-inside:avoid;position:relative;
  border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#10171a;cursor:zoom-in;padding:0}
.photo img{display:block;width:100%;height:auto;transition:transform .5s var(--ease),filter .25s}
.photo:hover img{transform:scale(1.02);filter:brightness(1.06)}
@media(min-width:1600px){.gallery-grid{columns:4}}

/* ---- novel ---- */
.novel{max-width:760px;margin:0 auto}
.novel-head{display:flex;gap:22px;align-items:flex-start}
.novel-cover{flex:0 0 140px;width:140px;aspect-ratio:3/4;border-radius:9px;overflow:hidden;border:1px solid var(--line)}
.novel-cover img{display:block;width:100%;height:100%;object-fit:cover}
.novel-head-info{flex:1;min-width:0}
.novel-head-info h1{font-size:24px;margin:0 0 6px;font-weight:560;letter-spacing:-.03em;line-height:1.2}
.novel-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.novel-author{display:inline-flex;align-items:center;gap:10px;margin-top:12px}
.novel-lead{margin:12px 0 0;color:#bec4c6;font-size:14px;line-height:1.5;max-width:70ch}
.novel .tags{display:flex;flex-wrap:wrap;gap:0 0;margin:12px 0 0;font-size:12px}
.novel .tags a{color:#929b9f}
.novel .tags a:hover{color:#fff}
.novel .tags a+a::before{content:"";display:inline-block;width:1px;height:12px;margin:0 14px -2px;background:rgba(255,255,255,.18)}
.novel-body{margin-top:28px;color:#d6dadb;font-size:16px;line-height:1.9;max-width:70ch}
.novel-body p{margin:0 0 1.2em}
@media(max-width:640px){.novel-head{flex-direction:column}.novel-cover{width:120px}}

/* ---- lightbox（重设计：无环绕 + 末尾同标签推荐条）---- */
.lb{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:26px}
.lb-backdrop{position:absolute;inset:0;background:rgba(2,5,6,.93);backdrop-filter:blur(12px)}
.lb-figure{position:relative;z-index:1;margin:0;display:grid;place-items:center;
  max-width:min(1120px,calc(100vw - 90px));max-height:calc(100vh - 70px);transition:max-height .3s var(--ease)}
.lb-img{display:block;max-width:100%;max-height:calc(100vh - 70px);width:auto;height:auto;border-radius:9px;
  border:1px solid rgba(255,255,255,.22);box-shadow:0 30px 100px rgba(0,0,0,.58);transition:max-height .3s var(--ease)}
.lb-close,.lb-nav{position:fixed;z-index:3;border:1px solid rgba(255,255,255,.18);border-radius:50%;
  background:rgba(12,17,19,.82);backdrop-filter:blur(10px);display:grid;place-items:center}
.lb-close svg,.lb-nav svg{width:22px;height:22px}
.lb-close{right:22px;top:20px;width:44px;height:44px}
.lb-nav{top:50%;width:48px;height:48px;transform:translateY(-50%)}
.lb-prev{left:20px}.lb-next{right:20px}
.lb-count{position:fixed;z-index:3;left:50%;bottom:16px;transform:translateX(-50%);color:#b6bdc0;font-size:12px}

/* 末尾推荐条：最后一张时从底部升起,图片上移 */
.lb-end{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:16px 22px calc(18px + env(safe-area-inset-bottom));
  background:linear-gradient(transparent,rgba(6,9,10,.86) 22%,#06090a);
  transform:translateY(101%);transition:transform .34s var(--ease)}
.lb.at-end .lb-end{transform:none}
.lb.at-end .lb-figure,.lb.at-end .lb-img{max-height:calc(100vh - 300px)}
.lb.at-end .lb-count{bottom:auto;top:16px}
.lb-end-inner{max-width:1000px;margin:0 auto}
.lb-end-title{margin:0 0 12px;font-size:14px;color:#e7ebec;letter-spacing:.01em}
.lb-recos{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.lb-reco{position:relative;display:block;aspect-ratio:3/4;border-radius:8px;overflow:hidden;border:1px solid var(--line);isolation:isolate}
.lb-reco img{width:100%;height:100%;object-fit:cover;opacity:.62}
.lb-reco::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.72))}
.lb-reco-meta{position:absolute;left:8px;right:8px;bottom:7px;z-index:1}
.lb-reco-meta b{display:block;font-size:12px;line-height:1.2;max-height:2.4em;overflow:hidden;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.lb-reco-meta span{color:#c3c9cb;font-size:10px}
.lb-reco-empty{color:var(--muted);text-align:center;padding:20px}
.lb-end-close{margin-top:12px;padding:8px 18px;border:1px solid var(--line-strong);border-radius:999px;color:var(--muted);font-size:12px}
.lb-end-close:hover{color:#fff}
@media(max-width:940px){.lb-recos{grid-template-columns:repeat(3,1fr)}.lb.at-end .lb-figure,.lb.at-end .lb-img{max-height:calc(100vh - 340px)}}

.related{margin-top:34px}
.related h2{font-size:18px;margin:0 0 12px;font-weight:500}

/* ---- 响应式 ---- */
.mobile-bar{display:none}
@media(min-width:1550px){.grid,.coll-grid{column-gap:18px;row-gap:24px}}
@media(max-width:1250px){.grid,.coll-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid[data-layout=masonry]{columns:3}.topbar{gap:16px}}
@media(max-width:940px){.grid,.coll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid[data-layout=masonry]{columns:2}.gallery-grid{columns:2}.app-main,.topbar{padding-right:24px}}
@media(max-width:700px){
  :root{--rail:0px}
  .rail{width:min(84vw,310px);transform:translateX(-104%)}
  .rail:hover,.rail.is-open{width:min(84vw,310px)}
  .rail.is-open{transform:translateX(0);box-shadow:24px 0 60px rgba(0,0,0,.58)}
  .rail{overflow-y:auto;overscroll-behavior:contain}
  .rail .brand-full,.rail .nav-label,.rail .legal{opacity:1;transform:none}
  /* 底栏(tabbar)盖在抽屉上层，foot 留出它的高度 */
  .rail-foot{padding:18px 9px calc(var(--tabbar) + env(safe-area-inset-bottom) + 24px)}
  .rail-backdrop{display:block;position:fixed;z-index:28;inset:0;background:rgba(0,0,0,.58);
    opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s,visibility .3s}
  .rail.is-open ~ .rail-backdrop{opacity:1;visibility:visible;pointer-events:auto}
  .shell{margin-left:0}
  .topbar{display:block;position:relative;min-height:132px;padding:20px 14px 8px}
  .topbar-slim{position:relative;top:auto;right:auto;left:auto;width:auto;min-height:54px;padding:6px 14px 0}
  .topbar-slim .mobile-header{display:flex}
  .topbar-slim .utility{top:8px}
  body.xlji-slim .app-main{padding-top:0}
  .mobile-header{position:absolute;top:14px;left:12px;right:12px;height:44px;display:flex;align-items:center;justify-content:center}
  .m-menu{position:absolute;left:0;top:0;width:44px;height:44px;display:grid;place-items:center}
  .m-menu-lines{position:relative;width:20px;height:2px;border-radius:2px;background:#f4f6f6}
  .m-menu-lines::before,.m-menu-lines::after{content:"";position:absolute;left:0;width:20px;height:2px;border-radius:2px;background:inherit}
  .m-menu-lines::before{top:-6px}.m-menu-lines::after{top:6px}
  .m-brand{color:#fff;font-size:16px;letter-spacing:.28em;font-weight:800}
  .creators{padding:52px 0 6px;gap:11px}
  .creator{flex-basis:61px}.creator-face{width:58px;height:58px;font-size:18px}
  .creator-name{font-size:11px;margin-top:6px}
  .utility{position:absolute;top:14px;right:8px;gap:0}
  .icon-btn{width:42px;height:42px}
  .app-main{padding:0 12px calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px)}
  .category-row{margin:0 -12px 16px;padding:0 12px}
  .chip{min-width:auto;padding:0 18px;font-size:13px}.chip-next{display:none}
  .grid{grid-template-columns:1fr;row-gap:24px}
  .grid[data-layout=masonry]{columns:2;column-gap:9px}
  .grid[data-layout=masonry] .card{margin-bottom:14px}
  /* 首页"移动端单栏"开关(默认关，双栏交错保持不变) */
  body.xlji-home-grid-1col .grid[data-layout=masonry]{columns:1}
  .hero{padding:32px 14px 4px}
  .hero-title{font-size:24px}
  .coll-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .card-info{grid-template-columns:39px minmax(0,1fr);gap:9px}
  .avatar{width:39px;height:39px}.title{font-size:15px}
  .shorts-stage{inset:0}
  /* 手机端竖流：画框铺满整屏,控件抬到 tabbar 之上 */
  .short-frame{aspect-ratio:auto;max-width:none;width:100%}
  .short-info{left:14px;right:70px;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 14px)}
  .short-rail{bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 18px)}
  .short.needs-tap::after,.short.is-loading::after{margin-bottom:calc(var(--tabbar) / 2)}
  .gifs-stage{inset:0}
  .gif-info{left:14px;right:70px;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 14px)}
  .gif-rail{bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 18px)}
  .longs-stage{inset:0}
  .long-sec{padding:10px 8px calc(var(--tabbar) + env(safe-area-inset-bottom) + 10px)}
  /* 手机端画框按16:9铺满屏宽，实际高度也就 ~200px 上下，塞不下4个大图标+控制条——
     图标缩小、间距收紧，rail贴着控制条上边(不是垂直居中)，这样才不会互相压到 */
  .long-sec .player{max-height:none}
  .long-meta{max-width:100%}
  .long-rail{right:6px;bottom:70px;gap:8px}
  .long-rail .sr{width:30px;height:30px}
  .long-rail .sr svg{width:16px;height:16px}
  .mobile-bar{position:fixed;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;z-index:45;left:0;right:0;bottom:0;
    height:calc(var(--tabbar) + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);
    border-top:1px solid var(--line);background:rgba(8,12,14,.94);backdrop-filter:blur(18px)}
  .mobile-link{display:grid;place-items:center;color:#879095;background:none;border:0;padding:0;cursor:pointer}
  .mobile-link.active{color:#fff}
  .mobile-link .icon{width:22px;height:22px}
  .mobile-refresh.spin .icon{animation:spin .5s var(--ease)}
  .gallery-grid{columns:2;column-gap:8px}
  .gallery-grid .photo{margin-bottom:8px}
}
/* ---- 按钮 ---- */
.btn-primary{display:block;width:100%;text-align:center;padding:12px 18px;border-radius:9px;
  background:var(--accent);color:#12181b;font-weight:650;margin-top:6px}
.btn-ghost{display:block;width:100%;text-align:center;padding:11px 18px;border-radius:9px;
  border:1px solid var(--line-strong);color:var(--muted);margin-top:8px}
.btn-ghost:hover{color:#fff}

/* ---- 弹出层 ---- */
.sheet-scrim{position:fixed;inset:0;z-index:60;background:rgba(2,5,6,.6);backdrop-filter:blur(4px);
  opacity:0;transition:opacity .2s}
.sheet-scrim.in{opacity:1}
.sheet{position:fixed;z-index:61;background:#10161a;border:1px solid var(--line);
  transition:transform .24s var(--ease),opacity .2s;opacity:0}
.sheet.in{opacity:1}
.sheet-search{left:50%;top:14vh;translate:-50% 0;width:min(560px,calc(100vw - 32px));border-radius:14px;
  transform:translateY(-14px)}
.sheet-search.in{transform:none}
.sheet-auth{left:50%;top:50%;translate:-50% -50%;width:min(400px,calc(100vw - 32px));border-radius:14px;
  padding:22px;transform:translate(-50%,-46%)}
.sheet-auth.in{transform:translate(-50%,-50%)}
.sheet-comments{left:50%;top:auto;bottom:0;translate:-50% 0;width:min(560px,100vw);
  max-height:82vh;display:flex;flex-direction:column;border-radius:16px 16px 0 0;transform:translateY(100%)}
.sheet-comments.in{transform:none}
.sheet-comments .sheet-head{padding:16px 18px;border-bottom:1px solid var(--line)}
.sh-count{color:var(--muted);font-weight:400;margin-left:4px}
.sheet-comments-body{flex:1;overflow:auto;padding:14px 18px}
.sheet-comments .c-form,.sheet-comments .c-login{margin:0;padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.c-empty{color:var(--muted);text-align:center;padding:30px 0}
.sheet-share{left:50%;top:auto;bottom:0;translate:-50% 0;width:min(440px,100vw);
  border-radius:16px 16px 0 0;transform:translateY(100%);padding:16px 18px calc(18px + env(safe-area-inset-bottom))}
.sheet-share.in{transform:none}
.share-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.share-opt{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 4px;border-radius:10px;
  color:#e8eaea;font-size:11.5px;text-align:center;background:none;border:0}
.share-opt:hover{background:rgba(255,255,255,.06)}
.share-ic{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1)}
.share-ic svg{width:22px;height:22px}
.share-copy span:last-child{white-space:nowrap}
@media(max-width:640px){
  .sheet-search,.sheet-auth{left:0;right:0;bottom:0;top:auto;translate:0;width:auto;
    border-radius:16px 16px 0 0;transform:translateY(100%)}
  .sheet-search.in,.sheet-auth.in{transform:none}
  .sheet-comments,.sheet-share{left:0;right:0;width:auto;translate:0}
  .share-grid{grid-template-columns:repeat(3,1fr)}
}
.sheet-searchbar{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.sheet-searchbar svg{width:20px;height:20px;color:var(--muted);flex:0 0 auto}
.sheet-searchbar input{flex:1;background:none;border:0;outline:0;color:#fff;font-size:16px}
.sheet-x{width:30px;height:30px;border-radius:50%;color:var(--muted);font-size:20px;line-height:1}
.sheet-results{max-height:60vh;overflow:auto;padding:6px}
.sres{display:grid;grid-template-columns:76px 1fr;gap:12px;padding:8px;border-radius:9px;align-items:center}
.sres:hover{background:rgba(255,255,255,.06)}
.sres-th{aspect-ratio:16/10;border-radius:6px;overflow:hidden}
.sres-th img{width:100%;height:100%;object-fit:cover}
.sres b{display:block;font-size:14px;margin-bottom:2px}
.sres small{color:var(--muted);font-size:12px}
.sres-empty{padding:26px;text-align:center;color:var(--muted)}
.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.sheet-head strong{font-size:17px}
.auth-me{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.auth-me b{display:block}.auth-me span{color:var(--muted);font-size:12px}
.auth-form{display:grid;gap:11px}
.af-row{display:grid;gap:5px}
.af-row span{font-size:11px;color:var(--muted)}
.af-row input{height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:#090e10;color:#fff}
.auth-msg{min-height:16px;font-size:12px;color:#e6a6a0;text-align:center;margin:2px 0 0}
.auth-switch{text-align:center;color:var(--muted);font-size:12px;margin:10px 0 0}
.auth-switch button{color:#fff;text-decoration:underline;text-underline-offset:3px;margin-left:4px}

/* ---- 评论 ---- */
.comments{margin-top:34px;max-width:720px}
.comments h2{font-size:16px;margin:0 0 14px}
.c-count{color:var(--muted);font-weight:400}
.c-list{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:16px}
.c-item{display:grid;grid-template-columns:36px 1fr;gap:11px}
.c-meta{display:flex;gap:8px;align-items:baseline;font-size:13px}
.c-meta span{color:var(--faint);font-size:12px}
.c-text{margin-top:3px;color:#d3d8d9;font-size:14px;line-height:1.55}
.c-form{display:grid;gap:10px}
.c-input{position:relative}
.c-form textarea{width:100%;padding:11px 40px 11px 11px;border:1px solid var(--line-strong);border-radius:9px;background:#090e10;color:#fff;resize:vertical}
.c-emoji-btn{position:absolute;right:6px;bottom:6px;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#9aa2a6;font-size:18px;cursor:pointer;line-height:1}
.c-emoji-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.c-emoji-pad{display:flex;flex-wrap:wrap;gap:2px;max-height:132px;overflow-y:auto;padding:6px;border:1px solid var(--line);border-radius:9px;background:#0b1113}
.c-emoji{width:34px;height:34px;border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;border-radius:6px}
.c-emoji:hover{background:rgba(255,255,255,.09)}
.c-form .btn-primary{width:auto;justify-self:start;padding:9px 22px}
.c-login{width:auto;padding:10px 20px}

/* ---- 我的账号(参考 xlji2/account.html)---- */
.btn-o{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;
  border:1px solid var(--line-strong);border-radius:8px;color:#e7eaea;font-size:13px;font-weight:500;line-height:1;
  background:transparent;cursor:pointer;text-decoration:none;white-space:nowrap;box-sizing:border-box;transition:background .18s,border-color .18s}
.btn-o:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.5)}
.btn-o .icon{width:15px;height:15px;flex:0 0 auto}
.btn-o-ghost{color:var(--muted)}
.btn-o-ghost:hover{color:#fff}

.me-profile{display:grid;grid-template-columns:186px minmax(0,1fr);gap:30px;align-items:center;max-width:920px;margin:2px 0 24px}
.me-avatar-wrap{text-align:center;position:relative;width:148px;margin:auto}
.u-avatar{display:grid;place-items:center;border-radius:50%;overflow:hidden;border:1px solid var(--line);color:#fff;font-weight:700}
.u-avatar img{width:100%;height:100%;object-fit:cover}
.me-avatar-wrap .u-avatar,.me-avatar-wrap .text-avatar{width:148px;height:148px;font-size:52px}
.me-cam{position:absolute;right:0;bottom:22px;width:44px;height:44px;border-radius:50%;border:1px solid #fff;
  background:#11171a;display:grid;place-items:center;cursor:pointer}
.me-cam:hover{background:#20282c}
.me-cam svg{width:20px;height:20px}
.me-cam-label{display:block;margin-top:8px;color:#a3abad;font-size:12px}
.me-copy{min-width:0}
.me-name-row{display:flex;align-items:center;gap:12px 14px;flex-wrap:wrap}
.me-name-row h1{margin:0;font-size:25px;font-weight:560;letter-spacing:-.025em;line-height:34px}
.me-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.me-identity{margin:6px 0 0;color:#abb2b5;font-size:13px}
.me-bio{margin:10px 0 14px;color:#e4e7e7;max-width:60ch;white-space:pre-line}
.me-bio.is-empty{color:var(--faint)}
.me-stats{margin-top:2px}

.creator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.creator-card{display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:14px;
  padding:16px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.018)}
.cc-face{width:60px;height:60px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#fff;font-weight:700;font-size:22px}
.cc-face img{width:100%;height:100%;object-fit:cover}
.cc-body{min-width:0}
.cc-body h3{margin:0 0 3px;font-size:15px;font-weight:540;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-body p{margin:0;color:var(--muted);font-size:11px}
.cc-unfollow{height:34px;padding:0 14px;border:1px solid var(--line-strong);border-radius:18px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}
.cc-unfollow:hover{color:#fff}
.cc-unfollow.gone{color:var(--accent);border-color:var(--accent)}

@media(max-width:820px){
  .me-profile{grid-template-columns:1fr;justify-items:center;text-align:center}
  .me-avatar-wrap,.me-avatar-wrap .u-avatar,.me-avatar-wrap .text-avatar{width:110px;height:110px;font-size:38px}
  .me-cam{width:36px;height:36px;bottom:0;right:-2px}
  .me-name-row,.me-stats{justify-content:center}
  .me-bio{margin-left:auto;margin-right:auto}
  .creator-grid{grid-template-columns:1fr}
}

/* ---- 页头补充 / 分页 ---- */
.ph-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink,#f1cf72);margin:0 0 4px}
.ph-count{color:var(--muted);font-size:14px;font-weight:400}
.ph-desc{margin:8px 0 0;max-width:60ch;color:var(--muted);font-size:14px;line-height:1.6}
.page-head h1{line-height:1.3}
.pager{display:flex;gap:6px;flex-wrap:wrap;margin-top:26px}
.pg{min-width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:8px;font-size:13px;color:var(--muted)}
.pg.is-active{background:#f1f2f1;color:#12181b;border-color:#f1f2f1}

@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ---- 年龄门（DOM 在 body 末尾，靠 fixed 定位铺满；未确认时 html.age-gate 先锁滚动）---- */
html.age-ok .agegate{display:none}
html.age-gate{overflow:hidden}
.agegate{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;
  background:rgba(4,7,9,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.agegate-box{max-width:440px;width:100%;text-align:center;background:#0e1417;border:1px solid var(--line);
  border-radius:16px;padding:34px 28px 26px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.agegate-mark{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;
  border:2px solid var(--accent);color:var(--accent);font-weight:800;font-size:17px;letter-spacing:-.02em;margin-bottom:16px}
.agegate-box h2{margin:0 0 12px;font-size:20px;font-weight:650;letter-spacing:-.01em}
.agegate-body{margin:0 0 22px;color:#c2c8ca;font-size:14px;line-height:1.65}
.agegate-btns{display:flex;flex-direction:column;gap:10px}
.agegate-btns .btn-primary{width:100%;padding:13px 18px;font-size:15px}
.agegate-btns .btn-ghost{width:100%;padding:11px 18px}
.agegate-fine{margin:18px 0 0;color:var(--faint);font-size:11.5px;line-height:1.6}
@media(max-width:480px){.agegate-box{padding:28px 20px 22px}.agegate-box h2{font-size:18px}}

/* ---- 文字页（terms / privacy / about …）---- */
.legal-page{max-width:1000px;margin:0 auto}
.legal-head{margin:4px 0 26px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.legal-head h1{margin:0;font-size:30px;line-height:1.15;letter-spacing:-.025em;font-weight:600}
.legal-updated{margin:10px 0 0;color:var(--muted);font-size:12.5px}
.legal-layout{display:block}
.legal-layout.has-toc{display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:48px;align-items:start}
.legal-toc{order:2;position:sticky;top:24px}
.legal-toc-h{margin:0 0 12px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.legal-toc ol{margin:0;padding:0;list-style:none;counter-reset:toc;border-left:1px solid var(--line)}
.legal-toc li{counter-increment:toc}
.legal-toc a{display:block;padding:6px 0 6px 14px;margin-left:-1px;border-left:2px solid transparent;
  color:#9aa2a6;font-size:12.5px;line-height:1.45;transition:.15s}
.legal-toc a:hover{color:#fff;border-left-color:var(--line-strong)}

/* 阅读排版 */
.prose{max-width:none;color:#d4d9da;font-size:15.5px;line-height:1.75}
.prose > *:first-child{margin-top:0}
.prose h2{margin:2.4em 0 .7em;font-size:19px;font-weight:600;letter-spacing:-.01em;color:#f2f4f4;scroll-margin-top:24px}
.prose h3{margin:1.8em 0 .5em;font-size:16px;font-weight:600;color:#eef0f0}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose p{margin:0 0 1.15em}
.prose a{color:var(--accent);text-underline-offset:3px;text-decoration:underline;text-decoration-color:rgba(232,182,44,.4)}
.prose a:hover{text-decoration-color:var(--accent)}
.prose ul,.prose ol{margin:0 0 1.2em;padding-left:1.4em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--faint)}
.prose strong{color:#f2f4f4;font-weight:600}
.prose hr{margin:2em 0;border:0;border-top:1px solid var(--line)}
.prose blockquote{margin:1.4em 0;padding:2px 0 2px 16px;border-left:3px solid var(--line-strong);color:#b7bdbe}
.prose code{background:var(--surface-2);padding:2px 6px;border-radius:5px;font-size:.88em}
.prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:14px;display:block;overflow-x:auto}
.prose th,.prose td{padding:9px 12px;border:1px solid var(--line);text-align:left}
.prose th{background:var(--surface-2);font-weight:600;color:#eef0f0}
.prose .wp-block-heading{scroll-margin-top:24px}
.page-links{margin-top:2em;display:flex;gap:8px;flex-wrap:wrap}
.page-links a,.page-links > span{padding:5px 11px;border:1px solid var(--line-strong);border-radius:7px;font-size:13px;color:var(--muted)}

@media(max-width:900px){
  .legal-layout.has-toc{grid-template-columns:1fr;gap:0}
  .legal-toc{order:0;position:static;margin-bottom:24px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
  .legal-toc ol{border-left:0}
  .legal-toc a{padding:5px 0}
  .legal-head h1{font-size:24px}
  .prose{font-size:15px}
}

/* 首页底部"关于 {brand}"卡片区块 —— about 页内容按 <h2> 拆出来的卡片，见 xlji_render_site_intro() */
.site-intro{max-width:1000px;margin:56px auto 0;padding:0 4px}
.site-intro-grid{display:flex;flex-direction:column;gap:14px}
.site-intro-card{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:22px 24px}
/* 小色块 + 字号/字距做点区分，别让一段段标题跟正文一样平，扫一眼就能找到每张卡讲的是什么 */
.site-intro-card h3{position:relative;margin:0 0 12px;padding-left:16px;font-size:17px;font-weight:700;
  letter-spacing:.01em;color:var(--ink)}
.site-intro-card h3::before{content:"";position:absolute;left:0;top:.2em;width:4px;height:1em;
  border-radius:2px;background:var(--accent)}
.site-intro-card .prose{font-size:14.5px}
.site-intro-card .prose:first-child{margin-top:0}
@media(max-width:640px){
  .site-intro{margin-top:40px}
  .site-intro-card{padding:18px 18px;border-radius:14px}
}


/* ========================================================================== */
/* Ember 1.0 — orange editorial shell, Nexus content grid                     */
/* ========================================================================== */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
:root{
  --ember:#f97316;--ember-deep:#e9530b;--ember-hot:#ff8a34;--ember-ink:#241d19;
  --ember-muted:#716760;--ember-paper:#fff;--ember-card:#fff;--ember-line:#eadfd5;
  --bg:var(--ember-paper);--surface:#fff;--surface-2:#f7f5f3;--ink:var(--ember-ink);
  --muted:var(--ember-muted);--faint:#a49589;--line:rgba(83,54,36,.14);
  --line-strong:rgba(83,54,36,.24);--paper:#fff;--accent:var(--ember);color-scheme:light;
  --rail:0px;--rail-open:0px
}
/* 2026-09-30：页面底色统一纯白，不用暖色渐变——卡片(gallery-head/site-intro-panel/footer/sheet
   等)背景也都收敛成纯白+一个灰(--surface-2)，靠 border/shadow 分隔，不靠色值精确匹配，
   避免"两块几乎一样但不完全一样的浅色贴在一起"的接缝问题（Blush 主题踩过的坑）。 */
html{background:var(--ember-paper)}
body.xlji.ember{min-width:0;background:#fff;color:var(--ember-ink)}
body.ember a{color:inherit}
.ember-shell{min-height:auto;margin-left:0}
.ember-main{padding:34px clamp(18px,4.2vw,72px) 88px}
.ember-main .content{width:100%;max-width:1480px;margin:0 auto}
.ember-main .page-head{margin:8px 0 26px}
.ember-main .page-head h1{color:var(--ember-ink);font-size:clamp(26px,3vw,42px);font-weight:820}
.ember-feed{margin:0}

/* New floating two-tier header */
.ember-header{position:sticky;z-index:10;top:0;padding:12px clamp(14px,3vw,46px) 0;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);box-shadow:0 1px rgba(83,54,36,.06)}
/* 短/长/GIF 沉浸滑动页是 position:fixed;z-index:20 的全屏黑底——头部 z-index 必须比它低，
   才会被这层黑底自然盖住(跟 canonical 的 topbar 一个道理)，否则会悬浮在视频上面挡内容。 */
.ember-header-main{width:100%;max-width:1480px;min-height:76px;margin:0 auto;display:grid;grid-template-columns:auto auto minmax(240px,1fr) auto auto;align-items:center;gap:clamp(13px,2vw,30px);padding:12px 14px 12px 18px;border:1px solid rgba(255,255,255,.48);border-radius:24px;background:linear-gradient(118deg,#ff861f 0%,#f76b12 52%,#e94d0c 100%);box-shadow:0 18px 40px rgba(188,69,5,.18),inset 0 1px rgba(255,255,255,.26)}
.ember-brand{min-width:0;display:flex;align-items:center;gap:11px;color:#fff}
.ember-brand-mark{width:45px;height:45px;display:grid;place-items:center;flex:0 0 45px;border:1px solid rgba(255,255,255,.48);border-radius:15px;background:rgba(255,255,255,.18);box-shadow:inset 0 1px rgba(255,255,255,.25);font-size:20px;font-weight:900}
.ember-brand-copy{display:grid;min-width:0;line-height:1.08}
.ember-brand-copy b{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:900;letter-spacing:.025em}
.ember-brand-copy small{max-width:180px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.72);font-size:9px;letter-spacing:.13em;text-transform:lowercase}
.ember-nav{display:flex;align-items:center;gap:3px}
.ember-nav a{position:relative;padding:10px 11px;border-radius:11px;color:rgba(255,255,255,.82);font-size:13px;font-weight:700;white-space:nowrap;transition:.2s}
.ember-nav a:hover,.ember-nav a.is-active{background:rgba(255,255,255,.16);color:#fff}
.ember-nav a.is-active::after{content:"";position:absolute;left:12px;right:12px;bottom:5px;height:2px;border-radius:3px;background:#fff}
.ember-search{height:50px;display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;min-width:0;padding:4px 5px 4px 18px;border:1px solid rgba(123,48,9,.12);border-radius:16px;background:#fff;color:#2b211d;box-shadow:0 8px 24px rgba(116,38,3,.16)}
.ember-search:focus-within{box-shadow:0 0 0 4px rgba(255,255,255,.28),0 10px 28px rgba(116,38,3,.19)}
.ember-search input{width:100%;height:100%;min-width:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#2b211d!important;box-shadow:none!important;font-size:15px;font-weight:600}
.ember-search input::placeholder{color:#a39790}
.ember-search button{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#f36a12;transition:.2s}
.ember-search button:hover{background:#fff1e5;transform:translateY(-1px)}
.ember-search .icon{width:21px;height:21px}
.ember-mode,.ember-account{height:46px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.3);border-radius:14px;background:rgba(255,255,255,.11);color:#fff;transition:.2s}
.ember-mode{gap:7px;padding:0 13px;font-size:12px;font-weight:800}
.ember-mode-sun{font-size:21px;line-height:1}
.ember-mode:hover,.ember-account:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.ember-account{width:46px;padding:0}
.ember-account .icon{width:21px;height:21px}
.ember-account .u-avatar,.ember-account .text-avatar{width:34px!important;height:34px!important;border:0!important}
.ember-mobile-menu{display:none;position:relative}
.ember-mobile-menu summary{list-style:none;width:44px;height:44px;place-items:center;padding:11px;border:1px solid rgba(255,255,255,.3);border-radius:13px;background:rgba(255,255,255,.11);cursor:pointer}
.ember-mobile-menu summary::-webkit-details-marker{display:none}
.ember-mobile-menu summary span{display:block;width:20px;height:2px;margin:4px 0;border-radius:3px;background:#fff}
.ember-mobile-menu nav{position:absolute;right:0;top:52px;min-width:190px;overflow:hidden;padding:7px;border:1px solid var(--ember-line);border-radius:16px;background:#fff;color:var(--ember-ink);box-shadow:0 20px 48px rgba(86,42,17,.2)}
.ember-mobile-menu nav a{display:block;padding:11px 13px;border-radius:10px;font-weight:700}
.ember-mobile-menu nav a:hover{background:#fff1e7;color:var(--ember-deep)}
.ember-topic-row{margin-top:10px;border-bottom:1px solid var(--ember-line);background:rgba(255,255,255,.8)}
.ember-topic-inner{max-width:1480px;min-height:48px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:0 18px;overflow:hidden}
.ember-topic-inner>b{flex:0 0 auto;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.ember-topics{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}
.ember-topics::-webkit-scrollbar{display:none}
.ember-topics a{flex:0 0 auto;padding:7px 10px;border-radius:9px;color:#a24917;font-size:13px;font-weight:650;transition:.2s}
.ember-topics a:hover{background:#fff0e4;color:#e9530b}

/* Nexus feed mechanics with Ember surfaces */
.ember .category-row{margin-bottom:24px;padding:6px;border:1px solid var(--ember-line);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 12px 34px rgba(93,49,23,.06)}
.ember .chip{color:#887970}
.ember .chip:hover{background:#fff2e8;color:#c65110}
.ember .chip.active{background:linear-gradient(135deg,#ff9a44,#f97316 56%,#df4c08);color:#fff;box-shadow:0 8px 20px rgba(231,84,9,.23)}
.ember .chip-next{background:#fff3e9;color:#e85b0d}
.ember .grid{column-gap:20px;row-gap:25px}
.ember .card{padding:8px;border:1px solid var(--ember-line);border-radius:21px;background:#fff;box-shadow:0 14px 34px rgba(82,45,22,.07);transition:transform .28s var(--ease),border-color .28s,box-shadow .28s}
.ember .card:hover{transform:translateY(-5px);border-color:rgba(242,105,25,.34);box-shadow:0 20px 42px rgba(82,45,22,.13)}
.ember .poster{border-radius:15px;background-color:#2b211d!important}
.ember .poster::after{background:linear-gradient(145deg,rgba(255,129,43,.12),transparent);mix-blend-mode:screen}
.ember .feat-tag{background:linear-gradient(135deg,#ffb066,#f97316);color:#fff}
.ember .duration{background:rgba(28,19,15,.75);color:#fff}
.ember .title a,.ember .title{color:#2d241f}
.ember .meta{color:#8e8178}
.ember .meta span+span::before{color:#c5b9b0}
.ember .play{border-color:rgba(255,255,255,.75);background:rgba(242,102,20,.82)}
.ember .sk{background:linear-gradient(100deg,#f3e7dd 30%,#fff5ed 50%,#f3e7dd 70%);background-size:200% 100%}
.ember .coll-card{border-color:var(--ember-line);background:#df6821}

/* Content pages */
.ember .watch-head,.ember .gallery-head,.ember .c-profile,.ember .me-profile,.ember .legal-head,
.ember .watch-actions,.ember .content-actions,.ember .creator-card,.ember .legal-toc{border-color:var(--ember-line);background:#fff;color:var(--ember-ink);box-shadow:0 12px 34px rgba(82,45,22,.06)}
.ember .wa,.ember .ca,.ember .btn-o{background:#fff3e9;color:#6f5d52}
.ember .wa:hover,.ember .ca:hover,.ember .btn-o:hover{border-color:rgba(249,115,22,.35);background:#ffead9;color:#d85109}
.ember .wa.on,.ember .ca.on,.ember .c-follow{background:linear-gradient(135deg,#ff963e,#f0640f);color:#fff}
.ember .prose{color:#5d514a}
.ember .prose h1,.ember .prose h2,.ember .prose h3,.ember .prose strong{color:#2b221e}
.ember .prose a{color:#df570b}
.ember .prose blockquote{border-left-color:var(--ember);background:#fff2e7}
.ember .tags a{background:#fff0e3;color:#c75110}

/* About content from slug=about */
.ember .site-intro{max-width:1480px;margin:76px auto 0}
.ember .site-intro-panel{border:1px solid var(--ember-line);border-radius:24px;background:#fff;box-shadow:0 22px 58px rgba(82,45,22,.08)}
.ember .site-intro-panel::before{height:4px;background:linear-gradient(90deg,#ffad62,#f97316 55%,#df4a08)}
.ember .site-intro-panel::after{background:radial-gradient(circle,rgba(255,128,43,.15),transparent 68%)}
.ember .site-intro-panel.prose{color:#65584f}
.ember .site-intro-panel.prose>p:first-child,.ember .site-intro-panel.prose h2,.ember .site-intro-panel.prose h3{color:#2d241f}
.ember .site-intro-panel.prose h2::before,.ember .site-intro-panel.prose h3::before{background:linear-gradient(#ff9b47,#e95509);box-shadow:0 0 12px rgba(249,115,22,.25)}

/* Footer uses the homepage SEO description; no parental panel */
.ember-footer{border-top:1px solid var(--ember-line);background:#fff;color:#5f554e}
.ember-footer-grid{width:100%;max-width:1480px;margin:0 auto;display:grid;grid-template-columns:minmax(320px,1.65fr) repeat(3,minmax(140px,.65fr));gap:clamp(28px,5vw,78px);padding:64px clamp(22px,4.2vw,72px) 58px}
.ember-footer-brand>a{display:inline-block;color:#2a211d;font-size:28px;font-weight:900;letter-spacing:-.04em}
.ember-footer-brand p{max-width:680px;margin:18px 0 30px;color:#6c6058;line-height:1.75}
.ember-footer-brand small{color:#9c8d82}
.ember-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.ember-footer h2{margin:4px 0 8px;color:#2f2621;font-size:14px;text-transform:uppercase;letter-spacing:.09em}
.ember-footer nav a{color:#6b5e56;font-size:14px}
.ember-footer nav a:hover{color:#e65b0d}

/* Light modal and age-gate treatment */
.ember .sheet{border-color:var(--ember-line);background:#fff;color:var(--ember-ink);box-shadow:0 30px 90px rgba(66,34,16,.24)}
.ember .sheet-scrim{background:rgba(52,27,13,.45)}
.ember .sheet-searchbar{border-bottom-color:var(--ember-line)}
.ember .sres:hover,.ember .share-opt:hover{background:#fff0e4}
.ember input,.ember textarea{border-color:var(--ember-line)!important;background:#fff!important;color:#2c221d!important}
.ember .btn-primary{background:linear-gradient(135deg,#ff9942,#f2610d);color:#fff;box-shadow:0 10px 24px rgba(222,79,8,.2)}
.ember .agegate{background:rgba(42,24,14,.76)}
.ember .agegate-box{border-color:#ead8c9;background:#fff;color:#33271f;box-shadow:0 38px 100px rgba(46,23,10,.36)}
.ember .agegate-mark{background:linear-gradient(145deg,#ff953e,#ed5a0c);color:#fff}

/* Optional dark mode */
html[data-theme=dark]{color-scheme:dark;background:#17100d}
html[data-theme=dark] body.xlji.ember{background:radial-gradient(circle at 15% 10%,rgba(249,115,22,.13),transparent 28rem),#17100d;color:#fff7f2}
html[data-theme=dark] .ember-header{background:rgba(23,16,13,.88);box-shadow:0 1px rgba(255,255,255,.06)}
html[data-theme=dark] .ember-topic-row{border-color:rgba(255,255,255,.1);background:rgba(31,21,17,.9)}
html[data-theme=dark] .ember-topic-inner,html[data-theme=dark] .ember-main .page-head h1{color:#fff5ed}
html[data-theme=dark] .ember-topics a{color:#ffad73}
html[data-theme=dark] .ember .category-row,html[data-theme=dark] .ember .card,
html[data-theme=dark] .ember .watch-head,html[data-theme=dark] .ember .gallery-head,html[data-theme=dark] .ember .c-profile,
html[data-theme=dark] .ember .me-profile,html[data-theme=dark] .ember .legal-head,html[data-theme=dark] .ember .watch-actions,
html[data-theme=dark] .ember .content-actions,html[data-theme=dark] .ember .creator-card,html[data-theme=dark] .ember .legal-toc,
html[data-theme=dark] .ember .site-intro-panel{border-color:rgba(255,194,150,.13);background:#251914;color:#f7eae1}
html[data-theme=dark] .ember .title a,html[data-theme=dark] .ember .title,html[data-theme=dark] .ember .prose h1,
html[data-theme=dark] .ember .prose h2,html[data-theme=dark] .ember .prose h3,html[data-theme=dark] .ember .prose strong,
html[data-theme=dark] .ember .site-intro-panel.prose>p:first-child{color:#fff8f3}
html[data-theme=dark] .ember .meta,html[data-theme=dark] .ember .prose,html[data-theme=dark] .ember .site-intro-panel.prose{color:#cbb9ad}
html[data-theme=dark] .ember-footer{border-color:rgba(255,255,255,.1);background:#201510;color:#c8b8ae}
html[data-theme=dark] .ember-footer-brand>a,html[data-theme=dark] .ember-footer h2{color:#fff5ee}
html[data-theme=dark] .ember-footer-brand p,html[data-theme=dark] .ember-footer nav a{color:#c5b2a6}

@media(max-width:1180px){
  .ember-header-main{grid-template-columns:auto minmax(220px,1fr) auto auto}
  .ember-nav{display:none}.ember-mobile-menu{display:block}.ember-mobile-menu summary{display:grid}
}
@media(max-width:760px){
  .ember-header{position:relative;padding:8px 8px 0}
  .ember-header-main{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:10px;border-radius:19px}
  .ember-brand-mark{width:40px;height:40px;flex-basis:40px;border-radius:12px}
  .ember-brand-copy b{max-width:160px;font-size:15px}.ember-brand-copy small{display:none}
  .ember-search{grid-column:1/-1;grid-row:2;height:52px;border-radius:14px}
  .ember-mode{width:43px;height:43px;padding:0}.ember-mode-label{display:none}.ember-account{display:none}
  .ember-mobile-menu summary{width:43px;height:43px}
  .ember-topic-row{margin-top:7px}.ember-topic-inner{min-height:44px;padding:0 9px;gap:8px}.ember-topic-inner>b{display:none}
  .ember-main{padding:24px 10px 62px}
  .ember .category-row{margin-left:0;margin-right:0}
  .ember .site-intro{margin-top:48px}.ember .site-intro-panel{padding:24px 18px}
  .ember-footer-grid{grid-template-columns:1fr 1fr;gap:34px 22px;padding:45px 20px}
  .ember-footer-brand{grid-column:1/-1}.ember-footer-brand p{margin:14px 0 22px}
}
@media(max-width:460px){
  .ember-brand-copy b{max-width:124px}
  .ember-footer-grid{grid-template-columns:1fr}.ember-footer-brand{grid-column:auto}
}

/* Ember 1.0.2: preserve the original orange header; only menu text becomes white. */
.ember-header-main{background:linear-gradient(118deg,#ff861f 0%,#f76b12 52%,#e94d0c 100%);box-shadow:0 18px 40px rgba(177,73,10,.19),inset 0 1px rgba(255,255,255,.28)}
body.xlji.ember .ember-nav a,body.xlji.ember .ember-nav a:visited,body.xlji.ember .ember-mobile-menu nav a,body.xlji.ember .ember-mobile-menu nav a:visited{color:#fff!important}
.ember-nav a:hover,.ember-nav a.is-active{color:#fff;background:rgba(255,255,255,.15)}
.ember-mobile-menu nav{background:#35231b;color:#fff}
.ember-mobile-menu nav a:hover{color:#fff;background:rgba(255,255,255,.12)}
.ember-feed{margin-top:0}

/* Ember 1.0.4: full-width navigation with mode-independent white header type. */
body.xlji.ember .ember-header{
  padding:0!important;
  background:linear-gradient(118deg,#ff861f 0%,#f76b12 52%,#e94d0c 100%)!important;
}
body.xlji.ember .ember-header-main{
  position:relative;width:100%;max-width:none!important;margin:0!important;
  padding-left:clamp(20px,4vw,64px);padding-right:clamp(20px,4vw,64px);
  border-left:0!important;border-right:0!important;border-radius:0!important;
  color:#fff!important;
}
body.xlji.ember .ember-brand,
body.xlji.ember .ember-brand *,
body.xlji.ember .ember-nav a,
body.xlji.ember .ember-nav a:visited,
body.xlji.ember .ember-mode,
body.xlji.ember .ember-account,
body.xlji.ember .ember-mobile-menu,
body.xlji.ember .ember-mobile-menu summary,
body.xlji.ember .ember-mobile-menu nav,
body.xlji.ember .ember-mobile-menu nav a,
body.xlji.ember .ember-mobile-menu nav a:visited{
  color:#fff!important;
}
body.xlji.ember .ember-brand-copy small{color:rgba(255,255,255,.78)!important}
body.xlji.ember .ember-brand-mark,
body.xlji.ember .ember-mode,
body.xlji.ember .ember-account,
body.xlji.ember .ember-mobile-menu summary{border-color:rgba(255,255,255,.5)!important}
body.xlji.ember .ember-search{
  border-color:rgba(255,255,255,.38)!important;background:rgba(55,24,9,.22)!important;
  color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 24px rgba(85,31,5,.16)!important;
}
body.xlji.ember .ember-search input{border:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important}
body.xlji.ember .ember-search input::placeholder{color:rgba(255,255,255,.7)!important;opacity:1}
body.xlji.ember .ember-search button{color:#fff!important}
body.xlji.ember .ember-search button:hover{background:rgba(255,255,255,.15)!important}
body.xlji.ember .ember-mobile-menu nav{
  border-color:rgba(255,255,255,.2)!important;background:#57230f!important;
}
@media(max-width:1180px){
  body.xlji.ember .ember-mobile-menu{position:static}
  body.xlji.ember .ember-mobile-menu nav{
    left:0;right:0;top:100%;width:100%;min-width:0;padding:12px clamp(20px,4vw,64px);
    border-radius:0 0 18px 18px!important;
  }
}
@media(max-width:760px){
  body.xlji.ember .ember-header-main{padding:10px 12px;border-radius:0!important}
}

/* 沉浸滑动页(短视频/GIF)标题继承 body 字色，亮色皮肤下会变深——这块内容画在纯黑视频/图片上，
   不能跟随站点主题色，必须固定浅色。.item-tags/.long-meta 本来就是硬编码白色，没这问题。 */
.short-info h2,.gif-info h2{color:#fff}

/* 长视频清晰度菜单(.pl-menu)背景固定深色，按钮字色用 var(--muted) 在亮色皮肤下会变深，
   深底配深字看不清，固定成浅灰。 */
.ember .pl-menu button{color:#c9ced0}
.ember .pl-menu button:hover{color:#fff}

/* 所有"内容页"(长/短/图集/GIF/小说单篇, is_singular('xlji_item'), body 加 .ember-dark-item)
   固定黑色背景——沉浸观看体验更好。短/长/GIF 本来就是整屏黑底覆盖，跟 body 颜色无关，这里
   主要是让图集/小说详情页(没有整屏黑底，是正常文档流)也统一变黑。重新定义变量而不是一个个
   组件改颜色——.crumbs/.novel-meta/.chip 等一大批组件的颜色本来就是 var(--muted)/var(--ink)/
   var(--line) 算出来的，改一次全跟着变；.gallery-meta/.novel-lead/.novel-body 这些是 canonical
   写死的近白/浅灰值，本来就是给深色背景配的，背景变黑后原样正确，不用碰。 */
body.xlji.ember.ember-dark-item{
  --bg:#0b0908;--surface:rgba(255,255,255,.04);--surface-2:rgba(255,255,255,.06);
  --ink:#f3f1ef;--muted:#a89e97;--faint:#6b625c;--accent:var(--ember);
  --line:rgba(255,255,255,.14);--line-strong:rgba(255,255,255,.24);
  background:#0b0908;color:#f3f1ef
}
body.ember-dark-item .gallery-head,body.ember-dark-item .content-actions,
body.ember-dark-item .site-intro-panel{
  border-color:var(--line);background:var(--surface);color:var(--ink);box-shadow:none
}
body.ember-dark-item .ca,body.ember-dark-item .btn-o{background:var(--surface-2);color:#d9d3ce}
body.ember-dark-item .ca:hover,body.ember-dark-item .btn-o:hover{background:rgba(255,255,255,.12);color:#fff}
body.ember-dark-item .ca.on,body.ember-dark-item .c-follow{background:var(--ember);color:#fff}
body.ember-dark-item .novel-cover{border-color:var(--line)}
body.ember-dark-item .tags a{background:var(--surface-2);color:#e3b08c}

/* 内容页持续导航：移动端复用 xlji 自带的底部 tabbar(.mobile-bar，z-index:45 > 沉浸页的 20)；
   桌面端(≥701px，跟 .mobile-bar 的 max-width:700px 严格互补)原本没有等价物——桌面头部在沉浸
   播放页会被黑底盖住(设计如此)，新增悬浮竖排图标 dock 卡在视频/图集两侧天然留白的黑边里。 */
.ember-dock{display:none}
@media(min-width:701px){
  .ember-dock{position:fixed;z-index:25;left:16px;top:50%;translate:0 -50%;display:flex;
    flex-direction:column;gap:6px;padding:10px 8px;border-radius:20px;
    background:rgba(20,14,12,.72);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.12)}
  .ember-dock-link{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:rgba(255,255,255,.62)}
  .ember-dock-link .icon{width:20px;height:20px}
  .ember-dock-link:hover{background:rgba(255,255,255,.1);color:#fff}
  .ember-dock-link.active{background:var(--ember);color:#fff}
}
