/* ttgame 风格覆盖层（液态玻璃，亮白 / 暗黑两套）。最后加载，只改外观，不改布局逻辑和功能。
 * 规则（ttgame docs/design/06-界面规范）：
 *  - 近黑 / 浅灰底 + 固定径向渐变光斑（不动画、不 filter: blur）
 *  - 卡片 / 列表 / 视频格子 = 半透明 + 边缘光内阴影，绝不加 backdrop-filter
 *  - 只有浮层（底栏、吸顶顶栏、弹层、Toast）模糊
 *  - 圆角 14 / 22 / 30；按钮、标签、输入框一律胶囊；品牌蓝 #1689ff
 *  - 视频热门流 / 播放页保持全屏黑底，不受浅色主题影响（.feed-mode 规则见文末）
 * 变量层在 style.css 开头（--ok-*）；这里补 ttgame 自己的玻璃变量。 */

/* ---------- 变量 ---------- */
:root {
  --tt-brand: #1689ff;
  --tt-radius-sm: 14px;
  --tt-radius: 22px;
  --tt-radius-lg: 30px;
  --tt-spring: cubic-bezier(.34, 1.36, .64, 1);
  --ok-tabbar-height: 62px;

  /* 亮白：浅灰底 + 很淡的蓝 / 紫光斑；白色半透明玻璃 + 细边缘光 + 轻投影 */
  --tt-ambient:
    radial-gradient(60% 38% at 88% 2%, rgb(22 137 255 / 13%), transparent 70%),
    radial-gradient(55% 34% at 0% 46%, rgb(124 77 255 / 8%), transparent 70%),
    radial-gradient(60% 34% at 100% 98%, rgb(22 137 255 / 7%), transparent 70%);
  --tt-sheen: linear-gradient(180deg, rgb(255 255 255 / 55%) 0%, rgb(255 255 255 / 12%) 40%, transparent 72%);
  --tt-glass-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 75%), inset 1.5px 2px 0 -1px rgb(255 255 255 / 95%),
    0 0 0 0.5px rgb(17 19 40 / 5%), 0 1px 2px rgb(20 30 60 / 4%), 0 8px 22px -14px rgb(20 30 60 / 16%);
  --tt-glass-shadow-deep:
    inset 0 0 0 1px rgb(255 255 255 / 70%), inset 1.8px 3px 0 -2px rgb(255 255 255 / 95%),
    inset -2px -2px 0 -2px rgb(255 255 255 / 60%), 0 0 0 0.5px rgb(17 19 40 / 6%),
    0 1px 5px rgb(20 30 60 / 6%), 0 12px 32px -8px rgb(20 30 60 / 18%);
  --tt-indicator-bg: rgb(255 255 255 / 92%);
  --tt-indicator-shadow: inset 0 0 0 0.5px rgb(17 19 40 / 6%), inset 2px 1px 0 -1px #fff, 0 3px 10px -2px rgb(20 30 60 / 16%);
  --tt-pill-bg: rgb(255 255 255 / 70%);
  --tt-input-bg: rgb(255 255 255 / 70%);
  --ok-card-depth: var(--tt-glass-shadow);
  --me-bg: transparent;
  --me-card: var(--ok-surface);
}

