/*
Theme Name: Bedtime History V2
Description: 睡前听段历史 V2 专属 WordPress 区块主题 — 基于最终版原站（production-intro-release）全面还原并精雕升级：无隙全屏 4K 台灯开场动效、3D 环形画廊、悬浮毛玻璃胶囊导航、导航正下方睡眠音频播放器（支持字节范围精准拖动）与全宽通栏沉浸式文章详情页。
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bedtime-history-v2
Tags: full-site-editing, block-patterns, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. Base Reset & Zero-Gap Full-Bleed Foundation
   ========================================================================== */
html, body, #app-view, .wp-site-blocks {
	margin: 0;
	padding: 0;
}
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > br,
.wp-site-blocks > p:empty { display: none !important; }
.wp-site-blocks main { padding-block: 0; }
.wp-site-blocks header,
.wp-site-blocks footer { border: 0; margin: 0; padding: 0; }

html {
	background: var(--bg, #ffffff);
}
html[data-theme="night"] {
	background: #000000;
}
body {
	background: var(--bg, #ffffff);
	color: var(--ink, #1d1d1f);
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.category {
	color: var(--ink);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}
html[data-theme="night"] body {
	background: #000000;
	color: #f5f5f7;
}
a { color: inherit; text-underline-offset: .22em; }

/* View Transitions */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   2. Luxury Floating Frosted-Glass Pill Navbar (No Active Background Box)
   ========================================================================== */
.wp-site-blocks > header {
	position: fixed;
	top: calc(12px + env(safe-area-inset-top));
	left: 14px;
	right: 14px;
	z-index: 75;
	pointer-events: none;
}
body.admin-bar .wp-site-blocks > header {
	top: calc(12px + var(--wp-admin--admin-bar--height, 32px));
}
.site-head {
	position: relative !important;
	top: 0 !important;
	width: 100%;
	pointer-events: none;
	background: transparent !important;
	border: 0 !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}
.site-head .ds-nav {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 18px;
	height: 64px !important;
	width: 100% !important;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 0 18px 0 16px;
	border-radius: 9999px !important;
	background: rgba(255, 255, 255, 0.80) !important;
	backdrop-filter: blur(28px) saturate(190%) !important;
	-webkit-backdrop-filter: blur(28px) saturate(190%) !important;
	border: 1px solid rgba(29, 29, 31, 0.075);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
@media (min-width: 801px) {
	.site-head .mobile-menu-button { display: none !important; }
}
html[data-theme="night"] .site-head .ds-nav {
	background: rgba(20, 20, 23, 0.78) !important;
	border-color: rgba(255, 255, 255, 0.11);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
	color: #f5f5f7;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}
.brand-avatar {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
.brand strong {
	font-family: inherit;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: .015em;
}
.site-head .ds-nav .main-nav {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 36px !important;
	margin-inline: auto !important;
	padding: 0 !important;
}
.site-head .ds-nav .main-nav p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}
.site-head .ds-nav .main-nav a,
.site-head .ds-nav .main-nav .nav-dropdown {
	margin: 0 !important;
	flex-shrink: 0;
}
.site-head .ds-nav .main-nav > a,
.site-head .ds-nav .main-nav > p > a,
.site-head .ds-nav .main-nav > .nav-dropdown > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin: 0 !important;
	padding: 8px 2px !important;
	border-radius: 0;
	background: transparent !important;
	font-size: 14px;
	font-weight: 450;
	letter-spacing: .015em;
	text-decoration: none;
	color: var(--ink);
	opacity: .72;
	white-space: nowrap;
	transition: opacity .22s ease, color .22s ease;
}
.main-nav a::after,
.main-nav a[aria-current="page"]::after {
	display: none !important;
	content: none !important;
}
.main-nav a:hover {
	opacity: 1;
	background: transparent !important;
}
.main-nav a[aria-current="page"] {
	opacity: 1;
	font-weight: 650;
	color: #c6111b !important;
	background: transparent !important;
}
html[data-theme="night"] .main-nav a {
	color: #f5f5f7;
}
html[data-theme="night"] .main-nav a[aria-current="page"] {
	color: #ff5a5f !important;
}
.head-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}
.site-head .icon-btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: .82;
	cursor: pointer;
	transition: opacity .18s ease, background .18s ease, transform .18s ease;
}
.site-head .icon-btn:hover {
	opacity: 1;
	background: rgba(128, 128, 128, 0.11);
}
.site-head .icon-btn:active {
	transform: scale(0.94);
}
.site-head .icon-btn svg { width: 18px; height: 18px; }

.mobile-drawer {
	pointer-events: auto;
	position: absolute;
	left: 14px;
	right: 14px;
	margin-top: 8px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
	box-sizing: border-box;
}
html[data-theme="night"] .mobile-drawer {
	background: rgba(20, 20, 23, 0.96);
	border-color: rgba(255, 255, 255, 0.12);
	color: #f5f5f7;
}
.mobile-drawer:not([hidden]) { display: grid; gap: 12px; padding: 22px; }
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer a[aria-current="page"] { color: #c6111b; font-weight: 650; background: transparent !important; }
html[data-theme="night"] .mobile-drawer a[aria-current="page"] { color: #ff5a5f; }
.mobile-drawer button { color: inherit; background: none; border: 0; text-align: left; }

/* ==========================================================================
   3. Full-Bleed Zero-Gap Hero Intro Animation
   ========================================================================== */
html:has(.bh-intro) {
	overflow-anchor: none;
	margin-top: 0 !important;
}
html:has(.bh-intro).intro-complete,
html:has(.bh-intro).intro-complete body {
	background: var(--bg, #ffffff) !important;
}
html[data-theme="night"]:has(.bh-intro).intro-complete,
html[data-theme="night"]:has(.bh-intro).intro-complete body {
	background: #000000 !important;
}
html:has(.bh-intro).intro-complete .site-head {
	transform: none !important;
}
.bh-intro {
	margin: 0 !important;
	padding: 0 !important;
	height: calc((2.6 + (var(--bhn-gallery-count, 1) - 1) * .7) * 100svh);
}
.bh-stage {
	top: 0 !important;
	height: 100vh;
	height: 100dvh;
	height: 100lvh;
	width: 100vw;
	contain: layout style paint;
}
.bh-title {
	will-change: auto !important;
	transform: translate(-50%, -50%) !important;
	shape-rendering: geometricPrecision;
}
.bh-media {
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	height: 100lvh !important;
	margin: 0 !important;
}
#app-view:has(.bh-intro) .bhn-post-list,
.bhn-library-view .bhn-post-list,
.bhn-series-view .bhn-post-list {
	display: none;
}

/* Gallery fallback */
.bhn-gallery-fallback {
	height: 72%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
}
.bhn-gallery-fallback .series-card-host { width: min(32vw, 340px); }

/* ==========================================================================
   4. Top-Docked Global Audio Player (Directly Below Navbar)
   ========================================================================== */
.bhn-player[hidden] { display: none !important; }
html:has(.bh-intro):not(.intro-complete) .bhn-player {
	visibility: hidden !important;
	pointer-events: none !important;
}

.bhn-player.bh-top-player:not([hidden]):not(.expanded):not(.mini) {
	position: fixed !important;
	top: calc(84px + env(safe-area-inset-top)) !important;
	bottom: auto !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	z-index: 68;
	width: calc(100% - 28px);
	max-width: 1200px;
	display: grid !important;
	grid-template-columns: minmax(170px, 235px) minmax(260px, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 8px 14px 8px 12px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.84);
	backdrop-filter: blur(28px) saturate(190%);
	-webkit-backdrop-filter: blur(28px) saturate(190%);
	border: 1px solid rgba(29, 29, 31, 0.08);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.075), 0 1px 2px rgba(0, 0, 0, 0.03);
	color: #1d1d1f;
	transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.admin-bar .bhn-player.bh-top-player:not([hidden]):not(.expanded):not(.mini) {
	top: calc(84px + var(--wp-admin--admin-bar--height, 32px)) !important;
}
html[data-theme="night"] .bhn-player.bh-top-player:not([hidden]):not(.expanded):not(.mini) {
	background: rgba(20, 20, 24, 0.84);
	border-color: rgba(255, 255, 255, 0.11);
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52);
	color: #f5f5f7;
}
.bhn-player.bh-top-player:not([hidden]).expanded {
	position: fixed !important;
	top: calc(74px + env(safe-area-inset-top)) !important;
	bottom: max(16px, env(safe-area-inset-bottom)) !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: min(760px, calc(100% - 28px));
	height: auto;
	border-radius: 26px;
	z-index: 90;
}
.bhn-player.bh-top-player.mini:not([hidden]) {
	position: fixed !important;
	top: var(--mini-top, calc(76px + env(safe-area-inset-top))) !important;
	bottom: auto !important;
	right: 16px !important;
	left: auto !important;
	transform: none !important;
	width: 84px !important;
	height: 50px !important;
	padding: 5px 8px 7px 6px !important;
	border-radius: 9999px !important;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(29, 29, 31, 0.08);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	z-index: 68;
}
html[data-theme="night"] .bhn-player.bh-top-player.mini:not([hidden]) {
	background: rgba(22, 22, 26, 0.88);
	border-color: rgba(255, 255, 255, 0.12);
}

/* Smooth top breathing room on non-intro pages when full top player is open */
body.player-active:not(.player-mini) .wp-site-blocks main.bhn-library,
body.player-active:not(.player-mini) .wp-site-blocks main.bhn-editorial-series,
body.player-active:not(.player-mini) .wp-site-blocks main.bhn-section-page,
body.player-active:not(.player-mini) .wp-site-blocks main.bhn-episode-page,
body.player-active:not(.player-mini) .wp-site-blocks main.bhn-video-detail {
	padding-top: calc(154px + env(safe-area-inset-top)) !important;
}

.bhn-player audio { display: none; }
.bhn-player .mini-player { display: none; }
.bhn-player[data-playing="true"] .ico-play,
.bhn-player:not([data-playing="true"]) .ico-pause {
	display: none !important;
}
.bhn-player .ico-play,
.bhn-player .ico-pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bhn-player .mini-cover-btn img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.bhn-player .mini-toggle-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #c6111b !important;
	color: #fff !important;
	display: grid;
	place-items: center;
	padding: 0 !important;
}
.bhn-player .mini-toggle-btn svg { width: 14px; height: 14px; }

/* Left: Cover + Track Meta (clickable to locate playing paragraph) */
.bhn-player .player-brand {
	display: flex !important;
	align-items: center;
	gap: 11px;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit;
	text-align: left;
	cursor: pointer;
	width: auto !important;
	height: auto !important;
}
.bhn-player .player-brand:hover .player-title strong { color: #c6111b; }
html[data-theme="night"] .bhn-player .player-brand:hover .player-title strong { color: #ff5a5f; }
.bhn-player .player-cover {
	display: block;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
	transition: transform .22s ease;
}
.bhn-player .player-brand:hover .player-cover { transform: scale(1.05); }
.bhn-player .player-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bhn-player .player-title {
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.bhn-player .player-title strong {
	display: block;
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bhn-player .player-title small {
	display: block;
	font-size: 11px;
	line-height: 1.25;
	color: var(--muted, #6e6e73);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Center: Inline Transport + Custom Tactile Scrubber */
.bhn-player .player-controls {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.bhn-player .transport {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.bhn-player .player-icon-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	color: inherit;
	opacity: .76;
	cursor: pointer;
	transition: opacity .18s ease, background .18s ease, transform .18s ease;
}
.bhn-player .player-icon-btn:hover {
	opacity: 1;
	background: rgba(128, 128, 128, 0.12) !important;
}
.bhn-player .player-icon-btn:active { transform: scale(0.92); }
.bhn-player .player-icon-btn svg { width: 18px; height: 18px; }

.bhn-player .round-play {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: #c6111b !important;
	color: #ffffff !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(198, 17, 27, 0.28);
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.bhn-player .round-play:hover {
	background: #aa0d16 !important;
	transform: scale(1.04);
	box-shadow: 0 6px 16px rgba(198, 17, 27, 0.36);
}
.bhn-player .round-play:active { transform: scale(0.95); }
.bhn-player .round-play svg { width: 16px; height: 16px; }

.bhn-player .timeline {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.bhn-player .time-readout {
	font-size: 11px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--muted, #6e6e73);
	min-width: 34px;
	text-align: center;
	user-select: none;
}
.bhn-player .timeline input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	min-width: 80px;
	height: 22px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	touch-action: none;
}
.bhn-player .timeline input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(
		to right,
		#c6111b 0%,
		#c6111b var(--seek-pct, 0%),
		rgba(128, 128, 128, 0.22) var(--seek-pct, 0%),
		rgba(128, 128, 128, 0.22) 100%
	);
}
.bhn-player .timeline input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border-radius: 50%;
	background: #c6111b;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	transition: transform .15s ease;
}
.bhn-player .timeline input[type="range"]:hover::-webkit-slider-thumb,
.bhn-player .timeline input[type="range"]:active::-webkit-slider-thumb {
	transform: scale(1.25);
}
.bhn-player .timeline input[type="range"]::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(128, 128, 128, 0.22);
}
.bhn-player .timeline input[type="range"]::-moz-range-progress {
	height: 4px;
	border-radius: 999px;
	background: #c6111b;
}
.bhn-player .timeline input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #c6111b;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Right: Speed, Sleep Timer, Hairline Divider, Window Controls */
.bhn-player .player-extras {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	justify-content: flex-end !important;
	flex-shrink: 0;
	margin: 0 !important;
	padding: 0 !important;
}
.bhn-player .player-aux {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 0 !important;
}
.bhn-player .player-rate-select {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 32px !important;
	min-height: 32px !important;
	width: auto !important;
	min-width: 48px !important;
	margin: 0 !important;
	padding: 0 11px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(128, 128, 128, 0.11) !important;
	color: inherit;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 32px !important;
	text-align: center;
	text-align-last: center;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	box-sizing: border-box;
	transition: background .18s ease;
}
.bhn-player .player-rate-select:hover { background: rgba(128, 128, 128, 0.19) !important; }

.bhn-player.global-player .player-extras .player-aux .player-timer-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	height: 32px !important;
	min-height: 32px !important;
	width: max-content !important;
	min-width: 66px !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(128, 128, 128, 0.11) !important;
	color: inherit;
	font-size: 12px !important;
	font-weight: 550;
	line-height: 1 !important;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	overflow: visible !important;
	transition: background .18s ease, color .18s ease;
}
.bhn-player .player-timer-btn svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.bhn-player .player-timer-btn:hover { background: rgba(128, 128, 128, 0.19) !important; }
.bhn-player .player-timer-btn.is-active {
	background: rgba(198, 17, 27, 0.14) !important;
	color: #c6111b !important;
}
html[data-theme="night"] .bhn-player .player-timer-btn.is-active {
	background: rgba(255, 90, 95, 0.2) !important;
	color: #ff6b70 !important;
}

.bhn-player .player-divider {
	width: 1px;
	height: 18px;
	background: rgba(128, 128, 128, 0.22);
	flex-shrink: 0;
}
.bhn-player .player-window-controls {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 0 !important;
}
.bhn-player .player-window-controls .player-icon-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
}
.bhn-player .sleep-panel {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(360px, calc(100% - 24px));
	padding: 24px;
	border-radius: 22px;
	color: var(--ink);
	border: 1px solid var(--line);
}
.bhn-player .sleep-panel::backdrop { background: rgba(0, 0, 0, 0.52); backdrop-filter: blur(4px); }
.bhn-player .sleep-panel form[method="dialog"] { position: absolute; top: 10px; right: 10px; }

/* ==========================================================================
   5. Series Sections & High-Contrast 3D Cards
   ========================================================================== */
.series-home {
	padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px);
}
.series-section {
	margin-bottom: clamp(56px, 7vw, 88px);
}
.series-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.series-header-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.series-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #c6111b;
}
.series-header h2 {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 750;
	letter-spacing: -.02em;
	line-height: 1.2;
}
.series-header a {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted, #6e6e73);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease, transform .2s ease;
}
.series-header a:hover {
	color: var(--ink);
	transform: translateX(2px);
}

.series-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.bh-native-card {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 18px;
	overflow: hidden;
	background: #141416;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
	transition: transform .36s cubic-bezier(.22, .8, .2, 1), box-shadow .36s cubic-bezier(.22, .8, .2, 1);
}
.bh-native-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}
.bh-native-card .bh-card-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #ffffff;
}
.bh-native-card .bh-card-link img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .55s cubic-bezier(.22, .8, .2, 1);
}
.bh-native-card:hover .bh-card-link img {
	transform: scale(1.045);
}
.bh-native-card .bh-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.86) 0%,
		rgba(0, 0, 0, 0.36) 44%,
		rgba(0, 0, 0, 0.04) 100%
	);
	pointer-events: none;
	z-index: 1;
}
.bh-native-card .bh-card-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 18px 18px 28px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bh-native-card .bh-card-caption .bh-card-cat {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .08em;
	color: rgba(255, 255, 255, 0.78);
}
.bh-native-card .bh-card-caption .bh-card-title {
	margin: 0;
	font-size: clamp(16px, 1.45vw, 20px);
	font-weight: 700;
	line-height: 1.24;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Soft 2-flash background highlight when locating currently playing paragraph (Day / Paper / Night) */
.article-copy p.bh-locate-flash {
	position: relative;
	border-radius: 8px;
	animation: bh-locate-flash-twice 1.55s ease-in-out 1;
}
@keyframes bh-locate-flash-twice {
	0%, 100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
	20% { background-color: rgba(198, 17, 27, 0.11); box-shadow: 0 0 0 6px rgba(198, 17, 27, 0.11); }
	44% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
	68% { background-color: rgba(198, 17, 27, 0.11); box-shadow: 0 0 0 6px rgba(198, 17, 27, 0.11); }
	92% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
.article-page[data-paper="paper"] .article-copy p.bh-locate-flash {
	animation-name: bh-locate-flash-paper;
}
@keyframes bh-locate-flash-paper {
	0%, 100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
	20%, 68% { background-color: rgba(180, 95, 36, 0.14); box-shadow: 0 0 0 6px rgba(180, 95, 36, 0.14); }
	44%, 92% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
html[data-theme="night"] .article-copy p.bh-locate-flash,
.article-page[data-paper="night"] .article-copy p.bh-locate-flash {
	animation-name: bh-locate-flash-night;
}
@keyframes bh-locate-flash-night {
	0%, 100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
	20%, 68% { background-color: rgba(255, 110, 115, 0.18); box-shadow: 0 0 0 6px rgba(255, 110, 115, 0.18); }
	44%, 92% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: reduce) {
	.article-copy p.bh-locate-flash {
		animation: none;
		background-color: rgba(198, 17, 27, 0.10);
		box-shadow: 0 0 0 6px rgba(198, 17, 27, 0.10);
	}
}

/* ==========================================================================
   6. Library, Audio, Video, Topics & Archive Pages
   ========================================================================== */
.wp-site-blocks main.bhn-library,
.wp-site-blocks main.bhn-editorial-series,
.wp-site-blocks main.bhn-section-page,
.wp-site-blocks main.bhn-episode-page,
.wp-site-blocks main.bhn-video-detail {
	padding-top: calc(96px + env(safe-area-inset-top)) !important;
	padding-bottom: 120px !important;
	transition: padding-top .25s ease;
}
.page-intro { margin-bottom: 32px; }
.page-intro h1,
.page-intro h1 *,
.article-head h1,
.article-head h1 * {
	filter: none !important;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}
.page-intro h1 {
	margin: 8px 0 12px;
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.12;
}
.page-intro p {
	max-width: 640px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted, #6e6e73);
	margin: 0;
}

.bhn-library .article-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}
.bhn-library .article-filters input[type="search"],
.bhn-library .article-filters select {
	height: 44px;
	min-height: 44px;
	line-height: 1.2;
	padding-block: 0;
	margin: 0;
	box-sizing: border-box;
}
.bhn-library-js .bhn-library .article-filters > button {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bhn-library .stories-grid,
.bhn-section-page .stories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}
.story-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.story-card .story-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	overflow: hidden;
	background: var(--soft, #f2f1ed);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	transition: transform .32s cubic-bezier(.22, .8, .2, 1), box-shadow .32s ease;
}
.story-card .story-image > a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}
.story-card:hover .story-image {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.story-card .story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s cubic-bezier(.22, .8, .2, 1);
}
.story-card:hover .story-image img { transform: scale(1.035); }
.story-card .story-image .image-badge { pointer-events: none; z-index: 2; }
.story-card .story-body { padding-inline: 2px; }
.story-card .story-body h2 {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.38;
	margin: 6px 0 8px;
}
.story-card .story-body h2 a { color: inherit; text-decoration: none; }
.story-card .story-body h2 a:hover { color: #c6111b; }
.story-card .story-body p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--muted, #6e6e73);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.story-audio-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}
.bh-mini-play-btn { padding: 5px 12px; font-size: 12px; border-radius: 999px; }
.bhn-library .filter-row {
	margin-bottom: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bhn-library .filter-row a,
.bhn-section-page .filter-row a {
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bhn-library .filter-row a.active,
.bhn-section-page .filter-row a.active {
	background: var(--ink);
	color: var(--bg, #fff);
	border-color: var(--ink);
}
.bh-topics-series { margin-top: 56px; }
.bh-about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bh-empty-state { padding: 40px 0; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   7. True Full-Bleed Edge-to-Edge Article Detail Page
   ========================================================================== */
.article-page.content-main {
	padding-top: 0 !important;
	padding-bottom: 120px !important;
}
.article-page .article-cover {
	width: 100vw !important;
	max-width: none !important;
	margin: 0 0 clamp(32px, 4.5vw, 56px) !important;
	margin-left: calc(50% - 50vw) !important;
	aspect-ratio: 16 / 7;
	max-height: 78vh;
	border-radius: 0 !important;
	overflow: hidden;
	background: #0b0b0c;
}
.article-page .article-cover:not(:has(img)) { display: none; }
.article-page .article-cover .wp-block-post-featured-image { margin: 0; height: 100%; width: 100%; }
.article-page .article-cover img {
	width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 0 !important;
	object-fit: cover;
	display: block;
}
.article-page .article-head {
	width: min(calc(100% - 40px), 860px);
	margin: 0 auto clamp(32px, 4vw, 48px);
	padding-inline: 0;
}
.article-page .article-head .wp-block-post-title {
	margin: 14px 0 16px;
	font-size: clamp(32px, 4.6vw, 58px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.035em;
}
.bh-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted, #6e6e73);
	margin-top: 14px;
}
.bh-article-meta a {
	color: #c6111b;
	text-decoration: none;
	font-weight: 600;
}
.article-head .wp-block-post-excerpt { margin: 12px 0 22px; }
.article-head .wp-block-post-excerpt__excerpt {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.75;
	color: var(--muted, #6e6e73);
}

.article-page .article-grid {
	width: min(calc(100% - 40px), 1040px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 220px minmax(0, 740px);
	justify-content: center;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.article-page .reading-aside {
	position: sticky;
	top: 92px;
}
body.player-active:not(.player-mini) .article-page .reading-aside {
	top: 158px;
}
.article-page .reading-aside details[hidden] { display: none; }
.article-page .reading-aside ol {
	list-style: none;
	padding: 10px 0 0;
	margin: 0;
	display: grid;
	gap: 6px;
	max-height: 55vh;
	overflow-y: auto;
}
.article-page .reading-aside ol a {
	display: block;
	padding: 5px 10px;
	border-left: 2px solid transparent;
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--muted);
	text-decoration: none;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.article-page .reading-aside ol a:hover,
.article-page .reading-aside ol a.is-active {
	color: var(--ink);
	border-left-color: #c6111b;
	background: rgba(198, 17, 27, 0.06);
	font-weight: 600;
}
.reading-aside .reading-close {
	display: block;
	margin: 8px 0 8px auto;
	padding: 0;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.bhn-reading-column { min-width: 0; }
.bhn-reading-column .inline-listen {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 14px !important;
	width: 100%;
	max-width: none;
	min-height: 0 !important;
	margin: 0 0 28px !important;
	padding: 14px 18px !important;
	border-radius: 16px !important;
	background: var(--soft, #f6f4ef);
	border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
	box-sizing: border-box;
}
.bhn-reading-column .inline-listen p { display: contents !important; margin: 0 !important; }
.bhn-reading-column .inline-listen br { display: none !important; }
.inline-listen-copy {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	gap: 3px !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}
.inline-listen-kicker {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: .06em;
	color: #c6111b;
}
.inline-listen-copy strong {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 650 !important;
	line-height: 1.3 !important;
}
.bhn-reading-column .inline-listen button {
	background: #c6111b;
	color: #fff;
	border: 0;
	padding: 9px 18px !important;
	border-radius: 999px;
	font-size: 13.5px !important;
	font-weight: 600;
	line-height: 1.2 !important;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
	transition: transform .18s ease, background .18s ease;
}
.bhn-reading-column .inline-listen button:hover { background: #a40c16; transform: translateY(-1px); }

.article-page .article-copy {
	margin: 0;
	min-width: 0;
	max-width: 740px;
	font-size: 18.5px;
	line-height: 2.02;
	font-family: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
}
.article-page .article-copy[data-family="sans"] {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.article-page .article-copy[data-font="small"] { font-size: 16.5px; }
.article-page .article-copy[data-font="large"] { font-size: 21px; }
.article-page .article-copy[data-line="compact"] { line-height: 1.78; }
.article-page .article-copy[data-line="relaxed"] { line-height: 2.25; }
.article-page .article-copy[data-width="narrow"] { max-width: 600px; }
.article-page .article-copy[data-width="wide"] { max-width: 880px; }
.article-page[data-paper="paper"] { background: #f6f1e6; color: #2a2620; }
.article-page[data-paper="night"] { background: #0c0c0e; color: #e7e5e0; }

.article-copy h2 {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif);
	font-size: clamp(24px, 2.7vw, 32px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.3;
	color: var(--ink, #111113);
	margin: 2.6em 0 1em;
	padding: 1.25em 0 0 14px;
	border-top: 1px solid var(--line, rgba(128, 128, 128, 0.16));
	position: relative;
	scroll-margin-top: 140px;
}
.article-copy h2::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.14em;
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: #c6111b;
}
.article-copy .chapter:first-of-type h2 { margin-top: .6em; padding-top: 0; border-top: 0; }
.article-copy h3 {
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif);
	font-size: clamp(18.5px, 1.9vw, 21.5px);
	font-weight: 650;
	letter-spacing: -.01em;
	line-height: 1.45;
	color: var(--ink, #222224);
	margin: 2em 0 .75em;
	padding-left: 11px;
	border-left: 2.5px solid rgba(198, 17, 27, 0.38);
	scroll-margin-top: 140px;
}
html[data-theme="night"] .article-copy h2,
.article-page[data-paper="night"] .article-copy h2 { color: #f5f5f7; }
html[data-theme="night"] .article-copy h3,
.article-page[data-paper="night"] .article-copy h3 { color: #eceae4; border-left-color: rgba(255, 90, 95, 0.5); }
.article-copy p {
	margin: 0 0 1.48em;
	text-align: justify;
	font-weight: 400;
	color: rgba(29, 29, 31, 0.88);
}
html[data-theme="night"] .article-copy p,
.article-page[data-paper="night"] .article-copy p { color: rgba(235, 232, 224, 0.86); }
.article-copy figure.wp-block-image { margin: 2.2em 0; }
.article-copy figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.article-copy figure.wp-block-image figcaption {
	margin-top: 10px;
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
	font-size: 13px;
	color: var(--muted, #6e6e73);
	text-align: center;
}
.bhn-reading-column .figure-zoom {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.bh-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--line, rgba(128, 128, 128, 0.16));
}
.bh-article-tags a {
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--soft, rgba(128, 128, 128, 0.1));
	font-size: 13px;
	text-decoration: none;
	color: var(--muted);
	transition: background .18s ease, color .18s ease;
}
.bh-article-tags a:hover { background: rgba(198, 17, 27, 0.1); color: #c6111b; }
.bhn-related {
	padding-block: 72px 24px;
	border-top: 1px solid var(--line, rgba(128, 128, 128, 0.14));
	margin-top: 56px;
}

/* Shared cover transition */
.bhn-cover-transitioning { visibility: hidden; }
.shared-cover-layer {
	position: fixed;
	z-index: 10000;
	max-width: none;
	margin: 0;
	object-fit: cover;
	pointer-events: none;
}

/* Search & Night Mode Gallery */
.ds-search-dialog .ds-search-content { display: block; }
.ds-search-dialog[open] { pointer-events: auto; }
.ds-search-dialog .ds-search-top input[type="search"] { max-width: none; }
html[data-theme="night"] .gallery-scene,
html[data-theme="night"].intro-complete .bh-intro {
	background: #000000 !important;
}
html[data-theme="night"] .gallery-all,
html[data-theme="night"] .gallery-scene .circular-gallery-label {
	color: #f5f5f7 !important;
}

/* ==========================================================================
   8. Mobile Responsive (< 960px / < 800px)
   ========================================================================== */
@media (max-width: 960px) {
	.series-grid,
	.series-grid--count-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
	.bhn-library .stories-grid,
	.bhn-section-page .stories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 16px;
	}
	.article-page .article-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.article-page .reading-aside { position: static; }
}

@media (max-width: 800px) {
	.site-head .ds-nav .main-nav,
	.main-nav,
	.bhn-desktop-tool {
		display: none !important;
	}
	.site-head .ds-nav {
		height: 60px !important;
		padding: 0 10px 0 12px;
	}
	.site-head .ds-nav .brand strong { display: inline; font-size: 15px; }
	.site-head .ds-nav .head-tools { margin-inline-start: auto; gap: 2px; }
	.gallery-scene .gallery-current-title { bottom: 5%; }
	.gallery-scene .gallery-actions { bottom: max(18px, env(safe-area-inset-bottom)); }
	.bh-native-card .bh-card-caption { padding: 14px 14px 20px; }
	.bh-native-card .bh-card-caption .bh-card-title { font-size: 15px; }
	.article-page .article-cover { aspect-ratio: 16 / 10; margin-bottom: 28px !important; }
	.article-page .article-head .wp-block-post-title { font-size: clamp(28px, 7.5vw, 40px); }
	.article-page .article-copy { font-size: 17.5px; line-height: 1.95; }
	.bhn-reading-column .inline-listen {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		padding: 14px 16px !important;
		margin-bottom: 24px !important;
	}
	.bhn-reading-column .inline-listen-copy strong { font-size: 14.5px; }
	.bhn-reading-column .inline-listen button { padding: 9px 15px; font-size: 13px; }

	/* Compact 2-row mobile top player with perfect circular play button, enlarged ±15s, subtitle & exact navbar width */
	.bhn-player.global-player.bh-top-player:not([hidden]):not(.expanded):not(.mini) {
		top: calc(78px + env(safe-area-inset-top)) !important;
		border-radius: 26px !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-rows: auto auto !important;
		grid-template-areas:
			"brand controls-top"
			"timeline extras" !important;
		align-items: center !important;
		gap: 8px 8px !important;
		padding: 10px 12px !important;
		width: calc(100% - 28px) !important;
		max-width: 1200px !important;
		height: auto !important;
		min-height: 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}
	.bhn-player.global-player .player-brand { grid-area: brand !important; gap: 8px !important; min-width: 0 !important; }
	.bhn-player.global-player .player-cover { width: 36px !important; height: 36px !important; }
	.bhn-player.global-player .player-title strong { font-size: 13px !important; }
	.bhn-player.global-player .player-title small {
		display: block !important;
		font-size: 10.5px !important;
		line-height: 1.25 !important;
		opacity: .72;
	}
	.bhn-player.global-player .player-controls { display: contents !important; }
	.bhn-player.global-player .transport {
		grid-area: controls-top !important;
		display: flex !important;
		align-items: center !important;
		gap: 4px !important;
		flex-shrink: 0 !important;
	}
	.bhn-player.global-player .transport .player-icon-btn {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		max-width: 34px !important;
		min-height: 34px !important;
		padding: 0 !important;
	}
	.bhn-player.global-player .transport .player-icon-btn svg {
		width: 21px !important;
		height: 21px !important;
	}
	.bhn-player.global-player .round-play {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		max-width: 36px !important;
		min-height: 36px !important;
		max-height: 36px !important;
		aspect-ratio: 1 / 1 !important;
		border-radius: 50% !important;
		padding: 0 !important;
		flex-shrink: 0 !important;
	}
	.bhn-player.global-player .round-play svg { width: 15px !important; height: 15px !important; }
	.bhn-player.global-player .timeline { grid-area: timeline !important; gap: 5px !important; min-width: 0 !important; }
	.bhn-player.global-player .timeline input[type="range"] { min-width: 46px !important; height: 22px !important; }
	.bhn-player.global-player .time-readout { font-size: 10px !important; min-width: 26px !important; }
	.bhn-player.global-player .player-extras {
		grid-area: extras !important;
		width: auto !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 4px !important;
	}
	.bhn-player.global-player .player-aux { gap: 4px !important; }
	.bhn-player.global-player .player-window-controls { gap: 2px !important; margin-left: 0 !important; }
	.bhn-player.global-player .player-divider { display: none !important; }
	.bhn-player.global-player .player-rate-select {
		display: inline-flex !important;
		height: 26px !important;
		min-height: 26px !important;
		min-width: 36px !important;
		padding: 0 6px !important;
		font-size: 11px !important;
		line-height: 26px !important;
	}
	.bhn-player.global-player .player-extras .player-aux .player-timer-btn span { display: none !important; }
	.bhn-player.global-player .player-extras .player-aux .player-timer-btn {
		width: 26px !important;
		min-width: 26px !important;
		max-width: 26px !important;
		height: 26px !important;
		min-height: 26px !important;
		padding: 0 !important;
	}
	.bhn-player.global-player .player-window-controls .player-icon-btn,
	.bhn-player.global-player .player-window-controls button {
		width: 26px !important;
		height: 26px !important;
		min-width: 26px !important;
		max-width: 26px !important;
		min-height: 26px !important;
		padding: 0 !important;
	}
	.bhn-player.global-player .player-window-controls svg { width: 15px !important; height: 15px !important; }

	/* Mobile /zh/articles/ 2-column compact grid matching original */
	.bhn-library .stories-grid,
	.bhn-section-page .stories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}
	.bhn-library .story-card .story-body h2,
	.bhn-section-page .story-card .story-body h2 {
		font-size: 15px;
		margin: 4px 0;
	}
	.bhn-library .story-card .story-body p,
	.bhn-section-page .story-card .story-body p {
		font-size: 12px;
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 360px) {
	.bhn-library .stories-grid,
	.bhn-section-page .stories-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   9. Phase 3 Upgrades: Desktop Dropdown IA, Mobile Drawer, Lamp Breathing,
      iOS 100dvh Full Coverage, Gallery Excerpt, 3D Hover Tilt & Back-to-Top
   ========================================================================== */

/* Desktop "读历史" Popover Menu */
.nav-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.nav-caret {
	font-size: 10px;
	opacity: .65;
	margin-left: 2px;
	transition: transform .2s ease;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
	transform: rotate(180deg);
}
.nav-popover {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	width: 320px;
	padding: 16px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(28px) saturate(190%);
	-webkit-backdrop-filter: blur(28px) saturate(190%);
	border: 1px solid rgba(29, 29, 31, 0.08);
	box-shadow: 0 22px 54px rgba(0, 0, 0, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	z-index: 90;
}
.nav-dropdown::after {
	content: "";
	position: absolute;
	left: -12px;
	right: -12px;
	top: 100%;
	height: 18px;
}
.nav-dropdown:hover .nav-popover,
.nav-dropdown:focus-within .nav-popover {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
html[data-theme="night"] .nav-popover {
	background: rgba(24, 24, 28, 0.95);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.nav-pop-all {
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px !important;
	border-radius: 14px !important;
	background: rgba(128, 128, 128, 0.08) !important;
	opacity: 1 !important;
	margin-bottom: 12px;
}
.nav-pop-all:hover { background: rgba(198, 17, 27, 0.09) !important; }
.nav-pop-all strong { font-size: 14px; font-weight: 650; }
.nav-pop-all span { font-size: 12px; color: var(--muted); }
.nav-pop-group { margin-top: 10px; }
.nav-pop-label {
	display: block;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: .08em;
	color: var(--muted);
	margin-bottom: 7px;
	padding-left: 4px;
}
.nav-pop-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.nav-pop-links a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 11px !important;
	border-radius: 999px !important;
	background: rgba(128, 128, 128, 0.08) !important;
	font-size: 12.5px !important;
	opacity: .92 !important;
}
.nav-pop-links a:hover {
	background: rgba(198, 17, 27, 0.12) !important;
	color: #c6111b !important;
}
.nav-pop-links em { font-style: normal; font-size: 11px; opacity: .55; }

/* Polished Mobile Drawer */
.mobile-drawer {
	max-height: calc(100dvh - 96px - env(safe-area-inset-bottom));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.mobile-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(128, 128, 128, 0.14);
}
.mobile-drawer-brand { font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--muted); }
.mobile-drawer-primary {
	display: grid;
	gap: 2px;
}
.mobile-drawer-primary a {
	display: block;
	padding: 11px 6px;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
.mobile-drawer-section {
	padding-top: 8px;
}
.mobile-drawer-label {
	display: block;
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: .08em;
	color: var(--muted);
	margin-bottom: 8px;
}
.mobile-drawer-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.mobile-drawer-chips a {
	padding: 6px 13px;
	border-radius: 999px;
	background: rgba(128, 128, 128, 0.1);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}
.mobile-drawer-tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding-top: 12px;
	margin-top: 4px;
	border-top: 1px solid rgba(128, 128, 128, 0.14);
}
.mobile-drawer-tools button,
.mobile-drawer-tools a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(128, 128, 128, 0.08);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
}

/* Footer Taxonomy Bar */
.footer-taxonomy-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 14px 0 18px;
	font-size: 13px;
	color: var(--muted);
}
.footer-taxonomy-bar a { text-decoration: none; opacity: .82; transition: opacity .18s ease, color .18s ease; }
.footer-taxonomy-bar a:hover { opacity: 1; color: #c6111b; }
.footer-sep { opacity: .4; }

/* iOS Safari 100dvh/100lvh True Edge-to-Edge Full Coverage (Zero Top/Bottom Black Blocks) */
@media (max-width: 800px) {
	.bh-stage,
	.bh-media,
	.bh-black,
	.gallery-scene {
		height: 100vh !important;
		height: 100dvh !important;
		min-height: 100lvh !important;
	}
	.bh-media {
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}
	.bh-media canvas,
	.bh-media .bh-poster {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: center center !important;
	}
}

/* Instant Article Paragraph Rendering (Zero Scroll-Reveal Blur or Lag on Desktop & Mobile) */
.article-copy,
.article-copy * {
	content-visibility: visible !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
}

/* Lamp First-Frame Strong Cinematic Luminance Breathing (no scale, stops on scroll) */
.bh-stage:not(.is-scrolling) .bh-media canvas,
.bh-stage:not(.is-scrolling) .bh-media .bh-poster {
	animation: bh-lamp-breathe-dim 3.8s ease-in-out infinite !important;
	transform: none !important;
}
.bh-stage.is-scrolling .bh-media canvas,
.bh-stage.is-scrolling .bh-media .bh-poster {
	animation: none !important;
	filter: brightness(1) !important;
	transform: none !important;
}
@keyframes bh-lamp-breathe-dim {
	0%, 100% { filter: brightness(1.12); }
	50% { filter: brightness(0.42); }
}

/* Upgraded Bilingual Scroll Hint (Dead-Center, Pure White #ffffff, No Text Breathing, Compact English) */
.bh-hint {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 5px !important;
	top: 50% !important;
	bottom: auto !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
}
.bh-hint .bh-hint-swipe {
	display: grid;
	place-items: center;
	margin-bottom: 2px;
	color: #ffffff;
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.28));
}
.bh-hint .bh-hint-swipe .bh-chev-1 {
	animation: bh-swipe-up 2.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
.bh-hint .bh-hint-swipe .bh-chev-2 {
	animation: bh-swipe-up 2.1s cubic-bezier(.4, 0, .2, 1) infinite .22s;
}
.bh-stage.is-scrolling .bh-hint-swipe path {
	animation-play-state: paused !important;
}
@keyframes bh-swipe-up {
	0% { opacity: 0.2; transform: translateY(4px); }
	45% { opacity: 1; transform: translateY(-2px); }
	100% { opacity: 0.2; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
	.bh-hint .bh-hint-swipe path { animation: none !important; }
}
.bh-hint .bh-hint-zh {
	display: block;
	font-family: inherit;
	font-size: clamp(26px, 2.4vw, 34px) !important;
	font-weight: 800 !important;
	letter-spacing: .14em !important;
	line-height: 1.2 !important;
	color: #ffffff !important;
	opacity: 1 !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
	animation: none !important;
}
.bh-hint .bh-hint-en {
	display: block;
	font-family: inherit;
	font-size: clamp(9.5px, 0.78vw, 11px) !important;
	font-weight: 500 !important;
	letter-spacing: .02em !important;
	line-height: 1.25 !important;
	color: #ffffff !important;
	opacity: 1 !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24) !important;
	animation: none !important;
}
@media (max-width: 800px) {
	.bh-hint .bh-hint-zh { font-size: 24px !important; }
	.bh-hint .bh-hint-en { font-size: 9.5px !important; letter-spacing: .015em !important; }
}
@media (prefers-reduced-motion: reduce) {
	.bh-media canvas, .bh-media .bh-poster { animation: none !important; filter: none !important; }
}

/* Homepage Full-Bleed Clean Edges (No Top/Bottom Gradient Fade on Desktop & Mobile) */
.bh-media,
.gallery-scene #react-history-gallery {
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

/* Gallery Canvas Height */
.gallery-scene #react-history-gallery {
	height: 82% !important;
}

/* Gallery Title & 1-Line Synced Excerpt (More Breathing Room Below Card, Tighter Pair) */
.gallery-scene .gallery-current-title {
	bottom: 10.2% !important;
}
.gallery-current-excerpt {
	position: absolute;
	left: 50%;
	bottom: 7.4% !important;
	transform: translateX(-50%);
	width: min(560px, calc(100vw - 48px));
	margin: 0;
	text-align: center;
	font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(29, 29, 31, 0.56);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	z-index: 4;
}
html[data-theme="night"] .gallery-current-excerpt {
	color: rgba(245, 245, 247, 0.58);
}
@media (max-width: 800px) {
	.gallery-scene .gallery-current-title {
		bottom: 8.5% !important;
	}
	.gallery-current-excerpt {
		bottom: 5.8% !important;
		font-size: 12px;
	}
}

/* Full-Bleed Card Image (100% Fill, Zero Top/Bottom Gap) + 3D Pointer Tilt & Reflective Sheen */
.bh-native-card .bh-card-link img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	margin: 0 !important;
	padding: 0 !important;
}
.bh-native-card,
.story-card .story-image {
	transform-style: preserve-3d;
	will-change: transform;
}
.bh-native-card.is-tilting,
.story-card .story-image.is-tilting {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) scale(1.012);
	transition: transform .08s linear, box-shadow .25s ease;
}
.bh-native-card::before,
.story-card .story-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 58%);
	transition: opacity .25s ease;
}
.bh-native-card.is-tilting::before,
.story-card .story-image.is-tilting::before {
	opacity: 1;
}
@media (hover: none) {
	.bh-native-card:active,
	.story-card .story-image:active {
		transform: scale(0.98);
		transition: transform .12s ease;
	}
}

/* Search Result Meta Layout */
.ds-search-result { display: flex; align-items: center; gap: 12px; }
.ds-search-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-search-meta small { font-size: 11.5px; color: var(--muted); }
.ds-search-results { max-height: 55dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Article Detail Floating Back-to-Top Icon Button */
.bh-back-to-top {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
	z-index: 62;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(29, 29, 31, 0.1);
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	color: #1d1d1f;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s, background .2s ease;
}
.bh-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .26s ease, transform .26s ease, visibility 0s, background .2s ease;
}
.bh-back-to-top:hover { background: rgba(255, 255, 255, 0.98); transform: translateY(-2px); }
html[data-theme="night"] .bh-back-to-top {
	background: rgba(26, 26, 30, 0.88);
	border-color: rgba(255, 255, 255, 0.14);
	color: #f5f5f7;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   10. React Bits CardNav Expanding Panel (cardEffect="rise", Desktop & Mobile)
   ========================================================================== */
.site-head .ds-nav .main-nav .nav-card-trigger {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 !important;
	padding: 8px 2px !important;
	border: 0;
	background: transparent !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 450;
	letter-spacing: .015em;
	color: var(--ink);
	opacity: .72;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .22s ease, color .22s ease;
}
.site-head .ds-nav .main-nav .nav-card-trigger:hover,
.site-head .ds-nav .main-nav .nav-card-trigger.is-open {
	opacity: 1;
}
.site-head .ds-nav .main-nav .nav-card-trigger.is-current {
	opacity: 1;
	font-weight: 650;
	color: #c6111b !important;
}
html[data-theme="night"] .site-head .ds-nav .main-nav .nav-card-trigger { color: #f5f5f7; }
html[data-theme="night"] .site-head .ds-nav .main-nav .nav-card-trigger.is-current { color: #ff5a5f !important; }
.nav-card-trigger.is-open .nav-caret { transform: rotate(180deg); }

.bh-cn-burger {
	display: grid !important;
	place-items: center;
}
.bh-burger-lines {
	position: relative;
	width: 17px;
	height: 12px;
	display: block;
}
.bh-burger-lines i {
	position: absolute;
	left: 0;
	right: 0;
	height: 1.65px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center center;
	transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}
.bh-burger-lines i:nth-child(1) { top: 0; }
.bh-burger-lines i:nth-child(2) { top: 5.2px; }
.bh-burger-lines i:nth-child(3) { top: 10.4px; }
.bh-cn-burger.is-open .bh-burger-lines i:nth-child(1) {
	transform: translateY(5.2px) rotate(45deg);
}
.bh-cn-burger.is-open .bh-burger-lines i:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.bh-cn-burger.is-open .bh-burger-lines i:nth-child(3) {
	transform: translateY(-5.2px) rotate(-45deg);
}

.bh-cardnav-panel {
	--cn-panel: rgba(250, 250, 252, 0.94);
	--cn-edge: rgba(29, 29, 31, 0.08);
	--cn-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.14);
	--cn-tile: #ffffff;
	--cn-tile-border: rgba(29, 29, 31, 0.06);
	--cn-text: #1d1d1f;
	--cn-muted: rgba(29, 29, 31, 0.50);
	--cn-hover: rgba(29, 29, 31, 0.05);

	pointer-events: auto;
	position: relative;
	width: calc(100% - 28px);
	max-width: 1200px;
	margin: 8px auto 0;
	padding: 12px;
	border-radius: 22px;
	background: var(--cn-panel);
	box-shadow: var(--cn-shadow);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	box-sizing: border-box;
	overflow: hidden;
	max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;

	opacity: 0;
	transform: translateY(-8px) scale(0.985);
	transform-origin: top center;
	transition: opacity .24s cubic-bezier(.22, 1, .36, 1), transform .28s cubic-bezier(.22, 1, .36, 1);
}
.bh-cardnav-panel[hidden] { display: none !important; }
.bh-cardnav-panel.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}
html[data-theme="night"] .bh-cardnav-panel {
	--cn-panel: rgba(20, 20, 22, 0.94);
	--cn-edge: rgba(255, 255, 255, 0.08);
	--cn-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.78);
	--cn-tile: #1c1c1f;
	--cn-tile-border: rgba(255, 255, 255, 0.06);
	--cn-text: #f5f5f7;
	--cn-muted: rgba(245, 245, 247, 0.48);
	--cn-hover: rgba(255, 255, 255, 0.06);
}
.bh-cardnav-rim {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid var(--cn-edge);
	pointer-events: none;
}

.bh-cardnav-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.bh-cn-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 16px;
	border-radius: 16px;
	background: var(--cn-tile);
	border: 1px solid var(--cn-tile-border);
	color: var(--cn-text);
	/* React Bits cardEffect="rise" staggered entrance */
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .32s cubic-bezier(.22, 1, .36, 1), transform .36s cubic-bezier(.22, 1, .36, 1);
	transition-delay: calc(var(--cn-i, 0) * 45ms);
}
.bh-cardnav-panel.is-open .bh-cn-card {
	opacity: 1;
	transform: translateY(0);
}
.bh-cn-card-head h3 {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -.01em;
}
.bh-cn-card-head p {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--cn-muted);
}
.bh-cn-links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bh-cn-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 480;
	color: var(--cn-text);
	text-decoration: none;
	transition: background .16s ease, color .16s ease;
}
.bh-cn-links a em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--cn-muted);
}
.bh-cn-links a .cn-arrow {
	opacity: .38;
	transition: opacity .16s ease, transform .16s ease;
}
.bh-cn-links a:hover { background: var(--cn-hover); }
.bh-cn-links a:hover .cn-arrow { opacity: .9; transform: translate(2px, -2px); }

.bh-cn-mobile-bar { display: none; }

@media (max-width: 800px) {
	.bh-cardnav-panel {
		padding: 10px;
		border-radius: 20px;
	}
	.bh-cardnav-grid {
		grid-template-columns: 1fr;
		gap: 7px;
	}
	.bh-cn-card {
		padding: 11px 13px;
		gap: 6px;
		border-radius: 14px;
	}
	.bh-cn-card-head h3 { font-size: 13.5px; margin: 0; }
	.bh-cn-card-head p { display: none; }
	.bh-cn-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 6px;
	}
	.bh-cn-links a {
		padding: 5px 6px;
		font-size: 13px;
	}
	.bh-cn-mobile-bar {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
		margin-top: 8px;
		padding-top: 8px;
		border-top: 1px solid var(--cn-edge);
	}
	.bh-cn-mobile-bar button,
	.bh-cn-mobile-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 6px 2px;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: var(--cn-text);
		font-size: 11px;
		line-height: 1.2;
		text-decoration: none;
		cursor: pointer;
	}
	.bh-cn-mobile-bar button:active,
	.bh-cn-mobile-bar a:active { background: var(--cn-hover); }
	.bh-cn-mobile-bar svg { width: 16px; height: 16px; opacity: .82; }
}
@media (max-width: 800px) {
	.series-home,
	.series-section,
	.series-header,
	.bh-native-card,
	.story-card,
	.article-page,
	.article-head,
	.article-cover,
	.article-grid,
	.article-copy,
	.article-copy section,
	.article-copy figure,
	.page-intro,
	.topic-card,
	.bhn-related,
	.footer {
		opacity: 1 !important;
		filter: none !important;
		animation: none !important;
		transition-property: color, background-color, border-color, box-shadow !important;
	}
}


/* =========================================================
   M3 · User Auth Modal & Personal Space (/account/)
   ========================================================= */
.bhn-account .bh-nav-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.bhn-account .bh-nav-initial {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #c6111b;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.bh-auth-dialog {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 440px;
	width: calc(100vw - 32px);
	border-radius: 22px;
	overflow: visible;
}
.bh-auth-dialog::backdrop {
	background: rgba(0, 0, 0, 0.56);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.bh-auth-shell {
	background: #ffffff;
	color: #1d1d1f;
	border-radius: 22px;
	padding: 26px 24px 22px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
	border: 1px solid rgba(0, 0, 0, 0.06);
}
html[data-theme="night"] .bh-auth-shell {
	background: #161618;
	color: #f5f5f7;
	border-color: rgba(255, 255, 255, 0.1);
}
.bh-auth-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.bh-auth-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bh-auth-brand img {
	border-radius: 50%;
	object-fit: cover;
}
.bh-auth-brand strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.bh-auth-brand small {
	display: block;
	font-size: 12.5px;
	color: var(--muted, #6e6e73);
	margin-top: 2px;
}
.bh-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(128, 128, 128, 0.1);
	margin-bottom: 16px;
}
.bh-auth-tabs button {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 9px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.bh-auth-tabs button.is-active {
	background: #ffffff;
	color: #111113;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html[data-theme="night"] .bh-auth-tabs button.is-active {
	background: #2c2c30;
	color: #ffffff;
}
.bh-auth-alert, .bh-inline-msg, .bh-action-banner {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 14px;
	background: rgba(198, 17, 27, 0.1);
	color: #b4131c;
}
.bh-auth-alert.is-ok, .bh-inline-msg.is-ok, .bh-action-banner.is-ok {
	background: rgba(22, 163, 74, 0.12);
	color: #15803d;
}
html[data-theme="night"] .bh-auth-alert,
html[data-theme="night"] .bh-inline-msg { color: #ff7b82; }
html[data-theme="night"] .bh-auth-alert.is-ok,
html[data-theme="night"] .bh-inline-msg.is-ok,
html[data-theme="night"] .bh-action-banner.is-ok { color: #4ade80; }

.bh-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.bh-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
}
.bh-field input, .bh-pref-row select {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border-radius: 11px;
	border: 1px solid rgba(128, 128, 128, 0.25);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14.5px;
	font-weight: 400;
	outline: none;
	transition: border-color .15s ease;
}
.bh-field input:focus, .bh-pref-row select:focus {
	border-color: #c6111b;
}
.bh-pass-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.bh-pass-wrap input { padding-right: 54px; }
.bh-pass-toggle {
	position: absolute;
	right: 10px;
	border: 0;
	background: transparent;
	color: var(--muted, #6e6e73);
	font-size: 12.5px;
	cursor: pointer;
	padding: 4px 6px;
}
.bh-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.bh-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--muted, #6e6e73);
	cursor: pointer;
}
.bh-link-btn {
	border: 0;
	background: transparent;
	color: #c6111b;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 2px 0;
}
.bh-submit-btn {
	border: 0;
	border-radius: 12px;
	background: #c6111b;
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 18px;
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease;
}
.bh-submit-btn:hover { opacity: 0.92; }
.bh-submit-btn:disabled { opacity: 0.55; cursor: wait; }
.bh-outline-btn {
	border: 1px solid rgba(128, 128, 128, 0.28);
	border-radius: 11px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 15px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.bh-outline-btn:hover { background: rgba(128, 128, 128, 0.08); }
.bh-outline-btn[aria-pressed="true"] {
	border-color: #c6111b;
	color: #c6111b;
	background: rgba(198, 17, 27, 0.08);
}
.bh-danger-ghost { color: #c6111b; border-color: rgba(198, 17, 27, 0.32); }
.bh-danger-btn {
	border: 0;
	border-radius: 11px;
	background: #b91c1c;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 16px;
	cursor: pointer;
	margin-top: 10px;
}
.bh-auth-note { font-size: 13.5px; color: var(--muted, #6e6e73); margin: 0; line-height: 1.6; }
.bh-auth-foot {
	margin: 16px 0 0;
	font-size: 12px;
	color: var(--muted, #6e6e73);
	text-align: center;
}

/* Personal Space Page */
.bh-account-page {
	padding-top: 24px;
	padding-bottom: 72px;
}
.bh-account-guest-card {
	max-width: 620px;
	margin: 36px auto;
	padding: 36px 28px;
	border-radius: 22px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
	text-align: center;
}
.bh-account-guest-card h1 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 12px; }
.bh-guest-desc { color: var(--muted, #6e6e73); line-height: 1.75; margin: 0 0 24px; }
.bh-guest-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.bh-profile-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 24px;
	border-radius: 20px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
	margin-bottom: 22px;
}
.bh-profile-left { display: flex; align-items: center; gap: 16px; }
.bh-avatar-box {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #c6111b;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.bh-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.bh-profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bh-profile-name-row h1 { font-size: 22px; margin: 0; }
.bh-verify-badge {
	font-size: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(22, 163, 74, 0.12);
	color: #15803d;
	font-weight: 600;
}
.bh-verify-badge.is-unverified {
	background: rgba(234, 179, 8, 0.16);
	color: #a16207;
}
.bh-profile-email { margin: 4px 0 2px; font-size: 13.5px; color: var(--muted, #6e6e73); }
.bh-sync-status { margin: 0; font-size: 12.5px; color: var(--muted, #6e6e73); }
.bh-profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.bh-continue-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.bh-continue-card {
	padding: 20px;
	border-radius: 18px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
}
.bh-continue-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #c6111b;
	margin-bottom: 10px;
	letter-spacing: .04em;
}
.bh-continue-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.bh-continue-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.bh-continue-item small { color: var(--muted, #6e6e73); font-size: 13px; }
.bh-empty-hint { color: var(--muted, #6e6e73); font-size: 14px; margin: 4px 0; }

.bh-space-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--line, rgba(128, 128, 128, 0.16));
}
.bh-space-tabs button {
	border: 0;
	background: transparent;
	color: var(--muted, #6e6e73);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}
.bh-space-tabs button.is-active {
	background: #c6111b;
	color: #ffffff;
}

.bh-space-list { display: flex; flex-direction: column; gap: 12px; }
.bh-space-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
}
.bh-space-row-main { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; flex: 1; }
.bh-space-row-main img { width: 64px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bh-space-row-main strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.bh-space-row-main small { color: var(--muted, #6e6e73); font-size: 12.5px; }

.bh-series-follow-grid, .bh-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.bh-series-follow-card, .bh-settings-card {
	padding: 20px;
	border-radius: 16px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bh-series-follow-card { flex-direction: row; align-items: center; justify-content: space-between; }
.bh-series-follow-card h3, .bh-settings-card h3 { margin: 0 0 4px; font-size: 17px; }
.bh-series-follow-card p, .bh-panel-note { margin: 0; font-size: 13.5px; color: var(--muted, #6e6e73); line-height: 1.6; }
.bh-pref-rows { display: flex; flex-direction: column; gap: 12px; }
.bh-pref-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 600; }
.bh-pref-row select { max-width: 190px; }
.bh-divider { border: 0; border-top: 1px solid var(--line, rgba(128, 128, 128, 0.16)); margin: 8px 0; }

@media (max-width: 760px) {
	.bh-continue-grid, .bh-series-follow-grid, .bh-settings-grid {
		grid-template-columns: 1fr;
	}
	.bh-profile-card { padding: 18px; }
	.bh-space-row { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   M5 · Personalized Home, Related Recommendations, Share & Subscribe
   ========================================================= */
.bh-home-personal { margin: 18px auto 28px; }
.bh-home-personal { margin: 8px auto 20px; }
.bh-personal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.bh-personal-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid var(--line, rgba(22, 20, 19, 0.12));
	background: rgba(22, 20, 19, 0.02);
	text-decoration: none;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.bh-personal-card:hover { transform: translateY(-1px); border-color: #c6111b; background: rgba(198, 17, 27, 0.03); }
.bh-pc-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(198, 17, 27, 0.09);
	color: #c6111b;
}
.bh-pc-body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bh-personal-card strong {
	display: block;
	font-size: 14.5px;
	font-weight: 650;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bh-personal-card small {
	display: block;
	font-size: 12px;
	line-height: 1.3;
	color: var(--muted, #6e6e73);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bh-pc-tag {
	font-style: normal;
	font-weight: 650;
	color: #c6111b;
}
.bh-pc-arrow {
	flex-shrink: 0;
	color: var(--muted, #6e6e73);
	opacity: 0.65;
	transition: transform .18s ease, color .18s ease;
}
.bh-personal-card:hover .bh-pc-arrow { transform: translateX(2px); color: #c6111b; opacity: 1; }
html[data-theme="night"] .bh-personal-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.11);
}
html[data-theme="night"] .bh-personal-card:hover {
	border-color: #ff5a5f;
	background: rgba(255, 90, 95, 0.08);
}
html[data-theme="night"] .bh-pc-icon {
	background: rgba(255, 90, 95, 0.14);
	color: #ff5a5f;
}
html[data-theme="night"] .bh-pc-tag,
html[data-theme="night"] .bh-personal-card:hover .bh-pc-arrow { color: #ff5a5f; }
@media (max-width: 760px) {
	.bh-home-personal { margin: 4px auto 14px; }
	.bh-personal-grid { grid-template-columns: 1fr; gap: 8px; }
	.bh-personal-card { padding: 9px 12px; gap: 10px; border-radius: 13px; }
	.bh-pc-icon { width: 34px; height: 34px; border-radius: 9px; }
	.bh-personal-card strong { font-size: 14px; }
	.bh-personal-card small { font-size: 11.5px; }
}

.bh-related-section { margin: 56px auto 24px; padding-top: 32px; border-top: 1px solid var(--line, rgba(128, 128, 128, 0.16)); }
.bh-related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bh-related-head h2 { margin: 0; font-size: 22px; }
.bh-related-head a { color: #c6111b; font-size: 14px; font-weight: 600; text-decoration: none; }

.bh-share-ratios { display: flex; gap: 8px; margin-bottom: 14px; }
.bh-share-ratios .is-active { border-color: #c6111b; color: #c6111b; }
.bh-poster-preview { background: #111; border-radius: 12px; overflow: hidden; margin-bottom: 14px; max-height: 360px; display: flex; justify-content: center; }
.bh-poster-preview canvas { max-width: 100%; max-height: 360px; width: auto; height: auto; display: block; }
.bh-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.bh-sub-card {
	margin: 40px auto;
	padding: 26px 24px;
	border-radius: 18px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.bh-sub-card h3 { margin: 0 0 4px; font-size: 19px; }
.bh-sub-card p { margin: 0; font-size: 14px; color: var(--muted, #6e6e73); }
.bh-sub-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bh-sub-form input { flex: 1; min-width: 220px; padding: 11px 14px; border-radius: 11px; border: 1px solid rgba(128, 128, 128, 0.28); background: transparent; color: inherit; font: inherit; }
.bh-sub-msg { font-size: 13.5px; color: #15803d; font-weight: 600; }

/* M5.1 Auth Dialog & Mobile Safari UX Hardening */
[hidden] { display: none !important; }
.bh-auth-shell {
	max-height: 90dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.bh-field label { font-size: 13px; font-weight: 600; }
.bh-field input { font-size: 16px; } /* Prevents iOS Safari auto-zoom on focus */
.bh-field-hint { font-size: 12px; color: var(--muted, #6e6e73); font-weight: 400; }
.bh-dev-badge {
	margin: 0;
	padding: 8px 11px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.5;
	background: rgba(234, 179, 8, 0.14);
	color: #92400e;
}
html[data-theme="night"] .bh-dev-badge { color: #fde047; }

/* M6 · Consent Bar & Errata Feedback */
.bh-consent-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	max-width: 720px;
	margin: 0 auto;
	z-index: 90;
	padding: 14px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
html[data-theme="night"] .bh-consent-bar {
	background: rgba(24, 24, 27, 0.94);
	border-color: rgba(255, 255, 255, 0.12);
	color: #f5f5f7;
}
.bh-consent-text { flex: 1; min-width: 220px; font-size: 13px; line-height: 1.5; }
.bh-consent-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.bh-consent-text a { color: #c6111b; }
.bh-consent-actions { display: flex; gap: 8px; }
.bh-errata-bar { margin: 28px auto 12px; text-align: center; }

/* =========================================================
   M7 · Fullscreen Immersive Audio Player, Install & Update UI
   ========================================================= */
.bh-fs-player {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #0d0d0f;
	color: #f5f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
	overflow-y: auto;
}
.bh-fs-inner {
	width: 100%;
	max-width: 440px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.bh-fs-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.bh-fs-top .icon-btn { color: #f5f5f7; }
.bh-fs-brand { text-align: center; }
.bh-fs-brand span { display: block; font-size: 13px; font-weight: 700; }
.bh-fs-brand small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.bh-fs-cover-wrap {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	background: #18181b;
}
.bh-fs-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-fs-meta h2 { margin: 0 0 4px; font-size: 21px; font-weight: 750; line-height: 1.3; }
.bh-fs-meta p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }
.bh-fs-scrub input[type="range"] { width: 100%; accent-color: #c6111b; }
.bh-fs-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.58); margin-top: 4px; }
.bh-fs-controls { display: flex; align-items: center; justify-content: center; gap: 28px; }
.bh-fs-ctl {
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: #f5f5f7;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.bh-fs-play {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 0;
	background: #c6111b;
	color: #ffffff;
	font-size: 22px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px rgba(198, 17, 27, 0.45);
}
.bh-fs-extras { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bh-fs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
	color: #f5f5f7;
	font-size: 12.5px;
	cursor: pointer;
}
.bh-fs-chip select { background: transparent; color: inherit; border: 0; font: inherit; outline: none; }
.bh-fs-sleep-note { margin: 0; text-align: center; font-size: 12px; color: #fda4af; }

.bh-install-steps { margin: 0; padding-left: 20px; line-height: 1.8; font-size: 14px; }
.bh-update-pill {
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	right: 20px;
	z-index: 95;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;
	background: #161618;
	color: #f5f5f7;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
	font-size: 13.5px;
}

/* =========================================================
   V1.1-RC · Trust Bar, Multi-Filter Explore, Offline Reader, Skip-Intro & WCAG AA
   ========================================================= */
html[data-theme="night"] { --muted: #9ca3af; }
.footer-trust-bar { margin-top: 10px; opacity: 0.85; font-size: 13px; }
.bh-trust-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-family: var(--font-ui, -apple-system, "PingFang SC", sans-serif);
	font-size: 13px;
	color: var(--muted, #6e6e73);
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(128, 128, 128, 0.07);
	margin: 0 0 28px;
}
.bh-trust-bar a { color: #c6111b; font-weight: 600; text-decoration: none; }
.bh-follow-chip {
	margin-left: auto;
	border: 1px solid rgba(198, 17, 27, 0.35);
	background: transparent;
	color: #c6111b;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}
.bh-follow-chip[aria-pressed="true"] { background: #c6111b; color: #fff; }
.bh-refs-box {
	margin-top: 38px;
	padding: 20px 22px;
	border-radius: 14px;
	border: 1px solid var(--line, rgba(128, 128, 128, 0.18));
	font-family: var(--font-ui, -apple-system, "PingFang SC", sans-serif);
}
.bh-refs-box h3 { margin: 0 0 10px; font-size: 15.5px; }
.bh-refs-box ul { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.75; color: var(--muted, #6e6e73); }

/* Multi-Dimensional Explore Center */
.bh-explore-filters { display: flex; flex-direction: column; gap: 14px; }
.bh-filter-group { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bh-filter-label { font-size: 13px; font-weight: 700; color: var(--muted, #6e6e73); min-width: 74px; padding-top: 6px; }
.bh-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.bh-chip {
	border: 1px solid var(--line, rgba(128, 128, 128, 0.22));
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s ease;
}
.bh-chip em { font-style: normal; opacity: 0.6; font-size: 12px; }
.bh-chip.is-active { background: #c6111b; border-color: #c6111b; color: #fff; }
.bh-explore-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; font-size: 13.5px; color: var(--muted, #6e6e73); }

/* Skip Intro Micro-Button */
.bh-skip-intro {
	position: absolute;
	right: 20px;
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 25;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.86);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12.5px;
	cursor: pointer;
}

/* Fullscreen Chapters List & Offline Reader */
.bh-fs-chapters {
	max-height: 220px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
}
.bh-fs-ch-item {
	text-align: left;
	border: 0;
	background: transparent;
	color: #f5f5f7;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	cursor: pointer;
}
.bh-fs-ch-item:hover { background: rgba(255, 255, 255, 0.1); }
.bh-offline-reader {
	border: 0;
	padding: 0;
	width: min(820px, calc(100vw - 24px));
	max-height: 90dvh;
	border-radius: 18px;
	background: var(--bg, #fff);
	color: var(--ink, #1d1d1f);
}
.bh-offline-reader::backdrop { background: rgba(0, 0, 0, 0.6); }
.bh-offline-shell { display: flex; flex-direction: column; max-height: 90dvh; }
.bh-offline-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line, rgba(128, 128, 128, 0.18));
}
.bh-offline-head strong { display: block; font-size: 17px; }
.bh-offline-head small { color: var(--muted, #6e6e73); font-size: 12px; }
.bh-offline-body { padding: 20px 24px 36px; overflow-y: auto; }

/* =========================================================
   Global Page Top & Bottom GradualBlur (React Bits JS-CSS)
   ========================================================= */
.gradual-blur {
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}
.gradual-blur-layer,
.gradual-blur-wash {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}
.bh-page-gradual-blur {
	--bh-gb-tint: rgba(255, 255, 255, 0.12);
	--bh-gb-height-top: 5.5rem;
	--bh-gb-height-bottom: 5.5rem;
}
html[data-theme="night"] .bh-page-gradual-blur {
	--bh-gb-tint: rgba(0, 0, 0, 0.18);
}
html:not(.intro-complete) body.home .bh-page-gradual-blur {
	opacity: 0 !important;
}
@media (max-width: 760px) {
	.bh-page-gradual-blur {
		--bh-gb-height-top: calc(3.6rem + env(safe-area-inset-top, 0px));
		--bh-gb-height-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
	}
}
/* iOS Safari Liquid Glass edge-to-edge: avoid fixed full-width edge bars that trigger Safari solid safe-area caps */
@supports (-webkit-touch-callout: none) {
	.bh-page-gradual-blur {
		display: none !important;
	}
}
