/*
Theme Name: Story FM
Theme URI: https://storyfmapp.com/
Author: Story FM
Description: Story FM ke liye cinematic dark novel-reading theme — free Hindi/English novels, chapter-wise reader (font size, light/sepia/dark mode, reading progress), fast, mobile-first, SEO aur AdSense ready. "Story FM Novels" plugin ke saath chalti hai.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: storyfm
Tags: blog, entertainment, custom-logo, custom-menu, one-column, two-columns
*/

:root {
	--sfm-night: #120725;
	--sfm-night-2: #1e0b3a;
	--sfm-violet: #6d28d9;
	--sfm-violet-2: #8b5cf6;
	--sfm-magenta: #c026d3;
	--sfm-orange: #f97316;
	--sfm-amber: #fbbf24;
	--sfm-grad: linear-gradient(120deg, #4c1d95 0%, #9d174d 55%, #f97316 100%);
	--sfm-grad-soft: linear-gradient(120deg, rgba(109,40,217,.12), rgba(249,115,22,.12));

	--bg: #0c0716;
	--surface: #181027;
	--surface-2: #221637;
	--ink: #f1ecfb;
	--ink-2: #d3cae6;
	--muted: #a198bb;
	--line: #2c2142;
	--link: #c4b5fd;
	--r-bg: #0c0716;
	--r-ink: #e6dff3;
	--r-muted: #a198bb;
	--r-line: #2c2142;
	--r-soft: #221637;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.7);
	--wrap: 1180px;
	--font-ui: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Baloo 2", "Mukta", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--sfm-amber); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-main { padding: 24px 0 56px; min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--sm svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sfm-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(157,23,77,.6); }
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(157,23,77,.75); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--sfm-violet-2); color: var(--sfm-violet); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(18,7,37,.96);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sfm-grad); opacity: .9; }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand .custom-logo { width: auto; max-height: 40px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 23px; letter-spacing: .5px; line-height: 1; color: #fff; }
.brand__name b { font-weight: 800; background: linear-gradient(180deg, #fcd34d, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.primary-nav { margin-left: 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.82); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: #fff; background: rgba(255,255,255,.1); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--sfm-night-2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 6px; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { border-radius: 8px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn svg { width: 20px; height: 20px; }
.header-app { font-size: 14px; }
.menu-toggle { display: none; }
.header-search { display: none; padding: 0 0 14px; }
.header-search.is-open { display: block; }

.search-form { display: flex; align-items: center; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 5px 5px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 16px; }
.search-form button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--sfm-grad); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #b5aec8; }
.crumbs a { color: var(--muted); }

/* ---------- Section heads ---------- */
.section { margin: 36px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 25px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section__title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--sfm-grad); }
.section__more { font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.55), transparent 60%),
		radial-gradient(700px 500px at 10% 120%, rgba(192,38,211,.45), transparent 60%),
		linear-gradient(135deg, #120725 0%, #2b0b52 55%, #3d0a3a 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 52px 16px 56px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .4px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); margin-bottom: 16px; }
.hero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--sfm-amber); box-shadow: 0 0 0 4px rgba(251,191,36,.25); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fcd34d, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 19px; color: rgba(255,255,255,.84); max-width: 560px; margin-bottom: 22px; }
.hero .search-form { max-width: 520px; border: 0; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__chips a { color: #fff; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); text-decoration: none; }
.hero__chips a:hover { background: rgba(255,255,255,.2); }
.hero__stack { position: relative; height: 340px; }
.hero__stack .cover { position: absolute; width: 175px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.65); }
.hero__stack .cover:nth-child(1) { left: 50%; top: 10px; transform: translateX(-50%) rotate(0deg); z-index: 3; width: 200px; }
.hero__stack .cover:nth-child(2) { left: 8%; top: 52px; transform: rotate(-9deg); z-index: 2; opacity: .92; }
.hero__stack .cover:nth-child(3) { right: 8%; top: 52px; transform: rotate(9deg); z-index: 1; opacity: .92; }

/* ---------- Covers ---------- */
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--gen {
	--h1: #4c1d95; --h2: #f97316;
	background: linear-gradient(160deg, var(--h1), var(--h2));
	color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 10% 9%;
}
.cover--gen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 100% 0%, rgba(255,255,255,.28), transparent 55%), radial-gradient(90% 60% at 0% 100%, rgba(0,0,0,.35), transparent 60%); }
.cover--gen::after { content: ""; position: absolute; left: 9%; right: 9%; bottom: 30%; height: 28%; opacity: .25;
	background: repeating-linear-gradient(90deg, #fff 0 6%, transparent 6% 12%);
	mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent), radial-gradient(closest-side, #000, transparent);
	-webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.cover__genre { position: relative; z-index: 1; font-size: .62em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.cover__title { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 1.12em; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.cover__brand { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: .6em; letter-spacing: 1px; opacity: .85; }
.cover__badge { position: absolute; z-index: 2; top: 8px; left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.cover__badge--done { background: #059669; }

/* ---------- Novel grid / cards ---------- */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none !important; }
.card .cover { box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; font-size: 18px; }
.card:hover .cover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(76,29,149,.45); }
.card__title { font-weight: 700; font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { color: var(--sfm-violet); }
.card__meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Latest updates list ---------- */
.updates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.update { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.update:hover { border-color: #d6ccef; box-shadow: var(--shadow); }
.update .cover { font-size: 8px; border-radius: 8px; }
.update__title { display: block; font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update__ch { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14.5px; font-weight: 600; }
.update__ch::before { content: "NEW"; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 1px 6px; border-radius: 4px; background: rgba(249,115,22,.18); color: #fdba74; }
.update__meta { font-size: 13px; color: var(--muted); }

/* ---------- Ranking ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank li { counter-increment: rank; }
.rank a { display: grid; grid-template-columns: 34px 48px 1fr; gap: 12px; align-items: center; padding: 9px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.rank a:hover { background: var(--surface-2); }
.rank a::before { content: counter(rank); font-family: var(--font-head); font-weight: 800; font-size: 24px; text-align: center; color: #c4bcd8; }
.rank li:nth-child(-n+3) a::before { background: var(--sfm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank .cover { font-size: 6px; border-radius: 6px; }
.rank b { display: block; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank small { color: var(--muted); font-size: 13px; }

/* ---------- Genre chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.chip:hover, .chip.is-active { border-color: transparent; background: var(--sfm-grad); color: #fff; }
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover small, .chip.is-active small { color: rgba(255,255,255,.8); }
.genre-tiles { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.genre-tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px 16px; min-height: 96px; color: #fff; text-decoration: none !important; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(140deg, var(--h1, #4c1d95), var(--h2, #f97316)); }
.genre-tile::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.14); }
.genre-tile b { font-family: var(--font-head); font-size: 20px; line-height: 1.1; }
.genre-tile span { font-size: 13px; opacity: .85; }

/* ---------- Continue reading ---------- */
.continue { display: none; }
.continue.is-on { display: block; }
.continue__list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.continue__item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sfm-orange); color: var(--ink); text-decoration: none !important; }
.continue__item b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue__item span { font-size: 14px; color: var(--sfm-violet); font-weight: 600; }

/* ---------- App band ---------- */
.app-band { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 20px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(249,115,22,.55), transparent 70%), linear-gradient(120deg, #1e0b3a, #4c1d95 60%, #7e1d58); }
.app-band img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.app-band h2 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.app-band p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- Novel page ---------- */
.novel-hero { position: relative; overflow: hidden; color: #fff; background: var(--sfm-night); }
.novel-hero__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.novel-hero__bg--gen { background: linear-gradient(140deg, var(--h1), var(--h2)); filter: none; opacity: .7; }
.novel-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,7,37,.35), rgba(18,7,37,.92)); }
.novel-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 34px 16px 36px; align-items: end; }
.novel-hero .cover { font-size: 22px; box-shadow: 0 30px 60px -18px rgba(0,0,0,.7); }
.novel-hero .crumbs, .novel-hero .crumbs a { color: rgba(255,255,255,.7); }
.novel-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 6px 0 8px; }
.novel-hero__by { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.novel-hero__alt { font-weight: 700; color: #fcd34d; }
.novel-about { margin: 14px 0 12px; color: var(--ink-2); font-size: 16px; }
.novel-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.novel-facts div { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.novel-facts dt { font-size: 12.5px; color: var(--muted); }
.novel-facts dd { margin: 0; font-weight: 700; font-size: 15px; }
.novel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.novel-tags a, .novel-tags span { font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.16); }
.novel-tags .is-done { background: #059669; border-color: #059669; }
.novel-tags .is-ongoing { background: rgba(249,115,22,.9); border-color: transparent; }
.novel-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 22px; }
.novel-stats div { display: flex; flex-direction: column; }
.novel-stats b { font-family: var(--font-head); font-size: 26px; line-height: 1; }
.novel-stats span { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 4px; }
.novel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.novel-body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.synopsis { position: relative; font-size: 17.5px; color: var(--ink-2); }
.synopsis.is-clamped { max-height: 9.6em; overflow: hidden; }
.synopsis.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--surface)); }
.more-btn { border: 0; background: none; color: var(--sfm-violet); font-weight: 700; padding: 6px 0; cursor: pointer; }
.chapters-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.ranges a { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.ranges a.is-active, .ranges a:hover { background: var(--sfm-violet); color: #fff; }
.chapter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.chapter-list a { display: flex; align-items: baseline; gap: 10px; padding: 11px 6px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.chapter-list a:hover { color: var(--sfm-violet); background: var(--surface-2); }
.chapter-list .no { flex: 0 0 auto; min-width: 42px; font-weight: 800; color: var(--muted); font-size: 14px; }
.chapter-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-list .d { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }
.chapter-list a.is-read .t { color: var(--muted); }
.chapter-list a.is-read .no::after { content: " ✓"; color: #059669; }
.newest { display: grid; gap: 8px; }
.newest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(249,115,22,.12); color: #fdba74; font-weight: 600; text-decoration: none; }
.newest a:hover { background: rgba(249,115,22,.22); }
.newest small { color: #fb923c; font-weight: 500; white-space: nowrap; }

/* ---------- Reader ---------- */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, #fbbf24, #f97316, #c026d3); transition: width .1s linear; }
.reader-bar { position: sticky; top: 66px; z-index: 40; background: var(--r-bg); border-bottom: 1px solid var(--r-line, var(--line)); }
.reader-bar__row { display: flex; align-items: center; gap: 12px; height: 52px; }
.reader-bar__novel { flex: 1; min-width: 0; font-weight: 700; color: var(--r-ink, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-bar__novel small { font-weight: 500; color: var(--r-muted, var(--muted)); margin-left: 6px; }
.reader-bar .icon-btn { background: var(--r-soft, var(--surface-2)); color: var(--r-ink, var(--ink)); width: 38px; height: 38px; }
.reader-panel { display: none; position: absolute; right: 16px; top: 56px; width: 300px; padding: 16px; border-radius: 16px; background: var(--surface-2); color: var(--r-ink, var(--ink)); border: 1px solid var(--r-line, var(--line)); box-shadow: 0 20px 50px -12px rgba(0,0,0,.35); }
.reader-panel.is-open { display: block; }
.reader-panel h3 { font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--r-muted, var(--muted)); margin: 6px 0 8px; font-family: var(--font-ui); }
.rp-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.rp-row button { flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid var(--r-line, var(--line)); background: var(--r-soft, var(--surface-2)); color: var(--r-ink, var(--ink)); font-weight: 700; cursor: pointer; }
.rp-row button.is-active { border-color: var(--sfm-orange); box-shadow: inset 0 0 0 1px var(--sfm-orange); }
.rp-row output { min-width: 48px; text-align: center; font-weight: 700; }
.rp-theme[data-theme="light"] { background: #fff !important; color: #1f1b2d !important; }
.rp-theme[data-theme="sepia"] { background: #f4ecd8 !important; color: #3b2f20 !important; }
.rp-theme[data-theme="dark"] { background: #16131f !important; color: #e8e3f3 !important; }

.reader { --r-size: 20px; --r-lh: 1.95; max-width: 760px; margin: 0 auto; }
.chapter-head { text-align: center; padding: 26px 0 8px; }
.chapter-head__novel { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: .3px; color: var(--sfm-violet); margin-bottom: 6px; }
.chapter-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; color: var(--r-ink, var(--ink)); }
.chapter-head__meta { font-size: 14px; color: var(--r-muted, var(--muted)); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.chapter-text { font-size: var(--r-size); line-height: var(--r-lh); color: var(--r-ink); padding: 10px 0 8px; word-wrap: break-word; }
.chapter-text p { margin: 0 0 1.05em; }
.chapter-text hr, .chapter-text .sfm-break { border: 0; text-align: center; margin: 1.6em 0; }
.chapter-text hr::before { content: "✦  ✦  ✦"; color: var(--r-muted, var(--muted)); letter-spacing: 6px; }
.chapter-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 26px 0; }
.chapter-nav .btn { padding: 14px 16px; }
.chapter-nav .btn--ghost { background: var(--r-soft, var(--surface)); color: var(--r-ink, var(--ink)); border-color: var(--r-line, var(--line)); }
.chapter-nav__next { justify-self: end; }
.chapter-end { text-align: center; color: var(--r-muted, var(--muted)); font-size: 14px; margin-top: 8px; }
.promo { display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin: 22px 0; border-radius: 16px; background: var(--sfm-grad-soft); border: 1px solid rgba(109,40,217,.18); color: var(--r-ink, var(--ink)); }
.promo img { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; }
.promo p { margin: 0 0 6px; font-weight: 600; }
.mobile-reader-nav { display: none; }

/* Reader themes: dark is the site default; light / sepia are opt-in from the reading panel. */
html.r-light { --bg: #f6f4fa; --surface: #ffffff; --surface-2: #f1edf8; --line: #e7e2f0; --ink: #1b1530; --ink-2: #3d3654; --muted: #6e6886; --link: #6d28d9; --r-bg: #ffffff; --r-ink: #23202f; --r-muted: #6e6886; --r-line: #e7e2f0; --r-soft: #f1edf8; --shadow: 0 1px 2px rgba(27,21,48,.06), 0 8px 24px -12px rgba(27,21,48,.18); }
html.r-sepia { --bg: #f4ecd8; --surface: #fbf5e6; --surface-2: #efe4cc; --line: #e2d5b8; --ink: #3b2f20; --ink-2: #54442f; --muted: #7b6a52; --link: #7c3a12; --r-bg: #f4ecd8; --r-ink: #3b2f20; --r-muted: #7b6a52; --r-line: #e2d5b8; --r-soft: #ece0c4; --shadow: 0 1px 2px rgba(59,47,32,.08), 0 8px 24px -12px rgba(59,47,32,.2); }
html.r-light .search-form, html.r-sepia .search-form { background: var(--surface); }
html.r-light .newest a, html.r-sepia .newest a { background: #fff7ed; color: #9a3412; }
html.r-light .newest small, html.r-sepia .newest small { color: #c2410c; }
html.r-light .update__ch::before, html.r-sepia .update__ch::before { background: #fff1e6; color: #c2410c; }
html.r-light .card__title, html.r-sepia .card__title { color: var(--ink); }
html.r-light .site-footer { background: #1a1030; }
html.r-sepia .site-footer { background: #2b2216; }

/* ---------- Ads ---------- */
.sfm-ad { margin: 22px auto; text-align: center; min-height: 100px; }
.sfm-ad__label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.chapter-text .sfm-ad { margin: 1.6em auto; }

/* ---------- Archive ---------- */
.archive-head { padding: 28px 0 8px; }
.archive-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.archive-head p { color: var(--muted); max-width: 760px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.tabs a { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.tabs a.is-active { background: var(--sfm-night-2); color: #fff; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current { background: var(--sfm-grad); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); }

/* ---------- Article / pages ---------- */
.article { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 44px); }
.article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.article .entry { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.article .entry h2 { margin-top: 1.4em; font-size: 26px; }
.article .entry h3 { margin-top: 1.2em; }
.article .entry ul, .article .entry ol { padding-left: 1.3em; }
.article .entry img { border-radius: 12px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; }
.post-card__img { aspect-ratio: 16/9; background: var(--sfm-grad); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 14px 16px 18px; }
.post-card h3 { font-size: 19px; margin: 0 0 6px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Comments ---------- */
.comments { max-width: 760px; margin: 30px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.comment-list .children { list-style: none; padding-left: 18px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.comment-form textarea { height: 120px; }
.comment-form .submit { border: 0; border-radius: 999px; padding: 11px 22px; background: var(--sfm-grad); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sfm-night); color: rgba(255,255,255,.75); padding: 44px 0 22px; margin-top: 20px; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-about p { max-width: 360px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.made-in { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
	.two-col { grid-template-columns: 1fr 330px; }
}
@media (max-width: 900px) {
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sfm-night); padding: 10px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
	.menu-toggle { display: inline-grid; }
	.header-app { display: none; }
	.hero__inner { grid-template-columns: 1fr; padding: 36px 16px 40px; }
	.hero__stack { display: none; }
	.grid, .grid--5, .grid--4 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 12px; }
	.updates { grid-template-columns: 1fr; }
	.two-col, .novel-body { grid-template-columns: 1fr; }
	.genre-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.continue__list { grid-template-columns: 1fr; }
	.post-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.header-row { height: 58px; }
	.brand img { width: 36px; height: 36px; }
	.brand__name { font-size: 21px; }
	.reader-bar { top: 60px; }
	.section { margin: 28px 0; }
	.section__title { font-size: 21px; }
	.grid, .grid--5, .grid--4 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px 10px; }
	.card__meta span + span { display: none; }
	.card .cover { font-size: 12px; }
	.card__title { font-size: 14.5px; }
	.card__meta { font-size: 12px; }
	.genre-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.novel-hero__inner { grid-template-columns: 112px 1fr; gap: 16px; padding: 22px 16px 24px; align-items: start; }
	.novel-hero .cover { font-size: 11px; }
	.novel-hero h1 { font-size: 26px; }
	.novel-stats { gap: 18px; }
	.novel-stats b { font-size: 21px; }
	.novel-actions, .novel-hero .novel-stats { grid-column: 1 / -1; }
	.novel-actions .btn { flex: 1; }
	.chapter-list { grid-template-columns: 1fr; }
	.app-band { grid-template-columns: auto 1fr; padding: 20px; }
	.app-band .btn { grid-column: 1 / -1; }
	.chapter-nav { display: none; }
	.mobile-reader-nav { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--r-bg, #fff); border-top: 1px solid var(--r-line, var(--line)); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transition: transform .25s ease; }
	.mobile-reader-nav.is-hidden { transform: translateY(110%); }
	.mobile-reader-nav .btn { padding: 11px 8px; font-size: 15px; }
	.mobile-reader-nav .btn--ghost { background: var(--r-soft, var(--surface-2)); color: var(--r-ink, var(--ink)); border-color: transparent; }
	.mobile-reader-nav .icon-btn { width: 44px; height: 44px; background: var(--r-soft, var(--surface-2)); color: var(--r-ink, var(--ink)); }
	body.single-chapter .site-footer { padding-bottom: 90px; }
	.reader-panel { left: 12px; right: 12px; width: auto; position: fixed; top: auto; bottom: 76px; }
	.post-list { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.toolbar { flex-direction: column; align-items: stretch; }
	.tabs { overflow-x: auto; flex-wrap: nowrap; }
	.tabs a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .reader-bar, .sfm-ad, .chapter-nav, .mobile-reader-nav, .promo { display: none !important; } }

/* ---------- v1.1: chapter heading + homepage about ---------- */
.chapter-head h1 .chapter-head__novel { display: block; font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: .3px; margin-bottom: 6px; }
.chapter-head h1 .chapter-head__title { display: block; }
.home-about { margin-top: 36px; }
.home-about > p { color: var(--ink-2); font-size: 16.5px; max-width: 900px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 14px; align-items: start; }
.faq h3 { font-family: var(--font-ui); font-size: 17px; font-weight: 700; margin: 12px 0 4px; }
.faq p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* =====================================================================
   v1.2 — cinematic dark layer
   ===================================================================== */
body { background: var(--bg); background-image: radial-gradient(900px 500px at 80% -5%, rgba(124,58,237,.12), transparent 60%); background-repeat: no-repeat; }
html.r-light body, html.r-sepia body { background-image: none; }
.site-header { background: rgba(12,7,22,.92); }

/* Compact hero + search */
.hero { background: radial-gradient(800px 320px at 85% -20%, rgba(249,115,22,.35), transparent 60%), radial-gradient(700px 360px at 5% 120%, rgba(192,38,211,.3), transparent 60%), #0c0716; }
.hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 34px 16px 30px; gap: 0; }
.hero h1 { font-size: clamp(26px, 4.2vw, 42px); margin-bottom: 8px; }
.hero__sub { font-size: 17px; margin: 0 auto 18px; max-width: 640px; }
.hero .search-form { width: 100%; max-width: 640px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.hero .search-form input[type="search"], .search-form input[type="search"] { color: var(--ink); }
.hero .search-form input::placeholder { color: rgba(255,255,255,.55); }
.hero__chips { justify-content: center; }

/* Cards: cover + title only */
.card .cover__genre, .card .cover__brand, .card .cover__badge { display: none; }
.card .cover--gen { justify-content: center; align-items: center; text-align: center; }
.card__media { position: relative; display: block; }
.card__title { color: var(--ink); }
.card:hover .card__title { color: #fff; }
.card:hover .cover { box-shadow: 0 18px 36px -14px rgba(139,92,246,.6); }
.card__rank { position: absolute; left: -4px; bottom: -6px; z-index: 3; font: 800 54px/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.9); text-shadow: 0 4px 16px rgba(0,0,0,.7); pointer-events: none; }

/* Horizontal rows */
.row__wrap { position: relative; }
.row__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.row__track::-webkit-scrollbar { display: none; }
.row__item { flex: 0 0 168px; scroll-snap-align: start; min-width: 0; }
.row__nav { position: absolute; top: 38%; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(12,7,22,.85); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.row__nav svg { width: 20px; height: 20px; }
.row__nav--prev { left: -10px; } .row__nav--next { right: -10px; }
.row__wrap:hover .row__nav { opacity: 1; }
.row__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.row[data-rank] .row__item { flex-basis: 190px; }

/* Featured slider */
.featured { position: relative; overflow: hidden; background: #0c0716; border-bottom: 1px solid var(--line); }
.featured__track { display: flex; transition: transform .6s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.slide { position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden; }
.slide__bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.2) brightness(.45); transform: scale(1.1); }
.slide__bg--gen { filter: none; background: linear-gradient(135deg, var(--h1), var(--h2)); opacity: .55; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,7,22,.85), rgba(12,7,22,.2) 60%, rgba(12,7,22,.6)), linear-gradient(0deg, rgba(12,7,22,.9), transparent 40%); pointer-events: none; }
.slide__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: center; padding: 36px 16px 48px; color: #fff; }
.slide__cover { display: block; width: 190px; transform: rotate(-2deg); transition: transform .3s; }
.slide__cover:hover { transform: rotate(0) scale(1.03); }
.slide__cover .cover { box-shadow: 0 24px 50px -18px rgba(0,0,0,.9); }
.slide__cover .cover__badge, .slide__cover .cover__brand { display: none; }
.slide__kicker { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--sfm-grad); margin-bottom: 10px; }
.slide__title { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin: 0 0 10px; }
.slide__title a { color: #fff; text-decoration: none; }
.slide__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.slide__tags a { color: #fff; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); text-decoration: none; }
.slide__desc { max-width: 620px; color: rgba(255,255,255,.85); font-size: 16.5px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.featured__dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.featured__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; }
.featured__dots button.is-active { width: 26px; background: var(--sfm-amber); }
.featured__nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(12,7,22,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.featured__nav svg { width: 20px; height: 20px; }
.featured__nav--prev { left: 14px; } .featured__nav--next { right: 14px; }
.featured__nav:hover { background: rgba(12,7,22,.9); }

/* Continue reading + library */
.continue__item { background: var(--surface); }
.continue__item span { color: #c4b5fd; }
.library .row__item { flex-basis: 140px; }
.card__remove { display: none; }

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); overflow: hidden; font-size: 13px; font-weight: 800; }
.lang-switch a, .lang-switch span { padding: 6px 11px; color: rgba(255,255,255,.75); text-decoration: none; line-height: 1; }
.lang-switch .is-active { background: var(--sfm-grad); color: #fff; }
.lang-switch a:hover { color: #fff; }

/* Pending translation notice */
.sfm-pending { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); color: var(--ink); font-size: 15px; }

/* App promotion */
.app-band { background: radial-gradient(500px 220px at 100% 0%, rgba(249,115,22,.5), transparent 70%), linear-gradient(120deg, #1e0b3a, #4c1d95 60%, #7e1d58); border: 1px solid rgba(255,255,255,.1); }
.promo { background: var(--surface); border-color: var(--line); color: var(--ink); }
.promo__sub { font-weight: 400 !important; color: var(--muted); font-size: 15px; }
.promo--side { flex-direction: column; text-align: center; margin-top: 22px; }
.sticky-app { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 70; display: none; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: rgba(24,16,39,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 34px rgba(0,0,0,.6); backdrop-filter: blur(10px); color: #fff; }
.sticky-app.is-on { display: flex; animation: sfm-up .35s ease; }
.sticky-app img { border-radius: 9px; flex: 0 0 auto; }
.sticky-app__txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sticky-app__x { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer; }
@keyframes sfm-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.app-page { max-width: 760px; margin: 0 auto; }

/* Dark fixes */
.chapter-head__novel { color: #c4b5fd; }
.rank, .update, .newest a, .tabs a { color: var(--ink); }
.tabs a.is-active { background: var(--sfm-violet); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], input[type="text"], input[type="email"], input[type="search"], textarea, select { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.site-footer { background: #07040e; border-top: 1px solid var(--line); }
html.r-light .card__title, html.r-sepia .card__title, html.r-light .card:hover .card__title, html.r-sepia .card:hover .card__title { color: var(--ink); }
html.r-light .card__rank, html.r-sepia .card__rank { -webkit-text-stroke-color: #fff; }

@media (max-width: 860px) {
	.slide__inner { grid-template-columns: 110px 1fr; gap: 16px; padding: 22px 16px 40px; align-items: start; }
	.slide__cover { width: 110px; }
	.slide__desc { -webkit-line-clamp: 2; font-size: 14.5px; }
	.slide__title { font-size: 24px; }
	.featured__nav { display: none; }
	.row__item { flex-basis: 128px; }
	.row[data-rank] .row__item { flex-basis: 140px; }
	.row__nav { display: none; }
	.card__rank { font-size: 42px; }
	.header-app { display: none; }
	.sticky-app.is-on { display: flex; }
}
@media (min-width: 861px) { .sticky-app { display: none !important; } }
@media (max-width: 520px) { .slide__actions .btn { padding: 9px 14px; font-size: 14px; } }
