/**
 * MangaReader - Main Theme Stylesheet
 */

:root {
	--font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	
	/* Dark Theme Palette (Default) */
	--bg-body: #090d16;
	--bg-surface: #111827;
	--bg-card: #151e32;
	--bg-card-hover: #1b2640;
	--bg-header: rgba(9, 13, 22, 0.92);
	--bg-input: #1b2640;
	
	--border-color: #243049;
	--border-light: #2d3b59;
	
	--text-main: #f8fafc;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	
	--accent-primary: #10b981;
	--accent-primary-hover: #059669;
	--accent-secondary: #6366f1;
	--accent-danger: #ef4444;
	--accent-warning: #f59e0b;
	
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-full: 9999px;
	
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
	--shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);

	--header-height: 64px;
	--container-width: 1240px;
}

/* Light Mode Overrides (Warm, modern, eye-comfortable palette) */
html.light-mode {
	--bg-body: #f1f3f7;
	--bg-surface: #ffffff;
	--bg-card: #ffffff;
	--bg-card-hover: #f8fafc;
	--bg-header: rgba(255, 255, 255, 0.94);
	--bg-input: #eef2f6;
	
	--border-color: #e2e8f0;
	--border-light: #edf2f7;
	
	--text-main: #1e293b;
	--text-secondary: #475569;
	--text-muted: #64748b;
	
	--accent-primary: #059669;
	--accent-primary-hover: #047857;
	--accent-secondary: #4f46e5;
	
	--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
	--shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
	--shadow-glow: 0 0 15px rgba(5, 150, 105, 0.15);
}

/* Base Resets */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

svg {
	display: block;
	flex-shrink: 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	display: none;
}

/* Accessible screen-reader & SEO heading utility */
.mr-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html {
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.6;
	background-color: var(--bg-body);
	color: var(--text-main);
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
	overflow-x: clip;
	max-width: 100%;
}

body {
	background-color: var(--bg-body);
	color: var(--text-main);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	max-width: 100%;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

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

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

.mr-container {
	width: 100%;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.mr-site-main {
	flex: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.mr-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: var(--bg-header);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mr-header-inner {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 20px;
}

.mr-mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-main);
	cursor: pointer;
	padding: 6px;
	border-radius: var(--radius-sm);
}
.mr-mobile-toggle svg {
	width: 24px;
	height: 24px;
}

.mr-site-branding {
	flex-shrink: 0;
}

.mr-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.5px;
}

.mr-logo-badge {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 900;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.mr-logo-text {
	color: var(--text-main);
}

.mr-primary-nav {
	margin-left: 10px;
}

.mr-nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.mr-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-secondary);
	transition: all 0.15s ease;
}
.mr-nav-link:hover {
	color: var(--text-main);
	background: var(--border-color);
}
.mr-arrow-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

/* Mega Genres Dropdown */
.mr-dropdown-parent {
	position: relative;
}
.mr-dropdown-parent:hover .mr-mega-genres {
	display: grid;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.mr-dropdown-parent:hover .mr-arrow-icon {
	transform: rotate(180deg);
}

.mr-mega-genres {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 380px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 16px;
	box-shadow: var(--shadow-lg);
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	z-index: 120;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.2s ease;
}

.mr-mega-genre-item {
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
	background: var(--bg-card);
}
.mr-mega-genre-item:hover {
	color: var(--accent-primary);
	background: var(--border-color);
}

/* Header Actions & Search */
.mr-header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mr-search-form {
	position: relative;
}
.mr-search-box {
	position: relative;
	display: flex;
	align-items: center;
}
.mr-search-icon {
	position: absolute;
	left: 12px;
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	color: var(--text-muted);
	pointer-events: none;
	flex-shrink: 0;
	z-index: 2;
}
.mr-search-input {
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-full);
	padding: 8px 16px 8px 38px;
	color: var(--text-main);
	font-size: 0.9rem;
	width: 240px;
	transition: all 0.2s ease;
}
.mr-search-input:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
	width: 280px;
}

/* ==========================================================================
   Live AJAX Search Autocomplete (Desktop & Mobile)
   ========================================================================== */
.mr-search-spinner {
	position: absolute;
	right: 14px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(16, 185, 129, 0.25);
	border-top-color: var(--accent-primary);
	border-radius: 50%;
	animation: mrSearchSpin 0.6s linear infinite;
	pointer-events: none;
	z-index: 3;
}
[dir="rtl"] .mr-search-spinner {
	right: auto;
	left: 14px;
}

@keyframes mrSearchSpin {
	to { transform: rotate(360deg); }
}

/* Desktop Dropdown Container */
.mr-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 380px;
	max-height: 480px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
	z-index: 1000;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	animation: mrDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[dir="rtl"] .mr-search-dropdown {
	left: auto;
	right: 0;
}

@keyframes mrDropdownFade {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.mr-search-dropdown::-webkit-scrollbar,
.mr-msm-results::-webkit-scrollbar {
	width: 6px;
}
.mr-search-dropdown::-webkit-scrollbar-thumb,
.mr-msm-results::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 3px;
}

/* Search Dropdown & Modal Item */
.mr-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--text-main);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background 0.15s ease;
	position: relative;
}
.mr-search-item:last-child {
	border-bottom: none;
}
.mr-search-item:hover,
.mr-search-item.is-selected {
	background: var(--bg-card);
}
.mr-search-item.is-selected {
	border-left: 3px solid var(--accent-primary);
}
[dir="rtl"] .mr-search-item.is-selected {
	border-left: none;
	border-right: 3px solid var(--accent-primary);
}

