/* Lesbian Stories — horror reading theme (DT14 layout)
 * Version synced with KIEMHIEP_VERSION (functions.php).
 */

:root {
	--bg: #0e0e0e;
	--bg-wash: #0e0e0e;
	--surface: #161616;
	--surface-2: #1c1c1c;
	--hover-surface: #2a2020;
	--border: #2a2a2a;
	--text: #f0f0f0;
	--muted: #a3a3a3;
	--accent: #9b1c1c;
	--accent-hover: #c42a2a;
	--accent-soft: #c45c26;
	--gold: #c9a66b;
	--gold-bright: #e0c08a;
	--gold-dim: rgba(155, 28, 28, 0.25);
	--sidebar-link: #d4a574;
	--link-on-surface: #d4a574;
	--link-on-surface-hover: #f0d9a8;
	--sidebar-width: 300px;
	--ink: transparent;
	--font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	--font-display: "Spectral", Georgia, "Times New Roman", serif;
	--radius: 6px;
	--container: 1080px;
	--header-h: 56px;
	--header-bar: #111111;
	--header-nav: #161616;
	--footer-bg: #100c0c;
	--on-inverse: #f0e8e0;
	--on-inverse-muted: #9a8f86;
	--header-link-hover: #e0c08a;
	--theme-ease: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	color-scheme: dark;
}

/* Reading theme — light */
html[data-reader-theme="light"] {
	--bg: #f3efe8;
	--bg-wash: #faf7f2;
	--surface: #ffffff;
	--surface-2: #f0ebe3;
	--hover-surface: #ebe2d6;
	--border: #d9d0c4;
	--text: #3f362e;
	--muted: #74685c;
	--accent: #9b1c1c;
	--accent-hover: #c42a2a;
	--accent-soft: #b45309;
	--gold: #9a6b2f;
	--gold-bright: #c2410c;
	--gold-dim: rgba(155, 28, 28, 0.1);
	--sidebar-link: #9a3412;
	--link-on-surface: #9a3412;
	--link-on-surface-hover: #c2410c;
	--header-bar: #1a1414;
	--header-nav: #221a1a;
	--footer-bg: #ebe4da;
	--on-inverse: #f0e8e0;
	--on-inverse-muted: #9a8f86;
	--header-link-hover: #e0c08a;
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	transition: var(--theme-ease);
}

/* Light mode: soft wash only (no gray veil on dark). */
html[data-reader-theme="light"] body {
	background: var(--bg-wash);
}

body.is-nav-open {
	overflow: hidden;
}

