/* ==========================================================================
   KmyManga Theme Stylesheet (Dark-First + Light Mode)
   ========================================================================== */

:root,
[data-theme="dark"] {
	--bg-canvas: #0b0d14;
	--bg-surface: #131722;
	--bg-elevated: #1a2030;
	--bg-hover: #22293e;
	--bg-header: rgba(11, 13, 20, 0.86);
	--border-color: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--accent: #ff3b5c;
	--accent-hover: #ff5470;
	--accent-soft: rgba(255, 59, 92, 0.14);
	--gold: #fbbf24;
	--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
	--shadow-popover: 0 18px 48px rgba(0, 0, 0, 0.55);
	--font-display: 'Outfit', system-ui, -apple-system, sans-serif;
	--font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
}

[data-theme="light"] {
	--bg-canvas: #f6f7fb;
	--bg-surface: #ffffff;
	--bg-elevated: #edf0f7;
	--bg-hover: #e2e7f2;
	--bg-header: rgba(255, 255, 255, 0.9);
	--border-color: rgba(15, 23, 42, 0.09);
	--border-strong: rgba(15, 23, 42, 0.18);
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #64748b;
	--accent: #e11d48;
	--accent-hover: #f43f5e;
	--accent-soft: rgba(225, 29, 72, 0.1);
	--gold: #d97706;
	--shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
	--shadow-popover: 0 16px 40px rgba(15, 23, 42, 0.14);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bg-canvas);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

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

[hidden] {
	display: none !important;
}

.container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 clamp(16px, 2.2vw, 36px);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
	background-color: var(--accent);
	color: #ffffff;
}

.btn-primary:hover {
	background-color: var(--accent-hover);
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: var(--bg-elevated);
	color: var(--text-primary);
	border-color: var(--border-color);
}

.btn-secondary:hover {
	background-color: var(--bg-hover);
	border-color: var(--border-strong);
}

.btn-secondary.is-active {
	background-color: var(--accent-soft);
	color: var(--accent);
	border-color: var(--accent);
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-icon:hover {
	background: var(--bg-hover);
	border-color: var(--border-strong);
}

.badge-type {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	background: #475569;
}

.badge-type--webtoon { background: #0891b2; }
.badge-type--manga   { background: #e11d48; }
.badge-type--manhwa  { background: #7c3aed; }
.badge-type--manhua  { background: #059669; }
.badge-type--default { background: #475569; }

.badge-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(11, 13, 20, 0.78);
	color: var(--gold);
	backdrop-filter: blur(6px);
}

/* ==========================================================================
   Header & Live Search
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--bg-header);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 68px;
}

.brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	flex-shrink: 0;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.brand-accent {
	color: var(--accent);
}

.nav-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
	justify-content: space-between;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: var(--text-primary);
	background: var(--bg-elevated);
}

.header-search {
	position: relative;
	flex: 1 1 180px;
	min-width: 140px;
	max-width: 280px;
}

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

.header-search-input {
	width: 100%;
	height: 40px;
	padding: 0 38px 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-primary);
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-search-input::placeholder {
	color: var(--text-muted);
}

.header-search-input:focus {
	border-color: var(--accent);
	background: var(--bg-surface);
}

.header-search-submit {
	position: absolute;
	right: 6px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	display: inline-flex;
	padding: 6px;
}

.search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-popover);
	overflow: hidden;
	z-index: 80;
}

.search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.15s ease;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background: var(--bg-elevated);
}

.search-result-thumb {
	width: 42px;
	height: 58px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.search-result-info {
	min-width: 0;
	flex: 1;
}

.search-result-title {
	font-weight: 600;
	font-size: 13.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-result-meta {
	font-size: 12px;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.search-empty {
	padding: 16px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 13px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.bookmark-count {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.mobile-menu-toggle {
	display: none;
}

/* ==========================================================================
   Hero Spotlight Slider
   ========================================================================== */

.hero-section {
	padding: 24px 0 8px;
}

.hero-slider {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-card);
}

.hero-slides {
	position: relative;
}

.hero-slide {
	display: none;
	position: relative;
	min-height: 390px;
	padding: 40px 68px;
	align-items: center;
}

.hero-slide.is-active {
	display: flex;
}

.hero-backdrop {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(22px) brightness(0.36);
	transform: scale(1.12);
	z-index: 0;
}

.hero-backdrop.hero-backdrop--banner {
	filter: brightness(0.72);
	transform: none;
}

[data-theme="light"] .hero-backdrop {
	filter: blur(22px) brightness(0.45);
}

[data-theme="light"] .hero-backdrop.hero-backdrop--banner {
	filter: brightness(0.84);
}

.hero-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 13, 20, 0.92) 0%, rgba(11, 13, 20, 0.65) 55%, rgba(11, 13, 20, 0.38) 100%);
}

.hero-backdrop.hero-backdrop--banner::after {
	background: linear-gradient(90deg, rgba(11, 13, 20, 0.78) 0%, rgba(11, 13, 20, 0.32) 60%, rgba(11, 13, 20, 0.18) 100%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 32px;
	align-items: center;
	width: 100%;
	color: #f8fafc;
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.hero-spotlight-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #f8fafc;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 12px;
	color: #ffffff;
}

.hero-excerpt {
	color: rgba(241, 245, 249, 0.85);
	font-size: 14.5px;
	max-width: 740px;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 22px;
}

.hero-genre-chip {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 12px;
	color: #e2e8f0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-poster-wrap {
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	aspect-ratio: 400 / 580;
}

.hero-poster-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(11, 13, 20, 0.65);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.hero-nav-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 8px;
}

.hero-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	padding: 0;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
	width: 24px;
	background: var(--accent);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */

.section-block {
	padding: 28px 0;
}

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

.section-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title::before {
	content: "";
	width: 4px;
	height: 22px;
	border-radius: 4px;
	background: var(--accent);
}

.section-link {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--accent);
}

.section-link:hover {
	text-decoration: underline;
}

/* Continue Reading Strip */
.continue-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

.continue-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: var(--radius-md);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.continue-card img {
	width: 54px;
	height: 76px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}

.continue-card-info {
	min-width: 0;
	flex: 1;
}