.mr-search-thumb-wrap {
	width: 44px;
	height: 60px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-card);
}
.mr-search-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mr-search-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mr-search-item-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.mr-search-item-title mark {
	background: rgba(16, 185, 129, 0.22);
	color: var(--accent-primary);
	font-weight: 800;
	padding: 0 2px;
	border-radius: 2px;
}

.mr-search-item-alt {
	font-size: 0.76rem;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mr-search-item-alt mark {
	background: rgba(16, 185, 129, 0.18);
	color: var(--accent-primary);
	padding: 0 1px;
}

.mr-search-item-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.74rem;
	margin-top: 2px;
}

.mr-search-badge-type {
	display: inline-block;
	padding: 1px 6px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 4px;
	background: rgba(16, 185, 129, 0.15);
	color: var(--accent-primary);
}

.mr-search-chapter {
	color: var(--text-secondary);
	font-weight: 600;
}

.mr-search-rating {
	color: #f59e0b;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
.mr-search-rating svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* Footer view all link */
.mr-search-footer {
	padding: 10px 14px;
	background: var(--bg-card);
	border-top: 1px solid var(--border-color);
	text-align: center;
	position: sticky;
	bottom: 0;
	z-index: 2;
}
.mr-search-view-all {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--accent-primary);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: opacity 0.15s ease;
}
.mr-search-view-all:hover {
	opacity: 0.85;
	text-decoration: underline;
}

/* Empty State */
.mr-search-empty {
	padding: 30px 16px;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.88rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.mr-search-empty svg {
	color: var(--text-muted);
	opacity: 0.6;
}

/* Mobile Search Modal Results */
.mr-msm-results {
	max-height: calc(75vh - 120px);
	overflow-y: auto;
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mr-msm-results .mr-search-item {
	background: var(--bg-card);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	padding: 12px;
}
.mr-msm-results .mr-search-item:hover,
.mr-msm-results .mr-search-item:active {
	border-color: var(--accent-primary);
}
.mr-msm-results .mr-search-thumb-wrap {
	width: 50px;
	height: 68px;
}

.mr-action-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-full);
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.15s ease;
}
.mr-action-btn:hover {
	color: var(--accent-primary);
	border-color: var(--accent-primary);
	transform: translateY(-1px);
}
.mr-action-btn svg {
	width: 19px;
	height: 19px;
}

.mr-counter-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--accent-primary);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* Dark/Light mode icon toggles */
.mr-sun-icon { display: none; }
.mr-moon-icon { display: block; }
html.light-mode .mr-sun-icon { display: block; }
html.light-mode .mr-moon-icon { display: none; }

/* ==========================================================================
   Hero Featured Section (Homepage)
   ========================================================================== */
.mr-hero-section {
	position: relative;
	overflow: hidden;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 40px;
	user-select: none;
	-webkit-user-select: none;
}

.mr-hero-slider-wrap {
	position: relative;
	width: 100%;
}

.mr-hero-track {
	position: relative;
	width: 100%;
	min-height: 400px;
}

.mr-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	padding: 42px 0 55px;
	display: flex;
	align-items: center;
	transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(25px);
	z-index: 1;
}

.mr-hero-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	z-index: 2;
}

.mr-hero-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	filter: blur(50px) brightness(0.25);
	opacity: 0.55;
	transform: scale(1.15);
	transform-origin: center;
	pointer-events: none;
	z-index: 1;
}

.mr-hero-card {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 36px;
	align-items: center;
}

.mr-hero-cover-col {
	flex-shrink: 0;
	width: 240px;
}
.mr-hero-cover-link {
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	aspect-ratio: 5 / 7;
}
.mr-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.mr-hero-cover-link:hover .mr-hero-img {
	transform: scale(1.04);
}

.mr-hero-info-col {
	flex: 1;
}
.mr-hero-meta-top {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.mr-hero-title {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
}
.mr-hero-title a:hover {
	color: var(--accent-primary);
}
.mr-hero-genres {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.mr-hero-synopsis {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 24px;
	max-width: 680px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mr-hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}
.mr-hero-latest-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Slider Controls (Arrows, Dots, Counter) */
.mr-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	background: rgba(17, 24, 39, 0.78);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-md);
	padding: 0;
}
.mr-hero-arrow svg {
	width: 20px;
	height: 20px;
}
.mr-hero-arrow:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
	transform: translateY(-50%) scale(1.08);
	box-shadow: var(--shadow-glow);
}
.mr-hero-prev {
	left: 20px;
}
.mr-hero-next {
	right: 20px;
}

.mr-hero-bottom-controls {
	position: absolute;
	bottom: 16px;
	left: 0;
	width: 100%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	pointer-events: none;
}
.mr-hero-dots {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}
.mr-hero-dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.25);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mr-hero-dot:hover {
	background: rgba(255, 255, 255, 0.55);
}
.mr-hero-dot.is-active {
	width: 28px;
	background: var(--accent-primary);
	box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}
