/*
Theme Name: SD N48 深紫星空·霓虹星轨
Author: SD Network
Description: 深紫星空风：霓虹描边、悬浮胶囊导航，首页是居中发光标题 + 五张海报组成的「星轨」。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-n48
*/

:root {
  --bg: #0c0720; --surface: #171033; --surface-2: #1f1545; --ink: #efe9ff; --muted: #a99fd0; --line: rgba(180, 150, 255, .24);
  --accent: #e254ff; --accent-2: #6a7bff; --accent-soft: rgba(226, 84, 255, .16); --on-accent: #14051f;
  --radius: 18px; --wrap: 1220px; --gut: 22px; --scrim: rgba(8, 3, 22, .72);
  --font: "PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Yuanti SC","YouYuan",system-ui,sans-serif;
}

/* ==========================================================================
   基础层（结构 / 行为）。变量：--bg --surface --ink --muted --line --accent --accent-2
   --accent-soft --on-accent --radius --wrap --gut --font --scrim
   ========================================================================== */
*, *::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; }
.n48-wrap { width: 100%; max-width: var(--wrap, 1240px); margin: 0 auto; padding: 0 var(--gut, 20px); }
.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; }

/* 搜索表单 */
.n48-sf { display: flex; gap: 8px; align-items: stretch; }
.n48-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; }
.n48-sf input[type="search"]::placeholder { color: var(--muted); opacity: .85; }
.n48-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 绑定） */
.n48-search { position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: var(--scrim, rgba(0,0,0,.55)); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.n48-search.is-open { opacity: 1; visibility: visible; }
.n48-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); }
.n48-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.n48-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.n48-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; }
.n48-tags a:hover { border-color: var(--accent); color: var(--accent); }
.n48-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; }
.n48-overlay.is-open { opacity: 1; }
.n48-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; }
.n48-drawer.is-open { transform: none; visibility: visible; }
.n48-drawer__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; font-size: 20px; }
.n48-drawer__list { list-style: none; margin: 0; padding: 0; }
.n48-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.n48-drawer__list [aria-current="page"], .n48-drawer__list .current-menu-item > a { color: var(--accent); font-weight: 700; }

/* 面包屑 */
.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; }
.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; }

/* 播放器 / 提示框 */
.n48-player { min-width: 0; }
.sd-player { background: #000; overflow: hidden; }
.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; align-items: center; gap: 12px 20px; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sd-callout__body { flex: 1 1 200px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.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 22px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* 通用部件 */
.n48-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.n48-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; }
a.n48-pill { min-height: 44px; }
.n48-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.n48-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); font-weight: 600; }
.n48-btn--fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n48-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.n48-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.n48-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.n48-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n48-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.n48-prose { max-width: 70ch; overflow-wrap: anywhere; }
.n48-prose img { height: auto; }
.n48-faq details { border-bottom: 1px solid var(--line); }
.n48-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.n48-faq details p { color: var(--muted); }
.n48-empty, .n48-notfound { padding: 48px 0; }
.n48-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.n48-notfound__search { max-width: 520px; margin: 22px 0; }
.n48-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.n48-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.n48-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.n48-notfound__desc { max-width: 34em; color: var(--muted); }
.n48-results { display: grid; gap: 0; }
.n48-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.n48-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.n48-result__body { display: grid; gap: 4px; min-width: 0; }
.n48-result__t { font-weight: 700; overflow-wrap: anywhere; }
.n48-result__m, .n48-result__x { font-size: 13px; color: var(--muted); }
.n48-result:hover .n48-result__t { color: var(--accent); }
.n48-searchbar { max-width: 640px; margin: 4px 0 24px; }
.n48-article { max-width: 860px; }
.n48-pages { margin-top: 24px; }

/* 筛选条：行内滚动，不撑破版面 */
.n48-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.n48-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.n48-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.n48-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.n48-filter__list::-webkit-scrollbar { display: none; }
.n48-filter__list a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; }
.n48-filter__list [aria-current="page"] { color: var(--accent); font-weight: 700; }

