/* ============================================================
   芒果Show · 设计系统
   暗色玻璃拟态 × 芒果渐变 × 流体动效
   ============================================================ */

:root {
  --mango-1: #ffc53d;
  --mango-2: #ff7a00;
  --mango-3: #ff4d6d;
  --grad: linear-gradient(135deg, var(--mango-1) 0%, var(--mango-2) 48%, var(--mango-3) 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(255, 77, 109, .16));

  --bg: #0b0d12;
  --bg-2: #10131b;
  --card: rgba(255, 255, 255, .045);
  --card-solid: #151925;
  --card-hover: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f4fa;
  --text-2: #a7adc0;
  --text-3: #6b7288;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --glow: 0 10px 40px rgba(255, 122, 0, .35);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;

  --read-bg: #16181f;
  --read-card: #1d2029;
  --read-text: #cfd4e2;
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-2: #efede6;
  --card: rgba(255, 255, 255, .72);
  --card-solid: #ffffff;
  --card-hover: rgba(255, 255, 255, .95);
  --line: rgba(20, 16, 4, .1);
  --line-strong: rgba(20, 16, 4, .18);
  --text: #1d2027;
  --text-2: #5a6072;
  --text-3: #9298a8;
  --shadow: 0 18px 50px rgba(120, 90, 20, .18);
  --read-bg: #f8f5ec;
  --read-card: #fffdf6;
  --read-text: #3a3f4d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 主题切换即时生效，不做过渡：阅读场景需要零延迟换装 */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(255, 122, 0, .35); }

:focus-visible { outline: 2px solid rgba(255, 122, 0, .65); outline-offset: 2px; border-radius: 4px; }

/* ---------------- 背景特效 ---------------- */
/* 光球用径向渐变柔和衰减模拟 blur 效果：视觉等效但零滤镜开销，低端设备不卡顿 */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.orb-a { width: 720px; height: 720px; left: -220px; top: -240px; background: radial-gradient(circle, rgba(255, 170, 30, .34) 0%, rgba(255, 170, 30, .16) 34%, rgba(255, 170, 30, .05) 58%, transparent 72%); }
.orb-b { width: 700px; height: 700px; right: -240px; top: 16%; background: radial-gradient(circle, rgba(255, 77, 109, .26) 0%, rgba(255, 77, 109, .12) 34%, rgba(255, 77, 109, .04) 58%, transparent 72%); animation-delay: -8s; }
.orb-c { width: 820px; height: 820px; left: 26%; bottom: -420px; background: radial-gradient(circle, rgba(255, 122, 0, .2) 0%, rgba(255, 122, 0, .09) 34%, rgba(255, 122, 0, .03) 58%, transparent 72%); animation-delay: -14s; }
[data-theme="light"] .orb { opacity: .55; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, -50px) scale(1.15); }
}

.grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.topbar.hide { transform: translateY(-100%); }
.topbar-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 26px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--grad); border-radius: 13px; box-shadow: var(--glow);
}
.logo-mark svg { width: 26px; height: 26px; display: block; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; display: flex; flex-direction: column; }
.logo-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text i { font-style: normal; font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 3px; }

.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 15px; font-weight: 600;
  color: var(--text-2); border-radius: 12px; transition: all .25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(255, 122, 0, .8);
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 0 14px; height: 42px; border-radius: 999px; width: 320px;
  transition: all .3s var(--ease); color: var(--text-3);
}
.search-pill:focus-within { border-color: rgba(255, 122, 0, .55); box-shadow: 0 0 0 4px rgba(255, 122, 0, .14); width: 380px; background: var(--card-hover); }
.search-pill input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.search-pill input::placeholder { color: var(--text-3); }
.search-pill kbd {
  font-family: inherit; font-size: 11px; padding: 2px 7px; border-radius: 7px;
  border: 1px solid var(--line-strong); color: var(--text-3);
}
.ico { width: 20px; height: 20px; flex-shrink: 0; }