.mr-hero-counter {
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
	background: rgba(9, 13, 22, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 3px 12px;
	border-radius: var(--radius-full);
	border: 1px solid rgba(255, 255, 255, 0.08);
	pointer-events: auto;
}
.mr-hero-current {
	color: var(--accent-primary);
	font-weight: 900;
}

/* ==========================================================================
   Badges, Tags & Buttons
   ========================================================================== */
.mr-tag {
	display: inline-block;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mr-tag-featured {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #ffffff;
}
.mr-tag-type {
	background: var(--accent-secondary);
	color: #ffffff;
}
.mr-tag-status {
	background: var(--border-color);
	color: var(--text-main);
}
.mr-tag-hot {
	background: #ef4444;
	color: #ffffff;
}
.mr-tag-new {
	background: var(--accent-primary);
	color: #ffffff;
}
.mr-tag-trending {
	background: #8b5cf6;
	color: #ffffff;
}

.mr-genre-pill {
	display: inline-block;
	padding: 4px 10px;
	background: var(--border-color);
	color: var(--text-secondary);
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 600;
	transition: all 0.15s ease;
}
.mr-genre-pill:hover {
	background: var(--accent-primary);
	color: #ffffff;
}

.mr-rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
}

.mr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius-md);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}
.mr-btn svg,
.mr-bm-icon {
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	flex-shrink: 0 !important;
}
.mr-btn-primary {
	background: var(--accent-primary);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.mr-btn-primary:hover {
	background: var(--accent-primary-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-glow);
}
.mr-btn-secondary {
	background: var(--bg-card);
	color: var(--text-main);
	border: 1px solid var(--border-color);
}
.mr-btn-secondary:hover {
	background: var(--border-color);
	border-color: var(--text-muted);
}
.mr-btn-lg {
	padding: 12px 24px;
	font-size: 1.05rem;
}

/* ==========================================================================
   Sections & Card Grid
   ========================================================================== */
.mr-section {
	margin-bottom: 50px;
}
.mr-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}
.mr-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--text-main);
}
.mr-section-icon {
	width: 22px;
	height: 22px;
	color: var(--accent-primary);
}
.mr-ch-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 185, 129, 0.15);
	color: var(--accent-primary);
	font-size: 0.85rem;
	font-weight: 800;
	padding: 2px 10px;
	border-radius: var(--radius-full);
	border: 1px solid rgba(16, 185, 129, 0.3);
}
.mr-view-all-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-primary);
}
.mr-view-all-link:hover {
	text-decoration: underline;
}

.mr-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 22px 18px;
}

/* Manga Card */
.mr-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
}
.mr-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-md);
}

.mr-card-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	background: var(--bg-surface);
}
.mr-card-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}
.mr-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.mr-card:hover .mr-card-img {
	transform: scale(1.05);
}

.mr-card-badges-top {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 2;
}

.mr-card-rating {
	position: absolute;
	bottom: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	color: #f59e0b;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	z-index: 2;
}
.mr-star-icon {
	width: 12px;
	height: 12px;
}

.mr-card-content {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.mr-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mr-card-title a:hover {
	color: var(--accent-primary);
}

.mr-card-genres {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.mr-card-genres .mr-genre-pill {
	font-size: 0.7rem;
	padding: 2px 6px;
}

.mr-card-chapters {
	margin-top: auto;
}
.mr-card-ch-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	transition: all 0.15s ease;
}
.mr-card-ch-btn:hover {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}
.mr-ch-num {
	font-weight: 700;
}
.mr-ch-time {
	font-size: 0.72rem;
	color: var(--text-muted);
}
.mr-card-no-ch {
	display: block;
	padding: 6px 10px;
	background: var(--bg-input);
	border-radius: var(--radius-sm);
	font-size: 0.78rem;
	color: var(--text-muted);
	text-align: center;
}

/* Continue Reading Cards */
.mr-continue-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.mr-continue-card {
	display: flex;
	gap: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 10px;
	align-items: center;
	position: relative;
	transition: all 0.2s ease;
}
.mr-continue-card:hover {
	border-color: var(--accent-primary);
}
.mr-cont-thumb {
	width: 55px;
	height: 75px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}
.mr-cont-info {
	flex: 1;
	min-width: 0;
}
.mr-cont-title {
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.mr-cont-ch {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-primary);
	margin-bottom: 4px;
}
.mr-cont-dismiss {
	position: absolute;
	top: 6px;
	right: 6px;
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 4px;
}
.mr-cont-dismiss:hover {
	color: var(--accent-danger);
}

/* Explore Genres Cloud */
.mr-genres-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.mr-genre-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.15s ease;
}
.mr-genre-badge:hover {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
	transform: translateY(-2px);
}
.mr-gb-count {
	font-size: 0.75rem;
	background: var(--border-color);
	color: var(--text-secondary);
	padding: 2px 6px;
	border-radius: var(--radius-full);
}

/* ==========================================================================
   Single Manga Series Page
   ========================================================================== */
.mr-single-manga {
	position: relative;
	padding: 30px 0 60px;
}
.mr-manga-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 480px;
	background-size: cover;
	background-position: center 20%;
	filter: blur(50px) brightness(0.2);
	opacity: 0.7;
	pointer-events: none;
	z-index: 1;
}

.mr-breadcrumbs {
	position: relative;
	z-index: 2;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 24px;
}
.mr-breadcrumbs ol {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	flex-wrap: wrap;
}
.mr-breadcrumbs a:hover {
	color: var(--accent-primary);
}
.mr-sep {
	color: var(--text-muted);
}
.mr-breadcrumbs .is-active {
	color: var(--text-secondary);
	font-weight: 600;
}

.mr-manga-hero {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 36px;
	margin-bottom: 40px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 30px;
	box-shadow: var(--shadow-lg);
}

.mr-manga-cover-col {
	flex-shrink: 0;
	width: 250px;
}
.mr-manga-cover-wrap {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 5 / 7;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
}
.mr-manga-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mr-manga-status-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.8);
	color: #ffffff;
}
.mr-status-ongoing { color: var(--accent-primary) !important; }
.mr-status-completed { color: #38bdf8 !important; }

.mr-manga-details-col {
	flex: 1;
	min-width: 0;
}
.mr-manga-badges-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.mr-views-badge {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.mr-manga-title {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}
.mr-manga-alt-titles {
	font-size: 0.95rem;
	color: var(--text-muted);
	margin-bottom: 18px;
}
.mr-manga-alt-titles strong {
	color: var(--text-secondary);
}

.mr-manga-meta-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	padding: 16px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin-bottom: 20px;
}
.mr-meta-item {
	display: flex;
	flex-direction: column;
}
.mr-meta-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 0.5px;
}
.mr-meta-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-main);
	margin-top: 2px;
}

