:root {
	--bg: #07081c;
	--bg-2: #0c1028;
	--surface: #12163a;
	--surface-2: #181c44;
	--line: rgba(164, 176, 255, 0.16);
	--text: #f4f6ff;
	--muted: #a3abd0;
	--faint: #7d86ad;
	--accent: #6a4dff;
	--accent-2: #8a74ff;
	--gold: #f0c14d;
	--ok: #3ecf8e;
	--hot: #ff8a3d;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	--radius: 18px;
	--max: 1240px;
	--font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--display: "Outfit", var(--font);
	--script: "Great Vibes", cursive;
	--brush: "Ma Shan Zheng", cursive;
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f3f5fb;
	--bg-2: #ffffff;
	--surface: #ffffff;
	--surface-2: #eef1fa;
	--line: rgba(48, 56, 110, 0.12);
	--text: #17192c;
	--muted: #556;
	--faint: #6d7594;
	--shadow: 0 16px 40px rgba(40, 48, 90, 0.08);
	color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(900px 420px at 80% -10%, rgba(90, 70, 255, 0.28), transparent 60%),
		radial-gradient(700px 380px at -10% 20%, rgba(40, 120, 255, 0.12), transparent 55%),
		var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.muted, .quiet { color: var(--muted); }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; }

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 18px;
	height: 72px;
	padding: 0 22px;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.mark {
	width: 36px; height: 36px; display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: radial-gradient(circle at 30% 30%, #2a2d66, #12142e);
	color: #d9d6ff;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 15px; letter-spacing: 0.08em; }
.brand-name em { font-style: normal; font-family: var(--display); font-size: 11px; color: var(--faint); letter-spacing: 0.12em; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.nav a.on { color: white; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.search {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 360px;
	margin-left: auto;
	padding: 0 14px;
	height: 40px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--faint);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.icon-btn, .btn {
	border: 1px solid var(--line);
	background: transparent;
	border-radius: 999px;
	padding: 8px 14px;
	color: var(--text);
}
.icon-btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.icon-btn.nav-toggle { display: none; width: auto; padding: 0 12px; }
.btn.solid, .btn.tiny.solid { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: white; }
.btn.ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn.wide { width: 100%; display: inline-flex; justify-content: center; gap: 8px; align-items: center; }
.btn.tiny { padding: 4px 10px; font-size: 13px; }
.btn.on, button.on { border-color: var(--accent-2); color: white; }
.session { display: flex; gap: 8px; align-items: center; }
.session-guest, .session-user { display: flex; gap: 8px; align-items: center; }
.avatar {
	width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
	background: hsl(var(--h), 72%, 58%); color: #0d1024; font-weight: 700; font-size: 13px; flex: none;
}
.lv, .cert, .flag {
	display: inline-flex; align-items: center;
	border-radius: 999px; padding: 0 7px; font-style: normal;
	font-size: 11px; line-height: 18px;
	background: color-mix(in srgb, var(--accent) 30%, transparent);
	color: #ddd8ff;
}
.cert { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold); }
.flag { background: #2f6bff; color: white; margin-left: 6px; }

.display {
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.12;
	background: linear-gradient(180deg, #fff 10%, #c9c4ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
:root[data-theme="light"] .display { background: none; color: var(--text); -webkit-text-fill-color: initial; }
.display.small { font-size: 36px; }
.lede { color: var(--muted); max-width: 42rem; margin-top: 12px; }
.script-line { font-family: var(--script); font-size: 30px; line-height: 1.05; color: #d5d2ff; margin: 18px 0 0; }
.brush { font-family: var(--brush); font-size: 32px; line-height: 1.35; text-shadow: 0 8px 24px rgba(0,0,0,.45); }
.brush.small { font-size: 26px; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero, .banner, .split, .block, .detail-hero, .lib, .rank-layout, .community { margin-top: 28px; }
.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
.hero-art, .banner-art, .quote-card, .poster, .cover { position: relative; overflow: hidden; border-radius: 28px; }
.hero-art { min-height: 460px; }
.hero-art img, .banner-art img, .quote-card img, .poster img, .cover img, .chapter-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art img { position: absolute; inset: 0; }
.brush { position: absolute; right: 28px; top: 36px; text-align: right; }
.hero-note, .side-quote {
	position: absolute; right: 20px; bottom: 20px; left: auto;
	width: min(280px, 70%);
	margin: 0; padding: 14px 16px;
	border-radius: 16px;
	background: rgba(8, 10, 28, 0.72);
	border: 1px solid var(--line);
	backdrop-filter: blur(8px);
}
.hero-note cite, .side-quote cite, .cta-card cite { display: block; margin-top: 6px; color: var(--faint); font-style: normal; font-size: 12px; }
.feature-row {
	list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
	margin: 28px auto; padding: 0;
}
.feature-row li, .panel, .book-card, .update, .pod, .post, .banner, .cta-card, .stat-cards {
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.feature-row li { display: flex; gap: 10px; align-items: center; padding: 14px; }
.feature-row span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #1b2048; color: #c9c4ff; }
.feature-row small, .card-body p, .update em { color: var(--muted); display: block; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; }
.section-head a { color: var(--accent-2); }
.book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.book-card, .book-row { overflow: hidden; }
.cover { display: block; aspect-ratio: 3/4; background: #10132e; }
.cover em {
	position: absolute; left: 10px; bottom: 10px; right: 10px;
	font-family: var(--display); font-size: 11px; letter-spacing: 0.14em;
	color: white; text-shadow: 0 2px 8px #000;
}
.badge {
	position: absolute; top: 10px; right: 10px;
	border-radius: 999px; padding: 2px 8px; font-size: 12px; color: white;
}
.tone-hot { background: var(--hot); }
.tone-serial { background: #2f7bff; }
.tone-done { background: var(--ok); color: #062; }
.tone-fresh { background: #d946ef; }
.tone-exclusive { background: #7c3aed; }
.tone-review { background: #0891b2; }
.tone-pause, .tone-planned { background: #64748b; }
.card-body { padding: 10px 12px 12px; }
.card-body h3 { font-size: 15px; }
.card-body p { font-size: 12px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tags span, .tags a {
	font-size: 12px; color: var(--muted);
	background: color-mix(in srgb, var(--surface-2) 80%, transparent);
	border-radius: 999px; padding: 1px 8px;
}
.card-foot, .who { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.card-foot { justify-content: space-between; }
.nums { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; white-space: nowrap; }
.nums b { font-weight: 600; color: var(--text); font-family: var(--display); }
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; margin-bottom: 40px; }
.update-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.update { display: flex; gap: 10px; padding: 10px; align-items: center; }
.update img { width: 46px; height: 62px; object-fit: cover; border-radius: 8px; }
.update strong { display: flex; align-items: center; }
.update small { color: var(--faint); }
.quote-card { min-height: 280px; }
.quote-card img { position: absolute; inset: 0; }
.quote-card div { position: absolute; inset: auto 16px 16px 16px; }
.quote-card .btn { margin-top: 12px; }

.site-footer { margin-top: 48px; padding: 28px 0 18px; border-top: 1px solid var(--line); color: var(--muted); }
.foot { display: grid; grid-template-columns: auto 1.2fr auto auto; gap: 18px; align-items: center; }
.foot nav, .social { display: flex; gap: 14px; flex-wrap: wrap; }
.copy { text-align: center; font-size: 12px; }

.banner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; overflow: hidden; min-height: 240px; }
.banner > div:first-child { padding: 32px; }
.banner-art { min-height: 240px; }
.banner-art img { position: absolute; inset: 0; }
.vert { position: absolute; right: 16px; top: 50%; writing-mode: vertical-rl; letter-spacing: 0.3em; color: white; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 0; list-style: none; margin: 18px 0 0; }
.wrap.metrics { margin-inline: auto; }
.metrics li { min-width: 7rem; }
.metrics b { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--text); }
.metrics span { color: var(--muted); font-size: 13px; }
.chipbar, .sortbar, .tabs, .boards { display: flex; gap: 8px; align-items: center; }
.chipbar, .boards { margin-top: 18px; }
.chips, .sortbar nav, .text-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .sortbar a, .text-tabs a, .views a {
	padding: 6px 12px; border-radius: 999px; color: var(--muted); border: 1px solid transparent;
}
.chips a.on, .sortbar a.on, .text-tabs a.on, .views a.on { background: var(--accent); color: white; }
.count { margin-left: auto; color: var(--faint); }
.lib { display: grid; grid-template-columns: 230px 1fr; gap: 18px; margin-bottom: 28px; }
.filters fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.filters legend { font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.filters a, .catalog a, .toc a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--muted); }
.filters a.on, .catalog a:hover, .toc a.on { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
.filters a i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--faint); }
.filters a.on i { background: var(--accent-2); border-color: transparent; }
.filters a b { margin-left: auto; font-weight: 500; color: var(--faint); font-family: var(--display); }
.filter-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.views { margin-left: auto; display: flex; }
.book-list { display: flex; flex-direction: column; gap: 12px; }
.book-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px; }
.book-row .cover { aspect-ratio: 3/4; border-radius: 12px; }
.pager { display: flex; gap: 6px; align-items: center; margin: 16px 0 28px; }
.pager a { min-width: 32px; text-align: center; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.pager a.on { background: var(--accent); border-color: transparent; }
.empty, .empty-page { padding: 28px; color: var(--muted); }
.empty-page { min-height: 40vh; }

.crumb { color: var(--faint); font-size: 13px; margin-top: 18px; }
.detail-hero { display: grid; grid-template-columns: 220px 1fr 280px; gap: 18px; }
.poster { display: block; aspect-ratio: 3/4; }
.poster strong, .poster em, .poster small { position: absolute; left: 14px; right: 14px; color: white; text-shadow: 0 6px 16px #000; }
.poster strong { bottom: 58px; font-size: 22px; }
.poster small { bottom: 16px; color: #eee; }
.poster em { bottom: 92px; font-family: var(--display); letter-spacing: 0.16em; font-size: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; list-style: none; margin: 14px 0; }
.stat-row li { background: var(--surface); border-radius: 14px; padding: 10px; }
.stat-row b { display: block; font-family: var(--display); font-size: 22px; }
.hook { font-size: 16px; margin: 8px 0; }
.summary { color: var(--muted); }
.cta-card { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cta-card img { height: 120px; width: 100%; object-fit: cover; border-radius: 12px; }
.cta-card .brush { position: static; text-shadow: none; }
.tabs { margin-top: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 8px 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.panel { padding: 14px; }
.panel dl { margin: 0; }
.panel dl div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.panel dt { color: var(--faint); }
.catalog { list-style: none; margin: 0; padding: 0; }
.catalog a { justify-content: space-between; }
.talk { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.talk header { display: flex; gap: 8px; align-items: center; }
.talk footer, .post footer { display: flex; gap: 12px; color: var(--faint); font-size: 13px; }
.talk blockquote, .pull {
	margin: 8px 0; padding: 12px 14px; border-radius: 12px;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	border-left: 3px solid var(--accent-2);
}
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-list a { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.mini-list img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; }
.mini-list em, .mini-list small { display: block; color: var(--muted); font-style: normal; }
.composer { display: flex; gap: 8px; margin-top: 10px; }
.composer input, .composer textarea, .stack input, .stack textarea, .reply input {
	flex: 1; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); padding: 8px 10px;
}
.reply { margin-top: 8px; }

.reader { width: min(1440px, calc(100% - 24px)); margin: 18px auto 32px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.reader-side, .comments-col, .sheet { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.mini-book { display: grid; grid-template-columns: 54px 1fr; gap: 8px; margin-bottom: 10px; }
.mini-book img { width: 54px; height: 74px; object-fit: cover; border-radius: 8px; }
.mini-book em, .mini-book small { display: block; color: var(--muted); font-style: normal; }
.toc { margin-top: 16px; }
.toc details { border-top: 1px solid var(--line); }
.toc summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; }
.toc a { padding-left: 8px; }
.side-quote { position: relative; inset: auto; width: auto; margin-top: 16px; }
.chapter-nav, .tools { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chapter-nav h1 { font-size: 20px; text-align: center; }
.tools { color: var(--muted); margin: 8px 0; flex-wrap: wrap; }
.toolset { position: relative; }
.toolset p { display: none; position: absolute; z-index: 2; top: 120%; left: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; gap: 4px; }
.toolset:hover p, .toolset:focus-within p { display: flex; }
.chapter-art { position: relative; border-radius: 18px; overflow: hidden; height: 220px; margin: 8px 0 16px; }
.chapter-art .brush { top: 24px; }
.paper { max-width: 46rem; margin: 0 auto; font-size: 17px; }
.paper h2 { font-size: 28px; margin-bottom: 6px; }
.chapter-meta, .epigraph { color: var(--muted); }
.epigraph { text-align: right; font-family: var(--brush); font-size: 22px; color: var(--text); }
.paper p { margin: 0.9em 0; }
.chapter-fig { margin: 1.2em 0; }
.chapter-fig img { width: 100%; border-radius: 16px; }
.code { overflow: auto; padding: 12px 14px; border-radius: 12px; background: #090b18; color: #d7def7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; line-height: 1.55; }
.reader[data-font="sm"] .paper { font-size: 15px; }
.reader[data-font="lg"] .paper { font-size: 20px; }
.reader[data-width="narrow"] .paper { max-width: 34rem; }
.reader[data-width="wide"] .paper { max-width: none; }
.reader[data-paper="sepia"] .paper { background: #f4e7cb; color: #2a2418; border-radius: 16px; padding: 18px; }
.reader[data-paper="day"] .paper { background: #f8f9fd; color: #1b2033; border-radius: 16px; padding: 18px; }
.reading-progress { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; margin-top: 22px; padding: 10px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.reading-progress i { height: 4px; border-radius: 99px; background: var(--line); position: relative; }
.reading-progress i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-2); border-radius: inherit; }
.seg { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.seg .on { border-bottom: 2px solid var(--accent-2); }

.boards { align-items: stretch; }
.boards a, .boards blockquote { flex: 1; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.boards a.on { outline: 1px solid var(--accent-2); }
.boards a small, .boards cite { display: block; color: var(--faint); }
.rank-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-bottom: 28px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; }
.pod { padding: 12px; display: grid; grid-template-columns: 92px 1fr; gap: 8px; position: relative; }
.pod > b { position: absolute; left: 8px; top: 8px; font-family: var(--display); }
.place-1 { border-color: var(--gold); transform: translateY(-8px); }
.place-3 { border-color: #e879f9; }
.pod img { width: 92px; height: 122px; object-fit: cover; border-radius: 10px; }
.rank-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.rank-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 13px; }
.rank-table td { border-top: 1px solid var(--line); padding: 10px 6px; vertical-align: middle; }
.rank-table a { display: flex; gap: 8px; align-items: center; }
.rank-table img { width: 36px; height: 48px; object-fit: cover; border-radius: 6px; }
.rank-table em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.up { color: var(--hot); }
.down { color: var(--ok); }
.tag-heat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tag-heat a, .tag-cloud a { display: flex; gap: 6px; justify-content: space-between; padding: 6px 8px; border-radius: 10px; background: var(--bg-2); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { border-radius: 999px; }

.community-hero { display: grid; grid-template-columns: 1fr 280px; gap: 12px; margin-top: 22px; }
.stat-cards { padding: 16px; }
.stat-cards ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; }
.stat-cards b { font-family: var(--display); font-size: 22px; }
.topic-row { display: grid; grid-template-columns: repeat(4, 1fr) 140px; gap: 10px; margin-top: 14px; }
.topic-row a { padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.topic-row a.on { outline: 1px solid var(--accent-2); }
.topic-row small, .topic-row em { display: block; color: var(--muted); font-style: normal; }
.community { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-bottom: 20px; }
.post { display: grid; grid-template-columns: 1fr 220px; gap: 12px; padding: 14px; margin-top: 12px; }
.post figure { margin: 0; position: relative; }
.post img { height: 140px; width: 100%; object-fit: cover; border-radius: 12px; }
.post figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; color: white; text-shadow: 0 2px 8px #000; font-size: 13px; }
.people { list-style: none; padding: 0; margin: 0; }
.people li, .person-card a { display: flex; gap: 8px; align-items: center; }
.people li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.people em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.events article { display: grid; grid-template-columns: 72px 1fr; gap: 8px; margin-top: 10px; }
.events img { height: 72px; width: 72px; object-fit: cover; border-radius: 10px; }
.author-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px auto 32px; }
.person-card footer, .author-hero { display: flex; gap: 12px; align-items: center; }
.author-hero { margin-top: 24px; }
.author-hero .avatar { width: 72px; height: 72px; font-size: 28px; }
.prose-page { margin: 28px auto 40px; padding: 28px; max-width: 760px; }
.stack { display: grid; gap: 10px; }
.form-error { color: #ffb4a8; }
.choices { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: flex; gap: 6px; align-items: center; }
.cover-pick img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; }
.cover-pick input { position: absolute; opacity: 0; }
.cover-pick { position: relative; }
.cover-pick:has(input:checked) img { outline: 2px solid var(--accent-2); }
.rate { display: flex; gap: 6px; }
.rate button { border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; padding: 6px 10px; }
.hero-metrics { margin-top: 8px; }
.modal { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); padding: 18px; width: min(420px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.modal header, .preview form { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.preview { width: min(720px, calc(100% - 24px)); }
.preview form { align-items: stretch; }
.preview img { width: 46%; object-fit: cover; border-radius: 12px; }
.modal label, .stack label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.switch { text-align: center; }
.switch button { background: none; border: 0; color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (max-width: 1100px) {
	.book-grid, .feature-row { grid-template-columns: repeat(3, 1fr); }
	.hero, .banner, .split, .detail-hero, .detail-grid, .reader, .rank-layout, .community, .community-hero, .lib, .foot, .topic-row { grid-template-columns: 1fr; }
	.podium { grid-template-columns: 1fr; }
	.place-1 { transform: none; }
	.post { grid-template-columns: 1fr; }
	.hero-art { min-height: 320px; }
	.author-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.icon-btn.nav-toggle { display: grid; }
	.nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
	.nav.open { display: flex; }
	.topbar { flex-wrap: wrap; height: auto; padding: 10px; }
	.search { order: 5; max-width: none; flex: 1 1 100%; }
	.book-grid, .feature-row, .update-list, .author-grid, .stat-row { grid-template-columns: 1fr 1fr; }
	.session-guest .btn.ghost { display: none; }
	.hero-art { min-height: 0; }
	.hero-art img { position: relative; height: 280px; }
	.hero-note { position: relative; inset: auto; width: auto; margin: 12px; }
	.reading-progress { grid-template-columns: 1fr; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
