/*
	My Reading Mangaa.

	Midnight indigo ground with a sunset gradient — amber into rose into violet —
	carrying the accents. Covers are the loud thing: they sit on the gradient,
	lift under the pointer and move, both in the hero strip and in the scrolling
	rows. Written against this palette rather than recoloured out of another.

	 1. Tokens
	 2. Reset and base
	 3. Layout
	 4. Header
	 5. Buttons, pills, tags
	 6. Panels
	 7. Hero strip
	 8. Card rows and grids
	 9. Cards
	10. Update list
	11. Rank board
	12. Series page
	13. Reader
	14. Comments and forms
	15. Intro prose
	16. Pagination
	17. Footer
	18. Utilities
	19. Responsive
*/

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	--mrma-bg: #0c0e1b;
	--mrma-bg-2: #11142552;
	--mrma-panel: #151932;
	--mrma-panel-2: #1b2040;
	--mrma-sunk: #0a0c17;

	--mrma-text: #eef0f8;
	--mrma-muted: #9aa0bd;
	--mrma-faint: #6d7396;

	--mrma-line: rgba(255, 255, 255, .09);
	--mrma-line-soft: rgba(255, 255, 255, .05);

	/* Sunset: amber → rose → violet. Nothing on the other sites runs warm, so
	   this is the identity — it carries every accent on the page. */
	--mrma-grad: linear-gradient(118deg, #ffa23d 0%, #ff3d77 52%, #a855f7 100%);
	--mrma-grad-soft: linear-gradient(118deg, rgba(255, 162, 61, .16) 0%, rgba(255, 61, 119, .16) 52%, rgba(168, 85, 247, .16) 100%);

	--mrma-accent: #ff3d77;
	--mrma-accent-hi: #ffa23d;
	--mrma-violet: #a855f7;
	--mrma-gold: #ffc23d;

	--mrma-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--mrma-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--mrma-container: 1240px;
	--mrma-gap: 16px;
	--mrma-radius: 10px;
	--mrma-radius-lg: 16px;
	--mrma-shadow: 0 10px 28px rgba(0, 0, 0, .45);
	--mrma-shadow-lift: 0 18px 40px rgba(255, 61, 119, .28);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

body {
	margin: 0;
	background:
		radial-gradient(1100px 520px at 12% -8%, rgba(255, 162, 61, .10), transparent 60%),
		radial-gradient(900px 480px at 88% 2%, rgba(168, 85, 247, .12), transparent 62%),
		var(--mrma-bg);
	background-attachment: fixed;
	color: var(--mrma-text);
	font-family: var(--mrma-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4 {
	font-family: var(--mrma-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}

button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	color: inherit;
}

select,
input,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--mrma-accent-hi);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.mrma-container {
	width: 100%;
	max-width: var(--mrma-container);
	margin: 0 auto;
	padding: 0 20px;
}

.mrma-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.mrma-main {
	flex: 1;
}

.mrma-home,
.mrma-archive {
	display: block;
	padding: 30px 0 60px;
}

.mrma-stack > * + * {
	margin-top: 40px;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.mrma-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(12, 14, 27, .86);
	backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--mrma-line);
}

/* The gradient reappears as a hairline under the bar, which ties the header to
   the accents without painting the whole thing. */
.mrma-header::after {
	content: '';
	position: absolute;
	inset: auto 0 -1px;
	height: 2px;
	background: var(--mrma-grad);
	opacity: .85;
}

.mrma-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 68px;
}

.mrma-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mrma-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.mrma-logo__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--mrma-grad);
	color: #fff;
	font-size: 17px;
	box-shadow: 0 6px 18px rgba(255, 61, 119, .38);
}

.mrma-nav {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-right: auto;
	list-style: none;
	padding: 0;
}

.mrma-nav a {
	display: block;
	padding: 8px 13px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--mrma-muted);
	transition: color .18s ease, background .18s ease;
}

.mrma-nav a:hover,
.mrma-nav .current-menu-item > a {
	color: var(--mrma-text);
	background: rgba(255, 255, 255, .07);
}

.mrma-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mrma-search {
	position: relative;
	display: flex;
	align-items: center;
}