a {
	color: var(--accent-soft);
	text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

a:hover {
	color: var(--gold-bright);
}

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

.container {
	width: min(100% - 24px, var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Header — dark bar */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	isolation: isolate;
	background: var(--header-bar);
	border-bottom: 1px solid rgba(155, 28, 28, 0.35);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.dt-header-bar {
	position: relative;
	z-index: 1003;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: var(--header-h);
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.site-branding .header-banner__link {
	display: block;
	line-height: 0;
	text-decoration: none;
	border-radius: var(--radius);
}

.site-branding .header-banner__link:focus-visible,
.custom-logo-link:focus-visible,
.site-title:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.site-branding .header-banner__img {
	display: block;
	width: auto;
	max-width: min(280px, 55vw);
	height: auto;
	max-height: 40px;
	object-fit: contain;
	object-position: left center;
}

.site-title,
.footer-logo {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--on-inverse);
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-title:hover {
	color: var(--header-link-hover);
}

.footer-brand .site-title,
.footer-brand .footer-logo {
	color: var(--text);
}

.footer-brand .site-title:hover,
.footer-brand .footer-logo:hover {
	color: var(--gold-bright);
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	max-width: 100%;
}

.custom-logo-link img,
.custom-logo {
	display: block;
	max-height: 40px;
	width: auto;
	max-width: min(240px, 52vw);
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.custom-logo--footer {
	max-height: 48px;
	max-width: 220px;
}

.site-tagline {
	margin: 0;
	font-size: 0.7rem;
	color: var(--muted);
}

.dt-nav-toggle,
.dt-search-toggle,
.dt-theme-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.dt-nav-toggle:hover,
.dt-search-toggle:hover,
.dt-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
}

.dt-theme-toggle__icon--sun {
	display: none;
	font-size: 1.1rem;
	line-height: 1;
}

.dt-theme-toggle__icon--moon {
	display: inline;
	font-size: 1.15rem;
	line-height: 1;
}

html[data-reader-theme="light"] .dt-theme-toggle__icon--moon {
	display: none;
}

html[data-reader-theme="light"] .dt-theme-toggle__icon--sun {
	display: inline;
}

.nav-toggle {
	flex-direction: column;
	gap: 5px;
	padding: 8px;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
	display: none;
	background: var(--header-nav);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.primary-nav.is-open {
	display: block;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0 4px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.primary-nav .menu > .menu-item {
	position: relative;
	list-style: none;
	margin: 0;
}

.primary-nav .menu a {
	display: block;
	padding: 12px 14px;
	color: var(--on-inverse);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
	color: var(--header-link-hover);
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dt-header-search {
	display: none;
	position: relative;
	z-index: 1003;
	padding: 12px 14px 14px;
	background: var(--header-nav);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.header-search {
	display: flex;
	align-items: stretch;
	max-width: 720px;
	margin: 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	overflow: hidden;
	background: #0f0c0c;
}

.header-search input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	color: var(--on-inverse);
	padding: 10px 14px;
	font-size: 0.9rem;
}

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

.header-search button {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.875rem;
}

.header-search button:hover {
	background: var(--accent-hover);
}

.dt-nav-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.55);
}

.dt-nav-backdrop:not([hidden]) {
	display: block;
}

/* Mobile / tablet drawer menu */
@media (max-width: 900px) {
	.primary-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 1002;
		display: none;
		max-height: min(70vh, calc(100dvh - var(--header-h)));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav__inner {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.primary-nav .menu {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		overflow: visible;
		padding: 8px 0 12px;
	}

	.primary-nav .menu > .menu-item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.primary-nav .menu a {
		white-space: normal;
		padding: 14px 16px;
		font-size: 15px;
		line-height: 1.35;
	}

	.primary-nav .sub-menu {
		display: block;
		background: rgba(0, 0, 0, 0.22);
		padding: 0 0 6px;
	}

	.primary-nav .sub-menu a {
		padding: 10px 16px 10px 28px;
		font-size: 14px;
		color: #d8cfc6;
	}

	.primary-nav .sub-menu .sub-menu a {
		padding-left: 40px;
	}
}

@media (min-width: 901px) {
	.dt-nav-toggle {
		display: none;
	}

	.primary-nav {
		display: block;
		position: static;
		max-height: none;
		overflow: visible;
		box-shadow: none;
	}

	.primary-nav .menu {
		overflow-x: auto;
	}

	.primary-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		padding: 6px 0;
		background: var(--header-nav);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: var(--radius);
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
		z-index: 20;
	}

	.primary-nav .menu > .menu-item:hover > .sub-menu,
	.primary-nav .menu > .menu-item:focus-within > .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu a {
		white-space: normal;
		padding: 10px 14px;
	}

	.dt-nav-backdrop {
		display: none !important;
	}
}

/* Layout */
.site-main {
	padding: var(--space-lg) 0 var(--space-xl);
	min-height: 60vh;
}

.page-title,
.section-header__title,
.archive-title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--text);
	margin: 0;
	letter-spacing: 0.02em;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-sm);
	border-bottom: 2px solid var(--accent);
}

.home-section {
	margin-bottom: var(--space-xl);
}

.breadcrumb {
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: var(--space-md);
}

.breadcrumb .sep {
	margin: 0 6px;
	opacity: 0.5;
}

.breadcrumb .current {
	color: var(--text);
}

/* Top stories */
.top-stories {
	margin-bottom: var(--space-xl);
	padding: var(--space-md);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.top-stories__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
}

.top-stories__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.top-stories__icon {
	color: var(--accent-hover);
	font-size: 1.1rem;
}

.top-stories__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

@media (min-width: 640px) {
	.top-stories__list {
		grid-template-columns: 1fr 1fr;
	}
}

.top-story-row {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 10px 4px;
	border-bottom: 1px solid var(--border);
	min-height: 44px;
}

@media (min-width: 640px) {
	.top-story-row:nth-child(odd) {
		border-right: 1px solid var(--border);
		padding-right: 12px;
	}

	.top-story-row:nth-last-child(-n + 2) {
		border-bottom: none;
	}
}

@media (max-width: 639px) {
	.top-story-row:last-child {
		border-bottom: none;
	}
}

.top-story-row__rank {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: var(--accent-hover);
}

.top-story-row__title {
	min-width: 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

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

/* Index boxes & story list (DT14) */
.index-box {
	margin: 0 0 28px;
	padding: 4px 0 0;
}

.index-box .box-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 2px 10px;
	border-bottom: 2px solid var(--accent);
}

.index-box .box-title {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text);
}

.index-box .box-title a {
	color: inherit;
}

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

.index-box .box-more {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-soft);
	white-space: nowrap;
}

