/* RewPad — onaylı tasarım katmanı (30.10.2026, docs/tasarim/): üst menü, menü çekmecesi, ana sayfa, Keşfet, Kitaplar, Yazarlar,
   Kitap Detay, Çalışma Masam. Ortak düzende (layouts.app) rewpad.css'ten SONRA yüklenir; okuma ekranı (reader/chapter) yüklemez —
   yavaş bağlantıda okuma sayfasının ilk boyaması bu dosyayı beklemez. */
/* ===================================================================================================================
   ONAYLI TASARIM (30.10.2026) — docs/tasarim/*.png. Mevcut sınıflar korunur; burada yalnızca görünüm üzerine yazılır.
   Renkler: lacivert yazı, pembe → mavi düğme geçişi, mor vurgu, turkuaz yardımcı, sıcak açık zeminler.
   =================================================================================================================== */
:root {
  --navy: #14123A; --pink: #F0289A; --pink-ink: #C2187A; --blue: #2F6BF5; --violet: #7C3AED;
  --grad-cta: linear-gradient(90deg, #F72A9C 0%, #C03BD9 48%, #2F7BF5 100%);
  --grad-bar: linear-gradient(180deg, #F0289A 0%, #8B5CF6 100%);
  --page: #FFFFFF; --soft: #F7F4FF; --warm: #FFF8F1; --card-line: #ECE7F6;
  --card-shadow: 0 1px 2px rgba(20, 18, 58, .05), 0 6px 18px rgba(20, 18, 58, .07);
  --tag-bg: #F3F0FA; --tag-ink: #4B4566;
  --nav-ink: #1D1B3A; --join-bg: #16143A;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}
:root[data-theme="dark"] {
  --navy: #F5F2FF; --pink-ink: #FF77C2; --page: #120D2B; --soft: #191233; --warm: #1B1430; --card-line: #2E2556;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .3); --tag-bg: #2A2150; --tag-ink: #DCD5F5; --nav-ink: #EDE9FF; --join-bg: #1E1846;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --navy: #F5F2FF; --pink-ink: #FF77C2; --page: #120D2B; --soft: #191233; --warm: #1B1430; --card-line: #2E2556;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .3); --tag-bg: #2A2150; --tag-ink: #DCD5F5; --nav-ink: #EDE9FF; --join-bg: #1E1846;
  }
}

/* Düğmeler */
.btn-grad { background: var(--grad-cta); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(240, 40, 154, .25); }
.btn-grad:hover { color: #fff; filter: brightness(1.06); }
.btn-grad svg { width: 18px; height: 18px; }

/* Üst menü */
.site-header { background: var(--bg); border-bottom: 1px solid var(--card-line); position: relative; z-index: 20; }
.site-header .in { max-width: 1440px; flex-wrap: nowrap; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { gap: 10px; flex-shrink: 0; }
.brand .brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.brand-text b span { background: linear-gradient(90deg, #A23BEF, #F0289A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin-top: 3px; }
.header-search { flex: 1 1 300px; max-width: 420px; position: relative; display: flex; }
.header-search .input { min-height: 44px; border-radius: 999px; padding-inline: 20px 48px; background: var(--soft); border-color: var(--card-line); font-size: 14px; }
.header-search button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--nav-ink); cursor: pointer; display: grid; place-items: center; }
.header-search button svg { width: 20px; height: 20px; }
.nav { gap: 26px; font-size: 14.5px; flex-shrink: 0; }
.nav a { color: var(--nav-ink); padding: 6px 0; position: relative; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--pink-ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--pink); }
.header-actions { margin-inline-start: auto; gap: 12px; flex-shrink: 0; }
.header-actions .icon-btn { border: 0; background: var(--soft); }
.theme-toggle .icon-btn { color: var(--nav-ink); }
.btn-login { border-color: var(--navy); color: var(--navy); border-radius: 10px; min-height: 42px; padding-inline: 18px; }
.btn-join { border-radius: 10px; min-height: 44px; padding-inline: 20px; }
.search-toggle { display: none !important; }
.user-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--nav-ink); font: inherit; font-weight: 700; cursor: pointer; padding: 2px; border-radius: 999px; min-height: 44px; }
.user-btn svg { width: 18px; height: 18px; }
.user-btn .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #E9D5FF; }
.bell-count { background: var(--pink); }
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .header-search { max-width: 260px; }
}
@media (max-width: 1024px) {
  .header-search { display: none; }
  .search-toggle { display: inline-flex !important; }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  .site-header .in { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .brand .brand-logo { width: 38px; height: 38px; }
  .brand-text b { font-size: 22px; }
  .brand-text small { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { background: none; }
  .btn-login { min-height: 38px; padding: 6px 12px; font-size: 14px; }
  .user-btn .avatar { width: 38px; height: 38px; }
}

/* Menü & Bildirimler çekmecesi */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 58, .45); backdrop-filter: blur(2px); }
.drawer-body { position: absolute; top: calc(8px + var(--safe-t, 0px)); inset-inline-end: max(8px, var(--safe-r, 0px)); width: min(380px, calc(100vw - 16px)); max-height: calc(100vh - 16px - var(--safe-t, 0px)); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer-card { background: var(--bg); border-radius: 18px; box-shadow: 0 18px 50px rgba(20, 18, 58, .25); padding: 16px; }
.drawer-head { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--card-line); }
.drawer-head .avatar { grid-row: 1 / 3; }
.avatar.md { width: 56px; height: 56px; font-size: 22px; }
.drawer-who { min-width: 0; display: flex; flex-direction: column; }
.drawer-who strong { font-size: 17px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-who a { font-size: 14px; font-weight: 700; color: var(--violet); text-decoration: none; }
.drawer-x { grid-column: 3; grid-row: 1; width: 36px; height: 36px; }
.drawer-theme { grid-column: 3; grid-row: 2; }
.drawer-theme .icon-btn { width: 36px; height: 36px; }
.drawer-nav { display: flex; flex-direction: column; padding-top: 8px; }
.drawer-nav a, .drawer-nav button, .drawer-lang summary { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 8px 12px; border-radius: 12px; color: var(--nav-ink); text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; width: 100%; cursor: pointer; text-align: start; }
.drawer-nav svg { width: 22px; height: 22px; flex-shrink: 0; }
.drawer-nav a[aria-current="page"] { background: #F1EAFE; color: var(--violet); font-weight: 800; }
:root[data-theme="dark"] .drawer-nav a[aria-current="page"] { background: #2A1F55; color: #C4B5FD; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .drawer-nav a[aria-current="page"] { background: #2A1F55; color: #C4B5FD; } }
.drawer-nav a:hover, .drawer-nav button:hover, .drawer-lang summary:hover { background: var(--soft); }
.drawer-nav hr { border: 0; border-top: 1px solid var(--card-line); margin: 8px 0; width: 100%; }
.count-dot { margin-inline-start: auto; min-width: 22px; height: 22px; border-radius: 999px; background: #EF2D2D; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.drawer-lang summary { list-style: none; }
.drawer-lang summary::-webkit-details-marker { display: none; }
.drawer-lang summary::after { content: "›"; margin-inline-start: auto; font-size: 20px; color: var(--muted); }
.drawer-lang[open] summary::after { transform: rotate(90deg); }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px 48px; }
.drawer-langs button { width: auto; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: 14px; }
.drawer-langs button[aria-current="true"] { background: var(--violet); color: #fff; }
body.drawer-open { overflow: hidden; }

/* Bildirim önizlemesi */
.note-mini { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--card-line); color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.note-mini:first-child { border-top: 0; }
.note-mini .note-ico { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: #EEF2FF; color: #4F46E5; }
.note-mini .note-ico svg { width: 17px; height: 17px; }
.note-mini.unread .note-ico { background: #FCE7F3; color: var(--pink-ink); }
.note-mini .note-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* Bölüm başlığı (sol renkli çizgi) */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-title { min-width: 0; border-inline-start: 4px solid; border-image: var(--grad-bar) 1; padding-inline-start: 14px; }
.sec-head.plain .sec-title { border: 0; padding: 0; }
.sec-head h2 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.sec-head h2 svg { width: 24px; height: 24px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sec-more { flex-shrink: 0; font-size: 13.5px; font-weight: 700; color: var(--pink-ink); text-decoration: none; white-space: nowrap; }
.sec-head.sm h2 { font-family: var(--sans); font-size: 16px; }
.sec-head.sm { margin-bottom: 6px; align-items: center; }

/* Kitap kartı */
.book-card { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border: 1px solid var(--card-line); border-radius: 12px; padding: 8px 8px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--card-shadow); min-width: 0; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.book-card:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow-hover); }
.book-cover { display: block; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.book-cover .cover { width: 100%; aspect-ratio: 2 / 3; height: auto; display: block; border-radius: 0; object-fit: cover; }
.book-card.wide .book-cover .cover { aspect-ratio: 3 / 2; }
.book-title { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.book-author { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--tag-ink); background: var(--tag-bg); border-radius: 6px; padding: 3px 9px; }
.book-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin-top: 12px; }
.book-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; scroll-snap-type: x proximity; }
.book-row::-webkit-scrollbar { display: none; }
.book-row > * { scroll-snap-align: start; }

/* Tür şeridi */
.genre-strip { position: relative; }
.genre-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.genre-track::-webkit-scrollbar { display: none; }
.genre-card { flex: 0 0 auto; width: 104px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg); border: 1px solid var(--card-line); border-radius: 12px; box-shadow: var(--card-shadow); color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 600; scroll-snap-align: start; padding: 8px 4px; text-align: center; }
.genre-card:hover { border-color: #D8B4FE; color: var(--navy); }
.genre-card[aria-current="true"] { border: 1.5px solid #C084FC; background: #FBF7FF; box-shadow: 0 0 0 3px rgba(192, 132, 252, .15); }
:root[data-theme="dark"] .genre-card[aria-current="true"] { background: #231A4A; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .genre-card[aria-current="true"] { background: #231A4A; } }
.genre-icon { width: 44px; height: 44px; filter: drop-shadow(0 3px 3px rgba(20, 18, 58, .18)); }
.scroller-next, .scroller-prev { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--bg); color: var(--navy); box-shadow: var(--card-shadow); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.scroller-next { inset-inline-end: -6px; }
.scroller-prev { inset-inline-start: -6px; }
.scroller-next svg, .scroller-prev svg { width: 20px; height: 20px; }
[dir="rtl"] .scroller-next svg, [dir="rtl"] .scroller-prev svg { transform: scaleX(-1); }
@media (max-width: 640px) {
  .genre-card { width: 76px; min-height: 76px; font-size: 11.5px; padding: 6px 2px; }
  .genre-icon { width: 34px; height: 34px; }
  .scroller-next, .scroller-prev { display: none; }
}

/* Yazarlar */
.author-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); text-align: center; min-width: 0; }
.author-chip .author-name { font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #E9D5FF; }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 24px 16px; margin-top: 16px; }
.author-row { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.author-row::-webkit-scrollbar { display: none; }

/* Sayfa başlıkları ve dar sayfalar */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head h1, .serif-title { font-family: var(--display); color: var(--navy); }
.sort-form { display: flex; gap: 8px; align-items: center; }
.wrap.narrow { max-width: 760px; }
.feature-list p { margin: 0 0 16px; }
.feature-list p:last-child { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }

/* Mobil alt sekmeler (onaylı tasarım) */
@media (max-width: 640px) {
  .tabbar a[aria-current="page"] { color: var(--pink-ink); }
  .tabbar a[aria-current="page"] svg { background: none; }
  .tabbar a[aria-current="page"]::before { display: none; }
}

/* ---- Ana sayfa (onaylı tasarım) ---- */
.home-hero { position: relative; background: #F6E6D8 url("../brand/tasarim/hero-istanbul.jpg") no-repeat right center / auto 100%; background-image: image-set(url("../brand/tasarim/hero-istanbul.webp") type("image/webp"), url("../brand/tasarim/hero-istanbul.jpg") type("image/jpeg")); min-height: 232px; display: flex; align-items: center; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #FBF1EA 0%, #F8E7DA 34%, rgba(248, 231, 218, .82) 46%, rgba(248, 231, 218, 0) 64%); }
.band-in { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px max(48px, var(--safe-l, 0px)); }
.hero-copy { max-width: 560px; }
.hero-title { font-family: var(--display); font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -1px; color: #14123A; margin: 0 0 12px; font-weight: 800; }
.hl-grad { background: linear-gradient(90deg, #A23BEF 0%, #F0289A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 0 16px; color: #1F1B3D; font-size: 15px; line-height: 1.45; max-width: 520px; }
.hero-cta { border-radius: 10px; padding-inline: 22px; }
.hero-cta svg { width: 18px; height: 18px; }
.welcome-band { position: relative; background: #2A1745 url("../brand/tasarim/karsilama-galata.jpg") no-repeat right center / cover; background-image: image-set(url("../brand/tasarim/karsilama-galata.webp") type("image/webp"), url("../brand/tasarim/karsilama-galata.jpg") type("image/jpeg")); color: #fff; overflow: hidden; }
.welcome-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 18, 64, .92) 0%, rgba(58, 28, 82, .7) 45%, rgba(58, 28, 82, .15) 100%); }
.welcome-band .band-in { padding-top: 18px; padding-bottom: 18px; }
.welcome-title { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 4px; color: #fff; }
.welcome-title .hl { color: #FACC15; }
.welcome-band p { margin: 0; font-size: 16px; color: #F3EAFE; }
.home2 { max-width: 1440px; padding-top: 18px; }
.home-genres { margin-bottom: 18px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.home-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-sec { min-width: 0; }
.book-row.six { grid-auto-columns: minmax(150px, 1fr); }
.book-card.wide .book-title, .book-card.wide .book-author { text-align: center; }
.top-pair { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.top-pair.has-desk { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); }
.top-pair:empty { display: none; }

/* Kaldığın yerden devam et */
.cont-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cont-card { display: flex; gap: 12px; background: var(--bg); border: 1px solid var(--card-line); border-radius: 12px; padding: 10px; box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink); min-width: 0; }
.cont-card:hover { color: var(--ink); box-shadow: var(--shadow-hover); }
.cont-cover { flex: 0 0 74px; border-radius: 6px; overflow: hidden; }
.cont-cover .cover { width: 74px; height: 104px; object-fit: cover; display: block; border-radius: 0; }
.cont-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cont-title { font-weight: 800; font-size: 14px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-author { font-size: 12.5px; color: var(--muted); }
.cont-body .book-tags { margin-top: 4px; }
.cont-body .meter { margin-top: auto; height: 6px; border-radius: 999px; background: #EDE9F6; overflow: hidden; display: block; }
.cont-body .meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F0289A, #7C3AED); }
.cont-where { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* Çalışma Masam */
.desk-card { background: var(--bg); border: 1px solid var(--card-line); border-radius: 14px; padding: 16px; box-shadow: var(--card-shadow); }
.desk-card .sec-head h2 { font-family: var(--sans); font-size: 18px; font-weight: 800; }
.desk-last { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.desk-cover { flex: 0 0 64px; border-radius: 6px; overflow: hidden; }
.desk-cover .cover { width: 64px; height: 92px; object-fit: cover; display: block; border-radius: 0; }
.desk-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.desk-info strong { font-size: 15px; color: var(--navy); }
.desk-info .btn { align-self: flex-start; margin-top: 6px; border-radius: 8px; }
.desk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.desk-stats div { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
.desk-stats dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.desk-stats dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.desk-all { border-color: #E9A8D2; color: var(--violet); border-radius: 8px; min-height: 40px; }

/* Yan sütun */
.join-box { position: relative; background: radial-gradient(60% 50% at 92% 18%, rgba(255, 176, 74, .55) 0%, rgba(255, 176, 74, 0) 70%), linear-gradient(160deg, #1C1A44 0%, #14123A 100%); color: #fff; border-radius: 14px; padding: 22px 22px 18px; overflow: hidden; }
.join-box h2 { font-family: var(--display); font-size: 28px; margin: 0 0 14px; color: #fff; }
.join-box ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.join-box li { display: flex; gap: 12px; align-items: center; }
.join-box li svg { width: 22px; height: 22px; flex-shrink: 0; }
.join-box .btn-grad { border-radius: 10px; min-height: 50px; font-size: 16px; }
.join-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; font-size: 14px; color: #E5E1F5; }
.btn-light { background: #fff; color: #14123A; border-radius: 8px; min-height: 40px; padding: 6px 26px; }
.btn-light:hover { color: #14123A; background: #F3F0FF; }
.side-card { background: var(--bg); border: 1px solid var(--card-line); border-radius: 14px; padding: 16px; box-shadow: var(--card-shadow); }
.side-note { margin: -2px 0 8px; font-size: 12px; color: var(--muted); }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-list a { display: grid; grid-template-columns: 30px 44px 1fr; gap: 12px; align-items: center; padding: 4px 0; text-decoration: none; color: var(--ink); }
.rank { width: 28px; height: 28px; border-radius: 999px; background: var(--soft); border: 1px solid var(--card-line); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--navy); }
.rank-cover .cover { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.rank-cover .cover-empty, .rank-cover .cover-tpl { font-size: 0; }
.rank-body { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.rank-body strong { font-size: 14px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-reads { font-size: 12px; color: var(--pink-ink); font-weight: 600; }
.strip-wrap { position: relative; }
.only-sm { display: none; }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .top-pair.has-desk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .only-sm { display: block; }
  .home-hero { min-height: 0; align-items: flex-end; background-size: cover; background-position: 70% center; padding-top: 120px; }
  .home-hero::before { background: linear-gradient(180deg, rgba(248, 231, 218, 0) 0%, rgba(248, 231, 218, .9) 45%, #F8E7DA 70%); }
  .band-in { padding: 18px max(16px, var(--safe-l, 0px)); }
  .hero-title { font-size: 34px; }
  .welcome-band { background-position: 65% center; }
  .welcome-band .band-in { padding-top: 56px; padding-bottom: 22px; }
  .welcome-title { font-size: 26px; }
  .welcome-band p { font-size: 14px; }
  .home2 { padding-top: 14px; }
  .home-main { gap: 24px; }
  .sec-head h2 { font-size: 20px; }
  .cont-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 8px; }
  .cont-row::-webkit-scrollbar { display: none; }
  .cont-card { flex-direction: column; padding: 0 0 10px; overflow: hidden; }
  .cont-cover { flex: none; border-radius: 0; }
  .cont-cover .cover { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .cont-body { padding: 0 8px; }
  .cont-body .book-tags { display: none; }
  .book-row, .book-row.six { grid-auto-columns: 40%; margin-inline: -16px; padding-inline: 16px; }
  .join-box h2 { font-size: 24px; }
}
:root[data-theme="dark"] .hero-title { color: #14123A; }
:root[data-theme="dark"] .cont-body .meter { background: #2E2556; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cont-body .meter { background: #2E2556; } }

/* Düzeltmeler (ekran kontrolü sonrası) */
.nav a:hover { background: none; color: var(--pink-ink); }
@media (max-width: 420px) { .site-header:has(.btn-login) .brand b { position: static; width: auto; height: auto; overflow: visible; clip-path: none; } }
.sec-head.sm h2 { white-space: nowrap; }
.top-pair.has-desk:not(.pair) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .top-pair.has-desk:not(.pair) { grid-template-columns: minmax(0, 1fr); } }
.nav a[aria-current="page"] { background: none; }
/* Üst menü logosu: orijinal logonun kırpımı (yeniden çizilmedi). Koyu temada okunabilirlik için açık zemin. */
.brand--logo { flex-direction: column; align-items: center; gap: 0; }
.brand-header-logo img { display: block; height: 52px; width: auto; }
.brand-tag { font-size: 9.5px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin-top: -2px; white-space: nowrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .brand-header-logo img { height: 40px; }
:root[data-theme="dark"] .brand-header-logo img { background: #FDFDFD; border-radius: 10px; padding: 3px 5px; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .brand-header-logo img { background: #FDFDFD; border-radius: 10px; padding: 3px 5px; } }
@media (max-width: 640px) { .brand-header-logo img { height: 42px; } .brand-tag { display: none; } }
@media (min-width: 641px) { .brand-header-logo img { height: 58px; } .brand-tag { margin-top: 1px; font-size: 10px; } }

/* ---- Keşfet (onaylı tasarım) ---- */
.page-title { font-family: var(--display); color: var(--navy); font-size: 32px; }
.pill-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 16px; padding-bottom: 2px; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs a { flex: 0 0 auto; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--card-line); background: var(--bg); color: var(--nav-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pill-tabs a[aria-current="page"] { background: linear-gradient(135deg, #A855F7, #7C3AED); color: #fff; border-color: transparent; }
.genre-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) and (min-width: 641px) { .genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.genre-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; background: var(--soft); border: 1px solid var(--card-line); border-radius: 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; transition: transform .18s var(--ease); }
.genre-tile:hover { transform: translateY(-2px); color: var(--navy); }
.genre-tile .genre-icon { width: 60px; height: 60px; }
@media (max-width: 640px) {
  .page-title { font-size: 26px; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .genre-tile { min-height: 104px; }
}

/* ---- Kitap Detay (onaylı tasarım) ---- */
.book-detail { position: relative; }
.book-detail .story-h1 { font-family: var(--display); color: var(--navy); }
.detail-tags { margin: 8px 0 10px; }
.detail-tags .tag { text-decoration: none; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.detail-stats li { display: inline-flex; align-items: center; gap: 6px; background: none; padding: 0; border: 0; }
.detail-stats svg { width: 18px; height: 18px; }
.summary-wrap.is-clamped .story-summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { color: var(--violet); text-decoration: none; min-height: 32px; }
.story-ctas .btn-grad svg { width: 20px; height: 20px; }
.cta-sub { font-weight: 600; opacity: .9; }
.chapters-card .toc { list-style: none; padding: 0; margin: 0; }
.chapters-card .toc li { border-top: 1px solid var(--card-line); }
.chapters-card .toc li:first-child { border-top: 0; }
.chapters-card .toc .num { width: 30px; height: 30px; border-radius: 999px; background: var(--soft); border: 1px solid var(--card-line); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--navy); flex-shrink: 0; }
@media (max-width: 640px) {
  .book-detail::before { content: ""; position: absolute; left: -16px; right: -16px; top: -16px; height: 300px; background: var(--cover-bg, linear-gradient(160deg, #2A1745, #7C3AED)) center / cover no-repeat; filter: blur(14px) brightness(.75); transform: scale(1.1); z-index: -1; }
  .book-detail { isolation: isolate; }
  .book-detail .story-hero-cover { position: relative; z-index: 1; }
  .book-detail .story-head-body { background: var(--bg); border-radius: 20px 20px 0 0; margin-top: -24px; padding-top: 22px; position: relative; z-index: 1; }
  .sticky-cta { position: sticky; bottom: calc(var(--tabbar-h, 64px) + var(--safe-b, 0px) + 8px); z-index: 5; }
  .sticky-cta .btn-grad { width: 100%; box-shadow: 0 10px 24px rgba(240, 40, 154, .3); }
  .cta-sub { display: none; }
}
main { overflow-x: clip; }
/* ---- Çalışma Masam / yazar paneli (onaylı tasarım) ---- */
.writer-desk { margin: 0 0 24px; }
.writer-desk .desk-stats div { background: var(--soft); border: 1px solid var(--card-line); border-radius: 12px; padding: 10px 12px; align-items: center; text-align: center; }
.writer-desk .desk-stats dd { font-size: 22px; }
.wrap > .sec-head { margin-top: 8px; }
@media (max-width: 1100px) and (min-width: 641px) {
  .site-header .in { gap: 12px; }
  .nav { gap: 12px; font-size: 13.5px; }
  .header-actions { gap: 6px; }
  .btn-join svg { display: none; }
  .btn-join, .btn-login { padding-inline: 12px; font-size: 14px; }
  .brand-tag { display: none; }
}
@media (max-width: 960px) and (min-width: 641px) { .nav a[href$="/yazar-ol"] { display: none; } }
/* Tablet (641–860 px): menü bağlantıları ikinci satırda, yatay kayar (alt sekmeler yalnızca telefonda). */
@media (max-width: 860px) and (min-width: 641px) {
  .site-header .in { flex-wrap: wrap; row-gap: 4px; }
  .nav { display: flex; order: 5; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 18px; padding-bottom: 2px; }
  .nav a[href$="/yazar-ol"] { display: inline; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .home-hero::before { background: linear-gradient(90deg, #FBF1EA 0%, #F8E7DA 50%, rgba(248, 231, 218, .8) 62%, rgba(248, 231, 218, 0) 80%); }
  .hero-copy { max-width: 470px; }
}


/* 3D tür ikonları (30.10.2026): yalnızca ikon değişti; kart boyutu, rengi ve yerleşimi önceki tasarımla aynı. */
.genre-icon--3d { object-fit: contain; filter: drop-shadow(0 4px 6px rgba(20, 18, 58, .18)); }
.genre-tile .genre-icon--3d { width: 72px; height: 72px; }
/* Ana sayfa tür şeridi: 3D ikon kart ölçüsü değişmeden biraz daha belirgin. */
.genre-card .genre-icon--3d { width: 48px; height: 48px; }
@media (max-width: 640px) { .genre-card .genre-icon--3d { width: 38px; height: 38px; } }
.genre-track { flex-wrap: nowrap; }
/* Kitap kartı kapak yer tutucuları (şablon / kapaksız): yazı kart boyutuna göre küçülür, taşmaz. */
.book-cover .cover-tpl, .book-cover .cover-empty { padding: 10px; border-radius: 0; }
.book-cover .cover-tpl .tpl-title, .book-cover .cover-empty span { font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-cover .cover-tpl .tpl-author, .book-cover .cover-empty small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card.wide .cover-tpl .tpl-title, .book-card.wide .cover-empty span { font-size: 14px; -webkit-line-clamp: 2; }
.book-card .book-title { overflow-wrap: anywhere; }
/* Mobil Yeni Yayımlananlar: kapak kırpılmasın (dikey 2:3), kartlar yatay kayar. */
@media (max-width: 640px) {
  .book-card.wide .book-cover .cover { aspect-ratio: 2 / 3; }
  .book-card.wide .cover-tpl .tpl-title, .book-card.wide .cover-empty span { font-size: 13px; -webkit-line-clamp: 3; }
  .book-row, .book-row.six { grid-auto-columns: 38%; scroll-padding-inline: 16px; }
  .book-card { padding: 6px 6px 10px; }
  .book-card .book-title { font-size: 13px; }
  .book-card .book-author { font-size: 12px; }
}
.book-cover .cover-tpl.tpl-sayfa { padding-inline-start: 19%; }
.desk-stats svg { width: 22px; height: 22px; color: var(--violet); }
.desk-stats div { align-items: center; text-align: center; }
.detail-topbar { display: none; }
@media (max-width: 640px) {
  .book-detail .detail-topbar { display: flex; justify-content: space-between; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
  .icon-btn.glass { background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
}
/* Küçük kapak kutularında yer tutucu yazı taşmasın (Çalışma Masam, Kaldığın Yerden Devam Et, En Çok Okunanlar). */
.desk-cover .cover-empty, .desk-cover .cover-tpl, .cont-cover .cover-empty, .cont-cover .cover-tpl, .writer-row > .cover-md.cover-empty { padding: 6px; font-size: 11px; }
.desk-cover .cover-empty span, .desk-cover .cover-tpl .tpl-title, .cont-cover .cover-empty span, .cont-cover .cover-tpl .tpl-title { font-size: 11px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: normal; overflow-wrap: anywhere; }
.desk-cover .cover-empty small, .desk-cover .tpl-author, .cont-cover .cover-empty small, .cont-cover .tpl-author { display: none; }
.desk-cover .cover-tpl.tpl-sayfa, .cont-cover .cover-tpl.tpl-sayfa { padding-inline-start: 19%; }
.user-btn { min-width: 44px; justify-content: center; }
@media (max-width: 640px) {
  /* Kaldığın Yerden Devam Et (mobil): kapak kırpılmaz, 2:3 */
  .cont-row { grid-auto-columns: 36%; }
  .cont-cover .cover { aspect-ratio: 2 / 3; }
}
@media (max-width: 640px) { .btn-login { min-height: 44px; } }
@media (max-width: 640px) {
  /* Kaldığın Yerden Devam Et: üç kart görünür, kart ilk ekranda alt menünün üstünde biter */
  .cont-row { grid-auto-columns: 31%; gap: 10px; }
  .cont-title { font-size: 13px; }
  .cont-author { font-size: 11.5px; }
  .cont-where { font-size: 10.5px; white-space: nowrap; }
  .cont-where > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .sec-head h2 { font-size: 19px; }
}
/* Az eserli satır (ör. test sunucusunda tek yeni eser): kart sütunu tüm satıra yayılmasın. Üst sınır 230px;
   4 ve daha fazla eserde genişlik değişmez (içerik alanı en fazla ~950px, sütunlar 230px'i aşmaz). Mobil (≤640px) kuralları aynen geçerli. */
@media (min-width: 641px) {
  .book-row { grid-auto-columns: minmax(140px, 230px); }
  .book-row.six { grid-auto-columns: minmax(150px, 230px); }
}
/* Tür şeridi kaydırma (işlev düzeltmesi, 30.10.2026): kaydıran yalnızca iç şerit; dış kap okları kırpmaz. Fareyle sürüklerken
   kaydırma anında (yumuşak / mıknatıs olmadan) izler. Kart boyutu, sıra ve tek satır düzeni değişmez. */
.genre-strip { overflow: visible; }
.genre-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
/* Mobil çerez bandı (30.10.2026): metin solda, Reddet / İzin ver sağda — tek kompakt bant, alt menünün hemen üstünde.
   Düğmeler 44px dokunma alanını korur; "Çerez tercihleri" bağlantısının dokunma alanı yerleşimi büyütmeden genişletilir.
   Masaüstü ve tercih kaydetme mantığı değişmez. */
@media (max-width: 640px) {
  .cookie-bar { flex-wrap: nowrap; gap: 10px; padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }
  .cookie-bar p { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
  .cookie-bar form { width: auto; flex: 0 0 auto; gap: 6px; }
  .cookie-bar form .btn { flex: 0 0 auto; padding: 0 12px; font-size: 13px; }
  .cookie-bar .cookie-prefs { display: inline-block; padding: 8px 0; margin: -8px 0; font-weight: 700; }
}
/* Mobil üst menü (30.10.2026): misafire "Giriş Yap" ve "Ücretsiz Üye Ol" birlikte; kompakt, 44px dokunma alanı korunur. */
@media (max-width: 640px) {
  .header-actions .btn-login, .header-actions .btn-join { min-height: 44px; padding-inline: 10px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
  .header-actions .btn-join svg { display: none; }
}
/* Mobil ana sayfa görseli (30.10.2026): masaüstündeki hero-istanbul görselinin aynısı, orantısı korunarak üstte şerit olarak
   (büyütme / germe yok; yükseklik görselin 229px'inden küçük, keskin kalır). Sol kısım görünür: okuyan kadın + Galata manzarası.
   Başlık ve düğme görselin altında, düz zeminde (üzerine yazı binmez). Masaüstü (>640px) değişmez. */
@media (max-width: 640px) {
  .home-hero { --hero-img-h: clamp(150px, 44vw, 200px); background-size: auto var(--hero-img-h); background-position: 0 0; padding-top: var(--hero-img-h); }
  .home-hero::before { background: linear-gradient(180deg, rgba(248, 231, 218, 0) 0, rgba(248, 231, 218, 0) calc(var(--hero-img-h) - 28px), #F6E6D8 var(--hero-img-h)); }
}

/* Ana sayfa yerleşimi — hedef tasarıma yaklaştırma (31.10.2026): daha geniş içerik alanı, sağ kenardaki boşluğun
   azaltılması, daha geniş üyelik kutusu ve dürüst boş durum kartları. Tür şeridi aynı kalır. */
.is-wide .wrap.home2 { max-width: 1560px; padding-left: max(40px, var(--safe-l, 0px)); padding-right: max(36px, var(--safe-r, 0px)); }
@media (min-width: 1181px) { .home-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; } }
.home-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed rgba(168, 85, 247, .32); border-radius: 12px; padding: 10px 14px; background: rgba(168, 85, 247, .035); color: var(--muted); }
.home-empty svg { width: 18px; height: 18px; flex: none; color: #A855F7; opacity: .85; }
.home-empty p { margin: 0; flex: 1 1 220px; font-size: 14px; line-height: 1.45; }
.home-empty-link { flex: none; font-size: 13px; font-weight: 700; color: var(--pink-ink); text-decoration: none; white-space: nowrap; }
.home-empty-link:hover { text-decoration: underline; }
.home-sec[data-empty] .sec-head { margin-bottom: 8px; }
.side-card[data-empty] .side-note { margin-bottom: 0; }
@media (max-width: 1180px) and (min-width: 1101px) {
  .is-wide .wrap.home2 { padding-left: max(24px, var(--safe-l, 0px)); padding-right: max(24px, var(--safe-r, 0px)); }
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
@media (max-width: 640px) {
  .is-wide .wrap.home2 { padding-left: max(16px, var(--safe-l, 0px)); padding-right: max(16px, var(--safe-r, 0px)); }
  .home-empty { padding: 10px 12px; }
  .home-empty p { font-size: 13.5px; }
}

/* Masaüstü manşet (31.10.2026, 1440 px düzeltmesi): mevcut İstanbul görselinin solundaki okuyan kadın 1101 px ve
   üstünde görünür. Görsel bir ::before katmanına taşınır ve sol kenarı metin bloğunun bittiği yere göre konumlanır
   (--img-left): ekran genişse görsel sağa yaslanır; darsa metnin hemen arkasından başlar ve sağ ucundan kırpılır.
   Açık renkli örtü görselin başladığı yere kadar düzdür, ardından yumuşakça kaybolur; metin her genişlikte düz ya da
   açık zemindedir. Container sorgu birimleri (cqw) desteklenmezse önceki görünüm (sağa yaslı görsel) kalır. */
@media (min-width: 1101px) {
  .home-hero { --hero-h: 250px; --copy-w: 430px; min-height: var(--hero-h); background-size: auto 100%; background-position: right center; }
  .home-hero .band-in { padding-top: 18px; padding-bottom: 18px; }
  .home-hero .hero-copy { max-width: var(--copy-w); }
  .home-hero .hero-title { font-size: 48px; }
  .home-hero .hero-sub { max-width: var(--copy-w); }
}
@media (min-width: 1101px) and (max-width: 1499px) {
  .home-hero { --hero-h: 236px; --copy-w: 400px; }
  .home-hero .band-in { padding-top: 16px; padding-bottom: 16px; }
  .home-hero .hero-title { font-size: 42px; margin-bottom: 10px; }
  .home-hero .hero-sub { font-size: 14px; margin-bottom: 14px; }
}
/* 1101–1399 px (ör. 1366): görsel biraz alçalır ve metin görselin perde kısmına 56 px biner; böylece sağdaki
   "Her hikâyede sen varsın" notu kesilmeden sığar. Kadın ve metin zemini değişmez. */
@media (min-width: 1101px) and (max-width: 1399px) {
  .home-hero { --hero-h: 222px; --img-overlap: 56px; }
  .home-hero .band-in { padding-top: 14px; padding-bottom: 14px; }
  .home-hero .hero-title { font-size: 40px; }
}
@supports (width: 1cqw) {
  @media (min-width: 1101px) {
    .home-hero { container-type: inline-size; background: #F6E6D8; }
    .home-hero::before {
      --img-w: calc(var(--hero-h) * 4.262);
      --text-end: calc(max(0px, (100cqw - 1440px) / 2) + 48px + var(--copy-w));
      --img-left: max(calc(100cqw - var(--img-w)), calc(var(--text-end) - var(--img-overlap, 40px)));
      background:
        linear-gradient(90deg, #FBF1EA 0, #F8E7DA calc(var(--img-left) + 6px), rgba(248, 231, 218, .72) calc(var(--img-left) + 40px), rgba(248, 231, 218, .25) calc(var(--img-left) + 84px), rgba(248, 231, 218, 0) calc(var(--img-left) + 124px)),
        url("../brand/tasarim/hero-istanbul.webp") var(--img-left) center / auto 100% no-repeat;
    }
  }
}

/* Bugün Ne Okusam? (31.10.2026, yerel önizleme): sağ sütunda okur odaklı günlük öneri kutusu. */
.today-box { position: relative; border-radius: 16px; padding: 18px; color: var(--ink); background: radial-gradient(70% 60% at 100% 0%, rgba(255, 176, 74, .28) 0%, rgba(255, 176, 74, 0) 70%), linear-gradient(160deg, #FFF8F1 0%, #FBEFFA 100%); border: 1px solid rgba(168, 85, 247, .18); box-shadow: var(--card-shadow); }
.today-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.today-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #A23BEF, #F0289A); box-shadow: 0 6px 16px rgba(162, 59, 239, .28); }
.today-icon svg { width: 22px; height: 22px; }
.today-head h2 { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 0; color: var(--navy); }
.today-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.today-pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--bg); border-radius: 12px; padding: 10px; border: 1px solid var(--card-line); }
.today-pick[hidden] { display: none; }
.today-cover { display: block; border-radius: 8px; overflow: hidden; text-decoration: none; }
.today-cover .cover { width: 96px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; display: block; border-radius: 8px; }
.today-cover .cover-tpl { padding: 8px; gap: 4px; }
.today-cover .cover-tpl .tpl-title, .today-cover .cover-empty span { font-size: 12px; -webkit-line-clamp: 3; }
.today-cover .cover-tpl .tpl-author { display: none; }
.today-nocover { width: 96px; aspect-ratio: 2 / 3; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, #F4EDFF 0%, #FBEAF4 100%); border: 1px solid rgba(168, 85, 247, .22); color: #8038F4; text-decoration: none; }
.today-nocover svg { width: 30px; height: 30px; opacity: .85; }
.today-nocover span { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-align: center; line-height: 1.2; padding: 0 6px; }
[data-theme="dark"] .today-nocover { background: linear-gradient(160deg, #2A2150 0%, #2B1B3F 100%); border-color: rgba(168, 85, 247, .35); color: #C4A6FF; }
@media (prefers-color-scheme: dark) { [data-theme="system"] .today-nocover { background: linear-gradient(160deg, #2A2150 0%, #2B1B3F 100%); border-color: rgba(168, 85, 247, .35); color: #C4A6FF; } }
.today-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.today-body h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.today-body h3 a { color: var(--navy); text-decoration: none; }
.today-body h3 a:hover { color: var(--pink-ink); }
.today-author { margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-tags { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.today-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.today-why { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--pink-ink); }
.today-actions { display: flex; gap: 10px; margin-top: 14px; }
.today-actions .today-go { flex: 1 1 auto; justify-content: center; }
.today-actions .today-next { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.today-actions .today-next[hidden] { display: none; }
.today-next svg { width: 16px; height: 16px; }
.today-count { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.today-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px dashed rgba(168, 85, 247, .32); border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .6); }
.today-empty p { margin: 0; font-size: 14px; color: var(--muted); }
[data-theme="dark"] .today-box { background: radial-gradient(70% 60% at 100% 0%, rgba(255, 176, 74, .16) 0%, rgba(255, 176, 74, 0) 70%), linear-gradient(160deg, #221C3F 0%, #1B1636 100%); border-color: rgba(168, 85, 247, .3); }
@media (prefers-color-scheme: dark) { [data-theme="system"] .today-box { background: radial-gradient(70% 60% at 100% 0%, rgba(255, 176, 74, .16) 0%, rgba(255, 176, 74, 0) 70%), linear-gradient(160deg, #221C3F 0%, #1B1636 100%); border-color: rgba(168, 85, 247, .3); } }
/* Tek sütunlu düzende (≤1100 px: tablet ve mobil) "Bugün Ne Okusam?" tür şeridinin hemen altına, ana bölümlerden önce
   gelir. Kutu HTML'de tek kez bulunur; yan sütun bu genişlikte "display: contents" olur ve sıra CSS ile verilir. */
@media (max-width: 1100px) {
  .home-aside { display: contents; }
  .home-aside > .today-box { order: 1; }
  .home-grid > .home-main { order: 2; }
  .home-aside > .side-card { order: 3; }
}
@media (max-width: 640px) {
  .today-box { padding: 14px; }
  .today-head h2 { font-size: 20px; }
  .today-pick { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .today-cover .cover, .today-nocover { width: 84px; }
  .today-actions .btn { min-height: 44px; }
}

/* Açılış öncesi paket 2 (31.10.2026) */
/* T2/T4: küçük metin bağlantıları için en az 44 px dokunma alanı (görünüm aynı kalır). */
.tap { display: inline-flex; align-items: center; min-height: 44px; }
/* T3/T4: "geri" oku sağdan sola dilde (ar) çevrilir. */
.ok-geri { display: inline-block; }
[dir="rtl"] .ok-geri { transform: scaleX(-1); }
/* T1: dar ekranda eser ızgarası tek sütuna düşüp kapaklar ekran boyu olmasın: iki sütun. */
@media (max-width: 420px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* T6: yatay eser şeridinde klavye odağı kartı görünür alana getirir (bkz. js/rewpad.js). */
.book-row { scroll-padding-inline: 16px; }
.book-row > * { scroll-margin-inline: 16px; }
