/* =============================================================
   Aqua Reader v3 — floating glass chrome, one bottom sheet,
   end-of-chapter card. Loads after reader.css.
   Layers: dim 8000 · chrome 9000 · menu 9010 · sheet 9100 · report 99999
   ============================================================= */

.aqua-reader-page {
	--aqr-accent: #48cae4;
	--aqr-ink: #03151b;
	--aqr-text: #eef1f5;
	--aqr-mut: #8a94a3;
	--aqr-glass: rgba(14, 17, 22, .86);
	--aqr-edge: rgba(255, 255, 255, .09);
	--aqr-ease: cubic-bezier(.32, .72, 0, 1);
	--aqr-top: env(safe-area-inset-top, 0px);
	--aqr-bot: env(safe-area-inset-bottom, 0px);
}
.admin-bar.aqua-reader-page { --aqr-top: 32px; }
@media (max-width: 782px) { .admin-bar.aqua-reader-page { --aqr-top: 46px; } }

/* The reader has its own top bar: no site header, footer or old chrome. */
body.aqua-reader-page .aqua-site-header,
body.aqua-reader-page #aqua-site-header,
body.aqua-reader-page .site-header,
body.aqua-reader-page .aqua-scroll-top,
body.aqua-reader-page .aqua-tap-hint,
body.aqua-reader-page .aqua-continue-banner,
body.aqua-reader-page .aqua-reader-toolbar,
body.aqua-reader-page .aqua-reader-chappill { display: none !important; }
body.aqua-reader-page { padding-top: 0 !important; }
body.aqua-reader-page .site-content { padding-top: 0 !important; margin-top: 0 !important; }

/* ── Shared glass ─────────────────────────────────────────── */
.aqr-glass {
	background: var(--aqr-glass);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	backdrop-filter: blur(20px) saturate(1.4);
	box-shadow: inset 0 0 0 1px var(--aqr-edge), 0 18px 40px -16px rgba(0, 0, 0, .85);
	color: var(--aqr-text);
}
.aqr button { font-family: inherit; }
.aqr a, .aqr a:hover, .aqr a:focus { text-decoration: none; }
.aqr :focus-visible, .aqr-sheet :focus-visible, .aqr-end :focus-visible {
	outline: 2px solid var(--aqr-accent); outline-offset: 2px;
}

/* ── Chrome show / hide ───────────────────────────────────── */
.aqr-chrome { transition: transform .32s var(--aqr-ease), opacity .24s ease; }
.aqr.is-hidden .aqr-top { transform: translateY(calc(-100% - 20px - var(--aqr-top))); opacity: 0; pointer-events: none; }
.aqr.is-hidden .aqr-bottom { transform: translateY(calc(100% + 24px + var(--aqr-bot))); opacity: 0; pointer-events: none; }
.aqr.is-hidden .aqr-down { transform: translateY(16px); opacity: 0; pointer-events: none; }

