/* ============ Kur'an Vakti — kitap sayfası hissi ============ */
:root {
  --bg: #EDF2F8; --ink: #1B2532; --soft: #5D6C7E; --line: #DAE3EE; --card: #F5F8FC; /* varsayılan kâğıt: Açık mavi */
  --accent: #2F4F43; --accent-ink: #F6EFDD; --gold: #A9844A;
  --font: 'Literata', Georgia, serif; --ui: 'Nunito Sans', system-ui, sans-serif;
  --ar-font: 'Amiri Quran', 'Amiri', serif;
  --size: 18px; --lh: 1.75; --ar-size: 28px; --measure: 40rem;
  /* fosforlu kalem renkleri */
  --m-sari: rgba(255, 238, 0, .62); --m-yesil: rgba(84, 255, 50, .48);
  --m-mavi: rgba(0, 222, 255, .45); --m-gul: rgba(255, 64, 196, .40);
  --radius: 14px; --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 8px 28px -12px rgba(60, 40, 10, .22);
  color-scheme: light;
}
:root[data-dark] {
  --accent: #9DC3AE; --accent-ink: #14201B; --gold: #C9A86A;
  --m-sari: rgba(255, 238, 0, .80); --m-yesil: rgba(84, 255, 50, .72);
  --m-mavi: rgba(0, 222, 255, .72); --m-gul: rgba(255, 79, 207, .74);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
  min-height: 100vh; display: flex; flex-direction: column;
  /* kâğıt dokusu */
  background-image: radial-gradient(rgba(120, 90, 40, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}
:root[data-dark] body { background-image: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(169, 132, 74, .3); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease;
}
.topbar.hide { transform: translateY(-100%); }
.topbar-in { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: 'EB Garamond', serif; font-size: 23px; letter-spacing: .01em; white-space: nowrap; }
.brand em { color: var(--gold); font-style: italic; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.sure-pill {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 5px 10px 5px 14px; font-family: var(--ui); font-size: 14px; font-weight: 600;
  max-width: 40vw; overflow: hidden;
}
.sure-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sure-pill svg { width: 16px; height: 16px; flex: none; }
.topnav { margin-left: auto; display: flex; gap: 2px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px;
  border: 0; background: none; text-decoration: none; font-family: var(--ui); font-size: 14px; color: var(--soft);
}
.nav-btn:hover, .nav-btn.active { color: var(--ink); background: color-mix(in srgb, var(--line) 60%, transparent); }
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn .aa { font-family: 'EB Garamond', serif; font-size: 19px; line-height: 20px; width: 20px; text-align: center; }
.meal-pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 10px 5px 9px; margin-right: 4px; max-width: 34vw; }
.meal-pill b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-pill svg { width: 18px; height: 18px; flex: none; }
.meal-pill .spk { width: 15px; height: 15px; color: var(--accent); }
.meal-pill.sessiz .spk { display: none; }
.progress { height: 2px; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
@media (max-width: 720px) {
  .nav-btn span:not(.aa) { display: none; }
  .brand span { display: none; }
  .topbar-in { gap: 8px; padding: 8px 12px; }
  .sure-pill { max-width: 36vw; flex: none; padding: 5px 8px 5px 11px; }
  .topnav { min-width: 0; }
  .meal-pill { min-width: 0; max-width: 30vw; padding: 5px 8px; gap: 4px; }
  .meal-pill > svg:first-child { display: none; }
  .topnav .nav-btn:not(.meal-pill) { padding: 7px 6px; }
  #btnOdak { display: none; } /* telefonda yer dar: odak düğmesi oynatıcıda */
}
@media (max-width: 400px) {
  .meal-pill .spk { display: none; }
}

main { flex: 1; width: 100%; outline: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }

/* ---------- Ortak ---------- */
.icon-btn { border: 0; background: none; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--soft); }
.icon-btn:hover { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 9px 18px;
  font-family: var(--ui); font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); background: var(--card);
  text-decoration: none; transition: transform .1s, background .2s;
}
.btn:hover { border-color: color-mix(in srgb, var(--soft) 40%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: none; }
.btn.small { padding: 6px 13px; font-size: 13.5px; }
.eyebrow { font-family: var(--ui); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.muted { color: var(--soft); }
.ui { font-family: var(--ui); }
.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 26px auto; max-width: 18rem; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.ornament svg { width: 22px; height: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.input {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 14px;
  font-family: var(--ui); font-size: 15px; outline: none;
}
.input:focus { border-color: var(--gold); }
textarea.input { font-family: var(--font); font-size: 16px; line-height: 1.6; resize: vertical; min-height: 110px; }
.empty { text-align: center; padding: 40px 16px; color: var(--soft); }
.empty .big { font-family: 'EB Garamond', serif; font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.loading { text-align: center; padding: 80px 0; color: var(--soft); font-family: var(--ui); }

/* ---------- Ana sayfa ---------- */
/* Giriş manzarası: gündüz sisli vadi, gece mehtaplı göl. Üst çubuğun arkasına uzanır, alttan sayfa rengine erir;
   Günün Ayeti kartı manzaranın alt kısmına biner. */
.giris { position: relative; }
.giris-bg {
  position: absolute; left: 0; right: 0; top: -58px; bottom: -260px; z-index: -1; pointer-events: none;
  --resim: url("/img/giris-gunduz.webp");
  background:
    linear-gradient(to bottom, transparent 50%, var(--bg) 97%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 62%, transparent) 0%, transparent 58%),
    var(--resim) center 30% / cover no-repeat;
}
:root[data-dark] .giris-bg { --resim: url("/img/giris-gece.webp"); }
@media (max-width: 900px) {
  .giris-bg { --resim: url("/img/giris-gunduz-k.webp"); }
  :root[data-dark] .giris-bg { --resim: url("/img/giris-gece-k.webp"); }
}
body.manzara main { position: relative; isolation: isolate; overflow-x: clip; }
body.ana main .wrap, body.ana .topbar-in { max-width: 84rem; }
/* Manzara ilk ekranın tamamını kaplar; Günün Ayeti kartı (96px yukarı biner) ekranın alt kenarının hemen altından
   başlar. --ust: üst çubuğun yüksekliği (JS ölçer). Slogan görünen alanın ortasına yakın durur. */
.giris-in {
  min-height: calc(100vh - var(--ust, 58px) + 96px); min-height: calc(100svh - var(--ust, 58px) + 96px);
  display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 176px;
}
.giris-asagi {
  position: absolute; left: 50%; bottom: 200px; /* alttaki oynatıcı çubuğunun üstünde kalsın */ transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); cursor: pointer;
  background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); animation: asagi-nabiz 2.4s ease-in-out infinite;
}
.giris-asagi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes asagi-nabiz { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .giris-asagi { animation: none; } }
/* Göğe yükselen dualar: sloganla cami arasındaki gökte (telefonda sloganın üstünde) */
.dua-gok { position: absolute; left: 38%; width: min(25rem, 24vw); top: 5%; height: 42%; pointer-events: none; }
.dua-kus {
  position: absolute; left: var(--sol, 10%); bottom: 0; max-width: min(23rem, 100%); pointer-events: auto;
  display: flex; flex-direction: column; gap: 3px; padding: 8px 14px 7px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--card) 66%, transparent); border: 1px solid color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: 0 6px 22px -12px rgba(30, 40, 60, .35); opacity: 0;
  animation: dua-yuksel 20s linear forwards;
}
.dua-gok.dur .dua-kus { animation-play-state: paused; }
.dua-kus:hover, .dua-kus:focus-within, .dua-kus.acik { background: color-mix(in srgb, var(--card) 92%, transparent); }
.dua-kus:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dua-kus-alt { display: flex; align-items: center; gap: 10px; min-height: 22px; }
/* "Dua et": üzerine gelince / dokununca / klavyeyle odaklanınca görünür */
.dua-kus-et { display: none; margin-left: auto; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: var(--card); color: var(--ink); font: 700 12px var(--ui); white-space: nowrap; }
.dua-kus-et svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dua-kus-et.on { background: color-mix(in srgb, var(--gold) 16%, var(--card)); color: var(--gold); }
.dua-kus:hover .dua-kus-et, .dua-kus:focus-within .dua-kus-et, .dua-kus.acik .dua-kus-et, .dua-kus.sabit .dua-kus-et { display: inline-flex; }
/* "Duanı yaz": her genişlikte giriş düğmelerinin sırasında, "Sureler"in yanında */
.dua-yaz-ac svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* dua her genişlikte kısaltılmadan tam görünür (en çok 300 karakter) */
.dua-metin { font-family: 'EB Garamond', serif; font-style: italic; font-size: 17px; line-height: 1.35; }
.dua-kus small { display: flex; align-items: center; gap: 5px; font-family: var(--ui); font-size: 11.5px; color: var(--soft); }
.dua-kus small svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dua-yuksel {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .9; }
  100% { transform: translate(var(--kay, 0px), calc(-1 * var(--h, 300px))); opacity: 0; }
}
/* hareket azaltılmışsa: son üç dua alt alta, sabit */
.dua-kus.sabit { position: static; opacity: 1; animation: none; margin-bottom: 8px; }
.dua-gok:has(.sabit) { display: flex; flex-direction: column; justify-content: flex-end; }
:root[data-dark] .dua-kus { background: color-mix(in srgb, var(--card) 55%, transparent); border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
@media (max-width: 1300px) {
  /* slogan genişçe yer kaplar: akış sloganın üstündeki göğe geçer */
  .dua-gok { left: max(16px, calc((100% - 84rem) / 2 + 16px)); width: min(30rem, calc(100% - 32px)); top: 2%; height: 28%; }
}
@media (max-width: 900px) {
  .dua-gok { left: 16px; right: 16px; width: auto; top: 2%; height: 30%; }
  .dua-kus { left: calc(var(--sol, 10%) / 2); max-width: 88%; }
  .dua-metin { font-size: 15.5px; }
}
.giris h1 { font-family: 'EB Garamond', serif; font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; margin: 0; letter-spacing: -.005em; }
.giris p { font-family: 'EB Garamond', serif; font-style: italic; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.35; color: var(--soft); margin: 12px 0 0; }
:root[data-dark] .giris h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
:root[data-dark] .giris p { color: color-mix(in srgb, var(--ink) 82%, transparent); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.giris-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.giris-acts .btn { padding: 10px 20px; font-size: 14.5px; }
.giris-ikinci { background: color-mix(in srgb, var(--card) 70%, transparent); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
/* ana sayfada en üstteyken üst çubuk manzaranın üstünde saydam */
body.manzara .topbar.seffaf { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tema-btn .gunes { display: none; }
:root[data-dark] .tema-btn .gunes { display: block; }
:root[data-dark] .tema-btn .ay { display: none; }
/* telefonda üst çubuk dar: okuma sayfalarında güneş/ay düğmesi gizli (Ayarlar > Görünüm'de Gece kâğıdı var) */
@media (max-width: 720px) { body:not(.ana) .tema-btn { display: none; } }

/* Günün Ayeti: geniş, alçak kart (iki yanda defne dalı); masaüstünde sağında alt alta üç durum kartı,
   dar ekranda kartın altında. Kart manzaraya biner (satırın üst payı eksi). */
.gunun-satir { position: relative; margin-top: -96px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: stretch; }
.gunun-satir .cipler { display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-top: 0; }
.gunun-satir .cipler .cip { flex: 1; max-height: 92px; }
@media (max-width: 1100px) {
  .gunun-satir { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gunun-satir .cipler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
}
.gunun {
  position: relative; padding: 22px 90px 22px; text-align: center;
  background: color-mix(in srgb, var(--card) 95%, transparent); /* backdrop-filter telefonda sayfa çizimini bozuyor: kullanılmadı */
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 20px; box-shadow: var(--shadow);
}
.defne { position: absolute; top: 50%; width: 58px; height: 165px; transform: translateY(-50%); color: var(--gold); opacity: .55; pointer-events: none; }
.defne.sol { left: 36px; }
.defne.sag { right: 36px; transform: translateY(-50%) scaleX(-1); }
.gunun-bas { display: flex; align-items: center; gap: 14px; justify-content: center; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.gunun-bas::before, .gunun-bas::after { content: ""; flex: 0 1 220px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent)); }
.gunun-bas::after { transform: scaleX(-1); }
/* ayet kısaltılmaz: yazılar uzun ayetlerin de ilk ekrana sığacağı ölçüde */
.daily .ar { font-family: var(--ar-font); font-size: clamp(20px, 1.75vw, 26px); line-height: 1.75; direction: rtl; margin: 6px auto 0; max-width: 52rem; color: var(--ink); }
.daily .ar-no { color: var(--gold); }
.daily blockquote { margin: 4px auto 0; font-size: clamp(15.5px, 1.2vw, 17.5px); font-weight: 600; line-height: 1.5; max-width: 46rem; }
.daily .ref { margin-top: 6px; font-family: 'EB Garamond', serif; font-style: italic; font-size: 15px; color: var(--soft); }
/* uzun / çok uzun ayetler (masaüstü): yazı küçülür, satırlar genişler; telefonda ekran uzun, gerek yok */
@media (min-width: 601px) {
  .daily.uzun .ar { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.7; max-width: 58rem; }
  .daily.uzun blockquote { font-size: clamp(14.5px, 1.05vw, 16px); max-width: 54rem; }
  .daily.cok-uzun .ar { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; max-width: 62rem; }
  .daily.cok-uzun blockquote { font-size: 14px; line-height: 1.45; max-width: 60rem; }
}
/* Günün Ayeti işlemleri: belirgin hap düğmeler; "Sûrede oku" dolu (asıl işlem) */
.gunun-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 14px; font-family: var(--ui); font-size: 14px; }
.gunun-acts a, .gunun-acts button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--card); color: var(--accent);
  font: 600 14px var(--ui); text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gunun-acts a:hover, .gunun-acts button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); transform: translateY(-1px); }