.index-box .box-more:hover {
	color: var(--gold-bright);
}

.story-list,
.manga-update-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.story-list--archive,
.story-list--related {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0 12px;
	overflow: hidden;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

.story-row,
.story-list > li,
.index-box li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 2px;
	border-top: 1px solid var(--border);
	list-style: none;
	margin: 0;
}

.story-list > li:first-child,
.index-box li:first-child,
.story-row:first-child {
	border-top: 0;
}

.story-link {
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
}

.entry-title,
.story-link .entry-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
	transition: color 0.25s ease;
}

.story-link:hover .entry-title {
	color: var(--accent-hover);
}

.story-meta {
	flex: 0 0 auto;
	max-width: 38%;
	padding-top: 2px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
	color: var(--muted);
	white-space: nowrap;
}

.story-meta.is-new {
	color: var(--accent-soft);
}

.story-meta.is-chapter {
	color: var(--muted);
}

.story-meta.is-done {
	color: #5a9a72;
}

.story-meta.is-published {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.story-meta.is-relative {
	color: var(--muted);
	font-weight: 500;
}

.story-meta.is-views {
	color: var(--accent-soft);
	font-variant-numeric: tabular-nums;
}

.story-comment-preview {
	flex: 1 1 40%;
	min-width: 0;
	max-width: 46%;
	padding-top: 2px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.story-row--comment .story-link {
	flex: 0 1 34%;
	max-width: 42%;
}

.story-row--comment .story-meta {
	max-width: 28%;
}

@media (max-width: 640px) {
	.story-row--comment {
		flex-wrap: wrap;
	}

	.story-row--comment .story-link {
		flex: 1 1 calc(100% - 100px);
		max-width: none;
	}

	.story-row--comment .story-meta {
		max-width: none;
	}

	.story-comment-preview {
		flex: 1 1 100%;
		max-width: none;
		order: 3;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

.manga-author-link {
	display: inline;
	color: inherit;
}

.manga-author-link:hover {
	color: var(--accent-hover);
}

/* Single truyen */
.manga-detail,
.manga-detail--list {
	display: block;
	margin-bottom: var(--space-lg);
}

.manga-detail-info {
	min-width: 0;
}

.manga-detail-title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	margin: 0 0 10px;
	color: var(--text);
}

.manga-meta-list {
	margin: var(--space-md) 0;
	padding: 0;
}

.manga-meta-list dt {
	display: inline;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text);
}

.manga-meta-list dt::after {
	content: ": ";
}

.manga-meta-list dd {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	color: var(--text);
}

.manga-meta-list dd::after {
	content: "";
	display: block;
	margin-bottom: 10px;
}

.manga-meta-list dd:last-of-type::after {
	margin-bottom: 0;
}

.manga-meta-list dd a.story-tag {
	color: var(--accent-soft);
}

.manga-meta-list dd a.story-tag:hover {
	text-decoration: underline;
}

.manga-meta-list dd .manga-author-link {
	display: inline;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
}

.manga-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	border: none;
	text-align: center;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
	background: var(--accent);
	color: #fff !important;
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: #fff !important;
}

.btn-secondary {
	background: var(--surface-2);
	color: var(--text) !important;
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	border-color: var(--accent);
	color: var(--gold-bright) !important;
}

.btn-nav {
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text) !important;
	font-size: 0.8rem;
	padding: 6px 12px;
}

