/* ═══════════════════════════════════════════════════════════════════════
   TEFSIR SAYFASI — islamarsivi.com
   Tasarım: bakır-krem editorial
   Renkler: #B87333 bakır, #C5A54E altın, #2C1810 koyu, #F7F3EB krem
   Class prefix: .tp / .tp__ — site CSS'i ile carpismaz
   NOT: Site header (header.js) korundu, sadece tefsir icerigi yenilendi.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── KURAN MUSHAF FONTU ─────────────────────────────────────────────── */
/* iar-kuran-hat /iar/kuran-hat.css tarafından sağlanır (Türk-Osmanlı hat).
   Burada YENİDEN tanımlama YOK — yanlış kaynağa pointing yapıp çakışma çıkmasın.
   tefsir/index.html'in <head>'inde /iar/kuran-hat.css yüklü olmalı. */
@font-face {
  font-family: 'UthmanicHafs1';
  src: url('/tefsir/assets/fonts/UthmanicHafs1.otf') format('opentype');
  font-display: block;
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ═══════════════════════════════════════════════════════════════════════
   1) GENEL SAYFA
   ═══════════════════════════════════════════════════════════════════════ */
.tefsir-page {
  margin: 0;
  background: #F7F3EB;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184,115,51,.03) 0%, transparent 25%),
    radial-gradient(circle at 80% 60%, rgba(197,165,78,.03) 0%, transparent 25%),
    linear-gradient(135deg, #F7F3EB 0%, #FAF7F0 100%);
}

/* Tefsir root container — site header'in alti */
/* NOT: Site header iki katmandan olusur: .ia-ident (36px) ust + .mv-hdr (60px) alt = 96px.
   body padding-top header.js tarafindan sadece mv-hdr yuksekligi (60px) olarak set ediliyor;
   bu yuzden .tp'ye ek 36px padding-top vererek icerigi tum sabit header altina indiriyoruz. */
.tp {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: #2C1810;
  background: transparent;
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════════════
   2) UST KONTROL BARI (header.js'in alti) — sadece breadcrumb + araclar
   ═══════════════════════════════════════════════════════════════════════ */
.tp .topbar {
  background: linear-gradient(180deg, #0F0A07 0%, #1a120b 100%);
  border-bottom: 2px solid #B87333;
  flex: 0 0 auto;
}
.tp .topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.tp .tp-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245,241,232,.85);
  font-size: 13px;
}
.tp .tp-crumb i { color: #C5A54E; font-size: 11px; }
.tp .tp-crumb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #C5A54E;
  letter-spacing: -0.2px;
}
.tp .tp-crumb-sep { color: rgba(245,241,232,.35); }
.tp .tp-crumb-tag {
  font-size: 11px;
  color: rgba(245,241,232,.6);
  letter-spacing: .12em;
  text-transform: none;
}

.tp .topnav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.tp .topnav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(245,241,232,.7);
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.tp .topnav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.tp .topnav a.active { color: #C5A54E; }
.tp .topnav a i { font-size: 9px; opacity: .6; }

.tp .topright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tp .search { position: relative; }
.tp .search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245,241,232,.4);
  font-size: 12px;
  pointer-events: none;
}
.tp .search input {
  width: 280px;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}
.tp .search input::placeholder { color: rgba(245,241,232,.4); }
.tp .search input:focus { border-color: #B87333; background: rgba(255,255,255,.08); }
.tp .filter-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #B87333, #a35f24);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tp .filter-btn:hover { box-shadow: 0 2px 8px rgba(184,115,51,.4); }
.tp .font-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #C5A54E;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.tp .font-btn:hover { border-color: #B87333; color: #fff; }
.tp .icon-btn-dark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #C5A54E;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp .icon-btn-dark:hover { border-color: #B87333; color: #fff; }
.tp .icon-btn-dark.is-active { color: #fff; background: #B87333; border-color: #B87333; }

/* ═══════════════════════════════════════════════════════════════════════
   3) LAYOUT — 2 SUTUN: Ana okuma alani (orta+ust nav) + Sag kitap listesi
   ═══════════════════════════════════════════════════════════════════════ */
.tp .layout {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: start;
  gap: 16px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 16px;
  overflow: visible;
}
.tp .main-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════════════════
   3.5) UST SURE-NAV BAR (Onceki | Git | Sure dropdown | Ayet | Sonraki)
   ═══════════════════════════════════════════════════════════════════════ */
.tp .sure-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,24,16,.06);
  flex-shrink: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 100px;
  z-index: 20;
}
.tp .sn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2C1810;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.tp .sn-arrow:hover:not(:disabled) {
  border-color: #B87333;
  color: #B87333;
  background: #FBF3DD;
}
.tp .sn-arrow:disabled { opacity: .35; cursor: not-allowed; }
.tp .sn-arrow i { font-size: 11px; color: #B87333; }
.tp .sn-arrow:disabled i { color: #8C7B6B; }

.tp .sn-go {
  padding: 9px 16px;
  background: #2C1810;
  color: #C5A54E;
  border: 0;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: .15s;
}
.tp .sn-go:hover { background: #B87333; color: #fff; }
.tp .sn-go.sn-go-icon {
  padding: 9px 14px;
  font-size: 13px;
  letter-spacing: 0;
}
.tp .sn-go.sn-go-icon i { font-size: 12px; }

.tp .sn-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FBF8F2;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 140px;
  position: relative;
  flex: 0 1 auto;
}
.tp .sn-field:focus-within {
  border-color: #B87333;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,115,51,.10);
}
.tp .sn-label {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #8C7B6B;
  text-transform: none;
  flex-shrink: 0;
}
.tp .sn-select-wrap {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tp .sn-select-value {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #2C1810;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.tp .sn-select-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 14px;
  color: #B87333;
  direction: rtl;
  margin-right: 4px;
}
.tp .sn-select-chev {
  font-size: 10px;
  color: #B87333;
  flex-shrink: 0;
}
.tp .sn-select {
  position: absolute;
  inset: -6px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 12px);
  opacity: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.tp .sn-ayet-input {
  width: 56px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #2C1810;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.tp .sn-ayet-input::-webkit-outer-spin-button,
.tp .sn-ayet-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   3.7) ANA OKUMA ALANI (orta panel — reading)
   ═══════════════════════════════════════════════════════════════════════ */
.tp .center-panel--reading {
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 14px;
  padding: 60px 32px 26px;
  /* Iç scrollbar kaldırıldı — sayfa scroll'u kullanılıyor.
     Tefsir uzun olunca tüm sayfa aşağı kaydırılarak okunabilir.
     !important — .tp .center-panel (overflow: hidden) override etmesin */
  overflow: visible !important;
  flex: 0 0 auto !important;
  box-shadow: 0 1px 3px rgba(44,24,16,.04);
  max-height: none !important;
  min-height: 0;
  height: auto !important;
}
.tp .center-panel--reading::before { display: none; }

/* Ayet bloku */
/* AYET BLOĞU — kompakt + estetik (kullanıcı talebi #2) */
.tp .ayet-block {
  margin: 4px 0 20px;
  padding: 14px 18px 16px;
  background: linear-gradient(180deg, #FFFCF5 0%, #FBF8F2 100%);
  border: 1px solid #E5D9B8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(184,115,51,.04);
}
.tp .ayet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E5D9B8;
}
.tp .ayet-no-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #B87333, #a35f24);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(184,115,51,.25);
  flex-shrink: 0;
}
.tp .ayet-header-text { flex: 1; min-width: 0; line-height: 1.1; }
.tp .ayet-header-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #B87333;
  margin-bottom: 1px;
}
.tp .ayet-header-ref {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #2C1810;
}
.tp .ayet-actions {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.tp .aa-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  background: #fff;
  color: #6E5A38;
  cursor: pointer;
  font-size: 10.5px;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp .aa-btn:hover {
  border-color: #B87333;
  color: #B87333;
  background: #FBF3DD;
}
.tp .aa-btn.is-active {
  background: #B87333;
  color: #fff;
  border-color: #B87333;
}

.tp .ayet-arabic {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 26px;
  line-height: 1.85;
  color: #1A1410;
  direction: rtl;
  text-align: right;
  font-weight: 500;
  padding: 6px 0 10px;
  user-select: text;
  -webkit-user-select: text;
  word-spacing: 3px;
  font-feature-settings: "liga" 1, "calt" 1;
}
.tp .ayet-meal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px dashed #E5D9B8;
}
.tp .ayet-meal-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #B87333;
}
.tp .ayet-meal p {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #2C1810;
  font-style: italic;
  margin: 0;
}

