/* ==========================================================================
   Story Reader — full-page "Drama" design
   Breakpoints: 1200 (reader left column) · 992 (sidebars stack, drawer nav)
                768 (compact header/hero) · 560 (phone grids)
   ========================================================================== */

:root {
	--sr-accent: #f0325a;
	--sr-accent-ink: #fff;
	--sr-accent-soft: color-mix(in srgb, var(--sr-accent) 10%, transparent);
	--sr-bg: #f6f7fb;
	--sr-surface: #fff;
	--sr-surface-2: #f3f4f8;
	--sr-text: #1b1f2c;
	--sr-muted: #6b7280;
	--sr-line: #eceef3;
	--sr-shadow: 0 1px 2px rgba(20, 24, 40, .04), 0 6px 24px rgba(20, 24, 40, .05);
	--sr-radius: 16px;
	--sr-radius-sm: 10px;
	--sr-header-h: 64px;
	--sr-gutter: 20px;
	--sr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sr-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--sr-reading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sr-font-size: 19px;
	--sr-blue: #2f6fed;
	--sr-green: #16a34a;
	--sr-gold: #f59e0b;
	color-scheme: light;
}

:root[data-sr-mode="dark"] {
	--sr-bg: #0f1117;
	--sr-surface: #171a22;
	--sr-surface-2: #1f232d;
	--sr-text: #e6e8ee;
	--sr-muted: #9aa1b1;
	--sr-line: #262a35;
	--sr-shadow: 0 1px 2px rgba(0, 0, 0, .3);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-sr-mode]) {
		--sr-bg: #0f1117;
		--sr-surface: #171a22;
		--sr-surface-2: #1f232d;
		--sr-text: #e6e8ee;
		--sr-muted: #9aa1b1;
		--sr-line: #262a35;
		--sr-shadow: 0 1px 2px rgba(0, 0, 0, .3);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */

body.sr-app {
	margin: 0;
	background: var(--sr-bg);
	color: var(--sr-text);
	font-family: var(--sr-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.sr-app *,
.sr-app *::before,
.sr-app *::after {
	box-sizing: border-box;
}

.sr-app :where(a) {
	color: inherit;
	text-decoration: none;
}

.sr-app :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
}

.sr-app :where(h1, h2, h3) {
	margin: 0;
	color: inherit;
	font-family: inherit;
	line-height: 1.25;
	letter-spacing: 0;
}

.sr-app :where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

.sr-app [hidden] {
	display: none !important;
}

.sr-app :focus-visible {
	outline: 2px solid var(--sr-accent);
	outline-offset: 2px;
}

.sr-app .screen-reader-text,
.sr-app .sr-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.sr-skip {
	position: absolute;
	top: -40px;
	left: 12px;
	z-index: 1000;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--sr-accent);
	color: #fff !important;
}

.sr-skip:focus {
	top: 8px;
}

.sr-i {
	flex-shrink: 0;
	vertical-align: -0.2em;
}

.sr-muted {
	color: var(--sr-muted);
}

.sr-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
}

.sr-main {
	min-height: 60vh;
	padding-bottom: 40px;
}

/* ---------- Buttons, pills, chips, tags ---------- */

.sr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}

.sr-btn--lg {
	min-height: 48px;
	padding: 0 24px;
	font-size: 15px;
}

.sr-btn--block {
	width: 100%;
	margin-top: 14px;
}

.sr-btn--primary {
	background: var(--sr-accent);
	color: var(--sr-accent-ink) !important;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--sr-accent) 30%, transparent);
}

.sr-btn--primary:hover {
	background: color-mix(in srgb, var(--sr-accent) 88%, #000);
}

.sr-btn--glass {
	border-color: rgba(255, 255, 255, .35);
	background: rgba(15, 17, 23, .35);
	color: #fff !important;
	backdrop-filter: blur(6px);
}

.sr-btn--outline {
	border-color: color-mix(in srgb, var(--sr-accent) 55%, transparent);
	color: var(--sr-accent) !important;
}

.sr-btn--outline:hover,
.sr-btn--outline[aria-pressed="true"] {
	background: var(--sr-accent-soft);
}

.sr-btn--outline-light {
	border-color: rgba(255, 255, 255, .7);
	color: #fff !important;
}

.sr-btn--outline-light:hover,
.sr-btn--outline-light[aria-pressed="true"] {
	background: rgba(255, 255, 255, .12);
}

.sr-btn--soft {
	border-color: var(--sr-line);
	background: var(--sr-surface-2);
	color: var(--sr-text) !important;
}

.sr-btn.is-disabled {
	opacity: .45;
	box-shadow: none;
	cursor: default;
}

.sr-icon-btn {
	position: relative;
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--sr-text);
	cursor: pointer;
}

.sr-icon-btn:hover,
.sr-icon-btn[aria-pressed="true"] {
	background: var(--sr-surface-2);
}

.sr-icon-btn[aria-pressed="true"] {
	color: var(--sr-accent);
}

.sr-badge-count {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--sr-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
}

.sr-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--sr-accent);
	font-weight: 600;
	cursor: pointer;
}

.sr-link--muted {
	color: var(--sr-muted);
	font-weight: 500;
}

.sr-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sr-pill {
	padding: 7px 14px;
	border: 1px solid var(--sr-line);
	border-radius: 9px;
	background: var(--sr-surface);
	color: var(--sr-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.sr-pill[aria-selected="true"],
.sr-pill[aria-current] {
	border-color: var(--sr-accent);
	background: var(--sr-accent);
	color: #fff;
}

.sr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sr-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--sr-line);
	border-radius: 8px;
	background: var(--sr-surface-2);
	font-size: 13px;
	font-weight: 500;
}

.sr-chip:hover,
.sr-chip.is-active {
	border-color: var(--sr-accent);
	color: var(--sr-accent);
}