/* Interactive 5-Star Rating Widget */
.mr-rating-widget {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 10px 18px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	transition: all 0.2s ease;
}
.mr-rw-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.mr-rw-star-btn {
	background: transparent;
	border: none;
	padding: 2px;
	cursor: pointer;
	color: #475569;
	transition: transform 0.15s ease, color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mr-rw-star-btn:hover {
	transform: scale(1.22);
}
.mr-rw-star-icon {
	width: 22px;
	height: 22px;
	pointer-events: none;
}
.mr-rw-star-btn.is-active,
.mr-rw-star-btn.is-hover {
	color: #f59e0b;
	filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}
.mr-rw-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
}
.mr-rw-score {
	font-size: 1.15rem;
	font-weight: 800;
	color: #f59e0b;
}
.mr-rw-out {
	font-size: 0.85rem;
	color: var(--text-muted);
}
.mr-rw-count {
	font-size: 0.85rem;
	color: var(--text-secondary);
}
.mr-rw-status {
	font-size: 0.8rem;
	color: var(--accent-primary);
	font-weight: 600;
	margin-left: 8px;
	padding-left: 8px;
	border-left: 1px solid var(--border-color);
}
.mr-rating-widget.is-voted .mr-rw-star-btn {
	cursor: default;
}
.mr-rating-widget.is-voted .mr-rw-star-btn:hover {
	transform: none;
}
.mr-rating-widget.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.mr-manga-genres-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.mr-manga-actions-bar {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.mr-btn-bookmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	color: var(--text-main);
}
.mr-btn-bookmark:hover,
.mr-btn-bookmark.is-bookmarked {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}
.mr-btn-bookmark.is-bookmarked svg {
	fill: var(--accent-primary);
}

.mr-manga-synopsis {
	border-top: 1px solid var(--border-color);
	padding-top: 18px;
}
.mr-synopsis-heading {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.mr-synopsis-text {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.65;
	max-height: 90px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.mr-synopsis-text.is-expanded {
	max-height: 1000px;
}
.mr-synopsis-toggle {
	background: none;
	border: none;
	color: var(--accent-primary);
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	margin-top: 6px;
}

/* Chapters Section */
.mr-chapters-section {
	position: relative;
	z-index: 2;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 24px 30px;
	box-shadow: var(--shadow-md);
}

.mr-related-section {
	margin-top: 45px;
	margin-bottom: 40px;
}

.mr-ch-header {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 16px;
	margin-bottom: 20px;
}

.mr-ch-controls {
	display: flex;
	gap: 12px;
	align-items: center;
}

.mr-ch-search-box {
	position: relative;
	display: flex;
	align-items: center;
}
.mr-ch-search-box svg {
	position: absolute;
	left: 10px;
	width: 15px;
	height: 15px;
	color: var(--text-muted);
}
.mr-ch-search-box input {
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 6px 12px 6px 32px;
	color: var(--text-main);
	font-size: 0.85rem;
	width: 200px;
}
.mr-ch-search-box input:focus {
	outline: none;
	border-color: var(--accent-primary);
}

.mr-btn-sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 6px 12px;
	color: var(--text-secondary);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.mr-btn-sort:hover {
	color: var(--text-main);
	border-color: var(--accent-primary);
}
.mr-btn-sort svg {
	width: 16px;
	height: 16px;
}

.mr-chapters-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 600px;
	overflow-y: auto;
	padding-right: 6px;
}

.mr-ch-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: all 0.15s ease;
}
.mr-ch-row:hover {
	background: var(--bg-card-hover);
	border-color: var(--accent-primary);
	transform: translateX(3px);
}
.mr-ch-main {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mr-ch-title {
	font-weight: 700;
	font-size: 0.95rem;
}
.mr-ch-pages-badge {
	font-size: 0.75rem;
	color: var(--text-muted);
	background: var(--border-color);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
}
.mr-ch-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mr-ch-date {
	font-size: 0.8rem;
	color: var(--text-muted);
}
.mr-read-tag {
	font-size: 0.65rem;
	font-weight: 800;
	background: rgba(16, 185, 129, 0.15);
	color: var(--accent-primary);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   Catalog & Search Pages
   ========================================================================== */
.mr-catalog-header,
.mr-search-header,
.mr-archive-header {
	margin-bottom: 25px;
}
.mr-catalog-title,
.mr-search-title,
.mr-archive-title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 6px;
}
.mr-catalog-subtitle,
.mr-search-subtitle,
.mr-archive-desc {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.mr-catalog-filter-bar {
	display: flex;
	gap: 15px;
	padding: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.mr-filter-group {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mr-filter-group label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-secondary);
}
.mr-filter-group select {
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
}

.mr-search-box-lg {
	margin-bottom: 30px;
}
.mr-search-box-lg .mr-search-input {
	width: 100% !important;
	padding: 14px 20px 14px 44px;
	font-size: 1.05rem;
}
.mr-search-box-lg .mr-search-icon {
	left: 16px;
	width: 20px;
	height: 20px;
}
.mr-search-box-lg .mr-btn {
	margin-left: 10px;
	flex-shrink: 0;
}

.mr-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}
.mr-pagination .nav-links {
	display: flex;
	gap: 6px;
	align-items: center;
}
.mr-pagination .page-numbers {
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.9rem;
}
.mr-pagination .page-numbers.current,
.mr-pagination .page-numbers:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

.mr-empty-state {
	text-align: center;
	padding: 50px 20px;
	color: var(--text-muted);
	font-size: 1rem;
	background: var(--bg-card);
	border: 1px dashed var(--border-color);
	border-radius: var(--radius-md);
}

/* ==========================================================================
   Drawers (Bookmarks & History)
   ========================================================================== */
.mr-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: none;
}
.mr-drawer.is-open {
	display: block;
}
.mr-drawer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
}
.mr-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 90%;
	height: 100%;
	background: var(--bg-surface);
	border-left: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-lg);
	animation: slideInRight 0.25s ease forwards;
}