.mrma-search__field {
	width: 236px;
	padding: 9px 12px 9px 34px;
	border: 1px solid var(--mrma-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	color: var(--mrma-text);
	font-size: 14px;
}

.mrma-search__field::placeholder {
	color: var(--mrma-faint);
}

.mrma-search__field:focus {
	outline: none;
	border-color: rgba(255, 61, 119, .6);
	box-shadow: 0 0 0 3px rgba(255, 61, 119, .16);
}

.mrma-search__icon {
	position: absolute;
	left: 13px;
	color: var(--mrma-faint);
	font-size: 13px;
	pointer-events: none;
}

.mrma-search__hint {
	position: absolute;
	right: 9px;
	padding: 2px 7px;
	border: 1px solid var(--mrma-line);
	border-radius: 5px;
	font-size: 11px;
	color: var(--mrma-faint);
	pointer-events: none;
}

.mrma-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--mrma-line);
	background: rgba(255, 255, 255, .05);
}

/* --------------------------------------------------------------------------
   5. Buttons, pills, tags
   -------------------------------------------------------------------------- */

.mrma-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mrma-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 22px rgba(255, 61, 119, .3);
	transition: transform .18s ease, box-shadow .18s ease;
}

.mrma-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(255, 61, 119, .42);
	color: #fff;
}

.mrma-btn--ghost {
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--mrma-line);
	box-shadow: none;
}

.mrma-btn--ghost:hover {
	background: rgba(255, 255, 255, .1);
	box-shadow: none;
}

.mrma-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mrma-grad);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(255, 61, 119, .26);
	transition: transform .18s ease;
}

.mrma-pill:hover {
	transform: translateY(-2px);
	color: #fff;
}

.mrma-pill--ghost,
.mrma-pill--amber {
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--mrma-line);
	color: var(--mrma-muted);
	box-shadow: none;
}

.mrma-pill--ghost:hover,
.mrma-pill--amber:hover {
	color: var(--mrma-text);
	border-color: rgba(255, 61, 119, .5);
}

.mrma-tag {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	background: var(--mrma-grad-soft);
	border: 1px solid rgba(255, 61, 119, .25);
	color: var(--mrma-accent-hi);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   6. Panels
   -------------------------------------------------------------------------- */

.mrma-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, transparent 140px), var(--mrma-panel);
	border: 1px solid var(--mrma-line);
	border-radius: var(--mrma-radius-lg);
	padding: 22px;
	box-shadow: var(--mrma-shadow);
}

.mrma-panel__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.mrma-panel__title {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 22px;
	font-weight: 700;
}

.mrma-panel__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--mrma-grad-soft);
	border: 1px solid rgba(255, 61, 119, .24);
	color: var(--mrma-accent-hi);
	font-size: 14px;
}

.mrma-panel__action {
	margin-left: auto;
}

.mrma-empty {
	padding: 40px 0;
	color: var(--mrma-muted);
	text-align: center;
}

/* --------------------------------------------------------------------------
   7. Hero strip
   -------------------------------------------------------------------------- */

.mrma-hero {
	position: relative;
	overflow: hidden;
	padding: 26px 0 30px;
	border-bottom: 1px solid var(--mrma-line);
}

/* The active cover, blown up and blurred, so the page takes its colour from
   whatever is in focus. */
.mrma-hero__glow {
	position: absolute;
	inset: -20% -10%;
	background-size: cover;
	background-position: center;
	filter: blur(46px) saturate(140%);
	opacity: .34;
	transition: background-image .5s ease;
}

.mrma-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 14, 27, .55) 0%, rgba(12, 14, 27, .9) 100%);
}

.mrma-hero > .mrma-container {
	position: relative;
	z-index: 2;
}

.mrma-hero__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 16px 0 20px;
}

.mrma-hero__track::-webkit-scrollbar {
	display: none;
}

.mrma-hero__item {
	position: relative;
	flex: 0 0 152px;
	aspect-ratio: 5 / 7;
	border-radius: 12px;
	overflow: hidden;
	opacity: .52;
	transform: scale(.9);
	transition: transform .4s cubic-bezier(.2, .7, .3, 1), opacity .4s ease, box-shadow .4s ease;
}