.btn-ghost {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  transition: all .25s var(--ease);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.ico-sun { display: none; }
[data-theme="light"] .ico-sun { display: block; }
[data-theme="light"] .ico-moon { display: none; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 13px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14), var(--glow);
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 44px rgba(255, 122, 0, .5); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary .ico { width: 17px; height: 17px; }

/* ---------------- 布局 ---------------- */
.view { max-width: 1360px; margin: 0 auto; padding: 28px 24px 60px; min-height: 70vh; outline: none; }

.view-anim { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(22px); } }

.section { margin: 56px 0; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-title { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: .5px; }
.section-title::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 14px rgba(255, 122, 0, .7); }
.sec-no { font-family: var(--font-serif); font-size: 13px; font-weight: 700; color: var(--mango-2); letter-spacing: 3px; opacity: .9; align-self: flex-end; padding-bottom: 3px; }
.section-sub { font-size: 13px; color: var(--text-3); }
.section-more { margin-left: auto; font-size: 13.5px; color: var(--mango-2); font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; gap: 3px; }
.section-more .ico { width: 13px; height: 13px; }
.section-more:hover { filter: brightness(1.2); transform: translateX(2px); }

/* ---------------- Hero 轮播 ---------------- */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-track { display: flex; transition: transform .8s var(--ease); }
.hero-slide {
  position: relative; flex: 0 0 100%; min-height: 420px;
  display: flex; align-items: center; padding: 48px 56px;
  background: linear-gradient(120deg, var(--hc1), var(--hc2) 55%, var(--hc3));
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 85% 10%, rgba(255, 255, 255, .22), transparent 50%),
              linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%);
}
/* hero 抽象艺术：柔光球 + 缓旋光环（零滤镜开销） */
.hero-art { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: 430px; height: 430px; pointer-events: none; }
.hero-art .hero-blob { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .26), transparent 72%); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 70s linear infinite; }
.ha-ring { fill: none; stroke: rgba(255, 255, 255, .30); stroke-width: 1.4; }
.ha-ring2 { stroke: rgba(255, 255, 255, .16); }
.ha-ring3 { stroke: rgba(255, 255, 255, .10); }
.ha-dash { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.6; stroke-dasharray: 5 12; stroke-linecap: round; }
.ha-dot { fill: rgba(255, 255, 255, .95); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-body { position: relative; z-index: 2; max-width: 620px; }
/* hero 文案逐行入场 */
.hero-body > * { animation: heroIn .8s var(--ease) both; }
.hero-body > *:nth-child(2) { animation-delay: .12s; }
.hero-body > *:nth-child(3) { animation-delay: .22s; }
.hero-body > *:nth-child(4) { animation-delay: .32s; }
.hero-body > *:nth-child(5) { animation-delay: .42s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-kicker { letter-spacing: 4px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; letter-spacing: 1px; color: #fff; line-height: 1.18; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); margin-bottom: 14px; }
.hero-desc { font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, .92); margin-bottom: 26px; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }

.hero-dots { position: absolute; bottom: 22px; right: 28px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: all .3s var(--ease); }
.hero-dot.on { width: 30px; background: #fff; }

/* ---------------- 通用按钮/标签 ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
}
.chip .ico { width: 13px; height: 13px; opacity: .9; }
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--grad-soft); color: var(--mango-2); border: 1px solid rgba(255, 122, 0, .22);
}
.tag.z { background: var(--card); color: var(--text-2); border-color: var(--line); }

.badge-hot {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(255, 77, 109, .5);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge-hot .ico { width: 11px; height: 11px; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.badge-score {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  color: var(--mango-1); font-weight: 800; font-size: 12.5px;
  padding: 4px 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
}
.badge-score .ico { width: 11px; height: 11px; }
.badge-free {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(46, 204, 113, .9); padding: 3px 9px; border-radius: 8px;
}
.badge-debut {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #fff;
  background: linear-gradient(135deg, #ffc53d, #ff4d6d); padding: 3px 10px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 122, 0, .45);
}

/* ---------------- 封面卡片 ---------------- */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

.card { scroll-snap-align: start; width: 168px; flex-shrink: 0; position: relative; }
/* 封面：编辑排版风 —— 衬线大字水印 + 细内框 + 高光 */
.cover {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(155deg, var(--c1), var(--c2) 88%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  transition: all .35s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .06) 46%, transparent 60%);
}
.cover .cover-sheen { position: absolute; inset: 0; opacity: .8; transition: opacity .4s var(--ease); background: radial-gradient(130% 90% at 88% -8%, rgba(255, 255, 255, .2), transparent 46%), linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 34%); }
.card:hover .cover-sheen { opacity: 1; }
.cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { background: #0a0c10; }
.cover.has-img::before { background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .04) 42%, transparent 58%); }
.cover .cover-frame { position: absolute; inset: 9px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; pointer-events: none; }
.cover .cover-kind { position: absolute; top: 17px; left: 18px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 4px; color: rgba(255, 255, 255, .88); }
.cover .cover-glyph {
  position: absolute; top: -16px; right: -10px; z-index: 1;
  font-family: var(--font-serif); font-weight: 900; font-size: 120px; line-height: 1.1;
  color: rgba(255, 255, 255, .15); user-select: none; transition: transform .5s var(--ease);
}
.cover .cover-title { position: relative; z-index: 2; color: #fff; font-weight: 800; font-size: 16.5px; line-height: 1.4; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.cover .cover-sub { position: relative; z-index: 2; color: rgba(255, 255, 255, .82); font-size: 12px; margin-top: 5px; font-weight: 600; }
.cover .cover-play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .3s;
}
.cover .cover-play span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 34px rgba(255, 122, 0, .7);
  transform: scale(.6); transition: transform .35s var(--ease);
}
.card-wide .cover .cover-glyph { font-size: 66px; top: -8px; right: -6px; }
.shelf-card .cover .cover-glyph { font-size: 66px; top: -8px; right: -6px; }
.detail-cover .cover .cover-glyph { font-size: 158px; top: -20px; right: -12px; }
.card:hover .cover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 122, 0, .4); }
.card:hover .cover-glyph { transform: scale(1.07) rotate(2deg); }
.card:hover .cover-play { opacity: 1; }
.card:hover .cover-play span { transform: scale(1); }
.card-title { margin-top: 11px; font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 4px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.card-meta .cm { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .cm .ico { width: 13px; height: 13px; opacity: .8; }
.card-meta .cm.fire { color: var(--mango-2); font-weight: 700; }
.card-wide .cw-meta .tag .ico { width: 12px; height: 12px; }

/* 宽卡片（横版推荐） */
.card-wide { width: 100%; display: flex; gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: all .3s var(--ease); align-items: center; }
.card-wide:hover { background: var(--card-hover); transform: translateX(6px); border-color: var(--line-strong); }
.card-wide .cover { width: 96px; aspect-ratio: 3/4; flex-shrink: 0; border-radius: 12px; }
.card-wide .cw-body { min-width: 0; flex: 1; }
.card-wide .cw-title { font-size: 16px; font-weight: 700; }
.card-wide .cw-desc { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-wide .cw-meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------- 分类宫格 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  position: relative; overflow: hidden; padding: 22px 18px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); text-align: left;
  transition: all .35s var(--ease); display: block;
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(255, 122, 0, .45); background: var(--card-hover); box-shadow: var(--glow); }
.cat-ico { display: inline-flex; color: var(--mango-2); margin-bottom: 12px; transition: transform .35s var(--ease); }
.cat-ico .ico { width: 30px; height: 30px; }
.cat-card:hover .cat-ico { transform: scale(1.14); }
.cat-card .cat-name { font-size: 16px; font-weight: 800; }
.cat-card .cat-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.cat-card .cat-count { position: absolute; right: 14px; top: 12px; font-size: 11px; color: var(--text-3); }

/* ---------------- 榜单 ---------------- */
.rank-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
.rank-card { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.rank-card h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rank-card h3 .ico { width: 20px; height: 20px; color: var(--mango-2); flex-shrink: 0; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 14px; transition: all .25s var(--ease); }
.rank-row:hover { background: var(--card-hover); transform: translateX(5px); }
.rank-no {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-3);
}
.rank-no.top1 { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(255, 122, 0, .55); border: none; }
.rank-no.top2 { background: linear-gradient(135deg, #c8d2e8, #8e9cb8); color: #17202f; border: none; }
.rank-no.top3 { background: linear-gradient(135deg, #e8b48c, #b9743f); color: #241205; border: none; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.rank-trend { display: inline-flex; align-items: center; flex-shrink: 0; }
.rank-trend .ico { width: 15px; height: 15px; }
.rank-trend.up { color: #2ecc71; }
.rank-trend.down { color: #7c8698; }

/* ---------------- 详情页 ---------------- */
.detail-hero { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); padding: 34px; position: relative; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center 18%; opacity: .15; pointer-events: none; }
.hero-bg-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card-solid) 2%, transparent 65%), linear-gradient(105deg, var(--card-solid) 0%, transparent 55%); }
[data-theme="dark"] .hero-bg-img::after { background: linear-gradient(to top, #151925 2%, transparent 65%), linear-gradient(105deg, #151925 0%, transparent 55%); }
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 130% at 12% 0%, rgba(255, 122, 0, .16), transparent 55%);
}
.detail-grid { position: relative; display: flex; gap: 34px; align-items: flex-start; }
.detail-cover { width: 220px; flex-shrink: 0; }
.detail-cover .cover { width: 100%; }
.detail-body { flex: 1; min-width: 0; }
.detail-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mango-2); margin-bottom: 10px; letter-spacing: 1px; }
.detail-kind .ico { width: 17px; height: 17px; }
.cast-pill .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; color: var(--mango-2); }
.detail-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.2; margin-bottom: 12px; overflow-wrap: break-word; }
.detail-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 20px; }
.dstat { display: flex; flex-direction: column; gap: 3px; }
.dstat b { font-family: var(--font-serif); font-size: 22px; font-weight: 900; letter-spacing: .5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dstat span { font-size: 12px; color: var(--text-3); }
.detail-desc { font-size: 14.5px; line-height: 1.9; color: var(--text-2); }
.detail-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn-lg {
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 30px;
  border-radius: 16px; font-size: 16px; font-weight: 700; transition: all .25s var(--ease);
}
.btn-lg.play {
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14), var(--glow);
}
.btn-lg.play:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 16px 50px rgba(255, 122, 0, .55); }
.btn-lg.soft { background: var(--card); border: 1px solid var(--line-strong); color: var(--text); }
.btn-lg.soft:hover { border-color: rgba(255, 122, 0, .5); transform: translateY(-3px); }
.btn-lg.soft.on { background: var(--grad-soft); border-color: rgba(255, 122, 0, .5); color: var(--mango-2); }
.btn-lg .ico { width: 20px; height: 20px; }