.continue-card-title {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.continue-card-sub {
	font-size: 12.5px;
	color: var(--accent);
	font-weight: 600;
	margin-top: 3px;
}

/* Grids */
.popular-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.latest-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

@media (min-width: 1840px) {
	.popular-grid,
	.showcase-grid,
	.archive-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 1480px) {
	.popular-grid,
	.showcase-grid,
	.archive-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Manga Cards (Base + Large Showcase Cards) */
.manga-card {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.manga-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-card);
}

.manga-card--showcase {
	display: flex;
	flex-direction: column;
	background: #121520;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] .manga-card--showcase {
	background: #ffffff;
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.manga-card--showcase[data-type-theme="webtoon"] { --card-eyebrow-color: #a78bfa; }
.manga-card--showcase[data-type-theme="manga"]   { --card-eyebrow-color: #f59e0b; }
.manga-card--showcase[data-type-theme="manhwa"]  { --card-eyebrow-color: #38bdf8; }
.manga-card--showcase[data-type-theme="manhua"]  { --card-eyebrow-color: #34d399; }
.manga-card--showcase[data-type-theme="default"] { --card-eyebrow-color: #fb7185; }

.manga-card--showcase:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .manga-card--showcase:hover {
	border-color: rgba(15, 23, 42, 0.22);
}

.card-poster-stage {
	position: relative;
	overflow: hidden;
	background: #0d1018;
}

.card-cover-link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--bg-elevated);
}

.card-cover-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.manga-card:hover .card-cover-link img {
	transform: scale(1.045);
}

.card-poster-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 12, 20, 0.35) 0%,
		rgba(10, 12, 20, 0.05) 38%,
		rgba(12, 15, 26, 0.84) 76%,
		rgba(12, 15, 26, 0.98) 100%
	);
	pointer-events: none;
}

.card-overlay-top {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	pointer-events: none;
	z-index: 2;
}

.card-overlay-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.card-brand-mark {
	font-family: var(--font-display);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

.badge-type {
	gap: 5px;
}

.card-fav-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(11, 13, 20, 0.62);
	backdrop-filter: blur(6px);
	color: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-fav-btn:hover {
	transform: scale(1.08);
	border-color: var(--accent);
}

.card-fav-btn.is-bookmarked {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(255, 59, 92, 0.55);
}

.card-fav-btn.is-bookmarked svg {
	fill: #ffffff;
}

.card-poster-bottom {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	z-index: 2;
	pointer-events: none;
}

.card-eyebrow {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--card-eyebrow-color, #fb7185);
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-poster-title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 8px;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-poster-stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
}

.card-stat-rating {
	color: var(--gold);
}

.card-stat-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #cbd5e1;
}

.card-details-panel {
	padding: 13px 14px 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
	background: #141824;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .card-details-panel {
	background: #ffffff;
	border-top-color: rgba(15, 23, 42, 0.08);
}

.card-status-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}

.status-dot--ongoing   { background: #22c55e; }
.status-dot--completed { background: #3b82f6; }
.status-dot--hiatus    { background: #f59e0b; }

.card-extended-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-extended-title a:hover {
	color: var(--accent);
}

.card-genre-line {
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 10px;
}

.card-chapter-stack {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: auto;
}

.card-chapter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 11px;
	border-radius: 9px;
	background: #1a1f2e;
	border: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 12.5px;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

[data-theme="light"] .card-chapter-row {
	background: #f1f5f9;
	border-color: rgba(15, 23, 42, 0.08);
}

.card-chapter-row:hover {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent);
}

.card-chapter-name {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-chapter-meta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}

.badge-new {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--accent);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.card-chapter-date {
	font-size: 11.5px;
	color: var(--text-muted);
}

.rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	color: #0b0d14;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 13px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-overlay-bottom {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
}

.card-body {
	padding: 12px;
}

.card-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-title a:hover {
	color: var(--accent);
}

.card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: var(--text-secondary);
}

/* Latest Card Horizontal Layout */
.manga-card--latest {
	display: grid;
	grid-template-columns: 118px 1fr;
	gap: 14px;
	padding: 12px;
	align-items: start;
}

.manga-card--latest .card-cover-link {
	border-radius: var(--radius-sm);
}

.manga-card--latest .card-body {
	padding: 0;
	min-width: 0;
}

.chapter-mini-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}

.chapter-mini-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 7px;
	background: var(--bg-elevated);
	font-size: 12.5px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.chapter-mini-item:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.chapter-mini-num {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chapter-mini-time {
	font-size: 11px;
	color: var(--text-muted);
	flex-shrink: 0;
}

/* Genre Pills */
.genre-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.genre-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-secondary);
	transition: all 0.2s ease;
}

.genre-pill:hover {
	border-color: var(--accent);
	color: var(--text-primary);
	background: var(--accent-soft);
}

.genre-pill-count {
	font-size: 11.5px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--bg-elevated);
	color: var(--text-muted);
}

/* ==========================================================================
   Single Series Page (single-manga.php)
   ========================================================================== */

.series-hero {
	position: relative;
	padding: 40px 0;
	overflow: hidden;
	border-bottom: 1px solid var(--border-color);
}

.series-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(14px) brightness(0.55);
	transform: scale(1.08);
	z-index: 0;
}

.series-hero-bg.series-hero-bg--banner {
	filter: brightness(0.75);
	transform: none;
	background-position: center 30%;
}

.series-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 13, 20, 0.32) 0%, var(--bg-canvas) 100%);
}

.series-hero-bg.series-hero-bg--banner::after {
	background:
		linear-gradient(90deg, rgba(11, 13, 20, 0.68) 0%, rgba(11, 13, 20, 0.30) 55%, rgba(11, 13, 20, 0.22) 100%),
		linear-gradient(180deg, rgba(11, 13, 20, 0.10) 0%, rgba(11, 13, 20, 0.42) 72%, var(--bg-canvas) 100%);
}

[data-theme="light"] .series-hero-bg {
	filter: blur(14px) brightness(0.65);
}

[data-theme="light"] .series-hero-bg.series-hero-bg--banner {
	filter: brightness(0.85);
}

[data-theme="light"] .series-hero-bg::after {
	background: linear-gradient(180deg, rgba(246, 247, 251, 0.48) 0%, var(--bg-canvas) 100%);
}

[data-theme="light"] .series-hero-bg.series-hero-bg--banner::after {
	background:
		linear-gradient(90deg, rgba(246, 247, 251, 0.72) 0%, rgba(246, 247, 251, 0.28) 58%, rgba(246, 247, 251, 0.18) 100%),
		linear-gradient(180deg, rgba(246, 247, 251, 0.08) 0%, rgba(246, 247, 251, 0.40) 72%, var(--bg-canvas) 100%);
}

.series-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	align-items: start;
}

.series-cover-lg {
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-popover);
	aspect-ratio: 400 / 580;
}

.series-cover-lg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.series-title {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 800;
	margin: 0 0 6px;
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.series-alt-title {
	color: var(--text-secondary);
	font-size: 14px;
	margin: 0 0 16px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .series-title,
[data-theme="light"] .series-alt-title {
	text-shadow: none;
}

.series-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.series-tag {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-size: 12.5px;
	font-weight: 600;
}

.series-tag:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.series-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	padding: 14px 16px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin-bottom: 18px;
}

.series-meta-label {
	font-size: 11.5px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.series-meta-value {
	font-weight: 700;
	font-size: 14px;
	margin-top: 2px;
}

.series-synopsis {
	color: var(--text-secondary);
	font-size: 14.5px;
	margin-bottom: 22px;
}

.series-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Chapter List Panel */
.chapters-panel {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 22px;
}

.chapters-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.chapters-filter-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.chapter-search-input {
	height: 38px;
	padding: 0 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-primary);
	font-size: 13.5px;
	outline: none;
}

.chapter-search-input:focus {
	border-color: var(--accent);
}

.chapters-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chapter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chapter-row[hidden] {
	display: none !important;
}

.chapter-row:hover {
	border-color: var(--accent);
	background: var(--bg-hover);
}

.chapter-row.is-read {
	opacity: 0.62;
}

.chapter-row-main {
	flex: 1;
	min-width: 0;
}

.chapter-row-num {
	font-weight: 700;
	font-size: 14px;
}

.chapter-row-sub {
	font-size: 12px;
	color: var(--text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chapter-row-date {
	font-size: 11.5px;
	color: var(--text-muted);
	flex-shrink: 0;
}

/* ==========================================================================
   Archive & Filter Bar
   ========================================================================== */

.archive-header {
	padding: 28px 0 18px;
}

.archive-title {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
}

.archive-desc {
	color: var(--text-secondary);
	margin: 0;
}

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	margin-bottom: 24px;
}

.filter-select {
	height: 38px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-primary);
	font-size: 13.5px;
}

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

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-weight: 600;
	font-size: 13.5px;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ==========================================================================
   Library & History Slide-Over Drawer
   ========================================================================== */

.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	z-index: 90;
}

