/* ==========================================================================
   SwiftRead – main stylesheet
   System fonts only (zero font downloads), CSS custom properties for theming,
   automatic dark mode + manual toggle.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--fs-scale: 1;
	--swr-accent: #2563eb;
	--swr-accent-ink: #fff;
	--bg: #f7f7f5;
	--surface: #ffffff;
	--surface-2: #f0f0ec;
	--text: #1a1a1a;
	--muted: #5f6368;
	--border: #e4e4df;
	--star: #d97706;
	--new: #15803d;
	--success-text: #15803d;
	--link: var(--swr-accent);
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -8px rgba(16, 24, 40, .12);
	--shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .25);
	--radius: 14px;
	--radius-sm: 8px;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Bengali", Arial, sans-serif;
	--font-serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Noto Serif Bengali", serif;
	--container: 1180px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f1115; --surface: #171a21; --surface-2: #1f232c; --text: #e8e8e6; --muted: #9aa0a6;
		--border: #2a2f3a; --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); color-scheme: dark; --link: color-mix(in srgb, var(--swr-accent) 55%, #fff); --star: #f5a524; --new: #15803d; --success-text: #4ade80;
	}
}
:root[data-theme="dark"] {
	--bg: #0f1115; --surface: #171a21; --surface-2: #1f232c; --text: #e8e8e6; --muted: #9aa0a6;
	--border: #2a2f3a; --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); color-scheme: dark; --link: color-mix(in srgb, var(--swr-accent) 55%, #fff); --star: #f5a524; --new: #15803d; --success-text: #4ade80;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* Never let component styles override the hidden attribute. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: calc(17px * var(--fs-scale)) / 1.65 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--swr-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--swr-accent) 25%, transparent); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; top: 8px; left: 8px;
	background: var(--surface); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 800px; }

.btn {
	display: inline-flex; align-items: center; gap: .4em; padding: .6em 1.1em; border: 0; border-radius: 999px;
	background: var(--swr-accent); color: var(--swr-accent-ink); font: 600 15px/1.2 var(--font-sans); cursor: pointer;
	transition: transform .15s var(--ease), filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 85%, transparent);
	backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-title { margin: 0; font: 800 22px/1 var(--font-serif); letter-spacing: -.02em; }
.site-title a { color: var(--text); text-decoration: none; }
.custom-logo { max-height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text);
	text-decoration: none; font-weight: 500; font-size: 15px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--surface-2); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; padding: 6px; margin: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s var(--ease);
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; gap: 4px; }
.icon-btn, .menu-toggle {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: transparent; border: 0; color: var(--text); cursor: pointer; transition: background .15s;
}
.icon-btn:hover, .menu-toggle:hover { background: var(--surface-2); }
.menu-toggle { display: none; }
.header-search { border-top: 1px solid var(--border); padding: 14px 0; background: var(--surface); }

.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1; min-width: 0; padding: .65em 1em; border: 1px solid var(--border); border-radius: 999px;
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
}
.search-field:focus { outline: none; border-color: var(--swr-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--swr-accent) 20%, transparent); }

.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span {
	display: block; height: 100%; background: linear-gradient(90deg, var(--swr-accent), color-mix(in srgb, var(--swr-accent) 60%, #a855f7));
	transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* ---------- Layout ---------- */
