:root {
  --red: #fe2c55;
  --cyan: #25f4ee;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --bar: rgba(0, 0, 0, 0.72);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%; background: #000; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  overflow: hidden; overscroll-behavior: none;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img, video { display: block; }
[hidden] { display: none !important; }

/* ---------------- 手机外框 ---------------- */
#phone { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
@media (min-width: 620px) {
  body {
    display: grid; place-items: center;
    background: radial-gradient(1200px 800px at 50% 10%, #1b1b22 0%, #0a0a0c 55%, #050506 100%);
  }
  #phone {
    width: 400px; height: min(858px, calc(100vh - 36px));
    border-radius: 44px; border: 9px solid #111113;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px #2a2a30, inset 0 0 0 1px #000;
  }
  #phone::after {
    content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 116px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 20; pointer-events: none;
  }
}
.app { position: absolute; inset: 0; overflow: hidden; background: #000; }

/* ---------------- 视频流 ---------------- */
.feed {
  position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory; scrollbar-width: none; -ms-overflow-style: none;
  background: #000;
}
.feed::-webkit-scrollbar { display: none; }

.item {
  position: relative; width: 100%; height: 100%; scroll-snap-align: start;
  scroll-snap-stop: always; overflow: hidden; background: #000;
}
.item .vd {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000;
}
.shade-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 100%);
  pointer-events: none;
}
.shade-top {
  position: absolute; left: 0; right: 0; top: 0; height: 18%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

/* 暂停图标 */
.pause-mark {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  background: rgba(0, 0, 0, 0.35); border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.pause-mark::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid rgba(255, 255, 255, 0.92);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.item.paused .pause-mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------------- 右侧互动栏 ---------------- */
.rail {
  position: absolute; right: 6px; bottom: calc(92px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 17px;
  z-index: 4;
}
.avatar-wrap { position: relative; width: 46px; height: 46px; margin-bottom: 12px; }
.avatar {
  width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: -1px;
  overflow: hidden; background: #333;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; flex: none; border-width: 1px; }
.follow-badge {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 15px; line-height: 19px; text-align: center; font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.follow-badge.followed { background: #4a4a4a; font-size: 12px; }

.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.rail-btn svg { width: 38px; height: 38px; }
.rail-btn .count { font-size: 12px; font-weight: 600; letter-spacing: .2px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rail-btn.liked svg path { fill: var(--red); stroke: var(--red); }
.rail-btn.liked { animation: likePop .35s ease; }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.disc {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: #161616; border: 6px solid #2b2b2b; margin-top: 4px;
  display: grid; place-items: center; overflow: hidden;
  animation: spin 12s linear infinite;
}
.disc .disc-art { position: absolute; inset: 0; border-radius: 50%; opacity: .95; }
.disc svg { width: 16px; height: 16px; position: relative; z-index: 2; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 文案区 ---------------- */
.meta {
  position: absolute; left: 0; right: 0; bottom: calc(62px + var(--safe-bottom));
  padding: 0 86px 0 14px; z-index: 4; pointer-events: none;
}
.meta .author {
  display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700;
  margin-bottom: 7px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: auto; width: fit-content; max-width: 100%;
}
.verify {
  display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
}
.meta .desc {
  font-size: 14px; line-height: 1.42; margin-bottom: 8px; max-height: 40px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.meta .desc .tag { color: #fff; font-weight: 500; opacity: .95; }
.meta .music {
  display: flex; align-items: center; gap: 6px; font-size: 13px; max-width: 100%;
  overflow: hidden;
}
.meta .music svg { width: 13px; height: 13px; flex: none; }
.marquee { white-space: nowrap; animation: marquee 9s linear infinite; padding-left: 2px; }
@keyframes marquee { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(-55%); } }

.reason-chip {
  position: absolute; top: calc(62px + var(--safe-top)); left: 14px; z-index: 4;
  max-width: 72%; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(6px);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.82);
  display: flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s;
}
.reason-chip.show { opacity: 1; transform: none; }
.reason-chip b { color: #fff; font-weight: 600; }
.reason-chip svg { width: 14px; height: 14px; flex: none; opacity: .85; }
.reason-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 双击点赞 */
.heart-burst {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; z-index: 6;
}
.heart-burst.on { animation: burst .9s cubic-bezier(.2, .8, .3, 1); }
.heart-burst svg { width: 110px; height: 110px; }
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-12deg); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); }
  70% { opacity: .95; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.06) rotate(4deg); }
}

.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.14); z-index: 5; }
.progress i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.9); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: calc(10px + var(--safe-top)) 10px 8px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  transition: background .2s;
}
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; }
.icon-btn svg { width: 24px; height: 24px; }
.tabs { display: flex; align-items: center; gap: 22px; position: relative; }
.tabs .tab {
  font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, 0.62);
  padding: 4px 2px; position: relative; transition: color .2s;
}
.tabs .tab.active { color: #fff; font-weight: 700; }
.tabs .tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), #fff 45%, var(--red));
}