/* Tefsir tam metin alanı */
.tp .tefsir-full {
  padding: 4px 0 12px;
}
.tp .tefsir-full-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid #E8DFD0;
}
.tp .tff-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.tp .tff-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  border: 1px solid rgba(184,115,51,.22);
  background: rgba(184,115,51,.04);
  color: #8B5A2B;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
  line-height: 1.5;
}
.tp .tff-copy i { font-size: 9px; color: #B87333; transition: transform .18s; }
.tp .tff-copy:hover:not(:disabled) {
  border-color: #B87333;
  color: #fff;
  background: linear-gradient(135deg, #C5A54E 0%, #B87333 100%);
  box-shadow: 0 2px 8px rgba(184,115,51,.28);
}
.tp .tff-copy:hover:not(:disabled) i { color: #fff; transform: rotate(-8deg) scale(1.05); }
.tp .tff-copy:active:not(:disabled) { transform: translateY(.5px); }
.tp .tff-copy:disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: grayscale(.4);
}
.tp .tff-copy:focus-visible {
  outline: 2px solid rgba(184,115,51,.4);
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .tp .tff-copy-label { display: none; }
  .tp .tff-copy { padding: 5px 8px; }
}
.tp .tc-toolbar--share { justify-content: flex-end !important; }
.tp .tc-toolbar--share .tc-tools-l { display: none; }
.tp .tff-titles { flex: 1; min-width: 0; }
.tp .tff-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: none;
  color: #B87333;
  margin-bottom: 6px;
}
.tp .tff-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: #2C1810;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
  line-height: 1.2;
}
.tp .tff-author {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6E5A38;
  font-style: italic;
}
.tp .tff-author i { font-size: 10px; color: #B87333; margin-right: 4px; }

.tp .tefsir-full-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #2C1810;
  text-align: justify;
}
.tp .tefsir-full-body p {
  margin: 0 0 14px;
}
.tp .tefsir-full-body p:last-child { margin-bottom: 0; }

/* ─── ARAPÇA TEFSIR GÖVDESİ ───────────────────────────────────────────
   Kitap dili AR ise veya icerik agirlikli olarak Arapca ise:
   - Buyuk font (22px) + yuksek line-height
   - Amiri/UthmanicHafs1 Arapça font
   - RTL yon + saga hizali (justify SOL kenarda kelime kirpilmasi yapiyordu)
   ──────────────────────────────────────────────────────────────────── */
.tp .tefsir-full-body--ar {
  direction: rtl;
  text-align: justify;
  text-justify: inter-word;
  padding-left: 4px;
  padding-right: 4px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.tp .tefsir-full-body--ar p,
.tp .tefsir-full-body p.p-ar {
  font-family: 'Amiri', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Scheherazade New', 'Traditional Arabic', serif;
  /* 2026-05-25: masaüstünde Arapça tefsir okuması rahat olsun diye büyütüldü
     (önce 22px sabit; şimdi clamp ile 24-30px arası, responsive). */
  font-size: clamp(24px, 2vw, 30px);
  line-height: 2.1;
  color: #1A1410;
  direction: rtl;
  /* Justify: satirlar iki kenardan tam dolar, sol kenar bos kalmaz.
     Son satir doga gerege sag-aligned (RTL'de start kenari). */
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  margin: 0 0 18px;
  word-spacing: 0;
  letter-spacing: 0;
  font-feature-settings: "liga" 1, "calt" 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  unicode-bidi: plaintext;
}
/* Son satiri RTL'de dogal akmasi icin */
.tp .tefsir-full-body--ar p {
  text-align-last: right;
}
/* Arapça body'de drop-cap kaldır (Latin Playfair Arapça karakteri kötü render eder) */
.tp .tefsir-full-body--ar p:first-of-type::first-letter,
.tp .tefsir-full-body p.p-ar:first-letter {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  float: none;
  line-height: inherit;
  margin: 0;
}

/* Mixed (TR + AR) body: TR paragraflarda da daha rahat okuma boyutu */
.tp .tefsir-full-body--ar p:not(.p-ar) {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  direction: ltr;
  text-align: left;
}

.tp .tefsir-full-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8C7B6B;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
}
.tp .tefsir-full-empty i {
  display: block;
  font-size: 32px;
  color: #B87333;
  opacity: .5;
  margin-bottom: 12px;
}
.tp .tff-empty-sub {
  font-size: 12px;
  color: #B7A990;
  margin-top: 8px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  letter-spacing: .02em;
}
.tp .tefsir-full-empty .spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 2px solid rgba(184,115,51,.2);
  border-top-color: #B87333;
  border-radius: 50%;
  animation: tpSpin .9s linear infinite;
}

