/* 舞台（gallery.html）：密的瀑布（图在上，字在图下面）、全屏上下滑、作者页、我的舞台、推送到舞台（ADR-0186 和后续）。
   放在 home.css、ui.css 之后。网站 app/yapom/web 和原型 web 用同一份（两边一字不差）；程序在 stageview.js。
   品牌底色照旧：墨黑、米白、暖色；手机设了深色就跟着变深，设了「减少动画」就不动。 */

.sv {
  --sv-bg: var(--bg, #f3efe6);
  --sv-card: #e9e2d4;
  --sv-paper: var(--paper, #fffcf7);
  --sv-chip: var(--paper, #fffcf7);
  --sv-ink: var(--ink, #1a1814);
  --sv-on: #fffcf7;
  --sv-muted: var(--muted, #6f6a62);
  --sv-line: var(--line, #e4ddd0);
  --sv-warm: #e0735c;
  --sv-gap: 4px;
  background: var(--sv-bg);
  color: var(--sv-ink);
}

@media (prefers-color-scheme: dark) {
  .sv {
    --sv-bg: #14120f;
    --sv-card: #26221c;
    --sv-paper: #1f1c18;
    --sv-chip: #211e19;
    --sv-ink: #f3efe6;
    --sv-on: #14120f;
    --sv-muted: #a59e92;
    --sv-line: #352f28;
    color-scheme: dark;
  }
}

html.sv-locked,
html.sv-locked body {
  overflow: hidden;
}

/* 仅评论打开时：锁纵向滚动；不改横向，避免评论区右超出 */
html.sv-comment-lock,
html.sv-comment-lock body {
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  max-width: 100%;
}

html.sv-comment-lock body {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
}

.sv-i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 顶栏（ADR-0217）：左边 Y 字图标回第一页，正中「最新 / 推荐 / 直播 / 关注」，右边搜索和自己的头像。往下滑收起上面一行 ---------- */

.sv-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: env(safe-area-inset-top) 0 0;
  background: color-mix(in srgb, var(--sv-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: transform 0.22s ease;
}

.sv-bar.tuck {
  transform: translateY(var(--tuck, -48px));
}

/* relative：中间那一排栏按这一行定正中间，头像上的红点也按这一行放 */
.sv-row1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 8px 0 6px;
  transition: opacity 0.18s ease;
}

.sv-bar.tuck .sv-row1,
.sv-bar.tuck .sv-line {
  opacity: 0;
  pointer-events: none;
}

.sv-back {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0;
  height: 44px;
  padding: 0 6px 0 0;
  white-space: nowrap;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.sv-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sv-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* 登录了的左上角：yapom 的 Y 字图标（ADR-0217），点了回第一页；读屏念 gallery.html 上的 aria-label「回第一页」。
   图标本身是深色方块，深色模式下外面描一圈细线，免得和底色糊在一起 */
.sv-ylogo {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 44px;
}

.sv-ylogo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  .sv-ylogo img {
    box-shadow: 0 0 0 1px var(--sv-line);
  }
}

.sv-grow {
  flex: 1;
}

/* 「最新 / 推荐 / 直播 / 关注」（ADR-0217）：放在这一行的正中间，不跟着左右两边的东西挪；
   每个栏一样宽（宽度在下面「明了简单」那一段按屏幕宽算），亮着的大一号、加粗、近黑，换栏时别的字不跟着挤；
   没亮的浅灰。下面一条 16×3 的短线跟过去，左右滑时跟着手（线由 stageview.js 的 boardLine 放） */
.sv {
  --sv-tab: #9a958c;
}

@media (prefers-color-scheme: dark) {
  .sv {
    --sv-tab: #857f75;
  }
}

.sv-board {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
}

.sv-board button {
  width: 64px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sv-tab);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sv-board button.on {
  color: var(--sv-ink);
  font-size: 18px;
  font-weight: 700;
}

.sv-board-line {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--sv-ink);
  opacity: 0;
  pointer-events: none;
}

.sv-board-line.show {
  opacity: 1;
}

.sv-board-line.ready {
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}

/* 左右滑换栏的时候线跟着手指，不要再慢半拍地滑 */
.sv-board-line.drag {
  transition: none;
}

/* 舞台首页下面那一块左右滑换栏（stageview.js 的 swipeBoards）：竖着照旧浏览器自己滚，横着交给网页；
   跟着手挪出去的那一块剪掉，不撑出横向的滚动 */
.sv-main.sv-swipe {
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
}

/* 右上自己的头像 32 像素（ADR-0217） */
.sv-me {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--sv-line);
  border-radius: 50%;
  background: var(--sv-chip);
  color: var(--sv-muted);
  cursor: pointer;
}

.sv-me .head {
  --size: 29px;
}

.sv-join {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--sv-ink);
  border-radius: 999px;
  color: var(--sv-ink);
  font-size: 14px;
}

.sv-join.solid {
  background: var(--sv-ink);
  color: var(--sv-on);
}

.sv-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 6px;
}

.sv-chips {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-chips::-webkit-scrollbar {
  display: none;
}

.sv-chips button {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sv-chips button.on {
  border-color: var(--sv-ink);
  background: var(--sv-ink);
  color: var(--sv-on);
  font-weight: 600;
}

.sv-chips .n {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
}

.sv-find {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sv-ink);
  cursor: pointer;
}

.sv-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-muted);
}

.sv-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--sv-ink);
  font: inherit;
  font-size: 15px;
}