.library-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 400px;
	background: var(--bg-surface);
	border-left: 1px solid var(--border-strong);
	z-index: 100;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	box-shadow: var(--shadow-popover);
}

.library-drawer.is-open {
	transform: translateX(0);
}

.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
	font-family: var(--font-display);
	margin: 0;
	font-size: 18px;
}

.drawer-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--border-color);
}

.drawer-tab {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.drawer-tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.drawer-list {
	flex: 1;
	overflow-y: auto;
	padding: 14px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.drawer-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
}

.drawer-item img {
	width: 46px;
	height: 66px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.drawer-item-info {
	min-width: 0;
	flex: 1;
}

.drawer-item-title {
	font-weight: 700;
	font-size: 13.5px;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.drawer-item-sub {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 2px;
}

.drawer-empty {
	text-align: center;
	color: var(--text-muted);
	padding: 36px 12px;
	font-size: 14px;
}

/* ==========================================================================
   Dual Reader (Webtoon Vertical + Manga Paged)
   ========================================================================== */

.reader-shell {
	min-height: 100vh;
	background: #07080d;
	color: #f1f5f9;
}

[data-theme="light"] .reader-shell {
	background: #10131c;
}

.reader-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 13, 20, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.24s ease;
}

.reader-topbar.is-hidden {
	transform: translateY(-100%);
}

.reader-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	flex-wrap: wrap;
}

.reader-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.reader-series-link {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}

.reader-series-link:hover {
	color: var(--accent);
}

.reader-format-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
}

.reader-format-badge--webtoon {
	background: #0891b2;
}

.reader-format-badge--manga {
	background: #e11d48;
}

.reader-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.reader-select {
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #1a2030;
	color: #f8fafc;
	font-size: 13px;
}

.reader-mode-pill {
	display: inline-flex;
	background: #1a2030;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 3px;
}

.reader-mode-btn {
	border: none;
	background: transparent;
	color: #94a3b8;
	padding: 5px 11px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.reader-mode-btn.is-active {
	background: var(--accent);
	color: #fff;
}

.reader-progress-track {
	height: 3px;
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
}

.reader-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--accent);
	transition: width 0.15s ease;
}

.reader-settings-wrap {
	position: relative;
}

.reader-settings-popover {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;
	background: #131722;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	padding: 16px;
	box-shadow: var(--shadow-popover);
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reader-setting-row label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 6px;
}

.reader-setting-row select,
.reader-setting-row .reader-mode-pill {
	width: 100%;
}

.reader-stage {
	padding: 24px 12px;
}

/* Webtoon Stack */
.reader-webtoon-list {
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
	max-width: 820px;
}

.reader-webtoon-list.has-gap {
	gap: 12px;
}

.reader-webtoon-list img {
	width: 100%;
	height: auto;
	display: block;
}

/* Manga Paged Stage */
.reader-manga-stage {
	position: relative;
	max-width: 1380px;
	margin: 0 auto;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.reader-manga-canvas {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	user-select: none;
}

.reader-manga-canvas.is-rtl {
	flex-direction: row-reverse;
}

.reader-manga-canvas.is-ltr {
	flex-direction: row;
}

.reader-manga-canvas.is-double {
	flex-wrap: nowrap;
}

.reader-manga-canvas img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.reader-manga-canvas.fit-height img {
	max-height: calc(100vh - 175px);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.reader-manga-canvas.is-double.fit-height img {
	max-width: calc(50% - 4px);
	max-height: calc(100vh - 175px);
	width: auto;
	object-fit: contain;
}

.reader-manga-canvas.is-double:not(.fit-height) img {
	width: calc(50% - 4px);
	max-width: calc(50% - 4px);
}

.reader-click-zone {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 35%;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
}

.reader-click-zone--left {
	left: 0;
	justify-content: flex-start;
	padding-left: 16px;
}

.reader-click-zone--right {
	right: 0;
	justify-content: flex-end;
	padding-right: 16px;
}

.reader-zone-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(11, 13, 20, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #f8fafc;
	font-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.18s ease, background-color 0.18s ease;
}

.reader-click-zone:hover .reader-zone-arrow {
	opacity: 1;
}

.reader-scroll-top {
	position: fixed;
	right: 22px;
	bottom: 24px;
	z-index: 45;
	padding: 10px 15px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(19, 23, 34, 0.92);
	color: #f8fafc;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--shadow-popover);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.reader-scroll-top:hover {
	background: var(--accent);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.reader-manga-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.reader-bottombar {
	padding: 24px 0 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(11, 13, 20, 0.65);
}

.reader-bottombar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Generic Pages, Comments, Footer
   ========================================================================== */

.content-card {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 26px;
	margin: 24px 0;
}

.comments-area {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-top: 24px;
}

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

.comment-list .comment {
	padding: 14px 0;
	border-bottom: 1px solid var(--border-color);
}

.comment-list .kmy-comment-li {
	padding: 0;
	border-bottom: none;
	margin-bottom: 14px;
}

.comment-list .children {
	list-style: none;
	margin: 12px 0 0 28px;
	padding: 0 0 0 16px;
	border-left: 2px solid var(--border-color);
}

.kmy-comment-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 16px 18px;
	overflow: visible;
	transition: border-color .15s;
}

.kmy-comment-card:hover {
	border-color: rgba(255, 255, 255, 0.14);
}

.kmy-comment-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.kmy-comment-avatar-col {
	flex-shrink: 0;
	padding-top: 2px;
}

.kmy-comment-avatar {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	overflow: visible;
}

.kmy-comment-avatar--guest img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.kmy-comment-main {
	flex: 1;
	min-width: 0;
}

.kmy-comment-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.kmy-comment-author-name {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--text-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.kmy-comment-badges {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.kmy-comment-vip-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.35;
}

.kmy-comment-title-pill {
	font-size: 11px;
	padding: 2px 8px;
}

.kmy-comment-time {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-muted);
}

.kmy-comment-time a {
	color: inherit;
	text-decoration: none;
}

.kmy-comment-time a:hover {
	color: var(--text-secondary);
}

.kmy-comment-awaiting {
	margin: 0 0 8px;
	font-size: 12.5px;
	color: #fbbf24;
	font-weight: 600;
}

.kmy-comment-body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
	word-break: break-word;
}

.kmy-comment-body p {
	margin: 0 0 8px;
}

.kmy-comment-body p:last-of-type {
	margin-bottom: 0;
}

.kmy-comment-foot {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	text-decoration: none;
	transition: all .15s;
}

.comment-reply-link:hover {
	color: var(--text-primary);
	border-color: var(--accent);
}

.kmy-comment-empty {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--bg-elevated);
	border: 1px dashed var(--border-color);
	color: var(--text-muted);
	font-size: 13.5px;
}