.sr-chips--dark .sr-chip {
	border-color: rgba(255, 255, 255, .15);
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.sr-chips--sm .sr-chip {
	padding: 4px 9px;
	font-size: 12px;
}

.sr-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 5px;
	background: var(--sr-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.sr-tag--new { background: var(--sr-green); }
.sr-tag--up { background: var(--sr-blue); }
.sr-tag--completed { background: var(--sr-gold); }

.sr-tone-accent { color: var(--sr-accent); }
.sr-tone-blue { color: var(--sr-blue); }
.sr-tone-green { color: var(--sr-green); }
.sr-tone-gold { color: var(--sr-gold); }

.sr-input,
.sr-select,
.sr-app textarea {
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
	background: var(--sr-surface);
}

/* ---------- Header ---------- */

.sr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--sr-line);
	background: color-mix(in srgb, var(--sr-surface) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
}

.admin-bar .sr-header {
	top: 32px;
}

.sr-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--sr-header-h);
}

.sr-logo {
	display: inline-flex;
	min-width: 0;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	font-size: 22px;
	font-weight: 800;
}

.sr-logo__mark {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 10px;
	background: var(--sr-accent);
	color: #fff;
}

.sr-logo__text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sr-logo__img {
	width: auto;
	max-height: 40px;
}

.sr-nav__head,
.sr-header__burger,
.sr-header__search-toggle,
.sr-drawer-backdrop {
	display: none;
}

.sr-nav__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-nav__list > li {
	position: relative;
}

.sr-nav__list a,
.sr-nav__sub-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	height: var(--sr-header-h);
	padding: 0 10px;
	border: 0;
	background: none;
	color: var(--sr-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.sr-nav__list > li > a[aria-current="page"],
.sr-nav__list > .current-menu-item > a {
	color: var(--sr-accent);
	box-shadow: inset 0 -3px 0 var(--sr-accent);
}

.sr-nav__list a:hover,
.sr-nav__sub-toggle:hover {
	color: var(--sr-accent);
}

.sr-nav__sub,
.sr-nav__list .sub-menu {
	position: absolute;
	top: calc(100% - 6px);
	left: 0;
	display: none;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 2px;
	min-width: 320px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--sr-line);
	border-radius: 12px;
	background: var(--sr-surface);
	box-shadow: 0 16px 40px rgba(20, 24, 40, .14);
	list-style: none;
}

.sr-nav__sub a,
.sr-nav__list .sub-menu a {
	height: auto;
	padding: 9px 10px;
	border-radius: 8px;
}

.sr-nav__sub a:hover {
	background: var(--sr-surface-2);
}

.sr-nav__has-sub:hover > .sr-nav__sub,
.sr-nav__has-sub.is-open > .sr-nav__sub,
.menu-item-has-children:hover > .sub-menu {
	display: grid;
}

.sr-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 340px;
	margin-left: auto;
}

.sr-search input {
	width: 100%;
	height: 40px;
	padding: 0 42px 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--sr-surface-2);
	font-size: 14px;
}

.sr-search input:focus {
	border-color: var(--sr-accent);
	outline: none;
	background: var(--sr-surface);
}

.sr-search button {
	position: absolute;
	top: 0;
	right: 4px;
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 0;
	background: none;
	color: var(--sr-muted);
	cursor: pointer;
}

.sr-header__tools {
	display: flex;
	flex-shrink: 0;
	gap: 4px;
}

.sr-when-dark { display: none; }
[data-sr-mode="dark"] .sr-when-dark { display: inline; }
[data-sr-mode="dark"] .sr-when-light { display: none; }

/* ---------- Panels & section heads ---------- */

.sr-panel {
	margin-bottom: 20px;
	padding: 20px;
	border: 1px solid var(--sr-line);
	border-radius: var(--sr-radius);
	background: var(--sr-surface);
	box-shadow: var(--sr-shadow);
}

.sr-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.sr-sec-head__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px !important;
	font-weight: 700;
}

.sr-sec-head__more {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sr-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.sr-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
}

/* ---------- Home: hero ---------- */

.sr-hero {
	position: relative;
	height: clamp(340px, 36vw, 440px);
	overflow: hidden;
	background: #11131a;
	color: #fff;
}

.sr-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}

.sr-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.sr-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.sr-hero__slide::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 11, 16, .92) 0%, rgba(10, 11, 16, .65) 42%, rgba(10, 11, 16, .05) 75%), linear-gradient(0deg, rgba(10, 11, 16, .5), transparent 40%);
	content: "";
}

.sr-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	padding-left: 88px;
	padding-right: 88px;
}

.sr-hero__kicker {
	margin: 0 0 10px;
	color: var(--sr-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sr-hero__title {
	max-width: 620px;
	margin-bottom: 22px !important;
	font-family: var(--sr-display) !important;
	font-size: clamp(30px, 4.4vw, 56px) !important;
	font-weight: 700;
	line-height: 1.08 !important;
}

.sr-hero__desc {
	display: -webkit-box;
	max-width: 520px;
	margin: -8px 0 24px;
	overflow: hidden;
	color: rgba(255, 255, 255, .86);
	font-size: 16px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.sr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sr-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: rgba(15, 17, 23, .45);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}

.sr-hero__arrow--prev { left: 24px; }
.sr-hero__arrow--next { right: 24px; }

.sr-hero__dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	z-index: 2;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.sr-hero__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: width .25s;
}

.sr-hero__dots button.is-active {
	width: 24px;
	background: var(--sr-accent);
}

/* ---------- Home: genres ---------- */

.sr-genres {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.sr-genres__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 6px;
	border: 1px solid var(--sr-line);
	border-radius: 14px;
	background: var(--sr-surface);
	box-shadow: var(--sr-shadow);
	text-align: center;
	transition: transform .15s, border-color .15s;
}

.sr-genres__item:hover {
	border-color: var(--sr-accent);
	transform: translateY(-2px);
}

.sr-genres__icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 12px;
	background: var(--sr-accent-soft);
	color: var(--sr-accent);
	font-size: 22px;
	line-height: 1;
}