.sv-cancel {
  flex: none;
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--sv-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* 热门话题标签：一排小片，点了只看这个标签的 */
.sv-tagrow {
  display: flex;
  gap: 6px;
  padding: 0 6px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-tagrow::-webkit-scrollbar {
  display: none;
}

.sv-tagrow button {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sv-ink) 7%, transparent);
  color: var(--sv-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sv-tagrow button.on {
  background: var(--sv-warm);
  color: #fff;
  font-weight: 600;
}

.sv-tagrow .n {
  margin-left: 3px;
  font-size: 11px;
  opacity: 0.6;
}

/* 推送时选标签 */
.sv-tagpick {
  display: grid;
  gap: 8px;
}

.sv-tagpick .chips-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-tagpick .chips-line button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4ddd0;
  border-radius: 999px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sv-tagpick .chips-line button.on {
  border-color: #1a1814;
  background: #1a1814;
  color: #fff;
}

.sv-tagpick .add {
  display: flex;
  gap: 8px;
}

.sv-tagpick .add input {
  flex: 1;
  min-width: 0;
}

.sv-tagpick small {
  color: #6f6a62;
  font-size: 13px;
}

/* ADR-0228：推送页配乐、调色 */
.sv-music label {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.sv-music input[type="range"] {
  width: 100%;
}

.sv-sticker {
  position: absolute;
  z-index: 4;
  left: 50%;
  max-width: 88%;
  margin: 0;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sv-duetline {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #c8e6ff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.sv-slide .pic.look-clear {
  filter: contrast(1.05) saturate(1.1) brightness(1.05);
}

.sv-slide .pic.look-warm {
  filter: sepia(0.25) saturate(1.2);
}

.sv-slide .pic.look-cool {
  filter: hue-rotate(15deg) saturate(0.95) brightness(1.02);
}

.sv-slide .pic.look-bw {
  filter: grayscale(1);
}

/* 搜索分栏（ADR-0228） */
.sv-stabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.sv-stabs button,
.sv-stab {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e4ddd0;
  border-radius: 999px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sv-stabs button.on,
.sv-stab.on {
  border-color: #1a1814;
  background: #1a1814;
  color: #fff;
}

.sv-searchhits {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
}

.sv-searchhits button {
  justify-content: flex-start;
  text-align: left;
}

.sv-searchhits .hint {
  margin: 0;
  color: #6f6a62;
  font-size: 14px;
}

/* 没登录：上面一条 Y 字、yapom、登录、注册；下面一句话；底下一条不挡事的「注册」 */
.sv-line {
  margin: 0;
  padding: 0 12px 2px;
  transition: opacity 0.18s ease;
  color: var(--sv-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sv-nudge {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 20px), 440px);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--sv-ink);
  color: var(--sv-on);
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.28);
}

.sv-nudge span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.sv-nudge a {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sv-warm);
  color: #fff;
  font-weight: 600;
  line-height: 34px;
}

.sv-nudge button {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
}

/* ---------- 瀑布：边到边，缝 4 像素，圆角 10 ---------- */

.sv-main {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--sv-gap) calc(84px + env(safe-area-inset-bottom));
}

.sv-note {
  margin: 0 2px 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--sv-card);
  font-size: 13px;
  line-height: 1.45;
}

.sv-feed {
  display: flex;
  align-items: flex-start;
  gap: var(--sv-gap);
}

.sv-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sv-gap);
  min-width: 0;
}

.sv-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sv-paper);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.06);
  contain: layout paint;
  -webkit-touch-callout: none;
  user-select: none;
}

.sv-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--sv-card);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-touch-callout: none;
}

.sv-cover:active {
  filter: brightness(0.94);
}

.sv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.sv-img.in {
  opacity: 1;
}

.sv-img.gone {
  display: none;
}

/* 原型的示例形象：整个人放下，脚踩在卡片底边 */
.sv-img.art {
  top: auto;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
}

.sv-kind {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.55);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sv-kind .sv-i {
  width: 13px;
  height: 13px;
  fill: #fff;
  stroke: none;
}

.sv-mine,
.sv-off {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.9);
  color: #1a1814;
  font-size: 12px;
  font-weight: 600;
}

/* AI 生成（ADR-0191）：图左下角一个小标，全屏里在名字上面 */
.sv-ai {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(52, 85, 140, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.sv-cover .sv-ai {
  position: absolute;
  left: 6px;
  bottom: 6px;
}

.sv-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

/* 孩子的作品：家长代发、哪一类（ADR-0190 后续） */
.sv-kidtag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.9);
  color: #8a5a12;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.sv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #c8d5ec;
  border-radius: 14px;
  background: #eef3fb;
  font-size: 15px;
}

.sheet-card .sv-check input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: #34558c;
}

.sheet-card .sv-check {
  display: flex;
}

.sv-check small {
  display: block;
  margin-top: 2px;
  color: #6f6a62;
  font-size: 13px;
  line-height: 1.45;
}

.sv-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-cats button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e4ddd0;
  border-radius: 999px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.sv-cats button.on {
  border-color: #1a1814;
  background: #1a1814;
  color: #fff;
  font-weight: 600;
}