/* 选集 */
[data-eps] { position: relative; }
.n48-eps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-height: 440px; overflow: auto; padding: 2px; }
.n48-ep { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 2px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); line-height: 1.2; }
.n48-ep b { font-weight: 700; }
.n48-ep i { font-style: normal; font-size: 11px; color: var(--muted); }
a.n48-ep:hover { border-color: var(--accent); color: var(--accent); }
.n48-ep.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n48-ep.is-current i { color: inherit; opacity: .8; }
.n48-ep.is-off { opacity: .45; }
.n48-eps--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
.n48-eps--row .n48-ep { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 12px; border-width: 0 0 1px; border-radius: 0; text-align: left; }
.n48-eps--row .n48-ep b { flex: 0 0 2.6em; }
.n48-eps--row .n48-ep__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n48-eps--row .n48-ep i { flex: 0 0 auto; }

/* 资料表 / 文字块 */
.n48-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.n48-facts__r { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.n48-facts dt { font-size: 12.5px; color: var(--muted); }
.n48-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.n48-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.n48-g { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }
.n48-g:hover { border-color: var(--accent); color: var(--accent); }
.n48-detail__t, .n48-dhead h1 { font-size: clamp(26px, 4vw, 42px); overflow-wrap: anywhere; }
.n48-detail__meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.n48-detail__syn { margin: 16px 0 0; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.n48-h2 { font-size: 20px; margin: 0 0 14px; }
.n48-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.n48-block { margin-top: clamp(36px, 6vw, 68px); }
.n48-block--tight { margin-top: 28px; }
.n48-dhead { padding: 8px 0 22px; }
.n48-ph { padding: 26px 0 20px; }
.n48-ph__k { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.n48-ph__t { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.n48-ph__d { margin: 10px 0 0; color: var(--muted); }
.n48-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.n48-sec__t { font-size: clamp(20px, 2.6vw, 28px); }
.n48-sec__k { flex: 0 0 100%; font-size: 12px; color: var(--muted); }
.n48-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.n48-main { min-width: 0; }
.n48-main > .n48-wrap, .n48-main > section { min-width: 0; }

.n48-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .n48-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .n48-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.n48-head--float { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; padding: 0 12px; pointer-events: none; }
.n48-head--float .n48-head__in { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 1080px; margin: 0 auto; min-height: 56px; padding: 0 10px 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.n48-brand { font-weight: 800; font-size: 18px; line-height: 1.2; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n48-brand img { max-height: 34px; width: auto; }
.n48-nav { flex: 1 1 auto; min-width: 0; }
.n48-nav__list { display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.n48-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
.n48-nav__list [aria-current="page"], .n48-nav__list .current-menu-item > a { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.n48-tools { display: flex; gap: 6px; margin-left: auto; }
.n48-tool { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-soft); }
.n48-main { padding-top: 84px; }
#sd-menu-open { display: none; }
@media (max-width: 960px) { .n48-nav { display: none; } #sd-menu-open { display: inline-flex; align-items: center; } }

.n48-foot { margin-top: clamp(48px, 8vw, 96px); padding: 28px 0 24px; border-top: 1px solid var(--line); text-align: center; }
.n48-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.n48-foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; }
.n48-foot__menu { display: contents; list-style: none; }
.n48-foot__menu li { display: inline-flex; }
.n48-foot__bar { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.n48-dbanner { background: var(--surface); border-bottom: 1px solid var(--line); }
.n48-dbanner__in { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding-block: 18px 30px; }
.n48-dbanner__body { min-width: 0; }
.n48-dbanner__fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.n48-dcols { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.n48-dcols__l { position: sticky; top: 88px; min-width: 0; }
.n48-dcols__r { min-width: 0; }
.n48-dcols__r .n48-facts { margin-top: 28px; }
@media (max-width: 900px) { .n48-dbanner__in { grid-template-columns: minmax(0, 1fr) 108px; gap: 16px; } .n48-dcols { grid-template-columns: minmax(0, 1fr); } .n48-dcols__l { position: static; } .n48-dcols__l .sd-player { max-width: 420px; margin-inline: auto; } }

.n48-theatre { display: grid; gap: 28px; }
.n48-theatre__stage { width: 100%; max-width: 440px; margin: 0 auto; min-width: 0; }
.n48-theatre__eps { min-width: 0; }
.n48-theatre__eps .n48-eps { max-height: none; }

@media (max-width: 560px) { :root { --gut: 16px; } .n48-filter__row { gap: 8px; } .sd-crumbs [aria-current="page"] { max-width: 48vw; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ==== 主题皮肤：SD N48 深紫星空·霓虹星轨 ==== */

body {
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(226, 84, 255, .24), transparent 60%),
    radial-gradient(900px 520px at 0 6%, rgba(106, 123, 255, .22), transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent 60%), radial-gradient(1px 1px at 68% 34%, #cdbbff, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent 60%), radial-gradient(1px 1px at 88% 82%, #cdbbff, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3 { letter-spacing: .02em; }

/* 悬浮胶囊导航 */
.n48-head--float .n48-head__in { background: rgba(23, 16, 51, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(226, 84, 255, .5); box-shadow: 0 0 0 1px rgba(226, 84, 255, .18), 0 0 30px rgba(226, 84, 255, .28); }
.n48-brand { color: #fff; text-shadow: 0 0 14px rgba(226, 84, 255, .8); }
.n48-nav__list [aria-current="page"] { box-shadow: 0 0 16px rgba(226, 84, 255, .6); }
.n48-tool { color: var(--ink); }
.n48-search__box, .n48-drawer { border-color: rgba(226, 84, 255, .4); box-shadow: 0 0 40px rgba(226, 84, 255, .2); }
.n48-sf input[type="search"] { border-radius: 999px; padding: 0 20px; background: rgba(255, 255, 255, .05); }
.n48-sf button { border-radius: 999px; box-shadow: 0 0 18px rgba(226, 84, 255, .55); }

/* 首屏：发光标题 + 星轨 */
.n48-sky { display: grid; justify-items: center; text-align: center; padding: clamp(24px, 5vw, 56px) 0 8px; }
.n48-sky__k { margin: 0; font-size: 13px; letter-spacing: .4em; color: var(--accent-2); }
.n48-sky__t { margin: 12px 0 10px; max-width: 100%; font-size: clamp(34px, 7vw, 76px); font-weight: 900; line-height: 1.1; color: #fff; text-shadow: 0 0 22px rgba(226, 84, 255, .9), 0 0 60px rgba(106, 123, 255, .7); overflow-wrap: anywhere; }
.n48-sky__tag { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.n48-sky__form { width: min(560px, 100%); padding: 6px; border: 1px solid rgba(226, 84, 255, .5); border-radius: 999px; background: rgba(23, 16, 51, .7); box-shadow: 0 0 28px rgba(226, 84, 255, .25); }
.n48-sky__form input[type="search"] { border: 0; background: transparent; }
.n48-orbit { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 22px); width: 100%; margin-top: clamp(30px, 5vw, 56px); }
.n48-orbit__i { --w: clamp(120px, 22vw, 280px); position: relative; display: block; width: var(--w); flex: 0 1 var(--w); min-width: 0; }
.n48-orbit__i:nth-child(1), .n48-orbit__i:nth-child(5) { --w: clamp(72px, 12vw, 150px); opacity: .55; }
.n48-orbit__i:nth-child(2), .n48-orbit__i:nth-child(4) { --w: clamp(88px, 16vw, 210px); opacity: .85; }
.n48-orbit__i img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(226, 84, 255, .5), 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(226, 84, 255, .25); }
.n48-orbit__i:nth-child(3) img { box-shadow: 0 0 0 2px var(--accent), 0 24px 60px rgba(0, 0, 0, .7), 0 0 60px rgba(226, 84, 255, .5); }
.n48-orbit__t { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.n48-orbit__i:nth-child(3) .n48-orbit__t { display: block; }
.n48-orbit { margin-bottom: 38px; }

/* 区块头 / 胶囊 / 排行 */
.n48-sec__t { text-shadow: 0 0 18px rgba(226, 84, 255, .45); }
.n48-sec__more { color: var(--accent); }
.n48-caps { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.n48-caps a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(226, 84, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .04); font-weight: 700; }
.n48-caps a:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 22px rgba(226, 84, 255, .6); }
.n48-caps em { font-style: normal; font-size: 12px; color: var(--muted); }
.n48-caps a:hover em { color: inherit; }
.n48-rank { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.n48-rank a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.n48-rank a:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(226, 84, 255, .35); }
.n48-rank__n { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 900; }
.n48-rank__t { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n48-rank__b { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 霓虹卡 */
.n48-nc__link { display: block; }
.n48-nc__fig { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(226, 84, 255, .25), 0 12px 32px rgba(0, 0, 0, .5); transition: box-shadow .2s, transform .2s; }
.n48-nc__fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.n48-nc:hover .n48-nc__fig { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 0 34px rgba(226, 84, 255, .55); }
.n48-nc__badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; box-shadow: 0 0 14px rgba(226, 84, 255, .7); }
.n48-nc__t { display: block; margin-top: 12px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n48-nc__m { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* 选集胶囊 / 按钮 / 详情 */
.n48-eps { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.n48-ep { min-height: 46px; border-radius: 999px; border-color: rgba(226, 84, 255, .4); background: rgba(255, 255, 255, .04); flex-direction: row; gap: 6px; }
a.n48-ep:hover { box-shadow: 0 0 16px rgba(226, 84, 255, .5); }
.n48-ep.is-current { box-shadow: 0 0 22px rgba(226, 84, 255, .8); }
.n48-btn { border-radius: 999px; background: rgba(255, 255, 255, .05); border-color: rgba(226, 84, 255, .45); }
.n48-btn--fill { background: var(--accent); box-shadow: 0 0 22px rgba(226, 84, 255, .55); }
.n48-pill, .n48-g { border-color: rgba(226, 84, 255, .45); background: rgba(255, 255, 255, .04); }
.n48-pn a { border-radius: 999px; }
.n48-dbanner { border: 0; background: linear-gradient(120deg, rgba(226, 84, 255, .22), rgba(106, 123, 255, .18) 60%, transparent); }
.n48-dbanner__fig img { border-radius: var(--radius); box-shadow: 0 0 0 2px var(--accent), 0 0 44px rgba(226, 84, 255, .5); }
.n48-detail__t { text-shadow: 0 0 22px rgba(226, 84, 255, .6); }
.sd-player { border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(226, 84, 255, .5), 0 0 30px rgba(226, 84, 255, .3); }
.n48-ph { text-align: center; padding: 34px 0 18px; }
.n48-ph__k { letter-spacing: .4em; color: var(--accent-2); font-size: 12px; }
.n48-filter { justify-items: center; }
.n48-filter__list a { border: 1px solid var(--line); border-radius: 999px; margin: 2px 0; }
.n48-filter__list [aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.n48-filter__row { max-width: 100%; }
.n48-result { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.n48-pagination .page-numbers { border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--ink); }
.n48-foot { border-top: 1px solid rgba(226, 84, 255, .3); }
.n48-foot__links a:hover { color: var(--accent); }
.sd-callout { border-radius: var(--radius); }

@media (max-width: 960px) { .n48-rank { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .n48-orbit__i:nth-child(1), .n48-orbit__i:nth-child(5) { display: none; }
  .n48-orbit__i { --w: clamp(110px, 38vw, 200px); }
  .n48-orbit__i:nth-child(2), .n48-orbit__i:nth-child(4) { --w: clamp(80px, 26vw, 150px); }
}