.sr-genres__name {
	overflow: hidden;
	max-width: 100%;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ---------- Cards & rows ---------- */

.sr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 20px 16px;
}

.sr-grid--6 {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.sr-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}

.sr-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--sr-radius-sm);
	background: linear-gradient(160deg, #fbd3dc, #c7cbe0);
}

.sr-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.sr-card:hover .sr-card__cover img {
	transform: scale(1.05);
}

.sr-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	padding: 12px;
	color: #6b2a3a;
	font-family: var(--sr-display);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.sr-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 4px !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.sr-card__title a:hover {
	color: var(--sr-accent);
}

.sr-card .sr-tag {
	align-self: flex-start;
}

.sr-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	font-size: 12.5px;
}

.sr-card__meta a {
	color: var(--sr-text);
	font-weight: 500;
}

.sr-rows {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sr-row__rank {
	width: 22px;
	flex-shrink: 0;
	color: var(--sr-muted);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.sr-row__rank.is-top {
	border-radius: 6px;
	background: var(--sr-accent);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
}

.sr-row__cover {
	width: 48px;
	height: 64px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
	background: linear-gradient(160deg, #fbd3dc, #c7cbe0);
}

.sr-row__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-row__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.sr-row__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.sr-row__title:hover {
	color: var(--sr-accent);
}

.sr-row__meta {
	font-size: 12.5px;
}

.sr-continue-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-continue-list a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--sr-surface-2);
}

.sr-continue-list a:hover {
	color: var(--sr-accent);
}

.sr-continue-list small {
	display: block;
	color: var(--sr-muted);
}

/* ---------- Home: CTA ---------- */

.sr-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 8px 0 20px;
	padding: 36px 40px;
	overflow: hidden;
	border-radius: 20px;
	background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--sr-accent) 45%, transparent), transparent 45%), linear-gradient(120deg, #151a33, #2a2150 60%, #3b1f45);
	color: #fff;
}

.sr-cta h2 {
	font-size: clamp(20px, 2.6vw, 28px) !important;
	font-weight: 800;
}

.sr-cta p {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, .8);
}

/* ---------- Breadcrumbs & tabs ---------- */

.sr-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 16px 0;
	color: var(--sr-muted);
	font-size: 13px;
}

.sr-crumbs a:hover {
	color: var(--sr-accent);
}

.sr-crumbs [aria-current] {
	color: var(--sr-text);
	font-weight: 500;
}

.sr-crumbs--light,
.sr-crumbs--light [aria-current] {
	color: rgba(255, 255, 255, .8);
}

/* ---------- Story page ---------- */

.sr-story-hero {
	position: relative;
	overflow: hidden;
	padding-bottom: 32px;
	background: #14161f;
	color: #fff;
}

.sr-story-hero__bg {
	position: absolute;
	inset: -40px;
	width: calc(100% + 80px);
	max-width: none !important;
	height: calc(100% + 80px);
	object-fit: cover;
	opacity: .35;
	filter: blur(28px) saturate(1.2);
}

.sr-story-hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 17, 24, .92), rgba(15, 17, 24, .6));
	content: "";
}

.sr-story-hero .sr-wrap {
	position: relative;
	z-index: 1;
}

.sr-story-hero__grid {
	display: grid;
	grid-template-columns: 228px minmax(0, 1fr);
	gap: 18px 32px;
	align-items: center;
}

/* Desktop: cover spans the info and the buttons row next to it. */
.sr-story-hero__grid > .sr-story-hero__cover {
	grid-row: 1 / span 2;
}

.sr-story-hero__info {
	align-self: end;
}

.sr-story-hero__cover {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	background: linear-gradient(160deg, #fbd3dc, #c7cbe0);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.sr-story-hero__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-story-hero__info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.sr-story-hero__title {
	font-family: var(--sr-display) !important;
	font-size: clamp(28px, 4vw, 46px) !important;
	font-weight: 700;
	line-height: 1.1 !important;
}

.sr-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .88);
	font-size: 15px;
	list-style: none;
}

.sr-stats li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sr-story-hero__byline {
	margin: 0;
	color: rgba(255, 255, 255, .8);
}

.sr-story-hero__actions {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-self: start;
	gap: 12px;
	grid-column: 2;
}

/* Long labels ("Continue: 5 | …") shorten with an ellipsis instead of overflowing. */
.sr-btn {
	min-width: 0;
	max-width: 100%;
}

.sr-btn > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sr-tabs {
	position: sticky;
	top: var(--sr-header-h);
	z-index: 40;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--sr-line);
	background: var(--sr-surface);
}

.admin-bar .sr-tabs {
	top: calc(var(--sr-header-h) + 32px);
}

.sr-tabs .sr-wrap {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sr-tabs a {
	flex-shrink: 0;
	padding: 14px 12px;
	color: var(--sr-muted);
	font-weight: 500;
}

.sr-tabs a.is-active,
.sr-tabs a:hover {
	color: var(--sr-accent);
	box-shadow: inset 0 -3px 0 var(--sr-accent);
}

.sr-columns__main,
.sr-columns__side {
	min-width: 0;
	scroll-margin-top: calc(var(--sr-header-h) + 64px);
}

#sr-related {
	scroll-margin-top: calc(var(--sr-header-h) + 64px);
}

.sr-prose {
	font-size: 16px;
	line-height: 1.75;
}

.sr-prose p {
	margin: 0 0 1em;
}

.sr-collapsible.is-collapsible {
	position: relative;
	max-height: 13em;
	overflow: hidden;
}

.sr-collapsible.is-collapsible:not(.is-expanded)::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4em;
	background: linear-gradient(transparent, var(--sr-surface));
	content: "";
}

.sr-collapsible.is-expanded {
	max-height: none;
}

.sr-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	margin: 0;
}

.sr-details > div {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--sr-line);
	font-size: 14px;
}

.sr-details dt {
	color: var(--sr-muted);
}

.sr-details dd {
	margin: 0;
	font-weight: 500;
}