.btn-link {
	background: none;
	border: none;
	color: var(--accent-soft);
	cursor: pointer;
	padding: 0;
	font-size: 0.875rem;
}

.manga-summary,
.chapter-catalog,
.related-manga,
.manga-comments,
.reader-comments {
	margin-bottom: var(--space-lg);
}

.manga-summary h2,
.related-manga h2,
.reader-comments h2 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	margin: 0 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--accent);
}

.summary-content.is-collapsed {
	max-height: 100px;
	overflow: hidden;
	position: relative;
}

.summary-content.is-collapsed::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 48px;
	background: linear-gradient(transparent, var(--bg));
}

.summary-content.is-expanded {
	max-height: none;
}

.summary-content.is-expanded::after {
	display: none;
}

/* Chapter catalog */
.chapter-catalog {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.chapter-catalog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}

.chapter-catalog__title {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
}

.chapter-catalog__icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	border-radius: 2px;
}

.chapter-catalog__icon svg {
	width: 12px;
	height: 12px;
}

.chapter-catalog__sort {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--muted);
	cursor: pointer;
}

.chapter-catalog__sort:hover {
	color: var(--text);
}

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

.chapter-catalog__item {
	border-bottom: 1px solid var(--border);
}

.chapter-catalog__item:last-child {
	border-bottom: none;
}

.chapter-catalog__item.is-hidden {
	display: none;
}

.chapter-catalog__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
	color: var(--text);
}

.chapter-catalog__link:hover {
	background: var(--surface-2);
	color: var(--text);
}

.chapter-catalog__name {
	font-weight: 600;
	font-size: 0.875rem;
	flex: 1;
	min-width: 0;
}

.chapter-catalog__date {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-style: italic;
	color: var(--muted);
}

.chapter-catalog__more-wrap {
	padding: 10px;
	text-align: center;
	border-top: 1px solid var(--border);
}

.chapter-catalog__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--accent-soft);
	cursor: pointer;
	font-size: 0.875rem;
}

.chapter-catalog__more-icon {
	font-size: 0.65rem;
}

.chapter-catalog__more[aria-expanded="true"] .chapter-catalog__more-icon {
	transform: rotate(180deg);
}

/* Reader */
.reader-header {
	text-align: center;
	margin-bottom: var(--space-md);
}

.reader-title {
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 3.5vw, 1.35rem);
	margin: 0;
	font-weight: 700;
	line-height: 1.45;
}

.reader-story-meta {
	margin: 10px 0 0;
	font-size: 0.85rem;
}

.reader-story-meta .reader-story-link {
	color: var(--link-on-surface);
	font-weight: 500;
}

.reader-story-meta .reader-story-link:hover {
	color: var(--gold-bright);
}

.reader-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-sm);
	margin: var(--space-md) 0;
}

.reader-content {
	max-width: none;
	margin: 0;
	background: transparent;
	padding: var(--space-md) 0;
	border-radius: 0;
	border: 0;
}

.reader-text {
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--text);
	transition: color 0.35s ease;
}

.reader-text p {
	margin: 0 0 1em;
}

.reader-text img,
.reader-text figure {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0.75em auto;
}

.reader-page img {
	margin: 0 auto 8px;
}

/* Archive */
.archive-header {
	margin-bottom: var(--space-md);
}

.archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 8px 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.archive-sort-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.archive-sort-tab {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.archive-sort-tab:hover {
	color: var(--text);
	border-color: var(--accent);
}

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

.archive-count,
.taxonomy-description {
	color: var(--muted);
	margin: 0;
	font-size: 0.875rem;
}

.taxonomy-description {
	margin: 8px 0 0;
}

.no-results {
	text-align: center;
	padding: var(--space-xl);
	color: var(--muted);
}

/* Pagination DT14 */
.archive-pagination.wp-pagenavi {
	display: block;
	margin: 20px 0 8px;
	padding: 12px 0;
	text-align: center;
}

.archive-pagination__bar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.archive-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 72px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.archive-pagination__btn--prev {
	justify-content: flex-start;
}

.archive-pagination__btn--next {
	justify-content: flex-end;
}

.archive-pagination__btn:hover {
	border-color: var(--accent);
	color: var(--gold-bright);
	background: var(--hover-surface);
}

.archive-pagination__btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.archive-pagination__jump {
	display: block;
	width: 100%;
	min-width: 0;
}

.archive-pagination__select {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	appearance: none;
	min-height: 40px;
	padding: 0 36px 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a8f86' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	cursor: pointer;
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: var(--space-lg);
	flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
	padding: 6px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 0.875rem;
}

.pagination .current,
.nav-links .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

@media (max-width: 600px) {
	.archive-pagination__btn {
		min-width: 56px;
		padding: 0 8px;
		font-size: 12px;
	}

	.archive-pagination__select {
		font-size: 12px;
		padding-left: 6px;
		padding-right: 28px;
		background-position: right 8px center;
	}

	.entry-title,
	.story-link .entry-title {
		font-size: 15px;
	}
}

/* Footer */
.site-footer {
	background: var(--footer-bg);
	border-top: 1px solid var(--border);
	padding: var(--space-lg) 0 var(--space-md);
	margin-top: auto;
	transition: var(--theme-ease);
}

.footer-inner {
	display: grid;
	gap: var(--space-md);
	text-align: center;
}

.footer-desc {
	margin: 4px 0 0;
	font-size: 0.8rem;
	color: var(--muted);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.copyright {
	margin: 0;
	font-size: 0.78rem;
	color: var(--muted);
}

.copyright a {
	color: var(--link-on-surface);
	font-weight: 600;
}

.copyright a:hover,
.copyright a:focus-visible {
	color: var(--link-on-surface-hover);
}

.page-404 {
	text-align: center;
	padding: 64px 0;
}

.page-404 h1 {
	font-family: var(--font-display);
	font-size: 2.5rem;
}

/* Authors */
.author-header {
	display: block;
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--border);
}

.author-title {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-size: 1.75rem;
}

.author-count {
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.author-bio h2,
.author-stories h2 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	margin-bottom: 12px;
}

.author-directory {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.author-directory__item {
	border-bottom: 1px solid var(--border);
}

.author-directory__item:last-child {
	border-bottom: none;
}

.author-directory__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	min-height: 44px;
	color: var(--text);
}

.author-directory__link:hover {
	background: var(--surface-2);
	color: var(--text);
}

.author-directory__name {
	font-weight: 600;
	font-size: 0.95rem;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.author-directory__count {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--muted);
}

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

.comment-list .comment-body {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	transition: color 0.35s ease, border-color 0.35s ease;
}

.comment-list .comment-author,
.comment-list .comment-author a,
.comment-list .fn {
	color: var(--text);
	font-weight: 600;
}

.comment-list .comment-metadata,
.comment-list .comment-metadata a,
.comment-list .comment-meta,
.comment-list .comment-meta a {
	color: var(--muted);
	font-size: 0.8rem;
}

.comment-list .comment-content,
.comment-list .comment-content p {
	color: var(--text);
}

.comment-list .reply a,
.comment-reply-link {
	color: var(--accent-soft);
}

.comment-list .reply a:hover,
.comment-reply-link:hover {
	color: var(--gold-bright);
}

.comment-respond,
.comment-form {
	color: var(--text);
}

.comment-form label,
.comment-notes,
.logged-in-as,
.logged-in-as a {
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.comment-form input[type="submit"],
.comment-form .submit {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
	background: var(--accent-hover);
}

/* Layout sidebar */
.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
	gap: var(--space-lg);
	align-items: start;
	margin-top: var(--space-md);
}

.layout-with-sidebar--home {
	margin-top: var(--space-lg);
}

.layout-with-sidebar__aside {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

@media (max-width: 1024px) {
	.layout-with-sidebar {
		grid-template-columns: 1fr;
	}

	.layout-with-sidebar__main {
		order: 1;
	}

	.layout-with-sidebar__aside {
		order: 2;
	}
}

/* Widget — Top truyện */
.widget-top-stories,
.widget-recent-comments {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

.widget-top-stories__tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.widget-top-stories__tab {
	margin: 0;
	padding: 10px 6px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.widget-top-stories__tab.is-active {
	color: var(--text);
	border-bottom-color: var(--accent);
	background: var(--surface);
}

.widget-top-stories__panel {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-top-stories__panel[hidden] {
	display: none;
}

.widget-top-stories__item,
.widget-recent-comments__item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border-top: 1px solid var(--border);
}

.widget-top-stories__rank {
	flex: 0 0 1.5rem;
	font-weight: 700;
	color: var(--accent-hover);
	font-size: 0.85rem;
}

.widget-top-stories__link,
.widget-recent-comments__link {
	flex: 1;
	min-width: 0;
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.25s ease;
}

.widget-top-stories__link:hover,
.widget-recent-comments__link:hover {
	color: var(--accent-hover);
}

.widget-top-stories__meta,
.widget-recent-comments__meta {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--muted);
}

.widget-title {
	margin: 0;
	padding: 12px 14px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	border-bottom: 1px solid var(--border);
}

.page-home {
	max-width: var(--container);
}

/* Homepage YouTube slider */
.home-yt-slider {
	margin: 0 0 var(--space-xl);
}

.home-yt-slider__viewport {
	position: relative;
	overflow: hidden;
}

.home-yt-slider__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-yt-slider__slide {
	margin: 0;
	min-width: 0;
}

.home-yt-slider__slide[hidden] {
	display: none !important;
}

.home-yt-slider__card {
	overflow: hidden;
	border-radius: var(--radius);
	background: #000;
	border: 1px solid var(--border);
}

.home-yt-slider__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.home-yt-slider__play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #000;
}

.home-yt-slider__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-yt-slider__play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: #f00;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.home-yt-slider__play-icon::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -8px 0 0 -5px;
	border-style: solid;
	border-width: 9px 0 9px 16px;
	border-color: transparent transparent transparent #fff;
}

.home-yt-slider__play:hover .home-yt-slider__play-icon {
	background: #cc0000;
}

.home-yt-slider__frame {
	position: absolute;
	inset: 0;
}

.home-yt-slider__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.home-yt-slider__caption {
	margin: 0;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	background: var(--surface);
	border-top: 1px solid var(--border);
}

.home-yt-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 10px;
}