.cast-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.cast-pill { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.cast-pill b { font-size: 14.5px; }
.cast-pill span { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* 剧集/章节网格 */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.ep-item {
  position: relative; padding: 0; height: 74px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-weight: 700; font-size: 15px; transition: all .25s var(--ease);
}
.ep-item small { font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.ep-item:hover { border-color: rgba(255, 122, 0, .55); transform: translateY(-3px); background: var(--card-hover); }
.ep-item.current { background: var(--grad); color: #fff; box-shadow: var(--glow); border: none; }
.ep-item.current small { color: rgba(255, 255, 255, .85); }
.ep-item .lock { position: absolute; top: 7px; right: 8px; color: var(--text-3); }
.ep-item .lock .ico { width: 11px; height: 11px; }
.ep-item.current .lock { color: rgba(255, 255, 255, .85); }

.chap-list { display: flex; flex-direction: column; gap: 8px; }
.chap-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  transition: all .25s var(--ease); font-size: 14.5px; font-weight: 600;
}
.chap-item:hover { background: var(--card-hover); border-color: rgba(255, 122, 0, .45); transform: translateX(5px); }
.chap-item .ci-no { color: var(--text-3); font-size: 12.5px; flex-shrink: 0; width: 64px; }
.chap-item .ci-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chap-item .ci-vip { font-size: 11px; color: var(--mango-1); background: var(--grad-soft); border: 1px solid rgba(255, 197, 61, .3); padding: 2px 8px; border-radius: 7px; flex-shrink: 0; }
.chap-item.read { opacity: .55; }
.chap-item .ci-check { color: #2ecc71; flex-shrink: 0; display: inline-flex; }
.chap-item .ci-check .ico { width: 14px; height: 14px; }

/* ---------------- 播放器 ---------------- */
.player-wrap { display: flex; gap: 26px; align-items: flex-start; }
.player-main { flex: 1; min-width: 0; }
.player-box {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #05060a;
}
.player-scene {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 130% at 30% 20%, var(--sc1, #2b1a4a), var(--sc2, #0a0714) 70%);
  transition: background 1.2s var(--ease);
}
.player-scene .scene-glow {
  position: absolute; inset: 13%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sc1, #4a2b6a), transparent 76%);
  opacity: .85; animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .5; transform: scale(1.06); } }
.player-scene .scene-rings { position: absolute; left: 50%; top: 50%; width: min(56vh, 380px); height: min(56vh, 380px); transform: translate(-50%, -50%); animation: spin 46s linear infinite; }
.player-scene .scene-rings circle { fill: none; }
.player-scene .sr1 { stroke: rgba(255, 255, 255, .28); stroke-width: 1.3; }
.player-scene .sr2 { stroke: rgba(255, 255, 255, .15); stroke-width: 1.1; }
.player-scene .sr3 { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.player-scene .srd { stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 4 15; stroke-linecap: round; }
.player-scene .scene-core {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff; opacity: .9;
  box-shadow: 0 0 26px 7px rgba(255, 255, 255, .35);
  animation: corePulse 3.2s ease-in-out infinite;
}
@keyframes corePulse { 50% { transform: scale(1.5); opacity: .55; } }
.player-tag {
  position: absolute; top: 14px; left: 16px; z-index: 6;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; color: rgba(255, 255, 255, .78);
  background: rgba(0, 0, 0, .4); padding: 4px 12px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
}
.player-scene .scene-vignette { position: absolute; inset: 0; background: radial-gradient(75% 75% at 50% 45%, transparent 45%, rgba(0, 0, 0, .6)); }
.player-sub {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%);
  z-index: 5; max-width: 82%; text-align: center;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: clamp(15px, 2vw, 20px); font-weight: 600; line-height: 1.6;
  padding: 12px 24px; border-radius: 16px;
  opacity: 0; animation: subIn .5s var(--ease) forwards;
}
@keyframes subIn { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.player-paused-mask { position: absolute; inset: 0; z-index: 6; display: none; place-items: center; background: rgba(0, 0, 0, .45); cursor: pointer; }
.player-paused-mask.show { display: grid; }
.player-paused-mask span { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 50px rgba(255, 122, 0, .8); animation: pulse 1.6s infinite; }

.player-ctrl { padding: 16px 4px 0; }
.pbar { position: relative; height: 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.pbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px rgba(255, 122, 0, .7); width: 0%; }
.pbar-fill::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translate(0, -50%); width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 122, 0, .9); }
.player-btns { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pbtn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); transition: all .2s; }
.pbtn:hover { color: var(--text); background: var(--card); }
.pbtn.main { width: 52px; height: 52px; background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(255, 122, 0, .5); }
.pbtn.main:hover { transform: scale(1.06); }
.ptime { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-left: auto; }
.pspeed { font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pspeed:hover { color: var(--mango-2); border-color: rgba(255, 122, 0, .5); }

.ep-side { width: 320px; flex-shrink: 0; }
.ep-side .ep-grid { grid-template-columns: repeat(4, 1fr); }
.ep-side .ep-grid::-webkit-scrollbar { width: 6px; }
.ep-side .ep-grid::-webkit-scrollbar-thumb { background: linear-gradient(var(--mango-2), var(--mango-3)); border-radius: 99px; }
.ep-side .ep-grid::-webkit-scrollbar-track { background: transparent; }
.player-title-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.player-epname { font-size: 17px; font-weight: 700; }

/* ---------------- 阅读器 ---------------- */
.reader-top {
  position: sticky; top: var(--nav-h); z-index: 90;
  backdrop-filter: blur(18px); background: color-mix(in srgb, var(--read-bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 12px 22px;
  margin: -28px -24px 24px;
  color: var(--read-text);
}
.reader-top .rt-title { font-size: 15px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-top .pbtn { width: 38px; height: 38px; color: var(--read-text); }
.reader-top .pbtn:hover { color: var(--read-text); filter: brightness(1.25); }
/* 浅色阅读主题下细线加深，保证分隔可见 */
[data-rtheme="paper"] .reader-top, [data-rtheme="white"] .reader-top, [data-rtheme="green"] .reader-top { border-bottom-color: rgba(0, 0, 0, .12); }
/* 阅读进度条 */
.rp-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.rp-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 8px rgba(255, 122, 0, .55); transition: width .15s linear; }
.reader-body {
  max-width: 760px; margin: 0 auto; padding: 44px 38px 70px;
  background: var(--read-card); border-radius: var(--r-lg); border: 1px solid var(--line);
  min-height: 60vh;
}
.reader-chap-title { font-family: var(--font-serif); font-size: 25px; font-weight: 900; letter-spacing: 1px; margin-bottom: 8px; }
.reader-chap-meta { font-size: 12.5px; color: var(--text-3); margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.reader-text { font-family: var(--font-serif); font-size: var(--reader-fs, 17px); line-height: 2.2; color: var(--read-text); letter-spacing: 0; text-align: left; overflow-wrap: break-word; }
.reader-text p { margin-bottom: 1.15em; text-indent: 2em; }
.reader-text p:first-letter { letter-spacing: 0; }
.reader-foot { max-width: 760px; margin: 18px auto 0; display: flex; justify-content: space-between; gap: 14px; }
.reader-foot .btn-lg { height: 46px; padding: 0 26px; font-size: 14.5px; flex: 1; justify-content: center; }

/* 阅读设置面板 */
.reader-set-panel {
  position: fixed; right: 24px; top: calc(var(--nav-h) + 56px); z-index: 95;
  width: 300px; padding: 20px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: viewIn .35s var(--ease) both;
}
.reader-set-panel h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.set-row { margin-bottom: 16px; }
.set-row label { font-size: 12px; color: var(--text-3); display: block; margin-bottom: 8px; }
.fs-ctrl { display: flex; gap: 10px; }
.fs-ctrl button { flex: 1; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); font-weight: 700; color: var(--text-2); }
.fs-ctrl button:hover { border-color: rgba(255, 122, 0, .5); color: var(--text); }
.theme-dots { display: flex; gap: 10px; }
.theme-dot { flex: 1; height: 44px; border-radius: 11px; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.theme-dot.on { border-color: var(--mango-2); box-shadow: 0 0 0 3px rgba(255, 122, 0, .2); }
.td-dark { background: #16181f; color: #cfd4e2; }
.td-paper { background: #f5ecd8; color: #5b4a2f; }
.td-green { background: #cce8cf; color: #2f4a35; }
.td-white { background: #ffffff; color: #333; border: 1px solid var(--line); }

/* ---------------- 书架 ---------------- */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.shelf-card { position: relative; display: flex; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: all .3s var(--ease); }
.shelf-card:hover { background: var(--card-hover); transform: translateY(-4px); border-color: var(--line-strong); }
.shelf-card .cover { width: 92px; flex-shrink: 0; border-radius: 12px; }
.shelf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shelf-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.shelf-title .kind-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 7px; background: var(--grad-soft); color: var(--mango-2); font-weight: 700; flex-shrink: 0; }
.shelf-progress-text { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.shelf-bar { height: 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); margin-top: 8px; overflow: hidden; }
.shelf-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.shelf-btns { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; }
.shelf-btns .btn-lg { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 12px; flex: 1; justify-content: center; }
.shelf-remove { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: all .2s; }
.shelf-remove .ico { width: 14px; height: 14px; }
.shelf-remove:hover { color: var(--mango-3); background: var(--card); }

.empty { text-align: center; padding: 90px 20px; color: var(--text-3); }
.empty .empty-icon { display: inline-flex; margin-bottom: 18px; color: var(--text-3); opacity: .7; }
.empty .empty-icon .ico { width: 54px; height: 54px; stroke-width: 1.2; }
.empty h3 { color: var(--text-2); font-size: 19px; margin-bottom: 8px; }
.empty p { font-size: 13.5px; margin-bottom: 24px; }

/* ---------------- 搜索页 ---------------- */
.search-tips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0; }
.search-tips .tag { cursor: pointer; padding: 8px 18px; font-size: 13.5px; transition: all .25s; border-radius: 999px; }
.search-tips .tag:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ---------------- 回到顶部 / 续读横幅 / 热搜榜 ---------------- */
.back-top {
  position: fixed; right: 26px; bottom: 34px; z-index: 95;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  border: 1px solid var(--line-strong); color: var(--text-2);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: all .35s var(--ease);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { color: var(--mango-2); border-color: rgba(255, 122, 0, .5); transform: translateY(-3px); }
.back-top .ico { width: 20px; height: 20px; }

.resume-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; line-height: 1.6;
  margin-bottom: 22px; padding: 13px 18px; border-radius: 14px;
  background: var(--grad-soft); border: 1px solid rgba(255, 122, 0, .3);
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: all .25s var(--ease);
}
.resume-banner .ico { width: 16px; height: 16px; color: var(--mango-2); flex-shrink: 0; }
.resume-banner .rb-arrow { margin-left: auto; }
.resume-banner:hover { transform: translateY(-2px); border-color: rgba(255, 122, 0, .55); }

.hot-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; max-width: 860px; margin: 0 auto; }
.hot-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: all .2s var(--ease); font-weight: 600; font-size: 14px;
}
.hot-item:hover { background: var(--card-hover); transform: translateX(4px); border-color: rgba(255, 122, 0, .4); }
.hot-item .h-heat { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ---------------- 完善版排版升级 ---------------- */
/* 阅读主题全站化：浅色阅读主题覆写全局令牌，顶栏/页脚/弹窗统一换装 */
html[data-rtheme="paper"] {
  --bg: #f5ecd8; --bg-2: #efe3c6; --card: rgba(120, 90, 40, .06); --card-solid: #fffaf0;
  --card-hover: rgba(120, 90, 40, .1); --line: rgba(90, 60, 20, .14); --line-strong: rgba(90, 60, 20, .26);
  --text: #4a3b28; --text-2: #7a6a50; --text-3: #a5977c; --shadow: 0 14px 40px rgba(120, 90, 30, .18);
}
html[data-rtheme="white"] {
  --bg: #f4f4f2; --bg-2: #ececea; --card: rgba(0, 0, 0, .04); --card-solid: #fff;
  --card-hover: rgba(0, 0, 0, .07); --line: rgba(0, 0, 0, .1); --line-strong: rgba(0, 0, 0, .2);
  --text: #2b2e35; --text-2: #5a6270; --text-3: #9aa0ab; --shadow: 0 14px 40px rgba(0, 0, 0, .12);
}
html[data-rtheme="green"] {
  --bg: #cfe6d2; --bg-2: #c2ddc6; --card: rgba(20, 60, 35, .06); --card-solid: #e2f3e5;
  --card-hover: rgba(20, 60, 35, .1); --line: rgba(20, 60, 35, .14); --line-strong: rgba(20, 60, 35, .26);
  --text: #24402e; --text-2: #4d6a55; --text-3: #7d9683; --shadow: 0 14px 40px rgba(20, 80, 45, .16);
}
html[data-rtheme="paper"] .bg-fx, html[data-rtheme="white"] .bg-fx, html[data-rtheme="green"] .bg-fx { display: none; }

/* 章节标题书卷式排版 */
.reader-chap-title { text-align: center; margin-bottom: 10px; }
.reader-chap-meta { text-align: center; border-bottom: none; margin-bottom: 6px; }
.ornament { display: flex; align-items: center; gap: 14px; margin: 4px 0 36px; color: var(--mango-2); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; }
.ornament::before { background: linear-gradient(90deg, transparent, var(--line-strong)); }
.ornament::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.ornament .o-dot { width: 5px; height: 5px; transform: rotate(45deg); background: var(--mango-2); }
@media (min-width: 768px) { .reader-text { text-align: justify; } }

/* 详情简介折叠 */
.detail-desc.clampable { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail-desc.open { -webkit-line-clamp: unset; overflow: visible; }
.desc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mango-2); }
.desc-more .ico { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.desc-more.on .ico { transform: rotate(180deg); }

/* 数据统计图标 */
.d-ico { display: inline-flex; color: var(--mango-2); opacity: .8; }
.d-ico .ico { width: 15px; height: 15px; }

/* 卡片标题双行 */
.card-title { -webkit-line-clamp: 2; min-height: 40px; }

/* 顶栏滚动投影 */
.topbar.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .28); }

/* 移动端 Tab 活跃胶囊 */
.tabbar a.active { background: var(--grad-soft); border-radius: 13px; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line-strong); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); backdrop-filter: blur(14px);
  animation: toastIn .4s var(--ease) both;
}
.toast .t-ico { display: inline-flex; color: #2ecc71; }
.toast .t-ico .ico { width: 16px; height: 16px; }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(.92); } }

/* ---------------- 页脚 & 底部导航 ---------------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 24px 110px; }
.footer-inner { max-width: 1360px; margin: 0 auto; display: flex; gap: 50px; flex-wrap: wrap; }
.footer-brand { font-size: 18px; font-weight: 800; }
.footer-brand p { font-size: 13px; color: var(--text-3); font-weight: 400; margin-top: 8px; line-height: 1.7; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h5 { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 9px; transition: color .2s; }
.footer-cols a:hover { color: var(--mango-2); }
.footer-note { width: 100%; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }

.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  backdrop-filter: blur(22px); background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.tabbar a.active { color: var(--mango-2); }
.tabbar .ico { width: 23px; height: 23px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .search-pill { width: 200px; }
  .search-pill:focus-within { width: 240px; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .player-wrap { flex-direction: column; }
  .ep-side { width: 100%; }
}

@media (max-width: 768px) {
  .nav-links, #btnTheme { display: none; }
  .only-mobile { display: grid !important; }
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .logo-text i { display: none; }
  .topbar .btn-primary { display: none; }
  .search-pill { display: flex; flex: 1; min-width: 0; width: auto; max-width: none; height: 38px; margin-left: auto; }
  .search-pill:focus-within { width: auto; }
  .search-pill kbd { display: none; }
  #btnSearchMobile { display: none !important; }
  html, body { overflow-x: hidden; }
  .tabbar { display: flex; }
  .view { padding: 18px 14px 40px; }
  .hero-slide { min-height: 400px; padding: 30px 24px; }
  .hero-art { width: 250px; height: 250px; right: -70px; opacity: .85; }
  .hero-body { max-width: 100%; }
  .detail-grid { flex-direction: column; }
  .detail-cover { width: 170px; margin: 0 auto; }
  .detail-cover .cover .cover-glyph { font-size: 120px; }
  .detail-hero { padding: 24px 18px; }
  .reader-top { margin: -18px -14px 18px; padding: 10px 12px; }
  .reader-body { padding: 30px 20px 50px; }
  .footer { padding-bottom: 130px; }
  .reader-set-panel { right: 12px; left: 12px; width: auto; }
  .btn-primary span, #btnSearchMobile { white-space: nowrap; }
}

@media (max-width: 480px) {
  .card { width: 132px; }
  .cover .cover-glyph { font-size: 92px; }
  .detail-stats { gap: 18px; }
  .btn-lg { padding: 0 22px; font-size: 14.5px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