/* ---------------- 底部导航 ---------------- */
.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  height: calc(54px + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255, 255, 255, 0.55); font-size: 11px; font-style: normal;
  min-width: 56px;
}
.nav-item i { font-style: normal; transform: scale(.96); }
.nav-item .nav-ico { width: 24px; height: 24px; display: grid; place-items: center; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: #fff; }
.nav-item.active svg { stroke: #fff; }
.nav-item .dot {
  position: absolute; top: -2px; right: 8px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 9px; line-height: 15px; border-radius: 8px;
  font-style: normal; text-align: center;
}
.nav-plus {
  width: 45px; height: 30px; border-radius: 9px; position: relative; margin-top: -6px;
  background: linear-gradient(90deg, #25f4ee, #fff 55%, #fe2c55);
  display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(254, 44, 85, 0.35);
}
.nav-plus span { position: relative; width: 22px; height: 3px; background: #111; border-radius: 2px; }
.nav-plus span::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 22px; background: #111; border-radius: 2px;
}

/* ---------------- 通用 overlay ---------------- */
.overlay { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.45); display: flex; }
.overlay[hidden] { display: none; }
.close-btn {
  position: relative;
  width: 30px; height: 30px; display: grid; place-items: center; color: #fff; flex: none;
}
.close-btn::before, .close-btn::after {
  content: ""; position: absolute; width: 2px; height: 17px; background: currentColor; border-radius: 2px;
}
.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }
.floating { position: absolute; right: 12px; top: calc(12px + var(--safe-top)); background: rgba(0,0,0,.45); border-radius: 50%; z-index: 5; }

/* ---------------- 登录注册 ---------------- */
.overlay.auth {
  flex-direction: column; background: #0b0b0d;
  background-image: radial-gradient(700px 480px at 50% -6%, rgba(254, 44, 85, 0.18), transparent 70%),
                    radial-gradient(600px 400px at 90% 20%, rgba(37, 244, 238, 0.10), transparent 70%);
  padding: calc(10px + var(--safe-top)) 22px calc(18px + var(--safe-bottom));
  overflow-y: auto;
}
.auth-top { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 4px; }
.brand { flex: 1; text-align: center; margin: 14px 0 0; }
.brand-logo {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  background: linear-gradient(135deg, #25f4ee, #7b61ff 45%, #fe2c55);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(254, 44, 85, 0.35);
}
.brand-logo span { font-size: 19px; font-weight: 800; color: #0a0a0c; letter-spacing: -1px; }
.brand h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: 1px; }
.brand p { font-size: 13px; color: var(--muted); margin: 0; }
.auth-form { margin-top: 26px; }
.auth-legal { font-size: 11px; color: rgba(255,255,255,.34); margin-top: 14px; line-height: 1.6; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.field input, .search-box input, .comment-input input, .desc-input, .upload-row input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #26262b;
  background: #17171a; font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .desc-input:focus, .upload-row input:focus { border-color: #3a3a42; background: #1c1c20; }
.interests { margin: 18px 0 6px; }
.interest-title { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin: 0 0 10px; }
.interest-title small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 8px 15px; border-radius: 999px; background: #1a1a1f; border: 1px solid #2a2a31;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.85); transition: all .16s;
}
.chip.on { background: rgba(254, 44, 85, 0.16); border-color: var(--red); color: #fff; }
.primary-btn {
  width: 100%; height: 48px; border-radius: 10px; margin-top: 14px;
  background: var(--red); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px;
  transition: transform .12s, opacity .2s;
}
.primary-btn:active { transform: scale(.98); }
.primary-btn.loading { opacity: .65; pointer-events: none; }
.auth-error { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; color: #ff6b81; text-align: center; }
.auth-foot { margin-top: auto; padding-top: 16px; text-align: center; }
.text-btn { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.demo-tip { font-size: 11.5px; color: rgba(255, 255, 255, 0.42); margin: 12px 0 0; }
.demo-tip b { color: rgba(255, 255, 255, 0.68); font-weight: 600; }

/* ---------------- 评论抽屉 ---------------- */
.comment-overlay { align-items: flex-end; }
.comment-sheet {
  width: 100%; height: 64%; background: #161618; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  animation: sheetUp .26s cubic-bezier(.2, .9, .2, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sheet-title { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.comment-list { flex: 1; overflow-y: auto; padding: 8px 16px; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-user { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); margin-bottom: 4px; }
.comment-text { font-size: 14.5px; line-height: 1.4; word-break: break-word; }
.comment-meta { font-size: 11px; color: rgba(255, 255, 255, 0.38); margin-top: 5px; }
.comment-empty { text-align: center; color: rgba(255, 255, 255, 0.35); font-size: 13px; padding: 40px 0; }
.comment-input {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px calc(10px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.07); background: #121214;
}
.comment-input input { flex: 1; height: 38px; border-radius: 19px; padding: 0 14px; font-size: 14px; background: #1d1d21; }
.send-btn { flex: none; padding: 0 4px; font-size: 14px; color: var(--red); font-weight: 600; }

/* ---------------- 个人主页 ---------------- */
.page { position: absolute; inset: 0; z-index: 28; background: #000; display: flex; flex-direction: column; animation: slideIn .22s ease; }
.page[hidden] { display: none; }
@keyframes slideIn { from { transform: translateX(12%); opacity: .6; } to { transform: none; opacity: 1; } }
.page-head {
  height: calc(50px + var(--safe-top)); padding: var(--safe-top) 12px 0;
  display: flex; align-items: center; justify-content: space-between; flex: none;
  background: #000;
}
.page-title { font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.back-btn { width: 34px; height: 34px; display: grid; place-items: center; }
.back-btn::before {
  content: ""; width: 10px; height: 10px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg); margin-left: 4px;
}
.profile-scroll { flex: 1; overflow-y: auto; }
.profile-cover {
  position: relative; height: 196px;
  background: linear-gradient(160deg, #2b1d33, #101418 60%, #0a0a0b);
  display: flex; align-items: flex-end; padding: 0 18px 0;
}
.profile-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px 180px at 18% 0%, rgba(254, 44, 85, .28), transparent 70%),
              radial-gradient(320px 180px at 100% 30%, rgba(37, 244, 238, .16), transparent 70%);
}
.profile-avatar {
  position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .92);
  margin-bottom: -34px; margin-right: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.profile-info { position: relative; flex: 1; min-width: 0; padding-bottom: 6px; }
.profile-body { padding: 42px 18px 0; }
.profile-name { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-bio { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 8px 0 0; line-height: 1.5; }
.profile-stats { display: flex; gap: 26px; margin: 16px 0 14px; }
.profile-stats b { font-size: 17px; font-weight: 700; }
.profile-stats span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.profile-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.follow-btn {
  flex: 1; height: 38px; border-radius: 6px; background: var(--red); font-size: 14px; font-weight: 600;
}
.follow-btn.on { background: #1e1e22; color: rgba(255, 255, 255, .8); border: 1px solid #2e2e34; }
.ghost-btn { flex: 1; height: 38px; border-radius: 6px; background: #1b1b1f; border: 1px solid #2b2b31; font-size: 14px; }
.profile-tabs { display: flex; gap: 22px; border-bottom: 1px solid #17171a; padding-bottom: 10px; margin-top: 8px; }
.profile-tabs .ptab { font-size: 14px; color: rgba(255, 255, 255, .55); position: relative; padding-bottom: 10px; margin-bottom: -11px; }
.profile-tabs .ptab.active { color: #fff; font-weight: 600; }
.profile-tabs .ptab.active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px 0 80px; }
.work {
  position: relative; aspect-ratio: 3 / 4; background: #141416; overflow: hidden;
}
.work img, .work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work .plays { position: absolute; left: 5px; bottom: 4px; font-size: 11px; display: flex; align-items: center; gap: 3px; text-shadow: 0 1px 3px #000; }
.work .plays svg { width: 11px; height: 11px; }
.empty-works { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: rgba(255, 255, 255, .38); font-size: 13px; }

/* ---------------- 发布页 ---------------- */
.publish-btn { height: 30px; padding: 0 14px; border-radius: 6px; background: var(--red); font-size: 13px; font-weight: 600; }
.upload-body { flex: 1; overflow-y: auto; padding: 8px 16px calc(24px + var(--safe-bottom)); }
.upload-drop {
  position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 58vh; border-radius: 12px;
  background: #121214; border: 1px dashed #2c2c33; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 16px;
}
.upload-placeholder { text-align: center; color: rgba(255, 255, 255, .5); }
.upload-icon { font-size: 40px; line-height: 1; color: rgba(255, 255, 255, .32); }
.upload-placeholder p { margin: 10px 0 4px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.upload-placeholder small { font-size: 11px; }
#uploadPreview { width: 100%; height: 100%; object-fit: cover; }
.desc-input { height: auto; min-height: 78px; padding: 12px 14px; resize: none; line-height: 1.5; font-size: 14.5px; }
.upload-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.upload-row label { flex: none; width: 62px; font-size: 13px; color: rgba(255, 255, 255, .58); }
.upload-row input { height: 40px; font-size: 13.5px; }
.upload-tip { margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, .38); line-height: 1.6; }

/* ---------------- 搜索页 ---------------- */
.search-head {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(10px + var(--safe-top)) 14px 10px; background: #000;
}
.search-box { flex: 1; position: relative; display: flex; align-items: center; background: #1a1a1e; border-radius: 8px; height: 38px; padding: 0 10px; }
.search-box input { flex: 1; height: 38px; border: 0; background: none; padding: 0 6px; font-size: 14px; }
.s-ico { width: 16px; height: 16px; flex: none; position: relative; }
.s-ico::before { content: ""; position: absolute; width: 11px; height: 11px; border: 1.6px solid rgba(255,255,255,.7); border-radius: 50%; }
.s-ico::after { content: ""; position: absolute; right: 0; bottom: 0; width: 6px; height: 1.6px; background: rgba(255,255,255,.7); transform: rotate(45deg); }
.search-body { flex: 1; overflow-y: auto; padding: 6px 14px 40px; }
.hot-title { font-size: 13px; color: rgba(255, 255, 255, .55); margin: 14px 0 10px; }
.hot-tags .chips { gap: 8px; }
.search-users { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.search-user { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.search-user .nm { font-size: 14.5px; font-weight: 600; }
.search-user .sub { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.search-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-card { position: relative; border-radius: 8px; overflow: hidden; background: #121214; aspect-ratio: 3 / 4; }
.search-card img, .search-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.search-card .cap { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; padding: 24px 8px 0; font-size: 12px; line-height: 1.35;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.55) 55%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { padding: 60px 0; text-align: center; color: rgba(255, 255, 255, .38); font-size: 13px; }

/* ---------------- 单条播放 ---------------- */
#singleOverlay { background: #000; }
.single-feed { position: absolute; inset: 0; overflow-y: auto; }

/* ---------------- 抽屉 / 弹窗 ---------------- */
.drawer-overlay { justify-content: flex-start; }
.drawer {
  width: 76%; max-width: 310px; height: 100%; background: #141417;
  padding: calc(20px + var(--safe-top)) 0 calc(16px + var(--safe-bottom));
  animation: drawerIn .24s cubic-bezier(.2,.9,.2,1);
  display: flex; flex-direction: column;
}
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 6px 20px 20px; border-bottom: 1px solid #202024; }
.drawer-user .avatar { width: 46px; height: 46px; font-size: 15px; }
.drawer-user .nm { font-size: 16px; font-weight: 700; }
.drawer-user .sub { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 3px; }
.drawer-list { display: flex; flex-direction: column; padding-top: 8px; flex: 1; }
.drawer-list button { text-align: left; padding: 15px 20px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.drawer-list button.danger { color: #ff5f74; margin-top: auto; }

.modal-overlay { align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .62); }
.modal {
  width: 100%; max-width: 360px; max-height: 78%; background: #17171a; border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.94); opacity: .7; } to { transform: none; opacity: 1; } }
.algo-body { padding: 12px 16px calc(16px + var(--safe-bottom)); overflow-y: auto; font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.6; }
.algo-body h4 { margin: 14px 0 8px; font-size: 12.5px; color: rgba(255, 255, 255, .5); font-weight: 500; }
.weight-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.weight-row .lbl { width: 76px; flex: none; font-size: 12px; color: rgba(255, 255, 255, .68); }
.weight-row .bar { flex: 1; height: 6px; background: #26262c; border-radius: 3px; overflow: hidden; }
.weight-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--red)); border-radius: 3px; }
.weight-row .num { width: 34px; text-align: right; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.algo-item { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.algo-item p { margin: 0 0 3px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.algo-item small { color: rgba(255, 255, 255, .4); font-size: 11px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.profile-tags .tag-pill { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(254, 44, 85, .13); color: #ff8fa3; }

/* ---------------- 其他 ---------------- */
.feed-status { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 6; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: rgba(255, 255, 255, .8);
  animation: spin 1s linear infinite;
}
#feedStatus .spinner { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); }
.sound-hint {
  position: absolute; left: 50%; bottom: calc(126px + var(--safe-bottom)); transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .5);
  font-size: 11.5px; color: rgba(255, 255, 255, .7); z-index: 6;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.sound-hint.show { opacity: 1; }
.toast {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96);
  background: rgba(30, 30, 34, .94); color: #fff; font-size: 13px; padding: 11px 18px;
  border-radius: 8px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 76%; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
