/* =====================================================================
   短视频平台 · 全新版全局样式（暗色沉浸）
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; overscroll-behavior: none; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #fff; font-size: 14px; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; }

/* ============ 沉浸式视频页（首页） ============ */
.app { position: fixed; inset: 0; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; text-align: left; touch-action: none; }
#player { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; z-index: 1; }
@keyframes ksSlideIn { from { transform: translateY(34%); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
#player.ks-in { animation: ksSlideIn .3s ease; }

/* 关注页空状态引导 */
.ks-empty { position: absolute; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; background: #000; }
.ks-empty.show { display: flex; }
.ks-empty .big { font-size: 44px; }
.ks-empty p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); }
.ks-empty a { border: 0; border-radius: 20px; padding: 9px 28px; font-size: 14px; font-weight: 600; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.ks-empty a:active { transform: scale(.95); }

/* 声音 / 播放控制按钮 */
.ks-ctrls { position: absolute; left: 12px; top: calc(env(safe-area-inset-top) + 58px); z-index: 110; display: flex; flex-direction: column; gap: 10px; }
.ks-ctrl { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.36); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.ks-ctrl:active { transform: scale(.92); background: rgba(0,0,0,.5); }
.ks-ctrl svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ks-shade-top { position: absolute; left: 0; right: 0; top: 0; height: 170px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,0)); }
.ks-shade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.12) 40%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.86)); }