:root.dark {
  /* 暗黑：ttgame 原样 */
  --me-bg: transparent;
  --me-card: var(--ok-surface);
  --ok-card-depth: var(--tt-glass-shadow);
  --tt-ambient:
    radial-gradient(60% 38% at 88% 4%, rgb(22 137 255 / 34%), transparent 70%),
    radial-gradient(55% 34% at 0% 46%, rgb(124 77 255 / 18%), transparent 70%),
    radial-gradient(60% 34% at 100% 96%, rgb(38 161 123 / 14%), transparent 70%);
  --tt-sheen: linear-gradient(180deg, rgb(255 255 255 / 7%) 0%, rgb(255 255 255 / 1.5%) 38%, transparent 70%);
  --tt-glass-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 5%), inset 1.8px 3px 0 -2px rgb(255 255 255 / 16%),
    inset -2px -2px 2px -2px rgb(255 255 255 / 12%), inset -1.8px -3px 0 -2px rgb(255 255 255 / 6%);
  --tt-glass-shadow-deep:
    inset 0 0 0 1px rgb(255 255 255 / 4%), inset 1.8px 3px 0 -2px rgb(255 255 255 / 27%),
    inset -2px -2px 0 -2px rgb(255 255 255 / 24%), inset -3px -8px 1px -6px rgb(255 255 255 / 18%),
    inset -0.3px -1px 4px 0 rgb(0 0 0 / 24%), inset 0 3px 4px -2px rgb(0 0 0 / 30%),
    0 1px 5px 0 rgb(0 0 0 / 20%), 0 10px 28px 0 rgb(0 0 0 / 35%);
  --tt-indicator-bg: rgb(255 255 255 / 10%);
  --tt-indicator-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 4%), inset 2px 1px 0 -1px rgb(255 255 255 / 27%),
    inset -1.5px -1px 0 -1px rgb(255 255 255 / 24%), inset -2px -6px 1px -5px rgb(255 255 255 / 18%),
    inset -1px 2px 3px -1px rgb(0 0 0 / 40%), 0 3px 6px rgb(0 0 0 / 16%);
  --tt-pill-bg: rgb(30 48 82 / 72%);
  --tt-input-bg: rgb(255 255 255 / 7%);
}

/* 降级：降低透明度 → 实色、无光斑；慢设备 → 浮层不模糊（style.css 已把 --ok-blur 置 none） */
@media (prefers-reduced-transparency: reduce) {
  :root, :root.dark { --tt-ambient: linear-gradient(transparent, transparent); --tt-pill-bg: var(--ok-surface-solid); --tt-input-bg: var(--ok-surface-solid); }
}

/* ---------- 底色 + 光斑 ---------- */
html { background: var(--ok-page); }
html body { background: transparent; color: var(--ok-label); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--tt-ambient), var(--ok-page);
}
/* 一级页透出光斑；全屏二级页（盖在上面）自带同一套光斑，保持不透明 */
html .lv-catalog, html .game-page, html .cp-page, html #app:has(.me-page), html body:has(.me-page) { background: transparent; }
html .ok-page, html .wallet-history-page, html .profile-edit-page, html .video-search-page, html .creator-profile-page {
  background: var(--tt-ambient), var(--ok-page);
}
html .video-search-top, html .wallet-history-top, html .wallet-history-tabs {
  background: color-mix(in srgb, var(--ok-page) 88%, transparent);
}