/* ---------- Chapter lists ---------- */

.sr-chapters {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-chapters li + li {
	border-top: 1px solid var(--sr-line);
}

.sr-chapters a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 10px;
	border-radius: 10px;
}

.sr-chapters a:hover {
	background: var(--sr-surface-2);
}

.sr-chapters a.is-current {
	background: var(--sr-accent-soft);
	color: var(--sr-accent);
}

.sr-chapters a.is-read .sr-chapters__title {
	color: var(--sr-muted);
}

.sr-chapters__no {
	width: 28px;
	flex-shrink: 0;
	color: var(--sr-muted);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.is-current .sr-chapters__no {
	color: var(--sr-accent);
}

.sr-chapters__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.sr-chapters__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sr-chapters__date {
	color: var(--sr-muted);
	font-size: 12px;
}

.sr-chapters.is-clipped:not(.is-expanded) li:nth-child(n+11) {
	display: none;
}

.sr-chapters.is-expanded {
	max-height: 70vh;
	overflow-y: auto;
}

[data-sr-list-search] {
	margin-bottom: 10px;
}

/* ---------- Reader ---------- */

.sr-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 3px;
	pointer-events: none;
}

.sr-progress span {
	display: block;
	height: 100%;
	background: var(--sr-accent);
	transform: scaleX(0);
	transform-origin: left;
}

.sr-read__grid {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}

.sr-read__left,
.sr-read__right {
	position: sticky;
	top: calc(var(--sr-header-h) + 16px);
	max-height: calc(100vh - var(--sr-header-h) - 32px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.sr-read__main {
	min-width: 0;
}

.sr-bookcard__cover {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(160deg, #fbd3dc, #c7cbe0);
}

.sr-bookcard__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-bookcard__title {
	margin-top: 14px !important;
	font-family: var(--sr-display) !important;
	font-size: 20px !important;
}

.sr-bookcard__meta {
	margin: 8px 0 10px;
	font-size: 13px;
}

.sr-sidenav {
	display: grid;
	gap: 2px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.sr-sidenav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 9px;
	color: var(--sr-muted);
	font-weight: 500;
}

.sr-sidenav a:hover,
.sr-sidenav a.is-active {
	background: var(--sr-accent-soft);
	color: var(--sr-accent);
}

.sr-chnav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sr-chnav--top {
	margin-bottom: 16px;
	padding: 10px;
	border: 1px solid var(--sr-line);
	border-radius: 14px;
	background: var(--sr-surface);
	box-shadow: var(--sr-shadow);
}

.sr-chnav--bottom {
	margin-top: 24px;
}

.sr-chnav__pos {
	display: inline-flex;
	min-width: 0;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 14px;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
	background: var(--sr-surface);
	color: var(--sr-text);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

.sr-chnav__pos:hover {
	border-color: var(--sr-accent);
}

/* ---------- Reader: preferences (font face, line spacing, sepia) ---------- */

.sr-read[data-sr-face="sans"] .sr-article__body,
.sr-read[data-sr-face="sans"] .sr-settings__preview {
	font-family: var(--sr-font);
}

.sr-read[data-sr-leading="compact"] .sr-article__body {
	line-height: 1.6;
}

.sr-read[data-sr-leading="relaxed"] .sr-article__body {
	line-height: 2.1;
}

:root[data-sr-mode="light"][data-sr-reading="sepia"] body.sr-is-reading {
	--sr-bg: #efe6d2;
	--sr-surface: #f8f1e1;
	--sr-surface-2: #ede2c8;
	--sr-text: #3f3222;
	--sr-muted: #7a6a55;
	--sr-line: #e2d4b4;
}

/* Mobile-only reader pieces (shown ≤992px). */
.sr-mhero,
.sr-mtools,
.sr-nav__drawer-only {
	display: none;
}

/* Reading settings sheet */

.sr-settings__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sr-line);
}

.sr-settings__label {
	font-weight: 600;
}

.sr-stepper {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
}

.sr-stepper button {
	width: 48px;
	height: 40px;
	border: 0;
	background: var(--sr-surface-2);
	font-weight: 700;
	cursor: pointer;
}

.sr-stepper output {
	min-width: 48px;
	text-align: center;
	font-weight: 600;
}

.sr-seg {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border-radius: 10px;
	background: var(--sr-surface-2);
}

.sr-seg button {
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--sr-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.sr-seg button[aria-pressed="true"] {
	background: var(--sr-surface);
	color: var(--sr-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.sr-seg__serif {
	font-family: var(--sr-reading) !important;
}

.sr-seg--modes .is-light { background: #fff; color: #1b1f2c; }
.sr-seg--modes .is-sepia { background: #f4ecd8; color: #433422; }
.sr-seg--modes .is-dark { background: #17181b; color: #e6e8ee; }

.sr-seg--modes button[aria-pressed="true"] {
	outline: 2px solid var(--sr-accent);
	outline-offset: 1px;
}

.sr-settings__preview {
	margin: 14px 0 0;
	color: var(--sr-text);
	font-family: var(--sr-reading);
	font-size: var(--sr-font-size);
	line-height: 1.7;
}

.sr-chnav .sr-select {
	width: auto;
	min-width: 0;
	max-width: 320px;
	flex: 1 1 auto;
}

.sr-article {
	padding: 28px clamp(18px, 4vw, 44px);
}

.sr-article__title {
	font-family: var(--sr-display) !important;
	font-size: clamp(26px, 3.2vw, 36px) !important;
	font-weight: 700;
}

.sr-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 14px 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--sr-line);
	color: var(--sr-muted);
	font-size: 13px;
}

.sr-article__meta > span,
.sr-article__meta > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sr-article__tools {
	display: inline-flex;
	gap: 4px;
	margin-left: auto;
}

.sr-tool {
	min-width: 36px;
	height: 34px;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--sr-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.sr-tool:hover {
	background: var(--sr-surface-2);
}

.sr-tool--round {
	display: inline-grid;
	width: 34px;
	min-width: 0;
	place-items: center;
	padding: 0;
	border-radius: 50%;
}

:root:not([data-sr-mode="dark"]) [data-sr-mode-set="light"],
[data-sr-mode="dark"] [data-sr-mode-set="dark"] {
	background: var(--sr-accent-soft);
	color: var(--sr-accent);
}

.sr-article__image {
	margin: 0 0 24px;
}

.sr-article__image img {
	width: 100%;
	border-radius: 12px;
}

.sr-article__body {
	max-width: 72ch;
	margin: 0 auto;
	font-family: var(--sr-reading);
	font-size: var(--sr-font-size);
	line-height: 1.85;
	overflow-wrap: break-word;
}

.sr-article__body p {
	margin: 0 0 1.15em;
}

.sr-article__body h2,
.sr-article__body h3 {
	margin: 1.4em 0 .6em;
	font-family: var(--sr-display);
}

.sr-article__body img {
	margin: 1em auto;
	border-radius: 10px;
}

.sr-article__body hr {
	width: 30%;
	margin: 2em auto;
	border: 0;
	border-top: 1px solid var(--sr-line);
}

.sr-article__end {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 28px 0 0;
}

.sr-article__end span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--sr-muted);
}

.sr-article__note {
	margin: 18px 0 0;
	color: var(--sr-muted);
	font-size: 14px;
	text-align: center;
}

.sr-article__note a {
	color: var(--sr-accent);
	font-weight: 600;
}

.sr-video {
	margin: 0 0 24px;
}

.sr-video iframe,
.sr-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
	background: #000;
}

/* ---------- Video: play icon, player facade, modal ---------- */

.sr-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--sr-accent);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .25);
	transform: translate(-50%, -50%);
	transition: transform .2s ease, background-color .2s;
	pointer-events: none;
}

.sr-play svg {
	width: 46%;
	height: 46%;
	margin-left: 8%;
}

.sr-play--sm {
	width: 26px;
	height: 26px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.sr-play--lg {
	width: 76px;
	height: 76px;
}

.sr-play--xs {
	position: static;
	display: inline-grid;
	width: 22px;
	height: 22px;
	box-shadow: none;
	transform: none;
}

.has-video:hover .sr-play,
.sr-player__facade:hover .sr-play {
	background: #fff;
	transform: translate(-50%, -50%) scale(1.1);
}

.has-video::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35));
	content: "";
	pointer-events: none;
}