/* Kompakt tefsir kart — sağ panel için (klikle aktif yap) */
.tp .tefsir-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: .15s;
  color: inherit;
}
.tp .tefsir-card-mini:hover {
  border-color: #C5A54E;
  background: #FBF8F2;
}
.tp .tefsir-card-mini.is-active {
  background: linear-gradient(90deg, #FBF3DD 0%, #FBF8F2 100%);
  border-color: #B87333;
  box-shadow: 0 2px 8px rgba(184,115,51,.10);
}
.tp .tcm-title-block {
  flex: 1;
  min-width: 0;
}
.tp .tcm-title {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: #2C1810;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp .tcm-title-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 12px;
  color: #8C5008;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .8;
}
.tp .tff-title-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 18px;
  color: #B87333;
  margin: 4px 0 2px;
  direction: rtl;
  line-height: 1.5;
}
.tp .m-row-title-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 14px;
  color: #8C5008;
  margin-top: 1px;
  direction: rtl;
  opacity: .85;
}
.tp .tefsir-card-mini.is-active .tcm-title { color: #8C5008; }
.tp .tcm-meta {
  font-size: 10.5px;
  color: #8C7B6B;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp .tcm-meta i { color: #B87333; font-size: 9px; }
.tp .tcm-rt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.tp .tcm-check {
  font-size: 12px;
  color: #B87333;
}
.tp .tcm-remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #E8DFD0;
  background: #fff;
  color: #8C7B6B;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .15s;
  padding: 0;
  margin-left: 2px;
}
.tp .tcm-remove:hover {
  background: #fbeceb;
  border-color: #d97373;
  color: #b1322a;
}
.tp .tcm-remove:focus-visible {
  outline: 2px solid #B87333;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   4) SOL PANEL — Sure/Cuz/Hizb
   ═══════════════════════════════════════════════════════════════════════ */
.tp .left-panel {
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44,24,16,.04);
  max-height: calc(100vh - 60px - 32px);
}
.tp .lp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 42px;
  padding: 10px;
  gap: 4px;
  border-bottom: 1px solid #EFE9DC;
  background: #FBF8F2;
}
.tp .lp-tabs button {
  padding: 8px 0;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #8C7B6B;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .02em;
  transition: .15s;
}
.tp .lp-tabs button:hover:not(.on) { background: rgba(184,115,51,.05); color: #B87333; }
.tp .lp-tabs button.on {
  background: #2C1810;
  color: #C5A54E;
}

.tp .lp-search {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid #EFE9DC;
}
.tp .lp-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C7B6B;
  font-size: 11px;
  pointer-events: none;
}
.tp .lp-search input {
  width: 100%;
  padding: 7px 10px 7px 26px;
  border-radius: 7px;
  border: 1px solid #E8DFD0;
  background: #FBF8F2;
  font-family: inherit;
  font-size: 12.5px;
  color: #2C1810;
  outline: none;
}
.tp .lp-search input:focus { border-color: #B87333; background: #fff; }

.tp .lp-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.tp .sura-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .12s;
  text-decoration: none;
  color: inherit;
}
.tp .sura-row:hover { background: #FBF8F2; }
.tp .sura-row.active {
  background: linear-gradient(90deg, #FBF3DD 0%, #FBF8F2 100%);
  border-left-color: #B87333;
}
.tp .sn-no {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: #B87333;
  text-align: center;
}
.tp .sura-row.active .sn-no { color: #2C1810; }
.tp .sn-names { min-width: 0; }
.tp .sn-tr {
  font-size: 13.5px;
  font-weight: 600;
  color: #2C1810;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp .sn-en {
  font-size: 10.5px;
  color: #8C7B6B;
  margin-top: 2px;
  letter-spacing: .02em;
}
.tp .sura-row.active .sn-en { color: #6E5A38; }
.tp .dot { font-size: 7px; color: #B87333; }

/* ═══════════════════════════════════════════════════════════════════════
   5) ORTA PANEL — Mushaf
   ═══════════════════════════════════════════════════════════════════════ */
.tp .center-panel {
  background: #FFFCF5;
  border: 1px solid #E8DFD0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44,24,16,.04);
  position: relative;
  min-height: 540px;
  max-height: calc(100vh - 60px - 32px);
}

.tp .center-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23B87333' stroke-width='.5' opacity='.06'><polygon points='40,8 56,40 40,72 24,40'/><polygon points='8,40 40,24 72,40 40,56'/></g></svg>");
  background-size: 80px;
  pointer-events: none;
  opacity: .8;
}

/* reading-progress kaldirildi (kullanici talebi) */

.tp .mushaf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #EFE9DC;
  position: relative;
  z-index: 1;
  background: rgba(255,252,245,.95);
  flex-wrap: wrap;
  gap: 10px;
}
.tp .mh-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp .mh-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #E8DFD0;
  border-radius: 7px;
  background: #fff;
  color: #6E5A38;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp .mh-icon:hover { color: #B87333; border-color: #B87333; }
.tp .mh-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #2C1810;
}
.tp .mh-title-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 17px;
  color: #B87333;
  margin-left: 6px;
  direction: rtl;
}
.tp .dot-sep {
  color: #C5A54E;
  margin: 0 4px;
}

.tp .mh-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.tp .mh-tool {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6E5A38;
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .12s;
}
.tp .mh-tool:hover { background: #FBF3DD; color: #B87333; }
.tp .mh-tool.is-active { background: #2C1810; color: #C5A54E; }
.tp .mh-div {
  width: 1px;
  height: 18px;
  background: #E8DFD0;
  margin: 0 4px;
}
.tp .mh-aya {
  font-size: 12px;
  color: #2C1810;
  font-weight: 700;
  padding: 0 8px;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
}

.tp .mushaf-page {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* Sure başlığı dekoratif kart */
.tp .surah-banner {
  position: relative;
  text-align: center;
  padding: 26px 60px 28px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #FFFCF5 0%, #FBF3DD 100%);
  border: 1px solid #E5D9B8;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(184,115,51,.06);
  overflow: hidden;
}
.tp .surah-banner::before,
.tp .surah-banner::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 50px;
  background-repeat: repeat-y;
  background-position: center;
  background-size: 50px auto;
  opacity: .55;
  pointer-events: none;
}
.tp .surah-banner::before {
  left: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70' width='50' height='70'><g fill='none' stroke='%23B87333' stroke-width='1.2'><polygon points='25,10 35,20 25,30 15,20'/><circle cx='25' cy='20' r='3' fill='%23B87333'/><polygon points='25,40 35,50 25,60 15,50'/><circle cx='25' cy='50' r='3' fill='%23B87333'/><line x1='25' y1='0' x2='25' y2='8'/><line x1='25' y1='32' x2='25' y2='38'/><line x1='25' y1='62' x2='25' y2='70'/></g></svg>");
}
.tp .surah-banner::after {
  right: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70' width='50' height='70'><g fill='none' stroke='%23B87333' stroke-width='1.2'><polygon points='25,10 35,20 25,30 15,20'/><circle cx='25' cy='20' r='3' fill='%23B87333'/><polygon points='25,40 35,50 25,60 15,50'/><circle cx='25' cy='50' r='3' fill='%23B87333'/><line x1='25' y1='0' x2='25' y2='8'/><line x1='25' y1='32' x2='25' y2='38'/><line x1='25' y1='62' x2='25' y2='70'/></g></svg>");
}
.tp .surah-banner-no {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: none;
  color: #B87333;
  margin-bottom: 10px;
}
.tp .surah-banner-tr {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: #2C1810;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  line-height: 1.1;
}
.tp .surah-banner-ar {
  position: relative;
  z-index: 1;
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 28px;
  color: #B87333;
  direction: rtl;
  line-height: 1.4;
}

.tp .basmala {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 30px;
  text-align: center;
  color: #1A1410;
  direction: rtl;
  padding-bottom: 24px;
  border-bottom: 1px solid #EFE9DC;
  margin-bottom: 24px;
  font-weight: 600;
}

.tp .mushaf-text {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 26px;
  line-height: 2.4;
  color: #1A1410;
  direction: rtl;
  text-align: justify;
  font-weight: 500;
  user-select: text;
  -webkit-user-select: text;
  word-spacing: 4px;
  letter-spacing: 0;
  font-feature-settings: "liga" 1, "calt" 1;
  text-justify: inter-word;
}
.tp .ayah {
  display: inline;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
  border-radius: 6px;
  padding: 2px 4px;
}
.tp .ayah:hover {
  background: rgba(184,115,51,.08);
  box-shadow: inset 0 -1px 0 rgba(184,115,51,.18);
}
.tp .ayah.hl {
  background: linear-gradient(180deg, rgba(197,165,78,.22) 0%, rgba(184,115,51,.14) 100%);
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow:
    inset 0 -2px 0 rgba(184,115,51,.45),
    inset 0  2px 0 rgba(197,165,78,.35),
    0 1px 2px rgba(184,115,51,.10);
  color: #0F0A07;
}
.tp .ayah.hl .ayah-num {
  color: #8C5008;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><polygon points='16,2 22,8 30,8 30,16 22,24 16,30 10,24 2,16 2,8 10,8' fill='rgba(184,115,51,.10)' stroke='%238C5008' stroke-width='1.4'/></svg>");
}
.tp .ayah-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 8px;
  padding: 0;
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 12px;
  color: #B87333;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><polygon points='16,2 22,8 30,8 30,16 22,24 16,30 10,24 2,16 2,8 10,8' fill='none' stroke='%23B87333' stroke-width='1'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: -7px;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  direction: ltr;
}

.tp .mushaf-page-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8C7B6B;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.tp .mushaf-page-empty .spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  border: 2px solid rgba(184,115,51,.2);
  border-top-color: #B87333;
  border-radius: 50%;
  animation: tpSpin .9s linear infinite;
}
@keyframes tpSpin { to { transform: rotate(360deg); } }

.tp .mushaf-foot {
  padding: 12px 20px;
  border-top: 1px solid #EFE9DC;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,252,245,.95);
  position: relative;
  z-index: 1;
}
.tp .pf-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  background: #fff;
  color: #6E5A38;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp .pf-arrow:hover:not(:disabled) { color: #B87333; border-color: #B87333; }
.tp .pf-arrow:disabled { opacity: .35; cursor: not-allowed; }
.tp .pf-progress { flex: 1; }
.tp .pf-label {
  font-size: 11px;
  color: #6E5A38;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: .04em;
  font-weight: 600;
}
.tp .pf-track {
  position: relative;
  height: 4px;
  background: #EFE9DC;
  border-radius: 2px;
  cursor: pointer;
}
.tp .pf-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #B87333, #C5A54E);
  border-radius: 2px;
  transition: width .2s;
}
.tp .pf-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #B87333;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(184,115,51,.4);
  transition: left .2s;
}
.tp .pf-range {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 20px;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   6) SAG PANEL — Tefsir Kartlari
   ═══════════════════════════════════════════════════════════════════════ */