.sv-off.gold { background: #fdf0d5; color: #8a5a12; }
.sv-off.green { background: #e2f3ea; color: #2f7a55; }
.sv-off.red { background: #fbe3dc; color: #b2452f; }

.sv-card.off .sv-img {
  filter: saturate(0.6);
}

/* 图下面：一两行标题，再一行小头像、网名、口碑、喜欢数 */
.sv-body {
  padding: 6px 8px 6px;
}

.sv-title {
  display: -webkit-box;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--sv-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  text-align: left;
  cursor: pointer;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sv-card .sv-by {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin: 0 -4px;
  color: var(--sv-muted);
  font-size: 12px;
}

.sv-who {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 5px;
  height: 26px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sv-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-by .head {
  --size: 18px;
}

.sv .kb {
  display: inline-block;
  flex: none;
  padding: 0 6px;
  border-radius: 999px;
  background: #ece6dc;
  color: #6f675d;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
}

.sv .kb.good { background: #e6f0e4; color: #3d6b37; }
.sv .kb.best { background: #f4ead2; color: #8a6418; }

.sv-by .kb {
  padding: 0 5px;
  font-size: 10px;
  line-height: 15px;
}

/* 「本城实体店」（ADR-0195） */
.sv .sb {
  display: inline-block;
  flex: none;
  padding: 0 6px;
  border-radius: 999px;
  background: #e3ecf2;
  color: #2f5c78;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
  cursor: pointer;
}

.sv-by .sb {
  padding: 0 5px;
  font-size: 10px;
  line-height: 15px;
}

/* 瀑布小卡片：小店铺图标 + 「店」 */
.sv .sb.sb-mini {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sv .sb.sb-mini svg {
  width: 11px;
  height: 11px;
  flex: none;
}

.sv-likes {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}

.sv-likes .sv-i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.sv-likes.on .sv-i {
  fill: var(--sv-warm);
  stroke: var(--sv-warm);
}

/* 骨架：内容来之前先占好格子 */
.sv-skel {
  border-radius: 10px;
  background:
    linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--sv-chip) 55%, transparent) 50%, transparent 70%) 0 0 / 220% 100%,
    var(--sv-paper);
  animation: sv-shine 1.3s linear infinite;
}

@keyframes sv-shine {
  from { background-position: 120% 0, 0 0; }
  to { background-position: -120% 0, 0 0; }
}

.sv-sentinel {
  width: 1px;
  height: 1px;
}

.sv-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 16px 0;
  color: var(--sv-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.sv-end button,
.sv-empty button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sv-empty {
  margin: 24px 16px;
  color: var(--sv-muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

/* 主栏空态品牌场（ADR-0229） */
.sv-brand-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 48px 16px 24px;
  padding: 28px 20px 32px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--sv-paper) 88%, var(--sv-warm));
  color: var(--sv-ink);
}

.sv-brand-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.sv-brand-line {
  margin: 0;
  color: var(--sv-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sv-brand-hint {
  margin: 4px 0 0;
  color: var(--sv-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sv-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sv-brand-empty .btn {
  min-width: 120px;
}

/* 推送确认「再美化一下」（ADR-0229） */
.pub-pretty {
  margin: 12px 0 4px;
  border: 1px solid var(--sv-line);
  border-radius: 12px;
  background: var(--sv-paper);
  overflow: hidden;
}

.pub-pretty > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.pub-pretty > summary::-webkit-details-marker {
  display: none;
}

.pub-pretty > summary small {
  font-weight: 400;
  color: var(--sv-muted);
  font-size: 12px;
}

.pub-pretty > summary small::after {
  content: " ▾";
}

.pub-pretty[open] > summary small::after {
  content: " ▴";
}

.pub-pretty > :not(summary) {
  margin-left: 14px;
  margin-right: 14px;
}

.pub-pretty > :not(summary):last-child {
  margin-bottom: 14px;
}

/* 下拉刷新 */
.sv-pull {
  position: fixed;
  top: calc(env(safe-area-inset-top) - 44px);
  left: 50%;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sv-ink);
  color: var(--sv-on);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 0);
  pointer-events: none;
}

.sv-pull.show {
  opacity: 1;
}

.sv-pull .sv-i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.sv-pull.ready .sv-i {
  transform: rotate(180deg);
}

.sv-pull.busy .sv-i {
  animation: sv-spin 0.8s linear infinite;
}

@keyframes sv-spin {
  to { transform: rotate(360deg); }
}

/* 右下「推送到舞台」 */
.sv-fab {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--sv-ink);
  color: var(--sv-on);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 8px 22px rgba(26, 24, 20, 0.28);
  transition: transform 0.22s ease, opacity 0.22s ease;
  cursor: pointer;
}

.sv-fab .icon,
.sv-fab .sv-i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sv-fab[hidden] {
  display: none;
}

/* 作者的卡通头像：好友和自己的是形象，别人是剪影（ADR-0079、ADR-0157） */
.head {
  --size: 22px;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--size);
  height: var(--size);
  overflow: hidden;
  border-radius: 50%;
  background: #ebe4d6 center / cover no-repeat;
  color: #6f6a62;
}

.head .icon,
.head .sv-i {
  width: 70%;
  height: 70%;
  stroke-width: 1.6;
}

.head .face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 全屏：一列竖屏，上下滑换一条，后面是这张图模糊放大，不留黑边 ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: #0d0c0a;
  color: #fff;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.sv-track {
  position: relative;
  width: min(100%, 560px);
  height: 100%;
  margin: 0 auto;
  will-change: transform;
}

.sv-track.slide-anim {
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sv-slide {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
}

.sv-backdrop {
  position: absolute;
  inset: -40px;
  background: #1a1814 center / cover no-repeat;
  filter: blur(28px) brightness(0.55) saturate(1.2);
  transform: scale(1.1);
}

.sv-slide::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.sv-slide .pic {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 双指放大后：画面可平移，松手保持（ADR-0226） */
.viewer.mz-on .sv-info,
.viewer.mz-on .sv-side,
.viewer.mz-on .sv-sound,
.viewer.mz-on .sv-land,
.viewer.mz-on .v-hint,
.viewer.mz-on .viewer-top {
  opacity: 0.35;
  pointer-events: none;
}

.sv-slide img.mz-zoomed,
.sv-slide video.mz-zoomed,
.sv-slide .pic.mz-zoomed {
  will-change: transform;
  z-index: 2;
}

.sv-slide img.pic {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sv-slide img.pic.in {
  opacity: 1;
}

.sv-slide video.pic,
.sv-slide .pic.fill {
  width: 100%;
  height: 100%;
}

.sv-slide .pic.fill {
  object-fit: cover;
}

.sv-slide .pic.art {
  align-self: end;
  height: 82%;
  object-fit: contain;
  object-position: center bottom;
}

.paused-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

.paused-mark .sv-i {
  width: 38px;
  height: 38px;
  fill: #fff;
  stroke: none;
}

.viewer.paused .sv-slide.on.video .paused-mark {
  display: flex;
}

.viewer.paused .v-bar.fake i {
  animation-play-state: paused;
}

.sv-sound {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sv-sound .sv-i {
  width: 20px;
  height: 20px;
}

.sv-sound.on span {
  display: none;
}

.sv-sound.on {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.sv-info {
  position: absolute;
  left: 14px;
  right: 76px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 2;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.sv-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sv-author .sv-who {
  flex: 0 1 auto;
  height: 44px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}

.sv-author .head {
  --size: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.sv-follow {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sv-follow.done {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 400;
}

.sv-cap {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-line;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}

.sv-cap.open {
  display: block;
  max-height: 40vh;
  overflow-y: auto;
}

.sv-cap b {
  font-weight: 600;
}

.sv-cap b + span::before {
  content: " ";
}

.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
}

.sv-tags button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.sv-meta {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.72;
}

.sv-side {
  position: absolute;
  right: 6px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.sv-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 62px;
  min-height: 58px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sv-act .sv-i {
  width: 32px;
  height: 32px;
  stroke-width: 1.7;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.sv-act.like .sv-i {
  width: 36px;
  height: 36px;
}

.sv-act.on .sv-i {
  fill: #fff;
}

.sv-act.like.on .sv-i {
  fill: var(--sv-warm, #e0735c);
  stroke: var(--sv-warm, #e0735c);
}

.sv-act.pop .sv-i {
  animation: sv-pop 0.36s ease;
}

@keyframes sv-pop {
  40% { transform: scale(1.3); }
}

/* 点两下：点的地方冒出一颗心 */
.sv-burst {
  position: absolute;
  z-index: 4;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  pointer-events: none;
  animation: sv-burst 0.8s ease-out forwards;
}

.sv-burst .sv-i {
  width: 100%;
  height: 100%;
  fill: var(--sv-warm, #e0735c);
  stroke: #fff;
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@keyframes sv-burst {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  18% { opacity: 1; transform: scale(1.12) rotate(-6deg); }
  36% { transform: scale(0.95) rotate(-8deg); }
  100% { opacity: 0; transform: translateY(-70px) scale(1.2) rotate(-8deg); }
}

/* 照片点一下：字和按钮收起来，只看图 */
.viewer.bare .sv-info,
.viewer.bare .sv-side,
.viewer.bare .viewer-top {
  opacity: 0;
  pointer-events: none;
}

.v-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.v-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.v-bar.fake i {
  width: 100%;
  transform-origin: left;
  animation: sv-bar var(--secs, 30s) linear infinite;
}

@keyframes sv-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.viewer-top {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 560px);
  padding: 0 12px;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.viewer .v-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.viewer .v-btn .icon,
.viewer .v-btn .sv-i {
  width: 22px;
  height: 22px;
}

.viewer .v-count {
  margin-left: auto;
}

.viewer .v-count,
.viewer .v-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 12px;
  white-space: nowrap;
}

.v-nav {
  position: absolute;
  top: 50%;
  left: calc(50% + 300px);
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.viewer .round-dark {
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
}

.viewer .round-dark:disabled {
  opacity: 0.3;
}

@media (min-width: 700px) {
  .v-nav {
    display: flex;
  }
}

.v-hint {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 3;
  margin: 0;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 14px;
  /* 多张照片的提示长一些，窄手机上折成两行，不出屏 */
  width: max-content;
  max-width: calc(100% - 40px);
  text-align: center;
  text-wrap: balance;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.v-hint.gone {
  opacity: 0;
}

/* ---------- 全屏里的评论：从下面弹出（ADR-0189）；顶上独立预览当前作品（ADR-0230） ---------- */

.viewer.sv-commenting {
  --sv-c-top: 32%;
  /* 必须整屏铺满，不能缩高度——一缩底下瀑布其它作品就露出来 */
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: #0d0c0a;
  box-sizing: border-box;
}

/* 实色遮罩：盖住轨道和任何透出来的层 */
.sv-cveil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #0d0c0a;
  pointer-events: none;
}

/* 上下滑轨道整条藏掉，只留顶上的 sv-cprev */
.viewer.sv-commenting .sv-track,
.viewer.sv-commenting .sv-info,
.viewer.sv-commenting .sv-side,
.viewer.sv-commenting .sv-sound,
.viewer.sv-commenting .sv-land,
.viewer.sv-commenting .sv-marks,
.viewer.sv-commenting .v-hint,
.viewer.sv-commenting .v-nav,
.viewer.sv-commenting .v-bar {
  visibility: hidden !important;
  pointer-events: none !important;
}

.viewer.sv-commenting .viewer-top {
  z-index: 8;
  opacity: 0.9;
}

/* 当前作品预览：固定在上沿，完整 contain；点一下关上评论 */
.sv-cprev {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sv-c-top, 32%);
  padding-top: env(safe-area-inset-top, 0);
  box-sizing: border-box;
  overflow: hidden;
  background: #0d0c0a;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sv-cprev .pic,
.sv-cprev video,
.sv-cprev img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sv-cprev-slot {
  display: none;
}

/* 评论层从预览下面实色铺满到底；宽度跟可视区走，不横向超出 */
.sv-cwrap {
  position: absolute;
  top: var(--sv-c-top, 32%);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  background: #0d0c0a;
  touch-action: auto;
  user-select: text;
  -webkit-user-select: text;
  animation: sv-fade 0.18s ease;
  box-sizing: border-box;
  overflow: hidden;
}

/* 键盘抬起时的规则见下方 .sv-cwrap.sv-ckb 一段，避免两处打架 */

@keyframes sv-fade {
  from { opacity: 0; }
}

.sv-csheet {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  background: #fffcf7;
  color: #1a1814;
  animation: sv-up 0.22s ease-out;
  box-sizing: border-box;
}

@media (min-width: 560px) {
  .sv-csheet {
    max-width: 560px;
  }
}

@keyframes sv-up {
  from { transform: translateY(40px); opacity: 0.6; }
}

.sv-chead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex: none;
  font-size: 14px;
}

.sv-cx {
  position: absolute;
  top: 2px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #6f6a62;
  cursor: pointer;
}

.sv-clist {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 12px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.sv-c {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
}

.sv-c.sub {
  padding: 4px 0 4px 41px;
}

.sv-c.held {
  opacity: 0.6;
}

.sv-c .head {
  margin-top: 2px;
}

.sv-cbody {
  flex: 1;
  min-width: 0;
  -webkit-touch-callout: none;
}

.sv-cname {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #8a847b;
  font-size: 12.5px;
}

.sv-cname .kb {
  margin-left: 0;
}

.sv-ctext {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
  cursor: pointer;
}

.sv-cto {
  color: #8a847b;
}

.sv-ctag {
  display: inline-block;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  vertical-align: 1px;
}

.sv-ctag.author { background: #ebe4d6; color: #6f6a62; }
.sv-ctag.pin { background: #1a1814; color: #fffcf7; }
.sv-ctag.warm { background: #fbe3dc; color: #b2452f; }

.sv-cmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin: 3px 0 0;
  color: #9a948a;
  font-size: 12px;
}

.sv-cmeta button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #6f6a62;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sv-cnote {
  color: #b2452f;
}

.sv-clike {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 34px;
  min-height: 40px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #9a948a;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.sv-clike .sv-i {
  width: 18px;
  height: 18px;
}

.sv-clike.on {
  color: var(--sv-warm, #e0735c);
}

.sv-clike.on .sv-i {
  fill: currentColor;
}

.sv-cmore {
  margin: 0 0 4px 41px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #6f6a62;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.sv-cmore::before {
  content: "—— ";
  color: #cfc7b8;
}

.sv-cempty {
  margin: 40px 0;
  color: #9a948a;
  font-size: 14px;
  text-align: center;
}

.sv-cwhy {
  flex: none;
  margin: 0;
  padding: 8px 12px 0;
  color: #8a5a12;
  font-size: 13px;
  text-align: center;
}

.sv-cbar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #efe8dc;
  position: relative;
  z-index: 1;
  background: #fffcf7;
  box-sizing: border-box;
}

/* 输入法起来（照快手）：白底铺满可视区底边，输入条贴底；字在地址条之上 */
.sv-cwrap.sv-ckb {
  justify-content: stretch;
  padding-bottom: 0 !important;
}

.sv-cwrap.sv-ckb .sv-csheet {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.sv-cwrap.sv-ckb .sv-chead {
  height: 36px;
}

.sv-cwrap.sv-ckb .sv-clist {
  padding-bottom: 4px;
}

.sv-cwrap.sv-ckb .sv-cbar {
  padding: 6px 10px 8px;
  border-bottom: 0;
  /* 输入条略抬一点，避免贴边时被系统工具条擦到 */
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

.sv-cwrap.sv-ckb .sv-cbar input {
  height: 36px;
  font-size: 16px;
}

.sv-cwrap.sv-ckb .sv-csend {
  width: 44px;
  height: 44px;
}

.sv-creply {
  flex: none;
  max-width: 40%;
  padding: 4px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #ebe4d6;
  color: #6f6a62;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sv-cbar input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: #f1ebe0;
  color: #1a1814;
  font: inherit;
  font-size: 15px;
  /* 第一次点就能进输入：别被全屏 user-select:none / touch-action:none 吃掉 */
  touch-action: manipulation;
  user-select: text;
  -webkit-user-select: text;
}

.sv-csend {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a1814;
  color: #fffcf7;
  cursor: pointer;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sv-csend:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.sv-csend .sv-i {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.sv-cquote {
  display: -webkit-box;
  overflow: hidden;
  color: #6f6a62;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- 作者页、我的舞台：整页盖上来 ---------- */

.sv-page {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  padding: 0 var(--sv-gap) calc(24px + env(safe-area-inset-bottom));
  background: var(--sv-bg);
  color: var(--sv-ink);
  overscroll-behavior: contain;
  animation: sv-in 0.2s ease-out;
}

@keyframes sv-in {
  from { opacity: 0; transform: translateY(14px); }
}

.sv-ptop {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(48px + env(safe-area-inset-top));
  margin: 0 calc(-1 * var(--sv-gap));
  padding: env(safe-area-inset-top) 12px 0 6px;
  background: color-mix(in srgb, var(--sv-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sv-ptitle {
  overflow: hidden;
  color: var(--sv-muted);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-phead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 10px;
}

.head.big {
  --size: 64px;
  border: 2px solid var(--sv-chip);
  box-shadow: 0 2px 10px rgba(26, 24, 20, 0.12);
}

.sv-pwho {
  min-width: 0;
}

.sv-pwho h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  color: var(--sv-ink);
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-pstats {
  margin: 4px 0 0;
  color: var(--sv-muted);
  font-size: 13px;
}

.sv-pacts {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
}

.sv-pbtn {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--sv-line);
  border-radius: 12px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.sv-pbtn.primary {
  border-color: var(--sv-ink);
  background: var(--sv-ink);
  color: var(--sv-on);
  font-weight: 600;
}

.sv-pnote {
  margin: 0 10px 4px;
  color: var(--sv-muted);
  font-size: 12px;
  line-height: 1.45;
}

.sv-pchips {
  position: sticky;
  top: calc(48px + env(safe-area-inset-top));
  z-index: 2;
  margin: 0 calc(-1 * var(--sv-gap));
  padding: 6px 6px 8px;
  background: var(--sv-bg);
}

/* ---------- 直播：正在播的对外直播，同样密的两列 ---------- */

.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--sv-gap);
}

.live-list .room {
  position: static;
  display: block;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--sv-card);
  box-shadow: none;
  color: var(--sv-ink);
  text-decoration: none;
  user-select: auto;
}

.room-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.room-cover img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 90%;
  transform: translateX(-50%);
  pointer-events: none;
}

.room-cover .room-shot {
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.room-cover .room-head-big {
  --size: 96px;
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
}

.room-on {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d64541;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.room-cover .dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.55);
  color: #fff;
  font-size: 12px;
}

.room-by {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.room-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--sv-muted);
  font-size: 12px;
}

.room-text b {
  overflow: hidden;
  color: var(--sv-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-empty {
  display: grid;
  gap: 12px;
  margin: 6px 2px;
  padding: 18px;
  border: 1px dashed var(--sv-line);
  border-radius: 14px;
  color: var(--sv-muted);
  font-size: 15px;
  line-height: 1.5;
}

.live-more {
  display: block;
  margin: 12px 2px 0;
  padding: 12px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font-size: 15px;
  text-align: center;
}

/* ---------- 底部弹层：长按更多、举报、推送到舞台 ---------- */

.sv-menu {
  display: grid;
  gap: 8px;
}

.sv-menu .btn {
  justify-content: flex-start;
  gap: 10px;
}

.sv-menu .btn .sv-i {
  width: 20px;
  height: 20px;
}

.sv-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sv-menu-head img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #ebe4d6;
}

.sv-menu-head p {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.grid.small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 -4px;
}

.tile-s {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #ebe4d6 center / cover no-repeat;
  cursor: pointer;
  -webkit-touch-callout: none;
}

.tile-s img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tile-s img.art {
  top: auto;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
}

.tile-s .sv-kind {
  top: 4px;
  right: 4px;
}

.tile-s.off {
  cursor: not-allowed;
}

.tile-s.off img {
  opacity: 0.35;
}

.tile-s .off-label {
  position: absolute;
  inset: auto 4px 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(26, 24, 20, 0.65);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.pub-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.pub-preview {
  flex: none;
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  cursor: default;
}

.sheet-card .pub-name {
  flex: 1;
  min-width: 0;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.45;
}

.rules li {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f0e6;
  color: #6f6a62;
}

.rules li:first-child {
  grid-column: 1 / -1;
}

.rules b {
  display: block;
  margin-bottom: 1px;
  color: #1a1814;
  font-size: 14px;
}

.face-rule {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ecd9ad;
  border-radius: 14px;
  background: #fffaf0;
}

.face-rule legend {
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.sheet-card .face-rule label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  cursor: pointer;
}

.sheet-card .face-rule input {
  min-height: 0;
  margin-top: 4px;
  padding: 0;
  accent-color: #1a1814;
}

.face-rule small {
  display: block;
  margin-top: 2px;
  color: #6f6a62;
  font-size: 13px;
  line-height: 1.45;
}

.warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbe3dc;
  color: #b2452f;
  font-size: 14px;
  line-height: 1.45;
}

.lt-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #6f6a62;
  line-height: 1.45;
}

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* 原型的演示按钮 */
.demo-box {
  margin: 20px 8px 0;
  color: var(--sv-muted);
  font-size: 13px;
  line-height: 1.5;
}

.demo-box summary {
  cursor: pointer;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.demo-actions button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font: inherit;
  cursor: pointer;
}

/* ---------- 宽屏：缝大一点，列多一点 ---------- */

@media (min-width: 880px) {
  .sv { --sv-gap: 8px; }
  .sv-card,
  .sv-skel { border-radius: 14px; }
  .sv-row1,
  .sv-row2 { max-width: 1480px; margin: 0 auto; padding-left: 12px; padding-right: 12px; }
  .sv-dot { right: 12px; }
}

/* 手机设了「减少动画」：不动 */
@media (prefers-reduced-motion: reduce) {
  .sv-bar,
  .sv-row1,
  .sv-img,
  .sv-slide img.pic,
  .sv-fab,
  .sv-info,
  .sv-side,
  .sv-board-line.ready,
  .viewer-top { transition: none; }
  .sv-skel,
  .sv-pull.busy .sv-i,
  .sv-page,
  .sv-act.pop .sv-i,
  .sv-cwrap,
  .sv-csheet { animation: none; }
  .sv-burst { animation-duration: 0.4s; }
  .v-bar.fake i { animation: none; transform: none; width: 0; }
}

/* ---------- 明了简单（ADR-0192）：顶上一行、搜索里的「只看」和话题、直播插进瀑布、右边作者头像、本人原创小标、确认页收短 ---------- */

/* 字一律不折行；每个栏的宽度跟着屏幕宽收，见下面「顶上四个栏放在正中间」那一段 */
.sv-bar.one .sv-board button {
  white-space: nowrap;
}

.sv-find.on {
  background: color-mix(in srgb, var(--sv-ink) 10%, transparent);
}

.sv-finder {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--sv-line);
}

.sv-finder .sv-row2 {
  padding: 0 8px;
}

.sv-flabel {
  margin: 6px 12px 6px;
  color: var(--sv-muted);
  font-size: 12px;
}

.sv-chips.wrap,
.sv-tagrow.wrap {
  flex-wrap: wrap;
  overflow: visible;
  padding: 0 10px;
}

.sv-activeline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 8px;
  padding: 0 4px 0 12px;
  height: 32px;
  width: fit-content;
  border-radius: 999px;
  background: var(--sv-ink);
  color: var(--sv-on);
  font-size: 14px;
  font-weight: 600;
}

.sv-activeline button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sv-on) 18%, transparent);
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.sv-onair {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d64541;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.sv-card.live .sv-kind {
  top: auto;
  bottom: 6px;
  padding: 0 8px;
}

/* 正在直播的人：头像外面一圈红 */
.head.air {
  box-shadow: 0 0 0 1.5px var(--sv-paper), 0 0 0 3px #d64541;
}

.sv-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 64px;
  margin-bottom: 4px;
}

.sv-facebtn {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.sv-facebtn .head {
  --size: 46px;
  border: 2px solid #fff;
}

.sv-facebtn .head.air {
  border-color: #d64541;
  box-shadow: none;
}

.sv-plus {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sv-warm, #e0735c);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
}

.sv-plus.done {
  background: #fff;
  color: var(--sv-warm, #e0735c);
  font-size: 13px;
}

.sv-act.more {
  min-height: 40px;
}

.sv-act.more .sv-i {
  width: 28px;
  height: 28px;
}

.sv-orig {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rules-sum {
  border-radius: 14px;
  background: #f5f0e6;
}

.rules-sum summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  padding: 10px 12px;
  color: #1a1814;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.rules-sum summary::-webkit-details-marker {
  display: none;
}

.rules-sum summary small {
  color: #6f6a62;
  font-size: 12px;
  font-weight: 400;
}

.rules-sum summary small::after {
  content: "›";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.rules-sum[open] summary small::after {
  transform: rotate(90deg);
}

.rules-sum .rules {
  padding: 0 6px 6px;
}

.rules-sum .rules li {
  background: #fffcf7;
}

.sv-airtag {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 5px;
  border-radius: 6px;
  background: #d64541;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
  pointer-events: none;
}

/* 舞台右上自己的头像：有没看过的消息，头像右上角一个 9 像素的小红点，不写数字（ADR-0217）；
   几条写在头像按钮的 aria-label 上给读屏念。right 和 .sv-row1 右边留的空一样，红点正好压在头像边上 */
.sv-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d64541;
  box-shadow: 0 0 0 1.5px var(--sv-bg);
  pointer-events: none;
}

/* 消息那一张 */
.sv-ilist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.sv-irow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #efe8dc;
  background: none;
  color: #1a1814;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sv-irow .head {
  --size: 40px;
}

.sv-itext {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.sv-itext b {
  font-weight: 600;
}

.sv-itext q {
  overflow: hidden;
  color: #3d3a35;
  text-overflow: ellipsis;
  white-space: nowrap;
  quotes: none;
}

.sv-itext small {
  color: #6f6a62;
  font-size: 12px;
}

.sv-inew {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #d64541;
}

/* ---------- 推送视频：裁一段、选封面、加字幕（ADR-0192 第二批） ---------- */

.sv-edit {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f0e6;
}

.sv-elabel {
  color: #1a1814;
  font-size: 14px;
}

.sv-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
}

.sv-frame {
  display: block;
  background: #d9d0bf center / cover no-repeat;
}

.sv-strip .sv-frame {
  filter: brightness(0.55);
}

.sv-win {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 3px solid #e0735c;
  border-radius: 10px;
  /* 选中的那一段亮起来，没选的压暗 */
  backdrop-filter: brightness(1.8);
  -webkit-backdrop-filter: brightness(1.8);
  pointer-events: none;
}

.sv-ends {
  display: grid;
  gap: 2px;
}

.sv-cut {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6a62;
  font-size: 13px;
}

.sv-cut span {
  flex: none;
  width: 2.2em;
}

.sheet-card .sv-cut {
  display: flex;
  margin: 0;
}

.sv-ends input[type="range"] {
  flex: 1;
  width: 100%;
  margin: 0;
  accent-color: #e0735c;
}

.sv-erange {
  margin: 0;
  color: #6f6a62;
  font-size: 13px;
}

.sv-covers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.sv-cover-pick {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.sv-cover-pick .sv-frame {
  aspect-ratio: 3 / 4;
}

.sv-cover-pick.on {
  border-color: #e0735c;
}

.sv-cover-pick small {
  position: absolute;
  left: 4px;
  bottom: 3px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sv-subs {
  display: grid;
  gap: 6px;
}

.sv-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6f6a62;
}

.sv-sub input[type="number"] {
  width: 44px;
  height: 34px;
  padding: 0 4px;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  background: #fffcf7;
  font: inherit;
  text-align: center;
}

.sv-sub input[maxlength] {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 14px;
}

.sv-subx {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #6f6a62;
  font-size: 18px;
  cursor: pointer;
}

/* 全屏里的字幕：画面中间偏下，白字黑边 */
.sv-subline {
  position: absolute;
  left: 50%;
  bottom: 34%;
  z-index: 2;
  max-width: 82%;
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(20, 18, 15, 0.45);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

/* 瀑布里停在中间的视频：静音预览，下面一条进度 */
.sv-prev {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sv-prev.in {
  opacity: 1;
}

.sv-pbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
}

.sv-pbar::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: #fff;
}

.sv-cover.playing .sv-pbar {
  opacity: 1;
}

.sv-cover.playing .sv-pbar::after {
  animation: sv-pbar 6s linear infinite;
}

@keyframes sv-pbar {
  to { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-cover.playing .sv-pbar::after { animation: none; }
}

/* 消息：三栏、合并的一行、收起来的评论（ADR-0192 后续） */
.sv-ihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sv-iall {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #f5f0e6;
  color: #1a1814;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sv-itabs {
  margin: 4px 0 6px;
}

.sv-itabs button {
  position: relative;
}

.sv-tdot {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d64541;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.sv-itag {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: #e2f3ea;
  color: #2f7a55;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.sv-itag.warm {
  background: #fbe3dc;
  color: #b2452f;
}

/* 「消息」最上面：我关注的人正在直播（ADR-0196 后续） */
.sv-itag.live {
  background: #d64541;
  color: #fff;
}

.sv-iair {
  margin: 0 0 4px;
}

/* 舞台「直播」栏：全部 / 同城 */
.live-where {
  align-items: center;
  margin: 0 0 8px;
}

.live-where select,
.sv-chips .sv-city {
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: var(--sv-chip);
  color: var(--sv-ink);
  font: inherit;
  font-size: 14px;
}

.room-text > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.room-text .sb {
  margin-left: 3px;
  vertical-align: -1px;
}

.sv-iheads {
  display: flex;
  flex: none;
  width: 52px;
}

.sv-iheads .head {
  --size: 30px;
  border: 2px solid #fffcf7;
}

.sv-iheads .head + .head {
  margin-left: -14px;
}

.sv-ifold {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: #6f6a62;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.sv-ilist.folded {
  opacity: 0.75;
}

.sv-iquiet {
  margin: 10px 0 4px;
}

.sheet-card .sv-itabs button {
  border: 1px solid #e4ddd0;
  background: #fffcf7;
  color: #1a1814;
  font-weight: 400;
}

.sheet-card .sv-itabs button.on {
  border-color: #1a1814;
  background: #1a1814;
  color: #fffcf7;
  font-weight: 600;
}

.sheet-card .sv-iquiet b {
  color: #1a1814;
}

.sheet-card .sv-iquiet input {
  accent-color: #1a1814;
}

.sv-inbox > .btn.block {
  color: #1a1814;
}

/* 弹出来的那张卡片底色一直是米白，字也用深色：手机设了深色时，舞台页面的字变浅，卡片里不能跟着变浅 */
.sv .sheet-card {
  --ink: #1a1814;
  --muted: #6f6a62;
  --sv-ink: #1a1814;
  --sv-muted: #6f6a62;
  --sv-chip: #fffcf7;
  --sv-on: #fffcf7;
  --sv-line: #e4ddd0;
  color: #1a1814;
}

/* ---------- 全屏看作品（ADR-0193）：进度条能拖、一条多张照片、横屏全屏 ---------- */

/* 进度条看着细，按的地方宽一些；按住了变粗、出一个圆点、中间写第几秒 */
.v-bar::before {
  content: "";
  position: absolute;
  inset: -16px 0 -6px;
}

.v-bar {
  touch-action: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.v-bar.seeking {
  height: 6px;
}

.v-knob {
  position: absolute;
  top: 50%;
  left: calc(var(--k, 0) * 100%);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.v-bar.seeking .v-knob {
  opacity: 1;
}

.v-bar.fake.seeking i {
  animation-play-state: paused;
}

.v-time {
  position: absolute;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom));
  z-index: 3;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(20, 18, 15, 0.55);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.sv-slide.seeking .v-time {
  opacity: 1;
}

.sv-slide.seeking .sv-info,
.sv-slide.seeking .sv-side,
.sv-slide.seeking .sv-land {
  opacity: 0;
}

/* 一条多张照片（ADR-0193 和后续）：横着一排，一张占一屏，一次只翻一张。手指拖由 stageview.js 跟着挪 .sv-strip
   （只改 transform），翻到头再滑才能接着让整页跟着走；整个全屏 touch-action: none，浏览器不抢 */
.sv-slide .pic.sv-album {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

.sv-strip {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.sv-album img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 翻到头再滑（ADR-0193 后续）：往回时全屏跟着手往右挪、左边带一道影子；往后时作者页（peek）盖在全屏上面从右边滑进来；
   两页中间一层淡淡的黑（sv-scrim）。都只改 transform 和透明度 */
.viewer.moving {
  box-shadow: -14px 0 32px rgba(0, 0, 0, 0.35);
  will-change: transform;
}

.sv-page.peek {
  z-index: 61;
  box-shadow: -14px 0 32px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.sv-page.peek,
.sv-page.still {
  animation: none;
}

.sv-scrim {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* 右上「2/5」：第几张 / 一共几张 */
.sv-pages {
  position: absolute;
  top: calc(60px + env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.sv-dots {
  position: absolute;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.sv-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease;
}

.sv-dots i.on {
  background: #fff;
}

/* 横着拍的视频：画面下面一个「全屏看」 */
.sv-land {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.45);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transform: translateX(-50%);
  cursor: pointer;
}

.sv-land .sv-i {
  width: 18px;
  height: 18px;
}

.viewer.land .viewer-top,
.viewer.land .v-nav,
.viewer.land .sv-side,
.viewer.land .sv-info,
.viewer.land .sv-land,
.viewer.land .sv-sound,
.viewer.land .v-hint {
  display: none;
}

/* 手机自己转不过来（苹果网页）：把画面转 90 度铺满 */
.viewer.land:not(.turned) .sv-slide.on .pic {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 100vh;
  height: 100vw;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(90deg);
}

.viewer.land.turned .sv-slide.on .pic {
  width: 100%;
  height: 100%;
}

.sv-landx {
  position: fixed;
  right: 14px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 6;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.6);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.viewer.land:not(.turned) .sv-landx {
  right: -14px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: rotate(90deg);
}

/* 「更多」里的倍速 */
.sv-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #6f6a62;
  font-size: 14px;
}

.sv-speed span {
  flex: 1;
}

.sv-speed button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e4ddd0;
  border-radius: 999px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sv-speed button.on {
  border-color: #1a1814;
  background: #1a1814;
  color: #fffcf7;
}

/* 推送照片时「再加几张」（ADR-0193） */
.sv-more {
  display: grid;
  gap: 8px;
}

.sv-morerow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-morerow:empty {
  display: none;
}

.sv-morepic {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #e9e2d4 center / cover no-repeat;
}

.sv-morepic small {
  position: absolute;
  left: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sv-morex {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a1814;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.sv-pick.on {
  outline: 3px solid #e0735c;
  outline-offset: -3px;
}

/* 作者页、我的舞台能从左往右划回去（ADR-0193 后续，2026-11-04）：竖着照常滚，横着交给网页；挪的时候不要动画 */
.sv-page {
  touch-action: pan-y;
}

.sv-page.moving {
  animation: none;
  will-change: transform;
}

/* 「回到舞台」（ADR-0193 后续，2026-11-04 下午）：叠了两层以上才有，一下回舞台首页；按住「返回」也一样。
   作者页上放在顶上一行最右边，全屏里跟在「返回」后面 */
.sv-home {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  height: 32px;
  margin-left: auto;
  padding: 0 10px 0 7px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sv-ink) 8%, transparent);
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sv-home .sv-i {
  width: 18px;
  height: 18px;
}

.sv-home[hidden] {
  display: none;
}

.viewer .sv-home {
  height: 40px;
  margin-left: 0;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

/* 推广、广告（ADR-0198）：加热的写「推广」、商单的写「广告」，图右下角一个小标，全屏里在名字上面，一定看得见 */
.sv-promo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.92);
  color: #8a5a12;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.sv-cover .sv-promo {
  position: absolute;
  right: 6px;
  bottom: 6px;
}

/* 顶上四个栏放在正中间（ADR-0217），360 到 430 宽的手机上不压左边的 Y 图标、不压右边的搜索和头像。
   右边占的最多：行右边的空 8 + 头像 32 + 空 6 + 搜索 36 = 82；左边是 6 + Y 图标 36 = 42。
   四个栏在正中间，一半宽不能超过「屏幕一半 - 82 - 留 6」，所以每个栏宽 = (屏幕宽 - 2 × (82 + 6)) ÷ 4 = (100vw - 176px) / 4，
   最窄 46（亮着的两个字 18 像素一个是 36，两边还各有 5）、最宽 64：
   360 宽 46 × 4 = 184，右边剩 6；390 宽 53.5，剩 6；430 宽 63.5，剩 6；再宽就是 64，越来越松。
   原型只有三个栏，同一个宽度，更松。tests/test_gallery.py 照这里的数一个一个加过 */
.sv-bar.one .sv-board button {
  width: clamp(46px, calc((100vw - 176px) / 4), 64px);
}

/* 推荐栏最上面一行：现在怎么排的，点「怎么排的」看说明、开关个性化 */
.sv-recline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 8px 6px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--sv-paper);
  color: var(--sv-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sv-recline span {
  flex: 1;
  min-width: 0;
}

.sv-recline button {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--sv-line);
  border-radius: 999px;
  background: none;
  color: var(--sv-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sv-explain {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-explain li {
  color: #6f6a62;
  font-size: 14px;
  line-height: 1.5;
}

.sv-explain b {
  display: block;
  color: #1a1814;
  font-size: 14px;
}

.sv-likes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.sv-likes-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3efe6;
  color: #1a1814;
  font-size: 13px;
}

/* 话题挑战和节日活动（ADR-0198）：搜索里热门话题上面一排小卡片，点了进挑战页 */
.sv-chrow {
  display: flex;
  gap: 8px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-chrow::-webkit-scrollbar {
  display: none;
}

.sv-chrow a {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: var(--ch, #e0735c);
  color: #fff;
  text-decoration: none;
}

.sv-chrow .e {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 19px;
}

.sv-chrow b {
  display: block;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-chrow small {
  display: block;
  opacity: 0.88;
  font-size: 11px;
}

/* 作者页名字下面：等级和拿到的徽章（ADR-0198），小小一行 */
.sv-plevel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 10px 10px;
}

.sv-plevel:empty {
  display: none;
}

.sv-lv {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2b84b, #e0735c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  background: var(--sv-paper);
  color: var(--sv-ink);
  font-size: 12px;
  white-space: nowrap;
}

.sv-plevel a {
  margin-left: auto;
  color: var(--sv-muted);
  font-size: 12px;
  text-decoration: none;
}

/* 「直播」那一块最上面一行：左边「全部 / 同城」，右上角一个小「榜」（ADR-0217，原来是一张「直播榜单」大卡片，ADR-0198 第 3 条），
   点了进直播页的榜单。「全部 / 同城」还没出来时「榜」照样靠右；暖色底在深色模式下也看得清 */
.sv-livetop {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sv-rank-entry {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 44px;
  height: 34px;
  margin: 0 0 8px auto;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf0d5, #fbe3dc);
  color: #8a5a12;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 推送时：什么时候公开、放进合集（和选话题标签同一种样子） ---------- */

.sv-when input[type="datetime-local"] {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  background: #fffcf7;
  color: #1a1814;
  font: inherit;
  font-size: 15px;
}

.sv-tagpick .chips-line button .n {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.6;
}

.sv-tagpick .chips-line button.new {
  border-style: dashed;
  color: #6f6a62;
}

.sv-pubbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sv-pubbtns .primary {
  grid-column: 1 / -1;
}

/* ---------- 作者页、我的舞台：一排合集 ---------- */

.sv-sets {
  padding: 2px 0 8px;
}

.sv-sets .sv-flabel {
  margin: 0 12px 6px;
}

.sv-setrow {
  display: flex;
  gap: 10px;
  padding: 0 12px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-setrow::-webkit-scrollbar {
  display: none;
}

.sv-set {
  flex: none;
  width: 96px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sv-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sv-setcover {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sv-card);
  color: var(--sv-muted);
  font-size: 26px;
}

.sv-setcover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-setn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
}

.sv-set.new .sv-setcover {
  border: 1.5px dashed var(--sv-line);
  background: transparent;
}

.sv-setname {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 全屏里：「合集 · 名字 · 第 3/8 条」 */
.sv-setline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sv-setline .sv-i {
  width: 15px;
  height: 15px;
}

/* 话题页、合集页头上的大方块：「#」或者合集封面 */
.sv-taghead {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sv-ink);
  color: var(--sv-on);
  font-size: 34px;
  font-weight: 700;
}

.sv-taghead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 消息：30 天以前的只留个数 */
.sv-iolder {
  margin: 10px 4px 4px;
  color: #6f6a62;
  font-size: 13px;
  text-align: center;
}
