
/* OKU – Sûreler ve Okuma Sayfası Tasarım Yenilemesi (yalnız görünüm) */
:root{
  --oku-paper:#ebe7dc;
  --oku-ink:#171512;
  --oku-border:rgba(23,21,18,.72);
  --oku-peach:#e69466;
  --oku-gold:#ccb06b;
  --oku-note:#e8e0c9;
}

#screen-surahs,
#screen-reader{background:var(--oku-paper);}

#screen-surahs .workspace-strip,
#screen-surahs .utility-row{display:none!important;}

#screen-surahs .page-content--surahs,
#screen-reader .verse-list,
#screen-reader .reader-next-wrap,
#screen-reader .reader-toolbar,
#screen-reader .reader-loading,
#screen-surahs .page-hero,
#screen-reader .reader-page-heading,
#screen-reader .reader-hero{max-width:1460px;margin-left:auto;margin-right:auto;}

#screen-surahs .page-header,
#screen-reader .page-header{max-width:1880px;margin:0 auto;padding:18px 18px 0;}
#screen-surahs .page-content--surahs,
#screen-reader .verse-list,
#screen-reader .reader-next-wrap{padding-left:18px;padding-right:18px;}
#screen-reader .reader-toolbar{padding-left:18px;padding-right:18px;}

#screen-surahs .page-hero,
#screen-reader .reader-page-heading{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(340px,1.15fr) minmax(260px,.75fr);
  gap:28px;
  align-items:center;
  min-height:252px;
  padding:22px 24px;
  margin-top:10px;
  border:1px solid var(--oku-border);
  border-radius:28px;
  overflow:hidden;
  background:var(--oku-peach);
  isolation:isolate;
}
#screen-surahs .page-hero::before,
#screen-reader .reader-page-heading::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('assets/ebru/001.webp');
  background-repeat:no-repeat;
  background-size:min(62%,900px) auto;
  background-position:46% 50%;
  opacity:.92;
  z-index:-1;
  pointer-events:none;
}
#screen-surahs .page-hero > div:first-child,
#screen-reader .reader-page-heading > div:first-child{
  align-self:stretch;
  display:flex;
  align-items:stretch;
}
#screen-surahs .page-title,
#screen-reader .reader-page-title{display:none!important;}

.oku-surah-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100%;
  color:var(--oku-ink);
  max-width:390px;
}
.oku-surah-hero-copy__kicker{
  font-family:inherit;
  font-weight:800;
  font-size:1.08rem;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.oku-surah-hero-copy__desc{
  margin:6px 0 0;
  max-width:280px;
  font-size:1rem;
  line-height:1.24;
}
.oku-surah-hero-copy__title{
  margin-top:10px;
  font-size:clamp(2.75rem,5vw,4.4rem);
  line-height:.95;
  font-weight:900;
  letter-spacing:-.04em;
}
.oku-surah-hero-copy__meta{
  display:block;
  margin-top:10px;
  font-size:1rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.oku-surah-hero-copy__arrow{
  margin-top:auto;
  font-size:3.2rem;
  line-height:1;
  font-weight:400;
}

#screen-surahs .last-read-card,
#screen-reader .reader-page-last-read{
  justify-self:end;
  width:min(100%,390px);
  margin:0;
  border:1px solid var(--oku-border);
  border-radius:22px;
  background:rgba(238,233,221,.98);
  box-shadow:none;
  padding:20px 22px;
  min-height:114px;
}
#screen-surahs .last-read-card .aside-label,
#screen-reader .reader-page-last-read .aside-label{font-size:.84rem;letter-spacing:.12em;color:rgba(23,21,18,.76)}
#screen-surahs .last-read-card strong,
#screen-reader .reader-page-last-read strong{font-size:1.45rem;line-height:1.05;}
#screen-surahs .last-read-card__ref,
#screen-reader .last-read-card__ref{font-size:2rem;font-weight:800;line-height:1;}
#screen-surahs .last-read-card button,
#screen-reader #readerPageLastReadButton{
  border:none;background:none;padding:0;color:var(--oku-ink);font-weight:700;
}