button.has-video {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.sr-card__cover.has-video,
.sr-story-hero__cover.has-video,
.sr-bookcard__cover.has-video,
.sr-row__cover {
	position: relative;
}

.sr-story-hero__cover.has-video {
	border: 3px solid rgba(255, 255, 255, .12);
}

.sr-card__video-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(10, 11, 16, .72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.sr-app .sr-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.sr-app .sr-player--portrait {
	width: min(100%, calc(78vh * 9 / 16));
	margin: 0 auto;
	aspect-ratio: 9 / 16;
}

.sr-app .sr-player iframe,
.sr-app .sr-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	aspect-ratio: auto;
}

.sr-player__facade {
	position: absolute;
	inset: 0;
	width: 100%;
	padding: 0;
	border: 0;
	background: linear-gradient(160deg, #2a2150, #151a33);
	cursor: pointer;
}

.sr-player__facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .85;
}

.sr-player__source {
	position: absolute;
	bottom: 10px;
	left: 12px;
	padding: 3px 9px;
	border-radius: 6px;
	background: rgba(10, 11, 16, .7);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.sr-btn--video .sr-play {
	background: var(--sr-accent);
	color: #fff;
}

.sr-btn--video .sr-play svg {
	width: 55%;
	height: 55%;
}

.sr-sheet.sr-video-modal {
	width: min(980px, calc(100% - 32px));
	max-height: none;
	padding: 14px;
	background: #0f1117;
	color: #fff;
}

.sr-sheet.sr-video-modal.is-portrait {
	width: min(440px, calc(100% - 24px));
}

.sr-video-modal .sr-sheet__head {
	margin-bottom: 10px;
}

.sr-video-modal .sr-sheet__head h2 {
	overflow: hidden;
	font-size: 15px !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sr-story-video {
	scroll-margin-top: calc(var(--sr-header-h) + 64px);
}

.sr-story-video .sr-player--portrait {
	width: min(100%, 380px);
}

.sr-video-modal .sr-icon-btn {
	color: #fff;
}

.sr-video-modal .sr-icon-btn:hover {
	background: rgba(255, 255, 255, .12);
}

/* ---------- Ad slots ---------- */

.sr-ad {
	max-width: 100%;
	margin: 0 0 20px;
	overflow: hidden;
	text-align: center;
	clear: both;
}

.sr-ad > * {
	margin-right: auto;
	margin-left: auto;
}

.sr-ad iframe,
.sr-ad img,
.sr-ad video {
	display: inline-block;
	max-width: 100%;
}

.sr-ad__label {
	display: block;
	margin-bottom: 4px;
	color: var(--sr-muted);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sr-ad-row {
	padding-top: 16px;
}

.sr-ad-row .sr-ad {
	margin-bottom: 20px;
}

/* Header banner sits flush on the hero; the story tabs already add space. */
.sr-main > .sr-ad-row:first-child .sr-ad {
	margin-bottom: 16px;
}

.sr-tabs + .sr-ad-row {
	padding-top: 0;
}

.sr-hero + .sr-wrap > .sr-ad:first-child {
	margin-top: 20px;
}

/* Inside the chapter card: breathe between paragraphs. */
.sr-article .sr-ad {
	margin: 24px 0;
}

.sr-article__body .sr-ad {
	margin: 1.6em 0;
	font-family: var(--sr-font);
	font-size: 15px;
	line-height: 1.5;
}

/* Sidebar ads keep to the column and the right one follows the reader. */
.sr-columns__side .sr-ad,
.sr-read__right .sr-ad {
	margin-bottom: 20px;
}

.sr-ad--chapter-sidebar-bottom {
	position: sticky;
	top: 0;
}

/* Device targeting (the network script still loads; the slot is just hidden). */
@media (max-width: 768px) {
	.sr-ad--on-desktop {
		display: none !important;
	}
}

@media (min-width: 769px) {
	.sr-ad--on-mobile {
		display: none !important;
	}
}

.sr-toolbar {
	display: flex;
	justify-content: space-around;
	padding: 10px;
}

.sr-chapters--compact a {
	padding: 9px 8px;
}

.sr-chapters--toc {
	max-height: 60vh;
	overflow-y: auto;
}

/* Comments (core comment_form + wp_list_comments) */

.sr-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: start;
	margin-bottom: 20px;
}

.sr-comments .comment-form > p {
	margin: 0;
}

.sr-comments .comment-form-comment,
.sr-comments .comment-notes,
.sr-comments .logged-in-as,
.sr-comments .comment-form-author,
.sr-comments .comment-form-email,
.sr-comments .comment-form-url,
.sr-comments .comment-form-cookies-consent {
	grid-column: 1 / -1;
	font-size: 13px;
}

.sr-comments .form-submit {
	grid-column: 2;
}

.sr-comments input[type="text"],
.sr-comments input[type="email"],
.sr-comments input[type="url"] {
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
	background: var(--sr-surface);
}

.sr-comment-list,
.sr-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-comment-list .children {
	margin-left: 44px;
}

.sr-comment-list .comment-body {
	position: relative;
	padding: 16px 0 16px 54px;
	border-top: 1px solid var(--sr-line);
}

.sr-comment-list .avatar {
	position: absolute;
	top: 16px;
	left: 0;
	border-radius: 50%;
}

.sr-comment-list .comment-author {
	font-weight: 600;
}

.sr-comment-list .says {
	display: none;
}

.sr-comment-list .comment-metadata {
	color: var(--sr-muted);
	font-size: 12px;
}

.sr-comment-list .comment-content p {
	margin: 6px 0;
}

.sr-comment-list .reply a {
	color: var(--sr-muted);
	font-size: 13px;
	font-weight: 600;
}

/* Mobile dock (hidden on desktop) */

.sr-dock {
	display: none;
}

/* ---------- Dialog sheets (library, TOC, report) ---------- */

.sr-sheet {
	width: min(560px, calc(100% - 32px));
	max-height: min(84vh, 760px);
	padding: 20px;
	border: 0;
	border-radius: 18px;
	background: var(--sr-surface);
	color: var(--sr-text);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.sr-sheet::backdrop {
	background: rgba(10, 11, 16, .55);
	backdrop-filter: blur(2px);
}

.sr-sheet form {
	display: grid;
	gap: 10px;
}

.sr-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sr-sheet__head h2 {
	font-size: 18px !important;
}

.sr-sheet__foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.sr-sheet [data-sr-toc-search] {
	margin-bottom: 8px;
}

.sr-library-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-library-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sr-library-list img,
.sr-library-list .sr-library-list__ph {
	width: 44px;
	height: 58px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--sr-surface-2);
	object-fit: cover;
}

.sr-library-list a {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.sr-library-list small {
	display: block;
	color: var(--sr-muted);
	font-weight: 400;
}

/* ---------- Browse ---------- */

.sr-browse__head {
	margin-bottom: 16px;
}

.sr-browse__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--sr-display) !important;
	font-size: clamp(26px, 3vw, 36px) !important;
}

.sr-browse__head p {
	margin: 6px 0 0;
}

.sr-browse__bar {
	margin-bottom: 14px;
}

.sr-browse__genres {
	margin-bottom: 20px;
}

.sr-pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 20px;
	padding: 0;
	list-style: none;
}

.sr-pager a,
.sr-pager span {
	display: grid;
	min-width: 40px;
	height: 40px;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
	background: var(--sr-surface);
	font-weight: 600;
}

.sr-pager .current {
	border-color: var(--sr-accent);
	background: var(--sr-accent);
	color: #fff;
}

.sr-empty-state {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 48px 20px;
	text-align: center;
}

/* ---------- Footer ---------- */

.sr-footer {
	border-top: 1px solid var(--sr-line);
	background: var(--sr-surface);
}

.sr-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.sr-footer__inner p {
	margin: 0;
	font-size: 14px;
}

.sr-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.sr-footer__copy {
	margin-left: auto !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ≤1200: reader drops the left story card (breadcrumb + right column cover it). */
@media (max-width: 1200px) {
	.sr-read__grid {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.sr-read__left {
		display: none;
	}

	.sr-columns {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* ≤992: single column, drawer navigation, mobile reading dock. */
@media (max-width: 992px) {
	.sr-header__bar {
		gap: 8px;
	}

	.sr-header__burger {
		display: inline-grid;
		margin-left: -8px;
	}

	.sr-nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 200;
		width: min(320px, 86vw);
		padding: 16px;
		overflow-y: auto;
		background: var(--sr-surface);
		box-shadow: 20px 0 60px rgba(0, 0, 0, .2);
		transform: translateX(-105%);
		transition: transform .25s ease;
	}

	.sr-nav.is-open {
		transform: none;
	}

	.sr-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
		font-size: 20px;
		font-weight: 800;
	}

	.sr-drawer-backdrop.is-open {
		position: fixed;
		inset: 0;
		z-index: 150;
		display: block;
		background: rgba(10, 11, 16, .45);
	}

	.sr-nav__list {
		flex-direction: column;
	}

	.sr-nav__list a,
	.sr-nav__sub-toggle {
		width: 100%;
		height: 48px;
		border-radius: 10px;
		font-size: 16px;
	}

	.sr-nav__list > li > a[aria-current="page"] {
		background: var(--sr-accent-soft);
		box-shadow: none;
	}

	.sr-nav__sub,
	.sr-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 8px 12px;
		border: 0;
		box-shadow: none;
	}

	.sr-nav__has-sub:hover > .sr-nav__sub {
		display: none;
	}

	.sr-nav__has-sub.is-open > .sr-nav__sub {
		display: grid;
	}

	.sr-search {
		max-width: none;
	}

	.sr-columns,
	.sr-read__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sr-read__right {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.sr-toolbar {
		display: none;
	}

	/* Header as in the mobile design: logo · search · mode · menu (right). */
	.sr-logo {
		order: 1;
	}

	.sr-header__tools {
		order: 2;
		margin-left: auto;
	}

	.sr-header__burger {
		order: 3;
		margin-right: -8px;
		margin-left: 0;
	}

	.sr-nav__drawer-only {
		display: flex;
		margin-top: 8px;
		padding-top: 8px;
		border-top: 1px solid var(--sr-line);
	}

	/* ---------- Reader (phones & tablets) ---------- */

	.sr-read > .sr-crumbs {
		display: none;
	}

	.sr-mhero {
		position: relative;
		display: block;
		margin: 0 calc(-1 * var(--sr-gutter));
		padding: 12px var(--sr-gutter) 34px;
		overflow: hidden;
		background: #14161f;
		color: #fff;
	}

	.sr-mhero__bg {
		position: absolute;
		inset: -30px;
		width: calc(100% + 60px);
		max-width: none !important;
		height: calc(100% + 60px);
		object-fit: cover;
		opacity: .4;
		filter: blur(22px) saturate(1.2);
	}

	.sr-mhero::after {
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(15, 17, 24, .9), rgba(15, 17, 24, .55));
		content: "";
	}

	.sr-mhero > :not(.sr-mhero__bg) {
		position: relative;
		z-index: 1;
	}

	.sr-mhero__crumbs {
		display: flex;
		min-width: 0;
		align-items: center;
		gap: 6px;
		margin-bottom: 12px;
		color: rgba(255, 255, 255, .75);
		font-size: 12.5px;
		white-space: nowrap;
	}

	.sr-mhero__crumbs a:nth-of-type(2) {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sr-mhero__crumbs [aria-current] {
		flex-shrink: 0;
		color: #fff;
		font-weight: 600;
	}

	.sr-mhero__grid {
		display: grid;
		grid-template-columns: 86px minmax(0, 1fr);
		gap: 14px;
		align-items: center;
	}

	.sr-mhero__cover {
		position: relative;
		display: block;
		width: 86px;
		aspect-ratio: 3 / 4;
		overflow: hidden;
		padding: 0;
		border: 2px solid rgba(255, 255, 255, .2);
		border-radius: 10px;
		background: linear-gradient(160deg, #fbd3dc, #c7cbe0);
		box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
	}

	.sr-mhero__cover img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.sr-mhero__info {
		display: flex;
		min-width: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.sr-mhero__title {
		display: -webkit-box;
		overflow: hidden;
		color: #fff !important;
		font-family: var(--sr-display);
		font-size: 21px;
		font-weight: 700;
		line-height: 1.15;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.sr-mhero__meta {
		display: inline-flex;
		align-items: center;
		gap: 5px;
		color: rgba(255, 255, 255, .85);
		font-size: 13px;
	}

	.sr-mhero__chips {
		display: flex;
		max-width: 100%;
		gap: 6px;
		overflow: hidden;
	}

	.sr-mhero__chips .sr-chip {
		flex-shrink: 0;
		padding: 3px 10px;
		border-color: rgba(255, 255, 255, .15);
		background: rgba(255, 255, 255, .12);
		color: #fff;
		font-size: 12px;
	}

	/* The reading column becomes a sheet overlapping the story header. */
	.sr-mhero + .sr-read__grid .sr-read__main {
		position: relative;
		z-index: 2;
		margin: -18px calc(-1 * var(--sr-gutter)) 0;
		padding: 14px var(--sr-gutter) 0;
		border-radius: 18px 18px 0 0;
		background: var(--sr-surface);
	}

	.sr-read .sr-article {
		margin: 0 0 20px;
		padding: 16px 0 8px;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	.sr-read .sr-chnav--top {
		display: grid;
		grid-template-columns: 1fr minmax(0, 1.35fr) 1fr;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
	}

	.sr-read .sr-chnav--top .sr-btn {
		min-width: 0;
		padding: 0 8px;
	}

	.sr-read .sr-chnav--top .sr-chnav__pos {
		padding: 0 8px;
	}

	.sr-mtools {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin-top: 12px;
		padding: 4px 0 10px;
		border-bottom: 1px solid var(--sr-line);
	}

	.sr-mtools button {
		display: flex;
		min-width: 0;
		min-height: 56px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 4px 2px;
		border: 0;
		background: none;
		color: var(--sr-text);
		font-size: 12.5px;
		line-height: 1.2;
		text-align: center;
		cursor: pointer;
	}

	.sr-mtools button + button {
		border-left: 1px solid var(--sr-line);
	}

	.sr-mtools button > span:last-child {
		overflow: hidden;
		max-width: 100%;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.sr-mtools__icon {
		font-family: var(--sr-reading);
		font-size: 21px;
		font-weight: 700;
		line-height: 22px;
	}

	.sr-mtools button[aria-pressed="true"] {
		color: var(--sr-accent);
	}

	.sr-mtools [data-mode="dark"] .sr-i,
	.sr-mtools [data-mode="sepia"] .sr-i {
		color: var(--sr-accent);
	}

	.sr-article__tools {
		display: none !important;
	}

	/* Bottom bar: Previous · Next chapter · chapter list (as in the design). */
	.sr-dock {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 48px;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--sr-line);
		background: color-mix(in srgb, var(--sr-surface) 95%, transparent);
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
		backdrop-filter: blur(10px);
		transition: transform .25s ease;
	}

	.sr-dock.is-hidden {
		transform: translateY(110%);
	}

	.sr-dock > * {
		display: inline-flex;
		min-width: 0;
		height: 46px;
		align-items: center;
		justify-content: center;
		gap: 6px;
		padding: 0 10px;
		border: 0;
		border-radius: 12px;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
		cursor: pointer;
	}

	.sr-dock > * > span {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sr-dock__prev,
	.sr-dock__list,
	.sr-dock__next.is-soft {
		background: var(--sr-surface-2);
		color: var(--sr-text) !important;
	}

	.sr-dock__next {
		background: var(--sr-accent);
		color: #fff !important;
		box-shadow: 0 6px 16px color-mix(in srgb, var(--sr-accent) 30%, transparent);
	}

	.sr-dock__next.is-soft {
		box-shadow: none;
	}

	.sr-dock__list {
		padding: 0;
	}

	.sr-dock .is-disabled {
		opacity: .45;
	}

	body.sr-is-reading .sr-footer {
		padding-bottom: 80px;
	}
}

/* ≤768: compact header, hero and story header. */
@media (max-width: 768px) {
	:root {
		--sr-header-h: 58px;
	}

	:root {
		--sr-gutter: 16px;
	}

	/* Library lives in the drawer menu on phones (as in the mobile design). */
	.sr-header__tools [data-sr-library-open] {
		display: none;
	}

	.sr-logo {
		flex-shrink: 1;
		font-size: 18px;
	}

	.sr-header__tools {
		gap: 0;
	}

	.sr-logo__mark {
		width: 32px;
		height: 32px;
	}

	.sr-search {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-width: none;
		padding: 10px 16px;
		border-bottom: 1px solid var(--sr-line);
		background: var(--sr-surface);
	}

	.sr-header.is-search-open .sr-search {
		display: block;
	}

	.sr-search button {
		top: 10px;
		right: 20px;
	}

	.sr-header__search-toggle {
		display: inline-grid;
	}

	.sr-header__tools {
		margin-left: auto;
	}

	.sr-hero {
		height: 400px;
	}

	.sr-hero__slide::after {
		background: linear-gradient(0deg, rgba(10, 11, 16, .95) 5%, rgba(10, 11, 16, .55) 55%, rgba(10, 11, 16, .15));
	}

	.sr-hero__content {
		justify-content: flex-end;
		padding-bottom: 52px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.sr-hero__title {
		margin-bottom: 16px !important;
	}

	.sr-hero__desc {
		margin: -6px 0 18px;
		font-size: 14px;
		-webkit-line-clamp: 2;
	}

	.sr-hero__arrow {
		display: none;
	}

	.sr-genres {
		display: flex;
		margin: 16px -16px;
		padding: 2px 16px 6px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.sr-genres__item {
		width: 84px;
		flex-shrink: 0;
		scroll-snap-align: start;
	}

	.sr-panel {
		padding: 16px;
		border-radius: 14px;
	}

	.sr-sec-head__title {
		font-size: 18px !important;
	}

	.sr-cta {
		padding: 26px 22px;
	}

	.sr-story-hero__grid {
		grid-template-columns: 124px minmax(0, 1fr);
		gap: 18px;
		align-items: start;
	}

	.sr-story-hero__info {
		gap: 10px;
	}

	.sr-stats {
		gap: 4px 14px;
		font-size: 13px;
	}

	.sr-story-hero__actions {
		grid-column: 1 / -1;
	}

	.sr-story-hero__grid > .sr-story-hero__cover {
		grid-row: auto;
		align-self: start;
	}

	.sr-story-hero__info {
		align-self: start;
	}

	.sr-story-hero__title {
		display: -webkit-box;
		overflow: hidden;
		font-size: clamp(22px, 6.2vw, 30px) !important;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
	}

	.sr-story-hero .sr-crumbs {
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.sr-story-hero .sr-crumbs [aria-current] {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sr-details {
		grid-template-columns: 1fr;
	}

	.sr-details > div {
		grid-template-columns: 120px 1fr;
	}

	.sr-article__meta {
		gap: 8px 14px;
	}

	.sr-article__tools {
		width: 100%;
		justify-content: flex-end;
		margin-left: 0;
	}

	.sr-chnav--bottom {
		flex-wrap: wrap;
	}

	.sr-chnav--bottom .sr-select {
		order: -1;
		max-width: none;
		flex-basis: 100%;
	}

	.sr-chnav--bottom .sr-btn {
		flex: 1;
	}

	.sr-sheet {
		width: 100%;
		max-width: none;
		max-height: 88vh;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
	}

	/* Videos stay centered instead of becoming a bottom sheet. */
	.sr-sheet.sr-video-modal {
		width: calc(100% - 16px);
		margin: auto;
		padding: 10px;
		border-radius: 16px;
	}

	.sr-play--lg {
		width: 58px;
		height: 58px;
	}

	.sr-footer__copy {
		margin-left: 0 !important;
	}
}

/* ≤560: phone grids. */
@media (max-width: 560px) {
	.sr-grid,
	.sr-grid--6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.sr-hero {
		height: 380px;
	}

	.sr-hero__actions .sr-btn {
		flex: 1;
	}

	.sr-story-hero__grid {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	.sr-story-hero__actions .sr-btn {
		flex: 1 1 100%;
	}

	.sr-story-hero .sr-chips {
		display: none;
	}

	.sr-article {
		padding: 22px 16px;
		border-radius: 0;
		margin-left: -16px;
		margin-right: -16px;
		border-left: 0;
		border-right: 0;
	}

	.sr-chnav--top {
		padding: 8px;
	}
}

@media (min-width: 993px) {
	.sr-header .sr-nav {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sr-app *,
	.sr-app *::before,
	.sr-app *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* WP admin bar: 46px tall below 782px and no longer fixed below 600px. */
@media (max-width: 782px) {
	.admin-bar .sr-header { top: 46px; }
	.admin-bar .sr-tabs { top: calc(var(--sr-header-h) + 46px); }
}

@media (max-width: 600px) {
	.admin-bar .sr-header { top: 0; }
	.admin-bar .sr-tabs { top: var(--sr-header-h); }
}