/* ---------- 悬浮玻璃底栏（ttgame 同款）：三格胶囊 + 右侧头像圆钮进「我的」 ---------- */
/* .nav 只是定位外壳（透明、不模糊）；玻璃在 .nav-bar 胶囊和 .nav-me 圆钮上 */
html .nav {
  left: calc(16px + var(--safe-left));
  right: calc(16px + var(--safe-right));
  max-width: 480px;
  margin: 0 auto;
  height: var(--ok-tabbar-height);
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
html .nav > * { pointer-events: auto; }
html .nav-bar {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--ok-glass-bar);
  box-shadow: var(--tt-glass-shadow-deep);
  -webkit-backdrop-filter: var(--ok-blur);
  backdrop-filter: var(--ok-blur);
}
html .nav button {
  position: relative;
  gap: 3px;
  min-height: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  color: var(--ok-label-2);
  background: none;
  transition: color .25s ease, transform .18s var(--tt-spring);
}
html .nav button svg { width: 24px; height: 24px; margin: 0; }
html .nav button.active { color: var(--ok-brand-strong); font-weight: 600; background: none; box-shadow: none; }
html .nav button:active { transform: scale(.94); }
/* 选中胶囊：一格宽（三格），--i 定位；换格时从 --from 弹簧滑过来（app.js navPillAttrs）；在「我的」时隐藏 */
html .nav-bar::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--tt-indicator-bg);
  box-shadow: var(--tt-indicator-shadow);
  transform: translateX(calc(var(--i, 0) * 100%));
  pointer-events: none;
}
html .nav-bar[data-pill='slide']::before { animation: tt-pill-slide .42s var(--tt-spring); }
html .nav-bar[data-pill='off']::before { opacity: 0; }
@keyframes tt-pill-slide {
  from { transform: translateX(calc(var(--from, 0) * 100%)); }
  to { transform: translateX(calc(var(--i, 0) * 100%)); }
}
/* 头像圆钮：和胶囊同高的玻璃圆，内嵌 42px 头像（没有头像时首字 + 品牌色圆） */
html .nav button.nav-me {
  flex: none;
  width: var(--ok-tabbar-height);
  height: 100%;
  min-height: 0;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ok-glass-bar);
  box-shadow: var(--tt-glass-shadow-deep);
  -webkit-backdrop-filter: var(--ok-blur);
  backdrop-filter: var(--ok-blur);
}
html .nav-me-inner {
  position: relative;
  width: calc(var(--ok-tabbar-height) - 20px);
  height: calc(var(--ok-tabbar-height) - 20px);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, #5cb0ff 0%, var(--ok-brand) 100%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 35%);
  transition: box-shadow .25s ease;
}
html .nav-me-inner img { display: block; width: 100%; height: 100%; object-fit: cover; }
html .nav button.nav-me.active .nav-me-inner {
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 35%), 0 0 0 2px var(--ok-brand);
}
/* 旧浏览器没有 --i 支持时也不至于没选中态：选中图标、文字仍是品牌色 */

