@font-face { font-family: 'Scheherazade New'; src: url(vendor/fonts/scheherazade-new-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url(vendor/fonts/amiri-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(vendor/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(vendor/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Inter'; src: url(vendor/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(vendor/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Inter'; src: url(vendor/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --surface-2: #efeadc;
  --text: #1d2521;
  --muted: #5d6a63;
  --line: #e2dccb;
  --accent: #1f6b52;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe6;
  --gold: #b0852b;
  --gold-soft: #f6ebcf;
  --glow: 0 0 0 2px rgba(31, 107, 82, 0.35), 0 8px 28px rgba(31, 107, 82, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.04);
  --danger: #a33a2c;
  --radius: 16px;
  --ar-font: 'Scheherazade New', 'Amiri Quran', 'Amiri', serif;
  --ui-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --player-h: 215px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1a17; --surface: #16231f; --surface-2: #1d2d28; --text: #e9efe9; --muted: #9fb0a7; --line: #2a3c35;
    --accent: #4fbf94; --accent-ink: #062117; --accent-soft: #1d3a30; --gold: #d8b464; --gold-soft: #3a3120;
    --glow: 0 0 0 2px rgba(79, 191, 148, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0,0,0,.3); --danger: #ff8a78;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1a17; --surface: #16231f; --surface-2: #1d2d28; --text: #e9efe9; --muted: #9fb0a7; --line: #2a3c35;
  --accent: #4fbf94; --accent-ink: #062117; --accent-soft: #1d3a30; --gold: #d8b464; --gold-soft: #3a3120;
  --glow: 0 0 0 2px rgba(79, 191, 148, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4); --shadow: 0 1px 2px rgba(0,0,0,.3); --danger: #ff8a78;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui-font); font-size: 16px; line-height: 1.5; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: default; }
input, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type='range'] { padding: 0; border: 0; background: transparent; accent-color: var(--accent); min-height: 28px; }
input[type='checkbox'] { width: 20px; min-height: 20px; accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { max-width: 820px; margin: 0 auto; padding: 0 16px calc(var(--player-h) + 24px); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); margin: 0 -16px; padding: 10px 16px 10px; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: 'Amiri', serif; font-size: 24px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.icon-btn:hover { background: var(--surface-2); }
.font-ctrl { display: flex; background: var(--surface-2); border-radius: 12px; }
.font-ctrl button { width: 36px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.nav-pill { margin-top: 8px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 44px; }
.nav-pill span { font-weight: 600; }
.nav-pill small { margin-left: auto; color: var(--muted); }

/* Daily */
.daily { margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.resume { display: flex; align-items: center; gap: 12px; }
.resume-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.resume-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.resume-text small, .resume-text span { color: var(--muted); font-size: 13px; }
.today { margin-top: 12px; }
.today-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); gap: 8px; }
.today-row strong { color: var(--text); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; transition: width .4s; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }

/* Reader */
.surah-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 4px 8px; }
.surah-title h1 { margin: 0; font-size: 22px; }
.surah-title p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.surah-ar { font-family: 'Amiri', serif; font-size: 26px; color: var(--gold); white-space: nowrap; }
.basmala { text-align: center; font-family: var(--ar-font); font-size: calc(30px * var(--ar-scale, 1)); margin: 10px 0 18px; color: var(--text); border-radius: 12px; padding: 6px; transition: background .3s; }
.basmala.active { background: var(--accent-soft); }

.page-divider { display: flex; justify-content: center; gap: 14px; color: var(--muted); font-size: 12.5px; margin: 20px 0 10px; align-items: center; }
.page-divider::before, .page-divider::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }

.ayah { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 10px 0; transition: box-shadow .35s, border-color .35s, background .35s; scroll-margin: 140px 0 calc(var(--player-h) + 20px); }
.ayah.active { border-color: transparent; box-shadow: var(--glow); }
.ayah.active.phase-tr .tr { background: var(--accent-soft); }
.ayah.active.phase-ar .ar { background: var(--accent-soft); }
.ayah-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ayah-no { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.ayah-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); }
.ar { font-family: var(--ar-font); font-size: calc(30px * var(--ar-scale, 1)); line-height: 2.1; text-align: right; margin: 8px 0 6px; padding: 2px 8px; border-radius: 12px; cursor: pointer; transition: background .35s; word-spacing: 2px; }
.ayah-end { font-size: .8em; color: var(--gold); display: inline-block; padding: 0 6px; border: 1px solid var(--gold); border-radius: 50%; line-height: 1.4; margin-inline-start: 4px; }
.tr { margin: 0; padding: 8px 10px; border-radius: 12px; font-size: 16.5px; line-height: 1.65; cursor: pointer; transition: background .35s; }
.tr-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.tefsir { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.tefsir p { margin: 10px 2px 4px; line-height: 1.7; }
.tefsir .src { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs.small button { min-height: 44px; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 4px; }
.tabs.small button small { font-weight: 500; font-size: 11px; opacity: .8; }
.tefsir-body { position: relative; }
.tefsir-body.clamped { max-height: 340px; overflow: hidden; }
.tefsir-body.clamped::after { content: ''; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--surface)); }
.tefsir .muted { color: var(--muted); }
.tefsir .range { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 0; }
.tefsir .chip { margin: 6px 0; }
.tefsir .src { display: block; }

.surah-nav { display: flex; justify-content: space-between; gap: 10px; margin: 24px 0; }

/* Player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 0 16px calc(10px + env(safe-area-inset-bottom)); }
.player-msg { max-width: 820px; margin: 8px auto 0; font-size: 13px; background: var(--gold-soft); border-radius: 10px; padding: 6px 10px; }
.player-progress { max-width: 820px; margin: 0 auto; }
.player-progress input { width: 100%; }
.player-inner { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'info ctrls' 'extra extra'; gap: 6px 10px; align-items: center; }
.player-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.player-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info .time { font-variant-numeric: tabular-nums; font-size: 11.5px; }
.player-ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 4px; }
.ctl { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.ctl:hover { background: var(--surface-2); }
.ctl.play { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.ctl.play:hover { background: var(--accent); filter: brightness(1.05); }
.player-extra { grid-area: extra; display: flex; gap: 8px; align-items: center; }
.repeat { display: flex; flex: 1; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.repeat button { flex: 1; min-height: 40px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.repeat button.active { background: var(--accent); color: var(--accent-ink); }
.ctl.export { display: flex; gap: 6px; padding: 0 14px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  :root { --player-h: 150px; }
  .player-inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: 'info ctrls extra'; }
  .player-extra { justify-content: flex-end; }
  .repeat { flex: none; }
  .repeat button { min-width: 44px; }
  .ar { font-size: calc(34px * var(--ar-scale, 1)); }
}
@media (max-width: 420px) {
  .font-ctrl { display: none; }
  .ctl.export span { display: none; }
}

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } .modal { border-radius: 20px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head .tabs { flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.nav-modal { display: flex; flex-direction: column; height: 88vh; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--bg); }
.search input { border: 0; background: transparent; padding-left: 0; }
.search input:focus-visible { outline: none; }
.surah-list { list-style: none; margin: 10px 0 0; padding: 0; overflow: auto; flex: 1; }
.surah-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-align: left; min-height: 56px; }
.surah-list button:hover, .surah-list button.current { background: var(--surface-2); }
.surah-list .num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.surah-list .names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.surah-list .names small { color: var(--muted); font-size: 12.5px; }
.surah-list .ar { font-family: 'Amiri', serif; font-size: 20px; line-height: 1.4; margin: 0; padding: 0; color: var(--gold); cursor: inherit; }
.surah-list .empty { padding: 20px; text-align: center; color: var(--muted); }
.grid { display: grid; gap: 8px; overflow: auto; }
.juz-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.juz-grid button { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-height: 60px; }
.juz-grid small { color: var(--muted); font-size: 12.5px; }
.form-block { display: flex; flex-direction: column; gap: 8px; }
.form-block > label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.form-block .check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.row { display: flex; gap: 8px; align-items: center; }
.hint { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button { min-width: 52px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btns button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.seg-btns button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.export-progress { margin-top: 14px; }
.error { color: var(--danger); font-size: 14px; }
.success { color: var(--accent); font-size: 14px; }
.about { margin-top: 14px; padding: 12px; background: var(--surface-2); border-radius: 12px; font-size: 13.5px; }
.about p { margin: 4px 0; }
.tefsir-meal { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; line-height: 1.65; }
.tefsir-meal span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tefsir-intro { margin: 8px 0; }
.intro-body { max-height: 320px; overflow: auto; padding: 4px 10px; background: var(--surface-2); border-radius: 10px; margin-top: 6px; }

/* ---- SOP sürümü ekleri ---- */
.chunk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 4px 0; transition: box-shadow .35s, border-color .35s; scroll-margin: 140px 0 calc(var(--player-h) + 20px); }
.chunk.active-verse { border-color: transparent; box-shadow: 0 0 0 2px rgba(176, 133, 43, .55), 0 0 26px rgba(31, 107, 82, .25); }
.chunk.active-verse .tr { background: var(--accent-soft); }
.chunk.active-verse .verse.now .ar { background: var(--accent-soft); }
.chunk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px 0; }
.merged-badge { font-size: 12px; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 99px; }
.verse { padding: 8px 14px 12px; border-top: 1px dashed var(--line); }
.verse:first-of-type { border-top: 0; }
.verse .ayah { border: 0; margin: 0; padding: 0; background: none; box-shadow: none; }
.words { display: flex; direction: rtl; flex-wrap: wrap; flex-direction: row; justify-content: flex-start; gap: 6px 4px; margin: 4px 0 8px; }
.word { display: flex; flex-direction: column; align-items: center; padding: 4px 6px; border-radius: 10px; background: var(--surface-2); min-width: 48px; }
.word .w-ar { font-family: var(--ar-font); font-size: calc(22px * var(--ar-scale, 1)); line-height: 1.6; direction: rtl; }
.word .w-tr { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.25; max-width: 110px; direction: ltr; unicode-bidi: isolate; }
.word { max-width: 100%; }
.word .w-ar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.word-group .w-tr { max-width: 220px; }
.word-unverified .w-tr { font-style: italic; }
.archive-access { max-width: 740px; margin: 10px auto; padding: 0 16px; }
.archive-access a { display: block; text-align: center; text-decoration: none; font-size: 13px; white-space: normal; }
.loop-controls { max-width: 820px; margin: 6px auto 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.loop-controls #loopBtn { font-size: 12px; min-height: 36px; }
.loop-controls #loopBtn[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
.loop-forever,.loop-count { display: inline-flex; gap: 5px; align-items: center; }
.loop-forever input { margin: 0; }
.loop-count input { width: 65px; min-height: 36px; padding: 4px; font-size: 12px; }
.loop-count input:disabled { opacity: .45; }
.navigation-target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.meal-head { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-top:12px; padding:0 8px; }
.voice-picker { margin:12px auto; padding:14px 18px; max-width:860px; border:1px solid var(--line); border-radius:14px; }
.voice-picker>label { display:block; font-weight:600; margin-bottom:8px; }
.voice-row { display:flex; gap:8px; align-items:center; }
.voice-row select { min-width:0; flex:1; width:100%; padding:12px 8px; border-radius:8px; background:var(--surface); color:var(--text); border:1px solid var(--line); }
.voice-picker>small { display:block; margin-top:8px; line-height:1.5; color:var(--muted); }
.meal-source { color:var(--accent); text-align:left; font-size:12px; font-weight:600; min-height:40px; }
.meal-head>.chip { flex:none; }
.meal-open:hover { background:var(--accent-soft); }
.meal-alternatives { margin:10px 0; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--surface-2); }
.meal-panel-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.meal-panel-head strong { font-size:14px; }
.meal-tabs { flex-wrap:wrap; }
.meal-tabs button { font-size:12px; min-height:44px; padding:7px; white-space:normal; }
.meal-content { line-height:1.8; }
.meal-content>p { white-space:pre-line; }
.meal-source-name { color:var(--accent); font-size:12px; font-weight:600; }
.meal-alternatives .src { display:block; font-size:11px; color:var(--muted); line-height:1.6; }
.verse { scroll-margin-top: 140px; }
@media(max-width:420px) { .loop-controls { gap: 5px; }.loop-controls #loopBtn { padding: 0 7px; font-size: 11px; }.loop-count input { width: 50px; } }
.hide-words .words { display: none; }
.hide-plain .verse > .ar { display: none; }
.reading-mode-picker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.reading-mode-picker > span { font-size: 13px; color: var(--muted); }
.hide-plain .word .w-ar { font-size: calc(28px * var(--ar-scale, 1)); }
.hide-plain .words { gap: 9px 6px; margin: 12px 0; }
.verse.reading-now { border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; }
.chunk.active-verse .verse.reading-now .words, .chunk.active-verse .verse.reading-now > .ar { background: var(--accent-soft); border-radius: 12px; }
.tefsir-content { direction: ltr; text-align: start; overflow-wrap: break-word; }
.tefsir-body p, .intro-body p, .tefsir-meal { unicode-bidi: isolate; line-height: 1.9; white-space: pre-line; }
.tefsir-ar { font-family: var(--ar-font); font-size: 1.4em; line-height: 1.8; direction: rtl; unicode-bidi: isolate; font-weight: 400; }
.tefsir-source-notice { font-size: 12.5px; padding: 10px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; }
.tefsir-source-notice a { color: var(--accent); text-decoration: underline; white-space: nowrap; }
.reading-fullscreen .daily, .reading-fullscreen .archive-access, .reading-fullscreen .voice-picker, .reading-fullscreen .reading-mode-picker { display: none; }
.reading-fullscreen .app { max-width: 1100px; }
:fullscreen { background: var(--bg); overflow-y: auto; }
#fullscreenBtn[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); }
.fullscreen-controls-toggle { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--player-h) + 8px); z-index: 31; padding: 8px 14px; min-height: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; color: var(--accent); font-size: 13px; box-shadow: var(--shadow); transition: bottom .3s ease; }
.reading-fullscreen .player { transition: transform .3s ease, visibility .3s; }
.reading-fullscreen.fullscreen-controls-hidden .player { transform: translateY(100%); visibility: hidden; pointer-events: none; }
.reading-fullscreen.fullscreen-controls-hidden .fullscreen-controls-toggle { bottom: calc(8px + env(safe-area-inset-bottom)); }
.reading-fullscreen.fullscreen-controls-hidden .app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .reading-fullscreen .player, .fullscreen-controls-toggle { transition: none; } }
@media (max-width: 440px) {
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 36px; }
  .font-ctrl button { width: 27px; }
  .brand-text strong { font-size: 12px; }
  .brand-text small { font-size: 10px; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 34px; }
}
.select-row { display: flex; gap: 8px; align-items: center; }