.mrma-hero__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mrma-hero__item.is-active {
	opacity: 1;
	transform: scale(1.12);
	box-shadow: 0 20px 44px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 61, 119, .75);
	z-index: 3;
}

.mrma-hero__item:hover {
	opacity: 1;
}

.mrma-hero__score {
	position: absolute;
	top: 8px;
	left: 8px;
	display: none;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--mrma-grad);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.mrma-hero__caption {
	position: absolute;
	inset: auto 0 0;
	display: none;
	padding: 22px 10px 9px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .92));
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.mrma-hero__item.is-active .mrma-hero__score,
.mrma-hero__item.is-active .mrma-hero__caption {
	display: flex;
}

/* --------------------------------------------------------------------------
   8. Card rows and grids
   -------------------------------------------------------------------------- */

.mrma-row {
	position: relative;
}

.mrma-row__track {
	display: flex;
	gap: var(--mrma-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 6px;
}

.mrma-row__track::-webkit-scrollbar {
	display: none;
}

.mrma-row__track > * {
	flex: 0 0 172px;
	scroll-snap-align: start;
}

.mrma-row__nav {
	position: absolute;
	top: 30%;
	right: -14px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mrma-panel-2);
	border: 1px solid var(--mrma-line);
	color: #fff;
	box-shadow: var(--mrma-shadow);
	transition: background .2s ease, transform .2s ease;
}

.mrma-row__nav--prev {
	left: -14px;
	right: auto;
}

.mrma-row__nav:hover {
	background: var(--mrma-grad);
	transform: scale(1.08);
}

.mrma-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 26px var(--mrma-gap);
}

.mrma-grid--lead {
	grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.mrma-card {
	min-width: 0;
}

.mrma-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 5 / 7;
	border-radius: var(--mrma-radius);
	overflow: hidden;
	background: var(--mrma-sunk);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}

.mrma-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* The whole cover lifts and the gradient closes around it as a ring, so the
   card reads as one object being picked up. */
.mrma-card:hover .mrma-card__cover {
	transform: translateY(-7px);
	box-shadow: var(--mrma-shadow-lift), 0 0 0 2px rgba(255, 61, 119, .7);
}

.mrma-card:hover .mrma-card__cover img {
	transform: scale(1.07);
}

.mrma-card__type {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 9px;
	border-radius: 6px;
	background: var(--mrma-grad);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.mrma-card__title {
	display: block;
	margin: 11px 0 3px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .18s ease;
}

.mrma-card:hover .mrma-card__title {
	color: var(--mrma-accent-hi);
}

.mrma-card__chapter {
	display: block;
	font-size: 13px;
	color: var(--mrma-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mrma-card__chapter:hover {
	color: var(--mrma-accent);
}

.mrma-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-top: 5px;
	color: var(--mrma-gold);
	font-size: 11px;
}

.mrma-stars b {
	margin-left: 4px;
	color: var(--mrma-muted);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Update list
   -------------------------------------------------------------------------- */

.mrma-updates {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mrma-updates__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: var(--mrma-radius);
	border: 1px solid transparent;
	transition: background .2s ease, border-color .2s ease;
}

.mrma-updates__item:hover {
	background: rgba(255, 255, 255, .04);
	border-color: var(--mrma-line);
}

.mrma-updates__cover {
	flex: 0 0 48px;
	width: 48px;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	border-radius: 7px;
	background: var(--mrma-sunk);
}

.mrma-updates__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mrma-updates__body {
	min-width: 0;
	flex: 1;
}

.mrma-updates__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mrma-updates__title:hover {
	color: var(--mrma-accent-hi);
}

.mrma-updates__chapters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.mrma-updates__chapter {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--mrma-line);
	font-size: 12px;
	color: var(--mrma-muted);
	transition: all .18s ease;
}

.mrma-updates__chapter:hover {
	background: var(--mrma-grad);
	border-color: transparent;
	color: #fff;
}

.mrma-updates__time {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--mrma-faint);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. Rank board
   -------------------------------------------------------------------------- */

.mrma-tabs {
	display: inline-flex;
	gap: 3px;
	margin-left: auto;
	padding: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
}

.mrma-tabs button {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mrma-muted);
	transition: all .18s ease;
}

.mrma-tabs button.is-active {
	background: var(--mrma-grad);
	color: #fff;
	box-shadow: 0 4px 14px rgba(255, 61, 119, .32);
}

.mrma-rank {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2px 22px;
}

.mrma-rank:not(.is-active) {
	display: none;
}

.mrma-rank__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: var(--mrma-radius);
	transition: background .2s ease;
}

