/* Kitaplık: gece mürekkebi + seladon; tek sıcak vurgu zinober "mühür" (çeviri yüzdesi, yeni bölüm sayısı). */
:root {
  --read-size: 19px;
  --read-lh: 1.75;
  --radius: 8px;
  --ui: "Manrope", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --wrap: 76rem;
}
[data-theme="gece"] {
  --bg: #0f1918; --surface: #15211f; --surface-2: #1b2a27; --line: #263a36; --text: #ebe5d7; --muted: #90a39d;
  --link: #8fcdb6; --on-link: #0f1918; --seal: #e0603f; --seal-ink: #fff4ee; --bar: #263a36; --fill: #8fcdb6;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --hero-veil: rgba(15, 25, 24, .78); --max: #ffffff;
  color-scheme: dark;
}
[data-theme="siyah"] {
  --bg: #000000; --surface: #0d0f0f; --surface-2: #171a1a; --line: #242a29; --text: #d9d6cf; --muted: #8a918f;
  --link: #8fcdb6; --on-link: #000; --seal: #e0603f; --seal-ink: #fff4ee; --bar: #242a29; --fill: #8fcdb6;
  --shadow: 0 10px 30px rgba(0, 0, 0, .6); --hero-veil: rgba(0, 0, 0, .8); --max: #ffffff;
  color-scheme: dark;
}
[data-theme="alacakaranlik"] {
  --bg: #1d2127; --surface: #252a31; --surface-2: #2d333b; --line: #39414b; --text: #e3e0d8; --muted: #9aa3ad;
  --link: #9cc9e0; --on-link: #1d2127; --seal: #e08a5f; --seal-ink: #1d2127; --bar: #39414b; --fill: #9cc9e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4); --hero-veil: rgba(29, 33, 39, .8); --max: #ffffff;
  color-scheme: dark;
}
[data-theme="yesil"] {
  --bg: #dfe8d9; --surface: #eaf1e5; --surface-2: #d2ddc9; --line: #bccbb1; --text: #22311d; --muted: #566650;
  --link: #2f6a3f; --on-link: #f3f8ef; --seal: #b5482c; --seal-ink: #fff6f0; --bar: #bccbb1; --fill: #2f6a3f;
  --shadow: 0 10px 28px rgba(34, 49, 29, .14); --hero-veil: rgba(223, 232, 217, .82); --max: #0c140a;
  color-scheme: light;
}
[data-theme="kagit"] {
  --bg: #f3f5f2; --surface: #ffffff; --surface-2: #e9eeea; --line: #d6dfda; --text: #16302b; --muted: #5a6f69;
  --link: #1f6e57; --on-link: #ffffff; --seal: #c1432b; --seal-ink: #fff6f2; --bar: #d6dfda; --fill: #1f6e57;
  --shadow: 0 10px 28px rgba(22, 48, 43, .14); --hero-veil: rgba(243, 245, 242, .82); --max: #000000;
  color-scheme: light;
}
[data-theme="sepya"] {
  --bg: #efe3c8; --surface: #f7eedb; --surface-2: #e8d9b8; --line: #d9c7a1; --text: #3b2e1e; --muted: #77634a;
  --link: #8a4b1c; --on-link: #fff7ea; --seal: #b23a22; --seal-ink: #fff4ea; --bar: #d9c7a1; --fill: #8a4b1c;
  --shadow: 0 10px 28px rgba(59, 46, 30, .16); --hero-veil: rgba(239, 227, 200, .82); --max: #1d140a;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scrollbar-gutter: stable; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; background: var(--bg); color: var(--text); font: 16px/1.55 var(--ui); }
a, button, summary, label, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px;
}
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
main { flex: 1 0 auto; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4rem; }
img { max-width: 100%; }