.kmy-comment-form-identity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	overflow: visible;
}

.kmy-comment-form-user {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.kmy-comment-form-avatar {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: visible;
}

.kmy-comment-form-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.kmy-comment-form-hint {
	font-size: 12.5px;
	color: var(--text-muted);
}

.kmy-comment-form-links {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12.5px;
	font-weight: 600;
}

.kmy-comment-form-links a {
	color: var(--text-secondary);
	text-decoration: none;
}

.kmy-comment-form-links a:hover {
	color: var(--accent);
}

@media (max-width: 640px) {
	.kmy-comment-row { gap: 12px; }
	.kmy-comment-time { margin-left: 0; width: 100%; }
	.comment-list .children { margin-left: 14px; padding-left: 10px; }
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-primary);
}

.comment-form input[type="submit"] {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
}

.site-footer {
	margin-top: 40px;
	padding: 28px 0;
	border-top: 1px solid var(--border-color);
	background: var(--bg-surface);
	color: var(--text-secondary);
	font-size: 13.5px;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a:hover {
	color: var(--accent);
}

/* ==========================================================================
   Membership: User Menu, Auth Modal & Profile Page
   ========================================================================== */

.btn-auth {
	padding: 8px 16px;
	font-size: 13.5px;
	white-space: nowrap;
}

.user-menu-wrap {
	position: relative;
}

.user-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 4px 12px 4px 6px;
	border-radius: 999px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.user-pill-btn:hover {
	background: var(--bg-hover);
	border-color: var(--border-strong);
}

.user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.user-pill-name {
	max-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 220px;
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-popover);
	overflow: hidden;
	z-index: 85;
}

.user-dropdown-head {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.user-dropdown-head strong {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-dropdown-head span {
	font-size: 12px;
	color: var(--text-muted);
}

.user-dropdown-item {
	display: block;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-secondary);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
	background: var(--bg-elevated);
	color: var(--text-primary);
}

.user-dropdown-item--danger:hover {
	color: var(--accent);
}

.auth-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(5px);
	z-index: 110;
}

.auth-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	padding: 22px 24px 26px;
	box-shadow: var(--shadow-popover);
	z-index: 120;
}

.auth-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.auth-modal-header h3 {
	font-family: var(--font-display);
	margin: 0;
	font-size: 20px;
}

.auth-standalone-wrap {
	display: flex;
	justify-content: center;
	padding: 20px 0 40px;
}

.auth-standalone-card {
	width: 100%;
	max-width: 460px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-card);
}

.auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 18px;
	background: var(--bg-elevated);
	padding: 4px;
	border-radius: var(--radius-sm);
}

.auth-tab {
	padding: 9px 12px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--text-secondary);
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-tab.is-active {
	background: var(--accent);
	color: #fff;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.auth-field input,
.auth-field textarea {
	width: 100%;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-elevated);
	color: var(--text-primary);
	font-size: 14px;
	outline: none;
}

.auth-field input:focus,
.auth-field textarea:focus {
	border-color: var(--accent);
	background: var(--bg-surface);
}

.auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--text-secondary);
	cursor: pointer;
}

.auth-submit-btn {
	width: 100%;
	padding: 11px 18px;
}

.auth-alert {
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 14px;
	border: 1px solid transparent;
}

.auth-alert--error {
	background: rgba(244, 63, 94, 0.14);
	color: #fb7185;
	border-color: rgba(244, 63, 94, 0.35);
}

.auth-alert--success {
	background: rgba(16, 185, 129, 0.14);
	color: #34d399;
	border-color: rgba(16, 185, 129, 0.35);
}

.profile-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 26px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	margin-bottom: 22px;
	box-shadow: var(--shadow-card);
}

.profile-hero-left {
	display: flex;
	align-items: center;
	gap: 18px;
}

.profile-avatar-lg {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	color: #fff;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.profile-hero-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.profile-stats {
	display: flex;
	gap: 14px;
}

.profile-stat {
	padding: 10px 16px;
	border-radius: var(--radius-md);
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	text-align: center;
	min-width: 96px;
}

.profile-stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--text-primary);
}

.profile-stat span {
	font-size: 12px;
	color: var(--text-secondary);
}

.profile-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.profile-tab {
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.profile-tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

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

@media (max-width: 1180px) {
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	.mobile-menu-toggle {
		display: inline-flex;
	}
	.nav-wrap {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 16px 20px 20px;
		background: var(--bg-surface);
		border-bottom: 1px solid var(--border-strong);
		box-shadow: var(--shadow-popover);
	}
	.nav-wrap.is-open {
		display: flex;
	}
	.main-nav {
		flex-direction: column;
		align-items: stretch;
	}
	.header-search {
		max-width: none;
	}
	.hero-inner {
		grid-template-columns: 1fr;
	}
	.hero-poster-wrap {
		display: none;
	}
	.series-hero-inner {
		grid-template-columns: 1fr;
	}
	.series-cover-lg {
		max-width: 210px;
	}
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 540px) {
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.latest-grid {
		grid-template-columns: 1fr;
	}
	.hero-slide {
		padding: 24px 20px 44px;
		min-height: 320px;
	}
	.reader-manga-canvas.is-double {
		flex-wrap: wrap;
	}
	.reader-manga-canvas.is-double img,
	.reader-manga-canvas.is-double.fit-height img,
	.reader-manga-canvas.is-double:not(.fit-height) img {
		width: 100%;
		max-width: 100%;
	}
	.user-pill-name {
		display: none;
	}
	.profile-stats {
		width: 100%;
		justify-content: space-between;
	}
	.profile-stat {
		flex: 1;
		min-width: 0;
		padding: 8px;
	}
}

/* ==========================================================================
   KmyManga Seri Özellikleri: Rozetler, Duyuru, Cilt Grupları, Kilit, +18, Rapor
   ========================================================================== */

.badge-custom {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
}

.badge-custom--yeni {
	background: linear-gradient(135deg, #10b981, #059669);
}

.badge-custom--populer {
	background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-custom--ozel {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.badge-custom--guncel {
	background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.badge-adult {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: #dc2626;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.kmy-announcement-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: rgba(255, 59, 92, 0.08);
	border: 1px solid rgba(255, 59, 92, 0.35);
	color: var(--text);
}

.kmy-announcement-box strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	margin-bottom: 3px;
}

.kmy-announcement-box p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.kmy-announcement-box--reader {
	max-width: 820px;
	margin: 0 auto 18px;
}

.kmy-translator-note-card {
	max-width: 820px;
	margin: 22px auto 0;
	padding: 16px 20px;
	border-radius: 14px;
	background: rgba(14, 165, 233, 0.1);
	border: 1px solid rgba(14, 165, 233, 0.32);
	color: #e2e8f0;
}

.kmy-translator-note-card strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #38bdf8;
	margin-bottom: 5px;
}

.kmy-translator-note-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.kmy-volumes-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.chapter-volume-group {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
}

.chapter-volume-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.03);
	list-style: none;
}

.chapter-volume-summary::-webkit-details-marker {
	display: none;
}

.chapter-volume-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.chapter-volume-group .chapters-grid {
	padding: 12px;
}

.kmy-lock-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(245, 158, 11, 0.16);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: #fbbf24;
	font-size: 11px;
	font-weight: 700;
	margin-right: 8px;
}