@keyframes slideInRight {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.mr-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border-color);
}
.mr-drawer-header h3 {
	font-size: 1.15rem;
	font-weight: 800;
}
.mr-drawer-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
}
.mr-drawer-close:hover {
	color: var(--text-main);
}

.mr-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mr-drawer-empty {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.9rem;
	padding: 40px 10px;
}

.mr-drawer-footer {
	padding: 14px 20px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
}

/* Drawer Items */
.mr-drawer-item {
	display: flex;
	gap: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	align-items: center;
	position: relative;
}
.mr-drawer-item:hover {
	border-color: var(--accent-primary);
}
.mr-di-thumb {
	width: 45px;
	height: 60px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
}
.mr-di-info {
	flex: 1;
	min-width: 0;
}
.mr-di-title {
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.mr-di-sub {
	font-size: 0.78rem;
	color: var(--accent-primary);
	font-weight: 600;
}
.mr-di-remove {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 1.1rem;
	padding: 4px;
}
.mr-di-remove:hover {
	color: var(--accent-danger);
}

/* Mobile Nav Drawer List */
.mr-mobile-nav-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mr-mobile-nav-list a {
	display: block;
	padding: 10px 14px;
	background: var(--bg-card);
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
}
.mr-mobile-genres-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mr-site-footer {
	background: var(--bg-surface);
	border-top: 1px solid var(--border-color);
	padding: 50px 0 25px;
	margin-top: auto;
}
.mr-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 40px;
}
.mr-footer-heading {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text-main);
}
.mr-footer-desc,
.mr-footer-disclaimer p {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-top: 12px;
}
.mr-footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.mr-footer-links a {
	color: var(--text-secondary);
	font-size: 0.9rem;
}
.mr-footer-links a:hover {
	color: var(--accent-primary);
}

.mr-footer-bottom {
	border-top: 1px solid var(--border-color);
	padding-top: 25px;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
}

/* Back to Top */
.mr-back-to-top {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 44px;
	height: 44px;
	background: var(--accent-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-md);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 90;
}
.mr-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}
.mr-back-to-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-glow);
}
.mr-back-to-top svg {
	width: 22px;
	height: 22px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar & Mobile Search Modal
   ========================================================================== */
.mr-desktop-only { display: block; }
.mr-mobile-only { display: none !important; }

/* Mobile Bottom Navigation Bar */
.mr-mobile-bottom-bar {
	display: none !important;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(56px + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(9, 13, 22, 0.96);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--border-color);
	z-index: 95;
	justify-content: space-around;
	align-items: center;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.mr-mbb-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 1;
	height: 100%;
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	padding: 6px 0;
	margin: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease;
	text-decoration: none;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}
.mr-mobile-bottom-bar svg,
.mr-mbb-item svg {
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
.mr-mbb-item:hover,
.mr-mbb-item.is-active {
	color: var(--accent-primary);
}
.mr-mbb-item.is-active svg {
	transform: scale(1.1);
}

/* Mobile Search Modal */
.mr-mobile-search-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1200;
	display: none !important;
}
.mr-mobile-search-modal.is-open {
	display: block !important;
}
.mr-msm-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
}
.mr-msm-container {
	position: relative;
	z-index: 2;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border-color);
	padding: calc(16px + env(safe-area-inset-top)) 16px 24px;
	box-shadow: var(--shadow-lg);
	animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
	from { transform: translateY(-30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.mr-msm-header {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mr-msm-form {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
}
.mr-msm-icon {
	position: absolute;
	left: 14px;
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	color: var(--text-muted);
	pointer-events: none;
	flex-shrink: 0;
	z-index: 2;
}
.mr-msm-input {
	width: 100%;
	height: 48px;
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-full);
	padding: 0 16px 0 44px;
	font-size: 1rem;
	color: var(--text-main);
}
.mr-msm-input:focus {
	outline: none;
	border-color: var(--accent-primary);
}
.mr-msm-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.8rem;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}

.mr-msm-body {
	margin-top: 18px;
}
.mr-msm-popular h4 {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--text-muted);
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}
.mr-msm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Fine-Tuning
   ========================================================================== */