/* ---------- 顶栏 ---------- */
html .ok-top-bg {
  background: var(--ok-glass-bar);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--ok-hairline);
}
/* 顶栏中间的 关注 / 热门 / 精选 分段：玻璃轨道 + 白色选中胶囊 */
html .ok-top:not(.ok-top--clear) .video-top {
  height: 40px;
  padding: 4px;
  background: var(--ok-seg-track);
  box-shadow: var(--ok-seg-track-shadow);
}
html .ok-top:not(.ok-top--clear) .video-top button { color: var(--ok-label-2); font-weight: 600; }
html .ok-top:not(.ok-top--clear) .video-top button.active { color: #0b0b0f; background: var(--ok-seg-thumb); box-shadow: var(--ok-seg-thumb-shadow); }
/* 余额胶囊 / 顶栏圆钮 */
html .ok-userrow .ok-balance, html .ok-top-bar .ok-balance {
  background: var(--tt-pill-bg);
  box-shadow: var(--tt-glass-shadow);
  font-variant-numeric: tabular-nums;
}
html .ok-top-compact .ok-balance { background: var(--tt-pill-bg); }
html .ok-balance-plus { background: var(--tt-brand); color: #fff; }
html .ok-userrow .ok-top-create, html .ok-userrow .ok-top-search, html .ok-top .video-search-entry, html .ok-top-create, html .ok-userrow .feed-search, html .ok-userrow .feed-sound {
  background: var(--tt-pill-bg);
  box-shadow: var(--tt-glass-shadow);
  color: var(--ok-label);
}
html .ok-top .ok-top-avatar, html .ok-userrow .ok-top-avatar {
  background: var(--ok-brand-soft);
  color: var(--ok-brand-strong);
  box-shadow: var(--tt-glass-shadow);
}

/* ---------- 玻璃卡（不模糊） ---------- */
html .ok-group, html .ok-list, html .ok-error-state, html .lg-wallet, html .shop-card, html .shop-page .shop-quick,
html .sa-card, html .cr-card, html .rw-stats, html .rw-claim, html .rw-coupon, html .rw-coupon-none, html .rw-vip,
html .rw-invite-hero, html .pg-key, html .wl-page .wl-card, html .wl-page .wl-flow, html .wl-page .wl-summary,
html .bill-page .bill-list, html .bet-page .ok-list, html .me-month .ok-group, html .me-drawer .me-drawer-panel .ok-group,
html .shop-address, html .shop-order, html .shop-order-detail, html .shop-checkout-address, html .invite-card,
html .my-profile, html .activity-card, html .creator-profile-main, html .wallet-card, html .feed-menu-list {
  background: var(--tt-sheen), var(--ok-surface);
  border: 0;
  box-shadow: var(--tt-glass-shadow);
}
html .ok-group, html .ok-list, html .ok-error-state, html .lg-wallet, html .shop-page .shop-quick, html .sa-card, html .cr-card,
html .wl-page .wl-card, html .wl-page .wl-flow, html .bill-page .bill-list, html .bet-page .ok-list, html .invite-card, html .my-profile, html .activity-card {
  border-radius: var(--tt-radius);
}
/* 视频格子 / 商品格子：只有半透明底 + 细边，不加投影层叠，保证滚动不掉帧 */
html .video-catalog .card, html .shop-card {
  border-radius: var(--tt-radius-sm);
  box-shadow: inset 0 0 0 1px var(--ok-glass-edge);
}
html .video-catalog .cover { border-radius: var(--tt-radius-sm); }
/* 余额大卡（我的页）：外圈半透明框 + 右下品牌光晕 + 左上斜向高光 */
html .me-balance {
  position: relative;
  overflow: hidden;
  border-radius: var(--tt-radius-lg);
  border: 4px solid rgb(60 58 66 / 18%);
  background: var(--ok-hero-bg);
  background-clip: padding-box;
  box-shadow: var(--tt-glass-shadow-deep);
}
html .me-balance > * { position: relative; z-index: 1; }
html .me-balance::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 12%) 0%, transparent 32%);
  pointer-events: none;
}
html .me-balance .wallet-buttons .primary { background: #fff; color: #000; box-shadow: 0 6px 18px -8px rgb(255 255 255 / 45%); }
/* 钱包页余额：同一张大卡（.me-balance），按钮放在卡内 */
html .wallet-card { margin: 4px 0 24px; padding: 18px 18px 16px; }
html .wallet-card .wallet-buttons > :only-child { grid-column: 1 / -1; }
html .wallet-card .wallet-buttons button:disabled { opacity: 1; color: rgb(255 255 255 / 62%); }

/* ---------- 分段 / 标签 ---------- */
html .ok-segmented, html .rw-seg {
  padding: 4px;
  gap: 0;
  border-radius: 999px;
  background: var(--ok-seg-track);
  box-shadow: var(--ok-seg-track-shadow);
}
html .ok-segmented button, html .rw-seg button { min-height: 32px; border-radius: 999px; color: var(--ok-label-2); font-weight: 600; }
html .ok-segmented button.active, html .rw-seg button.on { color: #0b0b0f; background: var(--ok-seg-thumb); box-shadow: var(--ok-seg-thumb-shadow); }
html .ok-chips button {
  min-height: 32px;
  border-radius: 999px;
  color: var(--ok-label-2);
  background: var(--ok-surface);
  box-shadow: var(--tt-glass-shadow);
  font-weight: 500;
}
html .ok-chips button.active {
  color: var(--ok-brand-strong);
  background: var(--ok-brand-soft);
  box-shadow: inset 0 0 0 1px var(--ok-brand-border);
  font-weight: 600;
}
html .ok-chips button.is-out { background: var(--ok-fill); color: var(--ok-label-4); box-shadow: none; }
html .lv-tabs {
  background: color-mix(in srgb, var(--ok-page) 78%, transparent);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--ok-hairline);
}
html .lv-tabs button.active::after { background: var(--tt-brand); width: 18px; height: 3px; margin-left: -9px; }
html .me-tabs button.active::after, html .pf-tabs button.active::after { background: var(--tt-brand); height: 3px; border-radius: 2px; }
html .shop-sticky { background: color-mix(in srgb, var(--ok-page) 82%, transparent); }
html .profile-tabs button.active { border-bottom-color: var(--tt-brand); }

/* ---------- 按钮 ---------- */
html .primary, html .ok-sheet-confirm {
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 0%) 55%), var(--tt-brand);
  color: #fff;
  box-shadow: var(--tt-glass-shadow), 0 6px 18px -6px var(--ok-brand-glow);
}
html .primary:disabled, html .ok-sheet-confirm:disabled { box-shadow: none; }
html .secondary-action, html .wallet-history-more, html .ok-empty .ok-empty-action, html .ok-empty .secondary-action, html .ok-error-state .secondary-action {
  border-radius: 999px;
  background: var(--ok-fill);
  box-shadow: var(--tt-glass-shadow);
}
html .ok-empty .primary { background: var(--ok-brand-soft); color: var(--ok-brand-strong); box-shadow: inset 0 0 0 1px var(--ok-brand-border); }
html .me-tab-body .profile-empty button { color: var(--ok-brand-strong); background: var(--ok-brand-soft); box-shadow: inset 0 0 0 1px var(--ok-brand-border); }
html .ok-empty .ok-empty-action { color: var(--ok-brand-strong); background: var(--ok-brand-soft); box-shadow: inset 0 0 0 1px var(--ok-brand-border); }

