/* =========================================================
   耳蜜 ASMR · 主样式
   深色电影质感 + 暖橙 / 蜜桃渐变点缀
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-soft: #0b0b12;
  --surface: #111118;
  --surface-2: #15151f;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f3f0ed;
  --text-dim: #b6b2c0;
  --muted: #8d8a9b;
  --accent: #ff8a5c;
  --accent-2: #ff5f8f;
  --accent-3: #a78bfa;
  --grad: linear-gradient(120deg, #ffb27a 0%, #ff7a6b 45%, #ff5f8f 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --shadow: 0 30px 80px -40px rgba(255, 120, 120, .35), 0 40px 90px -60px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

/* hidden 属性必须压过自定义 display（否则 .modal/.player-overlay 会一直显示） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* 锚点跳转时给固定导航栏留出空间，否则区块标题会被盖住 */
section[id], main [id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景微光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(255, 138, 92, .10), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(167, 139, 250, .10), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(255, 95, 143, .07), transparent 65%);
}

/* 颗粒质感 */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.9'/></svg>");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: rgba(255, 138, 92, .32); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a10; }
::-webkit-scrollbar-thumb { background: #24242f; border-radius: 20px; border: 2px solid #0a0a10; }
::-webkit-scrollbar-thumb:hover { background: #34343f; }

/* ------------------------------ 导航 ------------------------------ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 11, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 6px 18px rgba(255, 110, 110, .28)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 16.5px; font-weight: 700; letter-spacing: .16em; }
.brand-text i { font-style: normal; font-size: 9px; letter-spacing: .34em; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  font-size: 13.5px; color: var(--text-dim); transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; min-width: 232px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  transition: border-color .25s, background .25s, width .25s;
}
.nav-search:focus-within { border-color: rgba(255, 138, 92, .45); background: rgba(255, 255, 255, .06); }
.nav-search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.nav-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; }
.nav-search input::placeholder { color: #6f6c7c; }
.nav-search input::-webkit-search-cancel-button { display: none; }

.nav-admin {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  transition: .25s;
}
.nav-admin svg { width: 16px; height: 16px; fill: none; stroke: var(--text-dim); stroke-width: 1.8; stroke-linejoin: round; }
.nav-admin:hover { border-color: rgba(255, 138, 92, .45); transform: translateY(-1px); }
.nav-admin:hover svg { stroke: var(--accent); }

/* 「更多资源」下拉入口 */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font-size: 13.5px; color: var(--text-dim); font-family: inherit;
  transition: color .2s, background .2s;
}
.nav-more-btn:hover, .nav-more.open .nav-more-btn { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-more-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 196px; padding: 7px;
  border-radius: 13px; border: 1px solid var(--line-strong);
  background: rgba(14, 14, 20, .96); backdrop-filter: blur(18px);
  box-shadow: 0 26px 54px -28px rgba(0, 0, 0, 1);
  display: none; flex-direction: column; gap: 2px;
}
.nav-more.open .nav-more-panel { display: flex; }
.nav-more-panel a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 13px; color: var(--text-dim); white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-more-panel a:hover { background: rgba(255, 138, 92, .1); color: #fff; }
.nav-more-panel a svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .7; }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative; z-index: 1;
  min-height: 600px;
  padding: calc(var(--nav-h) + 64px) 32px 56px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-aurora { position: absolute; inset: 0; z-index: 0; }
/* 光晕用纯径向渐变实现（不用 filter:blur，避免部分渲染器出现硬边圆盘） */
.blob { position: absolute; border-radius: 50%; opacity: .9; }
.b1 {
  width: 900px; height: 900px; left: -320px; top: -400px;
  background: radial-gradient(circle, rgba(255, 138, 92, .26) 0%, rgba(255, 138, 92, .10) 38%, transparent 66%);
  animation: float1 20s ease-in-out infinite;
}
.b2 {
  width: 860px; height: 860px; right: -300px; top: -300px;
  background: radial-gradient(circle, rgba(167, 139, 250, .22) 0%, rgba(146, 120, 245, .09) 40%, transparent 68%);
  animation: float2 24s ease-in-out infinite;
}
.b3 {
  width: 1000px; height: 700px; left: 30%; bottom: -420px;
  background: radial-gradient(circle, rgba(255, 95, 143, .18) 0%, rgba(255, 95, 143, .07) 42%, transparent 70%);
  animation: float1 28s ease-in-out infinite reverse;
}
@keyframes float1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,26px,0) scale(1.06); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-44px,22px,0) scale(1.04); } }