.mrma-rank__item:hover {
	background: rgba(255, 255, 255, .04);
}

.mrma-rank__num {
	flex: 0 0 auto;
	width: 26px;
	font-family: var(--mrma-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--mrma-faint);
	text-align: center;
}

/* Top three get the gradient, so the podium reads at a glance. */
.mrma-rank__item:nth-child(-n+3) .mrma-rank__num {
	background: var(--mrma-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mrma-rank__cover {
	flex: 0 0 42px;
	width: 42px;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	border-radius: 6px;
}

.mrma-rank__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mrma-rank__body {
	min-width: 0;
}

.mrma-rank__title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mrma-rank__title:hover {
	color: var(--mrma-accent-hi);
}

.mrma-rank__genres {
	display: block;
	font-size: 12px;
	color: var(--mrma-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mrma-rank__genres b {
	font-weight: 500;
	color: var(--mrma-muted);
}

/* --------------------------------------------------------------------------
   12. Series page
   -------------------------------------------------------------------------- */

.mrma-series {
	position: relative;
	overflow: hidden;
	padding: 34px 0 28px;
	margin-bottom: 30px;
	border-radius: var(--mrma-radius-lg);
	border: 1px solid var(--mrma-line);
}

.mrma-series__backdrop {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 22%;
	filter: blur(38px) saturate(135%);
	opacity: .3;
}

.mrma-series::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 14, 27, .6), rgba(12, 14, 27, .94));
}

.mrma-series__inner {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 0 24px;
}

.mrma-series__cover {
	flex: 0 0 210px;
	width: 210px;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	border-radius: var(--mrma-radius);
	box-shadow: var(--mrma-shadow), 0 0 0 2px rgba(255, 61, 119, .4);
}

.mrma-series__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mrma-series__info {
	flex: 1;
	min-width: 0;
}

.mrma-series__info h1 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
}

.mrma-series__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px 20px;
	margin: 20px 0;
	padding: 18px 0;
	border-top: 1px solid var(--mrma-line);
	border-bottom: 1px solid var(--mrma-line);
}

.mrma-fact b,
.mrma-fact strong {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--mrma-faint);
	margin-bottom: 3px;
}

.mrma-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.mrma-summary {
	max-width: 76ch;
	color: var(--mrma-muted);
}

.mrma-summary p {
	margin: 0 0 1em;
}

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

.mrma-chapters__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border-radius: var(--mrma-radius);
	border: 1px solid transparent;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.mrma-chapters__link:hover {
	background: rgba(255, 255, 255, .05);
	border-color: var(--mrma-line);
	transform: translateX(4px);
	color: var(--mrma-accent-hi);
}

.mrma-chapters__date {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--mrma-faint);
}

/* --------------------------------------------------------------------------
   13. Reader
   -------------------------------------------------------------------------- */

.mrma-reader__bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 18px;
	margin: 16px 0;
	border-radius: var(--mrma-radius-lg);
	background: var(--mrma-panel);
	border: 1px solid var(--mrma-line);
}

.mrma-reader__title {
	flex: 1;
	min-width: 160px;
	font-size: 19px;
	font-weight: 700;
}

.mrma-reader__title small {
	display: block;
	font-family: var(--mrma-body);
	font-size: 13px;
	font-weight: 400;
	color: var(--mrma-muted);
	margin-top: 3px;
}

.mrma-reader__select {
	padding: 9px 13px;
	border: 1px solid var(--mrma-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	font-size: 14px;
	max-width: 260px;
}

.mrma-reader__pages {
	background: #07080f;
	border-radius: var(--mrma-radius-lg);
	overflow: hidden;
}

.mrma-reader__pages img {
	display: block;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
}

.mrma-reader__empty {
	padding: 46px 16px;
	text-align: center;
	color: var(--mrma-faint);
}

/* --------------------------------------------------------------------------
   14. Comments and forms
   -------------------------------------------------------------------------- */

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

.comment-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--mrma-line-soft);
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--mrma-line);
	border-radius: var(--mrma-radius);
	background: rgba(255, 255, 255, .05);
	margin-bottom: 10px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: rgba(255, 61, 119, .6);
}