/* ---------- 输入框：胶囊 ---------- */
html .shop-search input, html .video-search-form input, html .game-search, html .wl-page .wl-input, html .ok-amount-field,
html .comment-compose input, html .cm-compose input, html .lv-search, html .lv-filter, html .shop-page .shop-search {
  border: 0;
  border-radius: 999px;
  background: var(--tt-input-bg);
  box-shadow: var(--tt-glass-shadow);
  color: var(--ok-label);
}
html .profile-edit-form input, html .shop-address-form input, html .shop-address-form select, html .profile-edit-page .profile-edit-form input,
html .shop-address-form label > input {
  border: 0;
  border-radius: var(--tt-radius-sm);
  background: var(--tt-input-bg);
  box-shadow: var(--tt-glass-shadow);
}
html .profile-edit-form textarea, html .shop-address-form textarea, html .profile-edit-page .profile-edit-form textarea {
  border: 0;
  border-radius: var(--tt-radius-sm);
  background: var(--tt-input-bg);
  box-shadow: var(--tt-glass-shadow);
}
html :is(input, textarea, select):focus-visible { outline: 2px solid color-mix(in srgb, var(--tt-brand) 55%, transparent); outline-offset: 1px; }

/* ---------- 底部弹层：悬浮玻璃面板（四周留 8px） ---------- */
html .ok-sheet-layer > .ok-sheet, html .ok-sheet {
  left: calc(8px + var(--safe-left));
  right: calc(8px + var(--safe-right));
  bottom: calc(8px + var(--safe-bottom, 0px));
  width: auto;
  max-width: 560px;
  border-radius: 34px;
  background: var(--tt-sheen), var(--ok-glass-strong);
  box-shadow: var(--tt-glass-shadow-deep);
  -webkit-backdrop-filter: var(--ok-blur-thick);
  backdrop-filter: var(--ok-blur-thick);
  animation: tt-sheet-up .42s var(--tt-spring);
}
html .ok-sheet-layer > .ok-sheet { left: auto; right: auto; bottom: auto; width: calc(100% - 16px - var(--safe-left) - var(--safe-right)); margin: 0 auto calc(8px + var(--safe-bottom, 0px)); }
html .ok-sheet-body { padding-bottom: 20px; }
html .ok-sheet-close { background: var(--ok-fill); box-shadow: var(--tt-glass-shadow); }
html .ok-sheet .ok-group, html .ok-sheet .ok-list { background: var(--ok-fill); box-shadow: none; }
html .ok-action-group { border-radius: var(--tt-radius); background: var(--tt-sheen), var(--ok-glass-strong); box-shadow: var(--tt-glass-shadow-deep); }
html .ok-action-cancel { border-radius: 999px; background: var(--ok-glass-strong); box-shadow: var(--tt-glass-shadow-deep); -webkit-backdrop-filter: var(--ok-blur-thick); backdrop-filter: var(--ok-blur-thick); }
html .ok-popup, html .pg-sheet, html .gt-route {
  background: var(--tt-sheen), var(--ok-glass-strong);
  box-shadow: var(--tt-glass-shadow-deep);
  -webkit-backdrop-filter: var(--ok-blur-thick);
  backdrop-filter: var(--ok-blur-thick);
}
@keyframes tt-sheet-up {
  from { transform: translateY(calc(100% + 24px)); }
  to { transform: none; }
}