.ks-top { position: absolute; top: 0; left: 0; right: 0; z-index: 120; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; padding: calc(env(safe-area-inset-top) + 6px) 6px 10px; }
.ks-icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: radial-gradient(circle, rgba(0,0,0,.26), rgba(0,0,0,.1) 62%, transparent); border-radius: 50%; color: #fff; cursor: pointer; padding: 0; filter: drop-shadow(0 1px 4px rgba(0,0,0,.85)); }
.ks-icon-btn svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; }
.ks-icon-btn:active { transform: scale(.92); }
.ks-tabs { display: flex; align-items: center; justify-content: center; gap: 26px; }
.ks-tabs a { position: relative; color: rgba(255,255,255,.66); font-size: 16px; font-weight: 500; padding: 3px 1px; text-shadow: 0 1px 4px rgba(0,0,0,.65); transition: color .18s, font-size .18s; }
.ks-tabs a.on { color: #fff; font-weight: 700; font-size: 17.5px; }
.ks-tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 17px; height: 3px; border-radius: 2px; background: #fff; transform: translateX(-50%); }

.ks-rail { position: absolute; right: 7px; z-index: 100; bottom: calc(env(safe-area-inset-bottom) + 116px); display: flex; flex-direction: column; align-items: center; gap: 15px; }
.sr-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; position: relative; }
.sr-ic { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); transition: transform .16s; }
.sr-ic svg { width: 29px; height: 29px; fill: #fff; }
.sr-item:active .sr-ic { transform: scale(.88); }
.sr-item.active .sr-ic svg { fill: var(--brand, #ff2d55); }
.sr-num { font-size: 11px; color: #fff; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.sr-item.active .sr-num { color: var(--brand, #ff2d55); }
.sr-avatar-img { width: 43px; height: 43px; border-radius: 50%; border: 1.6px solid #fff; overflow: hidden; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.sr-avatar-img svg { width: 24px; height: 24px; fill: #fff; }
.sr-avatar-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sr-plus { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 46%); width: 19px; height: 19px; border-radius: 50%; background: var(--brand, #ff2d55); color: #fff; font-size: 15px; line-height: 17px; text-align: center; font-weight: 700; border: 1.2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sr-plus.off { display: none; }
.sr-item.like-pop .sr-ic { animation: ksPop .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes ksPop { 45% { transform: scale(1.32); } }
/* 唱片（声音开关）：黑胶圆盘 + 音符，播放时旋转，静音时斜杠 */
.sr-disc { width: 46px; height: 46px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; background: repeating-radial-gradient(circle at 50% 50%, #262626 0 2px, #161616 2px 5px); border: 2.5px solid rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.65); }
.sr-disc .sr-note { position: relative; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.sr-disc .sr-note svg { width: 17px; height: 17px; fill: #fff; filter: none; }
.sr-disc .sr-note::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 7px; height: 7px; border-radius: 50%; background: #101010; box-shadow: 0 0 0 1.5px rgba(255,255,255,.55); }
.sr-disc .sr-mute { display: none; position: absolute; inset: -4px; z-index: 3; align-items: center; justify-content: center; }
.sr-disc .sr-mute svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.sr-disc.muted .sr-mute { display: flex; }
.sr-disc.muted .sr-note svg { opacity: .45; }
.sr-disc.spinning { animation: ksSpin 4.5s linear infinite; }
.sr-disc.muted.spinning { animation-play-state: paused; }
@keyframes ksSpin { to { transform: rotate(360deg); } }

.ks-meta { position: absolute; left: 13px; right: 82px; z-index: 100; bottom: calc(env(safe-area-inset-bottom) + 64px); }
.ks-author { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 16.5px; font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,.7); margin-bottom: 6px; max-width: 100%; }
.ks-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-desc { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.96); text-shadow: 0 1px 4px rgba(0,0,0,.7); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; }
.ks-desc.expanded { -webkit-line-clamp: unset; display: block; }
.ks-desc:empty { display: none; }
.ks-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ks-tags a { font-size: 12.5px; color: #8fc0ff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.ks-progress { position: absolute; left: 0; right: 0; z-index: 131; bottom: calc(env(safe-area-inset-bottom) + 51px); height: 2px; background: rgba(255,255,255,.16); }
.ks-progress i { display: block; height: 100%; width: 0; background: #fff; transition: width .22s linear; }

.ks-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 132; height: calc(51px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: center; background: rgba(0,0,0,.86); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.06); }
.ks-tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; color: rgba(255,255,255,.58); font-size: 10.5px; font-weight: 500; letter-spacing: .3px; position: relative; }
.ks-tabbar a svg { width: 23px; height: 23px; fill: currentColor; }
.ks-tabbar a.on { color: #fff; font-weight: 700; }
.ks-tabbar .ks-plus b { display: flex; align-items: center; justify-content: center; width: 45px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; box-shadow: 0 2px 10px rgba(255,73,6,.38); font-size: 23px; font-weight: 700; line-height: 1; }
.ks-dot { position: absolute; top: 4px; right: 12px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: #ff2d55; color: #fff; font-size: 9px; line-height: 15px; text-align: center; font-weight: 700; }

.ks-heart { position: fixed; z-index: 99; pointer-events: none; font-size: 104px; line-height: 1; color: var(--brand, #ff2d55); text-shadow: 0 3px 18px rgba(0,0,0,.5); animation: ksHeart .85s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes ksHeart { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); } 55% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-95%) scale(1.3); } }

/* ============ 抽屉 / 底部面板 ============ */
.ks-drawer-mask { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .26s; }
.ks-drawer-mask.show { opacity: 1; visibility: visible; }
.ks-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 401; width: 79%; max-width: 322px; background: #141414; transform: translateX(-102%); transition: transform .3s cubic-bezier(.22,.9,.3,1); overflow-y: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.ks-drawer.show { transform: translateX(0); }
.kd-head { padding: calc(env(safe-area-inset-top) + 26px) 18px 18px; display: flex; align-items: center; gap: 12px; }
.kd-avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.kd-avatar img { width: 100%; height: 100%; object-fit: contain; background: rgba(255,255,255,.06); }
.kd-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.kd-sub { font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 3px; }
.kd-stats { display: flex; border-bottom: 1px solid rgba(255,255,255,.07); padding: 14px 0; }
.kd-stats a { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.07); }
.kd-stats a:last-child { border-right: 0; }
.kd-stats b { display: block; font-size: 15px; }
.kd-stats span { font-size: 11px; color: rgba(255,255,255,.55); }
.kd-list { padding: 6px 0; }
.kd-item { display: flex; align-items: center; gap: 13px; padding: 13px 18px; color: #f2f2f2; font-size: 14px; }
.kd-item:active { background: rgba(255,255,255,.06); }
.kd-item .kd-ico { width: 21px; height: 21px; flex: none; fill: none; stroke: #cfcfcf; stroke-width: 1.7; }
.kd-item .kd-arrow { margin-left: auto; color: rgba(255,255,255,.3); font-size: 15px; }
.kd-item .kd-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff2d55; color: #fff; font-size: 10px; line-height: 18px; text-align: center; }
.kd-sep { height: 7px; background: rgba(255,255,255,.04); margin: 4px 0; }
.kd-tip { padding: 12px 18px 4px; font-size: 10.5px; color: rgba(255,255,255,.28); line-height: 1.6; }

.ks-sheet-mask { position: fixed; inset: 0; z-index: 440; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .22s; }
.ks-sheet-mask.show { opacity: 1; visibility: visible; }
.ks-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 441; background: #1b1b1d; border-radius: 16px 16px 0 0; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); transform: translateY(102%); transition: transform .26s cubic-bezier(.22,.9,.3,1); }
.ks-sheet.show { transform: translateY(0); }
.ks-cell { display: flex; align-items: center; justify-content: center; padding: 15px 18px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; color: #eee; width: 100%; }
.ks-cell:last-child { border-bottom: 0; }
.ks-cell:active { background: rgba(255,255,255,.06); }
.ks-cell.cancel { color: rgba(255,255,255,.62); }
.ks-sheet-title { text-align: center; font-size: 12px; color: rgba(255,255,255,.35); padding: 10px 0 4px; }

/* ============ 通用页（个人页 / 精选 / 搜索 / 消息 / 发布） ============ */
.page { min-height: 100%; background: #000; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.ptop { position: sticky; top: 0; z-index: 50; height: calc(48px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: flex; align-items: center; gap: 8px; padding-left: 8px; padding-right: 14px; background: rgba(0,0,0,.92); backdrop-filter: blur(14px); }
.ptop .back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.ptop .back svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; }
.ptop .ttl { flex: 1; font-size: 16px; font-weight: 700; }
.ptop .act { color: rgba(255,255,255,.85); font-size: 13px; padding: 6px 10px; }

/* 个人主页 */
.pf-hero { padding: 10px 16px 0; }
.pf-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; border: 2px solid rgba(255,255,255,.25); }
.pf-avatar img { width: 100%; height: 100%; object-fit: contain; background: rgba(255,255,255,.06); }
.pf-name { font-size: 20px; font-weight: 700; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.pf-uid { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }
.pf-sign { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; line-height: 1.5; }
.pf-stats { display: flex; gap: 20px; margin-top: 12px; }
.pf-stats a { color: #fff; }
.pf-stats b { font-size: 16px; margin-right: 4px; }
.pf-stats span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.pf-btns { display: flex; gap: 10px; margin-top: 14px; }
.pf-btns button, .pf-btns a { flex: 1; border: 0; border-radius: 8px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.btnp-dark { background: rgba(255,255,255,.12); color: #fff; }
.btnp-light { background: #fff; color: #111; }
.btnp-brand { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.btnp-publish { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; font-weight: 700; letter-spacing: 1px; box-shadow: 0 4px 14px rgba(255,73,6,.35); position: relative; overflow: hidden; }
.btnp-publish .bp-plus { display: inline-block; margin-right: 5px; font-weight: 400; transform: translateY(-.5px); }
.btnp-publish::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); animation: btnShine 3.4s ease infinite; }
@keyframes btnShine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
.btnp-publish:active { transform: scale(.95); }
.off-badge { display: inline-block; margin-left: 7px; padding: 1.5px 8px; font-size: 10px; border-radius: 9px; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; font-weight: 600; vertical-align: 2px; }
.btnp-ghost { background: none; border: 1px solid rgba(255,255,255,.28); color: #fff; }

.pf-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: calc(48px + env(safe-area-inset-top)); z-index: 40; background: #000; }
.pf-tabs a { flex: 1; text-align: center; padding: 11px 0; font-size: 13.5px; color: rgba(255,255,255,.55); position: relative; }
.pf-tabs a.on { color: #fff; font-weight: 700; }
.pf-tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 2px; background: #fff; }

.panel { display: none; padding: 10px 10px 20px; }
.panel.on { display: block; }

/* 三列作品宫格 */
.grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.gcard { position: relative; aspect-ratio: 3/4; background: #101014; border-radius: 4px; overflow: hidden; }
.gcard img { width: 100%; height: 100%; object-fit: cover; }
.gcard .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .audit-tag { position: absolute; left: 5px; top: 5px; z-index: 2; background: rgba(255,152,0,.92); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.gcard .audit-tag.no { background: rgba(211,47,47,.9); }
.gcard .wk-del { position: absolute; right: 5px; top: 5px; z-index: 3; border: 0; background: rgba(211,47,47,.92); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 4px; cursor: pointer; }
.gcard .wk-del:active { transform: scale(.94); }
.gcard .play-n { position: absolute; left: 6px; bottom: 26px; z-index: 2; font-size: 10.5px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 3px; }
.gcard .play-n svg { width: 11px; height: 11px; fill: currentColor; }
.audit-note { font-size: 11.5px; color: rgba(255,255,255,.4); padding: 10px 4px 2px; line-height: 1.6; }
.empty { color: rgba(255,255,255,.45); font-size: 13px; padding: 34px 16px; text-align: center; line-height: 1.8; }
/* 消息页条目 */
.msg-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.msg-item:active { background: rgba(255,255,255,.04); }
.msg-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand2, #ffb347), var(--brand, #ff4906)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 15px; overflow: hidden; }
.msg-av.me { background: linear-gradient(135deg, #3d8bff, #2c6be0); }
.msg-av img { width: 100%; height: 100%; object-fit: contain; display: block; background: rgba(255,255,255,.08); }
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.msg-name { flex: 1; min-width: 0; color: rgba(255,255,255,.5); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { flex: none; color: rgba(255,255,255,.3); font-size: 11px; }
.msg-txt { font-size: 14px; line-height: 1.55; color: #fff; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msg-go { flex: none; align-self: center; color: var(--brand, #ff4906); font-size: 12px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; white-space: nowrap; }
.msg-go:active { background: rgba(255,255,255,.08); }
.empty .go { display: inline-block; margin-top: 10px; padding: 9px 22px; border-radius: 20px; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; font-size: 13px; font-weight: 600; }
.hist { display: flex; gap: 10px; align-items: center; padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.hist:last-child { border-bottom: 0; }
.hist a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.88); }
.hist span { color: rgba(255,255,255,.4); font-size: 12px; flex: none; }

/* 列表页（精选/搜索） */
.seg { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg input { flex: 1; border: 0; outline: none; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; padding: 10px 14px; font-size: 14px; }

/* ============ 登录 / 注册 ============ */
.auth-wrap { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 22px; background: radial-gradient(120% 100% at 50% 0%, #1c0e08 0%, #000 60%); }
.auth-logo { width: 74px; height: 74px; border-radius: 18px; object-fit: cover; margin-bottom: 14px; }
.auth-title { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.auth-sub { font-size: 12.5px; color: rgba(255,255,255,.45); margin: 6px 0 26px; }
.auth-tabs { display: flex; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; margin-bottom: 18px; width: 100%; max-width: 360px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: rgba(255,255,255,.6); border-radius: 8px; }
.auth-tabs a.on { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; font-weight: 700; }
.auth-box { width: 100%; max-width: 360px; display: none; flex-direction: column; gap: 12px; }
.auth-box.on { display: flex; }
.auth-box input { width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 10px; padding: 13px 14px; font-size: 15px; color: #fff; outline: none; }
.auth-box input:focus { border-color: var(--brand, #ff4906); }
.auth-box .go { border: 0; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); cursor: pointer; }
.auth-msg { min-height: 18px; font-size: 12.5px; color: #ff7a7a; width: 100%; max-width: 360px; text-align: center; }

/* ============ 发布页 ============ */
.pub { position: fixed; inset: 0; display: flex; flex-direction: column; background: #0b0b0d; }
.pub-top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.pub-top .ttl { flex: 1; font-size: 16px; font-weight: 700; }
.pub-top .tip { font-size: 11.5px; color: rgba(255,255,255,.42); }
.pub-top .send { border: 0; border-radius: 16px; padding: 7px 15px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); cursor: pointer; flex: none; }
.pub-top .send:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.4); cursor: not-allowed; }
.pub-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px 122px; }
.sec { margin-bottom: 18px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 9px; }
.sec-h h3 { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9); }
.sec-h em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.35); }
.pick { border: 1.5px dashed rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.03); min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: rgba(255,255,255,.6); cursor: pointer; transition: .18s; padding: 22px 16px; text-align: center; }
.pick:active { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.pick.drag { border-color: var(--brand, #ff4906); }
.pick .ico { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.pick .ico svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.9; fill: none; }
.pick .t { font-size: 14.5px; font-weight: 700; color: #fff; }
.pick .s { font-size: 11.5px; color: rgba(255,255,255,.4); line-height: 1.6; }
.preview { display: none; position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.preview.on { display: block; }
.preview video { width: 100%; max-height: 34vh; display: block; background: #000; object-fit: contain; }
.preview .chg { position: absolute; right: 8px; top: 8px; border: 0; border-radius: 14px; padding: 5px 11px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); cursor: pointer; }
.preview .meta { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.preview .meta span { font-size: 11px; background: rgba(0,0,0,.5); border-radius: 10px; padding: 3px 8px; }
.frames { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.frames::-webkit-scrollbar { display: none; }
.frame { position: relative; flex: none; width: 74px; height: 98px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: #1a1a1e; cursor: pointer; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.on { border-color: var(--brand, #ff4906); }
.frame.on::after { content: '封面'; position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; text-align: center; background: rgba(0,0,0,.6); color: #fff; }
.frame .loading { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,.4); font-size: 12px; }
.frame.up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.7); font-size: 11px; }
.frame.up svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.desc { position: relative; }
.desc textarea { width: 100%; min-height: 96px; resize: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 14px 26px; color: #fff; font-size: 14px; line-height: 1.6; outline: none; }
.desc textarea:focus { border-color: var(--brand, #ff4906); }
.desc .cnt { position: absolute; right: 12px; bottom: 9px; font-size: 11px; color: rgba(255,255,255,.4); }
.desc .cnt.warn { color: #ff9a3c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); border-radius: 16px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; }
.chip.on { border-color: var(--brand, #ff4906); background: rgba(255,73,6,.16); color: #fff; font-weight: 600; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: rgba(255,255,255,.45); line-height: 1.6; }
.note svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; margin-top: 1px; }
.pub-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #0b0b0d; }
.pub-foot button { width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); cursor: pointer; }
.pub-foot button:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.4); }

.prog { position: fixed; inset: 0; z-index: 60; background: #0b0b0d; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.prog.on { display: flex; }
.ring { position: relative; width: 118px; height: 118px; }
.ring .bg { stroke: rgba(255,255,255,.1); }
.ring .fg { stroke: url(#pg); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .3s; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-size: 22px; }
.ring .num i { font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.prog .st { font-size: 13.5px; }
.prog .sub { font-size: 11.5px; color: rgba(255,255,255,.4); }
.done { position: fixed; inset: 0; z-index: 70; background: #0b0b0d; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; }
.done.on { display: flex; }
.done .ok { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); display: flex; align-items: center; justify-content: center; }
.done .ok svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 2.6; fill: none; }
.done h2 { font-size: 19px; }
.done p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; }
.done .acts { display: flex; gap: 12px; margin-top: 8px; width: 100%; max-width: 340px; }
.done .acts a { flex: 1; text-align: center; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 600; }
.done .acts .p { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.done .acts .g { background: rgba(255,255,255,.1); color: #fff; }

/* 申请发布权限卡片 */
.apply-card { margin: 26px 16px; background: #131316; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 26px 20px; text-align: center; }
.apply-card .big { font-size: 44px; line-height: 1; }
.apply-card h2 { font-size: 18px; margin-top: 12px; }
.apply-card p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.8; margin-top: 8px; }
.apply-card .st-wait { color: #ffb400; font-weight: 700; }
.apply-card .st-no { color: #ff6b6b; font-weight: 700; }
.apply-card .reason { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255,107,107,.1); font-size: 12.5px; color: #ff9b9b; text-align: left; }
.apply-form { text-align: left; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.apply-form textarea, .apply-form input { width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 10px; padding: 11px 13px; color: #fff; font-size: 14px; outline: none; resize: none; }
.apply-form textarea:focus, .apply-form input:focus { border-color: var(--brand, #ff4906); }
.apply-form button { border: 0; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); cursor: pointer; }
.step-line { display: flex; align-items: center; justify-content: center; gap: 0; margin: 4px 0 20px; }
.step-line i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-style: normal; }
.step-line i.on { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.step-line b { width: 40px; height: 2px; background: rgba(255,255,255,.12); }
.step-line b.on { background: var(--brand, #ff4906); }
.step-txt { display: flex; justify-content: center; gap: 0; font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.step-txt span { width: 114px; text-align: center; }
.step-txt span.on { color: rgba(255,255,255,.9); font-weight: 600; }

/* ============ 弹窗 / 提示 ============ */
.mask { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.mask.show { display: flex; }
.box { width: 100%; max-width: 340px; background: #1c1c20; border-radius: 14px; padding: 22px 18px; color: #eee; text-align: center; }
.box h3 { font-size: 17px; margin-bottom: 6px; }
.box p { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.box input { width: 100%; height: 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 0 12px; font-size: 16px; outline: none; background: rgba(255,255,255,.06); color: #fff; }
.box input:focus { border-color: var(--brand, #ff4906); }
.box .msg { min-height: 18px; color: #ff7a7a; font-size: 12px; margin-top: 8px; }
.box .row { display: flex; gap: 10px; margin-top: 12px; }
.box button { flex: 1; height: 40px; border: 0; border-radius: 8px; font-size: 14px; cursor: pointer; }
.box .cancel { background: rgba(255,255,255,.1); color: #ccc; }
.box .ok { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.edit-box { width: 100%; max-width: 400px; background: #1c1c20; border-radius: 16px; padding: 20px; color: #eee; max-height: 88vh; overflow: auto; text-align: left; }
.edit-box h3 { font-size: 17px; margin-bottom: 16px; text-align: center; }
.edit-box .fld { margin-bottom: 14px; }
.edit-box .fld label { display: block; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.edit-box .fld input, .edit-box .fld textarea { width: 100%; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: rgba(255,255,255,.06); color: #fff; outline: none; }
.edit-box .fld textarea { height: 64px; resize: none; }
.edit-box .btns { display: flex; gap: 10px; margin-top: 6px; }
.edit-box .btns button { flex: 1; border: 0; border-radius: 10px; padding: 11px; font-size: 14px; cursor: pointer; }
.edit-box .btns .ok { background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; }
.edit-box .btns .cancel { background: rgba(255,255,255,.1); color: #ccc; }
.edit-box .hint { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6; }
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 9998; background: rgba(0,0,0,.82); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13.5px; display: none; max-width: 76%; text-align: center; line-height: 1.5; }
.toast.top { top: 70px; transform: translateX(-50%); }

/* 评论面板（页面内嵌通用） */
.cmt-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cmt-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand2, #ffb347), var(--brand, #ff4906)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 14px; }

/* ============ PC 居中 ============ */
@media (min-width: 721px) {
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 60px rgba(0,0,0,.8); }
  .page { max-width: 430px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .ks-drawer { left: calc(50% - 215px); }
  .ks-sheet, .ks-sheet-mask { left: calc(50% - 215px); right: calc(50% - 215px); }
  .ks-progress { left: calc(50% - 215px); right: calc(50% - 215px); }
  .pub { max-width: 560px; margin: 0 auto; border-left: 1px solid rgba(255,255,255,.07); border-right: 1px solid rgba(255,255,255,.07); }
}

/* ============ 同城：选城市弹层 ============ */
.ks-citymask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 900; }
.ks-citysheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 901; background: #1c1c1e; color: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 18px); max-height: 72vh; overflow-y: auto; animation: ksUp .22s ease; }
@keyframes ksUp { from { transform: translateY(60%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.ks-citysheet .cs-h { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; position: relative; }
.ks-citysheet .cs-h b { font-size: 16px; }
.ks-citysheet .cs-h small { font-size: 12px; color: #9a9aa0; }
.ks-citysheet .cs-x { position: absolute; right: 0; top: 2px; font-size: 22px; color: #9a9aa0; cursor: pointer; line-height: 1; }
.ks-citysheet .cs-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ks-citysheet .cs-it { padding: 7px 14px; border-radius: 18px; border: 1px solid #3a3a3c; background: #2c2c2e; color: #eee; font-size: 13px; cursor: pointer; }
.ks-citysheet .cs-it.on { background: var(--brand, #ff4906); border-color: transparent; color: #fff; font-weight: 600; }
.ks-citysheet .cs-custom { display: flex; gap: 8px; align-items: center; }
.ks-citysheet .cs-custom input { flex: 1; height: 38px; border-radius: 10px; border: 1px solid #3a3a3c; background: #2c2c2e; color: #fff; padding: 0 12px; font-size: 14px; outline: none; }
.ks-citysheet .cs-btn { height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: linear-gradient(135deg, var(--brand, #ff4906), var(--brand2, #ffb400)); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