.site-main { padding-block: 28px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 88px; display: grid; gap: 24px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title {
	display: flex; align-items: center; gap: 10px; margin: 0;
	font: 800 clamp(22px, 2.6vw, 28px)/1.2 var(--font-serif); letter-spacing: -.02em;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 8px; min-width: 40px; }
.section-icon { font-size: .85em; }
.home-section { margin-bottom: 40px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; margin-bottom: 32px; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.hero-slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 7; min-height: 340px; }
.hero-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide__overlay {
	position: absolute; inset: auto 0 0; padding: clamp(20px, 4vw, 48px);
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 55%, transparent 100%); color: #fff;
}
.hero-slide__cat {
	display: inline-block; padding: 4px 12px; margin-bottom: 12px; border-radius: 999px;
	background: var(--swr-accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .02em;
}
.hero-slide__title { max-width: 820px; font: 800 clamp(24px, 4vw, 44px)/1.12 var(--font-serif); margin: 0 0 10px; text-wrap: balance; }
.hero-slide__title a { color: #fff; text-decoration: none; }
.hero-slide__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hero-slide__meta { margin: 0; font-size: 14px; opacity: .85; }
.hero-slider__nav {
	position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0;
	display: grid; place-items: center; cursor: pointer; color: #111;
	background: rgba(255,255,255,.9); box-shadow: var(--shadow); transition: transform .15s var(--ease), opacity .2s; opacity: 0;
}
.hero-slider:hover .hero-slider__nav, .hero-slider:focus-within .hero-slider__nav { opacity: 1; }
.hero-slider__nav:hover { transform: scale(1.08); }
.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--next { right: 16px; }
.hero-slider__dots { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 8px; }
.hero-slider__dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255,255,255,.5); transition: width .3s var(--ease), background .3s;
}
.hero-slider__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Popular section ---------- */
.popular-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.popular-item {
	position: relative; display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.popular-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.popular-item--lead { grid-row: span 2; }
.popular-item__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.popular-item--lead .popular-item__media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.popular-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.popular-item:hover .popular-item__media img { transform: scale(1.04); }
.rank-badge {
	position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 32px; height: 32px;
	border-radius: 50%; background: var(--surface); color: var(--text); font: 800 15px/1 var(--font-serif); box-shadow: var(--shadow);
}
.popular-item--lead .rank-badge { width: 42px; height: 42px; font-size: 20px; background: var(--swr-accent); color: #fff; }
.popular-item__body { padding: 14px 16px 16px; }
.popular-item__title { font: 700 16px/1.35 var(--font-serif); margin: 0 0 6px; }
.popular-item--lead .popular-item__title { font-size: clamp(20px, 2.2vw, 26px); }
.popular-item__title a { color: var(--text); text-decoration: none; }
.popular-item__title a:hover { color: var(--link); }
.popular-item__meta .views { display: inline-flex; align-items: center; gap: 5px; }
.popular-item__meta { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid > .ad-slot { grid-column: 1 / -1; }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.card-title { font: 700 calc(20px * var(--fs-scale))/1.3 var(--font-serif); margin: 8px 0; text-wrap: balance; }
.card--small .card-title { font-size: 16px; padding: 12px 14px 14px; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { margin: 0; color: var(--muted); font-size: calc(15px * var(--fs-scale)); line-height: 1.55; }
.card.is-read { opacity: .78; }
.card.is-read:hover { opacity: 1; }
.read-badge {
	position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
	background: rgba(0,0,0,.65); color: #fff; backdrop-filter: blur(4px);
}
.new-badge {
	display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--new); color: #fff;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
}
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.card-badges:empty { display: none; }
.card-badges > * { box-shadow: var(--shadow-sm); }
.new-badge--updated { background: #1d4ed8; }
.sponsored-badge {
	display: inline-block; padding: 2px 8px; border-radius: 999px; background: #78350f; color: #fff;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
}

/* ---------- Meta ---------- */
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.entry-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta .cat-link {
	padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--swr-accent) 12%, transparent);
	color: var(--link); font-weight: 600; text-decoration: none; font-size: 12.5px;
}
.rating-mini { color: var(--star); font-weight: 700; }
.stars-static {
	--pct: 0%; display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1;
	background: linear-gradient(90deg, var(--star) var(--pct), color-mix(in srgb, var(--muted) 35%, transparent) var(--pct));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Single post ---------- */
.single-post .entry-header { margin-bottom: 24px; }
.entry-title { font: 800 calc(clamp(30px, 4.5vw, 46px) * var(--fs-scale))/1.12 var(--font-serif); letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.entry-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.entry-byline .avatar { border-radius: 50%; }
.entry-byline > span a { color: var(--text); font-weight: 600; text-decoration: none; }
.updated-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }
.entry-thumb figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

.entry-content { font-size: calc(19px * var(--fs-scale)); line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2 { font: 800 1.55em/1.25 var(--font-serif); margin-top: 1.8em; }
.entry-content h3 { font: 700 1.25em/1.3 var(--font-serif); margin-top: 1.5em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--swr-accent);
	font: italic 1.12em/1.6 var(--font-serif); color: var(--text);
}
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.entry-content code { font-size: .88em; background: var(--surface-2); padding: .15em .4em; border-radius: 4px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.entry-content a { word-break: break-word; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tag-list a {
	padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
	font-size: 14px; text-decoration: none; transition: .15s;
}
.tag-list a::before { content: "#"; opacity: .6; }
.tag-list a:hover { border-color: var(--swr-accent); color: var(--link); }

/* ---------- Rating box ---------- */
.rating-box {
	margin: 40px 0; padding: 28px; text-align: center; border-radius: var(--radius);
	background: linear-gradient(135deg, color-mix(in srgb, var(--swr-accent) 8%, var(--surface)), var(--surface));
	border: 1px solid var(--border);
}
.rating-box__title { font: 700 22px/1.3 var(--font-serif); margin-bottom: 12px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0 0 8px; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { cursor: pointer; padding: 4px; border-radius: 8px; transition: transform .15s var(--ease); }
.stars-input svg { width: 38px; height: 38px; fill: color-mix(in srgb, var(--muted) 25%, transparent); transition: fill .15s, transform .2s var(--ease); }
.stars-input label:hover svg,
.stars-input label:hover ~ label svg,
.stars-input input:checked ~ label svg { fill: var(--star); }
.stars-input:hover input:checked ~ label svg { fill: color-mix(in srgb, var(--muted) 25%, transparent); }
.stars-input:hover input ~ label:hover svg, .stars-input:hover label:hover ~ label svg { fill: var(--star); }
.stars-input label:hover svg { transform: scale(1.15); }
.stars-input input:focus-visible + label { outline: 3px solid var(--swr-accent); }
.rating-box.just-rated .stars-input input:checked ~ label svg { animation: swr-pop .5s var(--ease); }
.rating-box.is-saving { opacity: .7; pointer-events: none; }
.rating-box__summary { margin: 0; font-size: 14px; color: var(--muted); }
.rating-box__msg { color: var(--success-text); font-weight: 600; }
@keyframes swr-pop { 50% { transform: scale(1.3); } }

/* ---------- Author / nav / related ---------- */
.author-box {
	display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; padding: 22px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box .avatar { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.author-box__name a { font-weight: 700; color: var(--text); text-decoration: none; font-size: 17px; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-navigation a {
	display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); color: var(--text); text-decoration: none; font: 600 15px/1.4 var(--font-serif); transition: .2s;
}
.post-navigation a:hover { border-color: var(--swr-accent); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; margin-bottom: 4px; font: 600 12px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.related-posts { margin: 48px 0; }
.related-posts h2 { font: 800 24px/1.2 var(--font-serif); margin-bottom: 18px; }

/* ---------- Widgets ---------- */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title { font: 700 13px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: 8px; }
.mini-list { list-style: none; padding: 0; margin: 0; counter-reset: mini; }
.mini-item + .mini-item { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.mini-item__link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.mini-item__link img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.mini-item__num {
	display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
	background: var(--surface-2); font: 800 16px/1 var(--font-serif); color: var(--link);
}
.mini-item__body { display: grid; gap: 3px; }
.mini-item__title { font: 600 15px/1.35 var(--font-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item__link:hover .mini-item__title { color: var(--link); }
.mini-item__meta { font-size: 12.5px; color: var(--muted); }

/* ---------- Ads ---------- */
.ad-slot { margin: 0 0 28px; }
.ad-slot .widget { padding: 0; border: 0; background: none; }
.ad-slot .widget-title { display: none; }
.ad-card {
	position: relative; display: flex; align-items: stretch; justify-content: center; overflow: hidden;
	background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.ad-card--code { align-items: center; padding: 24px 10px 10px; }
.ad-card__label {
	position: absolute; top: 8px; right: 10px; z-index: 1; padding: 1px 8px; border-radius: 4px;
	background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.ad-card__link { display: flex; width: 100%; color: var(--text); text-decoration: none; }
.ad-card__img { width: 40%; max-width: 280px; object-fit: cover; }
.ad-card__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px; }
.ad-card__headline { font: 700 18px/1.3 var(--font-serif); }
.ad-card__text { font-size: 14.5px; color: var(--muted); }
.ad-card__btn {
	align-self: flex-start; margin-top: 6px; padding: 7px 16px; border-radius: 999px;
	background: var(--swr-accent); color: #fff; font-size: 14px; font-weight: 600;
}
.sidebar .ad-card__link { flex-direction: column; }
.sidebar .ad-card__img { width: 100%; max-width: none; }

/* ---------- History page ---------- */
.history-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.history-item__link {
	display: flex; gap: 16px; align-items: center; padding: 12px; color: var(--text); text-decoration: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: .2s;
}
.history-item__link:hover { box-shadow: var(--shadow); border-color: transparent; }
.history-item__link img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.history-item__body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.history-item__cat { font-size: 12px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .05em; }
.history-item__title { font: 700 17px/1.35 var(--font-serif); }
.history-item__meta { font-size: 13px; color: var(--muted); }
.progress { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; max-width: 240px; }
.progress > span { display: block; height: 100%; background: var(--swr-accent); border-radius: 4px; }
.history-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }
.history-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 20px; }

.resume-btn {
	position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 70; padding: 12px 22px; border: 0; border-radius: 999px;
	background: var(--text); color: var(--bg); font: 600 15px/1 var(--font-sans); cursor: pointer; box-shadow: var(--shadow-lg);
	animation: swr-up .4s var(--ease);
}
@keyframes swr-up { from { opacity: 0; translate: -50% 20px; } }

/* ---------- Pagination / comments / misc ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
}
.page-numbers.current { background: var(--swr-accent); border-color: var(--swr-accent); color: #fff; }
a.page-numbers:hover { border-color: var(--swr-accent); }

.page-header { margin-bottom: 28px; }
.page-title { font: 800 clamp(28px, 4vw, 40px)/1.15 var(--font-serif); }
.archive-description { color: var(--muted); }

.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea {
	width: 100%; padding: .7em 1em; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text); font: inherit;
}
.comment-form .submit {
	padding: .7em 1.4em; border: 0; border-radius: 999px; background: var(--swr-accent); color: #fff; font-weight: 600; cursor: pointer;
}

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 24px; font-size: 15px; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col:empty { display: none; }
.footer-widgets .widget-title { margin-bottom: 14px; }
.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets li { margin: 0 0 8px; }
.footer-widgets a { color: var(--text); text-decoration: none; }
.footer-widgets a:hover { color: var(--link); text-decoration: underline; }
.footer-widgets .count { font-size: 12px; color: var(--muted); }
.footer-about p { color: var(--muted); margin: 0 0 16px; max-width: 34ch; }
.footer-brand { margin: 0 0 10px !important; font: 800 22px/1.2 var(--font-serif); }
.footer-brand a { color: var(--text) !important; text-decoration: none !important; }
.footer-legal { display: grid; gap: 4px; }
.theme-credit { font-size: 13px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.social-links li { margin: 0 !important; }
.social-link {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--surface-2); color: var(--text) !important; transition: background .15s, color .15s, transform .15s var(--ease);
}
.social-link:hover { background: var(--swr-accent); color: #fff !important; transform: translateY(-2px); text-decoration: none !important; }
.footer-widgets .widget { background: none; border: 0; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
.footer-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: -60px; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ---------- Ads: device + empty slots ---------- */
.ad-slot:not(:has(.ad-card)) { display: none; }
@media (max-width: 760px) { .ad-card--desktop-only { display: none; } }
@media (min-width: 761px) { .ad-card--mobile-only { display: none; } }

/* ---------- Sponsored notice ---------- */
.sponsored-notice {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; padding: 12px 16px;
	border-radius: var(--radius-sm); background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--border));
	font-size: 14.5px; color: var(--text);
}

/* ---------- Series ---------- */
.series-box { margin: 0 0 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.series-box summary {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 18px;
	cursor: pointer; list-style: none;
}
.series-box summary::-webkit-details-marker { display: none; }
.series-box summary::after { content: "▾"; grid-column: 3; grid-row: 1; color: var(--muted); transition: transform .2s; }
.series-box details[open] summary::after { transform: rotate(180deg); }
.series-box__kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--link); }
.series-box__name { font: 700 16px/1.3 var(--font-serif); }
.series-box__part { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.series-box__progress { grid-column: 1 / -1; max-width: none; }
.series-box__list { margin: 0; padding: 4px 18px 16px 40px; font-size: 15px; }
.series-box__list li { padding: 4px 0; }
.series-box__list a { color: var(--text); }
.series-box__list .is-current { font-weight: 700; }
.series-next { margin: 32px 0; }
.series-next__link {
	display: block; padding: 18px 22px; border-radius: var(--radius); text-decoration: none; color: #fff;
	background: linear-gradient(135deg, var(--swr-accent), color-mix(in srgb, var(--swr-accent) 60%, #7c3aed));
	transition: transform .2s var(--ease), box-shadow .2s;
}
.series-next__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.series-next__link .nav-label { color: rgba(255,255,255,.85); }
.series-next__link strong { font: 700 19px/1.35 var(--font-serif); }
.series-next__done { padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border); margin: 0; }

/* ---------- Feedback: reactions + bookmark ---------- */
.feedback { margin: 40px 0; }
.feedback .rating-box { margin-top: 16px; }
.reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reaction {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14px/1 var(--font-sans);
	transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.reaction:hover { border-color: var(--swr-accent); }
.reaction[aria-pressed="true"] { border-color: var(--swr-accent); background: color-mix(in srgb, var(--swr-accent) 12%, var(--surface)); }
.reaction__emoji { font-size: 18px; line-height: 1; }
.reaction__count { color: var(--muted); min-width: 0; }
.reaction__count:empty { display: none; }
.reaction.is-popping .reaction__emoji { animation: swr-pop .45s var(--ease); }

.bookmark-btn {
	display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14px/1 var(--font-sans); transition: .15s;
}
.bookmark-btn:hover { border-color: var(--swr-accent); }
.bookmark-btn[aria-pressed="true"] { background: var(--swr-accent); border-color: var(--swr-accent); color: #fff; }
.bookmark-btn[aria-pressed="true"] svg { fill: currentColor; }
.bookmark-btn.just-toggled svg { animation: swr-pop .4s var(--ease); }

/* ---------- Recommendations ---------- */
.recommend-section { margin: 0 0 40px; }
.recommend-section.is-pending { height: 1px; margin: 0; overflow: hidden; visibility: hidden; }
.recommend-section .section-head { margin-bottom: 16px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.single-post .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Exit card ---------- */
.exit-card {
	position: fixed; right: 20px; bottom: 20px; z-index: 80; width: min(360px, calc(100vw - 32px)); padding: 20px 20px 16px;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	animation: swr-slide-in .35s var(--ease);
}
.exit-card.is-leaving { opacity: 0; transform: translateY(12px); transition: .25s; }
.exit-card__close {
	position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.exit-card__close:hover { background: var(--surface-2); color: var(--text); }
.exit-card__title { margin: 0 0 2px; font: 800 19px/1.3 var(--font-serif); }
.exit-card__text { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
@keyframes swr-slide-in { from { opacity: 0; transform: translateY(20px); } }

/* ---------- FAQ (Details block, "FAQ" style) ---------- */
.wp-block-details.is-style-faq {
	margin-block: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden;
}
.wp-block-details.is-style-faq summary {
	display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none;
	font: 700 18px/1.4 var(--font-serif);
}
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after { content: "+"; font: 400 24px/1 var(--font-sans); color: var(--link); transition: transform .2s; }
.wp-block-details.is-style-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.is-style-faq > :not(summary) { padding: 0 20px; margin-top: 0; }
.wp-block-details.is-style-faq > :last-child { padding-bottom: 16px; }

/* ---------- History / bookmarks remove ---------- */
.history-item { position: relative; }
.history-item__remove {
	position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1;
}
.history-item__remove:hover { color: #b91c1c; }

/* ---------- Account page ---------- */
.account-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.account-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.account-card h2 { font: 800 22px/1.2 var(--font-serif); }
.account-card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--swr-accent) 10%, var(--surface)), var(--surface)); }
.account-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.account-card input[type=text], .account-card input[type=password] {
	width: 100%; padding: .65em .9em; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
}
.account-card .login-remember label { display: inline-flex; gap: 6px; font-weight: 400; }
.account-card input[type=submit] {
	padding: .7em 1.5em; border: 0; border-radius: 999px; background: var(--swr-accent); color: #fff; font: 600 15px/1 var(--font-sans); cursor: pointer;
}
.account-benefits { padding-left: 0; list-style: none; margin: 0 0 20px; }
.account-benefits li { padding: 4px 0 4px 28px; position: relative; }
.account-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--success-text); font-weight: 800; }
.account-small { font-size: 14px; color: var(--muted); }
.account-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.account-header .avatar { border-radius: 50%; }
.account-header .entry-title { margin: 0 0 4px; font-size: clamp(26px, 4vw, 34px); }
.account-tabs {
	position: sticky; top: 72px; z-index: 5; display: flex; gap: 6px; padding: 6px; margin-bottom: 28px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto;
}
.account-tabs a { flex: 1; text-align: center; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.account-tabs a:hover { background: var(--surface-2); }
.account-tabs .count { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.account-section { margin-bottom: 44px; scroll-margin-top: 140px; }
.account-section .section-title { font-size: 22px; margin-bottom: 16px; }
.rated-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rated-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.rated-list a { color: var(--text); font-weight: 600; text-decoration: none; }

/* ---------- Slider pause control ---------- */
.hero-slider__pause {
	position: absolute; left: 24px; bottom: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff;
}
.hero-slider__pause:hover { background: rgba(0,0,0,.7); }
.hero-slide__overlay { padding-bottom: clamp(56px, 6vw, 64px); }

/* ---------- Comment honeypot ---------- */
.swr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Share bar ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 32px 0; padding: 16px 0; border-block: 1px solid var(--border); }
.share__label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.share__btn {
	--brand: var(--text);
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
	transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease);
}
.share__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.share__btn--facebook { --brand: #1877f2; }
.share__btn--x { --brand: #000; }
.share__btn--whatsapp { --brand: #1a9e4f; }
.share__btn--telegram { --brand: #1c8adb; }
.share__btn--linkedin { --brand: #0a66c2; }
.share__btn--pinterest { --brand: #e60023; }
.share__btn--reddit { --brand: #ff4500; }
.share__btn--email, .share__btn--copy, .share__btn--native { --brand: var(--swr-accent); }
.share__btn .icon-check { display: none; }
.share__btn.is-copied { background: var(--new); border-color: var(--new); color: #fff; }
.share__btn.is-copied .icon-link { display: none; }
.share__btn.is-copied .icon-check { display: block; }
.share__status { font-size: 14px; font-weight: 600; color: var(--success-text); }
.share__status:empty { display: none; }

/* ---------- Back to top ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer; color: var(--text);
	background: var(--surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.9);
	transition: opacity .25s, transform .25s var(--ease), background .15s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--swr-accent); color: #fff; }
.to-top > * { grid-area: 1 / 1; }
.to-top__ring { transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--swr-accent); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .to-top__ring circle { stroke: #fff; }
.exit-card { bottom: 84px; }

/* ---------- Display settings panel ---------- */
.display-settings { position: relative; }
.display-settings__toggle[aria-expanded="true"] { background: var(--surface-2); }
.display-panel {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: 290px; padding: 18px;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.display-panel__group + .display-panel__group { margin-top: 16px; }
.display-panel__label { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.segmented button {
	padding: 8px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; font: 600 13px/1 var(--font-sans);
}
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
	width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer; background: var(--c);
	border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); transition: transform .15s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); }
.font-resizer { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.font-resizer button {
	height: 38px; border: 0; border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer;
	font: 700 14px/1 var(--font-serif); box-shadow: var(--shadow-sm);
}
.font-resizer button:disabled { opacity: .4; cursor: not-allowed; }
.font-resizer__value { font-family: var(--font-sans) !important; font-size: 13px !important; background: transparent !important; box-shadow: none !important; }
.display-panel__reset {
	display: block; width: 100%; margin-top: 16px; padding: 8px; border: 0; background: none; color: var(--link);
	font: 600 13px/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.footer-widgets { grid-template-columns: 1fr 1fr; }
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.alignwide { margin-inline: 0; }
	.popular-grid { grid-template-columns: 1fr 1fr; }
	.popular-item--lead { grid-column: 1 / -1; grid-row: auto; }
	.popular-item--lead .popular-item__media { aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 760px) {
	body { font-size: calc(16px * var(--fs-scale)); }
	.menu-toggle { display: inline-grid; margin-left: auto; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: none; padding: 10px 16px 16px; box-shadow: var(--shadow); }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
	.header-actions { margin-left: 0; }
	.hero-slide { aspect-ratio: 4 / 5; min-height: 0; max-height: 72vh; }
	.hero-slider { border-radius: var(--radius); }
	.hero-slider__nav { display: none; }
	.hero-slider__dots { left: 50%; right: auto; translate: -50% 0; bottom: 14px; }
	.hero-slide__overlay { padding-bottom: 64px; }
	.hero-slider__pause { left: 16px; bottom: 12px; }
	.card-grid, .card-grid--3, .popular-grid { grid-template-columns: 1fr; }
	.card-grid--4, .single-post .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.account-auth { grid-template-columns: 1fr; }
	.reaction__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.bookmark-btn { margin-left: 0; }
	.exit-card { right: 16px; left: 16px; bottom: 80px; width: auto; }
	.footer-widgets { grid-template-columns: 1fr; gap: 24px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
	.display-panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
	.popular-grid { gap: 12px; }
	.popular-item:not(.popular-item--lead) { flex-direction: row; align-items: center; }
	.popular-item:not(.popular-item--lead) .popular-item__media { flex: 0 0 110px; aspect-ratio: 1; }
	.popular-item:not(.popular-item--lead) .rank-badge { width: 26px; height: 26px; font-size: 13px; top: 6px; left: 6px; }
	.popular-item:not(.popular-item--lead) .popular-item__body { padding: 10px 14px; }
	.entry-content { font-size: calc(17.5px * var(--fs-scale)); }
	.ad-card__link { flex-direction: column; }
	.ad-card__img { width: 100%; max-width: none; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.history-item__link img { width: 84px; height: 60px; }
}

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

@media print {
	.site-header, .sidebar, .site-footer, .ad-slot, .share, .to-top, .rating-box, .feedback, .exit-card, .recommend-section, .series-next, .bookmark-btn, .related-posts, .post-navigation, .comments-area, .read-progress, .resume-btn { display: none !important; }
	.layout { display: block; }
	body { background: #fff; color: #000; }
}