.home-yt-slider__btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.home-yt-slider__btn:hover {
	border-color: var(--accent);
	color: var(--accent-hover);
}

.home-yt-slider__dots {
	display: flex;
	gap: 8px;
}

.home-yt-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--border);
	cursor: pointer;
}

.home-yt-slider__dot.is-active,
.home-yt-slider__dot:hover {
	background: var(--accent);
}

@media (min-width: 901px) {
	.home-yt-slider__track {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

/* ===== Single story / reader (full container width) ===== */
.page-manga--reader,
.page-reader-wrap {
	max-width: none;
}

.reader-shell {
	width: 100%;
	margin: 0 auto;
}

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100;
	height: 3px;
	pointer-events: none;
	background: transparent;
}

.reading-progress__bar {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--accent);
	transform-origin: left center;
}

.reader-meta {
	margin: 0 0 16px;
	padding: 4px 0 14px;
	border-bottom: 1px solid var(--border);
}

.reader-meta .entry-title {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--text);
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
}

.reader-meta__grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

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

.reader-meta__label {
	flex: 0 0 auto;
	min-width: 58px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent-hover);
}

.story-chips {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.story-chip {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

a.story-chip:hover {
	border-color: var(--accent);
	color: var(--gold-bright);
	background: var(--hover-surface);
}

.story-chip--cat {
	background: rgba(155, 28, 28, 0.22);
	border-color: rgba(155, 28, 28, 0.4);
}

.story-chip--author {
	font-weight: 700;
}

.story-chip--tag {
	background: var(--surface);
}

.reader-meta__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
}

.reader-meta__dot {
	margin: 0 8px;
	opacity: 0.55;
}

.reader-meta__date {
	white-space: nowrap;
}

.reader-actions {
	margin-top: 14px;
}

.reader-section-title {
	margin: 0 0 10px;
	padding: 0 0 8px;
	border-bottom: 2px solid var(--accent);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.entry-border {
	margin: 0 0 22px;
}

.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--text);
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content img,
.entry-content figure {
	max-width: 100%;
	height: auto;
	margin: 0 auto 12px;
}

.summary-content.is-collapsed {
	max-height: 140px;
}

.summary-content.is-collapsed::after {
	background: linear-gradient(transparent, var(--bg));
}

.chapter-catalog.reader-toc-list {
	margin: 0 0 28px;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.chapter-catalog.reader-toc-list .chapter-catalog__head {
	padding: 0 0 10px;
	border-bottom: 2px solid var(--accent);
	margin-bottom: 0;
}

.chapter-catalog.reader-toc-list .chapter-catalog__title {
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: 0.04em;
}

.chapter-catalog.reader-toc-list .chapter-catalog__icon {
	display: none;
}

.chapter-catalog.reader-toc-list .chapter-catalog__item {
	border-bottom: 1px solid var(--border);
}

.chapter-catalog.reader-toc-list .chapter-catalog__link {
	padding: 12px 2px;
}

.chapter-catalog.reader-toc-list .chapter-catalog__link:hover {
	background: transparent;
}

.chapter-catalog.reader-toc-list .chapter-catalog__link:hover .chapter-catalog__name {
	color: var(--accent-hover);
}

.chapter-catalog.reader-toc-list .chapter-catalog__more-wrap {
	border-top: 0;
	padding: 12px 0 0;
}

.related-stories {
	margin: 28px 0 8px;
}

.related-stories__title {
	display: block;
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 2px solid var(--accent);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}

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

.related-stories__item {
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--border);
}

.related-stories__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.related-stories__link {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.25s ease;
}

.related-stories__link:hover {
	color: var(--accent-hover);
}

.comments-area {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.manga-comments.comments-area,
.reader-comments.comments-area {
	margin-top: 12px;
	margin-bottom: var(--space-lg);
}

/* Chapter pagination (DT14) */
.chapter-nav-wrap {
	margin: 12px 0 18px;
}

.chapter-nav__bar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.chapter-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 72px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.chapter-nav__btn--prev {
	justify-content: flex-start;
}

.chapter-nav__btn--next {
	justify-content: flex-end;
}

.chapter-nav__btn:hover {
	border-color: var(--accent);
	color: var(--gold-bright);
	background: var(--hover-surface);
}

.chapter-nav__btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.chapter-nav__jump {
	display: block;
	width: 100%;
	min-width: 0;
}

.chapter-jump {
	display: block;
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	min-height: 40px;
	padding: 0 36px 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a8f86' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	cursor: pointer;
}

@media (max-width: 600px) {
	.chapter-nav__btn {
		min-width: 56px;
		padding: 0 8px;
		font-size: 12px;
	}

	.chapter-jump {
		font-size: 12px;
		padding-left: 6px;
		padding-right: 28px;
		background-position: right 8px center;
	}
}

.reader-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-sm);
	margin: var(--space-md) 0;
}