.tp .right-panel {
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44,24,16,.04);
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 106px;
}

/* ═══ RIGHT PANEL TABS (Tefsirler / Yer İmleri) ═══ */
.tp .rp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 8px 0;
  gap: 4px;
  background: #FBF8F2;
  border-bottom: 1px solid #EFE9DC;
  flex-shrink: 0;
}
.tp .rp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: #8C7B6B;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px 7px 0 0;
  border-bottom: 2px solid transparent;
  transition: .15s;
  white-space: nowrap;
}
.tp .rp-tab i { font-size: 12px; }
.tp .rp-tab:hover:not(.on) { background: rgba(184,115,51,.05); color: #B87333; }
.tp .rp-tab.on {
  background: #fff;
  color: #2C1810;
  border-bottom-color: #B87333;
}
.tp .rp-tab-count {
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  border-radius: 100px;
  background: rgba(184,115,51,.12);
  color: #B87333;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.tp .rp-tab.on .rp-tab-count {
  background: #B87333;
  color: #FFF;
}

/* ═══ Yer İmi paneli ═══ */
.tp .rp-bm { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tp .rp-add--ghost {
  padding: 8px 10px !important;
  background: transparent !important;
  color: #8C7B6B !important;
  border: 1px solid #E8DFD0 !important;
}
.tp .rp-add--ghost:hover {
  border-color: #B87333 !important;
  color: #B87333 !important;
  background: rgba(184,115,51,.05) !important;
}
.tp .rp-bm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #EFE9DC;
  background: #fff;
  flex-shrink: 0;
}
.tp .rp-bm-search i { color: #B0998A; font-size: 12px; }
.tp .rp-bm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #2C1810;
  padding: 4px 0;
}
.tp .rp-bm-search input::placeholder { color: #B0998A; }
.tp .rp-bm-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Yer imi satırı — sil butonu için sağ tarafta yer */
.tp .bm-row { position: relative; padding-right: 36px !important; }
.tp .bm-remove {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #B0998A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: .15s;
  flex-shrink: 0;
}
.tp .bm-row:hover .bm-remove { color: #B87333; }
.tp .bm-remove:hover {
  background: rgba(184,115,51,.12);
  color: #8B5A2B;
  transform: translateY(-50%) scale(1.08);
}

/* ═══ MÜFESSİR künye pill butonu — tff-author içinde ═══ */
.tp .tff-author-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 11px 3px 9px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(197,165,78,.10) 0%, rgba(184,115,51,.06) 100%);
  color: #8B5A2B;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  vertical-align: middle;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  box-shadow:
    inset 0 0 0 1px rgba(184,115,51,.22),
    0 1px 2px rgba(184,115,51,.05);
}
.tp .tff-author-info i {
  font-size: 9px;
  color: #B87333;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.tp .tff-author-info:hover {
  background: linear-gradient(135deg, #C5A54E 0%, #B87333 100%);
  color: #FFFCF5;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 6px 16px rgba(184,115,51,.30);
}
.tp .tff-author-info:hover i {
  color: #FFFCF5;
  transform: rotate(-12deg) scale(1.08);
}
.tp .tff-author-info:active {
  transform: translateY(0);
}
.tp .tff-author-info:focus-visible {
  outline: 2px solid rgba(184,115,51,.45);
  outline-offset: 2px;
}
.tp .tff-author-info-label { letter-spacing: .14em; }
@media (max-width: 540px) {
  .tp .tff-author-info {
    padding: 4px 9px;
    margin-left: 6px;
  }
  .tp .tff-author-info-label { display: none; }
  .tp .tff-author-info { gap: 0; }
  .tp .tff-author-info i { font-size: 10px; }
}

/* ═══ MÜFESSİR KÜNYE MODALI ═══ */
.mus-modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 7, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: musModalBackIn .18s ease-out;
}
@keyframes musModalBackIn { from { opacity: 0 } to { opacity: 1 } }
.mus-modal {
  position: relative;
  background: #FFFCF5;
  border: 1px solid #E0D5C8;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 10, 7, .35), inset 0 1px 0 rgba(255,255,255,.5);
  max-width: 500px;
  width: 100%;
  padding: 32px 32px 24px;
  font-family: 'Inter', -apple-system, sans-serif;
  animation: musModalIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes musModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
.mus-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #8C7B6B;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.mus-modal-close:hover { background: rgba(184,115,51,.1); color: #B87333; }
.mus-modal-eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  color: #B87333;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mus-modal-eyebrow::before,
.mus-modal-eyebrow::after {
  content: '';
  flex: 0 0 16px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,115,51,.5), transparent);
}
.mus-modal-eyebrow::before { background: linear-gradient(to left, transparent, rgba(184,115,51,.5), transparent); }
.mus-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #2C1810;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.mus-modal-ar {
  font-family: 'Amiri', 'iar-kuran-hat', serif;
  font-size: 19px;
  color: #8B5A2B;
  margin-bottom: 16px;
  line-height: 1.5;
}
.mus-modal-meta {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: rgba(184,115,51,.04);
  border-left: 2px solid #C5A54E;
  border-radius: 4px;
}
.mus-meta-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.mus-meta-row dt {
  flex: 0 0 60px;
  color: #8C7B6B;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 1px;
}
.mus-meta-row dd {
  flex: 1;
  margin: 0;
  color: #2C1810;
  font-weight: 500;
}
.mus-modal-ozet {
  font-size: 14px;
  line-height: 1.7;
  color: #3d2b1f;
  margin: 0 0 20px;
  font-style: italic;
}
.mus-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C5A54E 0%, #B87333 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .18s ease;
  box-shadow: 0 4px 14px rgba(184,115,51,.28);
  justify-content: center;
  text-align: center;
}
.mus-modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,115,51,.4);
}
.mus-modal-cta i { font-size: 12px; }
.mus-modal-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #EDE7D9;
  font-size: 10.5px;
  color: #9B8B7F;
  text-align: center;
  letter-spacing: .04em;
}
@media (max-width: 540px) {
  .mus-modal { padding: 24px 20px 18px; border-radius: 14px; }
  .mus-modal-title { font-size: 18px; }
  .mus-modal-ar { font-size: 17px; }
}