.kmy-chapter-lock-card {
	max-width: 520px;
	margin: 36px auto;
	padding: 32px 28px;
	text-align: center;
	border-radius: 18px;
	background: #141925;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f8fafc;
}

.kmy-lock-icon {
	font-size: 40px;
	margin-bottom: 10px;
}

.kmy-chapter-lock-card h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.kmy-chapter-lock-card p {
	margin: 0 0 18px;
	color: #cbd5e1;
	line-height: 1.5;
}

.kmy-pw-form {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.kmy-pw-form input[type="password"] {
	min-width: 210px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: #0b0e14;
	color: #ffffff;
}

.kmy-lock-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.kmy-adult-gate {
	position: fixed;
	inset: 0;
	z-index: 950;
	background: rgba(8, 10, 15, 0.92);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.kmy-adult-gate[hidden] {
	display: none !important;
}

.kmy-adult-gate-card {
	max-width: 440px;
	width: 100%;
	padding: 28px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	text-align: center;
}

.kmy-adult-gate-card h2 {
	margin: 12px 0 8px;
}

.kmy-adult-gate-card p {
	color: var(--muted);
	margin: 0 0 20px;
	line-height: 1.5;
}

.kmy-adult-gate-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.kmy-report-modal {
	position: fixed;
	inset: 0;
	z-index: 960;
	background: rgba(8, 10, 15, 0.78);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.kmy-report-modal[hidden] {
	display: none !important;
}

.kmy-report-modal-card {
	max-width: 460px;
	width: 100%;
	padding: 24px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
}

.kmy-report-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.kmy-report-modal-head h3 {
	margin: 0;
}

.kmy-report-modal-card .auth-field {
	margin-bottom: 12px;
}

.kmy-report-modal-card select,
.kmy-report-modal-card textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--border-color);
	background: var(--bg-canvas);
	color: var(--text-primary);
}

/* ==========================================================================
   KmyManga Keşif, Okuyucu Güçlendirmeleri, Tepkiler & Eklenti Bileşenleri
   ========================================================================== */

.kmy-top-announcement {
	background: linear-gradient(90deg, var(--accent) 0%, #e11d48 100%);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 0;
}

.kmy-top-announcement-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.kmy-top-announcement a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.brand-logo-img {
	max-height: 36px;
	width: auto;
	display: block;
}

.footer-right-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.footer-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.footer-socials a {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 600;
}

.footer-socials a:hover {
	color: var(--text-primary);
	border-color: var(--accent);
}

.kmy-ad-slot {
	margin: 18px auto;
	text-align: center;
	overflow: hidden;
	border-radius: var(--radius-md);
}

.kmy-support-box {
	margin: 22px 0;
	padding: 18px 22px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(255, 59, 92, 0.12), rgba(251, 191, 36, 0.08));
	border: 1px solid var(--border-strong);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.kmy-support-copy strong {
	display: block;
	font-size: 16px;
	color: var(--text-primary);
}

.kmy-support-copy p {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--text-secondary);
}

.kmy-support-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Popüler Periyot Sekmeleri (#6) */
.kmy-popular-title-group {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.kmy-popular-tabs {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	gap: 4px;
}

.kmy-pop-tab {
	border: none;
	background: transparent;
	color: var(--text-secondary);
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s ease;
}

.kmy-pop-tab.is-active,
.kmy-pop-tab:hover {
	background: var(--accent);
	color: #ffffff;
}

/* Ana Sayfa Tam Genişlik Top-10 Dev Rakamlı Popüler Vitrin (Cinema Top-10 Rail) */
.kmy-top10-section {
	position: relative;
	padding-bottom: 12px;
}

.kmy-top10-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.kmy-top10-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.kmy-top10-eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: #fbbf24;
}

.kmy-top10-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.kmy-top10-controls .kmy-popular-tabs {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	padding: 4px;
	border-radius: 999px;
	gap: 3px;
}

.kmy-top10-controls .kmy-pop-tab {
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 700;
}

.kmy-top10-controls .kmy-pop-tab.is-active {
	background: linear-gradient(135deg, var(--accent), #ff7a59);
	box-shadow: 0 4px 14px rgba(255, 59, 92, 0.35);
}

.kmy-top10-arrows {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.kmy-top10-arrow {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	background: var(--bg-surface);
	color: var(--text-primary);
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.kmy-top10-arrow:hover:not(:disabled) {
	border-color: var(--accent);
	background: var(--accent);
	color: #ffffff;
	transform: scale(1.06);
}

.kmy-top10-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.kmy-pop-all-btn {
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-size: 12.5px;
	font-weight: 700;
	transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.kmy-pop-all-btn:hover {
	border-color: var(--accent);
	transform: translateX(2px);
}

.kmy-top10-rail-wrap {
	position: relative;
}

.kmy-top10-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 12px 4px 20px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.kmy-top10-track::-webkit-scrollbar {
	display: none;
}

.kmy-top10-item {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	scroll-snap-align: start;
	padding-left: 56px;
}

.kmy-top10-item.is-double-digit {
	padding-left: 80px;
}

.kmy-top10-num {
	position: absolute;
	left: 0;
	bottom: -10px;
	font-family: var(--font-display);
	font-size: 132px;
	font-weight: 900;
	line-height: 0.82;
	letter-spacing: -0.06em;
	user-select: none;
	pointer-events: none;
	z-index: 1;
	color: rgba(15, 23, 42, 0.55);
	-webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.28);
	transition: transform 0.24s ease, -webkit-text-stroke-color 0.24s ease, filter 0.24s ease;
}

[data-theme="light"] .kmy-top10-num {
	color: rgba(241, 245, 249, 0.9);
	-webkit-text-stroke: 2.5px rgba(15, 23, 42, 0.28);
}

.kmy-top10-item:hover .kmy-top10-num {
	transform: translateY(-4px) scale(1.03);
	-webkit-text-stroke-color: var(--accent);
}

.kmy-top10-item.is-top-1 .kmy-top10-num {
	background: linear-gradient(180deg, #fef08a 0%, #fbbf24 55%, #b45309 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(254, 240, 138, 0.75);
	filter: drop-shadow(0 8px 18px rgba(251, 191, 36, 0.4));
}

.kmy-top10-item.is-top-2 .kmy-top10-num {
	background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 60%, #64748b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(248, 250, 252, 0.65);
	filter: drop-shadow(0 8px 16px rgba(148, 163, 184, 0.3));
}

.kmy-top10-item.is-top-3 .kmy-top10-num {
	background: linear-gradient(180deg, #fed7aa 0%, #fb923c 55%, #9a3412 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(253, 186, 116, 0.65);
	filter: drop-shadow(0 8px 16px rgba(251, 146, 60, 0.34));
}

.kmy-top10-card {
	position: relative;
	z-index: 2;
	width: 196px;
	aspect-ratio: 2 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: #0f1422;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
	transition: transform 0.24s cubic-bezier(.22, .61, .36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.kmy-top10-item.is-top-1 .kmy-top10-card {
	border-color: rgba(251, 191, 36, 0.5);
}

.kmy-top10-item.is-top-2 .kmy-top10-card {
	border-color: rgba(226, 232, 240, 0.35);
}

.kmy-top10-item.is-top-3 .kmy-top10-card {
	border-color: rgba(251, 146, 60, 0.4);
}

.kmy-top10-item:hover .kmy-top10-card {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--accent);
	box-shadow: 0 22px 42px rgba(255, 59, 92, 0.26);
}

.kmy-top10-item.is-top-1:hover .kmy-top10-card {
	border-color: #fbbf24;
	box-shadow: 0 22px 42px rgba(251, 191, 36, 0.3);
}

.kmy-top10-poster {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.kmy-top10-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.32s ease;
}

.kmy-top10-item:hover .kmy-top10-poster img {
	transform: scale(1.06);
}

.kmy-top10-topbadges {
	position: absolute;
	top: 9px;
	left: 9px;
	right: 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	z-index: 2;
}

.kmy-top10-fmt {
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(11, 13, 20, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #f8fafc;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kmy-top10-rating {
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(11, 13, 20, 0.78);
	border: 1px solid rgba(251, 191, 36, 0.35);
	color: #fbbf24;
	font-size: 11px;
	font-weight: 800;
	backdrop-filter: blur(6px);
	white-space: nowrap;
	flex-shrink: 0;
}

.kmy-top10-scrim {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 46px 12px 12px;
	background: linear-gradient(180deg, rgba(11, 13, 20, 0) 0%, rgba(11, 13, 20, 0.78) 48%, rgba(11, 13, 20, 0.96) 100%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kmy-top10-title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.26;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kmy-top10-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: #cbd5e1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kmy-top10-ch {
	color: #f472b6;
	font-weight: 700;
}

@media (max-width: 960px) {
	.kmy-top10-card {
		width: 172px;
	}
	.kmy-top10-num {
		font-size: 112px;
		bottom: -8px;
	}
	.kmy-top10-item {
		padding-left: 48px;
	}
	.kmy-top10-item.is-double-digit {
		padding-left: 68px;
	}
}

@media (max-width: 640px) {
	.kmy-top10-head {
		align-items: flex-start;
		gap: 10px;
	}
	.kmy-top10-controls {
		width: 100%;
		justify-content: space-between;
	}
	.kmy-top10-arrows {
		display: none;
	}
	.kmy-top10-controls .kmy-popular-tabs {
		flex: 1 1 auto;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.kmy-top10-controls .kmy-pop-tab {
		padding: 6px 4px;
		font-size: 11.5px;
		text-align: center;
	}
	.kmy-top10-track {
		gap: 12px;
		padding: 8px 2px 16px;
	}
	.kmy-top10-item {
		padding-left: 40px;
	}
	.kmy-top10-item.is-double-digit {
		padding-left: 58px;
	}
	.kmy-top10-num {
		font-size: 92px;
		bottom: -6px;
	}
	.kmy-top10-card {
		width: 146px;
		border-radius: 13px;
	}
	.kmy-top10-topbadges {
		top: 7px;
		left: 7px;
		right: 7px;
		gap: 4px;
	}
	.kmy-top10-fmt,
	.kmy-top10-rating {
		padding: 2px 6px;
		font-size: 9.5px;
	}
	.kmy-top10-title {
		font-size: 13px;
	}
	.kmy-top10-meta {
		font-size: 11px;
	}
}

/* Haftalık Takvim & A-Z Dizin (#4, #7) */
.kmy-schedule-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.kmy-schedule-tabs .btn-secondary.is-active,
.kmy-schedule-tabs .btn-secondary.is-today-highlight {
	border-color: var(--accent);
	color: var(--text-primary);
}

.kmy-pill-mini {
	margin-left: 6px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
}

.kmy-count-mini {
	margin-left: 4px;
	opacity: 0.72;
	font-size: 12px;
}

.kmy-schedule-day-section {
	margin-bottom: 32px;
}

.kmy-az-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}

.kmy-az-pill {
	min-width: 38px;
	height: 36px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 13.5px;
	font-weight: 700;
}

.kmy-az-pill.is-active,
.kmy-az-pill:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.kmy-archive-shortcuts {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Gelişmiş Çoklu Filtre Çekmecesi (#7) */
.kmy-adv-filters {
	flex: 1 1 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
}

.kmy-adv-filters summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--text-primary);
}

.kmy-adv-filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 14px;
}

.kmy-adv-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: #34d399;
}

.kmy-adv-label--exclude {
	color: #f87171;
}

.kmy-adv-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.kmy-adv-check {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-size: 12.5px;
	cursor: pointer;
}

/* Bölüm Tepkileri (#14) & Okuyucu Kontrolleri (#10-#13) */
.kmy-reactions-box {
	margin: 22px auto 14px;
	padding: 18px 20px;
	border-radius: var(--radius-md);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	text-align: center;
}

.kmy-reactions-title {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
	color: var(--text-primary);
}

.kmy-reactions-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.kmy-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.16s ease;
}

.kmy-reaction-btn:hover {
	border-color: var(--accent);
	transform: translateY(-1px);
}

.kmy-reaction-btn.is-active {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent);
}

.kmy-reaction-count {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	font-size: 12px;
}

.reader-visual-sepia .reader-webtoon-list,
.reader-visual-sepia .reader-manga-canvas {
	filter: sepia(0.32) contrast(0.96);
}

.kmy-shortcuts-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kmy-shortcuts-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--text-secondary);
}

.kmy-shortcuts-list kbd {
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-strong);
	color: var(--text-primary);
	font-family: monospace;
	font-size: 12px;
}

.kmymanga-checkbox-inline {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
}

#kmymanga-autoscroll-btn.is-running {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Topluluk, Bildirim Zili, Yıldız Puanlama, Raflar & Ekonomi UI (#15-#22) */
.kmy-notif-wrap {
	position: relative;
}

.kmy-notif-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: 310px;
	max-width: 90vw;
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-popover);
	z-index: 90;
	padding: 12px;
}

.kmy-notif-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 320px;
	overflow-y: auto;
}