.gunun-acts .ana { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gunun-acts .ana:hover { background: var(--accent); filter: brightness(1.1); }
.gunun-acts svg { width: 17px; height: 17px; }
.gunun-acts [data-arac] { color: var(--soft); border-color: var(--line); }
.cipler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.cip {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; text-decoration: none; text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(60, 40, 10, .05);
  transition: border-color .2s, transform .15s;
}
.cip:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.cip > svg { width: 30px; height: 30px; flex: none; color: var(--ink); stroke-width: 1.4; }
.cip > svg:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--soft); stroke-width: 1.7; }
.cip span { min-width: 0; display: flex; flex-direction: column; font-family: var(--ui); }
.cip b { font-size: 14.5px; font-weight: 700; }
.cip small { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cip .halka { transform: rotate(-90deg); stroke-width: 3.4; }
.cip .halka .bgc { stroke: var(--line); } .cip .halka .fgc { stroke: var(--gold); transition: stroke-dashoffset .6s ease; }
.cip-cubuk { margin-left: auto; color: var(--gold); display: flex; }
.cip-cubuk svg { width: 22px; height: 22px; stroke-width: 2.6; }

/* Bölüm başlıkları: başlık — altın çizgi — açıklama ................ araçlar */
.bolum { margin-top: 44px; }
.bolum-bas { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.bolum-bas h2 { margin: 0; font-family: 'EB Garamond', serif; font-weight: 500; font-size: 34px; line-height: 1.1; }
.bolum-cizgi { width: 70px; height: 1px; background: color-mix(in srgb, var(--gold) 70%, transparent); }
.bolum-cizgi.uzun { flex: 1; min-width: 40px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 70%, transparent), color-mix(in srgb, var(--line) 80%, transparent)); }
.bolum-alt { font-family: var(--ui); font-size: 14px; color: var(--soft); }
.bolum-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 14px; font-weight: 600; text-decoration: none; }
.bolum-link svg { width: 17px; height: 17px; }
.bolum-arac { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ara-kutu { display: flex; align-items: center; gap: 8px; width: min(320px, 60vw); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.ara-kutu:focus-within { border-color: var(--gold); }
.ara-kutu svg { width: 18px; height: 18px; color: var(--soft); flex: none; }
.ara-kutu input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 9px 0; font-family: var(--ui); font-size: 14px; }
.tur-sec { border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 9px 14px; font-family: var(--ui); font-size: 14px; font-weight: 600; }

/* Sureler: solda son okunan sure kartı, sağda sure ızgarası */
.sure-duzen { display: grid; grid-template-columns: 270px 1fr; gap: 14px; align-items: start; }
.son-kart {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 186px; padding: 22px 24px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(150deg, #2F4F43, #1F3A30); color: #F3EBD8; box-shadow: var(--shadow);
}
.sk-ust { font-family: var(--ui); font-size: 13px; color: #D8BC85; }
.sk-ad { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 30px; line-height: 1.15; }
.sk-alt { font-family: var(--ui); font-size: 13.5px; opacity: .85; }
.sk-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 18px; border-radius: 999px; background: #FBF7EC; color: #1F3A30; font-family: var(--ui); font-size: 14px; font-weight: 700; }
.sk-btn svg { width: 16px; height: 16px; }
.sk-gul { position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px; color: #D8BC85; opacity: .16; stroke-width: 1; }
.son-kart:hover .sk-btn { background: #fff; }
.sure-izgara { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sk {
  position: relative; overflow: hidden; display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 10px; min-height: 87px;
  border-radius: 12px; text-decoration: none; background: var(--card); border: 1px solid var(--line); transition: border-color .15s;
}
.sk:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.sk .no { position: relative; width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: var(--gold); font-family: var(--ui); font-size: 12px; font-weight: 700; }
.sk .no svg { position: absolute; inset: 0; width: 32px; height: 32px; }
.sk .no b { color: var(--ink); position: relative; }
.sk .no b.d3 { font-size: 9.5px; letter-spacing: -.03em; }
.sk-m { min-width: 0; display: flex; flex-direction: column; }
.sk-m b { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-ar { font-family: 'Amiri', serif; font-size: 17px; line-height: 1.5; color: var(--soft); direction: rtl; text-align: left; }
.sk-m small { font-family: var(--ui); font-size: 12px; color: var(--soft); }
.sk-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); }
.tumu { text-align: center; margin-top: 18px; }
.tumu-btn { background: none; border-color: color-mix(in srgb, var(--ink) 40%, transparent); padding: 9px 22px; }

/* Okurların tefekkürleri: üç kısa kart */
.tf-sira { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tf { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 14px; border-radius: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(60, 40, 10, .05); }
.tf:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.tf-tirnak { font-family: 'EB Garamond', serif; font-size: 44px; line-height: .6; height: 18px; color: var(--gold); }
.tf p { margin: 0; font-size: 16.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf small { font-family: 'EB Garamond', serif; font-style: italic; font-size: 14.5px; color: var(--soft); }
.tf small b { font-style: normal; font-weight: 600; color: var(--ink); }
.tf.bos { grid-column: 1 / -1; text-align: center; }
/* vitrin: tefekkür yazılan ayetin metni; tefekkürün kendisi ayet sayfasında */
.tf-ayet { color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.tf-ayet:hover { border-color: var(--gold); transform: translateY(-1px); }
.tf-ref { font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tf-ayet p { -webkit-line-clamp: 3; }
.tf-oku { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--accent); }
.tf-oku svg { width: 15px; height: 15px; }

@media (max-width: 1180px) {
  .gunun { padding-left: 90px; padding-right: 90px; }
  .defne.sol { left: 22px; } .defne.sag { right: 22px; }
  .sure-izgara { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gunun { padding: 20px 18px; }
  .defne { display: none; }
  .gunun-satir .cipler { grid-template-columns: 1fr; gap: 8px; }
  .sure-duzen { grid-template-columns: 1fr; }
  .son-kart { min-height: 0; }
  .sure-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-sira { grid-template-columns: 1fr; }
  .bolum-arac { margin-left: 0; width: 100%; }
  .ara-kutu { flex: 1; width: auto; }
}
@media (max-width: 600px) {
  .giris-bg { top: -52px; background-position: center, center, 72% 30%; }
  .giris-in { padding-top: 30px; padding-bottom: 96px; }
  .giris-acts .btn { padding: 10px 16px; }
  .gunun-satir { margin-top: -72px; }
  .gunun { border-radius: 16px; }
  .gunun-bas::before, .gunun-bas::after { flex-basis: 40px; }
  .daily .ar { font-size: 22px; }
  .daily blockquote { font-size: 16.5px; }
  /* telefonda üç çip tek satırda, simgesiz küçük kutular */
  .gunun-satir .cipler { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .cip { padding: 9px 8px; gap: 0; justify-content: center; text-align: center; }
  .cip > svg, .cip-cubuk { display: none; }
  .cip span { align-items: center; }
  .cip b { font-size: 12px; line-height: 1.25; }
  .cip small { font-size: 11.5px; white-space: normal; }
  .bolum-bas h2 { font-size: 28px; }
  .bolum-alt { display: none; }
  .sure-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
/* ---------- Sure sayfası başlığı: ana sayfanın manzarası (daha soluk) ve defne dallı geniş kart ---------- */
.sure-bg {
  bottom: auto; height: 600px;
  background:
    linear-gradient(to bottom, transparent 30%, var(--bg) 92%),
    linear-gradient(color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 30%, transparent)),
    var(--resim) center 32% / cover no-repeat;
}
.sure-ust { padding-top: 130px; }
.surah-head.sure-kart {
  position: relative; max-width: 62rem; margin: 0 auto; padding: 20px 110px 20px; text-align: center;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 20px; box-shadow: var(--shadow);
}
.sure-kart .ar-name { font-size: 44px; line-height: 1.6; margin-top: 22px; }
/* sayfanın en üstünde (manzara görünürken) sağ kenar paneli gizli; okumaya başlayınca belirir */
body.kenar .kenar-sag { transition: opacity .3s ease; }
body.manzara .topbar.seffaf ~ .kenar-sag, body.ks-bekle .kenar-sag { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.sure-kart h1 { font-size: 36px; margin: 0 0 2px; }
.sure-cipler { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
button.cip { font: inherit; color: var(--ink); width: 100%; cursor: pointer; }
.sure-cipler .cip { padding: 10px 14px; gap: 12px; }
.sure-cipler .cip > svg { width: 24px; height: 24px; }
.cip-pil { font-family: 'EB Garamond', serif; font-style: normal; font-size: 26px; line-height: 1; width: 24px; text-align: center; flex: none; color: var(--ink); }
.sure-kart .ruku-index { margin-top: 14px; max-width: none; }
/* sure sonundaki gezinme: önceki sure açık kart, sonraki sure ana sayfadaki koyu yeşil kart gibi */
.surah-nav em { display: block; font-family: 'Amiri', serif; font-style: normal; font-size: 19px; color: var(--soft); }
.surah-nav a.next { background: linear-gradient(150deg, #2F4F43, #1F3A30); border-color: #2F4F43; color: #F3EBD8; }
.surah-nav a.next small { color: #D8BC85; }
.surah-nav a.next em { color: #D8BC85; opacity: .85; }
@media (max-width: 1180px) { .surah-head.sure-kart { padding-left: 90px; padding-right: 90px; } }
@media (max-width: 900px) {
  .surah-head.sure-kart { padding: 18px 16px; }
  .sure-cipler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sure-bg { top: -52px; height: 420px; background-position: center, center, 72% 30%; }
  .sure-ust { padding-top: 70px; }
  .sure-kart .ar-name { font-size: 36px; }
  .sure-kart h1 { font-size: 30px; }
  .sure-cipler { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cip-pil { display: none; }
}
.seg { display: inline-flex; background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 999px; padding: 3px; font-family: var(--ui); font-size: 14px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--soft); font-weight: 600; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.reflection { padding: 18px 20px; text-decoration: none; display: block; }
.reflection .who { font-family: var(--ui); font-size: 13px; color: var(--soft); display: flex; justify-content: space-between; gap: 8px; }
.reflection .who b { color: var(--ink); font-weight: 700; }
.reflection p { margin: 8px 0 0; font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.reflection .ref { font-family: 'EB Garamond', serif; font-style: italic; color: var(--gold); margin-top: 8px; }

/* ---------- Okuyucu ---------- */
.reader { max-width: calc(var(--measure) + 8rem); margin: 0 auto; padding: 0 16px 60px; }
.surah-head { text-align: center; padding: 42px 0 10px; }
.surah-head .ar-name { font-family: 'Amiri', serif; font-size: 46px; line-height: 1.3; color: var(--accent); direction: rtl; }
.surah-head h1 { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 34px; margin: 4px 0 4px; }
.surah-head .meta { font-family: var(--ui); font-size: 13.5px; color: var(--soft); }
.surah-head .meal-name { font-family: var(--ui); font-size: 13px; margin-top: 10px; }
.surah-head .meal-name button { border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 4px 12px; color: var(--soft); }
/* "Kaldığınız yer" hatırlatması */
.resume { display: flex; align-items: center; gap: 10px; max-width: var(--measure, 40rem); margin: 6px auto 4px; padding: 10px 10px 10px 16px; font-family: var(--ui); border-left: 3px solid var(--gold); animation: pop .25s ease; }
.resume > span { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.resume > span > svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.resume b { display: block; font-size: 14.5px; }
.resume small { color: var(--soft); font-size: 12.5px; }
.resume .btn svg { width: 15px; height: 15px; }
.resume .icon-btn { width: 32px; height: 32px; }
@media (max-width: 520px) {
  .resume { flex-wrap: wrap; row-gap: 8px; }
  .resume > span { flex: 1 1 100%; }
  .resume .btn { margin-left: 28px; }
  .resume .icon-btn { margin-left: auto; }
}
.besmele { text-align: center; margin: 22px 0 30px; }
.besmele .ar { font-family: var(--ar-font); font-size: calc(var(--ar-size) * 1.05); direction: rtl; line-height: 2; }
.besmele .tr { font-style: italic; color: var(--soft); font-size: calc(var(--size) * .9); }

.verses { max-width: calc(var(--measure) + 6rem); margin: 0 auto; position: relative; }

/* ---------- Kenar notları (geniş ekran) ---------- */
.kenar-sol, .kenar-sag { display: none; }
body.kenar .kenar-sol { display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 28px); width: var(--kenar-w, 16rem); pointer-events: none; }
body.kenar #verses .verse .my-note { display: none; } /* not kenarda duruyor */
.kn, .kn-ekle { position: absolute; left: 0; right: 0; pointer-events: auto; }
.kn { padding: 2px 12px 4px 0; border-right: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); text-align: right; cursor: pointer;
  font-family: var(--font); font-style: italic; font-size: 12.5px; line-height: 1.5; color: var(--soft); transition: color .15s;
  overflow: hidden; z-index: 1; }
/* not ayetin hizasından başlar, ayetten uzun olamaz (yüksekliği JS verir); taşan kısım silikleşir, üzerine gelince tamamı açılır */
.kn.tasar { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.6em), transparent); mask-image: linear-gradient(#000 calc(100% - 2.6em), transparent); }
.kn:hover, .kn:focus-visible { color: var(--ink); outline: none; max-height: none !important; -webkit-mask-image: none; mask-image: none; z-index: 3;
  background: var(--bg); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); padding-bottom: 10px; border-radius: 10px 0 0 10px; }
.kn p { margin: 0; white-space: pre-wrap; }
.kn-no { float: right; margin: 1px -34px 0 0; width: 18px; font-family: var(--ui); font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--gold); text-align: center; }
/* her zaman görünür: ekranın ortasındaki ayetin hizasında durur, okudukça onunla birlikte iner */
.kn-ekle { left: auto; right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--card) 70%, transparent);
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--accent); transition: top .25s ease, background .15s; z-index: 2; }
.kn-ekle svg { width: 15px; height: 15px; }
.kn-ekle:hover, .kn-ekle:focus-visible { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-style: solid; }
.kn-ekle:hover { color: var(--accent); border-color: var(--accent); }
body.kenar .kenar-sag { display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 5; top: 84px; bottom: 104px;
  left: var(--kenar-sag-left, auto); width: var(--kenar-w, 16rem); font-family: var(--ui); }
.ks-head { display: flex; flex-direction: column; gap: 2px; }
.ks-head b { font-family: 'EB Garamond', serif; font-size: 19px; font-weight: 500; }
.ks-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.ks-tabs button { border: 0; background: none; padding: 6px 8px; font-size: 12.5px; font-weight: 700; color: var(--soft); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.ks-tabs button.on { color: var(--ink); border-color: var(--gold); }
.ks-tabs small { color: var(--gold); font-weight: 600; }
.ks-list { flex: 0 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; scrollbar-width: thin; }
.ks-c { font-size: 13px; line-height: 1.55; }
.ks-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.ks-who b { font-size: 12.5px; }
.ks-who span { margin-left: auto; font-size: 11px; color: var(--soft); }
/* Rozetler: adın yanındaki küçük madalya + Defterim › Rozetler */
.rz { display: inline-flex; align-items: center; gap: 2px; margin: 0 6px 0 5px; font-family: var(--ui); font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); vertical-align: middle; cursor: help; }
.rz svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ks-who .rz { margin: 0; font-size: 11px; color: var(--gold); }
.reflection .who .rz { margin-right: auto; }
.rz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rz-kart { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-family: var(--ui); }
.rz-bas { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rz-bas span { color: var(--soft); font-size: 13px; }
.rz-basamak { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-b { display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px 3px 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 12px; font-weight: 700; opacity: .55; }
.rz-b.on { opacity: 1; color: var(--gold); border-color: var(--gold); }
.rz-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.rz-ilerleme { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rz-ilerleme i { display: block; height: 100%; background: var(--gold); }
.rz-kart small { font-size: 12px; }
/* Anketler (Topluluk › Anketler, ana sayfa duyurusu, yönetim) */
.anket { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; font-family: var(--ui); }
.anket-bas { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.anket-bas b { font-size: 16px; }
.anket-sat { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; overflow: hidden; }
.anket-sat i { position: absolute; inset: 0 auto 0 0; width: var(--y); background: color-mix(in srgb, var(--gold) 18%, transparent); pointer-events: none; }
.anket-sat .anket-ad, .anket-sat span, .anket-sat b { position: relative; }
.anket-sat b { margin-left: auto; font-size: 13px; color: var(--soft); }
.anket-sat.secilebilir { cursor: pointer; }
.anket-sat.secilebilir:hover { border-color: var(--gold); }
.anket-sat.ben { border-color: var(--gold); }
.anket-sat small { color: var(--gold); font-weight: 700; }
.anket-duyuru { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 28px; font-family: var(--ui); text-decoration: none; color: var(--ink); }
.anket-duyuru b { flex: 1; min-width: 200px; font-size: 15px; }
.anket-git { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; font-size: 14px; }
.anket-git svg { width: 16px; height: 16px; }
/* Dualar (Topluluk › Dualar) */
.dua-yaz { padding: 16px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; font-family: var(--ui); }
.dua-yaz p { margin: 0; font-size: 13px; }
.dua-yaz .row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.dua-sayac { font-size: 12px; }
.dua-sayac.dolu { color: #B4532A; font-weight: 700; }
.dua { padding: 14px 18px; margin-bottom: 12px; }
.dua.gizli { opacity: .8; }
.dua .who { font-family: var(--ui); font-size: 13px; color: var(--soft); display: flex; justify-content: space-between; gap: 8px; }
.dua .who b { color: var(--ink); }
.dua > p { margin: 8px 0 10px; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.dua-alt { display: flex; align-items: center; gap: 8px; font-family: var(--ui); }
.dua-et { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 13px var(--ui); cursor: pointer; }
.dua-et svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dua-et b { color: var(--soft); font-weight: 700; }
.dua-et:hover { border-color: var(--gold); }
.dua-et.on { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.link-btn { border: 0; background: none; color: var(--soft); font: 12px var(--ui); padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.link-btn:hover { color: var(--ink); background: var(--line); }
.ks-who small { font-size: 10.5px; color: var(--gold); font-weight: 700; }
.ks-f { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 0 7px; font-size: 10.5px; font-weight: 600; color: var(--soft); cursor: pointer; line-height: 1.6; }
.ks-f:hover { color: var(--accent); border-color: var(--accent); }
.ks-f.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ks-c p { margin: 0; font-family: var(--font); font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ks-c p.acik { -webkit-line-clamp: unset; }
.ks-c.mine p { color: var(--soft); }
.ks-bos { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.55; }
.ks-yaz { align-self: flex-start; }
.ks-yaz svg { width: 14px; height: 14px; }
body.focus .kenar-sol, body.focus .kenar-sag { display: none !important; }
.verse {
  position: relative; padding: 18px 16px 18px 4.2rem; border-radius: 14px;
  transition: background .4s ease;
  content-visibility: auto; contain-intrinsic-size: auto 320px; /* uzun surelerde akıcı kaydırma */
}
.verse + .verse { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.verse.flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--gold) 16%, transparent); } 100% { background: transparent; } }
.verse .vno {
  position: absolute; left: 0.6rem; top: 20px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; color: var(--gold); font-family: var(--ui); font-size: 12.5px; font-weight: 700; padding: 0;
}
.verse .vno svg { position: absolute; inset: 0; width: 44px; height: 44px; transition: transform .4s ease; }
.verse .vno:hover svg, .verse.secili .vno svg, .verse-modal .verse.open .vno svg { transform: rotate(45deg); }
.verse .vno b { position: relative; color: var(--ink); }
.verse .vno b.d3 { font-size: 10.5px; letter-spacing: -.02em; }
.verse .flags { position: absolute; left: 1.15rem; top: 70px; display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--gold); }
.verse .flags svg { width: 15px; height: 15px; }
.verse .flags .elsewhere { width: 8px; height: 8px; border-radius: 50%; background: var(--m-sari); }
.verse .ar {
  font-family: var(--ar-font); font-size: var(--ar-size); line-height: 2.15; direction: rtl; text-align: right;
  margin: 0 0 10px; color: var(--ink); word-spacing: .06em;
}
.verse .ar .end { font-family: 'Amiri', serif; color: var(--gold); padding: 0 .15em; }
.verse .tl { font-family: var(--ui); font-style: italic; font-size: calc(var(--size) * .78); color: var(--soft); margin: 0 0 10px; line-height: 1.6; }
.verse .meal { font-size: var(--size); line-height: var(--lh); margin: 0; max-width: var(--measure); hyphens: auto; text-wrap: pretty; cursor: text; }
.verse .grp { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.verse .meal.cont { font-style: italic; color: var(--soft); font-size: calc(var(--size) * .82); cursor: default; }
.verse .social { font-family: var(--ui); font-size: 12.5px; color: var(--soft); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.verse .social button { border: 0; background: none; padding: 0; color: inherit; display: inline-flex; gap: 5px; align-items: center; }
.verse .social button:hover { color: var(--ink); }
.verse .social svg { width: 14px; height: 14px; }
.verse .my-note { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); border-radius: 0 10px 10px 0; font-style: italic; font-size: calc(var(--size) * .85); white-space: pre-wrap; cursor: pointer; }
@media (max-width: 640px) {
  /* telefonda kart kenar boşluğuna taşar, metin içeride kalır: okunan ayetin zemini ve sol çizgisi yazıya değmez */
  .verse { margin: 0 -12px; padding: 58px 12px 18px; }
  .verse .vno { left: 12px; top: 10px; }
  .verse .flags { flex-direction: row; left: 64px; top: 25px; }
}

/* Rükû rükû (paragraf) düzeni: kitap sayfası gibi akan metin */
.verses.para { max-width: calc(var(--measure) + 2rem); }
.ruku-para { padding: 8px 0 4px; }
.para-ar {
  font-family: var(--ar-font); font-size: var(--ar-size); line-height: 2.3; direction: rtl; text-align: justify;
  text-align-last: right; margin: 0 0 18px; word-spacing: .06em;
}
.para-ar .end { font-family: 'Amiri', serif; color: var(--gold); padding: 0 .12em; }
.para-tr {
  /* sola yaslı: tarayıcılar Türkçe heceleme yapamadığı için iki yana yaslamak kelime arasında boşluk açıyor */
  font-size: var(--size); line-height: var(--lh); margin: 0; text-align: start; text-wrap: pretty;
}
.para-tr + .para-tr { margin-top: 1em; }
.pv, .p-ar { cursor: pointer; border-radius: 4px; transition: background .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pv:hover, .p-ar:hover { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.pv.flash, .p-ar.flash { animation: flash 2.4s ease; }
.pv .meal { cursor: pointer; }
/* Çoklu seçim: seçili ayetler hafif zeminli, meali noktalı altı çizili (dokunarak eklenir/çıkarılır) */
#verses .verse > .meal:not(.cont), #verses .verse > .ar, #verses .verse > .tl { cursor: pointer; }
.verse.secili { content-visibility: visible; background: color-mix(in srgb, var(--gold) 7%, transparent); }
.verse.secili > .meal:not(.cont), .pv.secili .meal {
  text-decoration: underline dotted color-mix(in srgb, var(--ink) 60%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .24em;
}
.pv.secili, .p-ar.secili { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.verse.sec-host { display: contents; }
.my-note .mn-aralik { display: block; font-style: normal; font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.coklu-paylas { max-height: 40vh; overflow: auto; margin: 0 0 6px; font-size: 17px; line-height: 1.6; }
.coklu-paylas p { margin: 0 0 8px; }
.coklu-paylas sup { font-family: var(--ui); font-size: 11px; font-weight: 700; color: var(--gold); }
.actions > button.soluk { opacity: .5; }
/* Okurun çözülmemiş hata bildirimi: mealin sonunda bayrak (metne öğe eklenmez; altını çizme konumları etkilenmez) */
.meal.hata-acik::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .35em; vertical-align: -.08em; background: #B4532A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4m0 0h11l-2 4 2 4H5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4m0 0h11l-2 4 2 4H5'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root[data-dark] .meal.hata-acik::after { background: #E08A66; }
.pno {
  font-family: var(--ui); font-size: .58em; font-weight: 700; color: var(--gold); margin: 0 .25em 0 .1em;
  vertical-align: .55em; line-height: 0; letter-spacing: -.01em;
}
.p-flag { display: inline-block; color: var(--gold); margin-left: .2em; vertical-align: -.1em; }
.p-flag svg { width: .8em; height: .8em; }
.p-flag.p-tag { font-family: var(--ui); font-size: .7em; font-weight: 700; vertical-align: .15em; }

/* ---------- Etiketler ---------- */
.vtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vtag, .tchip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px; padding: 3px 10px; text-decoration: none; line-height: 1.4; }
.vtag:hover, a.tchip:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tchip small { color: var(--soft); font-weight: 600; }
.tchip button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.tchip.add { cursor: pointer; color: var(--soft); background: var(--bg); border-color: var(--line); }
.tchip.add:hover { color: var(--accent); border-color: var(--accent); }
.actions .hash { font-family: var(--ui); font-size: 16px; width: 18px; text-align: center; }
.tag-panel .tag-cur, .tag-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-quick { margin-top: 10px; }
.tag-quick .muted { font-size: 12.5px; margin-right: 2px; }
.tag-add { display: flex; gap: 8px; margin-top: 10px; }
.tag-add .input { flex: 1; min-width: 0; font-size: 15px; padding: 8px 12px; }
.benzer { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.benzer h4 { margin: 0 0 4px; font-family: var(--ui); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.benzer > p { font-size: 12.5px; margin: 0 0 8px; }
.ar-words { display: flex; flex-wrap: wrap; gap: 4px; }
.ar-words button { font-family: var(--ar-font); font-size: 22px; line-height: 1.5; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 0 8px; cursor: pointer; }
.ar-words button:hover { border-color: var(--accent); }
.ar-words button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }
.benzer-res { margin-top: 10px; font-family: var(--ui); font-size: 13.5px; }
.benzer-res:empty { display: none; }
.res-head { margin-bottom: 8px; }
.res-ctl { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.res-ctl select { width: auto; font-size: 13.5px; padding: 5px 10px; }
.res-list { max-height: 22rem; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.res-list label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-family: var(--font); font-size: 14.5px; line-height: 1.5; }
.res-list label:last-child { border-bottom: 0; }
.res-list label b { font-family: var(--ui); font-size: 12.5px; color: var(--gold); margin-right: 4px; }
.res-list label.done { opacity: .55; }
.res-list input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; }
.tag-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; }
.tag-card b { font-family: 'EB Garamond', serif; font-size: 21px; font-weight: 500; color: var(--accent); }
.tag-card small { font-size: 13px; line-height: 1.5; }
.tag-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.tag-head h2 { margin: 6px 0 2px; font-family: 'EB Garamond', serif; font-weight: 500; font-size: 30px; color: var(--accent); }
.tag-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--bg); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 5px 11px; font-family: var(--ui); font-size: 13px; color: var(--soft); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.p-hizb { font-family: 'Amiri', serif; color: var(--gold); font-size: .9em; cursor: help; }
.verse-modal .verse { padding-top: 6px; }
.verse-modal .verse .vno { top: 8px; }
/* telefonda numara metnin üstünde kendi satırında durur (yoksa Arapçanın/mealin üstüne biner) */
@media (max-width: 640px) { .verse-modal .verse { margin: 0; padding: 54px 0 12px; } .verse-modal .verse .vno { left: 0; top: 4px; } .verse-modal .verse .flags { left: 52px; top: 19px; } }

/* Okuma bölümleri: rükû sonu ve çeyrek hizb */
.ruku-end {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 26px; padding-top: 14px;
  font-family: var(--ui); font-size: 12.5px; color: var(--soft); max-width: var(--measure); margin-bottom: 34px;
}
.ruku-end::before, .ruku-end::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 55%, transparent)); }
.ruku-end::after { transform: scaleX(-1); }
.ruku-end .ain {
  font-family: 'Amiri', serif; font-size: 21px; line-height: 1; color: var(--gold); width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 50%; padding-bottom: 4px;
}
.ruku-end .rk-ok { display: none; color: var(--accent); font-weight: 700; }
.ruku-end.done .rk-ok { display: inline; }
.ruku-end.done .ain { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.hizb-mark {
  font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  padding: 12px 0 0 4.2rem;
}
.hizb-mark span { font-family: 'Amiri', serif; font-size: 16px; letter-spacing: 0; margin-right: 4px; }
@media (max-width: 640px) { .hizb-mark { padding-left: 0; } }
.ruku-index { margin: 18px auto 0; max-width: 40rem; font-family: var(--ui); }
.ruku-index summary { cursor: pointer; display: inline-block; font-size: 13.5px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; list-style: none; }
.ruku-index summary::-webkit-details-marker { display: none; }
.ruku-index summary .ain-s { font-family: 'Amiri', serif; color: var(--gold); unicode-bidi: isolate; margin-right: 6px; }
.ruku-index[open] summary { background: var(--card); }
.ruku-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ruku-chips a {
  display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); text-decoration: none; line-height: 1.2;
}
.ruku-chips a b { font-size: 14px; }
.ruku-chips a small { font-size: 11px; color: var(--soft); }
.ruku-chips a:hover { border-color: var(--gold); }
.ruku-chips a.done { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ruku-chips a.done b { color: var(--accent); }
.ruku-chips a.done b::after { content: " ✓"; font-size: 11px; }

/* Altı çizili metin — fosforlu kalem gibi alttan */
mark { color: inherit; border-radius: 2px; padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: none; }
/* Metnin tamamını, harflerden biraz taşacak kadar boyar (satır düzenini bozmaz) */
mark.sari, mark.yesil, mark.mavi, mark.gul {
  padding: .12em .1em .16em; margin: 0 -.06em;
  border-radius: .3em .18em .34em .22em;
}
mark.sari { background: var(--m-sari); } mark.yesil { background: var(--m-yesil); }
mark.mavi { background: var(--m-mavi); } mark.gul { background: var(--m-gul); }
/* Gece kâğıdında fosforlu boya koyu zeminde bulanıklaşmasın: dolgun renk, koyu yazı */
:root[data-dark] :is(mark.sari, mark.yesil, mark.mavi, mark.gul) { color: #1B1A16; }
mark.kalem { text-decoration: underline; text-decoration-color: var(--m-kalem); text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-style: wavy; text-decoration-skip-ink: none; }
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.sw.sari { background: #FFF200; } .sw.yesil { background: #5CFF3D; } .sw.mavi { background: #1AE4FF; } .sw.gul { background: #FF4FCF; }
.sw.kalem { background: var(--card); position: relative; }
.sw.kalem::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; border-top: 2px solid var(--m-kalem); border-radius: 2px; }

/* Ayet işlem çubuğu */
.actions {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .18s ease;
  font-family: var(--ui);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.actions > button {
  border: 0; background: none; border-radius: 10px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--soft);
}
.actions > button:hover { background: color-mix(in srgb, var(--line) 60%, transparent); color: var(--ink); }
.actions > button.on { color: var(--accent); }
.actions svg { width: 18px; height: 18px; }
.actions .colors { display: flex; gap: 4px; align-items: center; padding: 0 6px; border-right: 1px solid var(--line); margin-right: 2px; }
.actions .colors button { border: 0; background: none; padding: 2px; border-radius: 50%; }
.actions .colors button.on .sw { box-shadow: 0 0 0 2px var(--ink); }

.panel { position: relative; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); animation: pop .18s ease; }
/* kapatma düğmeleri */
.panel-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none;
  border-radius: 50%; color: var(--soft); cursor: pointer; }
.panel-x:hover, .actions > .act-x:hover { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink); }
.panel-x svg, .actions > .act-x svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.actions > .act-x { margin-left: auto; color: var(--soft); }
.panel h3 { padding-right: 36px; }
.panel h3 { margin: 0 0 10px; font-family: var(--ui); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.panel .prompt { font-style: italic; color: var(--soft); font-size: 15.5px; margin: 0 0 10px; }
.panel .row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.panel .row .grow { flex: 1; font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.comments { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.comment { border-top: 1px solid var(--line); padding-top: 12px; }
.comment .who { font-family: var(--ui); font-size: 13px; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.comment .who b { color: var(--ink); }
.comment .who .x { margin-left: auto; display: flex; gap: 2px; }
.comment .who .x button { border: 0; background: none; color: var(--soft); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.comment .who .x button:hover { color: var(--ink); background: var(--line); }
.comment p { margin: 6px 0 0; font-size: 16.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adab { font-family: var(--ui); font-size: 12.5px; color: var(--soft); margin: 0 0 10px; }
/* tefekkür penceresi okuma öncelikli: liste üstte, yazma alanı "Siz de yazın" ile altta açılır */
.comment.vurgu { border-top-color: transparent; padding: 10px 12px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, transparent); }
.c-yaz-ac { margin-top: 14px; }
.c-yaz-ac .btn { display: inline-flex; align-items: center; gap: 6px; }
.c-yaz-ac .btn svg { width: 15px; height: 15px; }
.c-yaz { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.surah-nav { display: flex; justify-content: space-between; gap: 12px; margin: 50px auto 0; max-width: var(--measure); }
.surah-nav a { flex: 1; text-decoration: none; padding: 16px 18px; }
.surah-nav a.next { text-align: right; }
.surah-nav small { font-family: var(--ui); color: var(--soft); font-size: 12.5px; display: block; }
.surah-nav span { font-family: 'EB Garamond', serif; font-size: 22px; }
.reader-tools { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Odak modu */
body.focus .topbar { transform: translateY(-100%); }
body.focus .site-foot, body.focus .verse .social, body.focus .verse .flags, body.focus .reader-tools { display: none; }
/* üst çubuk odakta gizli: çıkış düğmesi sağ üstte durur, sağ alttaki Dinle düğmesi/oynatıcıyla çakışmaz */
.focus-exit { position: fixed; right: 16px; top: 14px; z-index: 36; }

/* ---------- Seçim çubuğu ---------- */
.selbar {
  position: absolute; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translate(-50%, -100%);
}
.selbar button { border: 0; background: none; padding: 4px; border-radius: 50%; display: grid; place-items: center; color: var(--soft); }
.selbar button:hover { background: var(--line); }
.selbar svg { width: 20px; height: 20px; }
.selbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }

/* ---------- Ayarlar paneli ---------- */
.sheet-wrap, .modal-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(30, 22, 10, .35); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 100%); background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; animation: slide .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.sheet-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2, .modal-head h2 { margin: 0; font-family: 'EB Garamond', serif; font-weight: 500; font-size: 24px; }
.sheet-body { overflow: auto; padding: 0 22px 30px; }
.ayar-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 4px; padding: 12px 0 10px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.ayar-tabs button { flex: 1 0 auto; border: 1px solid transparent; background: none; border-radius: 999px; padding: 7px 12px; font-family: var(--ui); font-size: 14px; color: var(--soft); white-space: nowrap; cursor: pointer; }
.ayar-tabs button:hover { color: var(--ink); background: color-mix(in srgb, var(--line) 50%, transparent); }
.ayar-tabs button.on { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.ses-not { margin-left: auto; font-family: var(--ui); font-size: 12px; color: var(--accent); white-space: nowrap; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.opt { padding: 16px 0; border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt > label, .opt > .lbl { display: flex; justify-content: space-between; align-items: center; font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.opt .val { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); }
.opt select { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 12px; font-size: 15px; }
.chip.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.papers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.paper { border: 0; background: none; padding: 0; text-align: center; font-family: var(--ui); font-size: 11.5px; color: var(--soft); }
.paper i { display: block; aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px; border: 1px solid rgba(0,0,0,.12); margin-bottom: 5px; box-shadow: inset 4px 0 6px -4px rgba(0,0,0,.25); position: relative; }
.paper i::after { content: "Aa"; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'EB Garamond', serif; font-size: 18px; }
.paper.on i { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--ui); font-size: 15px; padding: 4px 0; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.meal-list { display: flex; flex-direction: column; gap: 4px; }
.meal-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.meal-list label:hover { background: var(--card); }
.meal-list input { accent-color: var(--accent); }
.meal-grp { font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 12px 10px 2px; }
.preview-line { font-size: var(--size); line-height: var(--lh); padding: 10px 0 0; color: var(--soft); }

/* ---------- Pencere ---------- */
.modal-wrap { display: grid; place-items: center; padding: 16px; }
.modal {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); animation: pop .2s ease;
}
.modal.wide { width: min(1040px, 100%); }
.modal-body { overflow: auto; padding: 18px 22px 24px; }
.compare-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.compare-item:last-child { border-bottom: 0; }
.compare-item h4 { margin: 0 0 4px; font-family: var(--ui); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; }
.compare-item h4 button { text-transform: none; letter-spacing: 0; border: 0; background: none; color: var(--soft); font-size: 12.5px; }
.compare-item p { margin: 0; font-size: 17.5px; line-height: 1.65; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; margin-top: 12px; }
.picker-list a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.picker-list a:hover, .picker-list a.cur { background: var(--card); }
.picker-list a small { font-family: var(--ui); color: var(--gold); font-weight: 700; width: 26px; flex: none; }

/* Görsel oluşturucu */
.studio { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.studio .stage { background: color-mix(in srgb, var(--line) 50%, transparent); border-radius: 14px; padding: 16px; display: grid; place-items: center; min-height: 300px; }
.studio canvas { max-width: 100%; max-height: 62vh; height: auto; border-radius: 6px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.studio .ctrl .opt { padding: 12px 0; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.themes button { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(0,0,0,.15); padding: 0; }
.themes button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; } }

/* ---------- Defter / Topluluk / Arama ---------- */
.page { max-width: 52rem; margin: 0 auto; padding: 34px 16px 60px; }
.page-title { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 40px; margin: 0 0 4px; }
.page-sub { color: var(--soft); margin: 0 0 22px; }
.entry { padding: 18px 20px; margin-bottom: 12px; }
.entry .ref { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--ui); font-size: 13px; }
.entry .ref a { color: var(--gold); font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.entry .ref span { color: var(--soft); }
.entry .txt { margin: 8px 0 0; font-size: 16px; line-height: 1.65; }
.entry .note { margin-top: 10px; white-space: pre-wrap; font-style: italic; border-left: 3px solid var(--gold); padding-left: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; text-align: center; }
.stat b { display: block; font-family: 'EB Garamond', serif; font-size: 32px; font-weight: 500; }
.stat span { font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.rank { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rank .n { font-family: 'EB Garamond', serif; font-size: 26px; color: var(--gold); width: 30px; text-align: center; flex: none; line-height: 1.1; }
.rank .b { flex: 1; min-width: 0; }
.rank .b p { margin: 2px 0 0; font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rank .b small { font-family: var(--ui); color: var(--soft); font-size: 12.5px; }
.result em { font-style: normal; background: var(--m-sari); border-radius: 3px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; font-family: var(--ui); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* sekme yazıları okunaklı (soluk gri değil); seçili olan tam koyu ve altın çizgili */
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: 14.5px; color: color-mix(in srgb, var(--ink) 74%, var(--soft)); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--gold); }
/* simgeli sekmeler (Defterim) */
.tabs.ikonlu button { display: inline-flex; align-items: center; gap: 7px; }
.tabs.ikonlu button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tabs.ikonlu button.on svg { stroke: var(--gold); opacity: 1; }
.tabs.ikonlu button small { margin-left: 0; }
.tabs button small { font-weight: 600; color: var(--gold); margin-left: 4px; }

.prose h2 { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 26px; margin: 34px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }

/* ---------- Oynatıcı / Bildirim / Alt bilgi ---------- */
.pl-mini {
  position: fixed; right: 18px; bottom: 18px; z-index: 35; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px 10px 13px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
  font-family: var(--ui); font-size: 14px; font-weight: 700; cursor: pointer; animation: pop .2s ease;
}
.pl-mini svg { width: 16px; height: 16px; fill: currentColor; }
.pl-mini:hover { filter: brightness(1.1); }
@media print { .pl-mini { display: none !important; } }
.player {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 4px;
  width: min(44rem, calc(100% - 24px)); padding: 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-family: var(--ui);
}
.player .big { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.player .big:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.1); }
.player > .icon-btn { flex: none; }
/* uzun adlar (etiket, kâri, meal) oynatıcıyı genişletmez: tek satır, sonu "…" */
.pl-info { flex: 1 1 0; display: flex; flex-direction: column; font-size: 13.5px; padding: 0 8px; line-height: 1.25; min-width: 0; }
.pl-info b, .pl-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info small { font-size: 11.5px; color: var(--soft); }
.pl-picks { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; }
.pl-pick {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 9.5rem; padding: 3px 12px 4px; line-height: 1.2;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; cursor: pointer; text-align: left; font-family: var(--ui);
}
.pl-pick:hover, .pl-pick[aria-expanded="true"] { border-color: var(--accent); }
.pl-pick small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pl-pick b { font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-pick.off b { color: var(--soft); font-weight: 500; font-style: italic; }
.pl-pick.sessiz b::after { content: " · ses yok"; color: var(--soft); font-weight: 500; }
.pl-odak { flex: none; color: var(--soft); }
.pl-odak.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pl-ruku { flex: none; }
.pl-ruku span { font-family: 'Amiri', serif; font-size: 21px; line-height: 1; color: var(--soft); opacity: .45; transition: opacity .15s, color .15s; }
.pl-ruku.on { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.pl-ruku.on span { color: var(--gold); opacity: 1; }
.pl-ruku:hover span { opacity: 1; }
.pl-sel {
  font-family: var(--ui); font-size: 12.5px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 5px 6px; flex: none;
}
.pl-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); max-height: min(60vh, 26rem); overflow: auto; padding: 6px;
  border-radius: 16px; box-shadow: var(--shadow); animation: pop .15s ease;
}
.pl-menu .pm-head { position: sticky; top: -6px; margin: -6px -6px 4px; padding: 10px 14px 8px; background: var(--card); border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pl-menu .pm-grp { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 10px 12px 2px; }
.pl-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 12px; border: 0; background: none; border-radius: 10px;
  color: var(--ink); font-family: var(--ui); font-size: 14.5px; text-align: left; cursor: pointer; }
.pl-menu button:hover { background: color-mix(in srgb, var(--line) 55%, transparent); }
.pl-menu button span { flex: 1; min-width: 0; }
.pl-menu button small { color: var(--accent); font-size: 12px; white-space: nowrap; }
.pl-menu button.on { font-weight: 700; color: var(--accent); }
.pl-menu button.on::before { content: "✓"; width: 1em; }
.pl-menu button:not(.on)::before { content: ""; width: 1em; }
.pl-menu button[data-v=""] { color: var(--soft); font-style: italic; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 2px; }
/* oynatıcı açıkken sayfanın sonu (alt bilgi) onun altında kalmasın */
body:has(#player:not([hidden])) { padding-bottom: 84px; }
@media (max-width: 640px) { body:has(#player:not([hidden])) { padding-bottom: 130px; } }
/* telefonda iki satır: üstte düğmeler ve ayet, altta seçimler */
@media (max-width: 640px) {
  .player { flex-wrap: wrap; border-radius: 18px; row-gap: 6px; }
  .pl-picks { flex: 1 1 100%; }
  .pl-pick { flex: 1 1 0; max-width: none; }
}
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-family: var(--ui); font-size: 14px;
  transition: all .25s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-foot { text-align: center; padding: 30px 16px 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-orn { color: var(--gold); font-size: 22px; }
.foot-ayet { font-style: italic; max-width: 34rem; margin: 8px auto; color: var(--soft); }
.foot-small { font-family: var(--ui); font-size: 12.5px; color: var(--soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .topbar, .site-foot, .verse .social, .verse .flags, .actions, .panel, .reader-tools, .surah-nav, .player { display: none !important; }
  body { background: #fff; }
}

/* ---- Hesap ---- */
.g-logo { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.g-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #c7ccd3; font-weight: 600; }
.g-btn:hover { background: #f4f6f8; }
.giris-iste { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; background: var(--card); }
.giris-iste p { margin: 0 0 10px; font-size: 15px; }
.hesap-kart .ref span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.btn.danger { color: #B3261E; }
/* oynatıcıdaki sure/ayet adı okunan ayete götürür */
.pl-info { cursor: pointer; border-radius: 8px; }
.pl-info:hover #plInfo, .pl-info:focus-visible #plInfo { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pl-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Kalabalık tefekkür paneli ---- */
.comments.kalabalik { max-height: min(70vh, 640px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; overscroll-behavior: contain; }
.comment p.kisa { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.c-devam, .ks-devam { border: 0; background: none; padding: 2px 0; margin-top: 2px; font: 600 12.5px var(--ui); color: var(--accent); cursor: pointer; }
.c-devam:hover, .ks-devam:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-daha { align-self: center; margin: 4px 0 2px; }
.c-daha small { color: var(--soft); font-weight: 500; }

/* ---- Okunan ayet (dinleme sürdükçe kalıcı) ---- */
.verse.okunan { background: color-mix(in srgb, var(--gold) 9%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--gold) 75%, transparent); transition: background .35s ease, box-shadow .35s ease; }
.pv.okunan, .p-ar.okunan { background: color-mix(in srgb, var(--gold) 17%, transparent); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .35s ease; }

/* Rükû başlığı: bitişin altında, yeni bölümün hemen üstünde */
.ruku-bas { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-family: var(--ui); }
.ruku-bas b { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ruku-bas span { font-size: 12.5px; color: var(--soft); }
.verses:not(.para) .ruku-bas { padding-left: 4.2rem; }
@media (max-width: 640px) { .verses:not(.para) .ruku-bas { padding-left: 0; } }

/* Defterim › Tefekkürlerim */
.tf-body { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tf-alt { font-size: 12.5px; margin-top: 8px; }
.tf-alt a { color: var(--accent); }
.tf.gizli .tf-body { color: var(--soft); }
.tf-gizli { margin: 8px 0 0; font: 12.5px/1.5 var(--ui); color: #9A5B13; background: color-mix(in srgb, #E8A33D 12%, transparent); border-radius: 8px; padding: 6px 10px; }
/* sekmeler telefonda da alt satıra iner: yana kaydırınca gözden kaybolmasın */
.tabs { flex-wrap: wrap; row-gap: 0; overflow: visible; }
@media (min-width: 700px) { .tabs button { padding: 10px 12px; } }
@media (max-width: 699px) { .tabs button { padding: 8px 10px; } }
.tani-pre { max-height: 55vh; overflow: auto; font: 11.5px/1.45 ui-monospace, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-word; }
/* Tefekkür formu: hesaba bağlı ad ve ilk paylaşımda adın açıkça onaylanması */
.c-ad { font-family: var(--ui); font-size: 13.5px; color: var(--soft); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-ad:empty { display: none; }
.c-ad b { color: var(--ink); }
.c-ad-degis { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ad-onay { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.ad-onay p { margin: 0 0 10px; line-height: 1.5; color: var(--ink); }
.ad-onay .input { margin-bottom: 10px; }
.ad-onay .row { display: flex; gap: 8px; flex-wrap: wrap; }
/* ---------- Ayet işlemleri: ekranın altından açılan kart ---------- */
/* açık ayet: content-visibility kapalı (yoksa ayet, sabit kartın konum kutusu olur), hafifçe işaretli */
.verse.open { content-visibility: visible; }
.verse-modal .verse.open { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.ayet-kart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 auto; width: min(42rem, 100%);
  max-height: min(82vh, 82dvh); overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px -14px rgba(0, 0, 0, .35); padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  font-family: var(--ui); animation: kartAc .22s ease; transition: translate .18s ease;
}
.ayet-kart:focus { outline: none; }
@keyframes kartAc { from { translate: 0 28px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ayet-kart { animation: none; transition: none; } }
.ak-bas { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 16px 0 8px; background: var(--bg); touch-action: none; cursor: grab; }
.ak-tutamak { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: color-mix(in srgb, var(--soft) 45%, var(--line)); }
.ak-bas b { flex: 1; font-size: 15.5px; color: var(--ink); }
.ak-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--soft); cursor: pointer; }
.ak-x:hover { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink); }
.ak-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.ayet-kart .actions { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; animation: none; }
.ayet-kart .actions > .act-x { display: none; }
.ayet-kart .panel { margin-top: 12px; }
/* kart açıkken son ayetler de kartın üstüne kaydırılabilsin */
body.kart-acik .reader { padding-bottom: var(--kart-h, 0px); }
/* alttaki oynatıcı kartın boş alt kısmında, kartın üstünde durur; kartın düğmeleri onun yukarısında kalır */
body.kart-acik .ayet-kart { padding-bottom: calc(14px + var(--pl-alan, 0px) + env(safe-area-inset-bottom)); }
body.kart-acik .player { z-index: 45; }
@media (max-width: 640px) {
  /* telefonda: renkler bir satırda, işlemler başparmakla basılacak büyüklükte dörtlü ızgarada */
  .ayet-kart .actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .ayet-kart .actions .colors { grid-column: 1 / -1; justify-content: center; gap: 12px; border-right: 0; margin: 0 0 4px; padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
  .ayet-kart .actions .colors .sw { width: 26px; height: 26px; }
  .ayet-kart .actions > button { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 2px; font-size: 12px; min-height: 58px; text-align: center; }
  .ayet-kart .actions > button svg, .ayet-kart .actions .hash { width: 22px; height: 22px; font-size: 19px; }
  /* iki kademe: önce renkler ve ilk dört işlem; "Daha fazlası" ya da yukarı kaydırınca hepsi */
  .ayet-kart:not(.genis) .actions > button:nth-of-type(n+5) { display: none; }
  .ayet-kart:not(.genis) .ak-daha { display: flex; }
}
.ak-daha {
  display: none; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 8px 0 2px;
  border: 0; background: none; color: var(--soft); font-family: var(--ui); font-size: 13px; cursor: pointer;
}
.ak-daha svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-onay-bas { font-weight: 700; font-size: 15px; margin: 0 0 4px !important; }
.ad-onay-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.ad-onay-lbl .input { margin-top: 4px; }
.ad-onay-not { margin: 10px 0 0 !important; font-size: 12.5px; color: var(--soft) !important; }
.ad-onay-not a, .c-ad a { color: var(--accent); font-weight: 700; }
#okur-adi.vurgu { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent), var(--shadow); }