#screen-surahs .surah-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  padding-top:12px;
  padding-bottom:28px;
}
#screen-surahs .surah-card{
  position:relative;
  display:block;
  min-height:184px;
  padding:18px 18px 20px;
  border:1px solid var(--oku-border);
  border-radius:24px;
  background:var(--oku-paper);
  overflow:hidden;
  color:var(--oku-ink);
  box-shadow:none;
}
#screen-surahs .surah-card__open{position:absolute;inset:0;border:none;background:transparent;z-index:1;cursor:pointer}
#screen-surahs .surah-card__index,
#screen-reader .reader-surah-card__index{
  position:relative;z-index:2;display:block;font-size:1.05rem;font-weight:700;letter-spacing:.02em;
}
#screen-surahs .surah-card__name{
  position:relative;z-index:2;display:block;margin-top:2px;
  font-size:clamp(2.15rem,3.4vw,3.35rem);line-height:.92;font-weight:900;letter-spacing:-.04em;
  max-width:56%;
}
#screen-surahs .surah-card__meta{position:absolute;top:18px;right:18px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:0}
#screen-surahs .surah-card__count,
#screen-reader .reader-surah-card__count{
  display:block;text-align:right;font-size:1.1rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
#screen-surahs .surah-card__count::after,
#screen-reader .reader-surah-card__count::after{
  content:attr(data-count-label);display:block;font-size:.92em;letter-spacing:.08em;font-weight:600;
}
#screen-surahs .surah-card__arrow{
  position:absolute;left:18px;bottom:11px;z-index:2;font-size:3.5rem;line-height:1;font-weight:300;
}
#screen-surahs .surah-card__ebru{
  position:absolute;right:10px;bottom:-4px;z-index:0;width:min(46%,210px);height:auto;object-fit:contain;pointer-events:none;
}
#screen-surahs .quran-audio-control--card{
  position:absolute;right:22px;bottom:18px;z-index:3;display:flex;align-items:center;
}
#screen-surahs .quran-audio-trigger,
#screen-reader .quran-audio-control--reader .quran-audio-trigger{
  width:50px;height:50px;border:none;background:transparent;padding:0;box-shadow:none;
}
#screen-surahs .quran-audio-trigger img,
#screen-reader .quran-audio-trigger img{width:100%;height:100%;object-fit:contain;filter:grayscale(1) brightness(.22)}

#screen-reader .reader-page-heading{margin-bottom:12px;}
#screen-reader .reader-hero--card{padding:0 18px;margin-bottom:14px;}
#screen-reader .reader-surah-card{
  position:relative;min-height:262px;padding:18px 18px 22px;border:1px solid var(--oku-border);border-radius:26px;background:var(--oku-paper);overflow:hidden;
}
#screen-reader #readerSurahName{
  margin:4px 0 0;font-size:clamp(3rem,6vw,5.4rem);line-height:.9;font-weight:900;letter-spacing:-.05em;max-width:50%;
}
#screen-reader .reader-surah-card__meta{position:absolute;top:20px;right:18px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:18px}
#screen-reader .reader-surah-card__resume{display:none!important}
#screen-reader .reader-surah-card__back{position:absolute;left:18px;bottom:14px;font-size:4.1rem;line-height:1;z-index:2}
#screen-reader .reader-surah-card__ebru{position:absolute;right:18px;bottom:-8px;width:min(42%,340px);height:auto;pointer-events:none}
#screen-reader .quran-audio-control--reader{display:flex;flex-direction:column;align-items:flex-end;gap:10px}

#screen-reader .reader-toolbar{margin-top:6px;margin-bottom:18px;}
#screen-reader .reader-top-actions{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px;
}
#screen-reader .reader-back-link{border:none;background:none;padding:0;font-size:1rem;font-weight:700;color:rgba(23,21,18,.88)}
#screen-reader .reader-back-link__arrow{font-size:2rem;line-height:1;display:inline-block;vertical-align:-4px;margin-right:10px}
#screen-reader .reader-top-actions__secondary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#screen-reader .toggle-pill,
#screen-reader .text-action{
  border:1px solid rgba(23,21,18,.48);border-radius:18px;background:transparent;min-height:50px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;color:var(--oku-ink);
}
#screen-reader .toggle-pill input{position:absolute;opacity:0;pointer-events:none}
#screen-reader .toggle-pill span{display:inline-block}
#screen-reader .surah-reading-progress{height:10px;border-radius:999px;background:rgba(188,171,136,.26);overflow:hidden}
#screen-reader .surah-reading-progress i{display:block;height:100%;background:var(--oku-gold);border-radius:999px}
#screen-reader .surah-reading-progress__label{display:block;text-align:right;margin-top:8px;font-weight:700;color:rgba(23,21,18,.8)}