.kmy-notif-item {
	display: block;
	padding: 8px 10px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	font-size: 12.5px;
	color: var(--text-primary);
}

.kmy-notif-item.is-unread {
	border-left: 3px solid var(--accent);
}

.kmy-community-widget-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	background: rgba(19, 23, 34, 0.72);
	border: 1px solid var(--border-color);
}

.kmy-star-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.kmy-star-btn {
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #64748b;
	padding: 0 2px;
	line-height: 1;
}

.kmy-star-btn.is-filled,
.kmy-star-btn:hover {
	color: var(--gold);
}

.kmy-shelf-widget {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kmy-spoiler-box {
	display: inline-block;
	margin: 4px 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--bg-elevated);
	border: 1px dashed var(--border-strong);
}

.kmy-spoiler-box summary {
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
}

.kmy-comment-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	font-size: 12px;
}

.kmy-comment-like-btn,
.kmy-comment-flag-btn {
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	padding: 3px 9px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 12px;
}

.kmy-comment-like-btn.is-liked {
	border-color: var(--accent);
	color: var(--accent);
}

.kmy-coin-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.14);
	border: 1px solid rgba(251, 191, 36, 0.35);
	color: var(--gold);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.kmy-tl-pill {
	background: rgba(52, 211, 153, 0.14);
	border-color: rgba(52, 211, 153, 0.35);
	color: #34d399;
}

.kmy-vip-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #111827;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
}