/* 声波环：CSS 同心圆 + 径向遮罩 */
.hero-rings {
  position: absolute; right: -300px; top: 50%; transform: translateY(-50%);
  width: 860px; height: 860px; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 78px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.9) 10%, rgba(0,0,0,.35) 46%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.9) 10%, rgba(0,0,0,.35) 46%, transparent 72%);
  animation: ringspin 90s linear infinite;
}
@keyframes ringspin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 6px 14px 6px 11px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 11.5px; letter-spacing: .22em; color: var(--text-dim); text-transform: uppercase;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 138, 92, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 92, .55); } 70% { box-shadow: 0 0 0 11px rgba(255, 138, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 92, 0); } }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(255, 120, 120, .28));
}
.hero-sub { max-width: 620px; margin: 0 0 34px; color: var(--text-dim); font-size: 16px; line-height: 1.75; }

.hero-search {
  display: flex; align-items: center; gap: 10px;
  width: min(660px, 100%); height: 62px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 16, 24, .72);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  transition: border-color .3s, box-shadow .3s;
}
.hero-search:focus-within { border-color: rgba(255, 138, 92, .55); box-shadow: 0 22px 70px -28px rgba(255, 120, 100, .35); }
.hero-search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15.5px; }
.hero-search input::placeholder { color: #6c6979; }
.btn-search {
  height: 46px; padding: 0 26px; border-radius: 999px;
  background: var(--grad); color: #1a0d12; font-weight: 700; font-size: 14px;
  letter-spacing: .04em; transition: transform .2s var(--ease), filter .2s;
}
.btn-search:hover { transform: translateY(-1px); filter: brightness(1.06); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips .chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 12.5px; color: var(--text-dim);
  transition: .22s;
}
.hero-chips .chip:hover { color: #fff; border-color: rgba(255, 138, 92, .45); background: rgba(255, 138, 92, .1); }

.hero-meta { display: flex; align-items: center; gap: 26px; margin-top: 46px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: baseline; gap: 8px; }
.meta-item b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.meta-item span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.meta-sep { width: 1px; height: 22px; background: var(--line); }

/* ------------------------------ 通用段落 ------------------------------ */

main { position: relative; z-index: 1; }
section { padding: 0 32px; }
.triggers, .featured, .library, .steps { max-width: 1400px; margin: 0 auto; padding-top: 74px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.section-head h2::before {
  content: ""; width: 3px; height: 20px; border-radius: 3px; background: var(--grad);
}
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; }
.head-hint { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.head-hint span { color: var(--text-dim); }

/* 标签 chips */
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.tag-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .028);
  font-size: 13px; color: var(--text-dim); transition: .22s var(--ease);
}
.tag-chip i { font-style: normal; font-size: 11px; color: #6f6c7c; }
.tag-chip:hover { color: #fff; transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }
.tag-chip.on { color: #1a0d12; background: var(--grad); border-color: transparent; font-weight: 600; }
.tag-chip.on i { color: rgba(26, 13, 18, .6); }

/* 精选横滑 */
.featured-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 30%);
  gap: 18px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.featured-rail::-webkit-scrollbar { display: none; }
.f-card {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 10; border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s;
  background: #12121a;
}
.f-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.f-card .cover { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.f-card .f-body {
  position: absolute; inset: auto 0 0 0; padding: 26px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 9, .88) 62%);
}
.f-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; font-weight: 650; }
.f-card .f-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-dim); }
.f-card .f-tag {
  padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06); font-size: 10.5px; letter-spacing: .06em;
}

/* ------------------------------ 卡片 ------------------------------ */

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 26px 22px;
}

.card { display: block; position: relative; }
.card-cover {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
  background: #12121a;
  isolation: isolate;
}
.card:hover .card-cover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 138, 92, .1);
}

