/*
Theme Name: 冷蓝 HUD 三栏（N30）
Theme URI: https://example.invalid/
Author: SD Network
Description: HUD 三栏：左信号列表（编号 + 更新进度条）、中央扫描线取景主屏、右侧环形仪表，下接数据表式「全部上新」。数据层由 mu-plugin 提供，主题只负责展示。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-n30
*/
:root{
  --bg:#050b14;
  --surface:#0a1626;
  --surface2:#0f2036;
  --ink:#dbe9f6;
  --muted:#7893ad;
  --line:#16304a;
  --accent:#f5475b;
  --accent-2:#38bdf8;
  --accent-soft:rgba(245,71,91,0.16);
  --on-accent:#111111;
  --on-accent-2:#111111;
  --radius:3px;
  --wrap:1320px;
  --gut:20px;
  --font:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans Mono CJK SC","Microsoft YaHei",monospace;
  --font-d:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans Mono CJK SC","Microsoft YaHei",monospace;
  --font-m:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans Mono CJK SC","Microsoft YaHei",monospace;
  --scrim:rgba(0,0,0,.7);
  --cols:5;
  --cols-md:3;
  --cols-sm:2;
  --gap:16px;
  --gap-sm:12px;
  --ratio:3 / 4;
  --grid:#0b1a2c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.sd-no-scroll { overflow: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main { display: block; min-width: 0; overflow-x: clip; }

.n30-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- 搜索表单 ---------- */
.n30-sf { display: flex; gap: 8px; align-items: stretch; }
.n30-sf input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.n30-sf input[type="search"]::placeholder { color: var(--muted); opacity: .85; }
.n30-sf button {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- 搜索面板 / 遮罩 / 手机抽屉（app.js 以 id 绑定） ---------- */
.n30-search {
  position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center;
  padding: 12vh 16px 16px; background: var(--scrim);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.n30-search.is-open { opacity: 1; visibility: visible; }
.n30-search__box {
  width: min(640px, 100%); max-height: 80vh; overflow: auto; padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
}
.n30-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.n30-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.n30-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px;
}
.n30-tags a:hover { border-color: var(--accent); color: var(--accent); }

.n30-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim); opacity: 0; transition: opacity .25s; }
.n30-overlay.is-open { opacity: 1; }
.n30-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(320px, 86vw);
  padding: 68px 22px 28px; overflow: auto; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
}
.n30-drawer.is-open { transform: none; visibility: visible; }
.n30-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.n30-drawer__list { list-style: none; margin: 0; padding: 0; }
.n30-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.n30-drawer__list [aria-current="page"], .n30-drawer__list .current-menu-item > a { color: var(--accent); font-weight: 700; }

/* ---------- 页头公共：工具按钮 ---------- */
.n30-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); border-radius: var(--radius); font-size: 14px;
}
.n30-tool:hover { border-color: var(--accent); color: var(--accent); }
.n30-tool svg { flex: 0 0 auto; }
.n30-tool__tx { white-space: nowrap; }
.n30-brand { display: inline-flex; align-items: center; min-width: 0; font-weight: 800; letter-spacing: .02em; }
.n30-brand img { max-height: 44px; width: auto; }
.n30-nav__list, .n30-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.n30-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; }
.n30-nav [aria-current="page"], .n30-nav .current-menu-item > a { color: var(--accent); }