.kmy-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.kmy-leaderboard-table th,
.kmy-leaderboard-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.kmy-leaderboard-table th {
	background: var(--bg-elevated);
	font-size: 12.5px;
	color: var(--text-secondary);
	text-transform: uppercase;
}

.reader-no-select img {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

.kmy-install-banner {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Header Alt Menü (Keşfet ▾) & Kompakt Masaüstü Uyum */
.main-nav > li {
	position: relative;
}

.main-nav li.menu-item-has-children > a::after {
	content: "▾";
	display: inline-block;
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.78;
	transition: transform 0.18s ease;
}

.kmy-submenu-toggle {
	display: none;
}

.main-nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	max-height: calc(100dvh - 88px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px;
	margin: 0;
	list-style: none;
	border-radius: var(--radius-md);
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-popover);
	z-index: 95;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.16s ease 0.12s, transform 0.16s ease 0.12s, visibility 0s linear 0.28s;
}

@media (min-width: 1061px) {
	.main-nav li.menu-item-has-children::after {
		content: "";
		position: absolute;
		left: -12px;
		right: -12px;
		top: 100%;
		height: 18px;
		z-index: 94;
		display: none;
	}

	.main-nav li.menu-item-has-children:hover::after,
	.main-nav li.menu-item-has-children:focus-within::after,
	.main-nav li.menu-item-has-children.is-submenu-open::after {
		display: block;
	}

	.main-nav li.menu-item-has-children:hover > a::after,
	.main-nav li.menu-item-has-children:focus-within > a::after,
	.main-nav li.menu-item-has-children.is-submenu-open > a::after {
		transform: rotate(180deg);
	}

	.main-nav li.menu-item-has-children:hover > .sub-menu,
	.main-nav li.menu-item-has-children:focus-within > .sub-menu,
	.main-nav li.menu-item-has-children.is-submenu-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		transition: opacity 0.14s ease 0s, transform 0.14s ease 0s, visibility 0s linear 0s;
	}
}

.main-nav .sub-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 13.5px;
	border-radius: var(--radius-sm);
}

@media (max-width: 1360px) {
	.nav-inner {
		gap: 8px;
	}
	.nav-wrap {
		gap: 8px;
		min-width: 0;
	}
	.main-nav {
		gap: 2px;
	}
	.main-nav > li > a {
		padding: 6px 8px;
		font-size: 13px;
	}
	.header-search {
		max-width: 165px;
		min-width: 0;
		flex: 1 1 80px;
	}
	.header-actions {
		gap: 5px;
	}
}

@media (max-width: 1220px) {
	.nav-inner,
	.nav-wrap {
		gap: 6px;
	}
	.brand-logo {
		font-size: 17px;
		gap: 5px;
	}
	.brand-mark {
		width: 26px;
		height: 26px;
		font-size: 14px;
		border-radius: 7px;
	}
	.main-nav > li > a {
		padding: 6px 5px;
		font-size: 12px;
	}
	.header-search {
		max-width: 125px;
		min-width: 0;
		flex: 1 1 55px;
		overflow: hidden;
	}
	.header-search-input {
		min-width: 0;
		height: 33px;
		font-size: 12px;
		padding: 0 26px 0 9px;
	}
	.header-search-submit {
		right: 6px;
	}
	.header-search-submit svg {
		width: 14px;
		height: 14px;
	}
	.header-actions {
		gap: 4px;
	}
	.header-actions .btn-icon {
		width: 30px;
		height: 30px;
	}
	.header-actions .kmy-coin-pill {
		padding: 4px 7px;
		font-size: 11px;
	}
	.user-pill-btn {
		padding: 4px 7px;
		font-size: 12px;
		gap: 5px;
	}
	.user-pill-btn .user-avatar {
		width: 24px;
		height: 24px;
		font-size: 11px;
	}
	.user-pill-name {
		max-width: 72px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/* ==========================================================================
   Evrensel Telefon & Tablet Uyumlulugu (320px - 1060px)
   ========================================================================== */

html,
body {
	max-width: 100%;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

.mobile-drawer-extras {
	display: none;
}

@media (max-width: 1060px) {
	.mobile-menu-toggle {
		display: inline-flex;
	}
	.nav-wrap {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px 16px 18px;
		background: var(--bg-surface);
		border-bottom: 1px solid var(--border-strong);
		box-shadow: var(--shadow-popover);
		z-index: 98;
		max-height: calc(100dvh - 68px);
		overflow-y: auto;
	}
	.nav-wrap.is-open {
		display: flex;
	}
	.main-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}
	.main-nav > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 12px;
		font-size: 14.5px;
		min-height: 42px;
	}
	.main-nav li.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
	}
	.main-nav li.menu-item-has-children > a {
		flex: 1 1 auto;
		min-width: 0;
	}
	.main-nav li.menu-item-has-children > a::after {
		display: none;
	}
	.kmy-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		flex-shrink: 0;
		padding: 0;
		border-radius: var(--radius-sm);
		border: 1px solid var(--border-color);
		background: var(--bg-elevated);
		color: var(--text-primary);
		cursor: pointer;
		transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.kmy-submenu-toggle:hover,
	.kmy-submenu-toggle:active {
		background: var(--bg-surface);
		border-color: var(--border-strong);
	}
	.kmy-submenu-toggle svg {
		transition: transform 0.2s ease;
	}
	.main-nav li.menu-item-has-children.is-submenu-open > .kmy-submenu-toggle {
		border-color: var(--accent);
		color: var(--accent);
	}
	.main-nav li.menu-item-has-children.is-submenu-open > .kmy-submenu-toggle svg {
		transform: rotate(180deg);
	}
	.main-nav .sub-menu {
		position: static;
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		max-height: none;
		overflow: visible;
		margin: 2px 0 6px 0;
		padding: 4px 0 4px 12px;
		border: none;
		border-left: 2px solid var(--border-strong);
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition: none;
		display: none;
		flex-direction: column;
		gap: 2px;
	}
	.main-nav li.menu-item-has-children.is-submenu-open > .sub-menu {
		display: flex;
	}
	.main-nav .sub-menu a {
		padding: 9px 12px;
		font-size: 14px;
	}
	.header-search {
		max-width: none;
		width: 100%;
		flex: none;
		overflow: visible;
	}
	.header-search-input {
		height: 42px;
		font-size: 15px;
	}
	.mobile-drawer-extras {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 8px;
		border-top: 1px solid var(--border-color);
	}
	.mobile-drawer-chip {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		border-radius: 999px;
		background: var(--bg-elevated);
		border: 1px solid var(--border-color);
		color: var(--text-primary);
		font-size: 13px;
		font-weight: 700;
		cursor: pointer;
		text-decoration: none;
		min-height: 38px;
	}
	.mobile-drawer-chip.is-gold {
		color: var(--gold);
		border-color: rgba(251, 191, 36, 0.38);
		background: rgba(251, 191, 36, 0.1);
	}
	.mobile-drawer-chip.is-green {
		color: #34d399;
		border-color: rgba(52, 211, 153, 0.38);
		background: rgba(52, 211, 153, 0.1);
	}
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}
	.latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.reader-topbar {
		backdrop-filter: none;
		background: rgba(11, 13, 20, 0.97);
		transform: none !important;
	}
	.reader-topbar-inner {
		padding: 8px 0;
		gap: 8px;
		flex-direction: column;
		align-items: stretch;
	}
	.reader-breadcrumbs {
		justify-content: space-between;
		gap: 6px;
		overflow: hidden;
	}
	.reader-series-link {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 52%;
		font-size: 13.5px;
	}
	.reader-controls {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 6px;
		padding-bottom: 2px;
	}
	.reader-controls::-webkit-scrollbar {
		display: none;
	}
	.reader-controls > * {
		flex-shrink: 0;
	}
	.reader-settings-popover {
		position: fixed;
		left: 12px;
		right: 12px;
		top: auto;
		bottom: max(12px, env(safe-area-inset-bottom));
		width: auto;
		max-height: 74dvh;
		overflow-y: auto;
		z-index: 1000;
	}
	.series-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}
	.series-cover-lg {
		max-width: 210px;
		margin: 0 auto;
	}
	.series-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		text-align: left;
	}
	.series-actions {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.container {
		padding-left: 14px;
		padding-right: 14px;
	}
	input,
	select,
	textarea {
		font-size: 16px;
	}
	.kmy-schedule-tabs,
	.profile-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 6px;
	}
	.kmy-schedule-tabs::-webkit-scrollbar,
	.profile-tabs::-webkit-scrollbar {
		display: none;
	}
	.kmy-schedule-tabs > *,
	.profile-tabs > * {
		flex-shrink: 0;
		white-space: nowrap;
	}
	.profile-hero {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
	.profile-stats {
		width: 100%;
		justify-content: space-between;
	}
	.profile-stat {
		flex: 1;
		min-width: 0;
		padding: 8px;
	}
	.chapters-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.chapters-filter-controls {
		width: 100%;
		display: flex;
		gap: 8px;
	}
	.chapters-filter-controls .chapter-search-input {
		flex: 1;
		min-width: 0;
	}
	.footer-inner,
	.footer-right-links,
	.footer-menu {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 10px;
	}
}

