/* ==========================================================
   kuransuresi.com — Tasarım v2
   ========================================================== */
:root {
  --bg: #f7f2e7;
  --bg-2: #f0e9da;
  --surface: #fffdf8;
  --surface-2: #fbf7ee;
  --ink: #1b2824;
  --ink-2: #3c4a45;
  --muted: #6e7973;
  --line: #ebe1cc;
  --line-2: #dccdb0;
  --green: #0f3f33;
  --green-2: #15634a;
  --green-3: #1f7a5c;
  --green-soft: #e2ece2;
  --gold: #a9802f;
  --gold-2: #d2a851;
  --gold-3: #ecd08a;
  --gold-soft: #f6ebcf;
  --mark: #f6dd94;
  --tf-q: #1f58b5;
  --tf-b: #8a5523;
  --tf-p: #23774a;
  --shadow-sm: 0 1px 2px rgba(40, 34, 20, .06);
  --shadow: 0 1px 2px rgba(40, 34, 20, .04), 0 12px 32px -18px rgba(40, 34, 20, .2);
  --radius: 18px;
  --ar-size: 2.05rem;
  --tr-size: 1.06rem;
  --f-ar-tr: "Amiri", "Scheherazade New", "Amiri Quran", serif;
  --f-ar-osm: "Amiri Quran", "Amiri", "Scheherazade New", serif;
  --f-ar: var(--f-ar-tr);
  --f-display: "Fraunces", "Noto Serif", Georgia, serif;
  --f-read: "Noto Serif", Georgia, "Times New Roman", serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23c99a3f' stroke-width='1.6'%3E%3Crect x='7' y='7' width='26' height='26' rx='2'/%3E%3Crect x='7' y='7' width='26' height='26' rx='2' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d1513;
  --bg-2: #111c19;
  --surface: #14201c;
  --surface-2: #18251f;
  --ink: #ece6d6;
  --ink-2: #cbc5b5;
  --muted: #8f9b94;
  --line: #23322d;
  --line-2: #33463f;
  --green: #0b2a22;
  --green-2: #6ccca3;
  --green-3: #4fb58c;
  --green-soft: #183229;
  --gold: #dcb86e;
  --gold-2: #e5c37b;
  --gold-3: #f0d898;
  --gold-soft: #2a2617;
  --mark: #5a4915;
  --tf-q: #8db6ff;
  --tf-b: #e0aa72;
  --tf-p: #86d6a8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}
[data-yazi="osm"] { --f-ar: var(--f-ar-osm); }
[data-arfont="amiriquran"] { --f-ar: "Amiri Quran", "Amiri", serif; }
[data-arfont="amiri"] { --f-ar: "Amiri", "Amiri Quran", serif; }
[data-arfont="scheherazade"] { --f-ar: "Scheherazade New", "Amiri", serif; }
.osm { font-family: var(--f-ar-osm) !important; }
.trs { font-family: var(--f-ar-tr) !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(1200px 600px at 50% -200px, var(--surface-2), transparent 70%) no-repeat, var(--bg);
  font: 500 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-2); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-3); color: #1b1503; }
.ic { flex: none; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }

/* Okuma ilerleme çubuğu */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--green-3)); transition: width .1s linear; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { filter: drop-shadow(0 2px 4px rgba(120, 90, 20, .25)); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.brand:hover .logo { transform: translateY(-2px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 600 1.2rem/1.1 var(--f-display); color: var(--ink); letter-spacing: -.015em; }
.brand-text small { font: 400 .95rem/1.2 "Amiri", serif; color: var(--gold); }
.mainnav { display: flex; gap: 2px; margin-left: 10px; }
.mainnav a { padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.mainnav a:hover { background: var(--bg-2); color: var(--ink); }
.mainnav a.on { background: var(--green-soft); color: var(--green-2); }
.topsearch { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.topsearch:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-2) 18%, transparent); }
.topsearch input { border: 0; background: none; outline: 0; width: 100%; font-size: .92rem; color: var(--ink); }
.topactions { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.topsearch + .topactions { margin-left: 0; }
.iconbtn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; border-radius: 10px; color: var(--ink-2); padding: 0 8px; }
.iconbtn:hover { background: var(--bg-2); color: var(--ink); }
.js-menu { display: none; }

.langsw { position: relative; }
.langsw-cur { font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.langsw-menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 50; }
.langsw-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: .92rem; }
.langsw-menu a:hover { background: var(--bg-2); }
.langsw-menu a[aria-current] { background: var(--green-soft); color: var(--green-2); }
.langsw-menu b { font-size: .72rem; width: 24px; color: var(--gold); }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--green-2); color: #fbf3df; font-weight: 700; font-size: .92rem; white-space: nowrap; transition: filter .15s, transform .15s, border-color .15s; }
[data-theme="dark"] .btn { background: var(--green-3); color: #04130d; }
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-soft, [data-theme="dark"] .btn-soft { background: var(--surface); color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--gold-2); color: var(--ink); filter: none; }
.btn-ghost, [data-theme="dark"] .btn-ghost { background: none; color: var(--ink-2); border-color: var(--line); }
.btn-gold, [data-theme="dark"] .btn-gold { background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); color: #2a1f05; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip-gold { background: var(--gold-soft); border-color: var(--gold-2); color: var(--gold); }
.chip-green { background: var(--green-soft); border-color: transparent; color: var(--green-2); }
.chip-select { padding: 0 6px 0 12px; }
.chip-select select { border: 0; background: none; outline: 0; font-weight: 700; color: inherit; height: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Ana sayfa: hero ---------- */
.hero { position: relative; overflow: hidden; color: #f3ead3;
  background: radial-gradient(90% 120% at 50% 0%, #1a6650 0%, #11463a 50%, #0b3027 100%); }
[data-theme="dark"] .hero { background: radial-gradient(90% 120% at 50% 0%, #144334 0%, #0b2a21 55%, #06150f 100%); }
.hero-pattern { position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23efcf86' stroke-width='1'%3E%3Cpath d='M48 8l11.7 11.7H76v16.6L88 48 76 59.7V76H59.7L48 88 36.3 76H20V59.7L8 48l12-11.7V19.7h16.3z'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(75% 85% at 50% 35%, #000 25%, transparent 100%); mask-image: radial-gradient(75% 85% at 50% 35%, #000 25%, transparent 100%); }
.hero-arch { position: absolute; left: 50%; top: 26px; width: min(720px, 92vw); height: 115%; transform: translateX(-50%);
  border: 1.5px solid rgba(236, 208, 138, .35); border-bottom: 0; border-radius: 360px 360px 0 0; pointer-events: none; }
.hero-arch::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(236, 208, 138, .18); border-bottom: 0; border-radius: 350px 350px 0 0; }
.hero-in { position: relative; text-align: center; padding: 58px 0 64px; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 6px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.hero-ar { font: 400 clamp(2.3rem, 6vw, 3.6rem)/1.55 "Amiri", serif; color: var(--gold-3);
  background: linear-gradient(180deg, #f8e2a6, #d6ac56); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 { font: 600 clamp(2rem, 4.6vw, 3.25rem)/1.08 var(--f-display); margin: 0 0 14px; letter-spacing: -.02em; color: #fbf4e2; }
.hero h1 span { display: block; font: 500 clamp(1rem, 2.1vw, 1.3rem)/1.4 var(--f-ui); letter-spacing: 0; color: #d7e3d6; margin-top: 8px; }
.hero-sub { margin: 0 auto 30px; max-width: 580px; color: #c7d6c8; font-size: 1.04rem; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 7px 7px 7px 18px;
  background: #fffcf3; border-radius: 18px; color: #6f7a74; box-shadow: 0 24px 50px -20px rgba(0,0,0,.65), 0 0 0 6px rgba(255,255,255,.06); }
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.02rem; color: #1b2824; min-width: 0; height: 46px; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.quick a { padding: 7px 15px; border-radius: 99px; border: 1px solid rgba(236, 208, 138, .32); background: rgba(255,255,255,.03); color: #eedcae; font-size: .88rem; font-weight: 700; }
.quick a:hover { background: rgba(236, 208, 138, .16); color: #fff6dc; }
.hero-sm .hero-in { padding: 44px 0 52px; }

.home-top { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin: -34px 0 44px; position: relative; z-index: 2; }
.daily { padding: 28px 32px; position: relative; overflow: hidden; }
.daily::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: var(--star) center/contain no-repeat; opacity: .12; }
.daily-head { display: flex; justify-content: space-between; align-items: center; }
.daily-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.daily-ar { font: 400 calc(var(--ar-size) * .98)/2.2 var(--f-ar); margin: 14px 0 10px; text-align: right; }
.daily-tr { font: 400 1.06rem/1.75 var(--f-read); color: var(--ink-2); margin: 0 0 16px; }
.daily-ref { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-2); font-size: .9rem; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.side-stack .card { padding: 18px 22px; }
.continue-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font: 600 1.15rem var(--f-display); color: var(--green-2); }
.marks ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.marks li { display: flex; align-items: center; justify-content: space-between; }
.marks li a { padding: 4px 0; font-weight: 700; }
.marks li button { border: 0; background: none; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.marks li button:hover { color: #c0392b; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats b { display: block; font: 600 1.45rem/1.2 var(--f-display); color: var(--green-2); }
.stats span { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.promo { display: flex; align-items: center; gap: 14px; transition: border-color .15s, transform .15s; }
.promo:hover { border-color: var(--gold-2); transform: translateY(-2px); color: inherit; }
.promo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.promo b { font: 600 1.08rem var(--f-display); }
.promo small { color: var(--muted); }
.promo-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; position: sticky; top: 68px; background: var(--bg); z-index: 5; }
.tab { padding: 13px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-color: var(--gold-2); }
.tabpane { display: none; padding-bottom: 50px; }
.tabpane.on { display: block; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pane-head h2 { font: 600 1.6rem var(--f-display); margin: 0; letter-spacing: -.01em; }
.filter { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.filter input { border: 0; background: none; outline: 0; width: 190px; color: var(--ink); }
.filter.big { max-width: 440px; margin: 18px auto 0; height: 48px; }
.filter.big input { width: 100%; }

/* Sûre kartları */
.sura-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
.sura-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; transition: border-color .18s, transform .18s, box-shadow .18s; overflow: hidden; }
.sura-card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; background: var(--star) center/contain no-repeat; opacity: 0; transition: opacity .2s; }
.sura-card:hover { border-color: var(--gold-2); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.sura-card:hover::after { opacity: .25; }
.sc-no { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none; background: var(--star) center/contain no-repeat; }
.sc-no span { position: relative; font: 600 .86rem var(--f-display); color: var(--green-2); }
.sura-card:hover .sc-no { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold-2) 50%, transparent)); }
.sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-main b { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-main small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.sc-ar { font: 400 1.5rem/1 "Amiri", serif; color: var(--green-2); }
[data-theme="dark"] .sc-ar { color: var(--gold); }
.no-result { text-align: center; color: var(--muted); padding: 40px 0; }

.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.juz-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: .18s; overflow: hidden; }
.juz-card:hover { border-color: var(--gold-2); transform: translateY(-2px); color: inherit; box-shadow: var(--shadow); }
.jc-ar { position: absolute; right: 12px; top: 2px; font: 2.6rem/1.3 "Amiri", serif; color: var(--gold-3); opacity: .55; }
[data-theme="dark"] .jc-ar { color: var(--gold); opacity: .25; }
.jc-no { position: relative; font: 600 1.35rem/1.1 var(--f-display); color: var(--green-2); }
.jc-from { position: relative; font-weight: 700; margin-top: 10px; }
.jc-pages { color: var(--muted); font-size: .82rem; font-weight: 600; }

.goto { display: flex; align-items: center; gap: 8px; }
.goto label { font-weight: 700; color: var(--muted); font-size: .9rem; }
.goto input { width: 100px; height: 42px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
.page-juz { display: flex; flex-direction: column; gap: 10px; }
.pj-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pj-label { font-weight: 700; color: var(--green-2); padding-top: 4px; }
.pj-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-pages a { min-width: 38px; text-align: center; padding: 4px 6px; border-radius: 8px; font-size: .84rem; color: var(--ink-2); background: var(--bg); }
.pj-pages a:hover { background: var(--gold-soft); color: var(--ink); }

.langs-band { margin: 20px 0 30px; }
.langs-band h2, .about h2 { font: 600 1.55rem var(--f-display); margin: 0 0 16px; letter-spacing: -.01em; }
.lang-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lang-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--surface-2)); transition: .18s; }
.lang-card:hover { border-color: var(--gold-2); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.lang-card b { font-size: .75rem; letter-spacing: .1em; color: var(--gold); }
.lang-card span { font: 600 1.2rem var(--f-display); }
.lang-card small { color: var(--muted); font-weight: 600; }
.about { margin: 40px 0 10px; padding: 30px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.about p { margin: 0; color: var(--ink-2); font: 400 1rem/1.8 var(--f-read); }
.about strong { color: var(--ink); font-weight: 500; }

/* ---------- Okuma sayfaları ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 22px 0 6px; margin: 0; font-size: .84rem; color: var(--muted); font-weight: 600; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--green-2); }

.sura-banner { position: relative; text-align: center; margin: 14px 0 26px; padding: 40px 22px 32px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sb-orn { position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23a9802f' stroke-width='1'%3E%3Cpath d='M32 4l8 8h12v12l8 8-8 8v12H40l-8 8-8-8H12V40l-8-8 8-8V12h12z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000 100%); }
.sb-frame { position: absolute; inset: 9px; border: 1px solid color-mix(in srgb, var(--gold-2) 45%, transparent); border-radius: 15px; pointer-events: none; }
.sb-frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--gold-2) 22%, transparent); border-radius: 12px; }
.sb-ar { position: relative; font: 400 clamp(2rem, 5vw, 2.8rem)/1.5 "Amiri", serif; color: var(--green-2); }
[data-theme="dark"] .sb-ar { color: var(--gold); }
.sb-tr { position: relative; font: 500 clamp(1.5rem, 3.2vw, 2.05rem)/1.2 var(--f-display); margin: 0 0 6px; color: var(--ink); letter-spacing: -.01em; }
.sb-tr a:hover { color: var(--green-2); }
.sb-sub { position: relative; font: italic 1.02rem var(--f-read); color: var(--muted); margin-bottom: 8px; }
.sb-meta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .86rem; color: var(--muted); font-weight: 600; margin-top: 8px; }
.sb-meta i { font-style: normal; color: var(--gold-2); font-size: .62rem; align-self: center; }
h2.sb-tr { font-size: 1.6rem; }
.ayah-list .sura-banner { margin-top: 46px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.jump { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 6px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); }
.jump select { border: 0; background: none; outline: 0; height: 40px; color: var(--ink-2); font-weight: 700; font-size: .92rem; }

.basmala { text-align: center; font: 400 calc(var(--ar-size) * 1.08)/2 var(--f-ar); color: var(--green-2); margin: 8px 0 16px; }
[data-theme="dark"] .basmala { color: var(--gold); }

.sura-cont { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 34px 0 14px; padding: 12px; border-block: 1px solid var(--line); }
.sura-cont a { font: 600 1.15rem var(--f-display); }
.sura-cont span { font: 1.35rem "Amiri", serif; color: var(--gold); }
.sura-cont small { color: var(--muted); font-weight: 600; }

/* Âyet kartı */
.ayah { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 32px 10px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .3s; }
.ayah:last-child { border-bottom: 0; }
.ayah-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ayah-badge { display: grid; place-items: center; width: 46px; height: 46px; background: var(--star) center/contain no-repeat; color: var(--green-2); }
.ayah-badge b { font: 600 .95rem var(--f-display); }
.ayah-badge:hover { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold-2) 55%, transparent)); }
.ayah-tools { display: flex; flex-direction: column; gap: 2px; opacity: .5; transition: opacity .15s; }
.ayah:hover .ayah-tools, .ayah.playing .ayah-tools, .ayah:focus-within .ayah-tools { opacity: 1; }
.tool { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 9px; color: var(--muted); }
.tool:hover { background: var(--bg-2); color: var(--ink); }
.tool.on { color: var(--gold); }
.tool.on .ic { fill: currentColor; }
.ayah-body { min-width: 0; }
.ar { font: 400 var(--ar-size)/2.3 var(--f-ar); text-align: right; margin: 0 0 14px; color: var(--ink); word-spacing: .05em; }
.ayah-end { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin: 0 .12em; vertical-align: middle;
  font: 700 .5em/1 "Amiri", serif; color: var(--gold); background: var(--star) center/contain no-repeat; }
.sajda { color: var(--gold); font-size: .8em; }
.okunus { font: italic 400 calc(var(--tr-size) * .95)/1.75 var(--f-read); color: var(--green-2); margin: 0 0 14px; padding-left: 14px; border-left: 2px solid var(--gold-3); }
[data-theme="dark"] .okunus { color: #94d6b8; border-color: #5c4e25; }
.ok-v { opacity: .5; font-size: .92em; }
.ok-w { display: inline-block; font: 700 .62em/1 var(--f-ui); font-style: normal; color: var(--gold); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-2) 50%, transparent);
  border-radius: 5px; padding: 2px 4px; margin: 0 3px; vertical-align: super; cursor: help; }

.meals { display: flex; flex-direction: column; gap: 14px; }
.meal p { margin: 0; font: 400 var(--tr-size)/1.85 var(--f-read); color: var(--ink-2); }
.meal--main p { color: var(--ink); font-size: calc(var(--tr-size) * 1.03); }
.meal-src { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 3px; }
.meal-src .lang { padding: 1px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.meal:not(.meal--main) { padding-left: 14px; border-left: 2px solid var(--line-2); }

.tefsir { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.tefsir summary { display: flex; align-items: center; gap: 8px; padding: 11px 15px; cursor: pointer; list-style: none; font-weight: 700; font-size: .86rem; color: var(--green-2); }
.tefsir summary::-webkit-details-marker { display: none; }
.tefsir summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.tefsir[open] summary::after { content: "−"; }
.tefsir-text { padding: 0 16px 12px; font: 400 calc(var(--tr-size) * .95)/1.78 var(--f-read); color: var(--ink-2); }
.tefsir-text p { margin: 0 0 10px; }
.tefsir-text .loading { color: var(--muted); font-style: italic; }
.tefsir-foot, .tefsir-link { padding: 0 16px 14px; }
.tefsir-link { padding: 12px 0 0; }
.tefsir-more { display: inline-flex; align-items: center; gap: 6px; font: 700 .84rem var(--f-ui); color: var(--gold); }
.tefsir-more:hover { color: var(--green-2); }

.ayah.playing { background: linear-gradient(90deg, var(--gold-soft), transparent 75%); border-radius: 16px; }
.flash { animation: flash 1.8s ease; border-radius: 16px; }
@keyframes flash { 0%, 40% { background: var(--gold-soft); } 100% { background: transparent; } }

/* Tek âyet */
.single-head { text-align: center; padding: 14px 0 12px; }
.single-head h1 { font: 600 clamp(1.7rem, 4vw, 2.5rem)/1.15 var(--f-display); margin: 8px 0 16px; letter-spacing: -.015em; }
.single-head h1 span { display: block; color: var(--green-2); font-size: .7em; margin-top: 4px; }
.single-list .ayah { grid-template-columns: 1fr; padding-top: 14px; }
.single-list .ayah-side { flex-direction: row; justify-content: center; }
.single-list .ayah-tools { flex-direction: row; opacity: 1; }
.single-list .ar { text-align: center; font-size: calc(var(--ar-size) * 1.18); }
.single-list .okunus { border-left: 0; padding: 0; text-align: center; }
.single-list .meal { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.single-list .meal--main { border-color: var(--gold-2); box-shadow: var(--shadow); }
.single-list .meals { gap: 10px; }
.alt-script { margin: 6px 0 0; border: 1px dashed var(--line-2); border-radius: 14px; padding: 4px 16px; }
.alt-script summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: var(--muted); font-size: .88rem; }
.alt-script .ar { text-align: center; }

/* Sûre hakkında */
.sura-about { margin: 40px 0 0; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sura-about h2 { font: 600 1.35rem var(--f-display); margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0 0 18px; }
.facts div { padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 600 1.2rem var(--f-display); color: var(--green-2); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--ink-2); font-family: var(--f-read); }
.other-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
.other-langs a { color: var(--green-2); }

/* Sayfalama */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 34px 0 60px; }
.pg { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.pg span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; min-width: 0; }
.pg small { font-weight: 700; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pg.next { justify-content: flex-end; text-align: right; }
.pg:hover { border-color: var(--gold-2); color: inherit; }
.pg.ghost { border: 0; background: none; box-shadow: none; }
.pg-center { font-size: .88rem; color: var(--muted); font-weight: 700; }
.pg-center a:hover { color: var(--green-2); }

/* ---------- Mushaf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 18px; flex-wrap: wrap; }
.page-head h1 { font: 600 1.75rem/1.2 var(--f-display); margin: 4px 0 0; }
.page-head h1 small { font-size: .6em; color: var(--muted); }
.mushaf-nav { display: flex; align-items: center; gap: 10px; }
.mn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.mn:hover { border-color: var(--gold-2); }
.mushaf { flex: 1; min-width: 0; position: relative; padding: 26px clamp(18px, 4vw, 46px) 20px; background: #fffaef; color: #1d1a12;
  border-radius: 8px; margin: 10px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-2), 0 0 0 7px #fffaef, 0 0 0 8.5px var(--gold-2), 0 0 0 11px #fffaef, 0 0 0 12px var(--line-2); }
[data-theme="dark"] .mushaf { background: #17211d; color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--line-2), 0 0 0 7px #17211d, 0 0 0 8.5px #6d5a2c, 0 0 0 11px #17211d, 0 0 0 12px var(--line-2); }
.mushaf-top { display: flex; justify-content: space-between; font: 400 1.05rem "Amiri", serif; color: var(--gold); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; margin-bottom: 14px; }
.mushaf-text { font: 400 calc(var(--ar-size) * .97)/2.4 var(--f-ar); text-align: justify; text-align-last: center; }
.m-ayah { cursor: pointer; border-radius: 6px; transition: background .15s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.m-ayah:hover { background: var(--gold-soft); }
.m-ayah.playing { background: var(--mark); }
.m-sura { margin: 12px 0 6px; text-align: center; text-align-last: center; }
.m-sura span { display: inline-block; min-width: 72%; padding: 2px 30px; font: 400 1.05em/1.9 "Amiri", serif; color: var(--green-2);
  border: 1.5px solid var(--gold-2); border-radius: 10px; background: linear-gradient(var(--gold-soft), transparent); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--gold-3); }
[data-theme="dark"] .m-sura span { color: var(--gold); }
.m-basmala { text-align: center; text-align-last: center; color: var(--green-2); }
[data-theme="dark"] .m-basmala { color: var(--gold); }
.mushaf-foot { text-align: center; font: 1.05rem "Amiri", serif; color: var(--gold); border-top: 1px solid var(--line-2); padding-top: 6px; margin-top: 10px; }

.section-title { font: 600 1.3rem var(--f-display); margin: 40px 0 14px; }
.section-title small { font-family: var(--f-ui); font-size: .8rem; color: var(--muted); font-weight: 600; }
.page-meal.hide { display: none; }
.pm-item { padding: 14px 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.pm-ref { font-size: .82rem; color: var(--muted); font-weight: 700; }
.pm-ref b { color: var(--green-2); }
.pm-text { margin: 4px 0 0; font: 400 var(--tr-size)/1.75 var(--f-read); }
.pm-alt { color: var(--ink-2); font-size: calc(var(--tr-size) * .95); }
.pm-alt .lang { display: block; font: 700 .7rem var(--f-ui); color: var(--gold); }

.juz-suras { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -6px 0 18px; }
.anchor { display: block; position: relative; top: -10px; }

/* ---------- Tefsir ---------- */
.page-hero { text-align: center; padding: 26px 0 30px; }
.page-hero h1 { font: 600 clamp(2rem, 4vw, 2.7rem) var(--f-display); margin: 10px 0 8px; letter-spacing: -.02em; }
.page-hero p { margin: 0 auto; max-width: 560px; color: var(--ink-2); font-family: var(--f-read); }
.ph-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--gold-soft); color: var(--gold); }
.tf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tf-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: .15s; }
.tf-list a:hover { border-color: var(--gold-2); color: inherit; transform: translateX(3px); }
.tf-no { flex: none; min-width: 54px; height: 34px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); font: 600 .9rem var(--f-display); }
.tf-meal { flex: 1; min-width: 0; font: 400 .98rem/1.55 var(--f-read); color: var(--ink-2); }
.tf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.tf-ar { padding: 30px clamp(18px, 4vw, 40px) 10px; font: 400 calc(var(--ar-size) * 1.05)/2.35 var(--f-ar); text-align: center; background: linear-gradient(var(--gold-soft), transparent); }
.tf-actions { display: flex; justify-content: center; padding: 4px 0 18px; }
.tf-meal-box, .tf-body { padding: 0 clamp(18px, 4vw, 40px) 26px; }
.tf-sec h2, .tf-meal-box h2, .tf-body h2 { font: 700 .74rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.tf-meal-box p { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--bg); font: 400 calc(var(--tr-size) * 1.05)/1.8 var(--f-read); border-left: 3px solid var(--green-3); }
.tf-body { font: 400 var(--tr-size)/1.9 var(--f-read); color: var(--ink-2); }
.tf-body p { margin: 0 0 14px; }
.tf-q { color: var(--tf-q); }
.tf-b { color: var(--tf-b); }
.tf-p { color: var(--tf-p); }

/* ---------- Arama ---------- */
.search-head { padding: 18px 0 6px; text-align: center; }
.search-head h1 { font: 600 2.2rem var(--f-display); margin: 0 0 18px; }
.big-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow); }
.big-search:focus-within { border-color: var(--gold-2); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.05rem; height: 44px; color: var(--ink); }
.big-search select { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 8px; }
.hint { color: var(--muted); font-size: .88rem; }
.hint a { color: var(--green-2); font-weight: 700; }
.sura-grid.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.results { list-style: none; margin: 0 0 60px; padding: 0; }
.result { padding: 20px 0; border-bottom: 1px solid var(--line); }
.r-ref { font-size: .86rem; font-weight: 700; color: var(--muted); }
.r-ref b { color: var(--green-2); }
.r-ar { font: 400 calc(var(--ar-size) * .82)/2.15 var(--f-ar); text-align: right; margin: 6px 0; }
.r-tr { font: 400 var(--tr-size)/1.7 var(--f-read); margin: 0; color: var(--ink-2); }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
.empty-state { text-align: center; padding: 80px 0; }
.empty-state .btn { margin: 4px; }
.big-num { font: 600 5rem/1 var(--f-display); color: var(--gold); }

/* ---------- Alt bilgi ---------- */
.sitefoot { position: relative; margin-top: 60px; background: #123f33; color: #cbd8cb; padding: 0 0 26px; overflow: hidden; }
[data-theme="dark"] .sitefoot { background: #08110e; border-top: 1px solid var(--line); }
.foot-orn { height: 12px; background: repeating-linear-gradient(90deg, var(--gold-2) 0 14px, transparent 14px 20px); opacity: .5;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); height: 3px; }
.foot-verse { text-align: center; padding: 40px 0 30px; border-bottom: 1px solid rgba(236, 208, 138, .15); }
.foot-ar { font: 400 2rem/1.8 "Amiri", serif; color: var(--gold-3); }
.foot-tr { margin: 0; font: italic 1rem var(--f-read); }
.foot-tr span { font-style: normal; color: var(--gold-3); font-size: .85rem; margin-left: 6px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 34px 0 26px; }
.foot-brand p { margin: 14px 0 0; font-size: .9rem; color: #b5c6b6; max-width: 320px; }
.sitefoot .brand-text b { color: #fbf4e2; }
.sitefoot nav { display: flex; flex-direction: column; gap: 7px; }
.sitefoot h2 { font: 700 .74rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); margin: 0 0 6px; }
.sitefoot nav a { font-size: .92rem; font-weight: 600; color: #d4e0d4; }
.sitefoot nav a:hover { color: var(--gold-3); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 18px; border-top: 1px solid rgba(236, 208, 138, .12); }
.copy { font-size: .78rem; opacity: .65; margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; }
.foot-legal a { color: #d4e0d4; opacity: .85; }
.foot-legal a:hover { color: var(--gold-3); opacity: 1; }

/* ---------- Oynatıcı ---------- */
.player { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(560px, calc(100% - 24px)); }
.player-in { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--green) 95%, transparent); color: #efe6cf; backdrop-filter: blur(12px); box-shadow: 0 22px 50px -14px rgba(0,0,0,.55); }
[data-theme="dark"] .player-in { background: color-mix(in srgb, #1b2a25 95%, transparent); border: 1px solid var(--line-2); }
.player .iconbtn { color: #e6dcc1; }
.player .iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.pbtn { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); color: #2a1f05; }
.player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; padding-left: 6px; }
.player-info b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info small { font-size: .74rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.player-progress span { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width .25s linear; }

/* ---------- Ayarlar ---------- */
.settings { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(420px, 100%); background: var(--surface); color: var(--ink); box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); }
.settings[open] { animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.settings::backdrop { background: rgba(10, 20, 16, .45); backdrop-filter: blur(2px); }
.settings-in { display: flex; flex-direction: column; height: 100%; }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings-head h2 { margin: 0; font: 600 1.3rem var(--f-display); }
.settings-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.settings h3 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.seg span b { font: 400 1.35rem/1.6 "Amiri", serif; color: var(--ink); }
.seg span b.osm { font-family: "Amiri Quran", serif !important; }
.seg input:checked + span { border-color: var(--green-3); background: var(--green-soft); color: var(--green-2); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-2); }
.langgroup { margin-bottom: 12px; }
.langname { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: .93rem; }
.check:hover { background: var(--bg-2); }
.check input { width: 18px; height: 18px; accent-color: var(--green-3); }
.switch { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-size: .94rem; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--green-3); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; }
.field select { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; font-weight: 600; }
.field input[type=range] { accent-color: var(--green-3); }
.field output { font-weight: 600; color: var(--muted); }
.settings-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; z-index: 70;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: .9rem; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .home-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .topsearch { display: none; }
  .js-menu { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .mainnav.open { display: flex; }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-in { gap: 8px; }
  .brand-text small { display: none; }
  .ayah { grid-template-columns: 1fr; gap: 10px; padding: 22px 4px; }
  .ayah-side { flex-direction: row; justify-content: space-between; }
  .ayah-tools { flex-direction: row; opacity: 1; }
  :root { --ar-size: 1.8rem; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pg-center { display: none; }
  .mn { display: none; }
  .mushaf { margin: 12px 4px; }
  .stats b { font-size: 1.15rem; }
  .daily { padding: 22px; }
  .big-search { flex-wrap: wrap; }
  .big-search select, .big-search .btn { flex: 1; }
  .toolbar .btn span { display: none; }
  .toolbar .btn { padding: 0 13px; }
  .hero-arch { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: 22px; }
  .sura-about, .about { padding: 22px 18px; }
  .langsw-cur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .toolbar, .ayah-tools, .pager, .sitefoot, .player, .readbar, .tefsir:not([open]) { display: none !important; }
  body { background: #fff; }
}

/* ---------- Tefsir sayfası ek ---------- */
.tf-okunus { margin: -2px auto 6px; padding: 0 clamp(18px, 4vw, 40px); max-width: 680px; text-align: center; font: italic 400 calc(var(--tr-size) * .95)/1.75 var(--f-read); color: var(--green-2); }
[data-theme="dark"] .tf-okunus { color: #94d6b8; }
.tf-sec { padding: 0 clamp(18px, 4vw, 40px) 28px; }
.tf-short { border-top: 1px solid var(--line); padding-top: 24px; }
.tf-short-text { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font: 400 calc(var(--tr-size) * .97)/1.85 var(--f-read); color: var(--ink-2); }
.tf-short-text p { margin: 0 0 10px; }
.tf-short-text p:last-child { margin: 0; }

/* ---------- Bilgi sayfaları ---------- */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.prose section + section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2 { font: 500 1.3rem var(--f-display); margin: 0 0 10px; color: var(--ink); }
.prose p, .prose li { font: 400 1.02rem/1.85 var(--f-read); color: var(--ink-2); }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose a { color: var(--green-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green-2) 35%, transparent); text-underline-offset: 3px; }
.src-note { padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); border-left: 3px solid var(--gold-2); color: var(--ink) !important; }
.source-card { margin: 20px 0 60px; }
.source-card .sc-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.source-card a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.source-card a:hover { border-color: var(--gold-2); color: inherit; }
.source-card b { font: 500 1.15rem var(--f-display); }
.source-card small { flex: 1; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================
   v4 — Dinle bölümü + sakin dokunuşlar
   ========================================================== */
/* Üst menü: hap yerine ince altın çizgi */
.mainnav a { position: relative; background: none !important; }
.mainnav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-2); transform: scaleX(0); transition: transform .2s; }
.mainnav a:hover::after { transform: scaleX(.5); }
.mainnav a.on { color: var(--green-2); }
.mainnav a.on::after { transform: scaleX(1); }
.topbar { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }

/* Kartlarda daha yumuşak hareket */
.sura-card, .juz-card, .lang-card, .promo, .rc-card { transition: border-color .25s, transform .25s, box-shadow .25s; }
.sura-card:hover, .juz-card:hover, .lang-card:hover, .rc-card:hover { transform: translateY(-1px); }
.side-stack { gap: 12px; }
.side-stack .card.promo { padding: 14px 18px; }

.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
.chips.left { justify-content: flex-start; }

/* Kâri avatarı */
.rc-av { --s: 56px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-soft), var(--gold-soft)); color: var(--green-2); font: 500 calc(var(--s) * .42)/1 var(--f-display);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--gold-2) 55%, transparent); }
.rc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.rc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rc-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow); color: inherit; }
.rc-name { font-weight: 700; line-height: 1.3; }
.rc-card small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.listen-quick { margin: 40px 0 20px; }
.listen-quick h2, .lp-others h2 { font: 500 1.3rem var(--f-display); margin: 0 0 14px; }