/* Sure listesinde ayet seçici */
.surah-list button[aria-expanded="true"] { background: var(--surface-2); }
.ayah-picker { margin: 4px 4px 10px 50px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.ayah-picker .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ayah-picker label { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.ayah-picker input { flex: 1; min-width: 0; }
.ayah-picker .error:empty { display: none; }
.ayah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 8px; max-height: 220px; overflow: auto; }
.ayah-grid button { min-height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ayah-grid button:hover, .ayah-grid button:focus-visible { background: var(--accent); color: #fff; }
@media (max-width: 480px) { .ayah-picker { margin-left: 4px; } }

/* Oynatıcıda okuyucu seçimi */
.player-voices { max-width: 820px; margin: 6px auto 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12.5px; color: var(--muted); }
.player-voices label { display: flex; align-items: center; gap: 6px; }
.player-voices select { font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); max-width: 220px; }

.picker-tabs { display: flex; gap: 6px; margin-top: 8px; }
.picker-tabs button { flex: 1; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.picker-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-grid button { background: var(--surface); color: var(--text); }

.ayah-grid[hidden] { display: none; }

/* Okuyucu seçimi döngü satırıyla aynı hizada */
.loop-controls .pl-voice { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.loop-controls .pl-voice select { font-size: 12px; min-height: 36px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); max-width: 150px; }

#pageLoopBtn { font-size: 12px; min-height: 36px; }
#pageLoopBtn[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
/* Arapça okunurken o anki kelime (ölçülmüş zamanlarla) */
.word.w-now { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--gold) inset; border-radius: 10px; transition: background .12s, box-shadow .12s; }
.word.w-now .w-ar { color: var(--gold); }

/* Oynatıcı alt satırı tek satıra sığsın */
.loop-controls { gap: 6px; }
.loop-controls .pl-voice select { max-width: 132px; }
.loop-controls #loopBtn, #pageLoopBtn { padding: 0 9px; }
.loop-count input { width: 48px; }

/* Seçici içindeki düğmeler sure satırı stilini almasın */
.surah-list .ayah-picker button { width: auto; min-height: 36px; display: inline-flex; justify-content: center; padding: 6px 10px; text-align: center; }
.surah-list .ayah-picker .btn.primary { background: var(--accent); color: var(--accent-ink); min-height: 40px; padding: 0 18px; }
.surah-list .ayah-picker .ayah-grid button { width: 100%; }
.surah-list .ayah-picker .picker-tabs button { flex: 1; }
.surah-list .ayah-picker .picker-tabs button.active { background: var(--accent); color: var(--accent-ink); }
.range-pane { margin-top: 8px; }
.range-pane[hidden] { display: none; }
.range-pane .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.range-pane label { flex: 1 1 90px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.range-pane input { width: 100%; }

#rangeLoopBtn { font-size: 12px; min-height: 36px; padding: 0 9px; }
#rangeLoopBtn[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .loop-controls { flex-wrap: nowrap; } }
.loop-controls > * { flex: none; }

#exportBtn.busy { background: var(--gold-soft); color: var(--gold); }

.meal-alternatives .meal-item { padding: 10px 0; border-top: 1px solid var(--line); }
.meal-alternatives .meal-item:first-of-type { border-top: 0; }
.meal-alternatives .meal-item .meal-source-name { margin: 0 0 4px; }
.meal-alternatives .meal-item .meal-content p { margin: 4px 0; }

/* Açıklama videosu: ekranın ~%79'u */
.modal.video-modal { width: 79vw; max-width: 79vw; max-height: 92vh; }
.video-modal .video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 79vh; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .modal.video-modal { width: 96vw; max-width: 96vw; } }
.chip.watch { color: var(--gold); }

/* Tefsir videosu düğmesi (Tefsir yanında) */
.meal-head .tef-watch { margin-left: .35rem; white-space: nowrap; }

/* Sayfa başı: tamamını izle */
.page-divider .page-watch { font-size: 12px; padding: 3px 10px; }
/* Okunuş (isteğe bağlı) */
.ok-btn { font-weight: 700; font-size: 15px; }
.ok-btn.active { background: var(--accent-soft); color: var(--gold); }
.w-ok, .okunus-line, .okunus-src { display: none; }
.show-okunus .w-ok { display: block; font-size: 11.5px; line-height: 1.25; color: var(--gold); font-style: italic; text-align: center; max-width: 130px; direction: ltr; unicode-bidi: isolate; margin-top: 1px; }
.show-okunus .okunus-line { display: block; direction: ltr; text-align: left; font-size: 15px; line-height: 1.6; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 6px 10px; margin: 2px 0 8px; font-style: italic; }
.show-okunus .okunus-line .ok-label { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; margin-right: 4px; }
.show-okunus .okunus-src { display: block; font-size: 12px; }