/* ---------- Toast：玻璃胶囊 ---------- */
html .ok-toast {
  color: var(--ok-label);
  background: var(--ok-glass-strong);
  box-shadow: var(--tt-glass-shadow-deep);
  -webkit-backdrop-filter: var(--ok-blur);
  backdrop-filter: var(--ok-blur);
}
html .ok-toast.is-error { color: var(--ok-label); }
html .ok-toast.is-success .ok-toast-icon { color: var(--ok-success); }
html .ok-toast.is-error .ok-toast-icon { color: var(--ok-danger); }
html.lowfx .ok-toast { background: var(--ok-surface-solid); }

/* ---------- 空状态 ---------- */
html .ok-empty { background: none; box-shadow: none; }
html .lv-catalog .ok-empty, html .lg-main .ok-empty, html .me-page .ok-empty {
  background: var(--tt-sheen), var(--ok-surface);
  box-shadow: var(--tt-glass-shadow);
  border-radius: var(--tt-radius);
}

/* ---------- 零散绿色 → 品牌蓝 ---------- */
html .vd-page .pv-rates button.active { color: var(--tt-brand); }
html .vd-page .pv-ep-grid button.active { color: #4ea6ff; background: rgb(22 137 255 / 16%); }
html .game-frame-bar {
  background: radial-gradient(70% 160% at 50% 120%, rgb(22 137 255 / 26%), transparent 70%), linear-gradient(180deg, #05080f, #0a1220);
  border-bottom-color: rgb(78 166 255 / 16%);
}
html .pg-switch:checked { background: var(--tt-brand); }
html .sp-item.is-green .sp-icon { background: var(--tt-brand); }
.num, .ok-balance, [class*='amount'], [class*='price'], [class*='balance'] strong { font-variant-numeric: tabular-nums; }

/* ---------- 热门流 / 播放：保持全屏黑底沉浸，不吃浅色主题 ---------- */
html .feed-mode .nav-bar, html .feed-mode .nav .nav-me {
  background: rgb(22 22 26 / 46%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%), inset 1.8px 3px 0 -2px rgb(255 255 255 / 22%),
    0 10px 28px rgb(0 0 0 / 35%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
html .feed-mode .nav-bar::before {
  background: rgb(255 255 255 / 14%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%), inset 2px 1px 0 -1px rgb(255 255 255 / 27%);
}
html .feed-mode .nav button { color: rgb(255 255 255 / 72%); }
html .feed-mode .nav button.active { color: #fff; }
html .feed-mode .ok-userrow .ok-balance, html .feed-mode .ok-userrow .ok-top-create, html .feed-mode .ok-userrow .feed-search,
html .feed-mode .ok-userrow .feed-sound, html .feed-mode .ok-userrow .ok-top-avatar {
  color: #fff;
  background: rgb(22 22 26 / 46%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%), inset 1.8px 3px 0 -2px rgb(255 255 255 / 20%);
}
html .feed-mode .ok-top .video-top { background: rgb(22 22 26 / 46%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); }
html .feed-mode .ok-top .video-top button { color: rgb(255 255 255 / 72%); }
html .feed-mode .ok-top .video-top button.active { color: #0b0b0f; background: rgb(255 255 255 / 92%); box-shadow: none; }
/* 滑动中关掉模糊（沿用 player.css 的 feed-moving 规则）、慢设备实色 */
html .feed-mode.feed-moving :is(.nav-bar, .nav .nav-me) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(28 28 30 / 88%); }
html.lowfx .feed-mode :is(.nav-bar, .nav .nav-me) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(28 28 30 / 88%); }

@media (prefers-reduced-motion: reduce) {
  html .nav-bar[data-pill='slide']::before, html .ok-sheet { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  html .nav-bar, html .nav button.nav-me { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html .feed-mode :is(.nav-bar, .nav .nav-me) { background: rgb(28 28 30 / 96%); }
}
html .me-drawer-panel { background: var(--tt-ambient), var(--ok-page); box-shadow: var(--tt-glass-shadow-deep); }

/* ---------- 商店：分类 + 排序（2026-11-24 老板：整条深色通栏和浮着的玻璃卡不搭） ----------
 * 吸顶的分类 / 排序收成一张带左右留白的玻璃浮条（吸顶浮层，允许模糊）：上排分类 = 胶囊，选中 = 玻璃指示块；
 * 下排排序 = 轻量文字，选中加深加粗。不再铺满全宽、不再有下边线。快捷入口图标统一 22px / 线宽 1.8。 */
html .shop-page .shop-sticky {
  margin: 14px 0 0;
  padding: 6px 6px 0;
  border: 0;
  border-radius: var(--tt-radius);
  background: var(--tt-sheen), color-mix(in srgb, var(--ok-surface-solid, var(--ok-page)) 80%, transparent);
  box-shadow: var(--tt-glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
html.lowfx .shop-page .shop-sticky { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ok-surface-solid, var(--ok-page)); }
html .shop-page .shop-sticky .shop-categories {
  gap: 2px; margin: -4px -6px -8px; padding: 4px 6px 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
html .shop-page .shop-categories button {
  height: 34px; min-height: 34px; padding: 0 14px;
  border-radius: 999px; background: none; box-shadow: none;
  color: var(--ok-label-2); font-size: var(--ok-text-subhead); font-weight: var(--ok-weight-medium); letter-spacing: 0;
  transition: background var(--ok-dur, .22s) var(--ok-ease, ease), color var(--ok-dur, .22s) var(--ok-ease, ease);
}
html .shop-page .shop-categories button.active { color: var(--ok-label); font-weight: var(--ok-weight-semibold); background: var(--tt-indicator-bg); box-shadow: var(--tt-indicator-shadow); }
html .shop-page .shop-categories button::before { display: none; }
html .shop-page .shop-categories button:last-child { margin-right: 20px; }
html .shop-page .shop-sticky .shop-sorts {
  height: 36px; margin: 2px 0 0; padding: 0 4px; gap: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
html .shop-page .shop-sorts button {
  height: 36px; min-height: 36px; padding: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--ok-label-3); font-size: var(--ok-text-footnote); font-weight: var(--ok-weight-medium);
}
html .shop-page .shop-sorts button.active { color: var(--ok-label); font-weight: var(--ok-weight-semibold); background: none; box-shadow: none; }
html .shop-page .shop-sticky ~ .shop-grid { margin-top: 14px; }
html .shop-page .shop-quick-5 button svg { width: 22px; height: 22px; stroke-width: 1.8; color: var(--ok-label); }
html .shop-page .shop-quick-5 button { gap: 6px; font-size: var(--ok-text-caption); color: var(--ok-label-2); }

/* ---------- 评论弹层：实色底（老板 11-24：透明底会透出后面的视频和标题，不好看） ---------- */
html .comment-sheet, html .cm-overlay .cm-sheet, html .social-overlay.is-feed .cm-sheet { background: var(--ok-surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* pages.css 的 .cm-overlay .cm-sheet{background:var(--ok-surface)} 优先级更高，视频流里打开评论仍是半透明（透出底栏和后面的视频），上面一并压成实色 */
html .comment-sheet .comment-compose, html .comment-sheet .cm-compose { background: var(--ok-surface-solid); }

/* ---------- 全屏二级页必须不透明（老板 11-24：栏目/创作者主页透出下面的页面，叠在一起） ---------- */
/* profile.css 的 .cp-page.pf-page{background:var(--pf-bg)} 优先级更高，而这里 --me-bg 是 transparent，所以要单独压回去 */
html .ok-page.pf-page, html .ok-page.cp-page { background: var(--tt-ambient), var(--ok-page); }
html .vd-page { background: var(--ok-page); }

/* ---------- 浅色主题主按钮加深：白字在 #1689ff 上对比度只有 3.47，按钮底色换 #086ad6（5.19，过 4.5）；深色主题不变 ---------- */
:root { --tt-brand-btn: #086ad6; }
:root.dark { --tt-brand-btn: var(--tt-brand); }
html .primary, html .ok-sheet-confirm { background: linear-gradient(180deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 0%) 55%), var(--tt-brand-btn); }

/* 设置页开关行：标题用正文色（之前是灰色，跟上面「外观」行不一致） */
.pg-switch-cell > span:first-child { flex: 1; color: var(--ok-label); }

/* 我的主页：吉祥物贴在名字右侧、头像下沿对齐，不再悬在封面分界线上 */
.pf-id-row > xx-mascot { align-self: flex-end; margin-left: auto; }

/* 商品卡：封面图满宽贴顶（之前被 .shop-card span 的 6px 12px 外边距误伤，图片缩在卡里且四角是直角） */
html .shop-card .shop-card-media { display: block; margin: 0; font-size: 0; line-height: 0; }
html .shop-card .shop-card-media em { font-size: var(--ok-text-caption); line-height: 18px; font-weight: var(--ok-weight-medium); }

/* 我的 · 喜欢 / 收藏 / 足迹 的空状态：跟「作品」一样不加卡片（之前是贴边满宽的玻璃卡，左右没有留白） */
html .me-page .me-tab-body .ok-empty { background: none; box-shadow: none; border-radius: 0; margin: 0; padding: 48px 16px; }

/* 空状态说明文字（emptyState 把长句拆成标题 + 说明） */
html .ok-empty .ok-empty-desc { max-width: 280px; margin: -4px auto 0; color: var(--ok-label-3); font-size: var(--ok-text-footnote); line-height: 1.5; font-weight: 400; }

/* 游戏封面加载占位：浅色主题不用深灰块（#2c2c2e 在浅色页上很突兀） */
html:not(.dark) .lg-cover-ph { background: linear-gradient(160deg, #e9ecf3, #dde1ea); color: rgb(20 30 60 / 30%); }
/* 其它白字蓝底的按钮同样在浅色主题用加深的蓝（去支付 / 领取 / 关注 / 发送 / 领取奖励 等） */
html:not(.dark) :is(.so-btn.is-primary, .shop-coupon-btn, .cp-follow, .rw-claim-btn:not(.tk-go), .ok-popup-cta, .comment-compose button, .shop-search button, .profile-edit-form .primary, .creator-profile-follow, .pv-retry):not(:disabled) { background: var(--tt-brand-btn); }
html:not(.dark) .lg-note #recover-game { background: var(--tt-brand-btn); }

/* 主页封面底边：渐隐到页面底色，不再是一条硬边横切头像 */
html .pf-cover { -webkit-mask-image: linear-gradient(180deg, #000 52%, rgb(0 0 0 / 0%) 100%); mask-image: linear-gradient(180deg, #000 52%, rgb(0 0 0 / 0%) 100%); }

/* 余额大卡（我的 / 钱包页）浅色主题：去掉 4px 灰色外框和白色内描边（看起来是一圈灰色双环），只留柔和投影 */
html:not(.dark) .me-balance { border: 0; box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 14%), 0 16px 32px -16px rgb(16 44 110 / 50%); }

/* 热门流：底色固定黑（浅色主题下切换 / 下拉刷新 / 两条之间的缝隙会露出浅灰光斑底） */
html:has(#app.feed-mode) { background: #000; }
html body:has(#app.feed-mode)::before { background: #000; }

/* 每日任务：「去看看 / 去玩」是跳转不是领奖，用浅蓝次按钮，和「领取」区分；奖励金额用品牌蓝（之前是旧绿色） */
html .rw-claim-btn.tk-go { background: var(--ok-brand-soft); color: var(--ok-brand-strong); box-shadow: inset 0 0 0 1px var(--ok-brand-border); }
html .tk-reward { color: var(--ok-brand-strong); }
html .shop-coupon-tag { color: var(--ok-brand-strong); }