/* ---------- 面包屑 ---------- */
.sd-crumbs { padding: 14px 0 4px; font-size: 13px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.sd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.sd-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.sd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.sd-crumbs a:hover { color: var(--accent); }
.sd-crumbs [aria-current="page"] { color: var(--ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 分页 ---------- */
.sd-pagination { margin: 36px 0 8px; }
.sd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sd-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; border-radius: var(--radius);
}
.sd-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* ---------- 播放器 / 提示框 ---------- */
.sd-player { background: #000; overflow: hidden; border-radius: var(--radius); }
.sd-player video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: contain; background: #000; }
.sd-embed { aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.sd-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.sd-player__fallback { padding: 18px; color: #e5e7eb; font-size: 14px; }
.sd-player__fallback a { text-decoration: underline; }
.sd-callout {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
}
.sd-callout__title { font-weight: 700; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); border-radius: var(--radius); font-weight: 700;
}

/* ---------- 按钮 ---------- */
.n30-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); font-weight: 700;
}
.n30-btn:hover { border-color: var(--accent); color: var(--accent); }
.n30-btn--fill, .n30-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n30-btn--fill:hover, .n30-btn--primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.n30-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* ---------- 区块标题 ---------- */
.n30-sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
.n30-sec__t { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.n30-sec__k { color: var(--accent); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.n30-sec__more { margin-left: auto; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.n30-sec__more:hover { color: var(--accent); }
.n30-block { padding: 40px 0 0; }

/* ---------- 卡片 / 栅格（造型由各主题覆写） ---------- */
.n30-grid { --c: var(--cols-lg, var(--cols, 4)); --g: var(--gap-lg, var(--gap, 20px)); display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: var(--g); list-style: none; margin: 0; padding: 0; }
.n30-card { min-width: 0; }
.n30-card__a { display: block; min-width: 0; }
.n30-card__fig { position: relative; display: block; overflow: hidden; background: var(--surface2, var(--surface)); border-radius: var(--radius); aspect-ratio: var(--ratio, 2 / 3); }
.n30-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.n30-card__a:hover .n30-card__img { transform: scale(1.04); }
.n30-card__body { display: block; padding: 10px 2px 0; min-width: 0; }
.n30-card__t { display: block; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.n30-card__m { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n30-card__badge {
  position: absolute; left: 8px; top: 8px; z-index: 2; padding: 2px 9px; font-size: 12px; font-weight: 700; line-height: 1.6;
  background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) * .6); white-space: nowrap;
}
.n30-card--row .n30-card__badge { left: 4px; top: 4px; padding: 0 6px; font-size: 11px; }
.n30-card__no { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: 30px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.n30-card__x, .n30-card__bar, .n30-card__go { display: none; }

/* overlay：文字压在海报上 */
.n30-card--overlay .n30-card__a { position: relative; display: block; }
.n30-card--overlay .n30-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 38px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); color: #fff; border-radius: 0 0 var(--radius) var(--radius);
}
.n30-card--overlay .n30-card__m { color: rgba(255,255,255,.75); }

/* row：一行一剧 */
.n30-grid--row { grid-template-columns: 1fr; gap: 0; }
.n30-card--row .n30-card__a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.n30-card--row .n30-card__fig { --ratio: 3 / 4; }
.n30-card--row .n30-card__body { padding: 0; }
.n30-card--row .n30-card__x { display: -webkit-box; margin-top: 4px; font-size: 13px; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n30-card--row .n30-card__bar { display: block; height: 3px; margin-top: 8px; background: var(--line); overflow: hidden; max-width: 220px; }
.n30-card--row .n30-card__bar i { display: block; height: 100%; background: var(--accent); }
.n30-card--row .n30-card__go { display: inline-flex; align-items: center; margin-top: 8px; min-height: 32px; padding: 0 14px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); }

/* snippet：海报 + 简介摘要（x 选项也可在其他卡型里打开摘要） */
.n30-card--x .n30-card__x { display: -webkit-box; margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n30-card--snippet .n30-card__m { white-space: normal; }

/* ---------- 选集 ---------- */
.n30-eps { list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; }
.n30-eps li { min-width: 0; }
.n30-ep {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--ink);
}
.n30-ep b { font-size: 16px; line-height: 1.2; }
.n30-ep i { font-style: normal; font-size: 10.5px; color: var(--muted); }
a.n30-ep:hover { border-color: var(--accent); color: var(--accent); }
.n30-ep.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n30-ep.is-current i { color: inherit; opacity: .85; }
.n30-ep.is-off { opacity: .4; }

/* ---------- 详情 / 通用 ---------- */
.n30-h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.n30-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.n30-note { padding: 16px; border: 1px dashed var(--line); color: var(--muted); border-radius: var(--radius); font-size: 14px; }
.n30-player { min-width: 0; }
.n30-facts { margin: 22px 0 0; display: grid; gap: 0; }
.n30-facts__r { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.n30-facts dt { color: var(--muted); }
.n30-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.n30-prose { max-width: 72ch; }
.n30-prose img { border-radius: var(--radius); }
.n30-prose a { color: var(--accent); text-decoration: underline; }
.n30-pages { font-size: 14px; color: var(--muted); }
.n30-faq details { border-bottom: 1px solid var(--line); }
.n30-faq summary { cursor: pointer; display: flex; align-items: center; min-height: 48px; font-weight: 700; list-style: none; }
.n30-faq summary::-webkit-details-marker { display: none; }
.n30-faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 20px; }
.n30-faq details[open] summary::after { content: "−"; }
.n30-faq p { color: var(--muted); font-size: 14.5px; }
.n30-pn { display: flex; gap: 10px; margin-top: 14px; }
.n30-pn a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-weight: 700; }
.n30-pn a.is-next, .n30-pn a:hover { border-color: var(--accent); color: var(--accent); }
.n30-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
a.n30-pill:hover { border-color: var(--accent); color: var(--accent); }
.n30-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.n30-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 14px; color: var(--accent); }
.n30-g { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; margin: 2px 4px 2px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.n30-g:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 归档 / 搜索 / 页面 ---------- */
.n30-pagehead { padding: 28px 0 18px; }
.n30-pagehead h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.n30-pagehead p { margin: 8px 0 0; color: var(--muted); }
.n30-filter { display: grid; gap: 4px; margin: 0 0 26px; }
.n30-filter__row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.n30-filter__label { padding-top: 12px; font-size: 13px; color: var(--muted); }
.n30-filter__list { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.n30-filter__list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 999px; border: 1px solid transparent; }
.n30-filter__list a:hover { color: var(--accent); }
.n30-filter__list [aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.n30-results { display: grid; gap: 0; }
.n30-result { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.n30-result:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.n30-result__img { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.n30-result__body { display: grid; gap: 4px; min-width: 0; }
.n30-result__t { font-weight: 700; font-size: 17px; }
.n30-result__m { font-size: 13px; color: var(--muted); }
.n30-result__x { font-size: 14px; color: var(--muted); }
.n30-result:hover .n30-result__t { color: var(--accent); }
.n30-searchbar { max-width: 560px; margin: 0 0 22px; }
.n30-empty { padding: 40px 0; color: var(--muted); }
.n30-empty__title { font-size: 20px; font-weight: 800; color: var(--ink); }
.n30-notfound { padding: 56px 0 24px; text-align: center; }
.n30-notfound__code { margin: 0; font-size: clamp(72px, 18vw, 160px); font-weight: 800; line-height: 1; color: var(--accent); opacity: .9; }
.n30-notfound h1 { font-size: clamp(24px, 4vw, 36px); margin: 10px 0; }
.n30-notfound__desc { color: var(--muted); }
.n30-notfound__search { max-width: 460px; margin: 18px auto; }
.n30-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.n30-article { max-width: 820px; margin: 0 auto; padding-bottom: 40px; }

/* ---------- 响应式栅格 ---------- */
@media (max-width: 1000px) { .n30-grid { --c: var(--cols-md, 3); } }
@media (max-width: 640px) {
  .n30-grid { --c: var(--cols-sm, 2); --g: var(--gap-sm, 12px); }
  .n30-filter__row { grid-template-columns: minmax(0, 1fr); }
  .n30-filter__label { padding-top: 6px; }
  .n30-facts__r { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


.n30-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.n30-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--surface); }
.n30-chips a:hover { border-color: var(--accent); color: var(--accent); }
.n30-lines { list-style: none; margin: 0; padding: 0; }
.n30-lines a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.n30-lines a:hover .n30-lines__t { color: var(--accent); }
.n30-lines__n { font-size: 12.5px; color: var(--muted); }
.n30-rank { list-style: none; margin: 0; padding: 0; }
.n30-rank a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.n30-rank__i { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.n30-rank__t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n30-rank__n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.n30-rank a:hover .n30-rank__t { color: var(--accent); }
.n30-railbox { position: relative; }
.n30-rail { display: flex; gap: var(--gap, 16px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.n30-rail__i { flex: 0 0 var(--rail-w, 168px); scroll-snap-align: start; min-width: 0; }
.n30-railbtn { position: absolute; top: calc(50% - 30px); z-index: 5; display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; }
.n30-railbtn--prev { left: -10px; } .n30-railbtn--next { right: -10px; }
.n30-railbtn:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 961px) { .n30-railbtn { display: grid; } }
.n30-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; }
.n30-stats li { display: flex; align-items: baseline; gap: 6px; }
.n30-stats b { font-size: 22px; font-weight: 800; }
.n30-stats span { font-size: 13px; color: var(--muted); }

/* ---------- 页头 ---------- */
.n30-head--ledger { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.n30-ledger { display: flex; align-items: stretch; margin: 10px 0; border: 1px solid var(--line); background: var(--surface); }
.n30-head--ledger .n30-brand { padding: 0 18px; min-height: 52px; font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); color: var(--accent); }
.n30-head--ledger .n30-head__nav { display: none; flex: 1; }
.n30-head--ledger .n30-nav__list, .n30-head--ledger .n30-nav ul { gap: 0; height: 100%; flex-wrap: nowrap; }
.n30-head--ledger .n30-nav li { display: flex; }
.n30-head--ledger .n30-nav a { padding: 0 18px; border-right: 1px solid var(--line); font-size: 13px; }
.n30-head--ledger .n30-nav a:hover, .n30-head--ledger .n30-nav [aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.n30-ledger__st { display: none; align-items: center; padding: 0 14px; font-size: 11px; letter-spacing: .1em; color: var(--accent-2); border-left: 1px solid var(--line); white-space: nowrap; }
.n30-head--ledger .n30-tools { display: flex; margin-left: auto; }
.n30-head--ledger .n30-tool { min-height: 52px; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.n30-head--ledger .n30-tool__tx { display: none; }
@media (min-width: 961px) {
  .n30-head--ledger .n30-head__nav { display: block; }
  .n30-ledger__st { display: inline-flex; }
  .n30-head--ledger .n30-tools { margin-left: 0; }
  .n30-head--ledger .n30-tool--menu { display: none; }
}
/* ---------- 页脚 ---------- */
.n30-foot--mono { margin-top: 64px; padding: 26px 0 22px; border-top: 1px solid var(--line); font-family: var(--font-m, monospace); font-size: 13px; background: var(--foot-bg, transparent); }
.n30-foot__term { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.n30-foot__cmd { margin: 10px 0 2px; color: var(--accent); }
.n30-foot__cmd:first-child { margin-top: 0; }
.n30-foot__cmd span { margin-right: 8px; opacity: .7; }
.n30-foot__out { margin: 0 0 6px; color: var(--muted); padding-left: 18px; }
.n30-foot__ls { display: flex; flex-wrap: wrap; gap: 0 4px; }
.n30-foot__ls a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
.n30-foot__ls a:hover { color: var(--accent); }
.n30-foot__ls em { margin-left: 4px; font-style: normal; font-size: 11px; opacity: .7; }
.n30-foot__menu { display: contents; list-style: none; }
.n30-foot--mono .n30-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
/* ---------- 详情 ---------- */
.n30-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 12.5px; letter-spacing: .12em; color: var(--accent); }
.n30-title { font-size: clamp(26px, 4.6vw, 46px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.n30-dmeta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.n30-syn { margin: 14px 0 0; max-width: 62ch; color: var(--ink); opacity: .92; }
.n30-poster { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface2, var(--surface)); aspect-ratio: 2 / 3; }
.n30-poster__img { width: 100%; height: 100%; object-fit: cover; }
.n30-dsec { margin-top: 28px; }
.n30-watch, .n30-selects { min-width: 0; }

.n30-acc__head { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 26px; align-items: end; padding: 18px 0 22px; }
.n30-acc__play { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 30px; align-items: start; padding: 4px 0 26px; }
.n30-acc__panels { display: grid; gap: 10px; max-width: 900px; }
.n30-acc__panels > details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.n30-acc__panels > details > summary { display: flex; align-items: center; min-height: 54px; padding: 0 18px; font-weight: 700; cursor: pointer; list-style: none; }
.n30-acc__panels > details > summary::-webkit-details-marker { display: none; }
.n30-acc__panels > details > summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--accent); }
.n30-acc__panels > details[open] > summary::after { content: "−"; }
.n30-acc__in { padding: 0 18px 18px; }
.n30-acc__in .n30-faq details { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .n30-acc__head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .n30-acc__play { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
/* ---------- 分集 ---------- */
.n30-dhead { padding: 18px 0 14px; }
.n30-dhead__t { font-size: clamp(22px, 3.6vw, 34px); font-weight: 800; overflow-wrap: anywhere; }
.n30-eps-sec { min-width: 0; }

.n30-dcenter { max-width: 440px; margin: 0 auto; }
.n30-dwide { max-width: 860px; margin: 30px auto 0; }
.n30-dhead { text-align: center; }
.n30-dhead .n30-meta { justify-content: center; }
/* ---------- 归档 ---------- */
.n30-withside { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.n30-sidebar { position: sticky; top: 84px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); max-height: calc(100vh - 110px); overflow: auto; }
.n30-sidebar .n30-filter { margin: 0; }
.n30-sidebar .n30-filter__row { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .n30-withside { grid-template-columns: minmax(0, 1fr); gap: 18px; } .n30-sidebar { position: static; max-height: none; } }
/* ---------- 首页 ---------- */
body { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 36px 36px; }
.n30-hud { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 26px; padding: 26px 0 0; align-items: start; }
.n30-hud__h { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--accent); }
.n30-sig { list-style: none; margin: 0; padding: 0; }
.n30-sig a { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 2px 10px; padding: 9px 10px; min-height: 56px; border: 1px solid var(--line); border-left: 3px solid var(--accent-2); background: var(--surface); margin-bottom: 8px; }
.n30-sig a:hover { border-color: var(--accent); background: var(--surface2); }
.n30-sig__c { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: .2em; color: var(--accent-2); }
.n30-sig__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.n30-sig__b, .n30-dt__b { align-self: center; height: 4px; background: var(--line); }
.n30-sig__b i, .n30-dt__b i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.n30-hud__c { min-width: 0; text-align: center; }
.n30-hud__t { margin: 0; font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere; text-shadow: 0 0 22px var(--accent-soft); }
.n30-hud__tag { margin: 6px 0 16px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.n30-scan { position: relative; display: block; width: min(100%, 340px); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); background: var(--surface2); box-shadow: 0 0 40px -10px var(--accent-soft); }
.n30-scan__img { width: 100%; height: 100%; object-fit: cover; }
.n30-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28%; background: linear-gradient(to bottom, transparent, var(--accent-soft)); border-bottom: 1px solid var(--accent); animation: n30-scan 3.6s linear infinite; }
@keyframes n30-scan { from { transform: translateY(-100%); } to { transform: translateY(360%); } }
.n30-scan__c { position: absolute; z-index: 2; width: 22px; height: 22px; border: 0 solid var(--accent); }
.n30-scan__c--a { left: 8px; top: 8px; border-width: 2px 0 0 2px; } .n30-scan__c--b { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.n30-scan__c--c { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; } .n30-scan__c--d { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.n30-scan__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 16px 16px; text-align: left; font-weight: 700; background: linear-gradient(to top, rgba(2,8,16,.92), transparent); }
.n30-scan__cap b { display: block; font-size: 10.5px; letter-spacing: .3em; color: var(--accent); }
.n30-gauges { display: grid; gap: 18px; justify-items: center; }
.n30-gauge { position: relative; display: grid; place-items: center; width: 118px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); text-align: center; }
.n30-gauge::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.n30-gauge b { position: relative; font-size: 22px; line-height: 1.1; color: var(--accent); }
.n30-gauge span { position: absolute; top: 100%; left: 50%; width: 150px; margin-top: 4px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); }
.n30-gauge { margin-bottom: 20px; }
.n30-dt__hd, .n30-dt a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px minmax(0, 190px) 150px; gap: 14px; align-items: center; }
.n30-dt__hd { padding: 8px 14px; font-size: 11px; letter-spacing: .2em; color: var(--muted); border-bottom: 1px solid var(--accent); }
.n30-dt { list-style: none; margin: 0; padding: 0; }
.n30-dt a { min-height: 50px; padding: 6px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.n30-dt a:hover { background: var(--accent-soft); }
.n30-dt__n { color: var(--accent-2); }
.n30-dt__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.n30-dt__e { color: var(--accent); }
.n30-dt__m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.n30-card__fig { border: 1px solid var(--line); }
@media (max-width: 1100px) {
  .n30-hud { grid-template-columns: 240px minmax(0, 1fr); }
  .n30-hud__r { grid-column: 1 / -1; }
  .n30-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .n30-hud { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .n30-hud__c { order: -1; }
  .n30-dt__hd, .n30-dt a { grid-template-columns: 38px minmax(0, 1fr) 76px; gap: 10px; }
  .n30-dt__hd span:nth-child(n+4), .n30-dt__m, .n30-dt__b { display: none; }
  .n30-gauge { width: 92px; } .n30-gauge b { font-size: 17px; } .n30-gauge span { width: 110px; font-size: 10.5px; }
}
/* ---------- 皮肤（区块标题 / 卡片 / 页标题 / 按钮 / 分页） ---------- */
.n30-sec__t::before { content: "//"; margin-right: 8px; color: var(--accent); font-family: var(--font-m); }
.n30-card__fig { box-shadow: 0 0 0 1px var(--accent-soft), 0 12px 32px -12px var(--accent); }
.n30-card__a:hover .n30-card__fig { box-shadow: 0 0 0 1px var(--accent), 0 14px 36px -10px var(--accent); }
.n30-pagehead { margin-top: 16px; padding: 22px 24px; border: var(--bw, 1px) solid var(--ink); background: var(--surface); }
.n30-btn, .sd-btn, .n30-sf button, .n30-sf input[type="search"] { border-radius: 0; }
.sd-pagination .page-numbers { border-radius: 0; border-width: 2px; }
.n30-card__t { font-family: var(--font-m); font-size: 13.5px; } .n30-card__m { font-family: var(--font-m); }