/* 封面渐变艺术 */
.cover {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 16% 8%, hsl(var(--h) 80% 58% / .58), transparent 58%),
    radial-gradient(105% 95% at 88% 88%, hsl(var(--h2) 84% 55% / .48), transparent 62%),
    repeating-radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 30px),
    linear-gradient(158deg, #191924 0%, #0a0a11 72%);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px);
  opacity: .5; mix-blend-mode: overlay;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(4, 4, 8, .55) 100%);
}
.cover-glyph {
  position: absolute; right: 4%; bottom: -14%;
  font-size: 132px; font-weight: 800; line-height: .9;
  color: rgba(255, 255, 255, .055);
  letter-spacing: -.06em; user-select: none;
}

/* 网盘自带的视频封面（取不到时 img 自己移除，露出下面那层渐变） */
.cover-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  /* 底部压暗，保证角标文字可读 */
  box-shadow:
    inset 0 -70px 90px -42px rgba(4, 4, 8, .85),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
/* 有真封面时，不再叠巨大的首字水印 */
.cover-img + .cover-glyph { display: none; }
/* 真封面也不叠均衡器装饰，避免像水印 */
.card-cover .cover-img ~ .eq { display: none; }
.rel-thumb .cover-img { box-shadow: inset 0 -30px 40px -20px rgba(4, 4, 8, .8); }
/* 左上角分类角标：一个视频有多个标签就全部铺开，放不下自动换行 */
.cover-hints {
  position: absolute; left: 14px; top: 13px; right: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px;
  pointer-events: none;
}
.cover-hint {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 7px; max-width: 100%;
  background: rgba(8, 8, 12, .58); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 10.5px; letter-spacing: .03em; color: rgba(255, 255, 255, .86);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover-hint .dotc { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* 均衡器 */
.eq { position: absolute; left: 16px; bottom: 15px; z-index: 2; display: flex; align-items: flex-end; gap: 3px; height: 22px; opacity: .45; transition: opacity .3s; }
.eq i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.35)); }
.eq i:nth-child(1) { height: 40%; }
.eq i:nth-child(2) { height: 78%; }
.eq i:nth-child(3) { height: 55%; }
.eq i:nth-child(4) { height: 92%; }
.eq i:nth-child(5) { height: 34%; }
.card:hover .eq { opacity: 1; }
.card:hover .eq i { animation: eqbar .9s ease-in-out infinite alternate; }
.card:hover .eq i:nth-child(2) { animation-delay: .15s; }
.card:hover .eq i:nth-child(3) { animation-delay: .3s; }
.card:hover .eq i:nth-child(4) { animation-delay: .45s; }
.card:hover .eq i:nth-child(5) { animation-delay: .6s; }
@keyframes eqbar { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }

.badge-duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(6, 6, 10, .68); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums;
}

.card-play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .38));
}
.card-play span {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #14080c;
  transform: scale(.85); transition: transform .35s var(--ease);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
}
.card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1); }