#screen-reader .reader-loading{padding:0 18px 12px;max-width:1460px;margin:0 auto;font-weight:700;color:rgba(23,21,18,.72)}
#screen-reader .verse-list{padding-bottom:20px;}
#screen-reader .verse{
  position:relative;
  margin:0 0 16px;
  padding:22px 24px 28px;
  border:1px solid var(--oku-border);
  border-radius:32px;
  background:rgba(239,235,223,.96);
}
#screen-reader .verse-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:28px}
#screen-reader .verse-ref--button{
  border:none;background:none;padding:0;font-size:1.18rem;font-weight:700;color:rgba(23,21,18,.82)
}
#screen-reader .verse-actions{display:flex;gap:8px}
#screen-reader .mini-action{
  width:42px;height:42px;border:1px solid rgba(23,21,18,.32);border-radius:999px;background:transparent;color:rgba(23,21,18,.78)
}
#screen-reader .verse-arabic{
  margin:8px 0 28px auto;
  max-width:min(78%,900px);
  text-align:right;
  font-size:clamp(2.65rem,4vw,4.3rem);
  line-height:1.78;
  color:rgba(23,21,18,.76);
}
#screen-reader .verse-translation{
  margin:0;
  padding-bottom:18px;
  border-bottom:1px solid rgba(23,21,18,.18);
  font-size:2rem;
  line-height:1.35;
  font-weight:600;
  color:rgba(23,21,18,.92);
}
#screen-reader .reader-next{border:1px solid var(--oku-border);background:transparent;border-radius:20px;padding:18px 22px;min-width:260px}