/* ═══ CUSTOM CONFIRM DIALOG (native confirm() yerine, sitenin paletinde) ═══ */
.tp-confirm-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 7, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: tpConfirmBackIn .18s ease-out;
}
@keyframes tpConfirmBackIn { from { opacity: 0 } to { opacity: 1 } }
.tp-confirm {
  background: #FFFCF5;
  border: 1px solid #E0D5C8;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 10, 7, .35), inset 0 1px 0 rgba(255,255,255,.5);
  max-width: 420px;
  width: 100%;
  padding: 28px 28px 22px;
  text-align: center;
  position: relative;
  font-family: 'Inter', -apple-system, sans-serif;
  animation: tpConfirmIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes tpConfirmIn {
  from { opacity: 0; transform: translateY(8px) scale(.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
.tp-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197,165,78,.18), rgba(184,115,51,.08));
  color: #B87333;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(184,115,51,.18);
}
.tp-confirm.is-danger .tp-confirm-icon {
  background: linear-gradient(135deg, rgba(194,65,12,.16), rgba(154,52,18,.08));
  color: #C2410C;
  box-shadow: 0 4px 16px rgba(194,65,12,.18);
}
.tp-confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #2C1810;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.tp-confirm-msg {
  font-size: 13.5px;
  color: #6B5B4F;
  line-height: 1.6;
  margin: 0 0 22px;
}
.tp-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.tp-confirm-btn {
  flex: 1;
  max-width: 160px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: .01em;
}
.tp-confirm-cancel {
  background: #FFFFFF;
  color: #6B5B4F;
  border-color: #E0D5C8;
}
.tp-confirm-cancel:hover {
  background: #FBF8F2;
  color: #2C1810;
  border-color: #C8B89F;
}
.tp-confirm-ok {
  background: linear-gradient(135deg, #C5A54E, #B87333);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(184,115,51,.32);
}
.tp-confirm-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,115,51,.42);
}
.tp-confirm-ok.is-danger {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 4px 14px rgba(220,38,38,.32);
}
.tp-confirm-ok.is-danger:hover {
  box-shadow: 0 6px 20px rgba(220,38,38,.42);
}
.tp-confirm-ok:focus-visible,
.tp-confirm-cancel:focus-visible {
  outline: 2px solid rgba(184,115,51,.4);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .tp-confirm { padding: 22px 20px 18px; border-radius: 14px; }
  .tp-confirm-title { font-size: 17px; }
  .tp-confirm-msg { font-size: 13px; }
  .tp-confirm-btn { padding: 10px 14px; font-size: 13px; }
}

/* Yer imi boş durum */
.tp .bm-empty {
  padding: 32px 18px;
  text-align: center;
  color: #8C7B6B;
}
.tp .bm-empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184,115,51,.08);
  color: #B87333;
  font-size: 18px;
}
.tp .bm-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: #2C1810;
  margin-bottom: 6px;
}
.tp .bm-empty-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: #8C7B6B;
  max-width: 240px;
  margin: 0 auto;
}
.tp .right-panel .rp-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp .rp-head {
  padding: 14px 16px;
  border-bottom: 1px solid #EFE9DC;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, #FBF8F2, #fff);
  flex-shrink: 0;
}
.tp .rp-title-tr {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 800;
  color: #2C1810;
  display: block;
  letter-spacing: -0.2px;
}
.tp .rp-title-count {
  font-size: 10.5px;
  color: #8C7B6B;
  letter-spacing: .08em;
  text-transform: none;
  margin-top: 3px;
  display: block;
}
.tp .rp-add {
  padding: 7px 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #B87333, #a35f24);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(184,115,51,.25);
  flex-shrink: 0;
  transition: .15s;
}
.tp .rp-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(184,115,51,.35);
}

.tp .rp-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp .tefsir-card {
  border: 1px solid #E8DFD0;
  border-radius: 10px;
  background: #FBF8F2;
  transition: all .15s;
}
.tp .tefsir-card:hover { border-color: #C5A54E; }
.tp .tefsir-card.open {
  background: #fff;
  border-color: #B87333;
  box-shadow: 0 4px 14px rgba(184,115,51,.10);
}
.tp .tc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 10px;
  color: inherit;
}
.tp .tc-title-block {
  flex: 1;
  min-width: 0;
}
.tp .tc-title {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #2C1810;
  line-height: 1.3;
  margin-bottom: 3px;
}
.tp .tc-meta {
  font-size: 11px;
  color: #6E5A38;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tp .tc-meta i { color: #B87333; font-size: 9px; }
.tp .tc-sep { color: #C5A54E; opacity: .6; }
.tp .tc-rt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
/* ═══ Tefsir kategori tag'leri — editoryal pill stil ═══ */
.tp .tc-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
  transition: all .18s ease;
}
.tp .tc-tag::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  background: currentColor;
  opacity: .55;
}

/* Tüm tag'ler site paleti (bakır/altın/sepya/kahve ailesi) içinde — sıcak toprak tonları */