/* ── Top bar ──────────────────────────────────────────────── */
.aqr-top {
	position: fixed; z-index: 9000;
	top: calc(var(--aqr-top) + 10px); left: 10px; right: 10px;
	display: flex; gap: 8px;
	max-width: 760px; margin: 0 auto;
}
.aqr-top__home {
	flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px;
	display: grid; place-items: center;
}
.aqr-top__pill {
	flex: 1; min-width: 0; height: 52px; border-radius: 99px;
	display: flex; align-items: center; gap: 10px; padding: 0 6px;
}
.aqr-top__cover { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.aqr-top__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.aqr-top__text small { font-size: 11.5px; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqr-top__text b { font-size: 15px; font-weight: 750; color: var(--aqr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqr-top__page { font-weight: 700; font-size: 12px; line-height: 1; color: #9aa4b2; margin-right: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aqr-top__page:empty { display: none; }
.aqr-top__home:hover, .aqr-top__pill:hover { color: var(--aqr-text); background: rgba(24, 28, 35, .92); }
.aqr-progress {
	position: absolute; left: 66px; right: 14px; bottom: -9px; height: 3px; border-radius: 9px;
	background: rgba(255, 255, 255, .12); overflow: hidden;
}
.aqr-progress i { display: block; height: 100%; width: 100%; border-radius: 9px; background: var(--aqr-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Bottom bar ───────────────────────────────────────────── */
.aqr-bottom {
	position: fixed; z-index: 9000;
	left: 10px; right: 10px; bottom: calc(var(--aqr-bot) + 14px);
	display: flex; align-items: center; gap: 8px;
	max-width: 560px; margin: 0 auto;
}
.aqr-circ {
	flex: 0 0 52px; width: 52px; height: 52px; border: 0; border-radius: 50%;
	display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--aqr-text);
	transition: transform .16s var(--aqr-ease), background .2s ease;
}
.aqr-circ:active { transform: scale(.94); }
.aqr-nav:hover { color: var(--aqr-text); background: rgba(28, 33, 41, .94); }
.aqr-nav.is-disabled { opacity: .35; cursor: default; }
.aqr-nav.is-disabled:active { transform: none; }
.aqr-nav__t { display: none; }
.aqr-menubtn {
	background: var(--aqr-accent); color: var(--aqr-ink);
	box-shadow: 0 10px 24px -8px rgba(72, 202, 228, .7);
}
.aqr-menubtn[aria-expanded="true"] { background: #fff; }
.aqr-pill {
	flex: 1; min-width: 0; height: 52px; border-radius: 99px;
	display: flex; align-items: center; justify-content: space-evenly;
}
.aqr-pa {
	display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px;
	border: 0; border-radius: 99px; background: none; color: var(--aqr-text);
	font-weight: 800; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer;
	transition: background .2s ease, transform .16s var(--aqr-ease);
}
.aqr-pa:hover { background: rgba(255, 255, 255, .07); }
.aqr-pa:active { transform: scale(.95); }
.aqr-pa img { width: 20px; height: 20px; display: block; }
.aqr-pa__n:empty { display: none; }
.aqr-love[aria-pressed="true"] { color: #ff8fa3; }
.aqr-love[aria-pressed="true"] img { filter: drop-shadow(0 0 6px rgba(255, 77, 109, .55)); }
.aqr-love.is-pop img { animation: aqrPop .42s var(--aqr-ease); }
@keyframes aqrPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ── ⋮ Menu ───────────────────────────────────────────────── */
.aqr-menu {
	position: fixed; z-index: 9010;
	left: max(10px, calc(50% - 280px + 58px)); bottom: calc(var(--aqr-bot) + 80px);
	width: 250px; border-radius: 24px; padding: 8px;
	transform-origin: 30px calc(100% + 30px);
	animation: aqrMenuIn .26s var(--aqr-ease);
}
.aqr-menu[hidden] { display: none; }
@keyframes aqrMenuIn { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
.aqr-mi {
	display: flex; align-items: center; gap: 14px; width: 100%; height: 54px; padding: 0 10px;
	border: 0; border-radius: 14px; background: transparent; color: var(--aqr-text);
	font-weight: 650; font-size: 16px; line-height: 1; text-align: left; cursor: pointer;
}
.aqr-mi:hover, .aqr-mi:focus-visible { background: rgba(255, 255, 255, .06); }
.aqr-mi__ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; flex: 0 0 auto; }
.aqr-mi .aqr-ic-pause { display: none; }
.aqr-mi.is-on .aqr-ic-pause { display: block; }
.aqr-mi.is-on .aqr-ic-play { display: none; }
.aqr-mi.is-on .aqr-mi__ic { background: var(--aqr-accent); color: var(--aqr-ink); }

/* ── Jump-to-end + auto-scroll chip ───────────────────────── */
.aqr-down {
	position: fixed; z-index: 9000; right: 12px; bottom: calc(var(--aqr-bot) + 80px);
	width: 46px; height: 46px; border: 0; border-radius: 50%; padding: 0;
	display: grid; place-items: center; cursor: pointer;
}
.aqr-down.is-gone { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 900px) { .aqr-down { right: max(16px, calc(50% - 440px)); } }
.aqr-autochip {
	position: fixed; z-index: 9001; left: 50%; bottom: calc(var(--aqr-bot) + 82px);
	transform: translateX(-50%); height: 40px; padding: 0 16px; border: 0; border-radius: 99px;
	display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer;
}
.aqr-autochip[hidden] { display: none; }
.aqr.is-hidden .aqr-autochip { bottom: calc(var(--aqr-bot) + 18px); }

/* ── Brightness dim + toast ───────────────────────────────── */
.aqr-dim { position: fixed; inset: 0; z-index: 8000; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.aqr-toast {
	position: fixed; z-index: 9002; left: 50%; bottom: calc(var(--aqr-bot) + 82px);
	transform: translateX(-50%); max-width: calc(100% - 32px);
	padding: 11px 16px; border-radius: 99px; background: rgba(14, 17, 22, .94); color: var(--aqr-text);
	box-shadow: inset 0 0 0 1px var(--aqr-edge), 0 18px 40px -16px rgba(0, 0, 0, .85);
	font-weight: 650; font-size: 13.5px; line-height: 1.3; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.aqr-toast[hidden] { display: none; }
.aqr-toast button { border: 0; background: var(--aqr-accent); color: var(--aqr-ink); font-weight: 800; font-size: 12.5px; line-height: 1; height: 30px; padding: 0 12px; border-radius: 99px; cursor: pointer; }
.aqr-toast button.aqr-toast__x { background: rgba(255, 255, 255, .1); color: var(--aqr-text); width: 30px; padding: 0; }

/* ── Bottom sheet ─────────────────────────────────────────── */
.aqr-sheet { position: fixed; inset: 0; z-index: 9100; }
.aqr-sheet[hidden] { display: none; }
.aqr-sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: aqrFade .25s ease; }
@keyframes aqrFade { from { opacity: 0; } }
.aqr-sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
	height: min(78vh, 720px); height: min(78dvh, 720px);
	border-radius: 28px 28px 0 0; background: #0c0f14; color: var(--aqr-text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 -30px 60px rgba(0, 0, 0, .6);
	padding: 10px 14px calc(var(--aqr-bot) + 10px); box-sizing: border-box;
	display: flex; flex-direction: column; gap: 12px;
	animation: aqrUp .36s var(--aqr-ease);
}
@keyframes aqrUp { from { transform: translateY(100%); } }
.aqr-sheet__grip { align-self: center; width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .22); flex: 0 0 auto; }
.aqr-sheet__head { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.aqr-sheet__cover { width: 42px; height: 56px; border-radius: 9px; object-fit: cover; }
.aqr-sheet__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aqr-sheet__title b { font: 750 18px/1.2 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqr-sheet__title small { color: var(--aqr-mut); font-size: 12.5px; }
.aqr-x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #d6dce4; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; padding: 0; }
.aqr-x:hover { background: rgba(255, 255, 255, .12); }
.aqr-tabs { display: flex; padding: 3px; border-radius: 99px; background: #151a22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); flex: 0 0 auto; }
.aqr-tab { flex: 1; height: 38px; border: 0; border-radius: 99px; background: transparent; color: #aab3c0; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.aqr-tab[aria-selected="true"] { background: var(--aqr-accent); color: var(--aqr-ink); }
.aqr-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.aqr-pane[hidden] { display: none; }

/* Chapters pane */
.aqr-search {
	height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; margin: 0;
	border-radius: 12px; background: #151a22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--aqr-mut); flex: 0 0 auto;
}
.aqr-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; color: var(--aqr-text) !important; font-size: 15px; line-height: 1; padding: 0 !important; box-shadow: none !important; }
.aqr-search input::placeholder { color: #6f7a88; }
.aqr-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.aqr-chlist { list-style: none; margin: 0; padding: 0 0 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
.aqr-chlist li { margin: 0; padding: 0; }
.aqr-chlist li[hidden] { display: none; }
.aqr-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--aqr-text) !important; transition: background .15s ease; }
.aqr-row:hover { background: rgba(255, 255, 255, .05); }
.aqr-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.aqr-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aqr-row__t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqr-row__t small { font-size: 12px; color: var(--aqr-mut); }
.aqr-row.is-cur { background: rgba(72, 202, 228, .12); box-shadow: inset 0 0 0 1px rgba(72, 202, 228, .35); }
.aqr-row.is-cur small { color: var(--aqr-accent); }
.aqr-row__ic { color: var(--aqr-accent); flex: 0 0 auto; }
.aqr-new { height: 22px; padding: 0 9px; border-radius: 99px; background: var(--aqr-accent); color: var(--aqr-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.aqr-empty { margin: 8px 4px; color: var(--aqr-mut); font-size: 13.5px; }
.aqr-empty[hidden] { display: none; }

/* Settings pane */
.aqr-pane--set { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.aqr-grp { border-radius: 20px; background: #12161c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.aqr-lab { font-size: 12px; font-weight: 700; color: #aab3c0; margin: 0; }
.aqr-lrow { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.aqr-val { font-weight: 800; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--aqr-text); font-variant-numeric: tabular-nums; }
.aqr-opts { display: grid; gap: 8px; }
.aqr-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aqr-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aqr-op {
	height: 62px; border: 0; border-radius: 14px; background: #1a1f27; color: #c6cdd7;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	font-weight: 700; font-size: 12.5px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, transform .16s var(--aqr-ease);
}
.aqr-op:active { transform: scale(.97); }
.aqr-op[aria-checked="true"] { background: var(--aqr-accent); color: var(--aqr-ink); box-shadow: 0 8px 20px -8px rgba(72, 202, 228, .7); }
.aqr-sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.aqr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.aqr-range::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--aqr-accent) var(--p), rgba(255, 255, 255, .1) var(--p)); }
.aqr-range::-moz-range-track { height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.aqr-range::-moz-range-progress { height: 6px; border-radius: 9px; background: var(--aqr-accent); }
.aqr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.aqr-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.aqr-grp--tg { gap: 14px; }
.aqr-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; }
.aqr-tg b { display: block; font-size: 14.5px; font-weight: 700; color: var(--aqr-text); }
.aqr-tg small { display: block; color: var(--aqr-mut); font-size: 12px; margin-top: 2px; font-weight: 400; }
.aqr-switch {
	-webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 46px; height: 28px; margin: 0;
	border-radius: 99px; background: rgba(255, 255, 255, .14); position: relative; cursor: pointer; transition: background .2s ease;
}
.aqr-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .26s var(--aqr-ease); }
.aqr-switch:checked { background: var(--aqr-accent); }
.aqr-switch:checked::after { transform: translateX(18px); }
.aqr-keys { margin: 2px 4px 0; color: #6f7a88; font-size: 12px; line-height: 1.5; }
@media (hover: none) { .aqr-keys { display: none; } }

/* ── Page backgrounds (set on <html> before paint) ────────── */
html.aqr-bg-dark body.aqua-reader-page,
html.aqr-bg-dark .aqua-reader-page .site-content,
html.aqr-bg-dark .aqua-reader-page #content,
html.aqr-bg-dark .aqua-reader-page .c-page-content,
html.aqr-bg-dark .aqua-reader-page .site-main,
html.aqr-bg-dark .aqua-reader-page .reading-content,
html.aqr-bg-dark .aqua-reader-page .read-container,
html.aqr-bg-dark .aqua-reader-page .entry-content,
html.aqr-bg-dark .aqua-reader-page .entry-content_wrap { background: #1b2026 !important; }
html.aqr-bg-paper body.aqua-reader-page,
html.aqr-bg-paper .aqua-reader-page .site-content,
html.aqr-bg-paper .aqua-reader-page #content,
html.aqr-bg-paper .aqua-reader-page .c-page-content,
html.aqr-bg-paper .aqua-reader-page .site-main,
html.aqr-bg-paper .aqua-reader-page .reading-content,
html.aqr-bg-paper .aqua-reader-page .read-container,
html.aqr-bg-paper .aqua-reader-page .entry-content,
html.aqr-bg-paper .aqua-reader-page .entry-content_wrap { background: #efe7d6 !important; }
html.aqr-bg-paper .aqua-reader-page .aqua-reader-comments,
html.aqr-bg-paper .aqua-reader-page .aqr-end { background: #0b0e12; border-radius: 22px; }
html.aqr-bg-paper .aqua-reader-page .aqr-end { margin-top: 16px; }

/* Data saver: give not-yet-loaded pages height so lazy loading really waits. */
html.aqr-lz:not(.aqr-paged) .aqua-reader-page .reading-content img.wp-manga-chapter-img:not(.aqr-ok) { min-height: 80vh !important; }

/* ── Page-by-page mode ────────────────────────────────────── */
html.aqr-paged .aqua-reader-page .reading-content > *:not(.aqr-cur):not(input) { display: none !important; }
html.aqr-paged .aqua-reader-page .reading-content > .aqr-cur { display: flex !important; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; }
html.aqr-paged .aqua-reader-page .reading-content { -webkit-user-select: none; user-select: none; }

/* ── End of chapter ───────────────────────────────────────── */
.aqr-end {
	text-align: left;
	max-width: 720px; margin: 0 auto; padding: 18px 14px 26px;
	display: flex; flex-direction: column; gap: 12px; box-sizing: border-box;
	font-size: 14px; line-height: 1.4; color: var(--aqr-text);
}
.aqr-end__hero {
	position: relative; display: block; min-height: 180px; border-radius: 22px; overflow: hidden;
	background: #10141a; color: #fff !important; isolation: isolate;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
a.aqr-end__hero { transition: transform .2s var(--aqr-ease); }
a.aqr-end__hero:active { transform: scale(.99); }
.aqr-end__bg { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center 25%; margin: 0 !important; z-index: -2; transition: transform .7s var(--aqr-ease); }
a.aqr-end__hero:hover .aqr-end__bg { transform: scale(1.04); }
.aqr-end__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 12, .95) 15%, rgba(7, 9, 12, .6) 60%, rgba(7, 9, 12, .25)); }
.aqr-end__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
.aqr-end__done { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #5fd39a; }
.aqr-end__body small { color: #c3cad4; font-size: 12.5px; max-width: 34ch; line-height: 1.45; }
.aqr-end__next { font: 750 28px/1.05 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; color: #fff; }
.aqr-end__hero--caught .aqr-end__next { font-size: 24px; }
.aqr-end__cta { margin-top: 10px; height: 44px; padding: 0 20px; border-radius: 99px; background: var(--aqr-accent); color: var(--aqr-ink) !important; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.aqr-end__btns { display: flex; gap: 8px; }
.aqr-btn {
	flex: 1; min-width: 0; height: 46px; border-radius: 14px; background: #12161c; color: var(--aqr-text) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap;
	transition: background .2s ease;
}
.aqr-btn:hover { background: #181d25; }

/* Leave room so the last page and comments clear the floating bar. */
.aqua-reader-page .aqua-reader-comments { padding-bottom: calc(var(--aqr-bot) + 90px) !important; }
.aqua-reader-page .maai-ad--sticky { bottom: calc(var(--aqr-bot) + 80px) !important; }

/* ── Report dialog (reader copy of the series-page styles) ── */
.aqua-reader-page .aqua-report-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.aqua-reader-page .aqua-report-modal { background: #0f1318; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); color: var(--aqr-text); }
.aqua-reader-page .aqua-report-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.aqua-reader-page .aqua-report-modal__title { font: 750 18px/1.25 "Bricolage Grotesque", system-ui, sans-serif; color: #fff; margin: 0; }
.aqua-reader-page .aqua-report-modal__close { background: none; border: none; color: rgba(255, 255, 255, .5); cursor: pointer; padding: 4px; }
.aqua-reader-page .aqua-report-modal__close:hover { color: #fff; }
.aqua-reader-page .aqua-report-modal__body { padding: 18px 20px; }
.aqua-reader-page .aqua-report-modal__label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); margin: 0 0 10px; }
.aqua-reader-page .aqua-report-reasons { display: flex; flex-direction: column; gap: 6px; }
.aqua-reader-page .aqua-report-reason { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 16px; color: rgba(255, 255, 255, .85); font-weight: 500; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; width: 100%; }
.aqua-reader-page .aqua-report-reason:hover { background: rgba(255, 255, 255, .08); }
.aqua-reader-page .aqua-report-reason.is-selected { background: rgba(72, 202, 228, .12); border-color: var(--aqr-accent); color: var(--aqr-accent); }
.aqua-reader-page .aqua-report-textarea { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 14px; line-height: 1.4; resize: vertical; outline: none; box-sizing: border-box; }
.aqua-reader-page .aqua-report-textarea:focus { border-color: rgba(72, 202, 228, .4); }
.aqua-reader-page .aqua-report-modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .06); }
.aqua-reader-page .aqua-report-btn { padding: 0 20px; height: 42px; border-radius: 99px; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; border: none; }
.aqua-reader-page .aqua-report-btn--cancel { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .8); }
.aqua-reader-page .aqua-report-btn--submit { background: var(--aqr-accent); color: var(--aqr-ink); }
.aqua-reader-page .aqua-report-btn--submit:disabled { opacity: .4; cursor: not-allowed; }

/* ── Small phones ─────────────────────────────────────────── */
@media (max-width: 370px) {
	.aqr-bottom { gap: 6px; left: 8px; right: 8px; }
	.aqr-circ { flex-basis: 46px; width: 46px; height: 46px; }
	.aqr-pill { height: 46px; }
	.aqr-pa { padding: 0 5px; gap: 4px; font-size: 13.5px; }
	.aqr-pa svg { width: 17px; height: 17px; }
	.aqr-pa img { width: 18px; height: 18px; }
	.aqr-top__home { flex-basis: 46px; width: 46px; height: 46px; }
	.aqr-top__pill { height: 46px; }
	.aqr-top__cover { width: 34px; height: 34px; }
	.aqr-progress { left: 58px; }
}

@media (max-width: 340px) {
	#aqua-chapters-btn svg { display: none; }
}

/* ── Desktop ──────────────────────────────────────────────── */
@media (min-width: 900px) {
	.aqr-top { top: calc(var(--aqr-top) + 12px); }
	.aqr-bottom { bottom: calc(var(--aqr-bot) + 18px); max-width: 680px; }
	.aqr-nav { flex: 0 0 auto; width: auto; padding: 0 18px; border-radius: 99px; gap: 8px; display: flex; font-weight: 750; font-size: 14px; height: 52px; }
	.aqr-nav.is-disabled { width: 52px; padding: 0; justify-content: center; }
	.aqr-nav__t { display: inline; white-space: nowrap; }
	.aqr-nav--next:not(.is-disabled) { background: var(--aqr-accent); color: var(--aqr-ink); }
	.aqr-nav--next:not(.is-disabled):hover { background: #6dd7ec; color: var(--aqr-ink); }
	.aqr-menu { left: calc(50% - 340px + 150px); bottom: calc(var(--aqr-bot) + 84px); }
	.aqr-sheet__panel { bottom: 50%; transform: translateY(50%); border-radius: 26px; height: min(80vh, 720px); animation: aqrFade .25s ease; }
	.aqr-end { padding-top: 26px; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.aqr-chrome, .aqr-menu, .aqr-sheet__panel, .aqr-sheet__scrim, .aqr-end__bg, .aqr-switch::after { transition: opacity .15s ease !important; animation: none !important; }
	.aqr.is-hidden .aqr-top, .aqr.is-hidden .aqr-bottom, .aqr.is-hidden .aqr-down { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.aqr-glass { background: #12161c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── "Manga discussion" heading: Madara's red-orange block → aqua v3 style ── */
#manga-discussion.c-blog__heading { border-bottom: 0 !important; margin: 0 0 14px !important; padding: 0 !important; height: auto !important; display: flex; align-items: center; }
#manga-discussion.c-blog__heading h4 {
	display: flex !important; align-items: center; gap: 0 !important; margin: 0 !important; padding: 0 !important;
	font-family: "Bricolage Grotesque", system-ui, sans-serif !important; font-size: 20px !important; font-weight: 700 !important;
	letter-spacing: -.02em !important; line-height: 1.2 !important; color: #eef1f5 !important;
	font-size: 0 !important; /* hide Madara's "MANGA DISCUSSION" text, label comes from ::after */
}
#manga-discussion.c-blog__heading h4::after { content: "Comments"; font-size: 20px; text-transform: none; margin: 0 !important; padding: 0 !important; position: static !important; }
#manga-discussion.c-blog__heading h4 i {
	position: relative !important; flex: 0 0 auto; width: 32px !important; height: 32px !important; margin: 0 12px 0 0 !important;
	border-radius: 10px !important; background: rgba(72, 202, 228, .14) !important;
	box-shadow: inset 0 0 0 1px rgba(72, 202, 228, .3) !important; font-size: 0 !important;
}
#manga-discussion.c-blog__heading h4 i::before {
	content: "" !important; position: absolute !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; margin: 0 !important; transform: translate(-50%, -50%) !important;
	width: 17px !important; height: 17px !important; border: 0 !important; background: #48cae4 !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L3 21l1.9-6.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L3 21l1.9-6.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#manga-discussion.c-blog__heading h4 i::after { display: none !important; content: none !important; }
a.aqr-mi, a.aqr-mi:hover, a.aqr-mi:visited { color: var(--aqr-text) !important; text-decoration: none !important; }

/* End card: bookmark row */
.aqr-bm {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0; padding: 10px 16px; border: 0; border-radius: 16px;
	background: #12161c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--aqr-text) !important;
	text-align: left; font: inherit; cursor: pointer; text-decoration: none !important;
	transition: background .2s ease, box-shadow .2s ease, transform .16s var(--aqr-ease);
}
.aqr-bm:hover { background: #181d25; }
.aqr-bm:active { transform: scale(.985); }
.aqr-bm__ic { flex: 0 0 auto; fill: none; color: var(--aqr-accent); transition: fill .2s ease; }
.aqr-bm__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aqr-bm__t b { font-size: 15px; font-weight: 750; color: #fff; }
.aqr-bm__t small { font-size: 12.5px; color: #8a94a3; }
.aqr-bm.is-on { background: rgba(72, 202, 228, .1); box-shadow: inset 0 0 0 1px rgba(72, 202, 228, .35); }
.aqr-bm.is-on .aqr-bm__ic { fill: currentColor; }
