/* Black Clover chapter posts — fixed bottom chapter bar (loaded only on those posts). */
.bcf-bar { --bcf-bg: rgba(17, 24, 39, .97); --bcf-line: #2b3444; --bcf-btn: #1f2937; --bcf-btn-hover: #2d3a4f; --bcf-text: #f3f4f6; --bcf-accent: #e11d48; --bcf-accent-hover: #f43f5e;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: var(--bcf-bg); border-top: 1px solid var(--bcf-line); box-shadow: 0 -10px 28px -14px rgba(0, 0, 0, .65);
	font-family: inherit; line-height: 1; box-sizing: border-box; }
.bcf-bar *, .bcf-bar *::before, .bcf-bar *::after { box-sizing: border-box; }
.bcf-bar__in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bcf-bar .bcf-bar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 14px;
	border: 1px solid var(--bcf-line); border-radius: 8px; background: var(--bcf-btn); color: var(--bcf-text); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; text-transform: none; letter-spacing: 0;
	transition: background-color .2s, border-color .2s, transform .15s; }
.bcf-bar .bcf-bar__btn > span[aria-hidden] { font-size: 22px; line-height: 1; margin-top: -2px; }
.bcf-bar a.bcf-bar__btn:hover { background: var(--bcf-btn-hover); border-color: #4b5563; color: #fff; }
.bcf-bar a.bcf-bar__btn:active { transform: translateY(1px); }
.bcf-bar a.bcf-bar__btn[rel="next"] { background: var(--bcf-accent); border-color: var(--bcf-accent); color: #fff; }
.bcf-bar a.bcf-bar__btn[rel="next"]:hover { background: var(--bcf-accent-hover); border-color: var(--bcf-accent-hover); }
.bcf-bar .bcf-bar__btn.is-disabled { opacity: .4; cursor: not-allowed; }
.bcf-bar .bcf-bar__select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 10px; border: 1px solid var(--bcf-line); border-radius: 8px;
	background-color: #0f1623; color: var(--bcf-text); font-size: 15px; font-weight: 700; box-shadow: none; text-overflow: ellipsis; }
.bcf-bar a:focus-visible, .bcf-bar select:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.bcf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bcf-bar-spacer { height: var(--bcf-bar-h, calc(61px + env(safe-area-inset-bottom))); }
body:has(.bcf-bar) .back-to-top { bottom: calc(var(--bcf-bar-h, 61px) + 12px) !important; }
@media (max-width: 560px) {
	.bcf-bar { padding-left: 8px; padding-right: 8px; }
	.bcf-bar__in { gap: 6px; }
	.bcf-bar .bcf-bar__btn { padding: 0 10px; }
	.bcf-bar .bcf-bar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.bcf-bar .bcf-bar__select { font-size: 14px; padding: 0 6px; }
}
@media print { .bcf-bar, .bcf-bar-spacer { display: none !important; } }