.reader-nav .btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.reader-content {
	max-width: none;
	margin: 0;
	background: transparent;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.page-reader .reader-text {
	font-size: 17px;
	line-height: 1.8;
	color: var(--text);
}

/* Recent comments widget (detail pages) */
.widget-recent-comments__title {
	margin: 0;
	padding: 12px 14px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	border-bottom: 1px solid var(--border);
}

.widget-recent-comments__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget-recent-comments__item {
	display: block;
	padding: 12px 14px;
	border-top: 1px solid var(--border);
}

.widget-recent-comments__story {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 8px;
}

.widget-recent-comments__story a {
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
	transition: color 0.25s ease;
}

.widget-recent-comments__story a:hover {
	color: var(--accent-hover);
}

.widget-recent-comments__chapter {
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	color: var(--muted) !important;
}

.widget-recent-comments__meta {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.widget-recent-comments__avatar {
	flex: 0 0 auto;
	border-radius: 50%;
}

.widget-recent-comments__who {
	flex: 1;
	min-width: 0;
}

.widget-recent-comments__author {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gold);
}

.widget-recent-comments__text {
	margin: 4px 0 0;
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.4;
}

.widget-recent-comments__time {
	flex: 0 0 auto;
	font-size: 0.7rem;
	color: var(--muted);
	white-space: nowrap;
}

.widget-recent-comments__empty {
	margin: 0;
	padding: 14px;
	color: var(--muted);
	font-size: 0.85rem;
}

.manga-rating {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	color: var(--gold);
	margin-bottom: 4px;
}

.manga-rating::before {
	content: "★ ";
}