@media (max-width: 992px) {
	.mr-primary-nav { display: none; }
	.mr-mobile-toggle { display: flex; align-items: center; justify-content: center; }
	.mr-hero-card { flex-direction: column; align-items: center; text-align: center; }
	.mr-hero-meta-top, .mr-hero-genres { justify-content: center; }
	.mr-hero-cover-col { width: 180px; margin: 0 auto; }
	.mr-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
	.mr-desktop-only { display: none !important; }
	.mr-mobile-only { display: inline-flex !important; }

	.mr-container {
		padding-left: 14px;
		padding-right: 14px;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Top Mobile Header (Clean, balanced & non-overflowing) */
	.mr-header-inner {
		gap: 8px;
	}
	.mr-mobile-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 4px;
		flex-shrink: 0;
	}
	.mr-logo-link {
		font-size: 1.05rem;
		gap: 6px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: calc(100vw - 140px);
	}
	.mr-logo-badge {
		font-size: 0.75rem;
		padding: 2px 6px;
		flex-shrink: 0;
	}
	.mr-header-actions {
		gap: 6px;
		margin-left: auto;
		flex-shrink: 0;
	}
	.mr-header-actions .mr-bookmarks-btn,
	.mr-header-actions .mr-history-btn {
		display: none !important;
	}
	.mr-action-btn {
		width: 36px;
		height: 36px;
		padding: 6px;
	}

	.mr-site-footer {
		padding-bottom: calc(30px + 60px + env(safe-area-inset-bottom));
	}
	.mr-mobile-bottom-bar {
		display: flex !important;
	}
	.mr-back-to-top {
		bottom: calc(70px + env(safe-area-inset-bottom));
		right: 16px;
	}

	/* Mobile Hero Featured Section */
	.mr-hero-section {
		padding: 0;
		margin-bottom: 24px;
	}
	.mr-hero-slide {
		padding: 22px 0 44px;
	}
	.mr-hero-track {
		min-height: 460px;
	}
	.mr-hero-arrow {
		display: none;
	}
	.mr-hero-bottom-controls {
		bottom: 12px;
		gap: 10px;
	}
	.mr-hero-dot {
		width: 6px;
		height: 6px;
	}
	.mr-hero-dot.is-active {
		width: 22px;
	}
	.mr-hero-counter {
		font-size: 0.75rem;
		padding: 2px 9px;
	}
	.mr-hero-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.mr-hero-cover-col {
		width: 135px;
		margin: 0 auto;
	}
	.mr-hero-info-col {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.mr-hero-title {
		font-size: 1.35rem;
		line-height: 1.3;
		margin-bottom: 10px;
		word-break: break-word;
	}
	.mr-hero-meta-top {
		justify-content: center;
		gap: 6px;
		margin-bottom: 10px;
	}
	.mr-hero-genres {
		justify-content: center;
		gap: 6px;
		margin-bottom: 12px;
	}
	.mr-hero-synopsis {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-bottom: 18px;
		padding: 0 4px;
		word-break: break-word;
		overflow-wrap: break-word;
		-webkit-line-clamp: 2;
	}
	.mr-hero-actions {
		justify-content: center;
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}
	.mr-hero-actions .mr-btn {
		width: 100%;
		height: 44px;
	}

	/* Cards Grid (2-columns on all mobile viewports) */
	.mr-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px 10px;
	}
	.mr-card-content {
		padding: 8px;
	}
	.mr-card-title {
		font-size: 0.88rem;
		margin-bottom: 4px;
	}
	.mr-card-ch-btn {
		padding: 4px 6px;
		font-size: 0.75rem;
	}

	/* Horizontal swipe for Continue Reading on mobile */
	.mr-continue-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding-bottom: 6px;
		max-width: 100%;
		scrollbar-width: none;
	}
	.mr-continue-grid::-webkit-scrollbar { display: none; }
	.mr-continue-card {
		flex: 0 0 240px;
		max-width: 80vw;
		scroll-snap-align: start;
		box-sizing: border-box;
	}

	/* Centered, Eye-Comfortable Single Manga Hero Layout on Phones */
	.mr-manga-hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
		padding: 24px 16px;
		border-radius: var(--radius-lg);
		background: var(--bg-card);
		border: 1px solid var(--border-color);
		box-shadow: var(--shadow-md);
		width: 100%;
		box-sizing: border-box;
		margin-bottom: 24px;
	}
	.mr-manga-cover-col {
		width: 175px;
		max-width: 55vw;
		margin: 0 auto;
		flex-shrink: 0;
	}
	.mr-manga-cover-wrap {
		width: 100%;
		aspect-ratio: 5 / 7;
		border-radius: 14px;
		overflow: hidden;
		box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.25);
		border: 1px solid rgba(255, 255, 255, 0.12);
	}
	.mr-manga-status-badge {
		bottom: 8px;
		left: 8px;
		padding: 4px 9px;
		font-size: 0.72rem;
		border-radius: 4px;
	}
	.mr-manga-details-col {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		box-sizing: border-box;
	}
	.mr-manga-badges-row {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin-bottom: 12px;
		flex-wrap: wrap;
		width: 100%;
	}
	.mr-manga-badges-row .mr-tag-type {
		font-size: 0.75rem;
		padding: 3px 8px;
		border-radius: 4px;
	}
	.mr-manga-badges-row .mr-rating-badge {
		font-size: 0.8rem;
		padding: 3px 8px;
	}
	.mr-views-badge {
		font-size: 0.8rem;
		color: var(--text-muted);
		display: inline-flex;
		align-items: center;
		gap: 4px;
	}
	.mr-manga-title {
		font-size: 1.45rem;
		font-weight: 800;
		line-height: 1.3;
		margin-bottom: 8px;
		text-align: center;
		word-break: break-word;
		letter-spacing: -0.3px;
	}
	.mr-manga-alt-titles {
		font-size: 0.82rem;
		color: var(--text-muted);
		text-align: center;
		margin-bottom: 16px;
		line-height: 1.45;
		max-width: 90%;
	}
	.mr-manga-meta-table {
		width: 100%;
		max-width: 380px;
		margin: 0 auto 16px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px 12px;
		padding: 12px 14px;
		background: var(--bg-surface);
		border: 1px solid var(--border-color);
		border-radius: var(--radius-md);
		text-align: left;
		box-sizing: border-box;
	}
	.mr-meta-item {
		display: flex;
		flex-direction: column;
	}
	.mr-meta-label {
		font-size: 0.68rem;
		text-transform: uppercase;
		color: var(--text-muted);
		font-weight: 700;
		letter-spacing: 0.5px;
	}
	.mr-meta-value {
		font-size: 0.88rem;
		font-weight: 600;
		color: var(--text-main);
		margin-top: 2px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.mr-rating-widget {
		justify-content: center;
		width: 100%;
		max-width: 380px;
		margin: 0 auto 16px;
		box-sizing: border-box;
		gap: 10px;
		padding: 8px 12px;
	}
	.mr-rw-meta {
		flex-wrap: wrap;
		justify-content: center;
	}
	.mr-rw-status {
		margin-left: 0;
		padding-left: 0;
		border-left: none;
		width: 100%;
		text-align: center;
	}

	.mr-manga-genres-row {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 6px;
		margin-bottom: 18px;
		width: 100%;
	}
	.mr-manga-genres-row .mr-genre-pill {
		padding: 5px 12px;
		font-size: 0.78rem;
		border-radius: var(--radius-full);
	}

	.mr-manga-actions-bar {
		width: 100%;
		margin: 0 auto 20px;
		display: flex;
		flex-direction: column;
		gap: 10px;
		box-sizing: border-box;
	}
	.mr-manga-actions-bar .mr-btn {
		width: 100%;
		height: 46px;
		font-size: 0.9rem;
		font-weight: 700;
		padding: 0 16px;
		white-space: nowrap;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		border-radius: var(--radius-md);
		box-sizing: border-box;
	}
	.mr-manga-actions-bar .mr-btn-primary {
		box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
	}
	.mr-manga-actions-bar .mr-btn-secondary {
		background: var(--bg-surface);
		border: 1px solid var(--border-color);
		color: var(--text-main);
	}
	.mr-manga-actions-bar .mr-btn-bookmark {
		width: 100%;
		height: 44px;
	}

	.mr-manga-synopsis {
		width: 100%;
		text-align: left;
		border-top: 1px solid var(--border-color);
		padding-top: 16px;
		margin-top: 4px;
		box-sizing: border-box;
	}
	.mr-synopsis-heading {
		font-size: 1.05rem;
		font-weight: 700;
		margin-bottom: 8px;
		color: var(--text-main);
		text-align: left;
	}
	.mr-synopsis-text {
		font-size: 0.9rem;
		line-height: 1.65;
		color: var(--text-secondary);
		text-align: left;
	}

	/* Two-Row Clean Chapters Header on Mobile */
	.mr-chapters-section {
		padding: 18px 14px;
	}
	.mr-ch-header {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		border-bottom: 1px solid var(--border-color);
		padding-bottom: 14px;
		margin-bottom: 16px;
	}
	.mr-ch-header .mr-section-title {
		font-size: 1.25rem;
		display: flex;
		align-items: center;
		gap: 8px;
		white-space: nowrap;
		margin: 0;
	}
	.mr-ch-controls {
		position: static;
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding: 0;
		margin: 0;
		background: none;
	}
	.mr-ch-search-box {
		flex: 1;
		min-width: 0;
	}
	.mr-ch-search-box input {
		width: 100%;
		height: 40px;
		font-size: 0.85rem;
		box-sizing: border-box;
	}
	.mr-btn-sort {
		height: 40px;
		padding: 0 12px;
		font-size: 0.8rem;
		white-space: nowrap;
		flex-shrink: 0;
		box-sizing: border-box;
	}

	.mr-ch-row {
		padding: 10px 12px;
		min-height: 48px;
	}
	.mr-ch-title {
		font-size: 0.88rem;
	}

	/* Touch-Friendly Global Sizing */
	button, a {
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}
}