/* --- üst çubuk --- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); height: 3.9rem; min-height: 3.9rem; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; flex: none; height: 2.45rem; white-space: nowrap; font: 700 1.24rem/1 var(--serif); color: var(--text); }
.brand .brand-name { display: inline-block; line-height: 1; transform: translateY(-.04em); }
.brand:hover { text-decoration: none; }
.logo { display: block; width: 2.3rem; height: 2.3rem; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18)); }
.login .logo { width: 2.65rem; height: 2.65rem; }
.brand-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 6px; background: var(--seal);
  color: var(--seal-ink); font: 700 1.05rem/1 var(--serif); transform: rotate(-6deg); }
.top-nav { display: flex; align-items: center; gap: .15rem; height: 2.2rem; flex: none; }
.top-nav a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 2.15rem; padding: 0 .68rem; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .9rem; line-height: 1; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.top-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.top-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.top-search { position: relative; margin: 0; display: flex; align-items: center; height: 2.2rem; flex: 0 0 14.5rem; width: 14.5rem; }
.top-search svg { position: absolute; left: .7rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.top-search input { width: 100%; height: 2.15rem; padding: 0 .8rem 0 2.15rem; border-radius: 999px; background: var(--bg); font-size: .88rem; line-height: 1; }
.top-tools { display: flex; align-items: center; gap: .45rem; height: 2.2rem; flex: none; white-space: nowrap; }
.top-tools form { display: inline-flex; align-items: center; height: 2.2rem; margin: 0; }
.icon-button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; border: 0;
  background: none; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mobile-menu-toggle { display: none; position: relative; }
.mobile-menu-toggle svg { width: 1.35rem; height: 1.35rem; stroke-linecap: round; }
.menu-dot { position: absolute; top: .36rem; right: .36rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 2px var(--surface); }
.avatar { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: hsl(var(--h, 160) 38% 34%); color: hsl(var(--h, 160) 60% 92%); font-weight: 800; font-size: .92rem; line-height: 1; }
img.avatar { object-fit: cover; padding: 0; border-radius: 50%; aspect-ratio: 1; }
.avatar-edit { position: relative; }
.avatar-change { position: absolute; right: -.15rem; bottom: -.15rem; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--link); color: var(--on-link); cursor: pointer; box-shadow: 0 0 0 3px var(--bg); }
.avatar-change svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.avatar-change:hover { filter: brightness(1.1); }
.avatar-change:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avatar.big { width: 5.5rem; height: 5.5rem; font: 700 2.4rem/1 var(--serif); }
.avatar-link { display: inline-flex; align-items: center; justify-content: center; height: 2.2rem; border-radius: 50%; }
.avatar-link:hover { text-decoration: none; filter: brightness(1.12); }
.link-button { display: inline-flex; align-items: center; justify-content: center; height: 2.15rem; background: none; border: 0; border-radius: 999px; color: var(--muted); font: 600 .9rem/1 var(--ui); cursor: pointer; padding: 0 .5rem; }
.link-button:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.foot { width: 100%; margin-top: auto; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, var(--bg)); color: var(--muted); font-size: .88rem; }
.foot p { margin: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.foot-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; min-width: 0; }
.foot-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.foot-brand:hover { text-decoration: none; }
.foot-brand .logo { width: 1.9rem; height: 1.9rem; }
.foot-wordmark { display: inline-flex; align-items: baseline; gap: .18rem; font: 800 1.25rem/1 var(--ui); letter-spacing: .02em; }
.foot-wordmark strong { color: var(--text); font-weight: 800; }
.foot-wordmark span { color: var(--seal); font-weight: 800; }
.foot-tagline { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 34ch; }
.foot-pillars { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .1rem; }
.foot-pillars span { display: inline-flex; align-items: center; justify-content: center; text-align: center;
  height: 1.72rem; padding: 0 .74rem; border-radius: 999px;
  font: 600 .75rem/1 var(--ui); color: var(--link);
  background: color-mix(in srgb, var(--link) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 25%, transparent); }
.foot-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .25rem; padding: .6rem 1.05rem;
  border-radius: 10px; font: 700 .86rem/1 var(--ui); color: var(--on-link);
  background: var(--link); box-shadow: 0 4px 14px color-mix(in srgb, var(--link) 25%, transparent);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.foot-cta:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--link) 35%, transparent); }
.foot-cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.foot-heading { margin: 0 0 .9rem; font: 800 .78rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.foot-col-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .58rem; }
.foot-col-links a { color: var(--muted); font-size: .88rem; font-weight: 500; transition: color .15s ease; }
.foot-col-links a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.foot-quality-note { color: var(--muted); opacity: .88; }
@media (max-width: 52rem) {
  .foot-in { padding: 2rem 1rem 1.4rem; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
  .foot-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* --- düğmeler, giriş alanları, çubuk --- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--link);
  color: var(--on-link); border: 0; border-radius: var(--radius); padding: .7rem 1.2rem; font: 700 .95rem var(--ui);
  cursor: pointer; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1px var(--link); color: var(--link); filter: none; }
.button.wide { width: 100%; padding: .85rem 1.2rem; font-size: 1rem; }
input, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .65rem .75rem; }
input:hover { border-color: color-mix(in srgb, var(--link) 45%, var(--line)); }
.bar { display: block; height: 6px; background: var(--bar); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--fill); border-radius: 3px; }
.bar.thin { height: 4px; margin: .45rem 0 .3rem; }
.error { color: var(--seal); margin: 0; font-weight: 600; }

/* --- giriş --- */
.login-page { min-height: 100vh; }
.login-page main { max-width: none; padding: 0; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 1fr); }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem; background: linear-gradient(160deg, #173330 0%, #0c1514 70%); color: #ebe5d7; }
.spines { position: absolute; left: 10%; right: 10%; top: 14%; bottom: 36%; display: flex; align-items: flex-end; gap: 3px; }
.spines span { flex: 1 1 0; border-radius: 2px 2px 0 0;
  background:
    linear-gradient(180deg, transparent 9%, rgba(235, 229, 215, .28) 9% 10.5%, transparent 10.5% 13%,
      rgba(235, 229, 215, .18) 13% 13.8%, transparent 13.8% 86%, rgba(235, 229, 215, .22) 86% 87.5%, transparent 87.5%),
    var(--spine, #27463f);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .06), inset -4px 0 0 rgba(0, 0, 0, .22); }
.spines span:nth-child(3n) { flex-grow: 1.5; --spine: #31564e; }
.spines span:nth-child(4n+1) { flex-grow: .8; --spine: #1f3a35; }
.spines span:nth-child(5n+2) { flex-grow: 1.25; --spine: #3c6158; }
.spines span:nth-child(6) { --spine: #d2553c; flex-grow: 1.3; }
.spines span:nth-child(11) { --spine: #b89b62; }
.spines span:nth-child(13) { transform: rotate(-7deg); transform-origin: bottom left; margin-left: 6px; }
.spines::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -12px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, #3a5a53, #22383400); }
.login-quote { position: relative; margin: 0; font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.25 var(--serif); max-width: 22ch; }
.login { display: flex; flex-direction: column; justify-content: center; width: min(26rem, 100%); margin: 0 auto;
  padding: 3rem 1.5rem; }
.login .brand { margin-bottom: 2.5rem; }
.login h1 { font-size: 2rem; margin: 0 0 .35rem; }
.login > .muted { margin: 0; }
.login-form { display: grid; gap: .45rem; margin-top: 2rem; }
.login-form label { font-size: .88rem; font-weight: 700; margin-top: .6rem; }
.login-form label:first-child { margin-top: 0; }
.login-form input { width: 100%; padding: .8rem .9rem; background: var(--surface); }
.login-form .button { margin-top: 1.1rem; }
.login-form .error { margin-top: .5rem; }
.password { position: relative; }
.password input { padding-right: 5rem; }
.reveal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--link); font: 700 .82rem var(--ui); padding: .45rem .6rem; border-radius: 6px; cursor: pointer; }
.reveal:hover { background: var(--surface-2); }
.login .login-note { margin-top: 1.5rem; }

/* --- ana sayfa: öne çıkan --- */
.hero { position: relative; margin: 1.5rem 0 0; border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.hero-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; filter: blur(36px) saturate(1.3); opacity: .55; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--hero-veil) 0%, var(--hero-veil) 45%, color-mix(in srgb, var(--hero-veil) 60%, transparent) 100%); }
.hero-in { display: grid; grid-template-columns: 11.5rem 1fr; gap: 2.25rem; align-items: center; padding: 2.25rem; }
.hero-cover { width: 11.5rem; }
.hero-cover img { box-shadow: var(--shadow); }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .85rem; font-weight: 700;
  color: var(--seal); }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 0 var(--seal); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0; letter-spacing: -.01em; }
.hero h1 a { color: var(--text); }
.hero-author { margin: .35rem 0 0; color: var(--muted); }
.hero .small-chips { margin-top: 1rem; }
.hero-progress { max-width: 30rem; margin-top: 1.25rem; }
.hero-progress p { margin: .5rem 0 0; color: var(--muted); }
.hero-progress strong { color: var(--text); }

.stats { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.stats li { background: var(--surface); padding: 1rem 1.25rem; display: grid; gap: .1rem; }
.stats strong { font: 700 1.55rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .85rem; }

.block { margin-top: 3rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.block-head h2 { margin: 0; }
.block-head h2::before { content: ""; display: inline-block; width: .3rem; height: .95em; margin-right: .6rem;
  border-radius: 2px; background: var(--seal); vertical-align: -.08em; }
.block.first { padding-top: 1.5rem; margin-top: 0; }

.continue { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.continue-card { display: flex; gap: .9rem; align-items: center; padding: .7rem; background: var(--surface);
  border-radius: 10px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.continue-card:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.continue-card img { width: 54px; height: 81px; object-fit: cover; border-radius: 4px; flex: none; }
.continue-card > span { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.continue-card strong { font-family: var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-card .bar.thin { margin: .35rem 0 0; }

/* son güncellenenler + yan sütun */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
.feed { list-style: none; margin: 0; padding: .35rem; background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); }
.feed li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .65rem .75rem; border-radius: 10px; transition: background-color .18s ease; cursor: pointer; }
.feed li + li::before { content: ""; position: absolute; left: .75rem; right: .75rem; top: 0; height: 1px;
  background: color-mix(in srgb, var(--line) 75%, transparent); pointer-events: none; transition: opacity .15s ease; }
.feed li:hover { background: var(--surface-2); }
.feed li:hover::before, .feed li:hover + li::before { opacity: 0; }
.feed-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.feed-cover img { width: 52px; height: 78px; object-fit: cover; border-radius: 6px; display: block; background: var(--surface-2);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
.feed-main { display: grid; justify-items: start; gap: .18rem; min-width: 0; }
.feed-book { font: 600 1.02rem/1.3 var(--serif); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.feed-book::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feed-ch { position: relative; z-index: 2; font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.feed-ch:hover { color: var(--link); }
.feed-num { color: var(--link); font-weight: 700; }
.feed-meta { display: grid; justify-items: end; gap: .2rem; text-align: right; }
.new-count { font-size: .78rem; font-weight: 800; color: var(--seal-ink); background: var(--seal); border-radius: 999px;
  padding: .1rem .45rem; }

.side { display: grid; gap: 1.25rem; margin-top: 3rem; }
.panel { background: var(--surface); border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font-size: 1.05rem; margin: 0 0 .85rem; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rank li { position: relative; }
.rank li + li::before { content: ""; position: absolute; left: .15rem; right: .15rem; top: 0; height: 1px;
  background: color-mix(in srgb, var(--line) 68%, transparent); pointer-events: none; transition: opacity .15s ease; }
.rank li:hover::before, .rank li:hover + li::before { opacity: 0; }
.rank a { display: grid; grid-template-columns: 1.65rem 42px minmax(0, 1fr); gap: .78rem; align-items: center;
  padding: .52rem .45rem; margin: 0 -.45rem; border-radius: 10px; color: var(--text); transition: background-color .18s ease; }
.rank a:hover { background: var(--surface-2); text-decoration: none; }
.rank img { width: 42px; height: 62px; object-fit: cover; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
.rank-n { display: inline-flex; align-items: center; justify-content: center; width: 1.55rem; height: 1.55rem; border-radius: 7px;
  font: 700 .88rem/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
.rank li:first-child .rank-n { background: color-mix(in srgb, var(--seal) 18%, transparent); color: var(--seal); }
.rank li:nth-child(2) .rank-n { background: color-mix(in srgb, var(--link) 15%, transparent); color: var(--link); }
.rank li:nth-child(3) .rank-n { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.rank a > span:last-child { display: grid; gap: .12rem; min-width: 0; }
.rank-title { font-weight: 600; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 0; }

/* kapak rafı */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 1.25rem; align-items: stretch;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.book-card { display: flex; flex-direction: column; min-width: 0; }
.book-card > a:first-child,
.book-card > .card-top { display: flex; flex-direction: column; flex: 0 0 auto; min-width: 0; color: var(--text); }
.book-card > .card-bottom { margin-top: auto; display: flex; flex-direction: column; min-width: 0; padding-top: .5rem; }
.book-card .card-foot { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.book-card a:hover { text-decoration: none; }
.cover { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), filter .24s ease; }
.book-card .cover img { box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(0, 0, 0, .18); }
@media (hover: hover) and (pointer: fine) {
  .book-card a:hover .cover img { transform: scale(1.055); filter: brightness(1.05); }
  .feed li:hover .feed-cover img { transform: scale(1.055); }
  .rank a:hover img:not(.avatar) { transform: scale(1.055); }
}
.book-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; word-break: break-word; font: 600 1rem/1.3 var(--serif); margin-top: .7rem; }
.book-card a:hover .book-title { color: var(--link); }
.book-state { display: block; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .55rem; overflow-wrap: anywhere; }
.book-card .card-foot .book-state { margin-top: 0; padding-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card .bar.thin { flex: none; margin-top: .35rem; margin-bottom: 0; }
.book-card .card-foot > .muted.small,
.book-card > a:first-child > .muted.small { display: block; margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-suruyor { color: var(--link); font-weight: 600; }

/* mühür: kapağın sol üst köşesinde yüzde; %100'de dolu zinober */
.seal { position: absolute; left: .45rem; top: .45rem; padding: .22rem .5rem; border-radius: 999px;
  font: 800 .76rem/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--seal-ink);
  background: rgba(10, 16, 15, .78); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1.5px var(--seal); }
.seal-full { background: var(--seal); box-shadow: none; }
.done-badge { position: absolute; right: .45rem; top: .45rem; padding: .22rem .5rem; border-radius: 6px;
  font: 800 .68rem/1 var(--ui); letter-spacing: .01em; color: #10241f; background: #8fcdb6; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.new-badge { position: absolute; left: .45rem; bottom: .45rem; padding: .22rem .52rem; border-radius: 6px;
  font: 800 .68rem/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 8px rgba(220, 38, 38, .48); }
.fresh { position: absolute; right: .45rem; bottom: .45rem; padding: .2rem .45rem; border-radius: 999px;
  font: 800 .72rem/1 var(--ui); color: var(--seal-ink); background: var(--seal); }

.queue { margin: 0; padding: .5rem 1rem .5rem 2.4rem; columns: 2 18rem; column-gap: 2.5rem; background: var(--surface);
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.queue li { break-inside: avoid; padding: .45rem 0; }
.queue li span:first-child { margin-right: .5rem; font-family: var(--serif); }

/* --- kitap sayfası --- */
.book { padding-top: 2rem; }
.book-head { display: grid; grid-template-columns: 13rem 1fr; gap: 2.25rem; align-items: start; }
.cover.big { width: 13rem; }
.cover.big img { box-shadow: var(--shadow); }
.cover.big .seal { font-size: .85rem; padding: .3rem .6rem; }
.book-info h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.book-info .bar { max-width: 28rem; margin-top: 1rem; }
.book-info .small { margin: .45rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; }
.genres { margin-top: 1.25rem; }
.about { margin: 2rem 0 0; max-width: 48rem; background: var(--surface); border-radius: 12px; padding: .9rem 1.2rem;
  box-shadow: inset 0 0 0 1px var(--line); }
.about summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.about p { font-family: var(--serif); line-height: 1.7; }
.chapters { margin-top: 2.5rem; }
.chapters-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.chapters-head h2 { margin: 0; }
.chapters-head { justify-content: flex-start; }
.chapter-search { width: min(20rem, 100%); margin-left: auto; padding: .45rem .75rem; }
.chapters-head .count { margin-left: .2rem; }
.chapter-box { position: relative; height: min(28rem, 62vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: thin;
  scrollbar-color: var(--line) transparent; }
.chapter-list { list-style: none; margin: 0; padding: .25rem 1rem; }
.chapter-list .loading { padding: 1rem 0; border: 0; }
.sort-toggle { flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.sort-toggle svg { stroke-linecap: round; }
.sort-toggle[aria-pressed="true"] { color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results { margin-bottom: 1rem; }
.chapter-list li, .search-results li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.chapter-list a, .chapter-list .pending, .search-results a { display: flex; gap: .75rem; padding: .6rem 0; color: var(--text); }
.chapter-list a:hover, .search-results a:hover { color: var(--link); text-decoration: none; }
.chapter-list .pending { color: var(--muted); opacity: .7; }
.chapter-list li.here a { color: var(--link); font-weight: 700; }
.num { flex: none; min-width: 3.2rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- okuyucu --- */
.reading main { max-width: none; padding: 0; }
.reading .foot { display: none; }
.chapter { max-width: var(--read-width, 38em); margin: 0 auto; padding: 2rem var(--read-pad, 1.25rem) 1rem;
  font: var(--read-size)/var(--read-lh) var(--serif); hyphens: auto; }
[data-font="sans"] .chapter { font-family: var(--ui); }
[data-font="okunakli"] .chapter { font-family: "Atkinson Hyperlegible", var(--ui); }
[data-width="dar"] { --read-width: 30em; --read-pad: 1.6rem; }
[data-width="orta"] { --read-width: 38em; --read-pad: 1.25rem; }
[data-width="genis"] { --read-width: 50em; --read-pad: .9rem; }
[data-align="sol"] .chapter p { text-align: left; }
[data-align="iki"] .chapter p { text-align: justify; text-justify: inter-word; }
@media (max-width: 48rem) {
  :root { --read-pad: 1.1rem; }
  [data-width="dar"] { --read-pad: 2.15rem; }
  [data-width="orta"] { --read-pad: 1.1rem; }
  [data-width="genis"] { --read-pad: .45rem; }
}
[data-contrast="yumusak"] .chapter { color: color-mix(in srgb, var(--text) 80%, var(--bg)); }
[data-contrast="yuksek"] .chapter { color: var(--max); }
[data-contrast="yuksek"] { --muted: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.chapter h1 { font-size: 1.45em; margin: 0 0 1.6em; text-align: left; }
.chapter p { margin: 0 0 1em; }
.chapter-nav { max-width: var(--read-width, 36em); margin: 0 auto; padding: 1.5rem 1.25rem; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; font-size: 16px; }
.chapter-nav > :first-child { justify-self: start; }
.chapter-nav > :last-child { justify-self: end; }
.chapter-nav .button { padding: .55rem 1rem; }
.button.disabled { opacity: .4; cursor: default; }
.button.disabled:hover { box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.ch-picker svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chapter.read-body { padding-top: 1.5rem; }
.end-note { max-width: 36em; margin: 0 auto; padding: 0 1.25rem .5rem; text-align: center; }
.ch-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100vh - 3rem)); padding: 0; border: 0;
  border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  font: 16px/1.5 var(--ui); }
.ch-dialog[open] { display: flex; flex-direction: column; }
.ch-dialog::backdrop { background: rgba(6, 12, 11, .6); backdrop-filter: blur(2px); }
.ch-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1rem .5rem 1.25rem; }
.ch-dialog-head h2 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dialog-tools { display: flex; gap: .5rem; padding: 0 1rem .75rem 1.25rem; }
.ch-dialog-tools .chapter-search { flex: 1; width: auto; margin: 0; }
.chapter-box.in-dialog { flex: 1; height: auto; min-height: 12rem; border-radius: 0; box-shadow: inset 0 1px 0 var(--line); }
.chapter-list a[aria-current] { color: var(--link); font-weight: 700; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress > span { display: block; height: 100%; width: 0; background: var(--seal); }

/* --- okuyucu üst çubuğu ve alttaki bölüm düğmeleri: aşağı okurken gizlenir --- */
.read-bar, .read-dock { transition: transform .28s ease, opacity .28s ease; }
.bars-hidden .read-bar { transform: translateY(-100%); }
.bars-hidden .read-dock { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.read-bar .top-in { gap: .85rem; }
.brand-name { white-space: nowrap; }
.read-crumbs { display: flex; align-items: center; height: 2.2rem; gap: .5rem; min-width: 0; flex: 1; font-size: .92rem; line-height: 1; }
.read-crumbs .back { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read-crumbs .crumb-ch { color: var(--muted); white-space: nowrap; }
.settings-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; height: 2.15rem;
  background: var(--surface-2); border: 0; color: var(--text); border-radius: 999px;
  font: 600 .88rem/1 var(--ui); padding: 0 .88rem; cursor: pointer; }
.settings-toggle[aria-expanded="true"] { background: var(--link); color: var(--on-link); }
.settings-toggle .aa { font: 700 .98rem/1 var(--serif); }
.settings-panel { position: fixed; z-index: 30; top: 4rem; right: max(.75rem, calc((100vw - 76rem) / 2 + 1.25rem));
  width: min(25rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.05rem 1.15rem .75rem; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font: 15px/1.4 var(--ui); }
.settings-panel[hidden] { display: none; }
.set-row { margin-bottom: 1rem; }
.set-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 34rem) { .set-row.two-stack { grid-template-columns: 1fr; gap: .85rem; } }
.settings-feedback-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding-top: .65rem; border-top: 1px solid var(--line); margin-bottom: .5rem; }
.settings-foot { position: sticky; bottom: -.75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin: .35rem -.15rem 0; padding: .65rem .15rem .3rem; background: var(--surface); border-top: 1px solid var(--line); }
.read-end-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem 1.25rem;
  max-width: 36em; margin: .35rem auto 0; padding: 0 1.25rem .75rem; }
.read-end-actions a, .read-end-actions button { color: var(--link); font-weight: 600; font-size: .88rem; }
.set-row h3 { margin: 0 0 .5rem; font: 700 .78rem var(--ui); color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.swatch { display: grid; justify-items: center; gap: .15rem; padding: .55rem .3rem; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 .78rem var(--ui); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.swatch span { font: 600 1.2rem/1 var(--serif); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--link); }
.sw-gece { background: #0f1918; color: #ebe5d7; }
.sw-siyah { background: #000; color: #d9d6cf; }
.sw-alacakaranlik { background: #1d2127; color: #e3e0d8; }
.sw-kagit { background: #f3f5f2; color: #16302b; }
.sw-sepya { background: #efe3c8; color: #3b2e1e; }
.sw-yesil { background: #dfe8d9; color: #22311d; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { background: none; border: 0; color: var(--text); font: 700 .95rem var(--ui); padding: .5rem .8rem; cursor: pointer; }
.stepper button:hover { color: var(--link); }
.stepper output { font: 600 .95rem var(--ui); font-variant-numeric: tabular-nums; }
.settings-panel .seg { display: flex; gap: 0; background: var(--bg); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.settings-panel .seg button { flex: 1; border: 0; background: none; color: var(--text); border-radius: 8px; padding: .45rem .4rem;
  font: 600 .85rem var(--ui); cursor: pointer; }
.settings-panel .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--link); box-shadow: inset 0 0 0 1px var(--line); }
.f-serif { font-family: var(--serif) !important; }
.f-okunakli { font-family: "Atkinson Hyperlegible", var(--ui) !important; }
.read-dock { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 12;
  display: flex; align-items: center; gap: .2rem; padding: .3rem; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font: 600 .9rem var(--ui); }
.read-dock a, .read-dock button, .read-dock .disabled { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem;
  border-radius: 999px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; }
.read-dock a:hover, .read-dock button:hover { background: var(--surface-2); text-decoration: none; }
.read-dock a.next { background: var(--link); color: var(--on-link); }
.read-dock a.next:hover { filter: brightness(1.08); background: var(--link); }
.read-dock .disabled { opacity: .35; cursor: default; }
.read-dock svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.reading main { padding-bottom: 6rem; }
/* (eski okuyucu üst çubuğu) */
.read-crumbs { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.home-link { flex: none; display: block; }
.home-link .logo { width: 1.85rem; height: 1.85rem; }
.home-link:hover { text-decoration: none; filter: brightness(1.1); }
.crumb-home { color: var(--muted); white-space: nowrap; }
.crumb-home:hover { color: var(--text); text-decoration: none; }
.crumb-sep { color: var(--line); }
.crumb-ch { white-space: nowrap; }
.read-comments { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem 4rem; font-size: 16px; }

/* --- topluluk: puan, favori, yorumlar --- */
.book-stats { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline; }
.book-stats a { color: var(--text); }
.star { color: #e8b04a; }
.heart { color: var(--seal); }
.card-rating { display: block; font-size: .8rem; margin-top: .2rem; }
.fav[aria-pressed="true"], [data-list-toggle][aria-pressed="true"] { color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.rate { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.stars { display: inline-flex; }
.stars button { background: none; border: 0; padding: .1rem .12rem; font-size: 1.45rem; line-height: 1; color: var(--line); cursor: pointer; }
.stars button.on { color: #e8b04a; }
.stars:hover button { color: #e8b04a; }
.stars button:hover ~ button { color: var(--line); }
.text-button { background: none; border: 0; padding: .2rem .3rem; font: 600 .82rem var(--ui); color: var(--muted); cursor: pointer; }
.text-button:hover { color: var(--seal); }
.small-button { padding: .45rem .9rem; font-size: .85rem; }
.count { font: 600 .9rem var(--ui); color: var(--muted); margin-left: .3rem; }
.seg-links { display: flex; gap: .3rem; }
.seg-links a { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; color: var(--muted); }
.seg-links a[aria-current] { background: var(--surface-2); color: var(--text); }
.seg-links a:hover { text-decoration: none; color: var(--text); }
.comments { margin-top: 3rem; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .8rem; resize: vertical; min-height: 3rem; }
.comment-form { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-bottom: 1.5rem; }
.comment-form.compact { display: block; margin: .6rem 0 0; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; }
.check { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { width: 1rem; height: 1rem; accent-color: var(--seal); }
.comment-form .error { margin-top: .4rem; }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.replies { margin-top: .4rem; }
.comment.reply { padding: .8rem 0 .2rem; border-top: 0; }
.comment.reply .avatar { width: 1.7rem; height: 1.7rem; font-size: .78rem; }
.comment-meta { margin: 0; display: flex; gap: .6rem; align-items: baseline; }
.comment-user { font-weight: 700; color: var(--text); }
.comment-text { margin: .3rem 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.spoiler { margin-top: .35rem; }
.spoiler summary { display: inline-block; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--seal);
  background: color-mix(in srgb, var(--seal) 12%, transparent); padding: .3rem .7rem; border-radius: 6px; }
.spoiler summary::-webkit-details-marker { display: none; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-top: .45rem; }
.comment-actions form.inline { margin: 0; }
.like { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: .2rem .3rem;
  color: var(--muted); font: 600 .82rem var(--ui); cursor: pointer; border-radius: 6px; }
.like svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover { color: var(--seal); }
.like[aria-pressed="true"] { color: var(--seal); }
.like[aria-pressed="true"] svg { fill: currentColor; }
.reply-box summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); list-style: none; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box summary:hover { color: var(--text); }
.reply-box[open] { flex-basis: 100%; }
.mini-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mini-comments li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; }
.mini-comments .avatar { width: 1.8rem; height: 1.8rem; font-size: .8rem; }
.mini-comments p { margin: 0; }
.mini-comments a { color: var(--text); }
.mini-text { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.chapter-list a { align-items: center; }
.ch-t { flex: 1; min-width: 0; }
.ch-c { flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2);
  border-radius: 999px; padding: .05rem .45rem; }
.new-pill { flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: .18rem .48rem; border-radius: 999px; margin-left: .25rem;
  font: 800 .66rem/1 var(--ui); letter-spacing: .04em; text-transform: uppercase;
  color: #ffffff; background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 1px 5px rgba(220, 38, 38, .35); }
.hero-chapter { margin: .4rem 0 0; font: 1.05rem/1.4 var(--serif); color: var(--muted); }
.resume .hero-tag { color: var(--link); }
.continue-card .ch-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- kitap künyesi, puan, popüler --- */
.alt-names { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.score-big strong { font: 700 1.35rem/1 var(--serif); }
.score-detail { margin: .35rem 0 0; }
.about-book { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.about-text h2, .facts h2 { margin-bottom: .75rem; }
.about-text p { font: 1.02rem/1.75 var(--serif); margin: 0 0 1em; max-width: 46rem; }
.about-text p.small { font: .82rem var(--ui); }
.facts { margin: 0; background: var(--surface); border-radius: 12px; padding: .5rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .85rem; }
.panel-head h2 { margin: 0; }
.filter-box { margin: -0.5rem 0 1.5rem; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.filter-box summary { cursor: pointer; padding: .75rem 1.1rem; font-weight: 700; }
.filter-box-in { padding: 0 1.1rem 1rem; }
.filter-box-in > p { margin: .6rem 0 .45rem; }
.resume-note { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; padding: .65rem 1.15rem;
  max-width: calc(100vw - 2rem); text-align: center;
  border-radius: 999px; background: var(--text); color: var(--bg); font: 600 .88rem/1.35 var(--ui); box-shadow: var(--shadow);
  transition: opacity .35s ease-out; }
.resume-note.out { opacity: 0; }
.toast-stack { position: fixed; left: 50%; bottom: max(1.15rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .45rem; width: min(26rem, calc(100vw - 1.5rem));
  pointer-events: none; }
.toast-item { pointer-events: auto; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  padding: .68rem 1.15rem; border-radius: 999px; background: var(--text); color: var(--bg);
  font: 600 .88rem/1.35 var(--ui); text-align: center; max-width: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 0 0 1px color-mix(in srgb, var(--bg) 14%, transparent);
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out; }
.toast-item.is-in { opacity: 1; transform: translateY(0) scale(1); }
.toast-item.is-out { opacity: 0; transform: translateY(10px) scale(.96); transition: transform .18s ease-in, opacity .18s ease-in; }
.toast-item.tone-error { background: var(--seal); color: var(--seal-ink); }
@media (prefers-reduced-motion: reduce) {
  .toast-item { transition: opacity .15s linear; transform: none; }
  .toast-item.is-in, .toast-item.is-out { transform: none; }
}

/* --- keşfet: durum kartları ve tür kutucukları --- */
.status-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.status-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem; border-radius: 14px; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.status-card:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.status-card > span:last-child { display: grid; gap: .15rem; }
.status-card strong { font: 600 1.2rem/1.25 var(--serif); }
.status-card .small { color: var(--muted); }
.status-num { display: flex; align-items: center; justify-content: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 12px;
  font: 700 1.35rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.status-card.ongoing .status-num { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); }
.status-card.done .status-num { background: color-mix(in srgb, var(--seal) 18%, transparent); color: var(--seal); }
.sub-head { font: 600 1.05rem var(--serif); margin: 1.75rem 0 .85rem; }
.genre-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.genre-tiles a { display: grid; gap: .1rem; padding: .85rem 1rem 1rem; border-radius: 12px; color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); }
.genre-tiles a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.genre-tiles strong { font-size: 1rem; margin-top: .55rem; }
.tile-covers { display: flex; height: 60px; }
.tile-covers img { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 2px var(--surface); }
.tile-covers img + img { margin-left: -14px; }

/* --- çevirmenin seçimi --- */
.pick-badge { display: inline-flex; gap: .4rem; align-items: center; margin: 0 0 .5rem; padding: .25rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--seal) 14%, transparent); color: var(--seal); font-weight: 700; font-size: .82rem; }
.pick-note { margin: 2rem 0 0; max-width: 48rem; padding: 1rem 1.25rem; border-left: 3px solid var(--seal);
  background: var(--surface); border-radius: 0 12px 12px 0; }
.pick-note p { margin: 0; font: italic 1.05rem/1.6 var(--serif); }
.pick-note footer { margin-top: .4rem; color: var(--muted); font-size: .82rem; }
.admin-box { margin-top: 1.25rem; max-width: 36rem; }
.admin-box summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.admin-box form { display: grid; gap: .4rem; margin-top: .6rem; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
.pick-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: .9rem; background: var(--surface);
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--seal); color: var(--text); }
.pick-card:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link), inset 3px 0 0 var(--seal); }
.pick-card img { width: 96px; height: 144px; object-fit: cover; border-radius: 6px; }
.pick-body { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.pick-body strong { font: 600 1.1rem/1.3 var(--serif); }
.pick-quote { font: italic .95rem/1.55 var(--serif); color: var(--text); }
.pick-quote.plain { font-style: normal; color: var(--muted); font-size: .9rem; }
.ch-tag { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .05rem .5rem; }

/* --- profil --- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; padding: 2.25rem 0 1.5rem; }
.profile-id h1 { margin: 0; }
.profile-id p { margin: .3rem 0 0; }
.bio { font-family: var(--serif); max-width: 40rem; }
.bio-edit { margin-top: .6rem; }
.bio-edit summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--link); }
.bio-edit form { display: grid; gap: .5rem; max-width: 30rem; margin-top: .6rem; justify-items: start; }
.profile-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 1px;
  background: var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.profile-stats li { background: var(--surface); padding: .8rem 1.1rem; display: grid; text-align: center; }
.profile-stats strong { font: 700 1.35rem/1.1 var(--serif); }
.profile-stats span { color: var(--muted); font-size: .78rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .7rem 1rem; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--seal); }
.reading-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.reading-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .75rem;
  background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.reading-row:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.reading-row img { width: 60px; height: 90px; object-fit: cover; border-radius: 4px; }
.reading-main { display: grid; gap: .2rem; min-width: 0; }
.reading-main strong { font: 600 1.05rem var(--serif); }
.reading-main .bar.thin { max-width: 24rem; }
.profile-comments { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.profile-comments li { padding: 1rem 0; border-top: 1px solid var(--line); }
.profile-comments p { margin: 0; }

/* --- keşfet, süzgeçler, listem --- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .32rem .7rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--text); background: var(--surface-2); }
.chip:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.chip .muted { font-weight: 500; }
.chip.on { background: var(--link); color: var(--on-link); }
.chip.on .muted { color: inherit; opacity: .75; }
.small-chips { margin-top: 1.1rem; }
.small-chips .chip { font-size: .78rem; padding: .25rem .6rem; }
.hero .chip { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.browse { display: grid; grid-template-columns: 16rem 1fr; gap: 2.5rem; padding-top: 2rem; }
.filters { align-self: start;
  background: var(--surface); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.filter-search input { width: 100%; }
.filters > summary { display: none; }
.filter-title { font: 700 .82rem var(--ui); color: var(--muted); margin: 1.4rem 0 .5rem; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: .35rem .55rem; border-radius: 6px; color: var(--text); }
.filter-list a:hover { background: var(--surface-2); text-decoration: none; }
.filter-list a[aria-current] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--seal); font-weight: 700; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; }
.results-head h1 { font-size: 1.6rem; margin: 0; }
.sort { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; }
.sort select { padding: .4rem .6rem; }
.empty { color: var(--muted); font-family: var(--serif); }
.here-mark { display: block; color: var(--seal); margin-top: .1rem; }

@media (max-width: 64rem) {
  .about-book { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
  .browse { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .filters:not([open]) { padding: .6rem 1.1rem; }
  .filters > summary { display: list-item; cursor: pointer; font-weight: 700; padding: .2rem 0; }
}
@media (max-width: 52rem) {
  .top .top-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .5rem;
    height: 3.45rem;
    min-height: 3.45rem;
    padding: 0 .85rem;
  }
  .top:not(.read-bar) .top-nav,
  .top:not(.read-bar) .top-search,
  .top:not(.read-bar) .top-tools { display: none; }
  .top:not(.read-bar) .mode-switch {
    margin-left: auto;
    height: 2.05rem;
    padding: 0 .78rem;
    font-size: .82rem;
    gap: .32rem;
  }
  .top:not(.read-bar) .mobile-menu-toggle {
    display: grid;
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--text);
    background: var(--surface-2);
  }
  .login-wrap { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login { padding-top: 2rem; }
  .login .brand { margin-bottom: 1.5rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .top .top-in { padding: 0 .7rem; gap: .45rem; height: 3.45rem; min-height: 3.45rem; }
  .brand { font-size: 1.1rem; gap: .45rem; }
  .logo { width: 2.1rem; height: 2.1rem; }
  .read-bar .icon-button { width: 2rem; height: 2rem; }
  .avatar { width: 1.85rem; height: 1.85rem; font-size: .82rem; }
  .link-button { font-size: .82rem; padding: 0 .35rem; }
  .read-bar .brand-name, .settings-label { display: none; }
  .read-bar .top-tools { margin-left: auto; }
  .status-cards { grid-template-columns: minmax(0, 1fr); }
  .genre-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crumb-home, .crumb-home + .crumb-sep { display: none; }
  .chapter-nav { padding-left: 1rem; padding-right: 1rem; gap: .4rem; }
  .chapter-nav .button { padding: .5rem .7rem; font-size: .88rem; }
  .chapters-head { flex-wrap: wrap; }
  .chapters-head .chapter-search { order: 3; width: 100%; margin: 0; }
  .chapters-head .sort-toggle { margin-left: auto; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .pick-card { grid-template-columns: 72px minmax(0, 1fr); }
  .pick-card img { width: 72px; height: 108px; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .profile-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar.big { width: 4rem; height: 4rem; font-size: 1.8rem; }
  .reading-row { grid-template-columns: 48px minmax(0, 1fr); }
  .reading-row img { width: 48px; height: 72px; }
  .reading-row .button { display: none; }
  .comment-form { grid-template-columns: minmax(0, 1fr); }
  .comment-form > .avatar { display: none; }
  .hero-in { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem; align-items: start; }
  .hero-cover { width: 6.5rem; }
  .hero .actions { grid-column: 1 / -1; }
  .hero .actions .button { text-align: center; }
  .hero h1 { font-size: 1.45rem; }
  .hero-progress { margin-top: .9rem; }
  .book-head { grid-template-columns: minmax(0, 1fr); }
  .cover.big { width: 10rem; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .feed li { padding: .6rem .75rem; gap: .7rem; }
  :root { --read-size: 18px; }
  .chapter-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .book-card img, .button { transition: filter .15s; }
}

/* --- okuma durumu, rehber, kaldığın yer bağlantısı --- */
.status-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: 1rem; }
.status-pick button { border: 0; background: var(--surface-2); color: var(--text); font: 600 .85rem var(--ui); padding: .4rem .8rem;
  border-radius: 999px; cursor: pointer; }
.status-pick button:hover { box-shadow: inset 0 0 0 1px var(--link); }
.status-pick button[aria-pressed="true"] { background: var(--link); color: var(--on-link); }
.book-card .here-mark { display: inline-block; align-self: flex-start; margin: 0 0 .35rem; font-size: .79rem; font-weight: 700; line-height: 1.25; color: var(--seal);
  text-decoration: none; transition: color .15s ease, filter .15s ease; }
.book-card .here-mark:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; filter: brightness(1.16); }
.guide { margin-top: 2.5rem; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.guide > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary h2 { margin: 0; font-size: 1.15rem; }
.guide > summary::after { content: "+"; margin-left: auto; font: 600 1.3rem/1 var(--ui); color: var(--muted); }
.guide[open] > summary::after { content: "−"; }
.guide-body { padding: 0 1.2rem 1.2rem; }
.guide-search { width: min(22rem, 100%); padding: .45rem .75rem; margin-bottom: 1rem; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.guide-cols > section { display: flex; flex-direction: column; height: 25rem; min-width: 0; }
.guide-cols h3 { font: 700 .85rem var(--ui); color: var(--muted); margin: 0 0 .5rem; flex: none; }
.guide-box { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); padding: .3rem .9rem; }
.guide-list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.guide-list dt, .guide-list dd { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.guide-list dt { font-weight: 700; padding-right: .8rem; }
.guide-list dd { color: var(--muted); }
.guide-spoiler { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.guide-spoiler summary { margin-bottom: .6rem; flex: none; }

/* --- ana sayfa: tamamlananlar / devam edenler (Türler kutusunda) --- */
.status-links { display: grid; gap: .5rem; margin-top: 1rem; }
.status-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 10px; color: var(--text);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.status-link:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.status-link > span:last-child { display: grid; }
.status-link strong { font-size: .95rem; }
.status-link .small { color: var(--muted); }
.status-link .status-num { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; border-radius: 9px; }
.status-link.done .status-num { background: color-mix(in srgb, var(--seal) 18%, transparent); color: var(--seal); }
.status-link.ongoing .status-num { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); }

/* --- bildirimler --- */
.bell { position: relative; }
.bell svg { stroke-linecap: round; }
.bell-count { position: absolute; top: .1rem; right: .05rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px;
  background: var(--seal); color: var(--seal-ink); font: 800 .65rem/1.05rem var(--ui); text-align: center; }
.notices { max-width: 46rem; }
.push-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin: 1.25rem 0 .5rem;
  background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.push-box p { margin: .2rem 0 0; }
.notice-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.notice-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem .5rem;
  border-top: 1px solid var(--line); color: var(--text); }
.notice-list a:hover { text-decoration: none; background: var(--surface); }
.notice-list img { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; }
.notice-list a > span:nth-child(2) { display: grid; }
.notice-list li.new strong::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .4rem; border-radius: 50%;
  background: var(--seal); vertical-align: middle; }
.offline-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: .5rem; padding: 2rem; }
.offline-page .logo { width: 4rem; height: 4rem; }

/* --- istatistik --- */
.stat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stat-tiles li { display: grid; gap: .1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat-tiles strong { font: 700 1.9rem/1.1 var(--serif); }
.stat-tiles span { color: var(--muted); font-size: .88rem; }
.stat-tiles .streak strong { color: var(--seal); }
.day-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin: 1.75rem 0 .7rem; }
.day-chart-head .sub-head { margin: 0; }
.day-info { margin: 0; padding: .3rem .75rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.day-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 8.5rem; padding: .55rem .5rem;
  background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.day-bars .day-bar { display: flex; align-items: end; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.day-bars .day-bar:hover { background: color-mix(in srgb, var(--link) 10%, transparent); }
.day-bars .day-bar.is-picked { background: color-mix(in srgb, var(--seal) 14%, transparent); }
.day-bars i { display: block; width: 100%; height: max(var(--h), 3px); border-radius: 3px 3px 0 0; background: var(--link); opacity: .82; transition: opacity .15s, background .15s; }
.day-bars .day-bar:hover i { opacity: 1; }
.day-bars .today i { background: var(--seal); opacity: 1; }
.day-bars .day-bar.is-picked i { background: var(--seal); opacity: 1; }
.day-axis { display: flex; justify-content: space-between; margin-top: .3rem; }
.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* --- yorum: emoji ve resim --- */
.form-tools { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.form-tools .icon-button { cursor: pointer; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.3rem, 1fr)); gap: .2rem; margin-top: .6rem; padding: .5rem;
  background: var(--surface); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.emoji-grid button { border: 0; background: none; font-size: 1.35rem; line-height: 1; padding: .35rem 0; border-radius: 8px; cursor: pointer; }
.emoji-grid button:hover { background: var(--surface-2); }
.attach-preview { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.attach-preview img { max-height: 6rem; max-width: 10rem; border-radius: 8px; }
.comment-img { display: block; max-width: min(100%, 20rem); max-height: 18rem; margin-top: .5rem; border-radius: 10px; }

/* --- sesli okuma --- */
.tts-bar { position: fixed; left: 50%; bottom: max(.9rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 13;
  display: flex; flex-direction: column; gap: .55rem; width: min(42rem, calc(100vw - 1.25rem)); padding: .75rem .9rem;
  border-radius: 18px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42), inset 0 0 0 1px color-mix(in srgb, var(--link) 24%, var(--line));
  font: 600 .85rem var(--ui); }
.tts-bar[hidden] { display: none; }
.tts-open .read-dock { display: none; }
.tts-row { display: flex; align-items: center; gap: .55rem .75rem; min-width: 0; }
.tts-row-main { flex-wrap: nowrap; }
.tts-row-opts { flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--line); gap: .45rem .7rem; }
.tts-controls { display: inline-flex; align-items: center; gap: .3rem; flex: none; }
.tts-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease; }
.tts-btn:hover { background: color-mix(in srgb, var(--link) 22%, var(--surface-2)); color: var(--link); }
.tts-btn:active { transform: scale(.94); }
.tts-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tts-controls .tts-play { width: 2.6rem; height: 2.6rem; background: var(--link); color: var(--on-link);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--link) 38%, transparent); }
.tts-controls .tts-play:hover { background: var(--link); color: var(--on-link); filter: brightness(1.08); }
.tts-controls .tts-play svg { width: 1.2rem; height: 1.2rem; }
.tts-progress { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 700 .8rem/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--muted);
  padding: .34rem .68rem; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.tts-vol { display: inline-flex; align-items: center; gap: .42rem; flex: none;
  padding: .2rem .6rem .2rem .25rem; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tts-mute { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; flex: none; transition: color .15s ease, background .15s ease; }
.tts-mute:hover { background: var(--surface-2); color: var(--text); }
.tts-mute[aria-pressed="true"] { color: var(--seal); }
.tts-mute svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tts-vol input[type="range"] { -webkit-appearance: none; appearance: none; width: 6.4rem; height: 1.4rem;
  margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; flex: none; }
.tts-vol input[type="range"]:hover { border-color: transparent; }
.tts-vol input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--link) 0%, var(--link) var(--vol, 100%), var(--line) var(--vol, 100%), var(--line) 100%); }
.tts-vol input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  margin-top: -4.5px; border-radius: 50%; background: var(--link); border: 2px solid var(--surface);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4); transition: transform .12s ease; }
.tts-vol input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.16); }
.tts-vol input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: var(--line); border: 0; }
.tts-vol input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--link); }
.tts-vol input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%;
  background: var(--link); border: 2px solid var(--surface); box-shadow: 0 1px 5px rgba(0, 0, 0, .4); }
.tts-vol output { font: 700 .76rem/1 var(--ui); min-width: 2.45rem; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.tts-close { flex: none; margin-left: auto; width: 2rem; height: 2rem; }
.tts-opt { display: inline-flex; align-items: center; gap: .38rem; color: var(--muted); font-size: .82rem; }
.tts-opt > span { flex: none; }
.tts-opt select { height: 1.95rem; padding: 0 .5rem; font-size: .82rem; border-radius: 999px; background: var(--bg); max-width: 12.5rem; }
.tts-voice-opt { flex: 1 1 11rem; min-width: 0; }
.tts-voice-opt select { width: 100%; max-width: 15rem; }
.tts-auto-opt { margin-left: auto; cursor: pointer; user-select: none; }
.tts-auto-opt input { padding: 0; width: 1rem; height: 1rem; accent-color: var(--link); }
.tts-msg { margin: 0; font-size: .8rem; }
.chapter p.speaking, .chapter h1.speaking { background: color-mix(in srgb, var(--link) 14%, transparent); border-radius: 6px;
  box-shadow: 0 0 0 .35em color-mix(in srgb, var(--link) 14%, transparent); }
.read-dock [data-tts-open] svg { stroke-linejoin: round; }
@media (max-width: 40rem) {
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .stat-cols, .guide-cols { grid-template-columns: 1fr; }
  .guide-cols > section { height: auto; }
  .guide-box { max-height: 22rem; }
  .day-bars { gap: 1px; }
  .tts-bar { padding: .65rem .7rem; gap: .5rem; }
  .tts-row-main { flex-wrap: wrap; gap: .45rem .5rem; }
  .tts-progress { order: 2; flex: 1 1 auto; }
  .tts-close { order: 3; }
  .tts-vol { order: 4; flex: 1 1 100%; justify-content: space-between; padding: .22rem .65rem .22rem .3rem; }
  .tts-vol input[type="range"] { flex: 1 1 auto; width: auto; }
  .tts-auto-opt { margin-left: 0; flex-basis: 100%; }
}

/* --- hata bildirimi --- */
.report-open svg { stroke-linejoin: round; stroke-linecap: round; }
.select-report { position: fixed; z-index: 25; padding: .45rem .85rem; border: 0; border-radius: 999px; background: var(--seal);
  color: var(--seal-ink); font: 700 .85rem var(--ui); box-shadow: var(--shadow); cursor: pointer; }
.report-dialog { width: min(32rem, calc(100vw - 2rem)); padding: 0 1.25rem 1.1rem; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font: 15px/1.5 var(--ui); }
.report-dialog::backdrop { background: rgba(6, 12, 11, .6); }
.report-dialog .ch-dialog-head { padding: 1rem 0 .3rem; }
.quote { margin: .6rem 0; padding: .6rem .9rem; border-left: 3px solid var(--seal); background: var(--surface); border-radius: 0 8px 8px 0;
  font: italic .95rem/1.55 var(--serif); max-height: 8rem; overflow: auto; }
.quote:empty { display: none; }
.kind-pick { border: 0; padding: 0; margin: .5rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.kind-pick legend { margin-bottom: .4rem; }
.kind-pick label { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); font: 600 .84rem var(--ui); }
.kind-pick input:checked + span { background: var(--link); color: var(--on-link); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.report-form textarea { margin-top: .3rem; }
.chapter p:target { background: color-mix(in srgb, var(--seal) 14%, transparent); border-radius: 6px; }

/* --- çevrimdışı satırı --- */
.offline-row { display: flex; gap: .5rem; }
.offline-row select { flex: 1; min-width: 0; padding: .45rem .6rem; font-size: .88rem; }
.offline-saved-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-top: .35rem; }
.offline-saved-text { line-height: 1.45; }
.offline-saved-text strong { color: var(--text); font-weight: 700; }

/* --- sayfa başlıklı genel bloklar: hata, yazar, geri bildirim, yönetim --- */
.error-page { min-height: 55vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: .3rem; padding: 3rem 0; }
.error-code { margin: 0; font: 700 4rem/1 var(--serif); color: var(--seal); }
.error-page .actions { justify-content: center; }
.other-books { columns: 2 16rem; padding-left: 1.2rem; }
.other-books li { padding: .25rem 0; }
.author-line a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.author-line a:hover { color: var(--link); }
.feedback-page, .admin-page { max-width: 52rem; }
.feedback-form { display: grid; gap: .4rem; max-width: 36rem; margin: 1.25rem 0 0; justify-items: start; }
.feedback-form select, .feedback-form textarea { width: 100%; }
.feedback-form label { font-weight: 700; font-size: .88rem; margin-top: .5rem; }
.ok { color: var(--link); font-weight: 600; margin: 0; }
.feedback-list, .admin-list { list-style: none; margin: 0; padding: 0; }
.feedback-list li, .admin-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.feedback-list p, .admin-list p { margin: 0; }
.tag { display: inline-block; padding: .05rem .55rem; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .78rem; }
.status-tag { margin-left: .4rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.status-tag.s-acik { color: var(--seal); }
.status-tag.s-yanitlandi { color: var(--link); }
.reply-note { margin-top: .6rem; padding: .6rem .9rem; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--link); }
.reply-note strong { font-size: .8rem; color: var(--link); }
.row-actions { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.row-actions.stack { display: grid; }
.inline-form { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 12rem; }
.new-user { padding: .8rem 1rem; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--link); }
.new-user code { font-size: 1rem; padding: .1rem .4rem; background: var(--surface-2); border-radius: 6px; }
.user-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.user-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .35rem; border-radius: 999px;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.user-list .avatar { width: 1.7rem; height: 1.7rem; font-size: .75rem; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--seal); color: var(--seal-ink); font: 800 .7rem/1 var(--ui); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* --- novel / manga geçişi --- */
.mode-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 2.15rem; min-width: 7.4rem; padding: 0 .95rem; border-radius: 999px;
  font: 700 .88rem/1 var(--ui); text-align: center;
  color: var(--seal-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--seal) 92%, #ff9366), var(--seal));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--seal) 28%, transparent);
  white-space: nowrap; margin-left: auto; flex: none;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}
.mode-switch:hover {
  text-decoration: none;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--seal) 40%, transparent);
}
.mode-switch:active { transform: translateY(0); }
.mode-switch svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.mode-switch span { display: inline-block; line-height: 1; }

/* --- manga okuyucu --- */
.manga-pages { max-width: var(--manga-width, 54rem); margin: 0 auto; padding: .75rem var(--manga-pad, 0px) 2rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[data-mwidth="dar"] { --manga-width: 38rem; }
[data-mwidth="orta"] { --manga-width: 54rem; }
[data-mwidth="genis"] { --manga-width: 72rem; }
@media (max-width: 48rem) {
  [data-mwidth="dar"] { --manga-pad: 1.5rem; }
  [data-mwidth="orta"] { --manga-pad: .4rem; }
  [data-mwidth="genis"] { --manga-pad: 0px; }
}
.mpage { position: relative; margin: 0 auto var(--manga-gap, .4rem); line-height: 0; -webkit-tap-highlight-color: transparent; }
[data-mgap="bitisik"] { --manga-gap: 0px; }
[data-mgap="normal"] { --manga-gap: .4rem; }
[data-mgap="genis"] { --manga-gap: 1.25rem; }
.mpage .page-img { display: block; width: 100%; height: auto; background: var(--surface); min-height: 20rem; user-select: none; -webkit-user-select: none; }
.mpage .page-img[src] { min-height: 0; }
.mpage .page-img.broken { min-height: 6rem; }
.mpage .patch { position: absolute; display: block; pointer-events: none; }
/* Türkçe dizgi: renk/kontur/açı özgünden; boy JS ile özgün boydan başlayıp alana sığana dek küçülür (taşmaz) */
.mpage .tx { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden;
  text-align: center; line-height: 1.08; color: var(--c, #111); pointer-events: none; user-select: none; -webkit-user-select: none; transform: rotate(var(--a, 0deg));
  font-family: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif; font-weight: 600; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; }
.mpage .tx span { display: block; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.mpage .tx.caps span { text-transform: uppercase; }
.mpage .tx.b { font-weight: 800; }
.mpage .tx.i { font-style: italic; }
.mpage .tx.k-anlatim { font-weight: 500; }
.mpage .tx.k-dusunce { font-style: italic; font-weight: 500; }
.mpage .tx.k-bagirma { font-weight: 800; }
.mpage .tx.k-el { font-family: "Caveat", "Shantell Sans", cursive; font-weight: 700; line-height: 1; }
.mpage .tx.k-efekt { font-family: "Bangers", "Shantell Sans", Impact, sans-serif; font-weight: 400; letter-spacing: .03em; line-height: 1; }
.mpage .tx[style*="--s"] { -webkit-text-stroke: .1em var(--s); paint-order: stroke fill; }
.mpage .tx.bare { text-shadow: 0 0 2px var(--s, #fff), 0 0 3px var(--s, #fff), 0 0 1px var(--s, #fff); }
.overlay-off .mpage .tx, .overlay-off .mpage .patch { opacity: 0; }
.overlay-off .mpage .tx { pointer-events: none; }
.manga-note { max-width: 54rem; margin: 0 auto .6rem; padding: 0 1rem; }
.manga-reading .top-tools .settings-toggle[aria-pressed="true"] { background: var(--link); color: var(--on-link); }

/* --- statik reklam yuvaları (CLS / kayma önleyici sabit yükseklik) --- */
.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  contain: layout style;
}
.ad-slot-top_banner { min-height: var(--ad-h, 60px); max-width: 46rem; }
.ad-slot-bottom_native { min-height: var(--ad-h, 220px); max-width: 54rem; padding: 0 .75rem; }
.ad-label {
  display: inline-block;
  font: 700 13px/1.25 var(--ui);
  color: var(--text);
  opacity: .84;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  user-select: none;
}
.ad-slot-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
}
.ad-slot-inner iframe { max-width: 100%; border: 0; }
.ad-slot-inner img { max-width: 100%; height: auto; }

/* --- manga filtre şeridi --- */
.manga-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .85rem; }
.manga-filter-chips { margin-bottom: 1.25rem; }

/* --- sesli okuma: aktif cümle vurgusu --- */
.chapter p.speaking-p, .chapter h1.speaking-p {
  background: color-mix(in srgb, var(--link) 6%, transparent);
  border-radius: 6px;
}
.tts-s { border-radius: 4px; transition: background .18s; }
.tts-s.now {
  background: color-mix(in srgb, var(--link) 24%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 24%, transparent);
}

/* --- çevrimdışı indirme 5 sn reklam penceresi --- */
.offline-ad-dialog {
  width: min(23rem, calc(100vw - 1.5rem));
  padding: 1.15rem 1rem 1.2rem;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line);
  text-align: center;
}
.offline-ad-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.offline-ad-head { font: 700 .95rem var(--ui); margin: 0 0 .35rem; }
.offline-ad-sub { font-size: .82rem; color: var(--muted); margin: 0 0 .65rem; }
.offline-ad-stage {
  width: 100%;
  max-width: 100%;
  min-height: 254px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: .35rem auto .9rem;
  overflow-x: hidden;
}
.offline-ad-frame { width: 300px; max-width: 100%; height: 250px; border: 0; display: block; background: transparent; }
.offline-ad-actions { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.offline-ad-actions .button { width: 100%; justify-content: center; }
.offline-ad-actions .button:disabled { opacity: .6; cursor: not-allowed; }

/* --- detaylı yönetim paneli --- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .85rem; margin: 1.25rem 0 1.75rem; }
.admin-card { background: var(--surface); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .25rem; }
.admin-card strong { font: 700 1.65rem/1.1 var(--ui); font-variant-numeric: tabular-nums; color: var(--text); }
.admin-card span { font-size: .82rem; color: var(--muted); }
.admin-panel { background: var(--surface); border-radius: 12px; padding: 1.15rem 1.25rem; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 1.25rem; }
.admin-panel h2 { font-size: 1.05rem; margin: 0 0 .85rem; }
.admin-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1.2rem; margin: 0; }
.admin-kv div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-kv dt { color: var(--muted); flex: none; }
.admin-kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1rem; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.admin-table th.num-col, .admin-table td.num-col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table th.act-col, .admin-table td.act-col { text-align: right; white-space: nowrap; }
.admin-user-cell { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: nowrap; }
.admin-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); white-space: nowrap; }
.admin-ad-form { display: grid; gap: 1rem; max-width: 48rem; }
.admin-ad-form > div > label { display: block; margin-bottom: .35rem; }
.admin-ad-checks { display: grid; gap: .55rem; }
.admin-ad-form textarea { width: 100%; font: .82rem/1.45 ui-monospace, monospace; }
.admin-msg { padding: .7rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--link) 15%, transparent); color: var(--text); font-size: .9rem; margin: .8rem 0 1rem; }
.admin-page { max-width: 62rem; }
.admin-page .row-actions { flex-wrap: wrap; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-user-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; }
.admin-user-link .avatar { width: 1.75rem; height: 1.75rem; font-size: .78rem; flex: none; }
.admin-row-btns { display: inline-flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: nowrap; }
.inline-confirm { display: inline-flex; align-items: center; gap: .4rem; }
.inline-confirm > summary { list-style: none; cursor: pointer; }
.inline-confirm > summary::-webkit-details-marker { display: none; }
.danger-text { color: #e26d5c; }
.danger-btn { background: #c94a3c; color: #fff; }
.read-crumbs .back, .read-crumbs .crumb-ch, .read-crumbs .crumb-sep { display: inline-flex; align-items: center; height: 2.2rem; line-height: 1; }

/* --- manga filtre grupları (Sıralama / Durum ayrımı) --- */
.filter-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; padding: .35rem .6rem;
  border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.filter-group-label { font: 700 .72rem/1 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-right: .25rem; }

/* --- canlı arama öneri kutusu (autocomplete) --- */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 45; min-width: min(22rem, calc(100vw - 1.5rem));
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  overflow: hidden; padding: .3rem; display: grid; gap: .15rem; }
.suggest-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  padding: .42rem .55rem; border-radius: 8px; color: var(--text); }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-2); text-decoration: none; }
.suggest-item img { width: 32px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.suggest-main { display: grid; min-width: 0; gap: .1rem; }
.suggest-main strong { font: 600 .88rem/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-badge { font: 700 .7rem/1 var(--ui); padding: .22rem .5rem; border-radius: 999px; white-space: nowrap; }
.suggest-badge.is-novel { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); }
.suggest-badge.is-manga { background: color-mix(in srgb, var(--seal) 18%, transparent); color: var(--seal); }

/* --- dönemsel trend sekmeleri & liderlik tablosu --- */
.mini-tabs { display: inline-flex; gap: .2rem; padding: 2px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mini-tabs button { border: 0; background: none; color: var(--muted); font: 700 .75rem/1 var(--ui); padding: .32rem .62rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mini-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.leader-rank a { grid-template-columns: 1.4rem 2.1rem minmax(0, 1fr); }
.leader-rank .avatar { width: 2.1rem; height: 2.1rem; font-size: .85rem; }

/* --- metin seçimi araç çubuğu (Alıntı kaydet + Hata bildir) --- */
.select-tools { position: fixed; z-index: 26; display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.select-tools .select-report, .select-tools .select-quote { position: static; padding: .4rem .8rem; border: 0; border-radius: 999px;
  font: 700 .82rem/1 var(--ui); cursor: pointer; white-space: nowrap; }
.select-tools .select-quote { background: var(--link); color: var(--on-link); }
.select-tools .select-report { background: var(--seal); color: var(--seal-ink); box-shadow: none; }

/* --- profil alıntılarım kartları --- */
.quote-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 48rem; }
.quote-card { background: var(--surface); border-radius: 12px; padding: .95rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.quote-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.quote-card .quote { margin: .55rem 0 .25rem; }
.quote-card-act { margin-top: .35rem; display: flex; justify-content: flex-end; }

/* --- bölüm sonu emoji tepkileri ve hızlı yorumlar --- */
.chapter-engage { max-width: min(44rem, calc(100% - 2rem)); margin: 1.5rem auto 2rem; display: grid; gap: 1.25rem; }
.react-box, .chapter-comments-box { background: var(--surface); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: inset 0 0 0 1px var(--line); }
.react-title { margin: 0 0 .7rem; font: 700 .95rem var(--ui); text-align: center; }
.react-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.react-btn { display: inline-flex; align-items: center; gap: .38rem; padding: .45rem .82rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 .85rem var(--ui); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.react-btn:hover { border-color: var(--link); transform: translateY(-1px); }
.react-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--link) 18%, transparent); border-color: var(--link); color: var(--link); }
.react-emoji { font-size: 1.1rem; line-height: 1; }
.react-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.react-btn[aria-pressed="true"] .react-count { color: var(--link); }
.chapter-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.chapter-comments-head h2 { margin: 0; font-size: 1.1rem; }
.quick-comment-form { margin-bottom: 1rem; }
.chapter-mini-comments { margin-top: .75rem; }

/* --- manga tek sayfa modu & yukarı çık butonu --- */
.manga-pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem .75rem .75rem; }
.back-top { position: fixed; right: .85rem; bottom: max(4.4rem, calc(3.9rem + env(safe-area-inset-bottom))); z-index: 15;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; opacity: .88;
  transition: bottom .26s ease, opacity .2s ease, transform .12s ease, border-color .15s ease, color .15s ease; }
.bars-hidden .back-top { bottom: max(.85rem, calc(.55rem + env(safe-area-inset-bottom))); opacity: .72; }
.tts-open .back-top { bottom: max(6.8rem, calc(6.3rem + env(safe-area-inset-bottom))); }
.back-top:hover { opacity: 1; border-color: var(--link); color: var(--link); }
.back-top:active { transform: scale(.94); }
.back-top svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 40rem) {
  .back-top { right: .65rem; width: 2.3rem; height: 2.3rem; bottom: max(4.2rem, calc(3.75rem + env(safe-area-inset-bottom))); }
  .bars-hidden .back-top { bottom: max(.7rem, calc(.4rem + env(safe-area-inset-bottom))); }
  .tts-open .back-top { bottom: max(7rem, calc(6.5rem + env(safe-area-inset-bottom))); }
  .search-suggest { right: 0; left: auto; min-width: min(19rem, calc(100vw - 1.4rem)); }
  .chapter-engage { max-width: calc(100% - 1.2rem); }
  .react-btn { padding: .4rem .68rem; font-size: .8rem; }
  .seal { font-size: .7rem; padding: .18rem .42rem; }
  .done-badge { font-size: .64rem; padding: .18rem .42rem; }
  .new-badge { font-size: .62rem; padding: .18rem .42rem; }
}
.avatar-link { display: inline-flex; border-radius: 50%; }
.brand { border-radius: 8px; }
.split > *, .hero-text, .book-info, .panel, .about-book > * { min-width: 0; }

/* --- mobil açılır menü çekmecesi (3 çubuklu menü) --- */
body.drawer-open { overflow: hidden; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(6, 12, 11, .62); backdrop-filter: blur(3px);
}
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(20.5rem, 86vw);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 36px rgba(0, 0, 0, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-drawer:not([hidden]) { animation: drawer-in .18s ease-out; }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
@media (min-width: 52.01rem) {
  .mobile-drawer, .drawer-backdrop { display: none !important; }
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem .9rem .75rem 1.1rem;
  border-bottom: 1px solid var(--line); flex: none;
}
.drawer-title { font: 700 1.05rem/1 var(--serif); color: var(--text); }
.drawer-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: .95rem 1rem 1.25rem; display: grid; align-content: start; gap: 1rem;
}
.drawer-search { flex: none; min-width: 0; width: 100%; }
.drawer-search input { width: 100%; padding: .52rem .85rem .52rem 2.2rem; font-size: .92rem; }
.drawer-search .search-suggest { left: 0; right: 0; min-width: 0; width: 100%; }
.drawer-user { min-width: 0; }
.drawer-profile {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem; border-radius: 12px;
  background: var(--bg); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.drawer-profile:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--link); }
.drawer-profile .avatar { width: 2.3rem; height: 2.3rem; font-size: .96rem; }
.drawer-profile-meta { display: grid; gap: .08rem; min-width: 0; }
.drawer-profile-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.drawer-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .55rem; }
.drawer-auth .button { padding: .6rem .8rem; font-size: .9rem; text-align: center; }
.drawer-nav { display: grid; gap: .18rem; }
.drawer-section {
  margin: .65rem 0 .25rem; padding: 0 .65rem;
  font: 700 .72rem/1 var(--ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.drawer-section:first-child { margin-top: 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .62rem .75rem; border-radius: 10px;
  color: var(--text); font: 600 .95rem/1.2 var(--ui);
}
.drawer-nav a:hover { background: var(--surface-2); text-decoration: none; }
.drawer-nav a[aria-current="page"] { background: var(--surface-2); color: var(--link); }
.drawer-foot {
  flex: none; padding: .75rem 1rem max(.85rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: .45rem;
}
.drawer-foot form { margin: 0; }
.drawer-tool {
  width: 100%; display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border: 0; border-radius: 10px;
  background: var(--bg); color: var(--text);
  font: 600 .9rem/1.2 var(--ui); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.drawer-tool:hover { box-shadow: inset 0 0 0 1px var(--link); color: var(--link); }
.drawer-tool.is-danger { color: #e26d5c; }
.drawer-tool.is-danger:hover { box-shadow: inset 0 0 0 1px #e26d5c; color: #e26d5c; }
.drawer-tool svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- tür SEO sayfaları, hariç tut filtresi ve alt SEO şeridi --- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.genre-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 1.1rem; }
.genre-head h1 { margin: 0 0 .3rem; }
.genre-head p { margin: 0; max-width: 46rem; }
.genre-count-pill { display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 700 .84rem/1 var(--ui); color: var(--muted); white-space: nowrap; }
.genre-controls { justify-content: space-between; margin-bottom: 1.35rem; }
.seo-info { margin-top: 2.25rem; }
.seo-info h2 { font-size: 1.1rem; margin: 0 0 .55rem; }
.seo-info p { margin: 0 0 .6rem; line-height: 1.65; }
.seo-info p:last-child { margin-bottom: 0; }
.exclude-box { margin-top: 1rem; }
.exclude-box > summary { cursor: pointer; margin: 1rem 0 .45rem; }
.chip.is-excl { background: color-mix(in srgb, var(--seal) 22%, transparent); color: var(--seal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seal) 55%, transparent); }
.foot-seo { display: flex; flex-wrap: wrap; gap: .4rem 1.05rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.foot-seo a { color: var(--muted); font-size: .8rem; font-weight: 600; transition: color .15s ease; }
.foot-seo a:hover { color: var(--link); text-decoration: none; }

/* --- geliştirilmiş alıntı alt çubuğu (çift tık / metin seçimi) --- */
.chapter p.para-picked {
  background: color-mix(in srgb, var(--link) 14%, transparent);
  border-radius: 6px;
  box-shadow: 0 0 0 .35em color-mix(in srgb, var(--link) 14%, transparent);
}
.quote-sheet {
  position: fixed; left: 50%; bottom: max(.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 34;
  width: min(34rem, calc(100vw - 1.25rem));
  padding: .8rem 1rem .95rem; border-radius: 16px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), inset 0 0 0 1px color-mix(in srgb, var(--link) 35%, var(--line));
  display: grid; gap: .55rem;
}
.quote-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.quote-sheet-head .icon-button { width: 1.9rem; height: 1.9rem; }
.quote-sheet-preview {
  margin: 0; padding: .45rem .75rem; border-left: 3px solid var(--link);
  background: var(--bg); border-radius: 0 8px 8px 0;
  font: italic .92rem/1.5 var(--serif); color: var(--text);
  max-height: 5.5rem; overflow: hidden;
}
.quote-sheet-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.quote-sheet-acts .button { flex: 1 1 auto; }

/* --- profilde geliştirilmiş alıntı kartları --- */
.quote-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.quote-card-cover { flex: none; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.quote-card-cover img { display: block; width: 40px; height: 60px; object-fit: cover; }
.quote-card-meta { display: grid; gap: .12rem; min-width: 0; flex: 1; }
.quote-card-title { color: var(--text); font-family: var(--serif); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-card-del { margin: 0; flex: none; }
.quote-editorial {
  position: relative; margin: 0; padding: .85rem 1.05rem .85rem 1.2rem;
  border-left: 3px solid var(--seal); border-radius: 0 10px 10px 0;
  background: var(--bg); font: italic 1.02rem/1.65 var(--serif); color: var(--text);
}
.quote-card-note { margin: .55rem 0 0; }

/* --- profil listelerinden kaldır düğmeleri --- */
.reading-item { position: relative; display: flex; align-items: center; gap: .4rem; }
.reading-item .reading-row { flex: 1 1 auto; min-width: 0; }
.row-remove-btn { flex: none; color: var(--muted); }
.row-remove-btn:hover { color: #e26d5c; background: color-mix(in srgb, #e26d5c 14%, transparent); }
.card-remove-btn { display: inline-block; margin-top: .3rem; font-size: .78rem; color: var(--muted); text-align: left; }
.card-remove-btn:hover { color: #e26d5c; }

/* --- kitap yaz / yazar stüdyosu (/yaz) --- */
.write-page { max-width: 64rem; }
.write-editor-page { max-width: 52rem; }
.write-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 1.5rem 1.6rem; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.write-hero h1 { margin: 0 0 .35rem; }
.write-hero p { margin: 0; max-width: 40rem; }
.write-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.write-form { display: grid; gap: 1rem; }
.write-form h2 { margin: 0; }
.write-form > div { display: grid; gap: .35rem; }
.write-form input[type="text"], .write-form select, .write-form textarea { width: 100%; }
.write-form textarea { resize: vertical; line-height: 1.65; }
.editor-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.genre-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.genre-check { position: relative; cursor: pointer; }
.genre-check input { position: absolute; opacity: 0; pointer-events: none; }
.genre-check span {
  display: inline-block; padding: .3rem .72rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font: 600 .83rem var(--ui);
  transition: background .15s ease, color .15s ease;
}
.genre-check input:checked + span { background: var(--link); color: var(--on-link); }
.write-book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.write-book-row {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem;
  border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.write-book-thumb { flex: none; display: block; border-radius: 6px; overflow: hidden; }
.write-book-thumb img { display: block; width: 64px; height: 96px; object-fit: cover; }
.write-book-info { flex: 1 1 auto; min-width: 0; display: grid; gap: .2rem; }
.write-book-info h3 { margin: 0; font: 600 1.05rem/1.3 var(--serif); }
.write-book-info p { margin: 0; }
.write-book-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex: none; }
.write-ch-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; }
.write-ch-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem 0; border-top: 1px solid var(--line);
}
.write-ch-list li > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.write-ch-list li > a:hover { color: var(--link); }
.write-ch-acts { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.write-danger-zone { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 64rem) {
  .top-search { flex: 0 1 12.5rem; width: 12.5rem; }
}
@media (max-width: 52rem) {
  .top:not(.read-bar) .mode-switch { min-width: 0; }
  .drawer-search { flex: none; width: 100%; }
  .write-grid { grid-template-columns: minmax(0, 1fr); }
  .write-book-row { flex-wrap: wrap; }
}
.side-write { display: grid; gap: .6rem; justify-items: start;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 28%, var(--line)); }
.side-write h2 { margin: 0; }
.side-write p { margin: 0; line-height: 1.5; }
.profile-quick-acts { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; }

/* --- Mobil-yerel hissiyat & mikro-etkileşim cilaları --- */
.login-page, .login-wrap, .offline-page { min-height: 100dvh; }
.ch-dialog { max-height: min(44rem, calc(100dvh - 3rem)); overscroll-behavior: contain; }
.chapter-box.in-dialog { overscroll-behavior: contain; }
.button, .icon-button, .settings-toggle, .pill, .chip, .react-btn, .read-dock a, .read-dock button {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .12s cubic-bezier(.16, 1, .3, 1), background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.button:active:not(.disabled), .icon-button:active, .settings-toggle:active, .pill:active, .chip:active, .react-btn:active {
  transform: scale(.97);
}
@media (pointer: coarse) {
  input, textarea, select { font-size: 16px; }
}

/* --- En çok okuyanlar yuvarlak avatar, tek satır klasikler ve profil fotoğrafı kırpıcı --- */
.leader-rank a { grid-template-columns: 1.65rem 2.15rem minmax(0, 1fr); }
.leader-rank .avatar, .leader-rank img.avatar {
  width: 2.15rem; height: 2.15rem; border-radius: 50%; object-fit: cover; font-size: .85rem;
}
.foot-brand .logo { width: 2.2rem; height: 2.2rem; }
.shelf.shelf-one-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 56rem) {
  .shelf.shelf-one-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: .35rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .shelf.shelf-one-row::-webkit-scrollbar { display: none; }
  .shelf.shelf-one-row > .book-card { flex: 0 0 9.4rem; scroll-snap-align: start; }
}

.avatar-crop-dialog {
  width: min(23.5rem, calc(100vw - 1.5rem));
  padding: 0; border: 0; border-radius: 16px;
  background: var(--bg); color: var(--text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line);
  font: 16px/1.45 var(--ui);
}
.avatar-crop-dialog::backdrop { background: rgba(6, 12, 11, .68); backdrop-filter: blur(3px); }
.avatar-crop-box { display: grid; gap: .75rem; padding-bottom: 1rem; }
.avatar-crop-stage-wrap { display: grid; justify-items: center; gap: .55rem; padding: 0 1rem; }
.avatar-crop-canvas {
  width: 260px; height: 260px; max-width: 100%;
  border-radius: 12px; overflow: hidden;
  cursor: grab; touch-action: none;
  box-shadow: 0 0 0 1px var(--line);
}
.avatar-crop-canvas.is-dragging { cursor: grabbing; }
.avatar-crop-hint { margin: 0; text-align: center; }
.avatar-crop-zoom-row {
  display: flex; align-items: center; gap: .45rem;
  padding: 0 1rem;
}
.avatar-crop-slider { flex: 1; min-width: 0; accent-color: var(--link); padding: 0; border: 0; background: transparent; cursor: pointer; }
.avatar-crop-pct { min-width: 2.9rem; text-align: right; font-variant-numeric: tabular-nums; }
.avatar-crop-actions { display: flex; justify-content: flex-end; gap: .6rem; padding: .25rem 1rem 0; }

/* --- Site teması seçici (okuma temasından bağımsız 6 tema) --- */
.theme-menu { position: relative; display: inline-flex; align-items: center; }
.theme-menu [data-theme-toggle][aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.theme-popover {
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 35;
  width: 17.5rem; padding: .85rem .9rem .95rem;
  border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38), inset 0 0 0 1px var(--line);
  transform-origin: top right;
  animation: themePopIn .16s cubic-bezier(.16, 1, .3, 1);
}
@keyframes themePopIn {
  from { opacity: 0; transform: translateY(-4px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.theme-pop-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  margin: 0 0 .65rem; font-size: .82rem;
}
.theme-pop-grid { grid-template-columns: repeat(3, 1fr); gap: .42rem; }
.theme-pop-grid .swatch { padding: .48rem .25rem; font-size: .74rem; border-radius: 8px; }
.theme-pop-grid .swatch span { font-size: .95rem; }
.drawer-themes { padding-bottom: .35rem; }
.drawer-theme-label { margin: 0 0 .45rem; font-size: .78rem; font-weight: 700; color: var(--text); }
.drawer-theme-grid { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.drawer-theme-grid .swatch { padding: .45rem .2rem; font-size: .72rem; border-radius: 8px; }
.drawer-theme-grid .swatch span { font-size: .92rem; }

/* --- Site içi çevrimdışı gezinme & Çevrimdışı Kütüphanem (/cevrimdisi) --- */
.tabular { font-variant-numeric: tabular-nums; }
.offline-lib-link-row { margin: .55rem 0 0; }
.off-top-tools { margin-left: auto; }
.off-lib { padding-top: 1.5rem; padding-bottom: 3.5rem; display: flex; flex-direction: column; gap: 1.15rem; }
.off-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.off-head-main { min-width: 0; flex: 1 1 18rem; display: flex; flex-direction: column; gap: .3rem; }
.off-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.off-title-row h1 { margin: 0; font: 700 1.45rem/1.2 var(--serif); letter-spacing: -.02em; }
.off-note { margin: 0; max-width: 62ch; font-size: .92rem; }
.off-head-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.off-online-links { display: inline-flex; align-items: center; gap: .45rem; }
.off-status-pill {
  display: inline-flex; align-items: center; gap: .38rem; padding: .22rem .65rem;
  border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.off-status-pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--seal); }
.off-status-pill.is-online { color: var(--link); }
.off-status-pill.is-online::before { background: var(--link); }

.off-resume-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s ease-out, transform .15s ease-out;
}
.off-resume-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .off-resume-card:hover { border-color: var(--link); text-decoration: none; }
}
.off-resume-meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.off-resume-kicker { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--link); }
.off-resume-title { font: 700 1.05rem/1.25 var(--serif); color: var(--text); }

.off-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.off-tabs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.off-tools-right { display: flex; align-items: center; gap: .65rem; flex: 1 1 14rem; justify-content: flex-end; }
.off-search-wrap {
  position: relative; display: flex; align-items: center; flex: 0 1 16rem; width: 100%;
}
.off-search-wrap svg {
  position: absolute; left: .68rem; width: .95rem; height: .95rem; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 2;
}
.off-search-wrap input {
  width: 100%; padding: .48rem .75rem .48rem 2.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .88rem;
}
.off-clear-all { color: var(--seal); white-space: nowrap; }

.off-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr)); gap: .9rem; }
.off-card {
  display: flex; flex-direction: column; gap: .75rem; padding: .9rem;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.off-card-top { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.off-cover {
  flex: none; width: 4.1rem; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none;
}
.off-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off-cover-ph { font: 700 1.05rem/1 var(--serif); color: var(--link); }
.off-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .28rem; }
.off-card-badges { display: flex; align-items: center; gap: .45rem; }
.off-kind-tag {
  font-size: .7rem; font-weight: 700; padding: .12rem .48rem; border-radius: 999px;
  background: var(--surface-2); color: var(--link); border: 1px solid var(--line);
}
.off-kind-tag.is-manga { color: var(--seal); }
.off-card-title {
  font: 700 1rem/1.28 var(--serif); color: var(--text); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.off-card-range { margin: 0; font-size: .8rem; }
.off-card-actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: .3rem; }
.off-del-btn { margin-left: auto; color: var(--muted); font-size: .8rem; }
.off-del-btn:hover { color: var(--seal); }

.off-ch-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .38rem;
  padding-top: .7rem; border-top: 1px solid var(--line); max-height: 14rem; overflow-y: auto; overscroll-behavior: contain;
}
.off-ch-pill {
  display: block; text-align: center; padding: .38rem .4rem; border-radius: 8px;
  font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--text);
  background: var(--surface-2); border: 1px solid transparent;
}
.off-ch-pill.is-current { border-color: var(--link); color: var(--link); }
@media (hover: hover) and (pointer: fine) {
  .off-ch-pill:hover { border-color: var(--line); text-decoration: none; }
}

.off-empty {
  display: grid; place-items: center; text-align: center; gap: .6rem;
  padding: 2.5rem 1.25rem; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line);
}
.off-empty .logo { width: 3.4rem; height: 3.4rem; }
.off-empty h2 { margin: .25rem 0 0; font: 700 1.15rem/1.3 var(--serif); }
.off-empty p { margin: 0; max-width: 46ch; font-size: .9rem; }
.off-empty-actions { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }

/* Çevrimdışıyken başka sayfalarda görünen kompakt alt şerit */
.offline-float-bar {
  position: fixed; left: 50%; bottom: calc(.85rem + env(safe-area-inset-bottom, 0px)); z-index: 48;
  transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: 999px; font-size: .82rem; text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38); white-space: nowrap;
}
.offline-float-bar .off-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--seal); flex: none; }
.offline-float-bar strong { color: var(--link); }

/* Bölüm listesi penceresinde cihazda kayıtlı bölümleri yeşil nokta ile göster */
.ch-list a.is-offline-cached::after {
  content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--link); margin-left: auto; flex: none;
}

@media (max-width: 640px) {
  .off-grid { grid-template-columns: 1fr; }
  .off-tools-right { justify-content: space-between; }
  .off-search-wrap { flex: 1; }
}