@media (max-width: 640px) {
	body.admin-bar .site-header {
		top: 0;
	}
	.nav-inner {
		height: 58px;
		gap: 6px;
	}
	.nav-wrap {
		top: 58px;
		max-height: calc(100dvh - 58px);
	}
	.header-actions a[href*="/rastgele/"],
	.header-actions #kmymanga-theme-toggle,
	.header-actions .kmy-coin-pill,
	.header-actions .kmy-tl-pill,
	.header-actions .kmy-dm-nav-btn {
		display: none !important;
	}
	.header-actions .btn-icon {
		width: 36px;
		height: 36px;
	}
	.user-pill-name {
		display: none !important;
	}
	.user-pill-btn {
		padding: 3px 6px;
	}
	.kmy-notif-dropdown,
	.user-dropdown {
		position: fixed;
		left: 10px;
		right: 10px;
		top: 64px;
		width: auto;
		max-width: none;
	}
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.latest-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.manga-card .card-body {
		padding: 9px;
	}
	.manga-card .card-title {
		font-size: 13.5px;
	}
	.reader-stage {
		padding: 12px 0;
	}
	.reader-manga-pager {
		flex-wrap: wrap;
		gap: 6px;
		padding: 10px;
	}
	.reader-bottombar-inner {
		gap: 8px;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}
	.kmy-report-modal-card,
	.auth-modal {
		width: min(94vw, 520px);
		max-height: 88dvh;
		overflow-y: auto;
		padding: 16px;
	}
}

@media (max-width: 340px) {
	.showcase-grid,
	.popular-grid,
	.archive-grid {
		gap: 8px;
	}
	.brand-logo {
		font-size: 16px;
	}
}

/* Reader Pro Progress Pill, Göz Filtreleri & Duygu Dağılımı */
.reader-progress-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.22);
	border: 1px solid rgba(129, 140, 248, 0.45);
	color: #e0e7ff;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.reader-visual-night {
	background: #07080d !important;
}

.kmy-reaction-dist {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--border-color);
}

.kmy-reaction-bar {
	display: flex;
	height: 9px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-elevated);
	margin: 0 auto 10px;
	max-width: 560px;
}

.kmy-reaction-bar-seg {
	display: block;
	height: 100%;
	transition: width 0.25s ease;
}

.kmy-reaction-dist-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--text-secondary);
	font-weight: 600;
}

.kmy-reaction-dist-empty {
	font-size: 12.5px;
	color: var(--text-muted);
}

/* Takvim Sayfası Kart Meta */
.kmy-schedule-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.kmy-schedule-kpis {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.kmy-schedule-kpi {
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 8px 14px;
	display: flex;
	flex-direction: column;
	min-width: 118px;
}

.kmy-schedule-kpi span {
	font-size: 11.5px;
	color: var(--text-secondary);
}

.kmy-schedule-kpi strong {
	font-size: 16px;
	color: var(--accent);
}

.kmy-schedule-card-wrap {
	display: flex;
	flex-direction: column;
}

.kmy-schedule-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 7px 10px;
	margin-top: 6px;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	font-size: 12px;
	font-weight: 700;
}

.kmy-sched-time {
	color: var(--text-secondary);
}

.kmy-sched-cd {
	color: var(--gold);
}

/* ==========================================================================
   Görüntülenme Gözü İkonu & Rozetleri (Detay, Bölüm Listesi, Kart & Okuyucu)
   ========================================================================== */

.kmy-eye-icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

.series-views-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #f8fafc;
	font-size: 12.5px;
	font-weight: 700;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	white-space: nowrap;
}

.series-views-badge .kmy-eye-icon {
	color: var(--accent);
}

[data-theme="light"] .series-views-badge {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(15, 23, 42, 0.14);
	color: #0f172a;
}

.series-meta-value--views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-primary);
}

.series-meta-value--views .kmy-eye-icon {
	color: var(--accent);
}

.chapter-row-right {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.chapter-row-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--text-secondary);
	background: rgba(148, 163, 184, 0.12);
	border: 1px solid rgba(148, 163, 184, 0.22);
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.chapter-row-views .kmy-eye-icon {
	opacity: 0.9;
}

.chapter-row:hover .chapter-row-views {
	color: var(--accent);
	border-color: rgba(255, 59, 92, 0.35);
	background: var(--accent-soft);
}

[data-theme="light"] .chapter-row-views {
	background: #e2e8f0;
	border-color: rgba(15, 23, 42, 0.1);
	color: #334155;
}

.card-chapter-views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.08);
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
}

[data-theme="light"] .card-chapter-views {
	background: rgba(15, 23, 42, 0.07);
	color: #475569;
}

.card-chapter-row:hover .card-chapter-views {
	color: var(--accent);
	background: var(--accent-soft);
}

.kmy-top10-views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.reader-views-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #e2e8f0;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 820px) {
	.reader-views-pill {
		padding: 2px 7px;
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.chapter-row-right {
		gap: 6px;
	}
	.chapter-row-views {
		padding: 2px 7px;
		font-size: 11px;
		gap: 4px;
	}
	.manga-card--showcase .card-chapter-row {
		padding: 6px 7px;
		gap: 4px;
		font-size: 11px;
	}
	.manga-card--showcase .card-chapter-meta {
		gap: 4px;
	}
	.manga-card--showcase .card-chapter-views {
		padding: 1px 5px;
		font-size: 10.5px;
	}
}

@media (max-width: 480px) {
	.manga-card--showcase .card-chapter-date {
		display: none;
	}
}