#quranStickyPlayer.quran-sticky-player,
.quran-sticky-player{
  width:min(720px,calc(100vw - 32px));
  left:50%;right:auto;transform:translateX(-50%);
  bottom:22px;
  border-radius:18px;
  border:1px solid rgba(204,176,107,.35);
  background:#2f271b;
  box-shadow:none;
}
.quran-sticky-player__button{border-color:rgba(204,176,107,.48)!important;color:#dbc178!important}
.quran-sticky-player__progress{background:rgba(214,193,140,.18)!important}
.quran-sticky-player__progress span{background:#d1b56e!important}

@media (max-width:1200px){
  #screen-surahs .surah-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #screen-surahs .page-hero,
  #screen-reader .reader-page-heading{grid-template-columns:1fr;}
  #screen-surahs .last-read-card,
  #screen-reader .reader-page-last-read{justify-self:start;}
}
@media (max-width:780px){
  #screen-surahs .page-header,
  #screen-reader .page-header,
  #screen-surahs .page-content--surahs,
  #screen-reader .verse-list,
  #screen-reader .reader-next-wrap,
  #screen-reader .reader-toolbar,
  #screen-reader .reader-hero--card{padding-left:12px;padding-right:12px;}
  #screen-surahs .page-hero,
  #screen-reader .reader-page-heading{padding:16px 16px 18px;min-height:220px;border-radius:24px;gap:18px}
  #screen-surahs .page-hero::before,
  #screen-reader .reader-page-heading::before{background-size:82% auto;background-position:50% 58%;opacity:.82}
  #screen-surahs .surah-grid{grid-template-columns:1fr;gap:12px}
  #screen-surahs .surah-card{min-height:154px;border-radius:22px}
  #screen-surahs .surah-card__name{max-width:56%;font-size:3rem}
  #screen-surahs .surah-card__ebru{width:min(44%,160px)}
  #screen-reader .reader-surah-card{min-height:220px;border-radius:24px}
  #screen-reader #readerSurahName{max-width:56%;font-size:4rem}
  #screen-reader .reader-surah-card__ebru{width:min(42%,200px)}
  #screen-reader .verse{padding:18px 18px 22px;border-radius:26px}
  #screen-reader .verse-top{margin-bottom:20px}
  #screen-reader .verse-arabic{max-width:100%;font-size:2.15rem;line-height:1.7}
  #screen-reader .verse-translation{font-size:1.3rem}
  .quran-sticky-player,#quranStickyPlayer.quran-sticky-player{width:calc(100vw - 24px);bottom:14px}
}


/* === OKU surah/reader fidelity fixes v2 === */
#screen-surahs .page-header,
#screen-reader .page-header,
#screen-surahs .page-hero,
#screen-reader .reader-page-heading,
#screen-surahs .page-content,
#screen-reader .reader-hero,
#screen-reader #verseList,
#screen-reader .reader-next-wrap,
#screen-reader .quran-sticky-player,
#screen-reader .reader-loading,
#screen-reader .quran-sura-share-box,
#screen-reader .verse-context-panel,
#screen-reader .reader-toolbar{
  width:min(100% - 22px, 1720px)!important;
  max-width:1720px!important;
}
#screen-surahs .page-header,
#screen-reader .page-header{padding-inline:0!important;}
#screen-surahs .page-hero,
#screen-reader .reader-page-heading{
  position:relative!important;
  overflow:hidden!important;
  min-height:286px!important;
  padding:18px 18px 18px 18px!important;
  margin-top:28px!important;
  border-radius:32px!important;
  background-size:74% auto!important;
  background-position:66% 44%!important;
}
#screen-surahs .page-hero::before,
#screen-reader .reader-page-heading::before{
  border-radius:32px!important;
}
#screen-surahs .page-hero > div:first-child,
#screen-reader .reader-page-heading > div:first-child{
  align-self:stretch!important;
  display:flex!important;
  align-items:stretch!important;
}
.oku-surah-hero-copy{
  min-height:100%!important;
  width:min(390px,100%)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:2px 0 0!important;
}
.oku-surah-hero-copy__kicker{
  font-size:22px!important;
  line-height:1!important;
  letter-spacing:-0.03em!important;
}
.oku-surah-hero-copy__desc{
  max-width:240px!important;
  font-size:13px!important;
  line-height:1.18!important;
  letter-spacing:-0.02em!important;
  margin:10px 0 20px!important;
}
.oku-surah-hero-copy__title{
  font-size:62px!important;
  line-height:0.9!important;
  letter-spacing:-0.055em!important;
  margin:0 0 10px!important;
}
.oku-surah-hero-copy__meta{
  font-size:14px!important;
  letter-spacing:0.08em!important;
}
.oku-surah-hero-copy__arrow{
  font-size:52px!important;
  line-height:0.75!important;
}
#screen-surahs .last-read-card,
#screen-reader .reader-page-last-read{
  width:min(432px,100%)!important;
  min-height:112px!important;
  border-radius:26px!important;
  padding:16px 24px!important;
  gap:18px!important;
  align-self:center!important;
  justify-self:end!important;
  margin-right:10px!important;
}
#screen-surahs .last-read-card__copy,
#screen-reader .reader-page-last-read .last-read-card__copy{gap:8px!important;}
#screen-surahs .last-read-card .aside-label,
#screen-reader .reader-page-last-read .aside-label{
  font-size:13px!important;
  letter-spacing:0.1em!important;
}
#screen-surahs .last-read-card strong,
#screen-reader .reader-page-last-read strong{
  font-size:32px!important;
  line-height:0.95!important;
  letter-spacing:-0.05em!important;
}
#screen-surahs .last-read-card__ref,
#screen-reader .reader-page-last-read .last-read-card__ref{
  font-size:24px!important;
  letter-spacing:-0.04em!important;
}
#screen-surahs .last-read-card__action button,
#screen-reader .reader-page-last-read .last-read-card__action button{
  font-size:15px!important;
  letter-spacing:0.02em!important;
}
#screen-surahs .oku-surah-page-share{
  position:absolute!important;
  top:12px!important;
  right:16px!important;
  z-index:6!important;
  min-height:54px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  border:1.5px solid rgba(38,32,28,.34)!important;
  background:#f5efde!important;
  color:#26201c!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  font:700 13px/1 'JetBrains Mono Local', monospace!important;
  letter-spacing:0.06em!important;
  box-shadow:0 1px 0 rgba(255,255,255,.72) inset!important;
}
#screen-surahs .oku-surah-page-share:hover,
#screen-surahs .oku-surah-page-share:focus-visible{
  background:#fff7e9!important;
}
#screen-surahs .surah-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
#screen-surahs .surah-card{
  min-height:174px!important;
  padding:16px 18px 18px!important;
  border-radius:28px!important;
}
#screen-surahs .surah-card__index{
  left:18px!important; top:16px!important; font-size:19px!important;
}
#screen-surahs .surah-card__name{
  left:42px!important; top:18px!important;
  font-size:65px!important;
  line-height:0.9!important;
  letter-spacing:-0.065em!important;
  max-width:54%!important;
}
#screen-surahs .surah-card__count,
#screen-reader .reader-surah-card__count{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:8px!important;
}
#screen-surahs .surah-card__count::after,
#screen-reader .reader-surah-card__count::after{
  content:attr(data-count-label)!important;
  display:inline!important;
  margin:0!important;
  font-size:1em!important;
  letter-spacing:0.08em!important;
}
#screen-surahs .surah-card__count{
  right:18px!important; top:18px!important;
  font-size:22px!important;
  line-height:1!important;
}
#screen-surahs .surah-card__arrow{
  left:18px!important; bottom:18px!important;
  font-size:56px!important;
  line-height:1!important;
}
#screen-surahs .surah-card .quran-audio-control{
  left:70px!important; right:auto!important; bottom:20px!important;
  transform:none!important;
}
#screen-surahs .surah-card__ebru{
  right:0!important; bottom:0!important;
  width:min(48%,260px)!important;
  max-width:260px!important;
}
#screen-reader .reader-hero{
  width:min(100% - 22px, 1720px)!important;
  margin:12px auto 0!important;
  padding:0!important;
  background:transparent!important;
  border:none!important;
}
#screen-reader .reader-surah-card{
  min-height:304px!important;
  padding:22px 26px 18px!important;
  border-radius:32px!important;
}
#screen-reader .reader-surah-card__index{font-size:19px!important; left:24px!important; top:18px!important;}
#screen-reader .reader-surah-card h2{
  margin:18px 0 0 38px!important;
  font-size:72px!important;
  line-height:0.9!important;
  letter-spacing:-0.065em!important;
  max-width:58%!important;
}
#screen-reader .reader-surah-card__meta{
  right:26px!important; top:18px!important; gap:18px!important;
}
#screen-reader .reader-surah-card__resume{display:none!important;}
#screen-reader .reader-surah-card__count{
  font-size:24px!important;
  line-height:1!important;
}
#screen-reader .quran-audio-control--reader{
  position:absolute!important;
  right:24px!important;
  top:84px!important;
}
#screen-reader .reader-surah-card__back{
  left:22px!important; bottom:16px!important; font-size:68px!important;
}
#screen-reader .reader-surah-card__ebru{
  right:0!important; bottom:0!important; width:min(44%,520px)!important;
}
#screen-reader .reader-toolbar{
  width:100%!important;
  max-width:none!important;
  margin:16px auto 0!important;
  padding:0!important;
}
#screen-reader .reader-top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}
#screen-reader .reader-top-actions__secondary{
  margin-left:auto!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