.card-body { padding: 13px 3px 0; }
.card-title {
  margin: 0 0 7px; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.card:hover .card-title { color: #ffd7c6; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.mini-tag {
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-dim); letter-spacing: .02em;
}
.card-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.card-foot .acct { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .acct b { font-weight: 500; color: var(--text-dim); }
.card-foot .sep { width: 1px; height: 10px; background: var(--line); }
.card-foot .right { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 骨架 */
.skel { border-radius: var(--radius); overflow: hidden; position: relative; background: #101018; }
.skel-c { aspect-ratio: 16 / 10; }
.skel-l { height: 12px; border-radius: 4px; background: #14141d; margin-top: 14px; }
.skel-l.s { width: 60%; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .05) 45%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* 工具条 */
.library-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  overflow-x: auto; max-width: 100%; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex-shrink: 0; padding: 7px 15px; border-radius: 999px;
  font-size: 12.5px; color: var(--text-dim); transition: .22s; white-space: nowrap;
}
.seg button:hover { color: #fff; }
.seg button.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }

.select {
  height: 38px; padding: 0 34px 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 12.5px; color: var(--text-dim); outline: 0;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d8a9b' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  cursor: pointer;
}
.select:focus { border-color: rgba(255, 138, 92, .45); }

.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 12px 16px;
  border-radius: 14px; border: 1px dashed var(--line-strong);
  background: rgba(255, 138, 92, .05);
}
.filter-label { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tags span {
  padding: 3px 10px; border-radius: 6px; font-size: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}
.link-clear { margin-left: auto; font-size: 12px; color: var(--accent); }
.link-clear:hover { text-decoration: underline; }

/* 空状态 */
.empty { padding: 20px 0 40px; }
.empty-card {
  max-width: 620px; margin: 0 auto; padding: 46px 34px; text-align: center;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; color: rgba(255, 138, 92, .8); }
.empty-icon svg { width: 100%; height: 100%; }
.empty-card h3 { margin: 0 0 10px; font-size: 20px; }
.empty-card p { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; }
.empty-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.empty-steps span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.empty-steps i { width: 16px; height: 1px; background: var(--line-strong); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  background: var(--grad); color: #1a0d12; font-weight: 700; font-size: 14px;
  transition: transform .2s var(--ease), filter .2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-ghost {
  height: 44px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  font-size: 13.5px; color: var(--text-dim); transition: .22s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 138, 92, .45); }
.load-more-wrap { display: flex; justify-content: center; padding: 36px 0 10px; }

/* 三步 */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  position: relative; padding: 28px 26px 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.step-card::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 92, .14), transparent 68%);
}
.step-no { font-size: 11px; letter-spacing: .3em; color: rgba(255, 138, 92, .85); }
.step-card h3 { margin: 12px 0 8px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* 页脚 */
.footer { margin-top: 90px; border-top: 1px solid var(--line); background: rgba(8, 8, 12, .6); }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 36px 32px 44px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand.small .brand-mark { width: 28px; height: 28px; }
.brand.small .brand-text b { font-size: 14px; }
.footer-note { margin: 0; color: var(--muted); font-size: 12.5px; }
.footer-links { margin-left: auto; display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ------------------------------ Watch 页 ------------------------------ */

.watch-main { max-width: 1400px; margin: 0 auto; padding: calc(var(--nav-h) + 30px) 32px 40px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.crumb .sp { opacity: .4; }

.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 28px; align-items: start; }

.player-wrap { position: relative; }
.player-shell {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, .03);
}
.player-shell video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-glow {
  position: absolute; inset: -8% -4%; z-index: -1; filter: blur(60px); opacity: .35;
  background: radial-gradient(60% 60% at 30% 40%, rgba(255, 138, 92, .5), transparent 70%),
              radial-gradient(50% 50% at 75% 60%, rgba(167, 139, 250, .45), transparent 70%);
}
.player-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center; padding: 30px;
  background: rgba(5, 5, 9, .82); backdrop-filter: blur(6px);
}
.player-overlay .po-ico { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--accent); }
.player-overlay h3 { margin: 0 0 8px; font-size: 17px; }
.player-overlay p { margin: 0; max-width: 420px; color: var(--text-dim); font-size: 13px; }

.watch-title { margin: 24px 0 14px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -.02em; }
.watch-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.watch-meta .acct-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--text-dim);
}
.watch-meta .sep { width: 1px; height: 12px; background: var(--line); }
.watch-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.watch-tags a {
  padding: 5px 12px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text-dim);
  transition: .2s;
}
.watch-tags a:hover { color: #fff; border-color: rgba(255, 138, 92, .45); background: rgba(255, 138, 92, .09); }

.watch-desc {
  margin-top: 20px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--text-dim); font-size: 13.5px; line-height: 1.8;
}

/* 下载侧栏 */
.side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.panel {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  padding: 22px;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.panel-head h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.panel-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.panel-sub { margin: 0 0 16px; font-size: 12px; color: var(--muted); }

.dl-provider {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  margin-bottom: 14px;
}
.dl-provider .ico { font-size: 16px; }
.dl-provider b { font-size: 13px; font-weight: 600; }
.dl-provider span { margin-left: auto; font-size: 11px; color: var(--muted); }

.dl-btn {
  width: 100%; height: 46px; border-radius: 12px;
  background: var(--grad); color: #1a0d12; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--ease), filter .2s;
}
.dl-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.dl-btn:disabled {
  opacity: .75; cursor: not-allowed; transform: none;
  background: rgba(255, 255, 255, .05); color: var(--muted);
  border: 1px dashed var(--line-strong); font-weight: 500;
}
.dl-btn.secondary {
  margin-top: 10px; background: rgba(255, 255, 255, .06); color: var(--text);
  border: 1px solid var(--line-strong); font-weight: 500; font-size: 13.5px;
}
.dl-btn.secondary:hover { border-color: rgba(255, 138, 92, .45); }

.dl-result { margin-top: 16px; display: none; }
.dl-result.show { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dl-field { margin-bottom: 10px; }
.dl-field label { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 5px; }
.dl-field .row { display: flex; gap: 8px; }
.dl-field input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  font-size: 12px; color: var(--text-dim); outline: 0;
}
.copy-btn {
  flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  font-size: 12px; color: var(--text-dim); transition: .2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255, 138, 92, .45); }

