/* TsRank 排行页版式
   灰纸面 + 荧光笔黄（只给当前页和第一名）+ 白色信息卡
   深色模式暂时不做（之前试的一版不够好 已删）*/

:root {
  --grad: radial-gradient(80% 110% at var(--gx, 44.4%) var(--gy, 35.2%), #d0b2ff 0%, #ffeed8 43%, #e8400d 88%);
}

/* ================= 欢迎 ================= */
.welcome {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(238,240,243,.55); pointer-events: none; animation: welcome-fade 1.8s ease both;
}
.welcome-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100%, 440px); padding: 28px 20px; text-align: center;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  box-shadow: 0 16px 48px rgba(28,30,36,.14); animation: welcome-rise .32s ease-out both;
}
.welcome-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: var(--grad); opacity: .13;
}
.welcome-title { margin: 0; font-size: clamp(19px, 4vw, 25px); font-weight: 700; }
.welcome-sub, .welcome-todos { margin: 4px 0 0; color: var(--ink-2); }
.welcome-todos:empty { display: none; }
.welcome-todos > div { display: flex; gap: 8px; justify-content: center; align-items: baseline; }
.welcome-todos a { pointer-events: auto; flex: none; }
.welcome-flower { display: block; width: 70px; height: 70px; margin: 0 auto 8px; }
.welcome-petal {
  fill: var(--marker-weak); stroke: var(--marker); stroke-width: 1.4;
  transform-origin: 50% 50%; animation: welcome-bloom .36s ease-out var(--petal-delay) both;
}
.welcome-flower-center { fill: var(--warn); }
@keyframes welcome-fade {
  0%, 100% { opacity: 0; }
  14%, 84% { opacity: 1; }
}
@keyframes welcome-rise { from { transform: translateY(7px); } }
@keyframes welcome-bloom { from { opacity: 0; transform: scale(.18); } }
@media (prefers-reduced-motion: reduce) {
  .welcome-card, .welcome-petal { animation: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(40%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes swipe { from { background-size: 0 100%; } }

/* ================= 导航 ================= */
.nav a.nav-main { color: var(--ink); background: transparent; }
.nav a.nav-main + a:not(.nav-main) { position: relative; margin-inline-start: 14px; }
.nav a.nav-main + a:not(.nav-main)::before {
  content: ''; position: absolute; inset-inline-start: -9px; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: var(--line);
}
.menu .menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px;
  border-radius: 6px; color: var(--ink); text-decoration: none; text-align: left;
}
.menu .menu-item:hover { background: var(--paper); }
.menu-divider { height: 0; margin: 5px 4px; border: 0; border-top: 1px solid var(--line-2); }
.avatar { position: relative; }
.ads-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: #bd3038; color: #fff; font: 650 11px/1 var(--num); white-space: nowrap;
}
.avatar-badge { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.menu-badge { margin-inline-start: auto; }

/* ================= 更新日志 ================= */
dialog.changelog-dialog {
  --changelog-inset: clamp(12px, 4vw, 24px);
  width: min(680px, calc(100% - 24px)); max-height: min(760px, calc(100dvh - 24px));
  padding: 0; overflow: hidden; background: var(--surface);
}
.changelog-dialog[open] { display: flex; flex-direction: column; }
.changelog-dialog h2 {
  align-self: flex-start; margin: 16px var(--changelog-inset);
  border-radius: 2px; font-size: 20px; line-height: 1.35;
}
.changelog-entries {
  min-height: 0; padding: var(--changelog-inset); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; border-block: 1px solid var(--line); background: var(--paper);
}
.changelog-entries:focus-visible { outline-color: var(--muted); outline-offset: -2px; }
.changelog-entry {
  padding: clamp(14px, 3vw, 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow-wrap: anywhere;
}
.changelog-entry + .changelog-entry { margin-top: 14px; }
.changelog-entry h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.changelog-entry ul { margin: 0; padding-inline-start: 1.25em; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.changelog-entry li::marker { color: var(--muted); }
.changelog-entry li + li { margin-top: 7px; }
.changelog-new { border-radius: 4px; padding: 0 5px; background: var(--marker-weak); font-size: 11px; }
.changelog-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px var(--changelog-inset); }
.changelog-credit {
  margin: 0; color: var(--muted); font-size: 12px; text-align: center; text-wrap: balance;
  word-break: keep-all; overflow-wrap: anywhere;
}

/* ================= 排行页顶部：一行汇总 ================= */
.hero { position: relative; isolation: isolate; margin: 0 0 22px; padding-top: 4px; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -90px -10% auto; height: 300px; pointer-events: none;
  background: radial-gradient(50% 80% at 30% 0%, rgba(255,216,77,.2), transparent 72%); }
.hero.intro > * { animation: heroIn .6s cubic-bezier(.2,.8,.2,1) both; }
.hero.intro > :nth-child(2) { animation-delay: .1s; }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.hero-tag { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.hero-tag::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf86; animation: sfPulse 2.4s ease-out infinite; }
.hero-tag .muted { color: var(--muted); }
.hero-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; }
.hero-stats > div { display: flex; align-items: baseline; gap: 6px; padding: 0 18px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { font-family: var(--num); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.hero-stats span { color: var(--muted); font-size: 12.5px; }
.hero-stats b.good { color: var(--good); } .hero-stats b.bad { color: var(--bad); }
.hero-row .hot-toggle { display: inline-flex; align-items: center; gap: 7px; height: 28px; margin-left: auto; padding: 0 11px; border-radius: 999px; color: var(--ink-2); font-size: 12.5px; }
.hot-chev { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .7; }
.hot-toggle.open .hot-chev { transform: translateY(2px) rotate(-135deg); }

/* ================= 热榜 + 数据提醒 ================= */
.hot { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.hot-card { position: relative; min-width: 0; padding: 11px 12px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hot-h { display: flex; align-items: center; gap: 7px; padding: 0 2px 4px; font-weight: 650; font-size: 13.5px; }
.hot-h img { display: block; }
.hot-h .muted { margin-left: auto; font-weight: 400; font-size: 12px; white-space: nowrap; }
.hot-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 6px; margin: 0 -4px; border-radius: 9px; cursor: pointer; transition: background-color .15s; }
.hot-row:hover { background: var(--paper); }
.hot-row > .material-cover { width: 34px; height: 34px; border-radius: 8px; }
.hot-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hot-t span { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-t b { font-family: var(--num); font-weight: 650; font-size: 13.5px; }
.hot-v { font-family: var(--num); font-weight: 750; font-size: 16px; white-space: nowrap; }
.hot-none { padding: 10px 2px; color: var(--faint); font-size: 12px; }
.hot-note { margin: 0 2px 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hot-card.hot-warn .hot-row { grid-template-columns: 34px minmax(0, 1fr); }
.hot-card.hot-warn .hot-t span { color: var(--ink-2); white-space: normal; }
.warn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.hot-card.hot-warn.on .warn-dot { background: #e8a10d; box-shadow: 0 0 0 3px rgba(232,161,13,.2); }
/* 有提醒时是淡黄色便签 */
.hot-card.hot-warn.on { background: #fffbea; border-color: #f1dc8a; }
.hot-card.hot-warn.on .hot-row:hover { background: #fff3c2; }

/* ================= 前三名：横向卡片 ================= */
/* 封面在左；右边名次 + 编号 + 平台图标一行，下面主指标和四项小指标 */
.podium { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 16px; margin: 0 0 26px; }
.pod { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .2s; }
.pod:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 16px 34px -22px rgba(28,30,36,.5); }
.pod-img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.pod-img > .material-cover { height: 100%; }
.pod-img img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.pod:hover .pod-img img { transform: scale(1.05); }
.pod-info { display: flex; flex-direction: column; min-width: 0; padding: 2px 4px 2px 0; }
.pod-top { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.pod-rn { flex: none; font-family: var(--num); font-weight: 900; font-stretch: 72%; font-size: 64px; line-height: .86; letter-spacing: -.04em; padding: 0 4px; }
.pod.p1 .pod-rn { font-size: 76px; }
.pod-code { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; margin-bottom: 6px; font-family: var(--num); font-weight: 650; font-size: 15px; white-space: nowrap; }
.pod-code .picons { position: static; padding: 0; background: none; }
.pod-val { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.pod-val b { font-family: var(--num); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.pod.p1 .pod-val b { font-size: 30px; }
.pod-val span { color: var(--muted); font-size: 12px; }
.pod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); }
.pod-grid div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pod-grid b { font-family: var(--num); font-weight: 700; font-size: 14.5px; }
.pod-grid span { color: var(--muted); font-size: 11.5px; }
/* 金银铜一层浅底色；第一名的名次压荧光笔 入场时划过 */
.pod.p1 { background: linear-gradient(150deg, #fff6cf 0%, #fff 58%); border-color: #f1dc8a; }
.pod.p2 { background: linear-gradient(150deg, #edf0f5 0%, #fff 58%); }
.pod.p3 { background: linear-gradient(150deg, #fbede1 0%, #fff 58%); }
.pod.p1 .pod-rn { background: var(--hl) no-repeat left / 100% 100%; }
.pod.p2 .pod-rn { color: #5b6473; }
.pod.p3 .pod-rn { color: #9a5b2e; }
.podium.intro .pod-rn { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) * 90ms + 120ms); }
.podium.intro .p1 .pod-rn { animation: rise .6s cubic-bezier(.2,.8,.2,1) both, swipe .5s ease-out .6s both; }

/* ================= 素材平铺：封面铺满 信息压在底部 ================= */
.tiles.rank { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 18px; }
.tiles.rank .tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--line-2); color: #fff; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  box-shadow: 0 1px 2px rgba(28,30,36,.08), 0 14px 28px -20px rgba(28,30,36,.5); }
.tiles.rank .tile-img { aspect-ratio: 4 / 5; border-radius: 0; }
.tiles.rank .tile:hover .tile-img { box-shadow: none; }
.tiles.rank .tile-img .material-cover > img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tiles.rank .tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--ink), 0 22px 36px -20px rgba(28,30,36,.55); }
.tiles.rank .tile:hover .tile-img .material-cover > img { transform: scale(1.05); }
.tiles.rank .picons { left: auto; right: 8px; top: 8px; bottom: auto; }
.tiles.rank .rn { position: absolute; top: 9px; left: 9px; z-index: 2; min-width: 30px; padding: 2px 8px 3px; border-radius: 9px; text-align: center; font-size: 19px; line-height: 1.1; background: rgba(255,255,255,.92); color: var(--ink); }
.tiles.rank .tile-info { position: absolute; inset: auto 0 0 0; display: block; padding: 46px 12px 11px;
  background: linear-gradient(to top, rgba(8,8,12,.92) 0%, rgba(8,8,12,.62) 52%, rgba(8,8,12,0) 100%); }
.tiles.rank .tile-code { font-size: 13.5px; color: #fff; }
.tiles.rank .tile-val { margin-top: 1px; }
.tiles.rank .tile-val b { font-size: 21px; letter-spacing: -.02em; color: #fff; }
.tiles.rank .tile-val b.good { color: #5ee6a8; } .tiles.rank .tile-val b.bad { color: #ffa968; }
.tiles.rank .tile-val span { color: rgba(255,255,255,.62); }
.tiles.rank .tile-sub { margin-top: 3px; color: rgba(255,255,255,.62); }
.tiles.rank .tile-sub b { color: rgba(255,255,255,.95); }
.tiles.rank .tile-sub b.good { color: #5ee6a8; } .tiles.rank .tile-sub b.bad { color: #ffa968; }
.tiles.rank .tile.nodata .tile-img .material-cover > img { filter: grayscale(.7) brightness(.8); opacity: 1; }

/* ================= 存疑素材 ================= */
.doubt-panel {
  margin-bottom: 14px; padding: 8px; border: 1px dashed #d9c78a; border-radius: 14px; background: #fbf7e8;
}
.doubt-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 56px; padding: 6px 10px;
  border: 0; border-radius: 10px; background: transparent; box-shadow: none; text-align: left; color: var(--muted); transition: none;
}
.doubt-toggle:hover { background: rgba(255,255,255,.55); }
.doubt-toggle:active { transform: none; }
.doubt-toggle strong { color: var(--ink); font-weight: 650; }
.doubt-toggle .hot-chev { flex: none; margin-inline-start: auto; transition: none; }
.doubt-toggle[aria-expanded="true"] .hot-chev { transform: translateY(2px) rotate(-135deg); }
.doubt-fan { position: relative; flex: none; width: calc(37px + (var(--covers) - 1) * 11px); height: 42px; }
.doubt-fan > .material-cover {
  position: absolute; top: 1px; left: calc(3px + var(--i) * 11px); width: 31px; height: 36px;
  border: 2px solid var(--surface); border-radius: 5px; background: var(--line-2);
  box-shadow: 0 1px 3px rgba(28,30,36,.25); transform: translateY(var(--drop)) rotate(var(--tilt));
}
.doubt-panel > .tiles { margin-top: 10px; padding: 4px 4px 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.doubt-panel .tile-img .material-cover > img { filter: saturate(.75); transition: filter .2s; }
.doubt-panel .tile:hover .tile-img .material-cover > img { filter: none; }
.doubt-sep { display: flex; align-items: center; gap: 12px; margin: 26px 2px 18px; font-size: 12px; color: var(--muted); }
.doubt-sep::before, .doubt-sep::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.list-area.reveal .doubt-panel .tile { animation: none; }

/* ================= 菜单里的外观切换（深色还没有 点了给一句提示） ================= */
.menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 6px; font-size: 12px; color: var(--muted); }
.menu-theme .seg { padding: 2px; }
.menu .menu-theme .seg button { display: inline-block; width: auto; height: 22px; padding: 0 8px; font-size: 12px; text-align: center; }
.menu .menu-theme .seg button.on, .menu .menu-theme .seg button.on:hover { background: var(--ink); color: #fff; }
.menu-tip { margin: 0 10px 6px; padding: 5px 8px; border-radius: 6px; background: var(--marker-weak); color: var(--ink-2); font-size: 12px; }

/* ================= 窄屏 ================= */
@media (max-width: 1100px) {
  .podium { grid-template-columns: 1fr; gap: 12px; }
  .pod { grid-template-columns: 120px minmax(0, 1fr); }
  .pod-rn, .pod.p1 .pod-rn { font-size: 56px; }
}
@media (max-width: 700px) {
  .hero-stats { gap: 4px 16px; }
  .hero-stats > div { padding: 0; border-left: 0; }
  .hero-stats b { font-size: 19px; }
  /* 手机上热榜横着滑 不把页面拉长 */
  .hot { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hot::-webkit-scrollbar { display: none; }
  .hot-card { flex: 0 0 82%; scroll-snap-align: start; }
  .hot-card.hot-warn.on { order: -1; }
  .tiles.rank { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles.rank .material-play { width: 34px; }
  .tiles.rank .tile-info { position: relative; margin-top: -60px; padding-top: 20px;
    background: linear-gradient(to bottom, rgba(8,8,12,0), #14151a 60px); }
}

/* 换页：同站跳转时两页交叉淡化（Chrome / Edge / Safari 18.2+，不支持的照旧）；顶栏单独一层 不跟着淡 */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 光晕会超出内容区 不要因此出现横向滚动条 */
html, body { overflow-x: clip; }


/* ================= 名字为主 编号小字 ================= */
.code-sm { font-family: var(--num); font-weight: 500; font-size: 11px; color: var(--faint); }
.tile-code .code-sm { margin-left: 6px; color: rgba(255,255,255,.5); }
.tiles.rank .tile-code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles.rank .tile-sub { flex-wrap: wrap; row-gap: 2px; }
.tiles.rank .checkout-missing { color: rgba(255,255,255,.68); }
.metrics .checkout-amount, .hero-stats .checkout-amount, .pod-val .checkout-amount, .pod-grid .checkout-amount, .tiles.rank .tile-val .checkout-amount { color: inherit; font: inherit; }
.pod-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pod-info > .code-sm { margin: -4px 0 0 4px; }

/* ================= 生命周期 ================= */
.life { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.life .live { color: var(--good); font-weight: 600; }
.life .live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.life .stop { color: var(--faint); }
.tiles.rank .life { color: rgba(255,255,255,.6); overflow: hidden; }
.tiles.rank .life .live { color: #5ee6a8; }
.tiles.rank .life .stop { color: rgba(255,255,255,.45); }
.pod-life { margin: 6px 0 0 4px; }
.ad-cr { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.lifebox { margin: 18px 0 0; padding: 12px 14px 10px; border-radius: 10px; border: 1px solid var(--line); }
.life-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.life-h b { font-size: 14px; }
.life-h .muted { font-size: 12px; }
.life-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.life-stats div { display: flex; flex-direction: column; min-width: 0; }
.life-stats b { font-family: var(--num); font-weight: 700; font-size: 16px; }
.life-stats b.good { color: var(--good); }
.life-stats span { color: var(--muted); font-size: 11.5px; }
.lc { position: relative; margin-top: 12px; }
.lc-cap { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.lc-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 70px; border-bottom: 1px solid var(--line); }
.lc-bar { height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.lc-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #8a90a0; transition: background-color .12s; }
.lc-bar:hover i, .lc-bar:focus i { background: var(--ink); }
.lc-axis { display: flex; justify-content: space-between; margin-top: 3px; font-family: var(--num); font-size: 11px; color: var(--faint); }
.lc-tip { margin-top: 6px; font-size: 12px; color: var(--ink-2); font-family: var(--num); }
.lc-tip b { margin-right: 8px; }
@media (max-width: 700px) { .life-stats { grid-template-columns: repeat(2, 1fr); } }

.detail-tabs.seg {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}
.detail-tabs button { flex: 0 0 auto; height: 32px; white-space: nowrap; }
.detail-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.detail-tabs ~ [role="tabpanel"] { margin-top: 10px; }
.detail-tabs ~ [role="tabpanel"] > :first-child { margin-top: 0; }

/* 存疑 / 不展示的标记放在封面左上角（这类素材没有名次） */
.tiles.rank .tile-img .rank-status-tag { position: absolute; top: 9px; left: 9px; z-index: 2; padding: 3px 9px; font-size: 12px; font-weight: 600; }

/* ================= 窄屏顶栏：页签可横向滚动 ================= */
@media (max-width: 700px) {
  header .beta { display: none; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
}

/* ================= 数据更新状态条 ================= */
.sync-bar { margin: -8px 0 14px; font-size: 13px; color: var(--muted); }
.sync-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sync-line { overflow-wrap: anywhere; }
.sync-refresh[hidden] { display: none; }
.sync-note { margin: 4px 0 0; min-height: 1.4em; }
.changelog-entry strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, var(--marker-weak) 62%); }
.folder-tip { margin: 8px 0; line-height: 1.6; font-size: 14px; }

/* beta 标记：荧光笔底色，比灰色描边更显眼 */
.beta { font-size: 11px; font-weight: 700; padding: 1px 7px; border: 0; border-radius: 999px; background: var(--marker); color: var(--ink); letter-spacing: .4px; margin-top: 0; }

/* 广告系列认领行（管理页和手动关联页共用） */
.campaign-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
}
.campaign-row + .campaign-row {
  border-top: 1px solid var(--line-2);
}
.campaign-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.campaign-claim { margin-bottom: 16px; }
.campaign-claim h3 { margin: 16px 0 4px; font-size: 14px; }