#screen-reader .surah-reading-progress{
  margin-top:14px!important;
}
#screen-reader .surah-reading-progress__label{
  margin-top:10px!important;
  text-align:right!important;
  width:100%!important;
}
#screen-reader #verseList{
  margin-top:16px!important;
}
#screen-reader .verse{
  border-radius:30px!important;
  padding:18px 28px 28px!important;
}
#screen-reader .verse-body{
  gap:28px!important;
}
#screen-reader .verse-body__translation{
  font-size:18px!important;
  line-height:1.45!important;
}
#screen-reader .quran-sticky-player{
  margin:34px auto 0!important;
  width:min(100% - 22px, 1080px)!important;
}
@media (max-width: 1080px){
  #screen-surahs .surah-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #screen-surahs .surah-card__name{font-size:54px!important;}
  #screen-reader .reader-surah-card h2{font-size:60px!important;}
}
@media (max-width: 760px){
  #screen-surahs .page-hero,
  #screen-reader .reader-page-heading{margin-top:60px!important; min-height:auto!important; background-size:110% auto!important; background-position:center bottom!important;}
  #screen-surahs .oku-surah-page-share{top:10px!important; right:10px!important; min-height:38px!important; font-size:11px!important;}
  #screen-surahs .last-read-card,
  #screen-reader .reader-page-last-read{margin-right:0!important; width:100%!important;}
  #screen-surahs .surah-grid{grid-template-columns:1fr!important;}
  #screen-surahs .surah-card{min-height:148px!important;}
  #screen-surahs .surah-card__name{font-size:46px!important; max-width:58%!important;}
  #screen-reader .reader-surah-card h2{font-size:46px!important; max-width:62%!important;}
  #screen-reader .reader-top-actions{align-items:flex-start!important;}
}

/* Ensure cover and controls preserve the reference composition. */
#screen-surahs .page-hero.page-hero--split,#screen-reader .reader-page-heading.page-hero{background-color:#eb9162!important;isolation:isolate!important;}
#screen-surahs .page-hero::before,#screen-reader .reader-page-heading::before{background-image:url("assets/ebru/001.webp")!important;z-index:-1!important;opacity:1!important;}
#screen-surahs .last-read-card,#screen-reader .reader-page-last-read{z-index:2!important;}
#screen-surahs .oku-surah-page-share{z-index:4!important;}
#screen-surahs .surah-card__open{z-index:1!important;}