/* ==========================================================================
   Comprehensive Light Mode Overrides (Refined & Eye-Friendly)
   ========================================================================== */
html.light-mode .mr-site-header {
	background: rgba(255, 255, 255, 0.94);
	border-bottom-color: #e2e8f0;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html.light-mode .mr-hero-section {
	background: #ffffff;
	border-bottom-color: #e2e8f0;
}

html.light-mode .mr-hero-backdrop {
	filter: blur(50px) brightness(1.15) saturate(1.2);
	opacity: 0.12;
}

html.light-mode .mr-manga-backdrop {
	filter: blur(40px) brightness(1.1) saturate(1.2);
	opacity: 0.1;
}

html.light-mode .mr-hero-cover-link,
html.light-mode .mr-manga-cover-wrap {
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

html.light-mode .mr-hero-latest-badge {
	background: #eef2f6;
	border: 1px solid #e2e8f0;
	color: #475569;
}

html.light-mode .mr-hero-arrow {
	background: rgba(255, 255, 255, 0.9);
	border-color: #cbd5e1;
	color: #1e293b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
html.light-mode .mr-hero-arrow:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}
html.light-mode .mr-hero-dot {
	background: rgba(0, 0, 0, 0.18);
}
html.light-mode .mr-hero-dot:hover {
	background: rgba(0, 0, 0, 0.4);
}
html.light-mode .mr-hero-dot.is-active {
	background: var(--accent-primary);
}
html.light-mode .mr-hero-counter {
	background: rgba(255, 255, 255, 0.85);
	border-color: #e2e8f0;
	color: #64748b;
}

html.light-mode .mr-rating-widget {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
html.light-mode .mr-rw-star-btn {
	color: #cbd5e1;
}
html.light-mode .mr-rw-star-btn.is-active,
html.light-mode .mr-rw-star-btn.is-hover {
	color: #f59e0b;
}
html.light-mode .mr-rw-status {
	border-left-color: #e2e8f0;
}

html.light-mode .mr-genre-pill {
	background: #eef2f6;
	border: 1px solid #e2e8f0;
	color: #334155;
}
html.light-mode .mr-genre-pill:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

html.light-mode .mr-card {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}
html.light-mode .mr-card:hover {
	border-color: var(--accent-primary);
	box-shadow: 0 8px 16px -2px rgba(15, 23, 42, 0.08);
}

html.light-mode .mr-card-rating {
	background: rgba(255, 255, 255, 0.92);
	color: #d97706;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html.light-mode .mr-card-ch-btn {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #334155;
}
html.light-mode .mr-card-ch-btn:hover {
	background: #f0fdf4;
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}

html.light-mode .mr-ch-controls {
	background: #ffffff;
}
html.light-mode .mr-ch-row {
	background: #ffffff;
	border-color: #e2e8f0;
}
html.light-mode .mr-ch-row:hover {
	background: #f8fafc;
	border-color: var(--accent-primary);
}
html.light-mode .mr-ch-pages-badge {
	background: #eef2f6;
	color: #64748b;
}

html.light-mode .mr-mobile-bottom-bar {
	background: rgba(255, 255, 255, 0.96);
	border-top-color: #e2e8f0;
	box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}
html.light-mode .mr-mbb-item {
	color: #64748b;
}
html.light-mode .mr-mbb-item:hover,
html.light-mode .mr-mbb-item.is-active {
	color: var(--accent-primary);
}

html.light-mode .mr-msm-backdrop {
	background: rgba(15, 23, 42, 0.45);
}
html.light-mode .mr-msm-container {
	background: #ffffff;
	border-bottom-color: #e2e8f0;
}
html.light-mode .mr-msm-input {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #1e293b;
}

html.light-mode .mr-drawer-overlay {
	background: rgba(15, 23, 42, 0.45);
}
html.light-mode .mr-drawer-panel {
	background: #ffffff;
	border-left-color: #e2e8f0;
	box-shadow: -4px 0 25px rgba(15, 23, 42, 0.1);
}
html.light-mode .mr-drawer-item {
	background: #f8fafc;
	border-color: #e2e8f0;
}
html.light-mode .mr-drawer-item:hover {
	background: #f1f5f9;
	border-color: var(--accent-primary);
}

html.light-mode .mr-site-footer {
	background: #ffffff;
	border-top-color: #e2e8f0;
}

/* Empty State Icon Circle */
.mr-empty-icon-circle {
	width: 72px;
	height: 72px;
	border-radius: var(--radius-full);
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: var(--text-muted);
}
html.light-mode .mr-empty-icon-circle {
	background: #eef2f6;
	border-color: #e2e8f0;
	color: #64748b;
}

/* ==========================================================================
   Bookmarks & Reading History Enhancements
   ========================================================================== */

/* Navbar & Drawer Bookmarks Badge */
.mr-nav-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-primary);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius-full);
	padding: 0 5px;
	margin-left: 6px;
	line-height: 1;
}

