:root {
  color-scheme: dark;
  --ink: #0c0b12;
  --ink-soft: #11101a;
  --panel: #171522;
  --panel-raised: #201d2e;
  --paper: #f3efff;
  --muted: #a8a4b8;
  --muted-dark: #777285;
  --line: rgba(237, 231, 255, .12);
  --line-bright: rgba(237, 231, 255, .22);
  --violet: #a676ff;
  --violet-bright: #bf97ff;
  --blue: #64baff;
  --pink: #ef72d6;
  --gold: #e6bf79;
  --green: #78d8b1;
  --danger: #ff858e;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 13px;
  --shadow-deep: 0 26px 80px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.22, .7, .26, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--ink); font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Arial, sans-serif; font-size: 16px; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #130e1c; background: var(--violet-bright); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; right: 12px; padding: 10px 16px; border-radius: 10px; color: var(--ink); background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(12,11,18,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.header-inner { width: min(1440px, calc(100% - 64px)); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 195px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; filter: drop-shadow(0 0 12px rgba(166,118,255,.4)); }
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.brand-name { display: grid; direction: ltr; line-height: .92; letter-spacing: .055em; }
.brand-name strong { background: linear-gradient(90deg, var(--pink), var(--blue)); background-clip: text; color: transparent; font-family: Inter, sans-serif; font-size: 17px; font-weight: 800; }
.brand-name em { margin-top: 4px; color: var(--pink); font-family: Inter, sans-serif; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .18em; }
.primary-nav { display: flex; flex: 1; justify-content: center; gap: 8px; }
.nav-link { position: relative; padding: 11px 15px; color: var(--muted); font-size: 14px; transition: color .2s var(--ease); }
.nav-link::after { position: absolute; right: 15px; bottom: 2px; left: 15px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--paper); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 210px; }
.icon-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.search-shortcut > span:first-child { color: var(--paper); font-size: 28px; line-height: .8; }
.shortcut-label { font-size: 13px; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 175px; color: var(--paper); font-size: 13px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot, .profile-avatar { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(188,154,255,.48); border-radius: 50%; color: #efe6ff; background: radial-gradient(circle at 30% 25%, #574174, #211a30 72%); font-size: 15px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; padding: 0 21px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s var(--ease); }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { color: #1a1129; background: linear-gradient(110deg, #c08dff 0%, #9c70ff 50%, #73aeff 100%); box-shadow: 0 8px 27px rgba(143, 101, 236, .21); }
.button-primary:hover:not(:disabled) { box-shadow: 0 12px 34px rgba(143, 101, 236, .33); }
.button-outline { border-color: rgba(183, 155, 255, .43); color: var(--paper); background: rgba(255,255,255,.02); }
.button-outline:hover:not(:disabled) { border-color: var(--violet-bright); background: rgba(166,118,255,.1); }
.button-glass { border-color: rgba(255,255,255,.2); color: var(--paper); background: rgba(255,255,255,.065); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.button-muted { color: var(--muted); background: rgba(255,255,255,.05); cursor: not-allowed; }
.button-quiet { color: var(--muted); background: transparent; }
.button-small { min-height: 38px; padding: 0 13px; border-radius: 10px; font-size: 12px; }
.text-link, .section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-bright); font-size: 14px; font-weight: 600; }
.text-link:hover, .section-link:hover { color: var(--blue); }

.site-main { min-height: 72vh; overflow: clip; }
.home-hero { position: relative; display: grid; min-height: min(700px, calc(100svh - 78px)); grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 48px; isolation: isolate; overflow: hidden; padding: 82px max(7vw, calc((100vw - 1320px)/2)); border-bottom: 1px solid var(--line); }
.hero-art-wrap, .hero-shade { position: absolute; z-index: -2; inset: 0; }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center 39%; opacity: .6; }
.hero-shade { z-index: -1; background: linear-gradient(270deg, rgba(12,11,18,.18) 0%, rgba(12,11,18,.76) 43%, #0c0b12 91%), linear-gradient(0deg, #0c0b12 0%, transparent 30%, rgba(9,8,13,.12) 80%); }
.hero-copy { max-width: 650px; padding-bottom: 26px; animation: rise-in .7s var(--ease) both; }
.eyebrow { margin: 0 0 11px; color: var(--violet-bright); font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.eyebrow-mark { margin-inline-end: 7px; color: var(--gold); }
.hero-copy h1, .page-intro h1 { margin: 0; font-size: clamp(45px, 6.3vw, 82px); font-weight: 700; letter-spacing: -.045em; line-height: 1.13; }
.hero-copy h1 span, .page-intro h1 span, .detail-copy h1 { background: linear-gradient(95deg, #f4e8ff 0%, #c9a4ff 47%, #8cc9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 510px; margin: 22px 0 25px; color: #c4bdce; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 9px; margin-top: 29px; color: #b3abbe; font-size: 12px; }
.proof-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); }
.hero-feature { width: 100%; max-width: 310px; justify-self: start; align-self: center; padding: 11px; border: 1px solid rgba(238,225,255,.26); border-radius: 17px; background: rgba(14,12,21,.58); box-shadow: 0 28px 90px rgba(0,0,0,.38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: rotate(-2deg); transition: transform .4s var(--ease); animation: rise-in .85s .12s var(--ease) both; }
.hero-feature:hover { transform: rotate(0); }
.featured-cover { position: relative; display: block; overflow: hidden; aspect-ratio: .82; border-radius: 10px; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-pill { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(12,11,18,.72); font-size: 10px; }
.featured-caption { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 5px 5px; }
.featured-caption > span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.featured-caption > strong { font-size: 14px; }
.featured-caption > a { align-self: center; color: var(--blue); font-size: 11px; }
.hero-scroll-note { position: absolute; right: max(3.5vw, 24px); bottom: 26px; display: flex; align-items: center; gap: 9px; color: #afa8bd; font-size: 10px; }
.scroll-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet)); }

.content-section { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2, .form-section-heading h2 { margin: 0; font-size: clamp(25px, 3.1vw, 36px); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.section-link { margin-bottom: 7px; white-space: nowrap; }
.series-shelf { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.series-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px 18px; }
.series-card { min-width: 0; animation: rise-in .55s var(--ease) both; animation-delay: calc(min(var(--card-index,0), 5) * 45ms); }
.series-cover { position: relative; display: block; overflow: hidden; aspect-ratio: .7; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: #211d2a; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.series-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease), filter .35s var(--ease); }
.series-card:hover .series-cover > img { filter: saturate(1.12); transform: scale(1.045); }
.cover-sheen { position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(8,7,12,.87), transparent); opacity: .82; }
.cover-badge { position: absolute; top: 11px; right: 11px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(12,11,18,.68); font-size: 9px; }
.cover-open { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; color: white; font-size: 11px; opacity: 0; transform: translateY(5px); transition: .2s var(--ease); }
.series-card:hover .cover-open, .series-card:focus-within .cover-open { opacity: 1; transform: translateY(0); }
.cover-open b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 16px; }
.series-card-copy { padding: 12px 2px 0; }
.series-card-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(120,216,177,.45); }
.status-completed { background: var(--blue); box-shadow: 0 0 8px rgba(100,186,255,.45); }
.status-hiatus { background: var(--gold); box-shadow: 0 0 8px rgba(230,191,121,.3); }
.card-chapters { margin-inline-start: auto; }
.series-card-copy h3 { overflow: hidden; margin: 5px 0 1px; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.series-card-copy p { overflow: hidden; margin: 0; color: var(--muted-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.continue-section { padding-top: 34px; padding-bottom: 36px; }
.continue-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.continue-card { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(115deg, rgba(32,29,46,.78), rgba(20,18,29,.72)); transition: border-color .2s, transform .2s; }
.continue-card:hover { border-color: rgba(190,151,255,.48); transform: translateY(-2px); }
.continue-card > img { width: 61px; height: 77px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.continue-meta { display: grid; min-width: 0; flex: 1; gap: 4px; color: var(--muted); font-size: 11px; }
.continue-meta strong { overflow: hidden; color: var(--paper); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.continue-arrow { color: var(--violet-bright); }
.reading-progress { width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: rgba(255,255,255,.12); }
.reading-progress::-webkit-progress-bar { border-radius: 99px; background: rgba(255,255,255,.12); }
.reading-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg,var(--violet),var(--blue)); }
.reading-progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg,var(--violet),var(--blue)); }

.feature-band { position: relative; display: grid; min-height: 340px; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; margin: 18px auto 24px; padding: 48px max(9vw, calc((100vw - 1220px)/2)); border-block: 1px solid rgba(197,163,255,.12); background: radial-gradient(ellipse at 26% 60%, rgba(128,78,182,.2), transparent 44%), linear-gradient(100deg, #14111c, #0e0d15); }
.feature-band-copy { position: relative; z-index: 1; max-width: 420px; }
.feature-icon { color: var(--pink); font-size: 32px; }
.feature-band-copy h2 { margin: 0 0 12px; font-size: clamp(32px,4.5vw,53px); line-height: 1.25; }
.feature-band-copy > p:not(.eyebrow) { max-width: 360px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.feature-band-art { position: relative; display: grid; width: 300px; height: 250px; place-items: center; justify-self: center; color: rgba(213,190,255,.72); }
.orbit { position: absolute; width: 224px; height: 224px; border: 1px solid rgba(175,129,255,.32); border-radius: 50%; }
.orbit-one { transform: scaleX(1.15) rotate(25deg); }
.orbit-two { border-color: rgba(99,178,255,.27); transform: scaleX(.62) rotate(-34deg); }
.feature-book { display: grid; width: 100px; height: 130px; place-items: center; border: 1px solid rgba(244,230,255,.45); border-radius: 6px 15px 15px 6px; color: #f2dfff; background: linear-gradient(145deg,#513a70,#171321 78%); box-shadow: 18px 20px 45px rgba(0,0,0,.46), inset 8px 0 0 rgba(255,255,255,.055); font-family: serif; font-size: 48px; transform: rotate(-12deg); }
.feature-star { position: absolute; color: var(--gold); font-size: 22px; }
.star-one { top: 27px; right: 61px; }
.star-two { bottom: 41px; left: 40px; color: var(--blue); }

.page-intro { position: relative; display: flex; min-height: 285px; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; padding: 58px max(8vw, calc((100vw - 1320px)/2)); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 90% 100%, rgba(113,75,173,.26), transparent 42%), linear-gradient(110deg, #12101a, #0d0c13 74%); }
.page-intro h1 { font-size: clamp(41px,5.4vw,67px); }
.page-intro > div > p:last-child { max-width: 560px; margin: 15px 0 0; color: var(--muted); }
.intro-mark { display: grid; width: 160px; height: 160px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(188,154,255,.2); border-radius: 50%; color: rgba(191,151,255,.68); font-size: 67px; box-shadow: 0 0 80px rgba(159,111,255,.09), inset 0 0 70px rgba(159,111,255,.06); }
.browse-shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 37px 0 80px; }
.filter-panel { display: grid; grid-template-columns: minmax(210px,1.6fr) repeat(3,minmax(140px,1fr)) auto; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.search-field { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--violet-bright); background: rgba(255,255,255,.025); }
.search-field > span { font-size: 26px; }
.search-field input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 13px; }
.filter-select { display: grid; min-width: 0; gap: 2px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 10px; }
.filter-select span { color: var(--muted-dark); font-size: 10px; }
.filter-select select, .profile-form select { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 12px; }
.filter-select select option, select option { color: var(--paper); background: #191722; }
.filter-panel > .button { min-height: 52px; padding-inline: 16px; font-size: 12px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; margin: 28px 1px 18px; color: var(--muted); font-size: 12px; }
.results-heading p { margin: 0; }
.results-heading strong { color: var(--paper); font-size: 16px; }
.results-heading > a { color: var(--violet-bright); }
.browse-grid { row-gap: 29px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 38px; color: var(--muted); font-size: 13px; }
.pagination a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--paper); }
.pagination a:hover { border-color: var(--violet); }

.series-breadcrumb-bar { display: flex; min-height: 61px; align-items: center; gap: clamp(12px,3vw,30px); overflow: hidden; padding: 0 max(5vw,24px); border-bottom: 1px solid var(--line); color: var(--muted); background: #0b0a11; white-space: nowrap; }
.series-breadcrumb-bar > span { color: var(--muted-dark); }
.series-breadcrumb-bar a:first-child { color: #cfc1f2; font-size: 19px; }
.series-breadcrumb-bar a:hover { color: var(--paper); }
.series-breadcrumb-bar [aria-current="page"] { overflow: hidden; color: var(--paper); text-overflow: ellipsis; }
.series-detail-hero { position: relative; isolation: isolate; overflow: hidden; padding: 46px 32px 27px; border-bottom: 1px solid var(--line); background: #080a14; }
.series-detail-backdrop { position: absolute; z-index: -2; inset: -35px; overflow: hidden; pointer-events: none; }
.series-detail-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; filter: blur(11px) saturate(1.25); opacity: .28; transform: scale(1.08); }
.series-detail-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(5,7,15,.82),rgba(5,7,15,.44) 55%,rgba(5,7,15,.77)),linear-gradient(0deg,#090a13 0%,transparent 55%,rgba(4,5,12,.3)); content: ""; pointer-events: none; }
.series-detail-glow { position: absolute; z-index: -1; top: -140px; left: -100px; width: 500px; height: 500px; border-radius: 50%; background: rgba(121,85,179,.14); filter: blur(90px); pointer-events: none; }
.series-detail-layout { position: relative; display: grid; width: min(1200px,100%); grid-template-columns: minmax(230px,310px) minmax(0,1fr); align-items: center; gap: clamp(28px,6vw,78px); margin: auto; direction: rtl; }
.detail-cover { position: relative; overflow: hidden; aspect-ratio: .7; margin: 0; border: 1px solid rgba(157,143,255,.54); border-radius: 21px; background: #11111b; box-shadow: 0 25px 70px rgba(0,0,0,.52),0 0 28px rgba(105,93,240,.12); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #fff; background: rgba(8,9,19,.79); font-size: 10px; }
.series-status-pill { display: inline-flex; min-height: 31px; align-items: center; gap: 8px; margin: 0 0 10px; padding: 3px 13px; border: 1px solid rgba(74,211,230,.47); border-radius: 999px; color: #c4f8ff; background: rgba(15,91,117,.16); font-size: 12px; }
.series-status-pill > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(120,216,177,.8); }
.detail-copy h1 { display: inline-block; margin: 0; font-size: clamp(37px,5vw,63px); line-height: 1.25; font-weight: 700; }
.alternate-title { margin: 4px 0 0; color: var(--muted-dark); font-family: Inter,sans-serif; font-size: 13px; }
.series-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 17px; color: #c7c6dc; font-size: 13px; }
.series-meta-line > span:first-child { color: #bdb4fa; font-size: 17px; }
.detail-description { max-width: 720px; margin: 19px 0 17px; color: #e0e0ed; font-size: 15px; line-height: 1.9; white-space: pre-line; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip { padding: 5px 12px; border: 1px solid rgba(133,117,245,.38); border-radius: 999px; color: #ddd5ff; background: rgba(69,50,160,.22); font-size: 11px; }
.tag-chip:hover { border-color: rgba(181,150,255,.76); background: rgba(95,71,204,.32); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-read-button { min-width: 220px; min-height: 59px; border-radius: 16px; color: #fff; background: linear-gradient(105deg,#6c48f6,#a24df2 60%,#7657ff); box-shadow: 0 10px 30px rgba(99,73,242,.27); font-size: 16px; }
.detail-read-button:hover:not(:disabled) { box-shadow: 0 13px 36px rgba(132,80,255,.4); }
.detail-actions .favorite-button { min-width: 210px; min-height: 56px; border-radius: 15px; border-color: rgba(176,174,221,.3); background: rgba(7,9,18,.42); }
.detail-more-button { width: 56px; min-height: 56px; padding: 0; border-radius: 14px; background: rgba(7,9,18,.42); letter-spacing: 2px; }
.favorite-button[data-saved="true"] { border-color: rgba(239,114,214,.48); color: #f3b5e7; }
.reading-guest-note { max-width: 680px; margin-top: 14px; }
.series-list-form { max-width: 560px; margin-top: 17px; }
.series-stat-bar { display: grid; width: min(1200px,100%); grid-template-columns: 1.2fr repeat(3,minmax(0,1fr)); margin: 23px auto 0; border: 1px solid rgba(124,137,193,.38); border-radius: 17px; background: rgba(7,9,19,.74); box-shadow: 0 13px 37px rgba(0,0,0,.2); }
.series-stat-bar > div { display: flex; min-width: 0; min-height: 94px; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-inline-start: 1px solid rgba(124,137,193,.2); }
.series-stat-bar > div:last-child { border-inline-start: 0; }
.series-stat-icon { color: #b7a7ff; font-size: 20px; }
.series-stat-item { display: grid !important; grid-template-columns: auto auto; gap: 1px 9px !important; align-content: center; justify-content: center !important; }
.series-stat-item .series-stat-icon { grid-row: span 2; align-self: center; }
.series-stat-item strong, .series-stat-rating > strong { color: #f5f3ff; font-size: 23px; line-height: 1.2; }
.series-stat-item > span:last-child, .series-stat-rating > span:not(.series-stat-icon) { color: #aaaac5; font-size: 11px; }
.series-stat-rating { flex-wrap: wrap; }
.series-rating-login { color: #c2a9ff; font-size: 10px; }
.series-stat-rating .rating-star { color: var(--gold); font-size: 27px; }
.rating-picker { display: flex; gap: 2px; }
.rating-picker button { padding: 0 3px; border: 0; color: #665c71; background: transparent; font-size: 19px; cursor: pointer; }
.rating-picker button:hover:not(:disabled), .rating-picker button.is-selected { color: var(--gold); transform: scale(1.1); }
.rating-picker button:disabled { cursor: not-allowed; }
.series-section-tabs { position: sticky; z-index: 10; top: 80px; display: flex; width: min(1200px,calc(100% - 64px)); justify-content: space-around; gap: 6px; margin: 25px auto 0; padding: 7px; border: 1px solid rgba(115,104,183,.29); border-radius: 15px; background: rgba(17,15,32,.92); box-shadow: 0 8px 25px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.series-section-tabs a { position: relative; flex: 1; padding: 10px 14px; color: #bcb6d3; text-align: center; font-size: 12px; }
.series-section-tabs a:hover, .series-section-tabs a.is-active { color: #fff; }
.series-section-tabs a.is-active::after { position: absolute; right: 15%; bottom: -8px; left: 15%; height: 3px; border-radius: 4px; background: linear-gradient(90deg,#6558ff,#a64eff); content: ""; }
.series-info-section { padding-block: 21px 30px; scroll-margin-top: 150px; }
.series-info-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 0; padding: 25px 28px 16px; border: 1px solid rgba(124,137,193,.32); border-radius: 19px; background: linear-gradient(145deg,rgba(12,15,29,.95),rgba(9,11,22,.97)); }
.series-info-column { display: grid; align-content: start; gap: 19px; padding-inline-end: 24px; }
.series-info-secondary { padding-inline: 24px 0; border-inline-start: 1px solid rgba(124,137,193,.19); }
.series-info-item { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.series-info-icon { width: 28px; flex: 0 0 28px; color: #b7a7ff; font-size: 19px; text-align: center; }
.series-info-item > span:last-child, .series-info-item > span:first-child:not(.series-info-icon) { display: grid; min-width: 0; gap: 2px; }
.series-info-item small { color: #aaaac5; font-size: 11px; }
.series-info-item strong { overflow-wrap: anywhere; color: #e5e4f2; font-size: 13px; font-weight: 500; }
.series-info-tags { display: block; }
.series-info-tags .tag-row { margin-top: 8px; }
.series-updated-note { grid-column: 1/-1; display: flex; align-items: center; gap: 9px; margin-top: 2px; padding: 12px 15px; border: 1px solid rgba(124,137,193,.25); border-radius: 12px; color: #bcb6d3; background: rgba(255,255,255,.018); font-size: 11px; }
.series-updated-note > span:first-child { color: #b7a7ff; font-size: 17px; }
.series-updated-note time { margin-inline-start: auto; color: #ded9ef; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 23px; margin: 21px 0; color: var(--muted); font-size: 11px; }
.detail-stats span { display: grid; gap: 2px; }
.detail-stats strong { color: var(--paper); font-size: 13px; font-weight: 600; }
.rating-star, .rating-picker button.is-selected { color: var(--gold); }
.chapter-section { padding-top: 54px; }
.chapter-section, #series-rating { scroll-margin-top: 155px; }
.chapter-total { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.chapter-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.chapter-row { display: flex; min-height: 79px; align-items: center; gap: 17px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); transition: background .18s; }
.chapter-row:last-child { border-bottom: 0; }
.chapter-row:hover { background: rgba(173,134,240,.055); }
.chapter-number { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; align-content: center; border: 1px solid var(--line); border-radius: 11px; color: var(--violet-bright); line-height: 1.1; }
.chapter-number span { font-size: 9px; }
.chapter-number strong { font-family: Inter,sans-serif; font-size: 15px; }
.chapter-info { display: grid; min-width: 0; flex: 1; }
.chapter-info > strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.chapter-info > span, .chapter-coming { color: var(--muted-dark); font-size: 10px; }
.chapter-open { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-bright); font-size: 12px; }
.chapter-coming { padding-inline: 11px; }

.empty-state { display: grid; justify-items: center; padding: 68px 20px; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 15px 0 4px; font-size: 21px; }
.empty-state p { max-width: 460px; margin: 4px 0 18px; color: var(--muted); font-size: 13px; }
.empty-orbit { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(185,149,255,.34); border-radius: 50%; color: var(--violet-bright); font-size: 32px; box-shadow: 0 0 36px rgba(160,113,255,.1); }
.compact-empty { padding-block: 39px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.012); }
.compact-empty h3 { margin-top: 0; }

.account-intro { min-height: 275px; }
.account-intro > .button { flex: 0 0 auto; }
.library-section { padding-top: 55px; padding-bottom: 48px; }
.lists-section { padding-top: 36px; }
.inline-create-form { display: flex; max-width: 540px; gap: 9px; margin-bottom: 18px; }
.inline-create-form input { flex: 1; }
.user-list-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.user-list-card { display: grid; min-height: 114px; align-content: start; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); transition: border-color .2s, transform .2s; }
.user-list-card:hover { border-color: rgba(185,149,255,.42); transform: translateY(-2px); }
.list-card-icon { color: var(--blue); font-size: 19px; }
.user-list-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-list-card > span:last-child { color: var(--muted-dark); font-size: 10px; }
.history-list { display: grid; gap: 9px; }
.history-row { display: flex; align-items: center; gap: 14px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); transition: border-color .18s, background .18s; }
.history-row:hover { border-color: rgba(182,144,247,.37); background: rgba(255,255,255,.04); }
.history-row > img { width: 47px; height: 59px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.history-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.history-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.history-copy > span, .history-copy small { color: var(--muted); font-size: 11px; }
.history-copy small { color: var(--muted-dark); }
.history-arrow { color: var(--violet-bright); }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 21px; }
.profile-side-card, .panel-card { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(31,28,44,.83),rgba(19,17,27,.86)); box-shadow: 0 15px 45px rgba(0,0,0,.12); }
.profile-side-card { display: grid; justify-items: start; }
.profile-avatar { width: 54px; height: 54px; font-size: 22px; }
.large-avatar { width: 75px; height: 75px; font-size: 29px; }
.profile-side-card h2 { margin: 12px 0 0; font-size: 18px; }
.profile-side-card > p { margin: 2px 0 18px; color: var(--muted); font-size: 12px; }
.profile-stats { display: flex; width: 100%; gap: 22px; margin-bottom: 20px; padding-block: 13px; border-block: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.profile-stats span { display: grid; gap: 2px; }
.profile-stats strong { color: var(--paper); font-size: 16px; }
.profile-form, .admin-form { display: grid; gap: 11px; }
.profile-form label:not(.toggle-row), .admin-form label:not(.toggle-row) { margin-top: 5px; color: #ddd7e7; font-size: 12px; font-weight: 500; }
.profile-form > small { margin-top: -9px; color: var(--muted-dark); font-size: 10px; }
.profile-form input:disabled { opacity: .7; }
.profile-form select { min-height: 45px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.toggle-row { display: flex; min-height: 58px; align-items: center; gap: 13px; cursor: pointer; }
.toggle-row > span:first-child { display: grid; flex: 1; gap: 2px; }
.toggle-row strong { color: var(--paper); font-size: 12px; }
.toggle-row small { color: var(--muted-dark); font-size: 10px; }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-visual { position: relative; width: 41px; height: 23px; flex: 0 0 auto; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(255,255,255,.08); transition: background .2s; }
.toggle-visual::after { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: #bab3c8; content: ""; transition: transform .2s var(--ease), background .2s; }
.toggle-row input:checked + .toggle-visual { border-color: rgba(185,149,255,.55); background: rgba(148,102,226,.29); }
.toggle-row input:checked + .toggle-visual::after { background: var(--violet-bright); transform: translateX(-17px); }
.toggle-row input:focus-visible + .toggle-visual { outline: 2px solid var(--blue); outline-offset: 3px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted-dark); font-size: 11px; }

.page-reader .site-header, .page-reader .site-footer { display: none; }
.reader-page { min-height: 100vh; padding-bottom: 22px; background: #08090f; }
.reader-toolbar { position: sticky; z-index: 15; top: 0; display: grid; min-height: 62px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 8px max(4vw,18px); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(13,12,17,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.reader-back { justify-self: start; color: var(--muted); font-size: 12px; }
.reader-title { display: grid; text-align: center; line-height: 1.45; }
.reader-title > a { font-size: 12px; font-weight: 600; }
.reader-title > span { color: var(--muted-dark); font-size: 10px; }
.reader-tools { display: flex; justify-self: end; gap: 5px; }
.reader-tool { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 10px; cursor: pointer; }
.reader-tool:hover { color: var(--paper); border-color: var(--violet); }
.reader-progress-track { position: sticky; z-index: 14; top: 62px; display: block; width: 100%; height: 3px; border: 0; appearance: none; background: rgba(255,255,255,.09); }
.reader-progress-track::-webkit-progress-bar { background: rgba(255,255,255,.09); }
.reader-progress-track::-webkit-progress-value { background: linear-gradient(90deg,var(--blue),var(--violet),var(--pink)); transition: width .18s; }
.reader-progress-track::-moz-progress-bar { background: linear-gradient(90deg,var(--blue),var(--violet),var(--pink)); }
.reader-chapter-menu { position: fixed; z-index: 31; top: 72px; left: 18px; display: grid; width: min(390px,calc(100vw - 28px)); max-height: min(74svh,650px); grid-template-rows: auto auto minmax(0,1fr); overflow: hidden; padding: 12px; border: 1px solid rgba(157,143,255,.42); border-radius: 15px; background: rgba(18,17,29,.98); box-shadow: var(--shadow-deep); font-size: 12px; }
.reader-chapter-menu[hidden] { display: none; }
.reader-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 3px 10px; }
.reader-menu-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-menu-heading button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.04); cursor: pointer; font-size: 21px; }
.reader-series-link { display: block; margin-bottom: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #c9b5ff; }
.reader-chapter-menu nav { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.reader-chapter-menu ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.reader-chapter-menu li a, .reader-chapter-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: #d5d1e1; }
.reader-chapter-menu li a:hover { border-color: rgba(157,143,255,.36); background: rgba(105,85,208,.13); }
.reader-chapter-current { border-color: rgba(157,143,255,.38); color: #fff; background: rgba(105,85,208,.17); }
.reader-chapter-current b { color: #c8b6ff; font-size: 9px; white-space: nowrap; }
.reader-stage { width: min(860px, 100%); margin: 0 auto; padding: 13px 12px; }
.reader-panel { position: relative; margin: 0 auto 11px; text-align: center; scroll-margin-top: 75px; }
.reader-panel img { width: auto; max-width: 100%; height: auto; max-height: 92svh; margin: 0 auto; object-fit: contain; }
.reader-panel figcaption { padding-top: 5px; color: #726b7b; font-size: 9px; }
.reader-panel-error { min-height: 250px; align-content: center; border: 1px dashed rgba(255,133,142,.4); border-radius: 13px; background: rgba(255,255,255,.015); }
.reader-image-error { display: grid; justify-items: center; gap: 8px; padding: 18px; color: #efb3bb; font-size: 12px; }
.reader-image-error p { margin: 0; }
.reader-page-mode .reader-stage { display: grid; min-height: calc(100svh - 175px); align-items: center; }
.reader-page-mode .reader-panel { margin: 0; }
.reader-page-mode .reader-panel img { max-height: calc(100svh - 180px); }
.reader-bottom-nav { display: flex; width: min(860px, calc(100% - 24px)); align-items: center; justify-content: space-between; gap: 12px; margin: 10px auto; padding: 0 5px; }
.reader-bottom-nav .button { min-height: 40px; font-size: 11px; }
.reader-page-count { color: var(--muted); font-size: 11px; }
.reader-community { width: min(800px, calc(100% - 32px)); margin: 50px auto 75px; padding-top: 35px; border-top: 1px solid var(--line); }
.comment-form, .comment-signin { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.comment-form > label { display: block; margin-bottom: 7px; font-size: 12px; }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form textarea, input, select, .admin-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-bright); border-radius: 9px; outline: 0; color: var(--paper); background: rgba(255,255,255,.035); font-size: 13px; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #81798e; }
input:focus, select:focus, textarea:focus { border-color: rgba(175,130,255,.65); box-shadow: 0 0 0 3px rgba(163,117,250,.1); }
.comment-list { display: grid; gap: 10px; margin-top: 18px; }
.comment-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.comment-item .comment-item { margin-top: 12px; margin-inline-start: 22px; border-inline-start: 2px solid rgba(167,120,244,.5); }
.comment-heading { display: flex; align-items: center; gap: 11px; }
.comment-heading strong { font-size: 12px; }
.comment-heading time { color: var(--muted-dark); font-size: 10px; }
.comment-body { margin: 8px 0 5px; color: #d1cbd9; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 10px; }
.comment-actions button { padding: 2px 0; border: 0; color: var(--violet-bright); background: transparent; font-size: 10px; cursor: pointer; }
.comment-actions button:last-child { color: #da8797; }
.reply-note { margin: 0 0 8px; color: var(--blue); font-size: 11px; }
.muted-copy { color: var(--muted-dark); font-size: 12px; }

.site-footer { padding: 32px 0 35px; border-top: 1px solid var(--line); background: #0a090f; }
.footer-inner { display: grid; width: min(1320px, calc(100% - 64px)); grid-template-columns: 1fr auto; gap: 12px 28px; align-items: center; margin: auto; }
.footer-brand { font-family: Inter,"IBM Plex Sans Arabic",sans-serif; font-size: 13px; font-weight: 700; }
.footer-brand span { color: var(--muted-dark); font-family: "IBM Plex Sans Arabic",sans-serif; font-size: 11px; font-weight: 400; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 11px; }
.footer-inner nav a:hover { color: var(--paper); }
.footer-inner > p { grid-column: 1/-1; margin: 6px 0 0; color: #716b7b; font-size: 10px; }
.site-toast { position: fixed; z-index: 80; right: 50%; bottom: 22px; max-width: min(460px, calc(100% - 28px)); padding: 12px 18px; border: 1px solid var(--line-bright); border-radius: 12px; color: var(--paper); background: #242030; box-shadow: var(--shadow-deep); font-size: 12px; opacity: 0; transform: translate(50%,16px); transition: .2s var(--ease); }
.site-toast.is-visible { opacity: 1; transform: translate(50%,0); }
.site-toast[data-kind="success"] { border-color: rgba(120,216,177,.45); }
.site-toast[data-kind="error"] { border-color: rgba(255,133,142,.5); }

.access-state { min-height: 64vh; align-content: center; }
.access-state h1 { max-width: 720px; margin: 6px 0; font-size: clamp(30px,5vw,50px); }
.access-state > p:not(.eyebrow) { max-width: 560px; }
.profile-intro .profile-avatar { width: 86px; height: 86px; }
.admin-intro { background: radial-gradient(ellipse at 88% 50%,rgba(118,75,190,.22),transparent 35%),linear-gradient(110deg,#13101c,#0d0c13 74%); }
.admin-shield { display: grid; width: 110px; height: 110px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(192,153,255,.35); border-radius: 27px; color: var(--gold); background: rgba(180,140,245,.07); box-shadow: 0 0 65px rgba(159,111,255,.11); font-size: 50px; transform: rotate(8deg); }
.admin-notice { display: flex; width: min(1320px, calc(100% - 64px)); gap: 14px; margin: 28px auto 0; padding: 13px 17px; border: 1px solid rgba(230,191,121,.24); border-radius: 11px; color: #e5d2a8; background: rgba(230,191,121,.055); font-size: 11px; }
.admin-notice strong { flex: 0 0 auto; }
.admin-notice p { margin: 0; color: #bdb3a1; }
.admin-grid { display: grid; width: min(1320px, calc(100% - 64px)); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px auto 0; }
.admin-form .form-section-heading { margin-bottom: 5px; }
.admin-form textarea { resize: vertical; }
.admin-form input[type=file] { padding: 8px; color: var(--muted); font-size: 11px; }
.admin-form > small { color: var(--muted-dark); font-size: 10px; }
.category-picker { grid-column: 1 / -1; min-width: 0; margin: 5px 0 0; padding: 0; border: 0; }
.category-picker legend { margin-bottom: 8px; color: #ddd7e7; font-size: 12px; font-weight: 600; }
.category-picker legend span { margin-inline-start: 7px; color: var(--muted-dark); font-size: 10px; font-weight: 400; }
.category-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.admin-form .category-option { display: flex; min-width: 0; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #d5cede; background: rgba(255,255,255,.025); font-size: 11px; cursor: pointer; transition: border-color .18s,background .18s,color .18s; }
.admin-form .category-option:has(input:checked) { border-color: rgba(175,130,255,.58); color: var(--paper); background: rgba(148,102,226,.12); }
.admin-form .category-option:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.admin-form .category-option input[type=checkbox] { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; padding: 0; border: 1px solid var(--line-bright); border-radius: 4px; background: rgba(255,255,255,.04); box-shadow: none; accent-color: var(--violet-bright); }
.admin-form .category-option input[type=checkbox]:focus { box-shadow: none; }
.category-picker-help { grid-column: 1 / -1; margin-top: -6px; }
.form-two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-two-col > div { min-width: 0; }
.form-two-col input, .form-two-col select { margin-top: 4px; }
.admin-existing { padding-top: 46px; }
.admin-series-list { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.admin-series-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.admin-series-row:last-child { border-bottom: 0; }
.admin-series-row > img { width: 39px; height: 49px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; }
.admin-series-row > span { display: grid; min-width: 0; flex: 1; }
.admin-series-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-series-row small { color: var(--muted-dark); font-size: 10px; }
.admin-row-actions { display: flex; gap: 13px; font-size: 10px; }
.admin-row-actions a { color: var(--blue); }
.admin-row-actions button { border: 0; color: var(--violet-bright); background: transparent; cursor: pointer; font: inherit; }
.admin-series-main { display: grid; min-width: 0; flex: 1; gap: 8px; }
.admin-series-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-series-heading > span { display: grid; min-width: 0; }
.admin-series-heading strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-series-heading small { color: var(--muted-dark); font-size: 10px; }
.admin-editor { border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.12); }
.admin-editor > summary { padding: 8px 10px; color: var(--violet-bright); font-size: 10px; cursor: pointer; }
.admin-editor > form { display: grid; gap: 8px; padding: 0 10px 11px; }
.admin-editor > form > label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.admin-editor > form input, .admin-editor > form textarea { min-height: 37px; padding: 7px 9px; font-size: 11px; }
.admin-editor > form textarea { min-height: 66px; }
.admin-editor > form small { color: var(--muted-dark); font-size: 9px; }
.admin-chapter-list { display: grid; gap: 6px; padding: 0 9px 10px; }
.admin-chapter-item { display: grid; grid-template-columns: auto minmax(90px,1fr) auto auto; align-items: center; gap: 6px; }
.admin-chapter-number { color: var(--muted-dark); font-size: 9px; white-space: nowrap; }
.admin-chapter-item input { min-width: 0; min-height: 31px; padding: 5px 7px; font-size: 10px; }
.admin-chapter-visibility { border: 0; color: var(--violet-bright); background: transparent; font-size: 9px; cursor: pointer; }
.admin-chapter-visibility:disabled { opacity: .55; }
.list-public-choice { display: flex; align-items: center; gap: 6px; padding-inline: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.list-public-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--violet); }
.profile-public-link { margin-top: 8px; }
.public-profile-intro { background: radial-gradient(ellipse at 89% 100%,rgba(109,71,173,.24),transparent 40%),linear-gradient(110deg,#12101a,#0d0c13 75%); }
.public-profile-avatar { width: 125px; height: 125px; flex: 0 0 auto; font-size: 48px; }
.policy-content { max-width: 920px; }
.policy-content h2 { margin: 35px 0 8px; font-size: 23px; }
.policy-content > p:not(.eyebrow) { max-width: 790px; color: #c4bdce; font-size: 14px; line-height: 2; }
.policy-content ul { display: grid; gap: 9px; max-width: 850px; padding-inline-start: 23px; color: #c4bdce; font-size: 14px; line-height: 1.9; }
.policy-content li::marker { color: var(--violet-bright); }
.policy-note { margin-block: 30px; color: var(--muted-dark) !important; font-size: 11px !important; }
.comment-item [data-comment-edit-form] { display: grid; gap: 8px; margin-top: 11px; }
.comment-item [data-comment-edit-form] textarea { min-height: 80px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .header-inner { width: min(100% - 40px, 1060px); gap: 14px; }
  .brand { min-width: 150px; }
  .header-actions { min-width: 165px; }
  .series-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .series-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .series-shelf .series-card:last-child { display: none; }
  .filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .search-field { grid-column: span 2; }
  .filter-panel > .button { grid-column: 3; grid-row: 2; }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 28px); min-height: 67px; gap: 6px; }
  .brand { min-width: auto; gap: 4px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark img { width: 31px; height: 31px; }
  .brand-name strong { font-size: 13px; }
  .brand-name em { font-size: 9px; }
  .primary-nav { gap: 0; }
  .nav-link { padding: 9px 8px; font-size: 11px; }
  .nav-link::after { right: 8px; left: 8px; }
  .header-actions { min-width: 0; gap: 7px; }
  .shortcut-label, .account-name { display: none; }
  .search-shortcut > span:first-child { font-size: 25px; }
  .header-actions .button-small { min-height: 34px; padding-inline: 9px; font-size: 10px; }
  .avatar-dot { width: 29px; height: 29px; }
  .home-hero { min-height: 650px; grid-template-columns: 1fr 160px; gap: 15px; padding: 48px 25px 57px; }
  .hero-art { object-position: 58% center; opacity: .45; }
  .hero-shade { background: linear-gradient(270deg,rgba(12,11,18,.29),rgba(12,11,18,.78) 57%,#0c0b12 100%),linear-gradient(0deg,#0c0b12,transparent 30%); }
  .hero-copy { max-width: 490px; }
  .hero-copy h1 { font-size: clamp(43px, 9vw, 67px); }
  .hero-description { font-size: 14px; }
  .hero-feature { max-width: 160px; padding: 7px; }
  .featured-caption > strong { font-size: 11px; }
  .featured-caption > a { font-size: 9px; }
  .hero-scroll-note { display: none; }
  .content-section, .browse-shell { width: calc(100% - 36px); padding-block: 52px; }
  .content-section.continue-section { padding-top: 24px; padding-bottom: 26px; }
  .section-heading { align-items: center; gap: 9px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 23px; }
  .section-link { font-size: 11px; }
  .series-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 11px; }
  .series-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .series-shelf .series-card:nth-child(n+4) { display: none; }
  .series-card-copy { padding-top: 8px; }
  .series-card-copy h3 { font-size: 12px; }
  .series-card-copy p, .series-card-top { font-size: 9px; }
  .cover-badge { top: 7px; right: 7px; font-size: 8px; }
  .continue-strip { grid-template-columns: 1fr; }
  .feature-band { min-height: 330px; grid-template-columns: 1fr .54fr; gap: 0; padding: 42px 26px; }
  .feature-band-copy h2 { font-size: 35px; }
  .feature-band-copy > p:not(.eyebrow) { font-size: 12px; }
  .feature-band-art { width: 190px; transform: scale(.76); transform-origin: center; }
  .page-intro { min-height: 235px; padding: 39px 26px; }
  .page-intro h1 { font-size: 42px; }
  .page-intro > div > p:last-child { max-width: 490px; font-size: 12px; }
  .intro-mark { width: 93px; height: 93px; font-size: 43px; }
  .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; gap: 8px; }
  .search-field { grid-column: 1/-1; }
  .filter-select { min-height: 49px; }
  .filter-panel > .button { grid-column: 1/-1; grid-row: auto; }
  .browse-grid { row-gap: 20px; }
  .results-heading { margin-block: 20px 13px; }
  .series-breadcrumb-bar { min-height: 52px; gap: 11px; padding-inline: 18px; font-size: 10px; }
  .series-detail-hero { padding: 28px 20px 23px; }
  .series-detail-layout { grid-template-columns: 140px minmax(0,1fr); align-items: start; gap: 19px; }
  .detail-cover { border-radius: 13px; }
  .series-status-pill { min-height: 26px; margin-bottom: 5px; font-size: 10px; }
  .series-meta-line { gap: 7px; margin: 7px 0 10px; font-size: 10px; }
  .detail-actions { margin-top: 14px; }
  .detail-read-button { min-width: 145px; min-height: 43px; font-size: 12px; }
  .detail-actions .favorite-button { min-width: 145px; min-height: 43px; font-size: 10px; }
  .detail-more-button { width: 42px; min-height: 43px; }
  .series-stat-bar { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 17px; }
  .series-stat-bar > div { min-height: 67px; padding: 8px; }
  .series-stat-bar > div:nth-child(2) { border-inline-start: 0; }
  .series-stat-bar > div:nth-child(-n+2) { border-bottom: 1px solid rgba(124,137,193,.2); }
  .series-stat-item strong, .series-stat-rating > strong { font-size: 17px; }
  .series-stat-icon { font-size: 16px; }
  .series-stat-rating .rating-star { font-size: 21px; }
  .rating-picker button { font-size: 15px; }
  .series-section-tabs { top: 67px; width: calc(100% - 36px); margin-top: 17px; }
  .series-section-tabs a { padding: 8px 6px; font-size: 10px; }
  .series-info-section { padding-block: 16px 22px; scroll-margin-top: 125px; }
  .series-info-card { gap: 17px 0; padding: 18px 16px 12px; }
  .series-info-column { gap: 15px; padding-inline-end: 13px; }
  .series-info-secondary { padding-inline: 13px 0; }
  .series-info-item { gap: 8px; }
  .series-info-icon { width: 22px; flex-basis: 22px; font-size: 15px; }
  .series-info-item small { font-size: 9px; }
  .series-info-item strong { font-size: 11px; }
  .breadcrumbs { gap: 6px; margin-bottom: 17px; font-size: 9px; }
  .detail-copy h1 { font-size: clamp(27px,6vw,44px); }
  .detail-description { margin-block: 12px; font-size: 12px; line-height: 1.85; }
  .detail-stats { gap: 11px; margin-block: 14px; font-size: 9px; }
  .detail-stats strong { font-size: 10px; }
  .detail-actions .button { min-height: 39px; padding-inline: 11px; font-size: 10px; }
  .rating-row { gap: 8px; margin-top: 14px; font-size: 9px; }
  .rating-picker button { font-size: 16px; }
  .chapter-row { min-height: 66px; gap: 10px; padding-inline: 10px; }
  .chapter-number { width: 39px; height: 42px; }
  .chapter-info > strong { font-size: 11px; }
  .chapter-info > span { font-size: 9px; }
  .account-intro { min-height: 220px; }
  .account-intro > .button { min-height: 40px; padding-inline: 11px; font-size: 10px; }
  .user-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side-card { grid-template-columns: 60px 1fr; align-items: center; gap: 0 12px; }
  .profile-side-card .large-avatar { grid-row: span 3; width: 56px; height: 56px; font-size: 22px; }
  .profile-side-card h2 { margin: 0; }
  .profile-side-card > p { margin: 0; }
  .profile-stats { grid-column: 1/-1; margin-top: 15px; }
  .profile-side-card > .text-link { grid-column: 1/-1; }
  .profile-form, .panel-card { padding: 18px; }
  .reader-toolbar { min-height: 58px; grid-template-columns: auto minmax(65px,1fr) auto; gap: 6px; padding-inline: 10px; }
  .reader-back { font-size: 10px; }
  .reader-back span { display: none; }
  .reader-title > a { font-size: 10px; }
  .reader-title > span { font-size: 9px; }
  .reader-tools { max-width: 48vw; flex-wrap: wrap; justify-content: end; gap: 3px; }
  .reader-tool { min-height: 31px; padding-inline: 7px; font-size: 9px; }
  .reader-mode-tool { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .reader-chapter-menu { top: 65px; left: 8px; }
  .reader-progress-track { top: 58px; }
  .reader-panel img { max-height: initial; }
  .reader-page-mode .reader-panel img { max-height: calc(100svh - 165px); }
  .reader-bottom-nav .button { min-height: 36px; padding-inline: 9px; font-size: 9px; }
  .admin-notice { display: grid; width: calc(100% - 36px); gap: 2px; }
  .admin-grid { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 14px; }
  .category-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-existing { padding-top: 31px; }
  .admin-shield { width: 73px; height: 73px; border-radius: 20px; font-size: 36px; }
  .admin-row-actions { gap: 8px; }
  .footer-inner { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 12px; }
  .footer-inner nav { gap: 12px; }
  .footer-inner > p { grid-column: auto; }
}
@media (max-width: 440px) {
  .brand-name { display: none; }
  .brand { min-width: 34px; }
  .nav-link { padding-inline: 6px; font-size: 10px; }
  .home-hero { min-height: 630px; grid-template-columns: minmax(0,1fr) 112px; gap: 8px; padding-inline: 18px; }
  .hero-feature { max-width: 112px; }
  .featured-pill { top: 6px; right: 5px; padding: 3px 6px; font-size: 7px; }
  .featured-caption { grid-template-columns: 1fr; }
  .featured-caption > a { margin-top: 3px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 41px; padding-inline: 12px; font-size: 11px; }
  .hero-proof { font-size: 9px; }
  .series-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .series-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .series-shelf .series-card:nth-child(n+3) { display: none; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band-art { position: absolute; left: -40px; bottom: -75px; opacity: .34; transform: scale(.7); }
  .page-intro { align-items: center; }
  .page-intro h1 { font-size: 35px; }
  .intro-mark { width: 62px; height: 62px; border: 0; font-size: 30px; }
  .series-breadcrumb-bar { min-height: 46px; gap: 8px; padding-inline: 12px; font-size: 9px; }
  .series-detail-hero { padding: 23px 14px 17px; }
  .series-detail-layout { grid-template-columns: 98px minmax(0,1fr); gap: 12px; }
  .detail-cover { border-radius: 10px; }
  .detail-copy h1 { font-size: clamp(24px,7vw,35px); }
  .detail-description { display: -webkit-box; overflow: hidden; margin-block: 9px 8px; font-size: 10px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; }
  .detail-actions { gap: 5px; margin-top: 10px; }
  .detail-read-button { min-width: 0; flex: 1; gap: 5px; padding-inline: 8px; font-size: 10px; }
  .detail-actions .favorite-button { min-width: 0; flex: 1; gap: 4px; padding-inline: 7px; font-size: 9px; }
  .detail-more-button { width: 37px; min-width: 37px; padding-inline: 4px; }
  .series-stat-bar > div { min-height: 58px; gap: 5px; }
  .series-stat-rating { gap: 5px !important; }
  .series-stat-rating .rating-picker { width: 100%; justify-content: center; }
  .series-info-card { grid-template-columns: 1fr; gap: 14px; padding: 15px 13px 10px; }
  .series-info-column, .series-info-secondary { padding: 0; border: 0; }
  .series-info-secondary { padding-top: 13px; border-top: 1px solid rgba(124,137,193,.19); }
  .series-updated-note { grid-column: auto; }
  .form-two-col { grid-template-columns: 1fr; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


.reading-guest-note {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border-inline-start: 3px solid var(--violet);
  border-radius: .65rem;
  background: rgba(166, 118, 255, .1);
  color: #ddd4ef;
  font-size: .92rem;
  line-height: 1.8;
}
.reader-guest-note-inline { max-width: 72rem; margin: .5rem auto 1rem; }
.series-list-form {
  display: grid;
  gap: .6rem;
  max-width: 34rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(166, 118, 255, .28);
  border-radius: 1rem;
  background: rgba(23, 21, 34, .78);
}
.series-list-form label { color: var(--paper); font-weight: 650; }
.series-list-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: center; }
.series-list-controls select {
  width: 100%; min-height: 2.9rem; padding: .7rem .85rem;
  border: 1px solid rgba(166, 118, 255, .42); border-radius: .7rem;
  background: var(--ink-soft); color: var(--paper); font: inherit;
}
.series-list-hint { color: var(--muted); line-height: 1.8; }
.series-list-hint a { color: var(--violet-bright); }
.list-item-wrap { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.list-remove-button { align-self: flex-start; }
.latest-chapter-link { display: flex; align-items: center; gap: .45rem; margin-top: .55rem; padding: .42rem .58rem; border: 1px solid rgba(166,118,255,.2); border-radius: 9px; color: #e1d5f7; background: rgba(166,118,255,.055); font-size: 10px; transition: border-color .2s, background .2s; }
.latest-chapter-link:hover { border-color: rgba(166,118,255,.55); background: rgba(166,118,255,.12); }
.latest-chapter-link > span:first-child { color: var(--muted-dark); }
.latest-chapter-link strong { font-weight: 600; }
.latest-chapter-arrow { margin-inline-start: auto; color: var(--blue); }

@media (max-width: 620px) {
  .series-list-controls { grid-template-columns: 1fr; }
  .series-list-form { padding: .85rem; }
}


/* Role separation and owner-only destructive controls */
.admin-role-badge { display: inline-flex; margin-top: 12px; padding: 6px 10px; border: 1px solid rgba(172,134,255,.35); border-radius: 999px; color: #d9c7ff; background: rgba(141,93,222,.12); font-size: 10px; }
.admin-user-management { padding-top: 28px; padding-bottom: 0; }
.admin-user-management > .panel-card { display: grid; max-width: 720px; gap: 10px; }
.admin-user-management .form-section-heading { margin-bottom: 2px; }
.admin-user-management .form-section-heading > p:last-child { max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.admin-user-management > .panel-card > label { color: #ddd7e7; font-size: 12px; }
.admin-user-search-status { min-height: 19px; margin: 0; color: var(--muted-dark); font-size: 11px; }
.admin-user-results { display: grid; gap: 8px; }
.admin-user-result { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.admin-user-identity { display: grid; min-width: 0; flex: 1; gap: 3px; }
.admin-user-identity strong { overflow: hidden; color: var(--paper); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-identity small, .admin-user-role-state { color: var(--muted-dark); font-size: 10px; }
.admin-delete-action { min-height: 31px; padding: 5px 9px; border: 1px solid rgba(255,116,135,.27); border-radius: 8px; color: #ff9eaa !important; background: rgba(169,42,67,.08) !important; font: inherit; font-size: 10px; cursor: pointer; }
.admin-delete-action:hover:not(:disabled) { border-color: rgba(255,116,135,.62); background: rgba(169,42,67,.16) !important; }
.admin-delete-action:disabled { cursor: wait; opacity: .6; }
.admin-chapter-item { grid-template-columns: auto minmax(90px,1fr) auto auto auto; }
.admin-row-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .admin-user-management { width: calc(100% - 36px); padding-top: 19px; }
  .admin-user-result { flex-wrap: wrap; gap: 7px 10px; }
  .admin-user-identity { flex-basis: calc(100% - 90px); }
  .admin-user-result > button { margin-inline-start: auto; }
  .admin-chapter-item { grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; }
  .admin-chapter-number, .admin-chapter-item input { grid-column: 1/-1; }
}

.admin-chapter-title { min-width: 0; overflow: hidden; color: var(--paper); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .admin-chapter-title { grid-column: 1/-1; } }