.comment-form .submit {
	width: auto;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--mrma-grad);
	color: #fff;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. Intro prose
   -------------------------------------------------------------------------- */

.mrma-intro {
	margin-top: 46px;
	padding: 28px;
	border-radius: var(--mrma-radius-lg);
	background: var(--mrma-panel);
	border: 1px solid var(--mrma-line);
	max-width: 100%;
	color: var(--mrma-muted);
}

.mrma-intro h2 {
	font-size: 26px;
	color: var(--mrma-text);
	margin-bottom: 10px;
}

.mrma-intro h3 {
	font-size: 18px;
	color: var(--mrma-text);
	margin: 26px 0 6px;
}

.mrma-intro p {
	margin: 0 0 1em;
	max-width: 80ch;
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */

.mrma-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 28px;
}

.mrma-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--mrma-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .04);
	font-size: 14px;
	color: var(--mrma-muted);
	transition: all .18s ease;
}

.mrma-pagination .page-numbers:hover {
	border-color: rgba(255, 61, 119, .5);
	color: var(--mrma-text);
}

.mrma-pagination .page-numbers.current {
	background: var(--mrma-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 16px rgba(255, 61, 119, .3);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.mrma-footer {
	position: relative;
	margin-top: 60px;
	padding: 40px 0 30px;
	background: var(--mrma-panel);
	border-top: 1px solid var(--mrma-line);
}

.mrma-footer::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: var(--mrma-grad);
}

.mrma-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.mrma-footer__tagline {
	max-width: 46ch;
	font-size: 14px;
	color: var(--mrma-muted);
	margin-top: 10px;
}

.mrma-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-left: auto;
	list-style: none;
	padding: 0;
	font-size: 14px;
	color: var(--mrma-muted);
}

.mrma-footer__legal {
	width: 100%;
	padding-top: 20px;
	margin-top: 6px;
	border-top: 1px solid var(--mrma-line-soft);
	font-size: 13px;
	color: var(--mrma-faint);
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */

.mrma-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mrma-grad);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	box-shadow: 0 10px 26px rgba(255, 61, 119, .4);
	transition: opacity .22s ease, transform .22s ease;
}

.mrma-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.mrma-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.mrma-nav,
	.mrma-search__hint {
		display: none;
	}

	.mrma-nav-toggle {
		display: grid;
		place-items: center;
		margin-left: auto;
	}

	.mrma-header.is-open .mrma-nav {
		position: absolute;
		inset: 68px 0 auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 20px 16px;
		background: var(--mrma-panel);
		border-bottom: 1px solid var(--mrma-line);
	}

	.mrma-series__inner {
		flex-direction: column;
		padding: 0 18px;
	}

	.mrma-series__cover {
		flex: 0 0 auto;
		width: 164px;
	}

	.mrma-series__info h1 {
		font-size: 28px;
	}

	.mrma-row__nav {
		display: none;
	}
}

@media (max-width: 640px) {
	.mrma-container {
		padding: 0 14px;
	}

	.mrma-panel {
		padding: 16px;
	}

	.mrma-grid,
	.mrma-grid--lead {
		grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
		gap: 20px 12px;
	}

	.mrma-row__track > * {
		flex: 0 0 132px;
	}

	.mrma-hero__item {
		flex: 0 0 118px;
	}

	.mrma-panel__title {
		font-size: 19px;
	}

	.mrma-search__field {
		width: 100%;
	}

	.mrma-updates__time {
		display: none;
	}

	.mrma-rank {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mrma-hero__item,
	.mrma-card__cover,
	.mrma-card__cover img,
	.mrma-chapters__link,
	.mrma-btn,
	.mrma-pill,
	.mrma-to-top {
		transition: none;
	}

	.mrma-hero__track,
	.mrma-row__track {
		scroll-behavior: auto;
	}
}