/* Mobile Bottom Bar Icon & Badge */
.mr-mbb-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.mr-mbb-badge {
	position: absolute;
	top: -5px;
	right: -9px;
	background: var(--accent-primary);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 10px;
	min-width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	border: 2px solid var(--bg-card);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
html.light-mode .mr-mbb-badge {
	border-color: #ffffff;
}

/* Card Quick Bookmark Button */
.mr-card-bm-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0.85;
}
.mr-card-bm-btn:hover {
	transform: scale(1.12);
	background: rgba(15, 23, 42, 0.95);
	color: var(--accent-primary);
	border-color: var(--accent-primary);
	opacity: 1;
}
.mr-card-bm-btn.is-bookmarked {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
	opacity: 1;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.mr-card-bm-btn.is-bookmarked svg {
	fill: #ffffff;
}

/* Sync Status Badge */
.mr-sync-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: var(--radius-full);
	line-height: 1;
}
.mr-sync-status-badge.is-synced {
	background: rgba(16, 185, 129, 0.12);
	color: var(--accent-primary);
	border: 1px solid rgba(16, 185, 129, 0.25);
}
.mr-sync-status-badge.is-local {
	background: var(--border-color);
	color: var(--text-muted);
	border: 1px solid transparent;
}

/* Toast Notifications */
.mr-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	background: var(--bg-card);
	color: var(--text-main);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 12px 20px;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(12px);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	display: flex;
	align-items: center;
	gap: 10px;
}
.mr-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.mr-toast-success {
	border-left: 4px solid var(--accent-primary);
}
.mr-toast-info {
	border-left: 4px solid #3b82f6;
}
.mr-toast-error {
	border-left: 4px solid #ef4444;
}
html.light-mode .mr-toast {
	background: #ffffff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* History Card Row hover */
.mr-history-card-row:hover {
	border-color: var(--accent-primary) !important;
}
.mr-page-hist-remove:hover {
	color: #ef4444 !important;
	transform: scale(1.15);
}
.mr-page-bm-remove-btn:hover {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	transform: scale(1.1);
}

/* ==========================================================================
   Social Sharing Widget & Copy Link
   ========================================================================== */
.mr-share-widget {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.mr-share-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mr-share-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.mr-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--radius-full);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	line-height: 1;
}
.mr-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.mr-share-native {
	background: #4f46e5;
	color: #ffffff !important;
}
.mr-share-whatsapp {
	background: #25D366;
	color: #ffffff !important;
}
.mr-share-telegram {
	background: #229ED9;
	color: #ffffff !important;
}
.mr-share-x {
	background: #0f172a;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.mr-share-facebook {
	background: #1877F2;
	color: #ffffff !important;
}
.mr-btn-copy-link {
	background: var(--bg-surface);
	color: var(--text-main);
	border: 1px solid var(--border-color);
}
.mr-btn-copy-link:hover,
.mr-btn-copy-link.is-copied {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
	background: rgba(16, 185, 129, 0.1);
}

html.light-mode .mr-share-widget {
	background: #f8fafc;
	border-color: #e2e8f0;
}
html.light-mode .mr-share-x {
	background: #000000;
	color: #ffffff !important;
}
html.light-mode .mr-btn-copy-link {
	background: #ffffff;
	border-color: #cbd5e1;
}

/* Related Section Header Tag */
.mr-related-section .mr-tag-type {
	letter-spacing: 0.5px;
	font-weight: 800;
}



