:root{--red:#d80404;--ink:#141414;--muted:#6a6a70;--bg:#f2f3f5;--card:#fff;--line:#e6e7ea;--soft:#eceef1;--fs:18px}
html[data-theme=dark]{--ink:#ececec;--muted:#a1a1a8;--bg:#0e0e10;--card:#18181b;--line:#2a2a2f;--soft:#202024;color-scheme:dark}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.7 'Hind Siliguri','Noto Sans Bengali','SolaimanLipi',system-ui,sans-serif;padding-bottom:env(safe-area-inset-bottom)}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button{font-family:inherit;cursor:pointer}
.bar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:8px;height:56px;padding:0 10px;padding-top:env(safe-area-inset-top);background:var(--card);color:var(--ink);border-bottom:3px solid var(--red);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.logo{flex:1;min-width:0;display:flex;align-items:center;height:100%;transition:opacity .15s}.logo img{height:38px;width:auto;max-width:170px;display:block;object-fit:contain;object-position:left center}.logo.compact{flex:1}.logo.compact img{height:34px;max-width:148px}
.bar-r{display:flex;gap:2px}
.ib{width:42px;height:42px;border:0;background:none;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:34px;line-height:1}
.ib:active{background:var(--soft)}
.moon{display:block}.sun{display:none}html[data-theme=dark] .moon{display:none}html[data-theme=dark] .sun{display:block}
.search{display:flex;gap:8px;padding:10px;background:var(--card);border-bottom:1px solid var(--line)}
.search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;background:var(--bg);color:var(--ink)}
.search button{border:0;background:var(--red);color:#fff;border-radius:10px;padding:0 18px;font-weight:700}
.chips{display:flex;gap:8px;overflow-x:auto;padding:10px;background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:56px;z-index:40;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips a{flex:none;padding:5px 15px;border:1px solid var(--line);border-radius:20px;font-weight:700;font-size:15px;white-space:nowrap}
.chips a.on{background:var(--red);border-color:var(--red);color:#fff}
.offline{background:#222;color:#fff;text-align:center;font-size:13px;padding:5px}
main{max-width:760px;margin:0 auto;padding:12px 12px 90px}
.feat{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -12px 14px;padding:0 12px}
.feat::-webkit-scrollbar{display:none}
.fi{flex:none;width:86%;scroll-snap-align:center;position:relative;border-radius:12px;overflow:hidden;aspect-ratio:16/10;background:var(--soft);color:#fff}
.fi img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fi .cap{position:absolute;left:0;right:0;bottom:0;padding:46px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.82))}
.chip{display:inline-block;background:var(--red);color:#fff;font-size:11px;font-weight:700;padding:0 8px;border-radius:2px;line-height:19px}
.fi h2{margin:6px 0 2px;font-size:19px;line-height:1.4}
.fi time{font-size:12px;opacity:.85}
.card{display:flex;gap:12px;padding:12px;margin-bottom:10px;background:var(--card);border:1px solid var(--line);border-radius:12px}
.card .th{flex:none;width:112px;height:84px;border-radius:8px;overflow:hidden;background:var(--soft)}
.card .th img{width:100%;height:100%;object-fit:cover;display:block}
.card .tx{min-width:0}
.card h3{margin:0 0 4px;font-size:16.5px;line-height:1.45}
.card time,.meta{font-size:12.5px;color:var(--muted)}
.card:active{background:var(--soft)}
.more{display:block;width:100%;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-weight:700;font-size:16px}
.skel{height:96px;border-radius:12px;margin-bottom:10px;background:linear-gradient(90deg,var(--soft),var(--line),var(--soft));background-size:200% 100%;animation:sh 1.2s linear infinite}
@keyframes sh{to{background-position:-200% 0}}
.empty{padding:30px 10px;text-align:center;color:var(--muted)}
.art{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}
.art h1{font-size:25px;line-height:1.4;margin:6px 0 10px}
.am{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.am .sp{margin-left:auto;display:flex;gap:6px}
.sbtn{height:30px;min-width:38px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--ink);font-weight:700}
.act{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.act a,.act button{padding:8px 16px;border-radius:9px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-weight:700;font-size:14.5px}
.act .wa{background:#25d366;border-color:#25d366;color:#fff}
.body{font-size:var(--fs);line-height:1.95;overflow-wrap:break-word}
.body img,.body iframe,.body video{max-width:100%;border-radius:8px}
.body iframe[src*=youtube]{width:100%;height:auto;aspect-ratio:16/9;border:0}
.body table{display:block;overflow-x:auto;max-width:100%}
.body a{color:var(--red);text-decoration:underline}
.sec-t{margin:22px 0 12px;font-size:20px;font-weight:800;border-left:5px solid var(--red);padding-left:10px}
.install{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:8px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 12px;box-shadow:0 6px 24px rgba(0,0,0,.3)}
.install span{flex:1;font-size:14.5px;font-weight:600}
.install button{border:0;background:var(--red);color:#fff;border-radius:9px;padding:8px 16px;font-weight:700}
.install #install-x{background:none;color:var(--muted);font-size:24px;padding:0 8px}
@media (min-width:760px){.fi{width:48%}.card .th{width:150px;height:100px}}
[hidden]{display:none!important}

/* News ticker + daily information cards */
.ticker{display:flex;align-items:stretch;min-height:43px;background:#171717;color:#fff;overflow:hidden;border-bottom:2px solid var(--red)}
.ticker-label{flex:none;display:flex;align-items:center;gap:7px;padding:0 12px;background:var(--red);font-weight:800;font-size:14px;position:relative;z-index:2}
.live-dot{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.18);animation:livepulse 1.4s infinite}
.ticker-window{min-width:0;flex:1;overflow:hidden;display:flex;align-items:center}
.ticker-track{display:flex;align-items:center;gap:34px;width:max-content;white-space:nowrap;padding-left:18px;animation:tickerroll 42s linear infinite}
.ticker-track:hover{animation-play-state:paused}
.ticker-track a{font-size:14px;font-weight:600;color:#fff}
.ticker-track a:before{content:'◆';font-size:9px;color:#ff4b4b;margin-right:10px}
.ticker-loading{font-size:13px;color:#ddd}
@keyframes tickerroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes livepulse{50%{opacity:.45}}
.daily-strip{display:grid;grid-template-columns:1fr 1.15fr;gap:10px;padding:12px;background:var(--bg);max-width:1000px;margin:0 auto}
.daily-card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:0 2px 8px rgba(0,0,0,.035)}
.daily-heading{display:flex;align-items:center;gap:8px;min-width:0}
.daily-icon{font-size:24px;line-height:1}
.daily-heading>div{display:flex;flex-direction:column;min-width:0;flex:1}
.daily-heading strong{font-size:15px;line-height:1.35;font-weight:800}
.daily-heading small,.daily-note{font-size:11.5px;color:var(--muted)}
.refresh-mini{flex:none;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:8px;width:30px;height:30px;font-size:20px;line-height:1}
.weather-main{display:flex;align-items:center;gap:10px;margin:8px 0 4px}
.weather-main strong{font-size:31px;line-height:1.1;letter-spacing:-1px}
.weather-main span{font-size:13px;font-weight:700}
.weather-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11.5px;color:var(--muted)}
.prayer-times{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:10px 0 5px}
.prayer-times span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 2px;background:var(--soft);border-radius:8px;font-size:11px;color:var(--muted)}
.prayer-times b{font-size:12px;color:var(--ink);font-weight:800;white-space:nowrap}
.daily-note{display:block}
@media(max-width:480px){.daily-strip{grid-template-columns:1fr;gap:8px;padding:9px}.daily-card{padding:11px}.prayer-times{margin-top:8px}.ticker-label{padding:0 9px;font-size:13px}.ticker-track{gap:25px}.ticker-track a{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ticker-track,.live-dot,.skel{animation:none!important}}

/* Reader-first refinements: clearer hierarchy, touch targets and bottom navigation */
:root{--red:#c90016;--bg:#f5f6f8;--line:#e4e6eb;--soft:#f0f1f4;--reading-width:760px}
body{line-height:1.72;letter-spacing:.01px}
button,a,input{outline-offset:3px}
:focus-visible{outline:3px solid #3977e8;outline-offset:3px}
.bar{height:60px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.chips{top:60px;gap:7px;padding:10px 12px}
.chips a{padding:6px 14px;transition:background .15s ease,color .15s ease}
main{max-width:var(--reading-width);padding:14px 12px calc(100px + env(safe-area-inset-bottom))}
.fi{border-radius:16px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.fi h2{font-size:clamp(18px,4.8vw,22px);line-height:1.45;text-wrap:pretty}
.card{gap:12px;padding:12px;margin-bottom:10px;border-radius:14px;align-items:center;box-shadow:0 2px 8px rgba(15,20,30,.025);transition:transform .15s ease,background .15s ease}
.card .th{width:112px;height:86px;border-radius:10px}
.card h3{font-size:17px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.card-cat{display:inline-block;color:var(--red);font-size:12px;font-weight:800;margin-bottom:2px}
.card time{display:block;margin-top:4px}
.art{padding:clamp(14px,4vw,22px);border-radius:16px}
.art h1{font-size:clamp(24px,6vw,32px);line-height:1.5;text-wrap:pretty}
.am{gap:8px 12px}
.body{line-height:2.05;letter-spacing:.02px}
.body p{margin:0 0 1.15em}
.body h2,.body h3{line-height:1.55;margin:1.3em 0 .55em}
.body blockquote{margin:1em 0;padding:.7em 1em;border-left:4px solid var(--red);background:var(--soft);border-radius:0 10px 10px 0}
.act a,.act button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#save-post[aria-pressed="true"]{color:var(--red);border-color:var(--red);background:color-mix(in srgb,var(--red) 8%,var(--card))}
.daily-card{box-shadow:0 3px 12px rgba(0,0,0,.035)}
.daily-heading strong{font-size:15.5px}
.weather-main strong{font-variant-numeric:tabular-nums}
.prayer-times span{min-height:54px;justify-content:center}
.bottom-nav{position:fixed;z-index:55;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--card) 94%,transparent);border-top:1px solid var(--line);box-shadow:0 -4px 18px rgba(0,0,0,.06);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.bottom-nav a,.bottom-nav button{border:0;background:transparent;color:var(--muted);min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border-radius:10px;font:inherit;text-decoration:none}
.bottom-nav span{font-family:system-ui,sans-serif;font-size:24px;line-height:1.15;font-weight:600}
.bottom-nav small{font-size:11px;font-weight:700;line-height:1.5}
.bottom-nav .active{color:var(--red);background:color-mix(in srgb,var(--red) 8%,var(--card))}
.empty h2{font-size:20px;color:var(--ink)}
.empty p{max-width:340px;margin:0 auto 14px}
.empty-link{display:inline-flex;padding:9px 16px;border-radius:10px;background:var(--red);color:#fff!important;font-weight:700}
.more{min-height:46px}
@media(min-width:760px){.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100% - 24px));bottom:12px;border:1px solid var(--line);border-radius:18px;padding-bottom:7px}.card .th{width:140px;height:100px}.card h3{font-size:18px}}
@media(max-width:360px){.card{gap:9px;padding:9px}.card .th{width:94px;height:76px}.card h3{font-size:15.5px}.daily-card{padding:10px}.prayer-times{gap:3px}.prayer-times span{font-size:10px}.prayer-times b{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Reader-first refinements v5 */
.read-progress{position:fixed;top:56px;left:0;right:0;height:3px;z-index:80;background:transparent;opacity:0;pointer-events:none;transition:opacity .18s ease}
.read-progress.visible{opacity:1;background:var(--line)}
.read-progress span{display:block;height:100%;width:0;background:var(--red);transition:width .08s linear}
.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:4px 0 10px}
.home-section-head .sec-t{margin:0;font-size:20px}
.eyebrow{display:block;color:var(--red);font-size:10px;letter-spacing:1.4px;font-weight:800;line-height:1.5}
.prefs-link{flex:none;color:var(--red);font-size:12.5px;font-weight:700;padding:6px 0}
.latest-head{margin-top:18px;padding-top:13px;border-top:1px solid var(--line)}
.card-cat{display:inline-block;margin-bottom:3px;color:var(--red);font-size:11px;line-height:1.3;font-weight:800}
.preferences-page{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px 16px}
.preferences-page h1{margin:5px 0 6px;font-size:25px;line-height:1.35}
.preferences-page>p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.7}
.pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pref-option{display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--bg);font-size:14px;font-weight:600;cursor:pointer}
.pref-option input{width:18px;height:18px;accent-color:var(--red);flex:none;margin:0}
.pref-option span{flex:1;min-width:0}
.pref-option i{display:none;color:var(--red);font-style:normal;font-weight:900}
.pref-option:has(input:checked){border-color:color-mix(in srgb,var(--red) 55%,var(--line));background:color-mix(in srgb,var(--red) 7%,var(--card))}
.pref-option:has(input:checked) i{display:block}
.pref-save{margin-top:16px;background:var(--red);border-color:var(--red);color:#fff}
.pref-reset{display:block;width:100%;border:0;background:transparent;color:var(--muted);padding:12px;font:inherit;font-weight:700}
.preferences-page .pref-hint{margin:7px 0 0;text-align:center;font-size:12px}
@media(max-width:380px){.home-section-head .sec-t{font-size:18px}.prefs-link{font-size:11.5px}.pref-grid{gap:7px}.pref-option{padding:8px;font-size:13px}.preferences-page{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.read-progress,.read-progress span{transition:none}}


/* v6: Bangladesh date/time strip and editorial footer */
.date-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 13px;background:var(--card);border-bottom:1px solid var(--line);color:var(--ink)}
.date-copy{display:flex;flex-direction:column;min-width:0;gap:1px}.date-copy strong{font-size:13px;line-height:1.45}.hijri-date{font-size:11px;color:var(--muted);line-height:1.45}.time-copy{flex:none;text-align:right}.time-copy strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.date-copy,.time-copy{display:flex;flex-direction:column;min-width:0;line-height:1.45}
.date-kicker,.time-kicker{font-size:10px;color:var(--muted);font-weight:600;letter-spacing:.1px}
.date-copy strong{font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.time-copy{text-align:right;flex:none}
.time-copy strong{font-size:14px;line-height:1.5;font-weight:800;font-variant-numeric:tabular-nums;color:var(--red);white-space:nowrap}
.site-footer{max-width:760px;margin:4px auto 0;padding:22px 18px calc(100px + env(safe-area-inset-bottom));border-top:1px solid var(--line);text-align:center;color:var(--muted)}
.footer-brand{display:inline-flex;align-items:center;justify-content:center;max-width:240px;margin:0 auto;line-height:1}.footer-brand img{display:block;width:100%;max-width:240px;height:auto;object-fit:contain}
.footer-about{max-width:480px;margin:7px auto 13px;font-size:13px;line-height:1.8}
.footer-editor{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:0 auto 13px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:13px}
.footer-editor span{color:var(--muted)}.footer-editor strong{color:var(--ink);font-weight:800}
.footer-links{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;margin:0 auto 10px;font-size:12px;font-weight:700}
.footer-links a{color:var(--ink)}.footer-links a:hover{color:var(--red);text-decoration:underline}
.footer-copy{font-size:11px;color:var(--muted)}
@media(max-width:360px){.date-strip{padding:6px 9px;gap:7px}.date-copy strong{font-size:11.5px}.hijri-date{font-size:10px}.time-copy strong{font-size:12.5px}.date-kicker,.time-kicker{font-size:9px}.site-footer{padding-left:13px;padding-right:13px}.logo img{max-width:135px}.logo.compact img{max-width:120px}.ib{width:36px}}

/* v9 — visual refresh inspired by the supplied FountNews reference */
:root{--red:#d60818;--bg:#f2f5f8;--card:#fff;--line:#e2e8ef;--soft:#f0f4f8;--ink:#172535;--muted:#718092}
html[data-theme=dark]{--bg:#0c1118;--card:#151d27;--line:#283443;--soft:#1d2937;--ink:#eef3f8;--muted:#a6b3c1}
body{background:var(--bg);font-size:16px}
.bar{height:62px;border-bottom:1px solid var(--line);box-shadow:0 2px 12px rgba(21,38,56,.07)}
.logo img{height:42px;max-width:190px}.logo.compact img{height:36px;max-width:158px}
.date-strip{padding:8px 14px;background:var(--card);border-bottom:1px solid var(--line)}
.ticker{margin:8px 10px;border-radius:999px;overflow:hidden;border:0;box-shadow:0 3px 9px rgba(214,8,24,.12)}
.ticker-label{background:#d60818;border-radius:999px 0 0 999px}
.chips{top:62px;background:var(--card);border-bottom:1px solid var(--line)}
.chips a{background:var(--bg);border-color:transparent}
main{max-width:980px;padding:12px 12px calc(105px + env(safe-area-inset-bottom))}
.feat{margin-bottom:18px;gap:12px}
.fi{border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(18,35,52,.10)}
.fi .cap{background:linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.02) 90%)}
.home-section-head{margin:8px 0 12px}
.home-section-head .sec-t{font-size:21px}
.card{background:var(--card);border:1px solid var(--line);box-shadow:0 2px 9px rgba(20,37,55,.035);padding:9px;gap:11px;margin-bottom:9px;border-radius:13px}
.card .th{width:116px;height:88px;border-radius:9px;overflow:hidden;background:var(--soft)}
.card .th img{width:100%;height:100%;object-fit:cover}
.card h3{font-size:16px;line-height:1.48;color:var(--ink)}
.card time{font-size:11px;color:var(--muted)}
.daily-strip{max-width:980px;margin:10px auto;gap:10px;padding:0 12px}
.daily-card{border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 4px 15px rgba(20,37,55,.045)}
.weather-card{background:linear-gradient(135deg,#1374b8,#209ed0);color:white;border:0}
.weather-card .daily-heading small,.weather-card .weather-meta{color:rgba(255,255,255,.82)}
.weather-card .refresh-mini{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.3);color:white}
.prayer-card{background:var(--card)}
.site-footer{max-width:980px;margin-top:10px;background:var(--card);border-top:1px solid var(--line);padding-top:22px}
.footer-brand{max-width:280px}.footer-brand img{max-width:280px}
.footer-about{max-width:620px}.footer-editor{background:var(--bg)}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 5px calc(7px + env(safe-area-inset-bottom));}
.bottom-nav a,.bottom-nav button{min-height:48px;border-radius:11px}
.bottom-nav span{font-size:23px}
.bottom-nav .active{background:transparent;color:var(--red)}
.bottom-nav .active span{font-weight:900}
.art{background:var(--card);border:1px solid var(--line);box-shadow:0 3px 14px rgba(20,37,55,.04)}
.art .body{font-size:var(--fs,18px)}
.categories-page,.settings-page{max-width:760px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:17px 14px;box-shadow:0 3px 14px rgba(20,37,55,.035)}
.category-title{margin:0 0 16px}.category-title h1{font-size:25px;line-height:1.35;margin:4px 0}.category-title p{margin:0;color:var(--muted);font-size:13px}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.category-tile{display:flex;align-items:center;gap:10px;min-height:68px;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--card);transition:transform .15s,border-color .15s}
.category-tile:active{transform:scale(.98)}
.category-icon{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:13px;background:var(--cat-color);color:white;font-size:23px;font-weight:800;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
.category-name{flex:1;min-width:0;font-size:14px;font-weight:800;line-height:1.4}.category-arrow,.setting-arrow{font-size:23px;color:var(--muted)}
.category-quick{margin-top:18px;padding:14px;border-radius:14px;background:var(--soft)}.category-quick strong{font-size:15px}.category-quick p{margin:3px 0 10px;font-size:13px;color:var(--muted)}.category-quick a{display:flex;justify-content:space-between;gap:8px;color:var(--red);font-weight:800;font-size:13px}
.settings-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}.setting-row{display:flex;width:100%;align-items:center;gap:12px;padding:13px 12px;min-height:68px;border:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left;font:inherit}.setting-row:last-child{border-bottom:0}.setting-icon{width:39px;height:39px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--soft);font-size:20px;font-weight:800}.setting-copy{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.45}.setting-copy strong{font-size:14px}.setting-copy small{font-size:11px;color:var(--muted)}.toggle{width:40px;height:23px;flex:none;padding:3px;background:#b5c0cc;border-radius:999px}.toggle i{display:block;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle.on{background:var(--red)}.toggle.on i{transform:translateX(17px)}.settings-version{text-align:center;padding:17px 0 3px;color:var(--muted);font-size:12px}
@media(min-width:700px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-strip{grid-template-columns:1fr 1fr}.site-footer{padding-left:24px;padding-right:24px}}
@media(max-width:480px){.daily-strip{grid-template-columns:1fr;}.daily-card{padding:12px}.weather-main strong{font-size:36px}.category-grid{gap:8px}.category-tile{min-height:64px;padding:8px}.category-icon{width:39px;height:39px}.category-name{font-size:13px}.categories-page,.settings-page{padding:15px 11px}.bottom-nav small{font-size:10px}}


/* v11 fixes: prayer times fit narrow phones; clearer long-form Bengali typography */
.prayer-times{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.prayer-times>span{min-width:0;overflow:hidden;padding:7px 1px;gap:4px;text-align:center}
.prayer-times .prayer-name{font-size:clamp(9px,2.7vw,11px);line-height:1.25;font-weight:600;white-space:nowrap}
.prayer-times .prayer-value{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;white-space:normal;line-height:1.2}
.prayer-times .prayer-clock{font-size:clamp(10px,2.8vw,12px);font-weight:800;white-space:nowrap}
.prayer-times .prayer-period{font-size:clamp(9px,2.5vw,10px);font-weight:600;color:var(--muted);white-space:nowrap}
.art .body{font-family:'Noto Serif Bengali','Noto Sans Bengali','SolaimanLipi',serif;font-size:var(--fs,19px);line-height:2.05;letter-spacing:0;word-break:normal;overflow-wrap:anywhere}
.art .body p{margin:0 0 1.2em}
.art .body h2,.art .body h3{font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;font-weight:700;line-height:1.55}
.art .body li{margin:.25em 0}
@media(max-width:380px){.prayer-times{gap:3px}.prayer-times>span{padding:6px 0}.prayer-times .prayer-name{font-size:9px}.prayer-times .prayer-clock{font-size:10px}.prayer-times .prayer-period{font-size:9px}}
/* Override inline font declarations often embedded in Blogger post HTML */
.art .body,.art .body p,.art .body div,.art .body span,.art .body li,.art .body td,.art .body th{font-family:'Noto Serif Bengali','Noto Sans Bengali','SolaimanLipi',serif!important}
.art .body h1,.art .body h2,.art .body h3,.art .body h4,.art .body h5,.art .body h6{font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif!important}

/* Official FountNews logo launch splash */
.app-splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#fff;padding:28px;opacity:1;visibility:visible;transition:opacity .4s ease,visibility .4s ease}.app-splash img{display:block;width:min(88vw,520px);height:auto;max-height:34vh;object-fit:contain}.splash-line{display:block;width:56px;height:4px;border-radius:99px;background:#d80404;animation:splash-pulse 1s ease-in-out infinite alternate}.app-splash.splash-hidden{opacity:0;visibility:hidden;pointer-events:none}@keyframes splash-pulse{from{transform:scaleX(.65);opacity:.55}to{transform:scaleX(1);opacity:1}}@media(prefers-reduced-motion:reduce){.app-splash,.splash-line{animation:none;transition:none}}


/* v13 — force readable article text in the app's dark theme */
html[data-theme="dark"] .art .body,
html[data-theme="dark"] .art .body p,
html[data-theme="dark"] .art .body div,
html[data-theme="dark"] .art .body span,
html[data-theme="dark"] .art .body font,
html[data-theme="dark"] .art .body li,
html[data-theme="dark"] .art .body td,
html[data-theme="dark"] .art .body th,
html[data-theme="dark"] .art .body em,
html[data-theme="dark"] .art .body i,
html[data-theme="dark"] .art .body small,
html[data-theme="dark"] .art .body label {
  color: #e6eaf0 !important;
}
html[data-theme="dark"] .art .body h1,
html[data-theme="dark"] .art .body h2,
html[data-theme="dark"] .art .body h3,
html[data-theme="dark"] .art .body h4,
html[data-theme="dark"] .art .body h5,
html[data-theme="dark"] .art .body h6,
html[data-theme="dark"] .art .body strong,
html[data-theme="dark"] .art .body b {
  color: #ffffff !important;
}
html[data-theme="dark"] .art .body a {
  color: #ff7882 !important;
}
html[data-theme="dark"] .art .body blockquote {
  color: #e6eaf0 !important;
  background-color: var(--soft) !important;
  border-left-color: var(--red) !important;
}


/* v14 — preserve readable text on soft pink/tinted article callouts */
html[data-theme="dark"] .art .body [style*="background"],
html[data-theme="dark"] .art .body [style*="background-color"],
html[data-theme="dark"] .art .body .note,
html[data-theme="dark"] .art .body .notice,
html[data-theme="dark"] .art .body .highlight,
html[data-theme="dark"] .art .body .callout,
html[data-theme="dark"] .art .body .info-box,
html[data-theme="dark"] .art .body .alert,
html[data-theme="dark"] .art .body .tip,
html[data-theme="dark"] .art .body .box {
  color: #29212a !important;
}
html[data-theme="dark"] .art .body [style*="background"] p,
html[data-theme="dark"] .art .body [style*="background"] span,
html[data-theme="dark"] .art .body [style*="background"] div,
html[data-theme="dark"] .art .body [style*="background"] li,
html[data-theme="dark"] .art .body [style*="background"] strong,
html[data-theme="dark"] .art .body [style*="background"] b,
html[data-theme="dark"] .art .body [style*="background"] em,
html[data-theme="dark"] .art .body [style*="background"] a {
  color: #29212a !important;
}


/* v15 — pink summary/callout blocks (often rendered as blockquote) need dark text */
html[data-theme="dark"] .art .body blockquote,
html[data-theme="dark"] .art .body blockquote *,
html[data-theme="dark"] .art .body .summary,
html[data-theme="dark"] .art .body .summary *,
html[data-theme="dark"] .art .body .intro,
html[data-theme="dark"] .art .body .intro *,
html[data-theme="dark"] .art .body .lead,
html[data-theme="dark"] .art .body .lead *,
html[data-theme="dark"] .art .body .article-summary,
html[data-theme="dark"] .art .body .article-summary *,
html[data-theme="dark"] .art .body .highlight-box,
html[data-theme="dark"] .art .body .highlight-box *,
html[data-theme="dark"] .art .body .key-point,
html[data-theme="dark"] .art .body .key-point * {
  color: #29212a !important;
}


/* FountNews APK download popup */
.apk-modal[hidden]{display:none!important}.apk-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;font-family:inherit}.apk-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(3px)}.apk-modal-card{position:relative;z-index:1;width:min(100%,390px);padding:28px 22px 22px;border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.38);text-align:center;animation:apk-pop .22s ease-out}.apk-modal-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;border-radius:50%;background:var(--soft,rgba(127,127,127,.12));color:var(--text);font-size:27px;line-height:1;cursor:pointer}.apk-modal-logo{display:block;width:150px;max-width:72%;height:auto;max-height:72px;object-fit:contain;margin:2px auto 16px}.apk-modal-kicker{margin:0 0 7px;color:var(--red);font-size:13px;font-weight:800;letter-spacing:.02em}.apk-modal-card h2{margin:0 0 10px;font-size:23px;line-height:1.4}.apk-modal-copy{margin:0 auto 18px;max-width:290px;color:var(--muted);font-size:15px;line-height:1.75}.apk-modal-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:13px 16px;border-radius:12px;background:var(--red);color:#fff;text-decoration:none;font-weight:800;font-size:16px}.apk-modal-later{margin-top:10px;padding:9px 18px;border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.apk-modal-note{margin:8px 0 0;color:var(--muted);font-size:12px}@keyframes apk-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.apk-modal-card{animation:none}}


/* FountNews native app live screen */
.live-page{padding:12px 0 28px;max-width:760px;margin:0 auto;color:var(--ink)}
.live-app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 2px 17px;border-bottom:1px solid var(--line)}
.live-brand{display:flex;align-items:center;gap:10px}.live-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--red);color:#fff;font-size:25px;font-weight:900}.live-brand b{display:block;font-size:16px}.live-brand small{display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.12em;margin-top:2px}.live-follow{padding:7px 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11px;font-weight:700}
.live-intro{padding:20px 2px 16px}.live-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--red);font-size:11px;font-weight:900;letter-spacing:.08em}.live-kicker i,.live-player-top i{width:8px;height:8px;border-radius:50%;background:var(--red);display:inline-block;box-shadow:0 0 0 4px color-mix(in srgb,var(--red) 13%,transparent)}.live-intro h1{font-size:27px;margin:9px 0 5px;line-height:1.3;color:var(--ink)}.live-intro p,.live-note{color:var(--muted);line-height:1.7;font-size:13px;margin:0}
.live-player-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 5px 20px rgba(0,0,0,.06)}.live-player-top{height:43px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;background:var(--soft);color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.04em}.live-player-top span:first-child{display:flex;align-items:center;gap:9px}.live-frame{width:100%;height:480px;background:var(--soft);overflow:hidden}.live-frame iframe{display:block;width:100%;height:100%;border:0;background:var(--card)}
.live-actions{display:grid;grid-template-columns:1fr auto;gap:9px;margin:13px 0 11px}.live-open{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 15px;border-radius:11px;background:var(--red);color:#fff!important;text-decoration:none;font-weight:800;font-size:14px}.live-refresh{min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font:inherit;font-size:13px;font-weight:700}.live-note{font-size:11px;text-align:center;padding:0 8px}.live-nav-icon{color:var(--red);font-size:17px!important;line-height:1.5!important}
@media(max-width:480px){.live-page{padding:8px 0 22px}.live-frame{height:440px}.live-intro h1{font-size:24px}.live-actions{grid-template-columns:1fr}.live-refresh{width:100%}.bottom-nav small{font-size:9.5px}}


/* FountNews Islamic library — stage 1 */
.islam-page{max-width:900px;margin:0 auto;padding:2px 0 28px}
.islam-hero{position:relative;overflow:hidden;padding:27px 22px 25px;border:1px solid #245d45;border-radius:17px;background:linear-gradient(135deg,#103d2d 0%,#176044 58%,#1b6949 100%);margin-bottom:16px;color:#fff;box-shadow:0 8px 24px rgba(16,61,45,.14)}
.islam-hero:after{content:"۞";position:absolute;right:18px;bottom:-40px;font-size:150px;line-height:1;color:rgba(232,198,111,.10);pointer-events:none}
.islam-crescent{display:inline-grid;place-items:center;width:39px;height:39px;margin-bottom:9px;border:1px solid rgba(232,198,111,.5);border-radius:50%;color:#e8c66f;font-size:27px;line-height:1}
.islam-hero .eyebrow{display:block;color:#e8c66f;font-size:10px;font-weight:900;letter-spacing:.15em}
.islam-hero h1{position:relative;z-index:1;font-size:29px;line-height:1.4;margin:5px 0 6px;color:#fff}
.islam-hero p{position:relative;z-index:1;margin:0;color:rgba(255,255,255,.88);font-size:14px;line-height:1.8}
.islam-news{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;margin:0 0 22px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.islam-news strong,.islam-news small{display:block}.islam-news strong{font-size:15px}.islam-news small{font-size:12px;color:var(--muted);margin-top:3px}.islam-news b{flex:none;background:#176b45;color:#fff;padding:9px 12px;border-radius:8px;font-size:12px}
.islam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.islam-tile{display:flex;align-items:center;gap:10px;min-width:0;min-height:91px;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--card);transition:border-color .18s,transform .18s}
.islam-tile:active{transform:scale(.99)}.islam-tile:focus-visible{outline:2px solid #b88b35;outline-offset:2px}
.islam-icon{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:rgba(23,107,69,.10);color:#176b45;font-size:22px;font-weight:800}
.islam-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.islam-copy strong{font-size:14px}.islam-copy small{font-size:11px;line-height:1.5;color:var(--muted)}.islam-copy em{font-size:10px;font-style:normal;font-weight:700;color:#68736c}
.islam-note,.islam-pending{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:12px;line-height:1.8;color:var(--muted)}
.islam-pending strong{display:block;color:var(--ink);font-size:15px}.islam-pending p{margin:5px 0 0}.islam-back{display:inline-block;margin-top:14px;color:var(--red);font-weight:800;font-size:13px}
[data-theme="dark"] .islam-icon{background:rgba(92,173,130,.15);color:#8bc9a7}
@media(max-width:480px){.islam-hero{padding:21px 15px}.islam-hero h1{font-size:25px}.islam-hero p{font-size:13px}.islam-hero:after{right:3px;font-size:120px}.islam-grid{gap:8px}.islam-tile{padding:10px 8px;gap:8px;min-height:88px}.islam-icon{width:35px;height:35px;font-size:19px}.islam-copy strong{font-size:13px}.islam-copy small{font-size:10px}.islam-news{align-items:flex-start;flex-direction:column}.islam-news b{width:100%;text-align:center}}


/* Quran reader v21 */
.quran-head{padding:20px 18px;border-radius:15px;background:linear-gradient(135deg,#103d2d,#176044);color:#fff;margin-bottom:13px}
.quran-head .islam-back{display:block;color:#f0d88e;margin:0 0 12px}
.quran-head .eyebrow{font-size:10px;letter-spacing:.14em;color:#f0d88e;font-weight:800}
.quran-head h1{margin:4px 0;font-size:25px;color:#fff}.quran-head p{margin:0;color:rgba(255,255,255,.85);font-size:13px}
.quran-tools{display:flex;gap:8px;margin:12px 0}
.quran-tools input,.quran-tools select{min-width:0;width:50%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:12px}
.quran-list{display:grid;gap:8px;margin-top:12px}
.quran-surah{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer}
.quran-num{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:9px;background:rgba(23,107,69,.12);color:#176b45;font-weight:800}
.quran-surah-name{flex:1;min-width:0}.quran-surah-name strong,.quran-surah-name small{display:block}.quran-surah-name strong{font-size:14px}.quran-surah-name small{font-size:11px;color:var(--muted);margin-top:2px}.quran-arrow{font-size:22px;color:var(--muted)}
.quran-reader-head h2{font-size:24px;margin:8px 0 3px;color:var(--ink)}.quran-reader-head p{font-size:12px;color:var(--muted);margin:0 0 12px}
.quran-back{color:#176b45;font-weight:800;font-size:13px}
.quran-reader-head audio{width:100%;height:42px}
.quran-ayah{padding:16px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card);margin-bottom:9px}
.quran-ayah-no{font-size:11px;font-weight:800;color:#176b45;margin-bottom:9px}
.quran-ar{font-family:"Amiri","Noto Naskh Arabic",serif;font-size:28px;line-height:2.05;text-align:right;color:var(--ink);margin:0 0 12px}
.quran-bn{font-size:14px;line-height:1.9;color:var(--ink);margin:0}
.quran-foot{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.quran-foot summary{cursor:pointer;font-weight:700}.quran-foot p{white-space:pre-line;line-height:1.8}
.quran-source,.quran-credit{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.8}
.quran-source a{color:#176b45;text-decoration:underline}
[data-theme="dark"] .quran-num,[data-theme="dark"] .quran-ayah-no{color:#8bc9a7}
@media(max-width:480px){.quran-tools{flex-direction:column}.quran-tools input,.quran-tools select{width:100%}.quran-ar{font-size:25px}.quran-ayah{padding:13px 10px}}

/* FountNews Quran v24: ayah-synced playback */
.quran-ayah-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.quran-play-ayah{border:1px solid var(--line,#dbe3e8);border-radius:999px;padding:7px 12px;background:var(--surface,#fff);color:var(--text,#1f2937);font:inherit;font-size:13px;cursor:pointer}
.quran-ayah.is-playing{outline:2px solid #187451;background:rgba(24,116,81,.07)}
.quran-player{display:grid;gap:7px;margin-top:12px}
.quran-player audio{width:100%;max-width:100%}
#quran-playing-label{font-size:13px;color:var(--muted,#718096)}

/* FountNews Quran v25: persistent sticky audio player while reading */
.quran-sticky-player{position:sticky;top:72px;z-index:30;margin:10px 0 14px;padding:10px 12px;border:1px solid var(--line,#dbe3e8);border-radius:14px;background:var(--card,#fff);box-shadow:0 5px 18px rgba(18,45,35,.12)}
.quran-sticky-player[hidden]{display:none!important}
.quran-sticky-player .quran-player{display:grid;gap:6px;margin:0}
.quran-sticky-player audio{display:block;width:100%;max-width:100%;height:40px}
.quran-sticky-player #quran-playing-label{font-size:12px;font-weight:700;color:var(--muted,#718096)}
@media(max-width:600px){.quran-sticky-player{top:68px;margin:8px 0 12px;padding:8px 10px}}

/* FountNews Quran v26: surah-level controls and context */
.quran-surah-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 4px}
.quran-surah-actions button{border:1px solid var(--line,#dbe3e8);border-radius:10px;padding:9px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.quran-surah-start{background:#176447;color:#fff;border-color:#176447!important}
.quran-surah-info{background:var(--card,#fff);color:var(--text,#25313b)}
.quran-surah-info[aria-expanded="true"]{border-color:#176447;color:#176447}
.quran-context{margin:12px 0 4px;padding:14px;border:1px solid var(--line,#dbe3e8);border-radius:12px;background:var(--surface,#f7f9fa);color:var(--text,#25313b);line-height:1.75}
.quran-context[hidden]{display:none!important}
.quran-context h3{font-size:15px;margin:0 0 7px;color:#176447}
.quran-context p{margin:6px 0;font-size:14px}
.quran-context a{color:#176447;text-decoration:underline}


/* FountNews v27: homepage-only daily widgets and Islamic Library shortcut */
.daily-strip{display:none!important}
body.fn-home-route .daily-strip{display:grid!important}
#home-islam-banner{display:none;align-items:center;gap:13px;max-width:1000px;width:calc(100% - 24px);margin:12px auto;padding:14px 16px;border:1px solid #28664b;border-radius:15px;background:linear-gradient(120deg,#103d2d 0%,#176044 65%,#1c6b4b 100%);color:#fff;box-shadow:0 5px 18px rgba(16,61,45,.13)}
body.fn-home-route #home-islam-banner{display:flex}
.home-islam-mark{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid rgba(232,198,111,.65);border-radius:50%;color:#f0d88e;font-size:29px}
.home-islam-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.home-islam-copy strong{font-size:17px;color:#fff}
.home-islam-copy small{font-size:12px;color:rgba(255,255,255,.9)}
.home-islam-copy em{font-size:10px;font-style:normal;color:#f0d88e}
#home-islam-banner>b{flex:none;padding:9px 12px;border-radius:9px;background:#e8c66f;color:#163d2e;font-size:12px}
.islam-module-head{padding:20px 18px;margin-bottom:13px;border:1px solid #245d45;border-radius:15px;background:linear-gradient(135deg,#103d2d,#176044 70%,#1b6949);color:#fff}
.islam-module-head .islam-back{display:block;margin:0 0 11px;color:#f0d88e}
.islam-module-head .eyebrow{font-size:10px;letter-spacing:.13em;color:#f0d88e;font-weight:800}
.islam-module-head h1{margin:4px 0 5px;color:#fff;font-size:25px}
.islam-module-head p{margin:0;color:rgba(255,255,255,.88);font-size:13px;line-height:1.7}
.islam-module-page{padding-bottom:30px}
.module-status,.islam-source-note{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.8}
.islam-source-note a{color:#176b45;text-decoration:underline;font-weight:700}
[data-theme="dark"] .islam-source-note a{color:#8bc9a7}
.hadith-tools{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(100px,.7fr) auto;align-items:end;gap:9px;margin:12px 0}
.hadith-tools label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}
.hadith-tools select,.hadith-tools input,.islam-search,.prayer-school-label select{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:13px}
.hadith-tools button,.hadith-nav button,.prayer-tools button{border:0;border-radius:9px;padding:11px 14px;background:#176b45;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hadith-card{margin-top:12px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.hadith-card-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.hadith-card-meta strong{color:var(--ink)}
.hadith-section{margin:8px 0;color:var(--muted);font-size:11px}
.hadith-card h3{margin:15px 0 7px;font-size:13px;color:#176b45}
[data-theme="dark"] .hadith-card h3{color:#8bc9a7}
.hadith-ar{margin:0;padding:14px 12px;border-radius:10px;background:var(--soft);color:var(--ink);font-family:"Amiri","Noto Naskh Arabic",serif;font-size:25px;line-height:2;text-align:right;white-space:pre-line}
.hadith-bn{margin:0;color:var(--ink);font-size:14px;line-height:1.95;white-space:pre-line}
.hadith-grade{margin:12px 0 0;color:var(--muted);font-size:12px}
.hadith-nav{display:flex;justify-content:space-between;gap:9px;margin-top:15px}
.hadith-nav button:disabled{opacity:.45;cursor:not-allowed}
.islam-search{margin:12px 0}
.masail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.masail-card{display:flex;flex-direction:column;gap:7px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.masail-card strong{font-size:14px;color:var(--ink)}
.masail-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.masail-card small{color:var(--muted);font-size:11px}
.masail-card a{align-self:flex-start;color:#176b45;font-size:12px;font-weight:800}
[data-theme="dark"] .masail-card a{color:#8bc9a7}
.dua-list{display:grid;gap:10px}
.dua-card{padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.dua-category{display:inline-block;margin-bottom:5px;padding:4px 8px;border-radius:999px;background:var(--soft);color:#176b45;font-size:10px;font-weight:800}
[data-theme="dark"] .dua-category{color:#8bc9a7}
.dua-card h3{margin:3px 0 10px;font-size:15px;color:var(--ink)}
.dua-ar{margin:0 0 12px;padding:13px;border-radius:10px;background:var(--soft);color:var(--ink);font-family:"Amiri","Noto Naskh Arabic",serif;font-size:25px;line-height:2;text-align:right}
.dua-bn,.dua-meaning{margin:7px 0;color:var(--ink);font-size:13px;line-height:1.8}
.dua-bn strong,.dua-meaning strong{color:var(--muted)}
.dua-ref{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.islam-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px}
.islam-calendar-toolbar button{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-size:23px}
.islam-calendar-toolbar strong{font-size:16px;color:var(--ink)}
.islam-cal-hijri{margin:0 0 12px;padding:11px;border-radius:10px;background:var(--soft);color:#176b45;text-align:center;font-size:14px;font-weight:800}
[data-theme="dark"] .islam-cal-hijri{color:#8bc9a7}
.islam-calendar-week,.islam-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.islam-calendar-week{margin-bottom:5px}
.islam-calendar-week span{text-align:center;color:var(--muted);font-size:10px;font-weight:800;padding:5px 0}
.islam-cal-day{display:flex;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.islam-cal-day strong{font-size:14px;color:var(--ink)}
.islam-cal-day small{font-size:10px;color:var(--muted)}
.islam-cal-day.is-today{border:2px solid #176b45;background:rgba(23,107,69,.08)}
.islam-cal-empty{min-height:58px}
.prayer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;color:var(--muted);font-size:12px}
.prayer-school-label{display:flex;align-items:center;gap:10px;margin:8px 0;color:var(--muted);font-size:12px}
.prayer-school-label select{max-width:230px}
.islam-prayer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.islam-prayer-time{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 5px;border:1px solid var(--line);border-radius:11px;background:var(--card)}
.islam-prayer-time>span{color:var(--muted);font-size:12px}
.islam-prayer-time>strong{color:var(--ink);font-size:14px;text-align:center}
.qibla-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.qibla-panel h2{margin:0 0 4px;font-size:16px;color:var(--ink)}
.qibla-panel p{margin:0 0 7px;color:var(--muted);font-size:11px}
.qibla-panel>div:first-child>strong{display:block;color:#176b45;font-size:24px}
.qibla-panel>div:first-child>small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
[data-theme="dark"] .qibla-panel>div:first-child>strong{color:#8bc9a7}
.qibla-compass{position:relative;flex:none;width:142px;height:142px;border:2px solid #b88b35;border-radius:50%;background:radial-gradient(circle,var(--card) 58%,var(--soft) 59%);color:var(--muted)}
.qibla-compass:before,.qibla-compass:after{content:"";position:absolute;left:50%;top:50%;background:var(--line);transform:translate(-50%,-50%)}
.qibla-compass:before{width:1px;height:112px}.qibla-compass:after{height:1px;width:112px}
.qibla-compass span{position:absolute;z-index:2;font-size:10px;font-weight:800}
.qibla-n{top:7px;left:50%;transform:translateX(-50%)}.qibla-e{right:8px;top:50%;transform:translateY(-50%)}.qibla-s{bottom:7px;left:50%;transform:translateX(-50%)}.qibla-w{left:8px;top:50%;transform:translateY(-50%)}
.qibla-arrow{left:50%;top:50%;transform:translate(-50%,-50%);transform-origin:50% 50%;color:#b88b35;font-size:34px;line-height:1}
.qibla-kaaba{left:50%;top:calc(50% + 24px);transform:translateX(-50%);font-size:9px;color:#176b45}
.qa-list{display:grid;gap:8px}
.qa-item{padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--card)}
.qa-item summary{cursor:pointer;color:var(--ink);font-size:14px;font-weight:800;line-height:1.6}
.qa-item p{margin:9px 0;color:var(--ink);font-size:13px;line-height:1.8}
.qa-item small{display:block;color:var(--muted);font-size:11px}
.qa-item a{display:inline-block;margin-top:7px;color:#176b45;font-size:12px;font-weight:800}
[data-theme="dark"] .qa-item a{color:#8bc9a7}
.islam-articles-list{display:grid;gap:9px}
@media(max-width:560px){
 #home-islam-banner{width:calc(100% - 18px);margin:9px auto;padding:12px;gap:9px}
 .home-islam-mark{width:37px;height:37px;font-size:24px}
 .home-islam-copy strong{font-size:14px}.home-islam-copy small{font-size:10px}.home-islam-copy em{font-size:9px}
 #home-islam-banner>b{padding:8px;font-size:10px}
 .hadith-tools{grid-template-columns:1fr 100px}.hadith-tools button{grid-column:1/-1}
 .masail-grid{grid-template-columns:1fr}
 .islam-prayer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qibla-panel{gap:10px;padding:12px}.qibla-compass{width:120px;height:120px}
 .qibla-compass:before{height:94px}.qibla-compass:after{width:94px}
}


/* FountNews v28 — Islamic library additions */
.fn-daily-grid{display:grid;grid-template-columns:1fr;gap:9px;margin:14px 0}
.fn-daily-card{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.fn-daily-card>span{display:inline-block;padding:4px 9px;border-radius:99px;background:var(--soft);color:#176b45;font-size:11px;font-weight:800}
[data-theme="dark"] .fn-daily-card>span{color:#8bc9a7}
.fn-daily-card p{margin:8px 0;color:var(--ink);font-size:13px;line-height:1.8}
.fn-daily-card .fn-daily-ar{font-family:"Amiri","Noto Naskh Arabic",serif;font-size:22px;line-height:2;text-align:right}
.fn-daily-card h3{margin:9px 0 4px;color:var(--ink);font-size:16px}
.fn-daily-card small{color:var(--muted);font-size:11px}
.fn-ramadan-times{margin:12px 0;padding:14px;border:1px solid #b88b35;border-radius:13px;background:var(--card)}
.fn-ramadan-times>strong{color:var(--ink);font-size:15px}
.fn-ramadan-times>p{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.fn-ramadan-times-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.fn-ramadan-times-grid>div{padding:11px;border-radius:10px;background:var(--soft);display:flex;flex-direction:column;gap:5px}
.fn-ramadan-times-grid small{color:var(--muted);font-size:10px}
.fn-ramadan-times-grid b{color:#176b45;font-size:19px}
[data-theme="dark"] .fn-ramadan-times-grid b{color:#8bc9a7}
.islam-event-list{display:grid;gap:9px;margin:10px 0}
.islam-event-card{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.islam-event-card strong{display:block;color:var(--ink);font-size:14px}
.islam-event-card small{display:block;margin:4px 0;color:#176b45;font-size:11px;font-weight:700}
[data-theme="dark"] .islam-event-card small{color:#8bc9a7}
.islam-event-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.hijri-cal-day{position:relative;min-height:67px}
.hijri-cal-day small{font-size:9px}
.hijri-cal-day.has-event{border-color:#b88b35;background:rgba(184,139,53,.08)}
.hijri-cal-day i{position:absolute;right:5px;top:4px;color:#b88b35;font-size:7px}
.ayah-inline-btn{align-self:flex-start;border:0;border-radius:8px;padding:7px 10px;background:#176b45;color:#fff;font:inherit;font-size:11px;font-weight:800}
.ayah-inline{margin-top:9px;padding:11px;border-radius:10px;background:var(--soft);color:var(--ink)}
.ayah-inline p{margin:6px 0;font-size:12px;line-height:1.8}
.ayah-inline .ayah-ar{font-family:"Amiri","Noto Naskh Arabic",serif;font-size:22px;line-height:2;text-align:right}
.ayah-inline small{color:var(--muted);font-size:10px}
.dua-filter-wrap label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}
.dua-filter-wrap select{flex:1;max-width:250px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit}
.sunnah-list{display:grid;gap:9px}
.sunnah-card{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.sunnah-card h3{margin:0 0 7px;color:var(--ink);font-size:15px}
.sunnah-card p{margin:0 0 7px;color:var(--muted);font-size:13px;line-height:1.8}
.sunnah-card small{color:#176b45;font-size:11px;font-weight:700}
[data-theme="dark"] .sunnah-card small{color:#8bc9a7}
@media(min-width:650px){.fn-daily-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v29 navigation and all-year Sehri/Iftar */
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.bottom-nav a[data-nav="islam"]{color:var(--muted)}
.bottom-nav a[data-nav="islam"].active{color:var(--accent)}
.fn-ramadan-times{display:block!important;margin:14px 0;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink)}
.fn-ramadan-times>strong{display:block;margin-bottom:10px;font-size:16px}
.fn-ramadan-times-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fn-ramadan-times-grid>div{display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:11px;background:var(--soft)}
.fn-ramadan-times-grid small{color:var(--muted);font-size:11px;line-height:1.5}
.fn-ramadan-times-grid b{color:#176b45;font-size:20px}
[data-theme="dark"] .fn-ramadan-times-grid b{color:#8bc9a7}
@media(max-width:380px){.fn-ramadan-times-grid{grid-template-columns:1fr}}


/* FountNews v30: Quran bookmarks and digital tasbih */
.quran-extra-links{display:flex;justify-content:flex-end;margin:-3px 0 12px}
.quran-extra-links a{color:#176b45;font-size:12px;font-weight:800;text-decoration:none;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.quran-ayah-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.quran-bookmark-btn{border:1px solid var(--line);border-radius:999px;padding:7px 10px;background:var(--card);color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
.quran-bookmark-btn.saved{color:#a47b20;background:rgba(218,180,83,.12);border-color:#c9a75b}
.quran-bookmark-list{display:grid;gap:9px;margin:12px 0}
.quran-bookmark-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.quran-bookmark-item strong,.quran-bookmark-item small{display:block}.quran-bookmark-item small{margin-top:4px;color:var(--muted);font-size:11px}
.quran-bookmark-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.quran-bookmark-actions a,.quran-bookmark-actions button{border:0;border-radius:8px;padding:8px 9px;background:var(--soft);color:var(--ink);font:inherit;font-size:11px;text-decoration:none}
.quran-bookmark-actions a{background:#176b45;color:#fff}
.tasbih-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);text-align:center;box-shadow:0 5px 20px rgba(15,55,38,.06)}
.tasbih-card label{display:block;text-align:left;font-size:12px;font-weight:800;color:var(--muted);margin-bottom:7px}
.tasbih-card select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font:inherit}
.tasbih-ar{font-family:'Amiri',serif;font-size:30px;line-height:1.8;color:var(--ink);margin:18px 0 2px}
.tasbih-name{font-size:17px;font-weight:800;color:#176b45}.tasbih-meaning{font-size:12px;color:var(--muted);margin-top:3px}
.tasbih-count{font-size:54px;font-weight:800;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--ink);margin:10px 0}
.tasbih-targets{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:8px 0 12px}.tasbih-targets span{font-size:11px;color:var(--muted)}
.tasbih-targets button,.tasbih-tools button{padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font:inherit;font-size:11px}
.tasbih-targets button.on{background:#176b45;color:#fff;border-color:#176b45}
.tasbih-progress{height:7px;border-radius:99px;background:var(--soft);overflow:hidden;margin:10px 0 16px}.tasbih-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#176b45,#d5b15e);transition:width .2s}
.tasbih-tap{width:min(230px,100%);height:70px;border:0;border-radius:50px;background:linear-gradient(135deg,#0c553c,#1c8058);color:#fff;font:inherit;font-size:16px;font-weight:800;box-shadow:0 5px 15px rgba(13,93,62,.2);cursor:pointer}
.tasbih-tools{display:flex;justify-content:center;gap:8px;margin-top:14px}.tasbih-note{margin:17px 0 0;padding:11px;border-radius:9px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.7;text-align:left}
[data-theme="dark"] .quran-extra-links a{color:#8bc9a7}
@media(max-width:480px){.quran-bookmark-item{align-items:flex-start;flex-direction:column}.quran-bookmark-actions{width:100%}.quran-bookmark-actions a,.quran-bookmark-actions button{flex:1;text-align:center}.tasbih-card{padding:14px 11px}}

/* v30.1 bug fixes: readable Quran notes, saved surahs and hadiths */
.quran-surah-bookmark{background:var(--card);color:var(--ink)}
.quran-surah-bookmark.saved{color:#a47b20;background:rgba(218,180,83,.12);border-color:#c9a75b}
.quran-footnote-text{line-height:1.8}
.quran-footnote-text p{margin:7px 0}
.quran-footnote-text ul,.quran-footnote-text ol{padding-left:22px;margin:7px 0}
.hadith-bookmark-row{display:flex;justify-content:flex-end;margin:12px 0 2px}
.quran-player audio[hidden]{display:none!important}

/* v30.2 bookmark tools */
.bookmark-tools{display:grid;gap:10px;margin:14px 0}
.bookmark-tools input{width:100%;box-sizing:border-box;border:1px solid var(--line,#dce2e7);border-radius:14px;padding:13px 15px;background:var(--card,#fff);color:var(--ink,#202a33);font:inherit}
.bookmark-filters{display:flex;gap:7px;flex-wrap:wrap}
.bookmark-filters button{border:1px solid var(--line,#dce2e7);border-radius:999px;background:var(--card,#fff);color:var(--ink,#202a33);padding:8px 12px;font:inherit}
.bookmark-filters button.active{background:rgba(31,111,79,.12);border-color:#267452;color:#216b4e;font-weight:700}
.hadith-bookmark-row .quran-bookmark-btn.saved{background:rgba(31,111,79,.12);border-color:#267452;color:#216b4e}

/* v30.3: Saved readings are a first-class section in the Islamic Library hub */
.islam-bookmarks-tile{border-color:rgba(28,112,79,.28);background:linear-gradient(135deg,rgba(28,112,79,.075),rgba(196,160,75,.055))}
.islam-bookmark-count{display:inline-block;margin-left:7px;color:var(--muted);font-size:.88em;font-weight:700}


/* FountNews v31 — Islamic Library home and Quran reading modes */
.islam-hero-v31{margin-bottom:12px;padding:25px 22px 21px}
.fn-daily-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.fn-daily-card{min-width:0;padding:14px 13px}
.fn-daily-card>span{background:var(--soft);color:#176b45}
[data-theme="dark"] .fn-daily-card>span{color:#8bc9a7}
.fn-daily-card .fn-daily-ar{font-size:23px;line-height:2.05;min-height:74px}
.fn-daily-card p{font-size:13px;line-height:1.8}
.islam-bookmarks-feature{width:100%;min-height:82px;margin:0 0 18px;box-sizing:border-box}
.islam-section-title{margin:20px 0 11px}
.islam-section-title>span{display:block;color:#176b45;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
[data-theme="dark"] .islam-section-title>span{color:#8bc9a7}
.islam-section-title h2{margin:3px 0 3px;color:var(--ink);font-size:20px}
.islam-section-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.islam-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.islam-core-tile{min-height:112px;padding:15px 13px;border-color:rgba(23,107,69,.23)}
.islam-core-tile .islam-icon{width:45px;height:45px;font-size:25px}
.islam-core-tile .islam-copy strong{font-size:16px}
.islam-core-tile .islam-copy small{font-size:12px}
.islam-quran-tile{background:linear-gradient(135deg,var(--card),rgba(23,107,69,.055))}
.islam-hadith-tile{background:linear-gradient(135deg,var(--card),rgba(185,145,58,.065))}
.quran-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 15px}
.quran-mode-switch button{display:grid;gap:4px;min-width:0;padding:12px 10px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.quran-mode-switch button strong{font-size:13px}
.quran-mode-switch button small{font-size:10px;color:var(--muted)}
.quran-mode-switch button.active{border-color:#176b45;background:rgba(23,107,69,.09);box-shadow:inset 0 0 0 1px #176b45}
.quran-mode-switch button.active strong{color:#176b45}
[data-theme="dark"] .quran-mode-switch button.active strong{color:#8bc9a7}
.quran-mode-switch button:focus-visible,.mushaf-page-picker button:focus-visible{outline:2px solid #b88b35;outline-offset:2px}
.quran-mode-switch[hidden],#quran-mushaf-panel[hidden],#quran-tafsir-panel[hidden]{display:none!important}
.mushaf-toolbar{display:grid;gap:7px;margin:10px 0 12px}
.mushaf-toolbar>label{font-size:12px;font-weight:800;color:var(--muted)}
.mushaf-page-picker{display:flex;align-items:center;gap:6px;min-width:0}
.mushaf-page-picker button,.mushaf-bottom-nav button{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:12px;font-weight:800}
.mushaf-page-picker button:disabled,.mushaf-bottom-nav button:disabled{opacity:.4;cursor:not-allowed}
.mushaf-page-picker input{width:70px;min-width:0;min-height:40px;padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;text-align:center}
.mushaf-page-picker span{color:var(--muted);font-size:12px;white-space:nowrap}
.mushaf-page-picker #mushaf-go{background:#176b45;border-color:#176b45;color:#fff;flex:1}
.mushaf-page-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.mushaf-page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:var(--soft);color:var(--muted);font-size:11px}
.mushaf-page-heading strong{color:var(--ink);font-size:13px}
.mushaf-surah-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:var(--soft)}
.mushaf-surah-heading strong{color:var(--ink);font-size:14px}
.mushaf-surah-heading small{color:var(--muted);font-size:10px}
.mushaf-ayah{padding:12px 14px 15px;border-top:1px solid var(--line)}
.mushaf-ayah-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}
.mushaf-ayah-text{margin:9px 0 0;color:var(--ink);font-family:"Amiri","Noto Naskh Arabic",serif;font-size:29px;line-height:2.15;text-align:right;overflow-wrap:anywhere}
.mushaf-ayah .quran-bookmark-btn{flex:none}
.mushaf-bottom-nav{display:flex;justify-content:space-between;gap:9px;margin:12px 0}
.mushaf-bottom-nav button{flex:1}
.quran-mode-note{margin:10px 0;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.75}
.quran-resume{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}
.quran-resume[hidden]{display:none!important}
.quran-resume strong,.quran-resume small{display:block}.quran-resume strong{font-size:12px;color:var(--ink)}.quran-resume small{margin-top:3px;font-size:10px;color:var(--muted)}
.quran-resume button{flex:none;border:0;border-radius:8px;padding:9px 11px;background:#176b45;color:#fff;font:inherit;font-size:11px;font-weight:800}
@media(max-width:700px){.fn-daily-grid{grid-template-columns:1fr}.fn-daily-card .fn-daily-ar{min-height:0;font-size:25px}.islam-primary-grid{grid-template-columns:1fr}.islam-core-tile{min-height:94px}.mushaf-ayah-text{font-size:27px;line-height:2.05}}
@media(max-width:420px){.quran-mode-switch{gap:6px}.quran-mode-switch button{padding:10px 8px}.quran-mode-switch button strong{font-size:12px}.mushaf-page-picker{gap:4px}.mushaf-page-picker button{padding:8px 9px}.mushaf-page-picker input{width:56px}.mushaf-ayah{padding:10px 11px 13px}.mushaf-ayah-text{font-size:25px}.mushaf-ayah-meta{align-items:flex-start}.mushaf-ayah-meta span{padding-top:5px}}


/* FountNews v31.1 — daily lesson tab and full-screen Madani Mushaf reader */
.fn-daily-tabs{display:flex;gap:6px;margin:0 0 9px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.fn-daily-tabs button{min-height:39px;padding:8px 16px;border:0;border-radius:9px;background:#176b45;color:#fff;font:inherit;font-size:13px;font-weight:800}
.fn-daily-tabpanel{margin:0 0 16px}
.fn-daily-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fn-daily-card{background:var(--card);color:var(--ink)}
.fn-daily-tasbih select{width:100%;margin:8px 0;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font:inherit;font-size:13px}
.fn-daily-tasbih-label{display:block;margin-top:9px;color:var(--muted);font-size:11px;font-weight:700}
.fn-daily-tasbih-ar{margin:7px 0 2px!important;font-family:"Amiri","Noto Naskh Arabic",serif;font-size:23px!important;line-height:1.8!important;text-align:center}
.fn-daily-tasbih>strong{display:block;color:var(--ink);font-size:14px;text-align:center}
.fn-daily-tasbih>small{display:block;color:var(--muted);font-size:11px;text-align:center}
.fn-daily-tasbih-count{margin:7px 0;font-size:32px;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}
.fn-daily-tasbih-targets{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:8px 0}
.fn-daily-tasbih-targets span{color:var(--muted);font-size:10px}
.fn-daily-tasbih-targets button{padding:5px 9px;border:1px solid var(--line);border-radius:20px;background:var(--soft);color:var(--ink);font:inherit;font-size:10px}
.fn-daily-tasbih-targets button.on{border-color:#176b45;background:#176b45;color:#fff}
.fn-daily-tasbih-progress{height:5px;overflow:hidden;border-radius:99px;background:var(--soft)}
.fn-daily-tasbih-progress span{display:block;height:100%;border-radius:99px;background:#176b45}
.fn-daily-tasbih-tap{width:100%;min-height:42px;margin-top:10px;border:0;border-radius:10px;background:#176b45;color:#fff;font:inherit;font-size:13px;font-weight:800}
.fn-daily-tasbih-more{display:block;margin-top:9px;color:#176b45;text-align:center;font-size:11px;font-weight:800}
[data-theme="dark"] .fn-daily-tasbih-more{color:#9bd5b3}
@media(max-width:700px){.fn-daily-grid{grid-template-columns:1fr}.fn-daily-tabs button{flex:1}}

/* Hide normal app chrome only while the dedicated Mushaf reader is open. */
body.quran-mushaf-active{overflow:hidden;background:var(--bg)}
.quran-mushaf-active .bar,
.quran-mushaf-active .date-strip,
.quran-mushaf-active .read-progress,
.quran-mushaf-active .ticker,
.quran-mushaf-active .home-islam-banner,
.quran-mushaf-active #search,
.quran-mushaf-active .chips,
.quran-mushaf-active .daily-strip,
.quran-mushaf-active .offline,
.quran-mushaf-active .site-footer,
.quran-mushaf-active .bottom-nav,
.quran-mushaf-active .install{display:none!important}
.quran-mushaf-active main#view{position:fixed;inset:0;z-index:150;max-width:none;width:100%;height:100dvh;margin:0;padding:0;overflow:hidden;background:var(--bg)}
.quran-mushaf-shell{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;background:var(--bg);color:var(--ink);overflow:hidden}
.mushaf-reader-topbar{display:flex;align-items:center;gap:10px;flex:none;min-height:58px;padding:calc(env(safe-area-inset-top) + 5px) max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));background:var(--card);border-bottom:1px solid var(--line);box-shadow:0 2px 8px rgba(0,0,0,.07)}
.mushaf-reader-topbar button{flex:none;width:40px;height:40px;border:0;border-radius:11px;background:var(--soft);color:var(--ink);font-size:22px}
.mushaf-reader-title{flex:1;min-width:0;text-align:center}
.mushaf-reader-title strong,.mushaf-reader-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mushaf-reader-title strong{font-family:"Noto Serif Bengali","Hind Siliguri",serif;font-size:18px;font-weight:700}
.mushaf-reader-title small{margin-top:2px;color:var(--muted);font-size:10px}
.mushaf-reader-top-actions{display:flex;gap:5px}
.mushaf-reader-top-actions button{font-size:19px}
.mushaf-reader-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;align-items:center;padding:9px 8px 12px}
.mushaf-image-frame{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:min(100%,760px);min-height:90px;padding:5px;background:#f5f4ee;border:1px solid #c9c9c2;border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);box-sizing:border-box}
.mushaf-image-frame img{display:block;width:100%;height:auto;max-height:calc(100dvh - 188px);object-fit:contain;object-position:center top;background:#f5f4ee}
.mushaf-image-frame img[hidden]{display:none!important}
.mushaf-reader-status{position:static;z-index:1;margin:2px 0 5px;color:#35423a;text-align:center;font-size:10px;pointer-events:none}
.mushaf-image-fallback{padding:28px 16px;color:#30363d;text-align:center;font-size:13px;line-height:1.8}
.mushaf-image-fallback[hidden]{display:none!important}
.mushaf-ayah-details{width:min(100%,760px);margin:9px 0 0;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
.mushaf-ayah-details summary{padding:11px 13px;color:var(--ink);font-size:12px;font-weight:800;cursor:pointer}
.mushaf-reader-ayah-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 12px;border-top:1px solid var(--line)}
.mushaf-reader-ayah-row strong,.mushaf-reader-ayah-row small{display:block}
.mushaf-reader-ayah-row strong{font-size:12px;color:var(--ink)}
.mushaf-reader-ayah-row small{margin-top:2px;font-size:10px;color:var(--muted)}
.mushaf-reader-ayah-row .quran-bookmark-btn{flex:none}
.mushaf-reader-bottom{flex:none;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:var(--card);border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(0,0,0,.06)}
.mushaf-page-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.mushaf-page-controls>button{width:42px;height:38px;border:0;border-radius:10px;background:var(--soft);color:var(--ink);font-size:25px}
.mushaf-page-controls>div{flex:1;min-width:0;text-align:center}
.mushaf-page-controls strong,.mushaf-page-controls small{display:block}
.mushaf-page-controls strong{font-size:12px;color:var(--ink)}
.mushaf-page-controls small{margin-top:2px;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mushaf-audio-row{display:flex;align-items:center;gap:8px;min-width:0}
.mushaf-audio-icon{flex:none;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--ink);font-size:13px}
.mushaf-audio-main{flex:1;min-width:0}
.mushaf-audio-main strong{display:block;margin-bottom:2px;color:var(--muted);font-size:10px}
.mushaf-audio-main audio{display:block;width:100%;height:34px;max-width:100%}
#mushaf-first-bookmark{flex:none;width:38px;height:38px;border:0;border-radius:9px;background:var(--soft);color:var(--ink);font-size:22px}
#mushaf-first-bookmark.saved{color:#98701b;background:#f1ead5}
.mushaf-drawer-layer,.mushaf-settings-layer{position:fixed;inset:0;z-index:260}
.mushaf-drawer-layer[hidden],.mushaf-settings-layer[hidden]{display:none!important}
.mushaf-drawer-backdrop,.mushaf-settings-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(0,0,0,.54)}
.mushaf-drawer{position:absolute;top:0;bottom:0;left:0;width:min(88vw,390px);padding:calc(env(safe-area-inset-top) + 13px) 12px calc(env(safe-area-inset-bottom) + 12px);overflow:auto;background:var(--card);color:var(--ink);box-shadow:8px 0 30px rgba(0,0,0,.18)}
.mushaf-drawer-progress{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--soft)}
.mushaf-drawer-progress small,.mushaf-drawer-progress strong,.mushaf-drawer-progress span{display:block}
.mushaf-drawer-progress small{color:var(--muted);font-size:11px}
.mushaf-drawer-progress strong{margin:5px 0;color:var(--ink);font-size:17px}
.mushaf-drawer-progress span{color:var(--muted);font-size:11px}
.mushaf-drawer-tabs{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0 10px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--soft)}
.mushaf-drawer-tabs button{min-height:42px;border:0;border-right:1px solid var(--line);background:transparent;color:var(--muted);font:inherit;font-size:12px}
.mushaf-drawer-tabs button:last-child{border-right:0}
.mushaf-drawer-tabs button.active{background:#dfe8e2;color:#174c35;font-weight:800}
[data-theme="dark"] .mushaf-drawer-tabs button.active{background:#294638;color:#e4f3e9}
.mushaf-drawer-list{display:grid;gap:4px}
.mushaf-drawer-item{display:flex;align-items:center;gap:10px;width:100%;min-height:53px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;font:inherit}
.mushaf-drawer-item:active,.mushaf-drawer-item:hover{background:var(--soft)}
.mushaf-drawer-item strong,.mushaf-drawer-item small{display:block}
.mushaf-drawer-item strong{font-size:13px}
.mushaf-drawer-item small{margin-top:2px;color:var(--muted);font-size:10px}
.mushaf-drawer-num{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:var(--soft);color:var(--ink);font-size:12px}
.mushaf-juz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.mushaf-juz-grid button{display:grid;gap:3px;min-height:63px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit}
.mushaf-juz-grid button span{color:var(--muted);font-size:10px}
.mushaf-juz-grid button strong{font-size:16px}
.mushaf-settings-card{position:absolute;top:calc(env(safe-area-inset-top) + 66px);right:8px;width:min(340px,calc(100vw - 16px));padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--card);color:var(--ink);box-shadow:0 12px 34px rgba(0,0,0,.22)}
.mushaf-settings-card>strong{display:block;margin-bottom:10px;font-size:15px}
.mushaf-settings-card>button{display:block;width:100%;min-height:45px;padding:10px 8px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:13px}
.mushaf-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 3px;border-top:1px solid var(--line);font-size:13px}
.mushaf-setting-row input{width:20px;height:20px;accent-color:#176b45}
.mushaf-search-box{display:flex;gap:6px;padding:8px 0}
.mushaf-search-box[hidden]{display:none!important}
.mushaf-search-box input{flex:1;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font:inherit}
.mushaf-search-box button{padding:8px 12px;border:0;border-radius:8px;background:#176b45;color:#fff;font:inherit}
.mushaf-settings-card>small{display:block;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.6}
.quran-mushaf-shell.fit-to-screen .mushaf-image-frame{width:min(100%,900px);height:100%;min-height:0;flex:1;align-items:center}
.quran-mushaf-shell.fit-to-screen .mushaf-image-frame img{width:auto;max-width:100%;height:100%;max-height:calc(100dvh - 180px);object-fit:contain}
.quran-mushaf-shell.fit-to-screen .mushaf-reader-stage{padding-top:6px;padding-bottom:6px}
.quran-mushaf-shell.fit-to-screen .mushaf-ayah-details{flex:none}
.quran-mushaf-shell.mushaf-landscape .mushaf-image-frame img{max-height:calc(100dvh - 165px)}
@media(max-width:480px){
 .mushaf-reader-topbar{min-height:53px;gap:6px}
 .mushaf-reader-title strong{font-size:16px}
 .mushaf-reader-topbar button{width:37px;height:37px}
 .mushaf-reader-stage{padding:6px 5px 8px}
 .mushaf-image-frame{padding:3px}
 .mushaf-image-frame img{max-height:calc(100dvh - 174px)}
 .mushaf-reader-bottom{padding-top:5px}
 .mushaf-audio-main audio{height:31px}
 .mushaf-drawer{width:min(88vw,370px)}
}
@media(max-width:360px){
 .mushaf-audio-icon{display:none}
 .mushaf-page-controls>button{width:36px}
 .mushaf-reader-title strong{font-size:15px}
}

.fn-daily-tasbih-reset{display:block;width:100%;margin-top:6px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font:inherit;font-size:11px}
.mushaf-page-jump{padding:9px 3px;border-top:1px solid var(--line)}
.mushaf-page-jump>label{display:block;margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:700}
.mushaf-page-jump>div{display:flex;gap:6px}
.mushaf-page-jump input{width:90px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font:inherit;text-align:center}
.mushaf-page-jump button{flex:1;border:0;border-radius:8px;background:#176b45;color:#fff;font:inherit;font-size:12px;font-weight:800}

/* v31.2 — 610-page IndoPak 15-line page renderer */
@font-face{font-family:IndoPakNastaleeq;src:url('https://verses.quran.foundation/fonts/quran/hafs/nastaleeq/indopak/indopak-nastaleeq-waqf-lazim-v4.2.1.woff2') format('woff2');font-display:swap}
.indopak-page{width:100%;max-width:760px;margin:0 auto;padding:10px 8px;background:#fff;color:#111;border:1px solid #b7a88b;box-shadow:0 2px 12px rgba(0,0,0,.12);direction:rtl}
.indopak-page-inner{border:2px solid #7e6848;padding:9px 7px;min-height:600px;display:flex;flex-direction:column;justify-content:space-between}
.indopak-line{font-family:IndoPakNastaleeq,serif;font-size:clamp(19px,3.9vw,29px);line-height:1.9;text-align:justify;text-align-last:justify;white-space:normal;min-height:1.9em;overflow-wrap:anywhere}
.indopak-line:empty:after{content:' ';white-space:pre}
[data-theme="dark"] .indopak-page{background:#fff;color:#111}
@media(max-width:480px){.indopak-page{padding:6px 4px}.indopak-page-inner{padding:6px 4px;min-height:540px}.indopak-line{font-size:clamp(17px,4.4vw,23px);line-height:2.05}}

.quran-mushaf-shell.fit-to-screen .mushaf-image-frame .indopak-page{width:min(100%,760px);max-height:calc(100dvh - 180px);overflow:auto}
.quran-mushaf-shell.mushaf-landscape .mushaf-image-frame .indopak-page{max-height:calc(100dvh - 165px)}

/* v31.2 embedded verified IndoPak 15-line reader */
.mushaf-external-shell{height:100dvh;min-height:100dvh;display:flex;flex-direction:column}
.mushaf-external-info{padding:9px 13px;background:var(--card);color:var(--ink);border-bottom:1px solid var(--line)}
.mushaf-external-info strong{font-size:13px}.mushaf-external-info p{margin:3px 0 5px;font-size:11px;line-height:1.55;color:var(--muted)}
.mushaf-external-info a,.mushaf-external-footer a{color:var(--accent,#c71920);font-size:12px;font-weight:800;text-decoration:none}
.mushaf-external-frame{flex:1;min-height:0;background:#fff}.mushaf-external-frame iframe{display:block;width:100%;height:100%;min-height:420px;border:0;background:#fff}
.mushaf-external-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;background:var(--card);border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.mushaf-external-open{color:#fff;text-decoration:none;font-size:20px;padding:4px 9px}
.fn-daily-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0;padding:18px;border:1px solid var(--line);border-left:4px solid #176b45;border-radius:14px;background:var(--soft);color:var(--ink);text-decoration:none}.fn-daily-entry strong{font-size:18px}.fn-daily-entry span{flex:1;min-width:180px;color:var(--muted);font-size:13px}.fn-daily-entry b{color:#176b45;font-size:13px}.fn-daily-page .fn-daily-tabpanel{margin-top:16px}.quran-autoscroll{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px;margin:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.quran-autoscroll button{border:0;border-radius:8px;padding:9px 14px;background:#176b45;color:white;font:inherit;font-weight:700}.quran-autoscroll label{display:flex;align-items:center;gap:8px;font-size:13px}.quran-mushaf-shell .mushaf-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;flex-wrap:wrap}.quran-mushaf-shell .mushaf-toolbar button,.quran-mushaf-shell footer button{border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--soft);color:var(--ink);font:inherit}.quran-mushaf-shell .mushaf-toolbar input{width:68px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--ink)}.quran-mushaf-shell .mushaf-reader-stage{flex:1;overflow:auto;display:flex;justify-content:center;padding:8px}.quran-mushaf-shell .mushaf-image-frame{width:min(100%,650px);display:flex;justify-content:center;align-items:flex-start}.quran-mushaf-shell #mushaf-page-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#fff}.quran-mushaf-shell .mushaf-external-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-size:12px}
.mushaf-audio-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--line)}.mushaf-audio-controls label{display:flex;align-items:center;gap:6px;flex:1;min-width:170px;font-size:12px}.mushaf-audio-controls select{min-width:0;max-width:210px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}.mushaf-audio-controls button{border:0;border-radius:8px;padding:8px 10px;background:#176b45;color:#fff;font:inherit;font-size:12px;font-weight:700}.mushaf-audio-controls audio{width:100%;height:34px}

/* v31.4 reader usability and daily lesson polish */
.quran-mushaf-shell .mushaf-reader-stage{touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
.quran-mushaf-shell .mushaf-image-frame{user-select:none;-webkit-user-select:none}
.quran-mushaf-shell #mushaf-page-image{pointer-events:none}
.mushaf-audio-controls{display:grid;grid-template-columns:1fr auto;gap:9px 12px;padding:14px;margin:10px 12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 3px 14px rgba(0,0,0,.05)}
.mushaf-audio-heading{grid-column:1/-1;display:flex;flex-direction:column;gap:3px}
.mushaf-audio-heading strong{font-size:14px;color:var(--ink)}.mushaf-audio-heading small{font-size:11px;color:var(--muted)}
.mushaf-audio-controls label{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;color:var(--muted)}
.mushaf-audio-controls select{flex:1;max-width:none;min-width:0;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:inherit}
.mushaf-audio-buttons{display:flex;gap:6px}.mushaf-audio-controls button{padding:9px 12px;border-radius:9px}
.mushaf-audio-controls audio{grid-column:1/-1;width:100%;height:38px}
.quran-autoscroll{position:sticky;top:5px;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;margin:9px 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 4px 14px rgba(0,0,0,.10);backdrop-filter:blur(12px)}
.quran-autoscroll button{min-height:38px;padding:8px 12px}.quran-scroll-speed{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.quran-scroll-speed button{width:34px;min-height:34px;padding:0;border:1px solid var(--line);background:var(--soft);color:var(--ink);font-size:19px}.quran-scroll-speed strong{min-width:15px;text-align:center;color:var(--ink)}.quran-scroll-speed input{width:62px;accent-color:#176b45}
.fn-daily-page{padding-bottom:24px}.fn-daily-hero{position:relative;overflow:hidden;margin:0 0 15px;padding:18px 17px 20px;border-radius:18px;background:linear-gradient(135deg,#123d31,#176b45 65%,#244e43);color:#fff;box-shadow:0 8px 24px rgba(13,65,48,.17)}
.fn-daily-hero:after{content:'۞';position:absolute;right:12px;bottom:-34px;font-family:serif;font-size:150px;line-height:1;color:rgba(255,255,255,.08);pointer-events:none}
.fn-daily-hero .islam-back{position:relative;z-index:1;display:inline-block;margin-bottom:16px;color:#e4f0e9}.fn-daily-hero .eyebrow{display:block;color:#c5e2d1;font-size:10px;letter-spacing:1.2px}.fn-daily-hero h1{position:relative;z-index:1;margin:7px 0 4px;color:#fff;font-size:27px}.fn-daily-hero>p{position:relative;z-index:1;margin:0;color:#e4f0e9;font-size:13px}.fn-daily-date{position:relative;z-index:1;display:inline-flex;margin-top:13px;padding:6px 10px;border:1px solid rgba(255,255,255,.22);border-radius:99px;background:rgba(255,255,255,.10);color:#fff;font-size:11px}
.fn-daily-page .fn-daily-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.fn-daily-page .fn-daily-card{position:relative;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 3px 12px rgba(0,0,0,.045)}.fn-daily-page .fn-daily-card>span{padding:5px 10px;border-radius:7px;background:#edf3ef;color:#175b3c;font-size:11px}.fn-daily-page .fn-daily-card .fn-daily-ar{min-height:0;margin:14px 0 10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:25px;line-height:2.05;color:var(--ink)}.fn-daily-page .fn-daily-card p{font-size:13px;line-height:1.85}.fn-daily-page .fn-daily-card small{display:block;margin-top:9px;padding-top:8px;border-top:1px solid var(--line);line-height:1.6}.fn-daily-page .fn-daily-tasbih{grid-column:1/-1;background:linear-gradient(180deg,var(--card),var(--soft))}.fn-daily-page .fn-daily-tasbih-ar{font-size:29px!important;text-align:center!important;border:0!important}.fn-daily-page .fn-daily-tasbih-count{width:116px;height:116px;margin:13px auto;display:grid;place-items:center;border:7px solid #dce9e0;border-radius:50%;background:var(--card);color:#176b45;font-size:34px;font-weight:800;box-shadow:inset 0 0 0 5px var(--soft)}.fn-daily-page .fn-daily-tasbih-tap{display:block;width:min(100%,340px);min-height:52px;margin:12px auto 0;border:0;border-radius:12px;background:#176b45;color:#fff;font:inherit;font-size:15px;font-weight:800}.fn-daily-page .fn-daily-footnote{margin:14px 2px 0;padding:11px 13px;border-left:3px solid #176b45;border-radius:7px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.7}
@media(max-width:520px){.quran-autoscroll{top:3px;gap:7px;padding:7px}.quran-autoscroll>button{font-size:12px;padding:7px 9px}.quran-scroll-speed{gap:4px}.quran-scroll-speed input{width:48px}.mushaf-audio-controls{grid-template-columns:1fr;margin:9px 8px 12px;padding:12px}.mushaf-audio-heading,.mushaf-audio-controls audio{grid-column:1}.mushaf-audio-buttons button{flex:1}.fn-daily-page .fn-daily-grid{grid-template-columns:1fr}.fn-daily-page .fn-daily-tasbih{grid-column:1}.fn-daily-hero{padding:16px;border-radius:15px}.fn-daily-hero h1{font-size:24px}}


/* v31.5: full-screen scanned Mushaf page, swipe navigation only. */
.quran-mushaf-active .quran-mushaf-fullscreen{background:#f2f4f6}
.quran-mushaf-fullscreen .mushaf-reader-topbar{position:relative;z-index:3;min-height:58px;flex:none}
.quran-mushaf-fullscreen .mushaf-reader-stage{flex:1;min-height:0;width:100%;height:calc(100dvh - 58px - env(safe-area-inset-top));overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0;margin:0;touch-action:pan-y pinch-zoom;background:#eef1f4}
.quran-mushaf-fullscreen .mushaf-image-frame{width:100%;height:100%;min-height:0;max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;display:flex;align-items:center;justify-content:center}
.quran-mushaf-fullscreen #mushaf-page-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center;background:#fff}
.quran-mushaf-fullscreen #mushaf-page-image[hidden]{display:none!important}
/* Keep Tafsir auto-scroll controls pinned within the reading screen. */
#quran-tafsir-panel{overflow:visible}
#quran-tafsir-panel .quran-autoscroll{position:sticky;top:calc(env(safe-area-inset-top) + 4px);z-index:90;isolation:isolate;background:var(--card);box-shadow:0 5px 16px rgba(0,0,0,.14);}

/* v31.6: usable Mushaf navigation, bookmarks and ayah-to-tafsir bridge */
.quran-mushaf-fullscreen .mushaf-reader-topbar{min-height:62px;padding-bottom:7px}
.quran-mushaf-fullscreen .mushaf-reader-top-actions{display:flex;gap:6px}
.quran-mushaf-fullscreen .mushaf-reader-top-actions button{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:19px}
.quran-mushaf-fullscreen .mushaf-reader-top-actions button.saved{color:#176b45;background:#e8f3ec}
.quran-mushaf-fullscreen .mushaf-reader-stage{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;overflow:hidden}
.quran-mushaf-fullscreen #mushaf-page-image{pointer-events:auto;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom}
.mushaf-page-open-tafsir{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:2;padding:9px 14px;border:1px solid #d4e2d9;border-radius:999px;background:rgba(255,255,255,.94);color:#155b3c;font:600 12px inherit;box-shadow:0 3px 14px rgba(0,0,0,.12);white-space:nowrap}
.mushaf-reader-drawer-layer,.mushaf-page-ayah-layer{position:fixed;inset:0;z-index:220;display:block}.mushaf-reader-drawer-layer[hidden],.mushaf-page-ayah-layer[hidden]{display:none!important}
.mushaf-drawer-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(10,18,15,.52)}
.mushaf-reader-drawer{position:absolute;inset:0 auto 0 0;width:min(86vw,370px);display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 12px) 13px 14px;background:var(--card);color:var(--ink);box-shadow:8px 0 30px rgba(0,0,0,.2)}
.mushaf-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px 12px;border-bottom:1px solid var(--line)}.mushaf-drawer-head strong{font-size:18px}.mushaf-drawer-head button{width:36px;height:36px;border:0;border-radius:9px;background:var(--soft);color:var(--ink);font-size:24px}
.mushaf-drawer-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:11px 0}.mushaf-drawer-tabs button{padding:9px 4px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font:600 13px inherit}.mushaf-drawer-tabs button.active{background:#176b45;color:white;border-color:#176b45}
#mushaf-surah-search{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:inherit}
.mushaf-drawer-list{flex:1;min-height:0;overflow:auto;padding:8px 0 20px}.mushaf-drawer-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;font:inherit}.mushaf-drawer-item strong,.mushaf-drawer-item small{display:block}.mushaf-drawer-item small{margin-top:3px;color:var(--muted);font-size:11px}.mushaf-drawer-num{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--soft);color:var(--muted);font-size:12px}
.mushaf-juz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 0}.mushaf-juz-grid button{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px 9px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink)}
.mushaf-page-ayah-sheet{position:absolute;inset:auto 0 0;max-height:72dvh;display:flex;flex-direction:column;padding:14px 15px calc(env(safe-area-inset-bottom) + 14px);border-radius:20px 20px 0 0;background:var(--card);color:var(--ink);box-shadow:0 -8px 30px rgba(0,0,0,.2)}.mushaf-sheet-hint{margin:9px 0;color:var(--muted);font-size:12px}.mushaf-page-ayah-row{display:flex;align-items:center;gap:7px;padding:10px 0;border-bottom:1px solid var(--line)}.mushaf-page-ayah-row>div{flex:1;min-width:0}.mushaf-page-ayah-row strong,.mushaf-page-ayah-row small{display:block}.mushaf-page-ayah-row small{margin-top:3px;color:var(--muted);font-size:11px}.mushaf-page-ayah-row button{padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font:600 11px inherit;white-space:nowrap}.mushaf-page-ayah-row button:first-of-type{background:#176b45;color:white;border-color:#176b45}
@media(max-width:420px){.mushaf-page-ayah-row{gap:5px}.mushaf-page-ayah-row button{padding:7px 6px;font-size:10px}.mushaf-page-open-tafsir{bottom:7px}}
body.quran-autoscrolling,body.quran-autoscrolling html{scroll-behavior:auto!important}
body.quran-autoscrolling #quran-tafsir-panel{scroll-behavior:auto!important}
/* In-app Bengali news reader */
.post-tts-bar{display:flex;align-items:center;gap:10px;margin:12px 0 8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.post-tts-bar button{border:0;border-radius:9px;padding:9px 16px;background:#176b4b;color:#fff;font-weight:800;font-size:15px;min-height:40px}
.post-tts-bar button[hidden]{display:none!important}
.post-tts-bar span{font-size:13px;color:var(--muted)}
.art .body .tts-speaking{background:#fff2b8!important;color:#242424!important;border-radius:5px;box-shadow:0 0 0 4px #fff2b8;transition:background-color .18s ease}
html[data-theme="dark"] .art .body .tts-speaking{background:#66551b!important;color:#fff!important;box-shadow:0 0 0 4px #66551b}

/* v32.0 — compact TV breaking bulletin, exit action and sticky news narration */
.exit-app{font-size:22px!important;color:var(--red)!important;font-weight:900}
.fn-tv{margin:10px 10px 8px;overflow:hidden;border-radius:13px;background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.07) 1px,transparent 1.5px) 0 0/14px 14px,linear-gradient(115deg,#171719,#08090b 65%,#280708);color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.22)}
.fn-tv[hidden]{display:none!important}
.fn-tv-top{display:flex;align-items:center;justify-content:space-between;min-height:43px;border-bottom:1px solid rgba(255,255,255,.16)}
.fn-tv-label{display:flex;align-items:center;gap:9px;padding:8px 23px 8px 13px;background:linear-gradient(130deg,#e00000,#850000);font-weight:800;font-size:17px;clip-path:polygon(0 0,100% 0,calc(100% - 13px) 100%,0 100%)}
.fn-tv-label i{width:9px;height:9px;border-radius:50%;background:white;box-shadow:0 0 0 5px rgba(255,255,255,.13);animation:fnTvPulse 1.2s infinite}
.fn-tv-language{display:inline-grid;perspective:280px;min-width:126px}.fn-tv-language>span{grid-area:1/1;white-space:nowrap;backface-visibility:hidden;transition:transform .42s ease,opacity .3s ease}.fn-tv-en{transform:rotateX(-90deg);opacity:0}.fn-tv-language.english .fn-tv-bn{transform:rotateX(90deg);opacity:0}.fn-tv-language.english .fn-tv-en{transform:rotateX(0);opacity:1}
.fn-tv-time{padding:0 12px;color:#ffb7b7;font-size:12px}
.fn-tv-stage{position:relative;height:204px;overflow:hidden}
.fn-tv-stage:before{content:"";position:absolute;left:11px;top:18px;bottom:18px;width:4px;border-radius:3px;background:#e00000}
.fn-tv-slide{position:absolute;inset:0;display:none;flex-direction:column;justify-content:center;gap:10px;padding:15px 17px 15px 25px}
.fn-tv-slide.active{display:flex;animation:fnTvIn .42s ease-out both}
.fn-tv-slide>a:first-child{color:#fff;text-decoration:none;font-size:clamp(22px,5vw,34px);font-weight:800;line-height:1.35;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.fn-tv-slide>b{align-self:flex-start;padding:4px 11px;background:#d90000;color:white;font-size:14px;border-radius:3px}
.fn-tv-slide p{margin:0;color:#fff;font-size:clamp(17px,3.5vw,23px);font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.fn-tv-slide ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}.fn-tv-slide li{font-size:clamp(15px,3vw,19px);font-weight:700;line-height:1.4;padding-left:18px;position:relative;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.fn-tv-slide li:before{content:"";position:absolute;left:2px;top:.55em;width:8px;height:8px;background:#e00000;transform:rotate(45deg)}
.fn-tv-cta{align-self:flex-start;padding:6px 12px;border:1px solid white;border-radius:5px;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.fn-tv-dots{display:flex;gap:7px;padding:0 15px 11px 25px}.fn-tv-dots button{width:35px;height:5px;padding:0;border:0;border-radius:4px;background:rgba(255,255,255,.25)}.fn-tv-dots button.on{background:#e00000;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
@keyframes fnTvIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes fnTvPulse{50%{box-shadow:0 0 0 9px rgba(255,255,255,0)}}
.post-tts-bar{position:fixed;left:10px;right:10px;bottom:calc(66px + env(safe-area-inset-bottom));z-index:54;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:var(--card);box-shadow:0 -3px 18px rgba(0,0,0,.22)}
.art{padding-bottom:92px}
.post-tts-controls,.post-tts-speed{display:flex;align-items:center;gap:7px}.post-tts-bar button{min-width:38px}.post-tts-speed button{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font-size:21px;font-weight:800}.post-tts-speed strong{min-width:35px;text-align:center;font-size:13px;color:var(--ink)}
@media(max-width:380px){.fn-tv-stage{height:190px}.fn-tv-label{font-size:15px}.post-tts-bar{gap:5px;padding:8px}.post-tts-controls,.post-tts-speed{gap:5px}.post-tts-bar button{padding:8px 10px}}

/* v32.1 screenshot corrections */
#bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.fn-exit-dialog[hidden]{display:none!important}
.fn-exit-dialog{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:22px;background:rgba(0,0,0,.68)}
.fn-exit-card{width:min(420px,100%);padding:25px 22px 18px;border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--ink);text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.35)}
.fn-exit-symbol{display:inline-grid;place-items:center;width:54px;height:54px;border-radius:50%;background:color-mix(in srgb,var(--red) 13%,var(--card));color:var(--red);font-size:30px}
.fn-exit-card h2{margin:12px 0 7px;font-size:21px}.fn-exit-card p{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.55}
.fn-exit-card>div{display:flex;justify-content:center;gap:10px}.fn-exit-card button{min-width:110px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font:inherit;font-weight:800}.fn-exit-card #fn-exit-confirm{background:var(--red);border-color:var(--red);color:#fff}
.fn-tv-slide[hidden],.fn-tv-dots button[hidden]{display:none!important}
.fn-tv-slide.active{animation:fnTvReveal .65s cubic-bezier(.2,.8,.2,1) both}
.fn-tv-slide[data-tv-slide="1"].active{animation:fnTvRise .7s cubic-bezier(.2,.8,.2,1) both}
.fn-tv-slide[data-tv-slide="2"].active li{animation:fnTvFromRight .55s ease-out both}
.fn-tv-slide[data-tv-slide="2"].active li:nth-child(2){animation-delay:.15s}.fn-tv-slide[data-tv-slide="2"].active li:nth-child(3){animation-delay:.3s}
.fn-tv-slide[data-tv-slide="3"].active{animation:fnTvZoom .7s ease-out both}
@keyframes fnTvReveal{from{opacity:0;clip-path:inset(0 100% 0 0);transform:translateX(-18px)}to{opacity:1;clip-path:inset(0);transform:none}}
@keyframes fnTvRise{from{opacity:0;transform:translateY(45px)}to{opacity:1;transform:none}}
@keyframes fnTvFromRight{from{opacity:0;transform:translateX(45px)}to{opacity:1;transform:none}}
@keyframes fnTvZoom{from{opacity:0;transform:scale(1.12);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.fn-tv-slide.active,.fn-tv-slide[data-tv-slide="2"].active li{animation:none!important}}

/* v32.2: persistent article narration controls, ticker and TV bulletin layout */
@media(max-width:380px){.post-tts-bar{left:7px;right:7px;bottom:calc(64px + env(safe-area-inset-bottom));}}
@media(prefers-reduced-motion:reduce){.fn-tv-language>span{transition:none!important}}

/* In-app e-paper */
.epaper-app-page{padding:12px 0 24px;min-height:calc(100dvh - 150px)}
.epaper-app-heading{padding:10px 16px 12px}
.epaper-app-heading .eyebrow{color:var(--red);font-size:10px;font-weight:900;letter-spacing:2px}
.epaper-app-heading h1{margin:5px 0;font-size:26px}
.epaper-app-heading p{margin:0;color:var(--muted);font-size:13px}
.epaper-app-frame-wrap{width:100%;height:calc(100dvh - 255px);min-height:520px;overflow:hidden;background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.epaper-app-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.epaper-open-web{display:block;margin:12px 16px;color:var(--red);font-weight:700;text-decoration:none}
@media(min-width:760px){.epaper-app-frame-wrap{height:calc(100dvh - 290px)}}

/* v32.4: native FountNews e-paper reader, driven by GitHub Pages manifest */
.epaper-native{padding:10px 0 28px;min-height:calc(100dvh - 140px)}
.epaper-native-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 14px}.epaper-native-head small{color:var(--red);font-size:9px;font-weight:900;letter-spacing:1.4px}.epaper-native-head h1{margin:3px 0;font-size:25px}.epaper-native-head p{margin:0;color:var(--muted);font-size:12px}.epaper-pdf{padding:9px 13px;border-radius:9px;background:var(--red);color:#fff;text-decoration:none;font-size:12px;font-weight:800}.epaper-toolbar{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:var(--soft);border-block:1px solid var(--line);font-size:12px}.epaper-toolbar label{display:flex;align-items:center;gap:8px}.epaper-toolbar select{max-width:160px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:inherit}.epaper-viewer{display:flex;align-items:center;gap:5px;padding:9px 5px 0}.epaper-viewer>button{flex:none;width:30px;height:48px;border:0;border-radius:8px;background:var(--soft);color:var(--ink);font-size:27px}.epaper-viewer>button:disabled{opacity:.25}.epaper-page-wrap{flex:1;min-width:0}.epaper-page-name{text-align:center;padding:4px;font-size:12px;font-weight:800;color:var(--muted)}.epaper-page-imagebox{position:relative;width:100%;background:#eee;line-height:0;box-shadow:0 2px 14px #0002}.epaper-page-imagebox>img{display:block;width:100%;height:auto;max-height:calc(100dvh - 250px);object-fit:contain}.epaper-hotspot{position:absolute;display:block;background:transparent;border:0;cursor:pointer}.epaper-hotspot:focus-visible{outline:2px solid var(--red);background:#e0000015}.epaper-page-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}.epaper-page-controls button{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:12px;font-weight:700}.epaper-page-controls button:disabled{opacity:.35}.epaper-page-controls strong{font-size:13px}.epaper-thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 12px 12px;scroll-snap-type:x mandatory}.epaper-thumbs button{flex:0 0 76px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);scroll-snap-align:start}.epaper-thumbs button.active{border:2px solid var(--red)}.epaper-thumbs img{display:block;width:100%;height:92px;object-fit:contain;background:#eee}.epaper-thumbs small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding-top:4px}.epaper-hint,.epaper-status{margin:4px 14px;color:var(--muted);font-size:11px;line-height:1.5}.epaper-status:empty{display:none}