.qr-box {
  margin-top: 6px; padding: 14px; border-radius: 14px;
  background: #fff; display: grid; place-items: center;
}
.qr-box img { width: 158px; height: 158px; }
.qr-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

.panel-tip { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

.related-list { display: flex; flex-direction: column; gap: 12px; }
.rel-item { display: flex; gap: 12px; padding: 6px; border-radius: 12px; transition: background .2s; }
.rel-item:hover { background: rgba(255, 255, 255, .04); }
.rel-thumb {
  position: relative; width: 106px; aspect-ratio: 16 / 10; flex-shrink: 0;
  border-radius: 9px; overflow: hidden; border: 1px solid var(--line);
}
.rel-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.rel-info h4 { margin: 0; font-size: 12.5px; font-weight: 550; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-info span { font-size: 11px; color: var(--muted); }

/* ------------------------------ Toast ------------------------------ */

.toast-wrap {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px; border-radius: 999px;
  background: rgba(22, 22, 30, .95); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); font-size: 13px; color: var(--text);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, .9);
  animation: toastIn .3s var(--ease);
}
.toast.err { border-color: rgba(255, 95, 143, .5); }
.toast.ok { border-color: rgba(90, 210, 192, .45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1080px) {
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .featured-rail { grid-auto-columns: minmax(300px, 62%); }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-search { min-width: 170px; }
}

@media (max-width: 780px) {
  :root { --nav-h: 62px; }
  .nav-inner { padding: 0 18px; gap: 14px; }
  .nav-links { display: none; }
  .nav-search { min-width: 0; width: 38px; padding: 0 11px; }
  .nav-search input { width: 0; opacity: 0; }
  .nav-search:focus-within { width: 180px; }
  .nav-search:focus-within input { width: auto; opacity: 1; }
  section, .watch-main { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 0; padding: calc(var(--nav-h) + 44px) 18px 26px; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .hero-sub { font-size: 14.5px; }
  .hero-search { height: 54px; padding-left: 16px; }
  .btn-search { height: 40px; padding: 0 18px; font-size: 13px; }
  .hero-meta { gap: 16px; margin-top: 32px; }
  .meta-item b { font-size: 18px; }
  .triggers, .featured, .library, .steps { padding-top: 52px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px 12px; }
  .card-title { font-size: 13px; }
  .cover-glyph { font-size: 92px; }
  .section-head h2 { font-size: 21px; }
  .featured-rail { grid-auto-columns: 82%; }
  .footer-inner { padding: 28px 18px 36px; }
  .footer-links { margin-left: 0; }
  .toast-wrap { bottom: 20px; }
}

/* ------------------------------ 视频作者 ------------------------------ */

.authors { max-width: 1400px; margin: 0 auto; padding: 10px 32px 54px; }
.author-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.author-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #101018;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.author-card:hover {
  transform: translateY(-4px); border-color: rgba(255, 138, 92, .32);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 138, 92, .12);
}
.author-cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #14141d; }
.author-cover .cover { position: absolute; inset: 0; }
.author-cover .cover-img { border-radius: 0; }
.author-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  padding: 2px 7px; border-radius: 6px; font-size: 10.5px;
  background: rgba(6, 6, 10, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9);
  font-variant-numeric: tabular-nums;
}
.author-body { padding: 10px 12px 12px; }
.author-body b {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.author-body span { font-size: 10.5px; color: var(--muted); }

@media (max-width: 720px) {
  .authors { padding-left: 18px; padding-right: 18px; }
  .author-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px 10px; }
  .author-body b { font-size: 12px; }
}

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