/* Bakır — Türkçe Tefsir (house color) */
.tp .tc-tag.tag-turkcetefsir { background: linear-gradient(135deg, #FBF3DD, #F4E5BC); color: #B87333; border-color: rgba(184,115,51,.28); }

/* Koyu kahve + altın — Arapça Tefsir (premium, inverted) */
.tp .tc-tag.tag-arapcatefsir,
.tp .tc-tag.tag-arapca       { background: linear-gradient(135deg, #2C1810, #4A2D1C); color: #C5A54E; border-color: rgba(197,165,78,.30); }

/* Kiremit / Terra — Ahkâm (sağlam, hukukî) */
.tp .tc-tag.tag-ahkam        { background: linear-gradient(135deg, #F4E0CC, #ECCAB0); color: #A0522D; border-color: rgba(160,82,45,.25); }

/* Sepya / mürekkep — Dirâye (akıl-yorum) */
.tp .tc-tag.tag-diraye,
.tp .tc-tag.tag-dirayet      { background: linear-gradient(135deg, #EFE7D5, #E2D6BB); color: #6E5A38; border-color: rgba(110,90,56,.25); }

/* Papirus / amber-sand — Rivâyet (klasik hadis-rivayet) */
.tp .tc-tag.tag-rivaye,
.tp .tc-tag.tag-rivayet      { background: linear-gradient(135deg, #F5ECD5, #ECD8AC); color: #8B6F3F; border-color: rgba(139,111,63,.26); }

/* Mahogany / koyu kestane — Edebî (edebiyat, klasik kapak) */
.tp .tc-tag.tag-edebi,
.tp .tc-tag.tag-edebî        { background: linear-gradient(135deg, #EAD9CC, #DCC4B0); color: #7A3E1F; border-color: rgba(122,62,31,.25); }

/* Açık altın patina — Tasavvuf / İşârî (manevi, ışıltılı) */
.tp .tc-tag.tag-tasavvuf,
.tp .tc-tag.tag-tasavvufi,
.tp .tc-tag.tag-isari,
.tp .tc-tag.tag-isaritefsir  { background: linear-gradient(135deg, #FBF1D6, #F2DFA8); color: #9A7E2B; border-color: rgba(154,126,43,.26); }

/* Nötr taupe — Diğer */
.tp .tc-tag.tag-diger        { background: linear-gradient(135deg, #ECE8E0, #DDD6CB); color: #6B5B4F; border-color: rgba(107,91,79,.22); }

/* Zeytin patina — Garîb / Me'ânî (klasik filoloji) */
.tp .tc-tag.tag-garibulkuran,
.tp .tc-tag.tag-meani,
.tp .tc-tag.tag-meanî        { background: linear-gradient(135deg, #ECE9D0, #DBD5B0); color: #6B6B3A; border-color: rgba(107,107,58,.25); }

/* Koyu sepya — Kelâmî (felsefî-itikadi) */
.tp .tc-tag.tag-kelami,
.tp .tc-tag.tag-kelamî       { background: linear-gradient(135deg, #E5D9C5, #D4C2A3); color: #6B4A2A; border-color: rgba(107,74,42,.26); }

/* Soluk gül-bakır — Muhtasar */
.tp .tc-tag.tag-muhtasar     { background: linear-gradient(135deg, #F4E8D8, #EBD5BA); color: #946238; border-color: rgba(148,98,56,.24); }

/* Soluk taupe (nötr-ayrıştırıcı) — Şiî Tefsirleri */
.tp .tc-tag.tag-siitefsirleri,
.tp .tc-tag.tag-sii          { background: linear-gradient(135deg, #E6E0D4, #D2C9B7); color: #5C5042; border-color: rgba(92,80,66,.25); }

/* Geriye dönük uyumluluk (eski isimler) — hepsi paletten */
.tp .tc-tag.tag-klasik       { background: linear-gradient(135deg, #FBF3DD, #F4E5BC); color: #6E5A38; border-color: rgba(110,90,56,.20); }
.tp .tc-tag.tag-resmi        { background: linear-gradient(135deg, #ECE9D0, #DBD5B0); color: #6B6B3A; border-color: rgba(107,107,58,.20); }
.tp .tc-tag.tag-modern       { background: linear-gradient(135deg, #FBF1D6, #F2DFA8); color: #9A7E2B; border-color: rgba(154,126,43,.20); }
.tp .tc-tag.tag-fikhi        { background: linear-gradient(135deg, #F4E0CC, #ECCAB0); color: #A0522D; border-color: rgba(160,82,45,.20); }
.tp .tc-tag.tag-mealtefsir   { background: linear-gradient(135deg, #EFE7D5, #E2D6BB); color: #6E5A38; border-color: rgba(110,90,56,.22); }
.tp .tc-tag.tag-tematiktefsir { background: linear-gradient(135deg, #EAD9CC, #DCC4B0); color: #7A3E1F; border-color: rgba(122,62,31,.22); }

/* Fallback — tanımlanmamış kategoriler düz yazı gibi kalmasın */
.tp .tc-tag:not([class*="tag-"]):not(.tag-),
.tp .tc-tag.tag- {
  background: linear-gradient(135deg, #F4EEE3, #E8DFD0);
  color: #6B5B4F;
  border-color: rgba(107,91,79,.20);
}
.tp .tc-chev { font-size: 10px; color: #8C7B6B; }
.tp .tefsir-card.open .tc-chev { color: #B87333; }

.tp .tc-body { padding: 0 14px 14px; }
.tp .tc-ayah-ref {
  font-size: 10.5px;
  color: #B87333;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: none;
  padding: 6px 0 8px;
  border-top: 1px dashed #EFE9DC;
  margin-top: 0;
}
.tp .tc-text {
  font-size: 13px;
  color: #2C1810;
  line-height: 1.7;
  padding: 4px 0 12px;
  text-align: justify;
}
.tp .tc-text p {
  margin: 0 0 10px;
}
.tp .tc-text p:last-child { margin-bottom: 0; }
.tp .tc-text-empty {
  text-align: center;
  font-style: italic;
  color: #8C7B6B;
  padding: 14px 0;
}

.tp .tc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #EFE9DC;
  gap: 10px;
  flex-wrap: wrap;
}
.tp .tc-tools-l, .tp .tc-tools-r {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tp .tc-pill {
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid #E8DFD0;
  background: #fff;
  color: #2C1810;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: .15s;
}
.tp .tc-pill:hover { border-color: #B87333; color: #B87333; }
.tp .tc-pill.primary {
  background: #2C1810;
  color: #C5A54E;
  border-color: #2C1810;
}
.tp .tc-pill.primary:hover {
  background: #B87333;
  color: #fff;
  border-color: #B87333;
}
.tp .share-lbl {
  font-size: 10.5px;
  color: #8C7B6B;
  font-weight: 600;
}
.tp .sh-ic {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.tp .sh-ic:hover { transform: scale(1.05); }
.tp .sh-ic.wa { background: #25D366; }
.tp .sh-ic.tw { background: #0F0A07; }
.tp .sh-ic.fb { background: #1877F2; }

/* ═══════════════════════════════════════════════════════════════════════
   7) MODAL "Tefsir Ekle"
   ═══════════════════════════════════════════════════════════════════════ */
.tp .modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15,10,7,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tp .modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border-top: 4px solid #B87333;
}
.tp .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid #EFE9DC;
  gap: 16px;
}
.tp .m-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 800;
  color: #2C1810;
  letter-spacing: -0.3px;
}
.tp .m-sub {
  font-size: 12px;
  color: #8C7B6B;
  margin-top: 3px;
}
.tp .m-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E8DFD0;
  background: #FBF8F2;
  color: #6E5A38;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp .m-close:hover {
  background: #2C1810;
  color: #fff;
  border-color: #2C1810;
}
.tp .modal-toolbar {
  padding: 12px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #EFE9DC;
  background: #FBF8F2;
  flex-wrap: wrap;
}
.tp .m-search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.tp .m-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C7B6B;
  font-size: 12px;
  pointer-events: none;
}
.tp .m-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: #2C1810;
  outline: none;
}
.tp .m-search input:focus { border-color: #B87333; }
.tp .m-filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #E8DFD0;
  background: #fff;
  color: #6E5A38;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tp .m-all {
  font-size: 12px;
  color: #6E5A38;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.tp .m-all input { accent-color: #B87333; }

.tp .modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  min-height: 200px;
}
.tp .m-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .12s;
}
.tp .m-row:hover { background: #FBF8F2; }
.tp .m-row.on {
  background: #FBF3DD;
  border-color: #E5D9B8;
}
.tp .m-row input {
  width: 16px;
  height: 16px;
  accent-color: #B87333;
  cursor: pointer;
}
.tp .m-row-body {
  flex: 1;
  min-width: 0;
}
.tp .m-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #2C1810;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp .m-row-meta {
  font-size: 11px;
  color: #8C7B6B;
  margin-top: 2px;
}
.tp .m-row-meta i {
  color: #B87333;
  font-size: 9px;
  margin-right: 3px;
}
.tp .m-check {
  font-size: 12px;
  color: #B87333;
  opacity: 0;
  transition: opacity .12s;
}
.tp .m-row.on .m-check { opacity: 1; }

.tp .modal-foot {
  padding: 14px 22px;
  border-top: 1px solid #EFE9DC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FBF8F2;
  flex-wrap: wrap;
  gap: 10px;
}
.tp .m-counter {
  font-size: 12px;
  color: #6E5A38;
}
.tp .m-counter b {
  color: #B87333;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
}
.tp .m-actions {
  display: flex;
  gap: 8px;
}
.tp .m-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
}
.tp .m-btn.ghost {
  background: #fff;
  color: #6E5A38;
  border: 1px solid #E8DFD0;
}
.tp .m-btn.ghost:hover { border-color: #B87333; color: #B87333; }
.tp .m-btn.primary {
  background: linear-gradient(135deg, #B87333, #a35f24);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,115,51,.3);
}
.tp .m-btn.primary:hover {
  box-shadow: 0 3px 12px rgba(184,115,51,.45);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════
   8) FONT MENU POPOVER
   ═══════════════════════════════════════════════════════════════════════ */
.tp .font-popover {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #E8DFD0;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 14px;
  z-index: 80;
}
.tp .font-popover .fp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: none;
  color: #B87333;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #EFE9DC;
}
.tp .font-popover .fp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.tp .fp-btn {
  width: 26px;
  height: 26px;
  background: #FBF8F2;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 700;
  color: #2C1810;
  cursor: pointer;
}
.tp .fp-btn:hover { border-color: #B87333; color: #B87333; }
.tp .fp-row input[type="range"] {
  flex: 1;
  accent-color: #B87333;
}
.tp .fp-row .fp-num {
  font-size: 12px;
  color: #6E5A38;
  min-width: 24px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.tp .fp-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  color: #2C1810;
  cursor: pointer;
  margin-bottom: 4px;
  transition: .15s;
}
.tp .fp-opt:hover { border-color: #B87333; background: #FBF3DD; }
.tp .fp-opt.is-active {
  background: #2C1810;
  color: #C5A54E;
  border-color: #2C1810;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   9) TOAST
   ═══════════════════════════════════════════════════════════════════════ */
.tp__toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  pointer-events: none;
}
.tp__toast {
  background: #2C1810;
  color: #C5A54E;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border-left: 3px solid #B87333;
  opacity: 0;
  transform: translateY(8px);
  transition: .22s ease;
  max-width: 360px;
  pointer-events: auto;
}
.tp__toast.is-visible { opacity: 1; transform: translateY(0); }
.tp__toast--info { background: #2C1810; color: #C5A54E; }
.tp__toast--error { background: #DC2626; color: #fff; border-left-color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   10) WORD TOOLTIP
   ═══════════════════════════════════════════════════════════════════════ */
.tp__word-tooltip {
  position: fixed;
  display: none;
  background: #2C1810;
  color: #C5A54E;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  z-index: 200;
  pointer-events: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.tp__word-tooltip.is-visible { display: inline-flex; }
.tp__word-ar {
  font-family: 'iar-kuran-hat', 'Shaikh Hamdullah Mushaf', 'UthmanicHafs1', 'Amiri', serif;
  font-size: 16px;
  color: #C5A54E;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   11) RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  /* renderLayout() yalnizca 2 alt eleman uretiyor (.main-col + .right-panel);
     3-col grid ortadaki main-col'u 240px'e sikistiriyordu. 2-col'da tutuyoruz. */
  .tp .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
  .tp .topbar-inner { padding: 10px 16px; gap: 16px; }
  .tp .search input { width: 200px; }
}

@media (max-width: 992px) {
  .tp .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 12px;
    gap: 12px;
  }
  .tp .right-panel {
    max-height: 360px;
    position: relative;
    top: 0;
  }
  .tp .sure-nav { padding: 8px 10px; gap: 8px; top: 92px; }
  .tp .sn-arrow span { display: none; }
  .tp .sn-arrow { padding: 9px 10px; }
  .tp .sn-field { min-width: 110px; }
  .tp .center-panel--reading { padding: 48px 18px 20px; }
  .tp .left-panel,
  .tp .right-panel {
    max-height: 420px;
  }
  .tp .left-panel.is-collapsed,
  .tp .right-panel.is-collapsed {
    max-height: 60px;
  }
  .tp .left-panel.is-collapsed .lp-list,
  .tp .left-panel.is-collapsed .lp-search,
  .tp .right-panel.is-collapsed .rp-list {
    display: none;
  }
  .tp .topnav { display: none; }
  .tp .topbar-inner { grid-template-columns: auto auto; gap: 12px; padding: 10px 14px; }
  .tp .search { display: none; }
}

@media (max-width: 700px) {
  .tp { padding-top: 32px; }
  .tp .sure-nav { top: 88px; }
}

@media (max-width: 640px) {
  /* mv-hdr gizli, sadece 32px ia-ident sabit kaliyor */
  .tp { padding-top: 32px; }
  .tp .sure-nav { top: 36px; }
  .tp .topbar-inner { padding: 10px 12px; }
  .tp .filter-btn span { display: none; }
  .tp .filter-btn { padding: 8px; }
  .tp .layout { padding: 8px; gap: 8px; }
  .tp .mushaf-page { padding: 18px 18px; }
  .tp .basmala { font-size: 24px; padding-bottom: 16px; margin-bottom: 16px; }
  .tp .mushaf-text { font-size: 22px; line-height: 2.2; }
  .tp .surah-banner-tr { font-size: 18px; }
  .tp .surah-banner-ar { font-size: 20px; }
  .tp .ayah-num { width: 26px; height: 26px; font-size: 11px; }
  .tp .mh-tools { gap: 0; }
  .tp .mh-tool { width: 26px; height: 26px; }
  .tp .mh-aya { padding: 0 4px; font-size: 11px; }
  .tp .mh-title { font-size: 13px; }
  .tp .mh-title-ar { display: none; }
  .tp .rp-list { padding: 8px; }
  .tp .tc-toolbar { flex-direction: column; align-items: stretch; }
  .tp .tc-tools-l { flex-wrap: wrap; }
  .tp .tc-tools-r { justify-content: space-between; }
  .tp .modal { max-width: calc(100vw - 24px); }
  .tp .modal-toolbar { flex-wrap: wrap; }
  .tp .m-all { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tp *, .tp *::before, .tp *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   12) PRINT
   ═══════════════════════════════════════════════════════════════════════ */
@media print {
  .tp .topbar,
  .tp .left-panel,
  .tp .mushaf-foot,
  .tp .reading-progress,
  .tp .mushaf-head,
  .tp .rp-head,
  .tp .tc-toolbar,
  .hp-bottom-nav,
  .site-footer { display: none !important; }
  .tp .layout { grid-template-columns: 1fr 1fr !important; padding: 0 !important; }
  .tp .center-panel,
  .tp .right-panel {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .tp .center-panel::before { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   13) SEO / VISUALLY-HIDDEN
   ═══════════════════════════════════════════════════════════════════════ */
.tfs-seo-header {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tfs-loading {
  padding: 60px 24px;
  text-align: center;
  color: #8C7B6B;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  background: #F7F3EB;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tfs-loading .tfs-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(184,115,51,.2);
  border-top-color: #B87333;
  border-radius: 50%;
  animation: tpSpin .9s linear infinite;
  margin-bottom: 16px;
}
.tfs-loading-text { font-size: 14px; }
.tfs-skeleton, .tfs-sk-row, .tfs-sk-block { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   14) MOBILE RESPONSIVE — 2026-05-23 (tefsir kategorisi)
   Masaüstü değişmez. mobile-fix-2026.css ile uyumlu.
   - index.html (.tfl-* kitap listesi)
   - oku.html (.tp .* okuma görünümü)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 4.1 Tefsir kitap listesi grid ─────────────────────────────── */
@media (max-width: 1024px) {
  .tfl-grid,
  .tefsir-kitap-grid,
  [class*="tefsir-grid"],
  [class*="kitap-grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .tfl-featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .tfl-grid,
  .tefsir-kitap-grid,
  [class*="tefsir-grid"],
  [class*="kitap-grid"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .tfl-featured-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  /* Kitap kartları padding + tipografi */
  .tfl-card,
  .tefsir-kitap-card,
  [class*="kitap-card"] {
    padding: 14px 16px !important;
  }
  .tfl-card-name {
    font-size: 14px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  .tfl-card-meta {
    font-size: 11px !important;
    white-space: normal !important;
  }
  .tefsir-kitap-card h3 { font-size: 1.15rem !important; }
  .tefsir-kitap-card .yazar,
  [class*="yazar-ad"] { font-size: 0.85rem !important; }

  /* Öne çıkan kartlar — küçük ekranda watermark taşmasın */
  .tfl-featured-card { padding: 16px 16px 14px 20px !important; min-height: 130px !important; }
  .tfl-fc-watermark { font-size: 56px !important; opacity: .04 !important; }
  .tfl-fc-name { font-size: 16px !important; }
  .tfl-fc-ar { font-size: 16px !important; }
}

/* ── 4.2 Tefsir okuma görünümü — 2 panel → stack ───────────────── */
@media (max-width: 900px) {
  /* Layout grid'i tek kolona indir */
  .tp .layout,
  .tefsir-okuma-grid,
  [class*="okuma-layout"],
  [class*="oku-grid"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  /* Sağ panel (tefsirler) — sticky/sabit yükseklik kaldır, akışa al */
  .tp .right-panel,
  .tp .left-panel,
  .ayet-panel,
  .tefsir-panel,
  [class*="ayet-pane"],
  [class*="tefsir-pane"] {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    top: auto !important;
  }

  .tp .center-panel,
  .tp .center-panel--reading {
    padding: 32px 14px 18px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Ayet arapça — okunabilir font + satır yüksekliği */
  .tp .ayet-arabic,
  .ayet-panel .arabic,
  .ayet-pane .ar,
  [class*="ayet-ar"] {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
    line-height: 2.2 !important;
  }
  .tp .ayet-meal p {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  /* Tefsir metni gövdesi — SADECE Türkçe paragraflar
     2026-05-25 fix: Arapça paragrafları (--ar ve p-ar) hariç tut,
     yoksa kullanıcının ayarladığı 22px Arapça büyüklük 16px'e düşüyordu. */
  .tp .tefsir-full-body:not(.tefsir-full-body--ar) p:not(.p-ar),
  .tp .tc-text p,
  .tefsir-panel .tefsir-metin:not(.tefsir-metin--ar),
  [class*="tefsir-metin"]:not([class*="--ar"]),
  [class*="tefsir-text"]:not([class*="--ar"]) {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  /* 2026-05-25 fix v2: Arapça tefsir metni mobilde de OKUNABILIR + masaüstü ile uyumlu büyüklükte.
     Masaüstü clamp 24-30px, mobilde clamp 24-30px (5.5vw küçük ekranda 24, büyük tablet 30). */
  .tp .tefsir-full-body--ar p,
  .tp .tefsir-full-body p.p-ar,
  [class*="tefsir-metin"][class*="--ar"],
  [class*="tefsir-text"][class*="--ar"] {
    font-size: clamp(24px, 6vw, 30px) !important;
    line-height: 2.1 !important;
  }
  .tp .tefsir-full-head { flex-wrap: wrap; gap: 10px; }
  .tp .tff-title { font-size: 15px !important; line-height: 1.3 !important; }
  .tp .tff-author { font-size: 12px !important; }

  /* Sağ panel açılır kart toolbar düzgün dağılsın */
  .tp .rp-tabs { flex-wrap: wrap; }
  .tp .rp-tab { flex: 1 1 auto; min-width: 0; }
}

/* ── 4.3 Ayet sub-bar / sure navigasyonu — yatay scroll ────────── */
@media (max-width: 768px) {
  .tp .sure-nav,
  .ayet-subbar,
  [class*="ayet-nav"],
  [class*="sub-bar"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    scroll-snap-type: x mandatory;
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  /* Scrollbar gizle ama scroll çalışsın */
  .tp .sure-nav::-webkit-scrollbar,
  .ayet-subbar::-webkit-scrollbar { display: none; }
  .tp .sure-nav { scrollbar-width: none; }

  .tp .sn-arrow,
  .tp .sn-go,
  .ayet-subbar button,
  [class*="subbar"] button {
    flex: 0 0 auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    scroll-snap-align: start;
  }

  /* Tefsir kart toolbar (kopyala/paylaş) ergonomi */
  .tp .tff-copy,
  .tp .tff-author-info,
  .tp .tc-pill {
    min-height: 40px;
    padding: 8px 12px !important;
  }
  .tp .aa-btn {
    min-width: 36px;
    min-height: 36px;
  }
}

/* ── 4.4 Tefsir kitap seçici (sn-field / form-control) ─────────── */
@media (max-width: 768px) {
  .tefsir-secici,
  [class*="kitap-secici"],
  [class*="book-selector"] {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .tefsir-secici select,
  .tefsir-secici button {
    width: 100% !important;
    font-size: 16px !important;
    min-height: 44px;
  }

  /* tp namespace içindeki sure/ayet select alanları */
  .tp .sn-field {
    flex: 1 1 130px;
    min-width: 0 !important;
  }
  .tp .sn-select,
  .tp .sn-ayet-input {
    font-size: 16px !important; /* iOS zoom önle */
    min-height: 40px;
  }

  /* Hero arama input — iOS auto-zoom önle */
  .tfl-search input {
    font-size: 16px !important;
  }
}

/* ── 4.5 Notlar / dipnotlar ────────────────────────────────────── */
@media (max-width: 768px) {
  .tefsir-not,
  .tp .tff-eyebrow + .tff-title + .tff-author + p,
  [class*="footnote"] {
    font-size: 0.92rem !important;
    padding: 12px 14px !important;
    border-left-width: 3px;
  }
  /* Tefsir kart altındaki etiket/tag'ler ekrana sığsın */
  .tp .tc-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tp .tc-tag {
    font-size: 9px !important;
    padding: 3px 8px !important;
  }
}

/* ── 4.6 Toolbar/filtreler (kitap listesi) ─────────────────────── */
@media (max-width: 640px) {
  .tfl-toolbar {
    align-items: stretch !important;
  }
  .tfl-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .tfl-filters::-webkit-scrollbar { display: none; }
  .tfl-filters { scrollbar-width: none; }
  .tfl-filter {
    flex: 0 0 auto;
    min-height: 36px;
  }
}

/* ════════════════════════════════════════════════════════════════
   TEFSİR LANDING MOBİL FALLBACK — 2026-05-24
   Hero search krem pill + Hero stats 2×2 + Tüm Tefsirler 2 sütun
   Cascade güvencesi (inline <style> cache miss durumunda)
   .tfl- prefix .tp namespace ile çakışmaz (tefsir/oku vs tefsir/landing)
   NOT: Mevcut .tfl-search input font-size:16px iOS zoom kuralı (satır 2774) korundu.
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .tfl-search {
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  .tfl-search-wrap {
    padding: 4px 4px 4px 14px !important;
    border-radius: 99px !important;
    min-height: 50px !important;
    gap: 6px !important;
    background: rgba(255, 253, 248, 0.94) !important;
    border: 1px solid rgba(197, 165, 78, 0.28) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  }
  .tfl-search input {
    padding: 10px 0 !important;
    font-size: 16px !important;
    color: #2C1810 !important;
    background: transparent !important;
  }
  .tfl-search button,
  .tfl-search button#tflSearchBtn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #C5A54E 0%, #B87333 100%) !important;
    color: #1C1410 !important;
  }
  .tfl-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    max-width: 320px !important;
    margin: 16px auto 22px !important;
    padding: 10px 14px !important;
  }
  .tfl-hero-stat + .tfl-hero-stat::before { display: none !important; }
  .tfl-hero-stat-num { font-size: 22px !important; }
  .tfl-hero-stat-label { font-size: 9.5px !important; }
  .tfl-filters {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #FAF7F2 !important;
  }
  .tfl-filter {
    width: auto !important;
    display: inline-flex !important;
    white-space: nowrap !important;
  }
  #tflGrid,
  .tfl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 6px !important;
    padding: 8px !important;
    margin: 0 !important;
    max-height: clamp(400px, calc(100vh - 320px), 560px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    border: 1px solid #E0D5C8 !important;
    border-radius: 14px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #B87333 transparent !important;
  }
  #tflGrid::-webkit-scrollbar { width: 4px !important; }
  #tflGrid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #B87333 0%, #C5A54E 100%) !important;
    border-radius: 99px !important;
  }
  #tflGrid .tfl-card,
  .tfl-grid .tfl-card {
    padding: 10px !important;
    gap: 8px !important;
    min-height: 56px !important;
    border-radius: 10px !important;
  }
  #tflGrid .tfl-card-icon,
  .tfl-grid .tfl-card-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    font-size: 14px !important;
  }
  #tflGrid .tfl-card-name,
  .tfl-grid .tfl-card-name { font-size: 13px !important; }
  #tflGrid .tfl-card-meta,
  .tfl-grid .tfl-card-meta { font-size: 10.5px !important; }
  #tflGrid .tfl-card-tur,
  .tfl-grid .tfl-card-tur {
    font-size: 8.5px !important;
    padding: 3px 5px !important;
  }
}

@media (max-width: 480px) {
  #tflGrid,
  .tfl-grid {
    gap: 6px 4px !important;
    padding: 6px !important;
    max-height: clamp(360px, calc(100vh - 280px), 520px) !important;
  }
  #tflGrid .tfl-card,
  .tfl-grid .tfl-card {
    padding: 8px !important;
    gap: 6px !important;
    min-height: 52px !important;
  }
}