.rc-head { display: flex; align-items: center; gap: 22px; padding: 18px 0 24px; }
.rc-head h1 { font: 500 clamp(1.6rem, 3.6vw, 2.2rem)/1.15 var(--f-display); margin: 4px 0 4px; }
.rc-head p { margin: 0; color: var(--muted); font-weight: 600; }
.rc-select { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); max-width: 100%; }
.rc-select select { border: 0; background: none; outline: 0; height: 40px; font-weight: 700; color: var(--ink-2); max-width: 260px; }

.tracks { list-style: none; margin: 0 0 40px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.track { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .2s; }
.track:last-child { border-bottom: 0; }
.track:hover { background: var(--surface-2); }
.track.playing { background: linear-gradient(90deg, var(--gold-soft), transparent 80%); }
.tr-play { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--green-2); display: grid; place-items: center; }
.tr-play .ic { position: absolute; opacity: 0; transition: opacity .15s; }
.tr-no { font: 500 .9rem var(--f-display); transition: opacity .15s; }
.track:hover .tr-play .ic, .track.playing .tr-play .ic { opacity: 1; }
.track:hover .tr-no, .track.playing .tr-no { opacity: 0; }
.track.playing .tr-play { background: var(--green-3); color: #fff; border-color: transparent; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-main b { font-weight: 700; }
.tr-main small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.tr-ar { font: 1.35rem/1 "Amiri", serif; color: var(--green-2); }
[data-theme="dark"] .tr-ar { color: var(--gold); }
.tr-dl { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.tr-dl:hover { background: var(--bg-2); color: var(--green-2); }

.lp-card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 30px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.lp-who { display: flex; align-items: center; gap: 16px; text-align: left; }
.lp-who b { display: block; font: 500 1.25rem var(--f-display); }
.lp-who small { color: var(--muted); font-weight: 600; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-card.playing { border-color: var(--gold-2); }
.lp-others { margin: 36px 0 0; }
.rc-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rc-mini a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; }
.rc-mini a:hover { border-color: var(--gold-2); color: inherit; }

/* Sûre oynatıcı */
.splayer { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 55; width: min(820px, calc(100% - 24px)); }
.sp-in { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 20px; background: color-mix(in srgb, #123f33 96%, transparent); color: #efe6cf;
  backdrop-filter: blur(12px); box-shadow: 0 22px 50px -14px rgba(0,0,0,.5); }
[data-theme="dark"] .sp-in { background: color-mix(in srgb, #1b2a25 96%, transparent); border: 1px solid var(--line-2); }
.splayer .iconbtn { color: #e6dcc1; }
.splayer .iconbtn:hover, .splayer .iconbtn.on { background: rgba(255,255,255,.1); color: var(--gold-3); }
.sp-info { min-width: 0; width: 170px; display: flex; flex-direction: column; line-height: 1.25; padding: 0 6px; }
.sp-info b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-info small { font-size: .74rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-seek { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: .74rem; font-variant-numeric: tabular-nums; opacity: .9; }
.sp-seek input { --p: 0%; flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; outline: 0;
  background: linear-gradient(90deg, var(--gold-2) var(--p), rgba(255,255,255,.18) var(--p)); }
.sp-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-3); border: 0; }
.sp-seek input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-3); border: 0; }
body.has-splayer main { padding-bottom: 90px; }

/* Mobil alt menü */
.bottomnav { display: none; }
@media (max-width: 760px) {
  .bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: .7rem; font-weight: 700; color: var(--muted); }
  .bottomnav a.on { color: var(--green-2); background: var(--green-soft); }
  body { padding-bottom: 70px; }
  .player, .splayer { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sp-info { width: auto; flex: 1; }
  .sp-seek { position: absolute; left: 14px; right: 14px; bottom: 4px; }
  .sp-seek span { display: none; }
  .sp-in { position: relative; padding-bottom: 16px; }
  .js-sp-repeat { display: none; }
  .tr-ar { display: none; }
  .rc-head { flex-direction: column; text-align: center; gap: 12px; }
  .lp-who { flex-direction: column; text-align: center; }
}
.btn-icon { width: 42px; padding: 0 !important; justify-content: center; }
