*{box-sizing:border-box}
body{margin:0;background:#faf6ea;color:#222;font-family:Cairo,Tahoma,Arial,sans-serif;line-height:1.7}
a{color:#0b6b4f}
.demo{background:#fff3cd;color:#664d03;text-align:center;padding:6px 10px;font-size:13px;border-bottom:1px solid #e8d48a}
.hdr{background:#0f4c3a;color:#fff;padding:20px 16px 24px;text-align:center;border-bottom:4px solid #c9a227;background-image:radial-gradient(circle at 20% 20%,rgba(201,162,39,.18),transparent 40%),radial-gradient(circle at 80% 80%,rgba(201,162,39,.12),transparent 40%)}
.bsm{font-family:Amiri,serif;font-size:26px;color:#e8c85a;margin:0 0 4px}
.brand{margin:0 0 6px;font-size:14px}
.brand a{color:#e8c85a;text-decoration:none;border:1px solid #c9a227;border-radius:16px;padding:2px 12px}
.hdr h1{margin:0 0 6px;font-family:Amiri,serif;font-size:36px;line-height:1.3}
.hdr p{margin:0;opacity:.92;font-size:15px}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px 30px}
.bc{font-size:13px;color:#666;margin:14px 0}
.bc a{text-decoration:none}
h2{font-family:Amiri,serif;color:#0f4c3a;font-size:26px;margin:26px 0 10px;border-right:5px solid #c9a227;padding-right:10px}
.stats{display:flex;flex-wrap:wrap;gap:10px}
.st{flex:1 1 120px;background:#fff;border:1px solid #e3d9b5;border-radius:8px;padding:10px;text-align:center}
.st{text-decoration:none;color:inherit}
a.st:hover{border-color:#c9a227}
a.st span{text-decoration:underline dotted;text-underline-offset:3px}
.st b{display:block;font-size:24px;color:#0f4c3a;font-family:Amiri,serif}
.st span{font-size:13px;color:#666}
.intro{background:#fff;border:1px solid #e3d9b5;border-radius:8px;padding:12px 16px;margin-top:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid #0f4c3a;background:#fff;color:#0f4c3a;border-radius:20px;padding:6px 14px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.chip small{opacity:.75}
.chip.on{background:#0f4c3a;color:#e8c85a}
.panel{background:#fff;border:1px solid #e3d9b5;border-radius:8px;padding:14px;margin-top:12px}
.panel .top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
.panel h3{margin:0;font-size:18px;color:#0f4c3a}
.panel h3 small{display:block;font-size:13px;color:#5b5b5b;font-weight:400}
.note{font-size:12.5px;color:#6b5400;background:#fff8e1;border:1px dashed #e0c36a;border-radius:6px;padding:6px 10px;margin-bottom:10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px}
.sc{display:flex;gap:4px;align-items:stretch}
.sc .sb{flex:1;min-width:0}
.sb{border:1px solid #d9cc99;background:#fbf8ec;border-radius:8px;padding:7px 8px;font:inherit;font-size:14px;cursor:pointer;text-align:right;color:#0f4c3a}
.sb i{font-style:normal;display:inline-block;min-width:26px;color:#a8892a;font-size:12px}
.sb:hover{background:#f1e8c4}
.sb.on{background:#0f4c3a;color:#e8c85a;border-color:#0f4c3a}
.sb.on i{color:#e8c85a}
.dl{display:flex;align-items:center;justify-content:center;width:30px;border:1px solid #d9cc99;background:#fff;border-radius:8px;color:#a8892a;text-decoration:none;font-size:14px}
.dl:hover{background:#c9a227;color:#0f4c3a}
.abar{display:none;background:#fbf8ec;border:1px solid #c9a227;border-radius:8px;padding:10px 12px;margin-bottom:12px}
.abar .t{font-weight:700;color:#0f4c3a;font-size:16px}
.abar .cnt{font-size:12.5px;color:#5b5b5b;margin:2px 0 8px}
.abar .acts{display:flex;flex-wrap:wrap;gap:6px}
.abar .acts a,.abar .acts button{display:inline-block;padding:5px 12px;border-radius:16px;border:0;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;color:#fff}
.abar .hint{margin-top:8px;font-size:12.5px;color:#6b5400;display:none}
a.b{display:inline-block;padding:4px 12px;border-radius:14px;font-weight:700;font-size:13px;text-decoration:none;color:#fff;background:#1e7a5c}
a.b.d{background:#c9a227;color:#0f4c3a}
a.b.a{background:#6b7b74}
.tw{overflow-x:auto;background:#fff;border:1px solid #e3d9b5;border-radius:8px}
table{border-collapse:collapse;width:100%;min-width:620px}
th{background:#0f4c3a;color:#e8c85a;padding:9px 8px;border:1px solid #1f6a54}
td{padding:7px 8px;border:1px solid #eee3bd}
td.c{text-align:center;white-space:nowrap}
tbody tr:nth-child(even){background:#fbf8ec}
.bar{display:flex;gap:10px;margin:16px 0 8px}
.bar input{flex:1;padding:10px;border:1px solid #c9bd8a;border-radius:6px;font:inherit;background:#fff}
.info{font-size:14px;color:#555;margin:4px 2px 10px}
.rel{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:10px}
.rc{display:block;background:#fff;border:1px solid #e3d9b5;border-radius:8px;padding:10px 12px;text-decoration:none;color:#222}
.rc:hover{border-color:#c9a227}
.rc b{display:block;color:#0f4c3a}
.rc span{font-size:12.5px;color:#5b5b5b}
.share{text-align:center;margin:24px 0 6px}
.share p{margin:0 0 8px;font-weight:700;color:#0f4c3a}
.share a{display:inline-block;margin:3px;padding:6px 14px;border-radius:18px;color:#fff;font-size:14px;font-weight:600;text-decoration:none}
.ft{text-align:center;font-family:Amiri,serif;font-size:20px;color:#0f4c3a;margin:18px 0 150px}
.ft small{display:block;font-family:Cairo,Tahoma,sans-serif;font-size:12px;color:#888;margin-top:4px}
#pl{position:fixed;right:0;left:0;bottom:0;z-index:50;background:#0f4c3a;color:#fff;border-top:3px solid #c9a227;padding:10px 12px;display:none;box-shadow:0 -3px 12px rgba(0,0,0,.25)}
#pl .row{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#pl .ttl{flex:1 1 220px;font-weight:700;color:#e8c85a;font-size:15px}
#pl .ttl small{display:block;color:#fff;font-weight:400;font-size:12px;opacity:.9}
#pl button,#pl select{padding:6px 10px;border-radius:6px;border:1px solid #c9a227;background:#fff;color:#0f4c3a;font:inherit;font-size:14px;cursor:pointer}
#pl button{font-weight:700}
#pl .x{background:transparent;color:#fff;border-color:#fff}
#pl audio{flex:2 1 280px;width:100%;min-width:220px;height:38px}
#pl .msg{flex:1 1 100%;font-size:13px;color:#ffd9d4;display:none}
#pl .msg a{color:#e8c85a}
.wrap>.stats{margin-top:16px}

.nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px}
.nav a{color:#fff;text-decoration:none;background:rgba(255,255,255,.14);padding:5px 12px;border-radius:16px;font-size:14px}
.nav a:hover{background:rgba(255,255,255,.28)}
.fnav{margin-top:8px;font-size:13px}.fnav a{color:inherit;text-decoration:none}.fnav a:hover{text-decoration:underline}
.sect{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px}.sect a{font-size:13px;text-decoration:none}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:10px 0 18px}
.tile{display:block;text-decoration:none;background:#fff;border:1px solid #e3dcc6;border-radius:10px;padding:14px 10px;text-align:center;color:#0f4c3a;transition:transform .15s,box-shadow .15s}
.tile:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1)}
.tile b{display:block;font-size:16px}.tile span{font-size:12px;color:#5b5b5b}
.btn{background:#0f4c3a;color:#fff;border:0;border-radius:8px;padding:9px 14px;font-family:inherit;font-size:14px;cursor:pointer}
.bar{display:flex;gap:8px}.bar input{flex:1}
.qp{background:#fff;border:1px solid #e3dcc6;border-radius:12px;padding:14px;margin:10px 0 18px}
.qrow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.qrow select{flex:1;min-width:140px;padding:8px;font-family:inherit;border:1px solid #ccc;border-radius:8px}
.qp audio{width:100%}.qmsg{color:#a33;font-size:13px;min-height:16px}.qlink{font-size:13px;text-decoration:none}
.prose{background:#fff;border:1px solid #e3dcc6;border-radius:12px;padding:8px 20px 16px;line-height:2}
.prose li{margin:4px 0}

.grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
.sb{display:block;line-height:1.5}
.sb b{display:inline;font-size:15px}
.sb em{display:block;font-style:normal;font-size:12px;color:#5b5b5b;direction:ltr;text-align:right}
.sb.on em{color:#e8c85a}
.sb .mt{display:block;font-size:11.5px;margin-top:2px}
.mk{color:#6b5400}.md{color:#1e7a5c}
.sb.on .mt{color:#fff}
.dl{cursor:pointer;min-width:34px;font:inherit;font-size:13px;padding:0}
.dl[data-busy]{background:#f1e8c4}
#pl .ttl a{display:inline-block;margin-top:2px;color:#fff;font-size:12px;font-weight:400;text-decoration:underline}
body.plon{padding-bottom:120px}
.abar .acts button#adl{background:#c9a227;color:#0f4c3a}

/* ===== النسخة الإنجليزية (LTR) ===== */
html[dir=ltr] h2{border-right:0;padding-right:0;border-left:5px solid #c9a227;padding-left:10px}
html[dir=ltr] .sb{text-align:left}
html[dir=ltr] .sb em{direction:rtl;text-align:left;font-family:Amiri,serif;font-size:14px}
html[dir=ltr] .ft{font-family:Cairo,Tahoma,sans-serif;font-size:16px}
.altname{margin:-4px 0 12px;text-align:center;font-family:Amiri,serif;font-size:24px;color:#0f4c3a}
.sfind{margin:10px 0 8px;display:flex;gap:10px;align-items:center}
.sfind input{flex:1;padding:9px 10px;border:1px solid #c9bd8a;border-radius:6px;font:inherit;background:#fff}
#sqn{font-size:13px;color:#a33}
.lsw{font-weight:700;border:1px solid #e8c85a}
button,a{touch-action:manipulation}
html{-webkit-text-size-adjust:100%}
/* ===== الهاتف ===== */
@media(max-width:640px){
 .hdr{padding:14px 12px 16px}
 .hdr h1{font-size:28px}
 .hdr p{font-size:14px}
 .bsm{font-size:20px}
 .nav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:6px;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .nav::-webkit-scrollbar{display:none}
 .nav a{flex:0 0 auto;white-space:nowrap;padding:8px 14px;font-size:15px}
 .wrap{padding:0 12px 24px}
 h2{font-size:22px;margin:20px 0 8px}
 .stats .st{flex:1 1 42%}
 .bar input,.sfind input{font-size:16px;min-height:46px}
 .btn{min-height:46px;font-size:15px;padding:8px 12px}
 .chips:not(.letters){flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .chips:not(.letters) .chip{flex:0 0 auto;white-space:nowrap;padding:9px 14px}
 .chips.letters .chip{padding:9px 14px}
 .rel{grid-template-columns:1fr 1fr;gap:8px}
 .rc{padding:12px 10px}
 .rc b{font-size:15px;line-height:1.4}
 .tiles{grid-template-columns:1fr 1fr}
 .grid{grid-template-columns:1fr;gap:8px}
 .sb{padding:10px 12px;font-size:15px}
 .sb b{font-size:16px}
 .dl{min-width:52px;font-size:16px}
 .abar .acts a,.abar .acts button{padding:10px 16px;font-size:14px}
 .qrow select{min-width:100%}
 .tw{border:0;background:transparent;overflow:visible}
 table.rt{min-width:0}
 table.rt thead{display:none}
 table.rt,table.rt tbody{display:block}
 table.rt tr{display:block;background:#fff;border:1px solid #e3d9b5;border-radius:10px;margin-bottom:10px;padding:4px 12px}
 table.rt td{display:flex;justify-content:space-between;align-items:center;gap:10px;border:0;border-bottom:1px dashed #eee3bd;padding:8px 0;white-space:normal}
 table.rt td:last-child{border-bottom:0}
 table.rt td[data-l]::before{content:attr(data-l);color:#5b5b5b;font-size:12.5px;flex:0 0 auto}
 table.rt td.c{white-space:normal}
 tbody tr:nth-child(even){background:#fff}
 #pl{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
 #pl .ttl{flex:1 1 100%}
 #pl button{flex:1;min-height:42px}
 #pl select{min-height:42px}
 #pl audio{flex:1 1 100%;min-width:0}
 body.plon{padding-bottom:210px}
 .ft{margin-bottom:60px}
}

/* ===== مواقيت الصلاة ===== */
.pt-ctl{background:#fff;border:1px solid #e3d9b5;border-radius:12px;padding:12px;margin-top:12px;display:grid;gap:10px}
.pt-ctl select{width:100%;padding:10px;border:1px solid #c9bd8a;border-radius:8px;font:inherit;font-size:16px;background:#fff;min-height:44px}
.pt-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.pt-opts label span{display:block;font-size:12.5px;color:#5b5b5b;margin-bottom:3px}
.pt-msg{display:none;font-size:13.5px;color:#6b5400;background:#fff8e1;border:1px dashed #e0c36a;border-radius:6px;padding:6px 10px}
.pt-today{background:#0f4c3a;color:#fff;border-radius:14px;padding:14px;margin-top:14px}
.pt-place{font-weight:700;color:#e8c85a;font-size:17px}
.pt-date{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;opacity:.95;margin:2px 0 10px}
.pt-h{color:#e8c85a}
.pt-next{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px;background:rgba(255,255,255,.12);border-radius:10px;padding:10px 12px;margin-bottom:10px;font-size:16px}
.pt-cd{font-size:24px;font-weight:700;color:#e8c85a;font-variant-numeric:tabular-nums;direction:ltr}
.pt-list{display:grid;gap:6px}
.pt-r{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.07);border-radius:10px;padding:11px 14px;font-size:17px}
.pt-r .t{font-weight:700;font-variant-numeric:tabular-nums}
.pt-r.sr{opacity:.8;font-size:15px}
.pt-r.nx{background:#c9a227;color:#0f4c3a}
.pt-note2{font-size:12.5px;opacity:.9;margin-top:8px}
.pt-note2:empty{display:none}
.pt-q{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e3d9b5;border-radius:12px;padding:14px}
.pt-compass{position:relative;flex:0 0 120px;height:120px;border-radius:50%;border:3px solid #0f4c3a;background:#fbf8ec}
.pt-compass .n{position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:12px;font-weight:700;color:#0f4c3a}
.pt-compass .needle{position:absolute;inset:0;transition:transform .4s}
.pt-compass .needle i{position:absolute;left:50%;top:14px;width:0;height:0;margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:44px solid #c9a227}
.pt-compass .needle i:after{content:"";position:absolute;left:-2px;top:44px;width:4px;height:48px;background:#0f4c3a;border-radius:2px;opacity:.55}
.pt-mh{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.pt-mh .btn{padding:7px 12px;font-size:13px}
.pt-tab{min-width:560px;font-variant-numeric:tabular-nums}
tr.today td{background:#fff3cd;font-weight:700}
.pt-disc{margin-top:12px}
html[dir=ltr] .pt-q,html[dir=ltr] .pt-mh{direction:ltr}
@media(max-width:640px){
 .pt-ctl .btn{min-height:48px;font-size:16px}
 .pt-cd{font-size:22px}
 .pt-compass{flex-basis:96px;height:96px}
 .pt-q{gap:12px;font-size:14px}
}

@media(max-width:640px){.tw.ptw{overflow-x:auto;background:#fff;border:1px solid #e3d9b5;border-radius:8px;-webkit-overflow-scrolling:touch}.pt-tab{min-width:520px}.pt-tab th,.pt-tab td{padding:8px 6px;font-size:14px}}
/* ===== بطاقة المواقيت في الرئيسية ===== */
.ptm{background:#0f4c3a;color:#fff;border-radius:14px;padding:12px 14px;margin-top:16px}
.ptm-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:15px}
.ptm-top b{color:#e8c85a}
.ptm-top a{color:#fff;font-size:13px;text-decoration:none;opacity:.9;white-space:nowrap}
.ptm-next{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 10px;margin:8px 0;font-size:15px}
.ptm-next .cd{font-size:22px;font-weight:700;color:#e8c85a;font-variant-numeric:tabular-nums;direction:ltr}
.ptm-row{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.ptm-row .c{background:rgba(255,255,255,.09);border-radius:8px;padding:6px 4px;text-align:center;font-size:12.5px}
.ptm-row .c b{display:block;font-size:14.5px;font-variant-numeric:tabular-nums}
.ptm-row .c.sr{opacity:.75}
.ptm-row .c.nx{background:#c9a227;color:#0f4c3a}
.ptm-sub{font-size:12px;opacity:.9;margin-top:8px}
.ptm-sub a{color:#e8c85a}
@media(max-width:640px){.ptm-row{grid-template-columns:repeat(3,1fr)}.ptm-row .c{padding:8px 4px;font-size:13px}.ptm-row .c b{font-size:16px}}
.wrap>.ptm+.stats{margin-top:12px}

.tabs{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.tab{border:1px solid #d9cfae;background:#fff;color:#0f4c3a;border-radius:22px;padding:8px 18px;font:inherit;font-weight:700;cursor:pointer}
.tab small{opacity:.7;font-weight:400}
.tab.on{background:#0f4c3a;color:#e8c85a;border-color:#0f4c3a}
.hrl .rc{padding:10px 14px}
.lead{font-size:1.15em;font-weight:700;color:#0f4c3a}
.partners{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px}

.sc{display:flex;gap:8px;overflow-x:auto;white-space:nowrap;padding:10px 0;-webkit-overflow-scrolling:touch}
.sc .chip{flex:0 0 auto}
.kahf{display:block;margin:10px 0;padding:12px 16px;border-radius:12px;background:#c9a227;color:#0f4c3a;font-weight:700;text-decoration:none;text-align:center}
.fav{margin:8px 0}

.uib{background:transparent;border:1px solid #c9a227;color:#e8c85a;border-radius:16px;padding:2px 10px;font:inherit;font-size:14px;cursor:pointer;margin:0 3px}
html.fs1 body{zoom:1.1}html.fs2 body{zoom:1.22}
html.dk body{background:#111915;color:#e4e4e4}
html.dk a{color:#7fd1b0}
html.dk h2{color:#e8c85a}
html.dk .st,html.dk .intro,html.dk .panel,html.dk .rc,html.dk .tile,html.dk .qp,html.dk .prose,html.dk .tw,html.dk .pt-ctl,html.dk .pt-q,html.dk .chip,html.dk .tab,html.dk .dl,html.dk table.rt tr{background:#1a2822;border-color:#2e4a3f;color:#e4e4e4}
html.dk .st b,html.dk .tile,html.dk .chip,html.dk .tab,html.dk .rc b,html.dk .sb{color:#e8c85a}
html.dk .st span,html.dk .bc,html.dk .rc span{color:#a9b8b1}
html.dk .chip.on,html.dk .tab.on,html.dk .sb.on{background:#c9a227;color:#0f4c3a}
html.dk .sb,html.dk tbody tr:nth-child(even),html.dk .abar{background:#15211c;border-color:#2e4a3f}
html.dk .bar input,html.dk .sfind input,html.dk select,html.dk .pt-ctl select{background:#15211c;color:#e4e4e4;border-color:#2e4a3f}
html.dk td{border-color:#2e4a3f}
html.dk .note,html.dk .pt-msg{background:#2b2612;color:#e8c85a;border-color:#6b5a1c}
html.dk tr.today td{background:#3a3414;color:#fff}
html.dk .rc,html.dk .tile{color:#e4e4e4}

.pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:18px 0}
.pg{min-width:38px;text-align:center;padding:6px 12px;border:1px solid #d9cfae;background:#fff;color:#0f4c3a;border-radius:8px;text-decoration:none;font-weight:700}
.pg.on{background:#0f4c3a;color:#e8c85a;border-color:#0f4c3a}
.pg.gap{border:0;background:transparent}
html.dk .pg{background:#1a2822;border-color:#2e4a3f;color:#e8c85a}
html.dk .pg.on{background:#c9a227;color:#0f4c3a}

/* ===== تحسينات التجربة ===== */
:focus-visible{outline:3px solid #c9a227;outline-offset:2px;border-radius:6px}
.rc,.tile,.chip,.btn,.sb,.pg{transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease}
.rc:hover,.tile:hover{box-shadow:0 3px 10px rgba(15,76,58,.14);transform:translateY(-1px)}
.rc b{font-size:16px}
.fav{display:inline-flex;align-items:center;gap:4px;padding:6px 16px;min-height:0;border-radius:20px;font-size:14px}
#up{position:fixed;left:14px;bottom:18px;z-index:40;width:44px;height:44px;border-radius:50%;border:2px solid #c9a227;background:#0f4c3a;color:#e8c85a;font-size:20px;cursor:pointer;display:none;box-shadow:0 2px 8px rgba(0,0,0,.25)}
body.plon #up{bottom:150px}
@media(max-width:640px){
 .nav{-webkit-mask-image:linear-gradient(to left,#000 88%,transparent);mask-image:linear-gradient(to left,#000 88%,transparent)}
 .wrap>.stats{gap:6px}
 .wrap>.stats .st{flex:1 1 22%;padding:6px 2px}
 .wrap>.stats .st b{font-size:19px}
 .wrap>.stats .st span{font-size:11px}
 .intro{font-size:14.5px;line-height:1.9}
 .rc{padding:12px}
 body.plon{padding-bottom:150px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.rc:hover,.tile:hover{transform:none}}
html.dk .rc:hover,html.dk .tile:hover{box-shadow:0 3px 10px rgba(0,0,0,.5)}

.logo{display:inline-block;margin-bottom:4px}
.logo img{display:block;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.ft .ver{margin-top:6px;font-size:12px;opacity:.75}
#pl #pdl,#pl #psh{background:#c9a227}
@media(max-width:640px){#pl{padding:8px 10px}#pl .row{gap:5px}#pl button,#pl select{padding:5px 7px;font-size:12.5px;min-height:34px}#pl .ttl{flex:1 1 100%}#pl audio{flex:1 1 100%;height:34px}body.plon{padding-bottom:150px}}

/* رأس الصفحة الرئيسية: الإحصاءات */
.hs{display:flex;justify-content:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.hs div{background:rgba(255,255,255,.12);border:1px solid rgba(232,200,90,.45);border-radius:12px;padding:4px 16px;min-width:96px}
.hs b{display:block;font-family:Amiri,serif;font-size:22px;color:#e8c85a;line-height:1.3}
.hs span{font-size:12px;opacity:.9}
/* مشغّل السور السريع */
.qp{padding:10px;margin:8px 0 18px}
.qrow{display:grid;grid-template-columns:1fr 1fr 48px 48px;gap:8px;align-items:center;margin:0}
.qrow select{min-width:0;height:48px;font-size:15px;padding:0 10px;border:1px solid #d9cc99;border-radius:12px;background:#fbf8ec;color:#0f4c3a;font-family:inherit}
.qgo,.qpg{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;text-decoration:none;cursor:pointer;padding:0}
.qgo{background:#c9a227;color:#0f4c3a;border:0;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.qpg{border:2px solid #0f4c3a;color:#0f4c3a;background:#fff}
@media(max-width:640px){.qrow{grid-template-columns:1fr 48px 48px}.qrow .q1{grid-column:1/-1}.qrow select{min-width:0}.hs div{min-width:84px;padding:4px 10px}}
html.dk .qrow select{background:#15211c;color:#e4e4e4;border-color:#2e4a3f}
html.dk .qpg{background:#1a2822;color:#e8c85a;border-color:#c9a227}

/* أدوات الرأس: اللغة والوضع الليلي وحجم الخط في زاوية ثابتة */
.hdr{position:relative}
.tools{position:absolute;top:10px;left:10px;display:flex;gap:6px;align-items:center;z-index:5;direction:ltr}
.tools a,.tools .uib{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 10px;margin:0;border-radius:18px;border:1px solid #c9a227;background:rgba(0,0,0,.25);color:#e8c85a;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;font-family:inherit}
#page .ptitle a,#ptitle a{color:inherit;text-decoration:underline dotted}
#ptitle small a{color:inherit}
@media(max-width:640px){
 .nav{flex-wrap:wrap;overflow:visible;justify-content:center;-webkit-mask-image:none;mask-image:none;gap:5px;padding-bottom:0}
 .nav a{padding:6px 11px;font-size:13.5px;white-space:normal;text-align:center}
 .logo img{width:40px;height:40px}
 .hdr{padding-top:12px}
 .tools{top:8px;left:8px;gap:4px}
 .tools a,.tools .uib{min-width:32px;height:32px;padding:0 8px;font-size:12px}
}

/* مشغّل الصوت: أيقونات بدل الكتابة */
#pl .row{display:grid;grid-template-columns:1fr auto;grid-template-areas:"ttl x" "au au" "ctl ctl" "msg msg";gap:6px 8px;align-items:center}
#pl .ttl{grid-area:ttl;min-width:0;flex:none}
#pl .ttl span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
#pl .ttl small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
#pl .ttl a{font-size:12px;color:#e8c85a}
#pl .x{grid-area:x}
#pl audio{grid-area:au;width:100%;min-width:0;height:36px;flex:none}
#pl .ctl{grid-area:ctl;display:flex;justify-content:space-between;align-items:center;gap:6px}
#pl .msg{grid-area:msg;font-size:12.5px}
#pl .ib{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;background:#fff;color:#0f4c3a;border:1px solid #c9a227;font-weight:400}
#pl #pdl,#pl #psh{background:#c9a227;color:#0f4c3a}
#pl .x.ib{background:transparent;color:#fff;border-color:rgba(255,255,255,.6);width:34px;height:34px;min-height:34px;font-size:15px}
#pl #psp{height:40px;min-height:40px;width:66px;padding:0 4px;border-radius:20px;font-size:13px;text-align:center}
@media(min-width:900px){
 #pl .row{grid-template-columns:minmax(180px,1fr) minmax(240px,2fr) auto auto;grid-template-areas:"ttl au ctl x" "msg msg msg msg"}
 #pl .ctl{justify-content:flex-start}
}
/* قائمة سور القارئ: عمودان على الهاتف */
@media(max-width:640px){
 .grid{grid-template-columns:repeat(2,1fr)!important;gap:6px}
 .sb{padding:8px 8px;font-size:14px}
 .sb b{font-size:14.5px}
 .sb i{min-width:22px}
 .sc .dl{width:28px;flex:0 0 28px;font-size:13px}
 body.plon{padding-bottom:150px}
}
@media(max-width:340px){.grid{grid-template-columns:1fr!important}}
#page .rt a,table.rt td a:not(.b){color:#0b6b4f;text-decoration:underline dotted}
html.dk #pl .ib{background:#1a2822;color:#e8c85a}

/* أزرار المشغّل: دوائر ثابتة متوسطة */
#pl .ctl{justify-content:center;gap:12px}
#pl .ib{flex:0 0 44px;width:44px;height:44px;min-height:44px}
#pl .ib svg{display:block}
#pl .x.ib{flex:0 0 34px}
html[dir=rtl] #pn svg,html[dir=rtl] #pnx svg{transform:scaleX(-1)}
@media(min-width:900px){#pl .ctl{justify-content:flex-start}}

/* البحث الشامل */
#etsx{position:fixed;inset:0;z-index:1000;background:rgba(10,20,16,.62);display:flex;justify-content:center;align-items:flex-start;padding:5vh 12px 12px}
#etsx[hidden]{display:none}
html.sxo{overflow:hidden}
.sxb{background:#fffdf5;color:#1d2b25;border:1px solid #c9a227;border-radius:14px;width:100%;max-width:640px;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.35);overflow:hidden}
.sxh{display:flex;gap:8px;padding:10px;border-bottom:1px solid #e6dcb4;align-items:center}
.sxh input{flex:1;min-width:0;font:inherit;font-size:17px;padding:10px 12px;border:1px solid #c9a227;border-radius:10px;background:#fff;color:#1d2b25}
#etsc{width:38px;height:38px;border-radius:50%;border:1px solid #c9a227;background:transparent;color:#0f4c3a;font-size:16px;cursor:pointer}
.sxr{overflow-y:auto;padding:4px 10px 12px;-webkit-overflow-scrolling:touch}
.sxr h4{margin:12px 2px 4px;color:#0f4c3a;font-size:14px}
.sxi{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:9px 10px;border-radius:9px;text-decoration:none;color:inherit;border:1px solid transparent}
.sxi b{font-weight:700;color:#0f4c3a}
.sxi span{font-size:12.5px;color:#6b7b74;white-space:nowrap}
.sxi:hover,.sxi.on,.sxall.on{background:#f3ecce;border-color:#c9a227}
.sxn{padding:14px 6px;color:#6b7b74;margin:0}
.sxc{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.sxq{font:inherit;font-size:14px;padding:6px 12px;border-radius:16px;border:1px solid #c9a227;background:#fff;color:#0f4c3a;text-decoration:none;cursor:pointer}
.sxall{display:block;text-align:center;margin:10px 0 2px;padding:10px;border-radius:9px;background:#0f4c3a;color:#fff!important;text-decoration:none;font-weight:700}
.sxp{overflow:visible;padding:4px 0}
html.dk .sxb{background:#16211c;color:#e4e4e4;border-color:#6b5a1c}
html.dk .sxh{border-color:#2e4a3f}
html.dk .sxh input,html.dk .sxq{background:#15211c;color:#e4e4e4;border-color:#6b5a1c}
html.dk #etsc{color:#e8c85a}
html.dk .sxr h4,html.dk .sxi b,html.dk .sxq{color:#e8c85a}
html.dk .sxi span{color:#a9b8b1}
html.dk .sxi:hover,html.dk .sxi.on{background:#22332b;border-color:#6b5a1c}
@media(max-width:600px){#etsx{padding:0}.sxb{max-width:none;max-height:100vh;height:100%;border-radius:0}}
.sxh input::-webkit-search-cancel-button{display:none}
@media(max-width:430px){.tools{gap:2px;left:4px;top:6px}.tools .uib,.tools a{padding:1px 6px;font-size:12px;margin:0}}
/* أعلام + تصفية + تثبيت */
.fl{width:20px;height:15px;border-radius:2px;vertical-align:-2px;margin-inline-end:6px;box-shadow:0 0 0 1px rgba(0,0,0,.18);object-fit:cover}
.fbar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.fbar select{flex:1 1 150px;min-width:0;font:inherit;padding:8px 10px;border:1px solid #c9a227;border-radius:10px;background:#fff;color:#1d2b25}
.fbar .btn{flex:0 0 auto}
html.dk .fbar select{background:#15211c;color:#e4e4e4;border-color:#2e4a3f}
#inb{position:fixed;right:10px;left:10px;bottom:12px;z-index:900;max-width:560px;margin:0 auto;background:#0f4c3a;color:#fff;border:1px solid #c9a227;border-radius:14px;padding:10px 12px;box-shadow:0 8px 28px rgba(0,0,0,.4)}
#inb[hidden]{display:none}
.inr{display:flex;gap:10px;align-items:center;justify-content:space-between}
.int{font-size:14px;line-height:1.5}
.ina{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.inbt{background:#c9a227;color:#0f4c3a;border:0;border-radius:18px;padding:7px 16px;font:inherit;font-weight:700;cursor:pointer}
.inx{background:transparent;border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer}
.ins{margin-top:8px;font-size:14px;line-height:1.7;border-top:1px solid rgba(255,255,255,.25);padding-top:6px}
.ins ol{margin:4px 0 0;padding-inline-start:22px}
.sdet{margin:14px 0;background:#fffdf5;border:1px solid #e6dcb4;border-radius:10px;padding:8px 12px}.sdet summary{cursor:pointer;font-weight:700;color:#0f4c3a}.sdet .sl{line-height:2;margin:8px 0 2px}html.dk .sdet{background:#1a2822;border-color:#2e4a3f}html.dk .sdet summary{color:#e8c85a}

.othh{margin:14px 0 6px;font-size:1rem;color:#0f4c3a}
:root.dk .othh{color:#e8c85a}

.logos{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-wrap:nowrap;gap:8px;align-items:center}.logos li{background:#fff;border:1px solid #e6dcb4;border-radius:10px;padding:6px 10px;display:flex;align-items:center;justify-content:center;min-width:0}.logos img{display:block;height:40px;width:auto;max-width:100%;object-fit:contain}@media(max-width:480px){.logos{gap:6px}.logos li{padding:4px 6px}.logos img{height:30px}}

/* ===================== التصميم الجديد (v2) ===================== */
.tb{position:sticky;top:0;z-index:60;background:#0f4c3a;color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.28);border-bottom:2px solid #c9a227}
.tbi{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:8px 14px;flex-wrap:wrap}
.brand2{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;flex:0 0 auto}
.brand2 img{display:block;border-radius:10px;width:38px;height:38px}
.brand2 b{display:block;font-size:18px;line-height:1.1;font-family:Cairo,Tahoma,sans-serif}
.brand2 small{display:block;color:#e8c85a;font-size:11px;font-weight:400;direction:ltr;text-align:start}
.tb .nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:2px;margin:0 6px;overflow:visible;flex:1 1 auto;-webkit-mask-image:none;mask-image:none;padding:0}
.tb .nav a{background:transparent;color:#e6efe9;padding:6px 9px;border-radius:8px;font-size:13.5px;white-space:nowrap}
.tb .nav a:hover{background:rgba(255,255,255,.16)}
.tb .nav a.on{background:rgba(255,255,255,.2);color:#fff;font-weight:700}
.tb .tools{position:static;display:flex;gap:6px;align-items:center;margin-inline-start:auto;direction:ltr;flex:0 0 auto}
.tb .tools a,.tb .tools .uib{min-width:34px;height:32px;padding:0 10px;font-size:13px;margin:0}
.burger{display:none!important}
@media(max-width:1000px){.tb .nav a{padding:6px 6px;font-size:13px}}
@media(max-width:860px){
 .burger{display:inline-flex!important}
 .tb .nav{display:none;order:9;flex:1 1 100%;flex-direction:column;margin:0;padding:4px 0 8px;gap:2px}
 .tb .nav.open{display:flex}
 .tb .nav a{padding:11px 12px;font-size:15px;white-space:normal}
 .tbi{gap:8px;padding:7px 10px}
}
@media(max-width:430px){.tb .tools{gap:3px}.tb .tools a,.tb .tools .uib{min-width:30px;height:30px;padding:0 6px;font-size:12px}.brand2 small{display:none}}
.hero{background:linear-gradient(160deg,#0f4c3a,#1b6b52);color:#fff;text-align:center;padding:20px 16px 22px;position:relative;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;opacity:.07;background:radial-gradient(circle at 20% 30%,#fff 0 2px,transparent 3px) 0 0/34px 34px;pointer-events:none}
.hero>*{position:relative}
.hero h1{margin:0 0 4px;font-family:Amiri,serif;font-size:30px;line-height:1.35}
.hero p{margin:0;opacity:.92;font-size:15px}
.hero .bsm{font-family:Amiri,serif;font-size:21px;color:#e8c85a;margin:0 0 2px;opacity:1}
.hero.home{padding:26px 16px 62px}
.hero.home h1{font-size:34px}
@media(max-width:640px){.hero h1{font-size:24px}.hero.home h1{font-size:27px}.hero{padding:16px 12px 18px}.hero.home{padding:20px 12px 56px}.hero .bsm{font-size:18px}}
.eq{display:flex;gap:4px;justify-content:center;align-items:flex-end;height:30px;margin:12px 0 0}
.eq i{width:5px;height:var(--h);background:#c9a227;border-radius:3px;animation:eqb 1.1s ease-in-out infinite alternate;animation-delay:var(--d)}
@keyframes eqb{to{height:20%}}
@media(prefers-reduced-motion:reduce){.eq i{animation:none}}
/* البحث البارز في الرئيسية */
.wrap.hm>.bar{margin:-32px 0 0;position:relative;z-index:3;background:#fff;border:2px solid #c9a227;border-radius:16px;padding:8px;box-shadow:0 10px 30px rgba(15,76,58,.22);align-items:center}
.wrap.hm>.bar input{border:0;outline:0;background:none;font-size:17px;padding:10px 8px;min-height:46px}
.wrap.hm>.bar .btn{border-radius:11px;white-space:nowrap}
.wrap.hm>.info{display:none}
.qk{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0 0}
.qk a{background:#fff;border:1px solid #e3d9b5;border-radius:18px;padding:4px 13px;font-size:13px;color:#0f4c3a;text-decoration:none}
.qk a:hover{border-color:#c9a227;background:#fbf4d6}
.wrap.hm .hs{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0 4px}
.wrap.hm .hs div{background:#fff;border:1px solid #e3d9b5;border-radius:12px;padding:5px 18px;min-width:100px;text-align:center}
.wrap.hm .hs b{color:#0f4c3a;font-size:21px}
.wrap.hm .hs span{color:#6b7a73;opacity:1}
.wrap.hm .info{margin:0}
@media(max-width:640px){.wrap.hm>.bar{flex-wrap:wrap}.wrap.hm>.bar input{flex:1 1 100%}.wrap.hm>.bar .btn{flex:1 1 100%}.wrap.hm .hs div{min-width:88px;padding:4px 10px}}
/* بطاقات أكثر حيوية */
.rc{border-radius:14px;border-inline-start:4px solid #e3d9b5;transition:transform .18s,box-shadow .18s,border-color .18s}
.rc:hover{border-color:#c9a227;transform:translateY(-3px);box-shadow:0 8px 20px rgba(15,76,58,.16)}
.tile{border-radius:14px}
.tile:hover{border-color:#c9a227}
#pk-h .tile,.tiles.mus .tile{background:linear-gradient(135deg,#0f4c3a,#1b6b52);color:#fff;border:0}
.tiles.mus .tile span{color:#e8c85a}
.qp{border-radius:16px;border:2px solid #e3d9b5}
h2{border-inline-start:5px solid #c9a227;border-right-width:0;padding-right:0;padding-inline-start:10px}
html[dir=rtl] h2{border-right:5px solid #c9a227;padding-right:10px}
.sect{margin-top:14px}
.sect a{font-weight:700}
/* التذييل */
.ft2{background:#0b3a2c;color:#cfe0d8;padding:30px 16px 18px;margin:30px 0 0;text-align:start}
body.plon .ft2{margin-bottom:0}
.fg{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:22px}
.ft2 h4{color:#e8c85a;margin:0 0 8px;font-size:15px}
.ft2 .fg a{display:block;color:#cfe0d8;text-decoration:none;font-size:13.5px;padding:3px 0}
.ft2 .fg a:hover{color:#fff;text-decoration:underline}
.ft2 p{font-size:13px;line-height:1.8;margin:0}
.ft2 .dua{text-align:center;font-family:Amiri,serif;font-size:21px;color:#e8c85a;margin:24px 0 6px}
html[dir=ltr] .ft2 .dua{font-family:Cairo,Tahoma,sans-serif;font-size:16px}
.ft2 .fnav{text-align:center;margin-top:6px;font-size:12.5px;border-top:1px solid rgba(255,255,255,.18);padding-top:12px}
.ft2 .fnav a{color:#cfe0d8}
.ft2 .ver{text-align:center;font-size:12px;opacity:.7;margin-top:6px}
@media(max-width:760px){.fg{grid-template-columns:1fr 1fr}.fg>div:first-child{grid-column:1/-1}}
/* الوضع الليلي */
html.dk .tb{background:#0b3a2c}
html.dk .hero{background:linear-gradient(160deg,#0b3a2c,#14523f)}
html.dk .wrap.hm>.bar{background:#1a2822;border-color:#c9a227}
html.dk .wrap.hm>.bar input{color:#e4e4e4}
html.dk .qk a,html.dk .wrap.hm .hs div{background:#1a2822;border-color:#2e4a3f;color:#e8c85a}
html.dk .wrap.hm .hs b{color:#e8c85a}
html.dk .wrap.hm .hs span{color:#a9b8b1}
html.dk .ft2{background:#08261d}
html.dk .rc{border-inline-start-color:#2e4a3f}
#pk-h .tile span{color:#e8c85a}
#pk-h .tile b{color:#fff}
html.dk #pk-h .tile{background:linear-gradient(135deg,#0b3a2c,#14523f);color:#fff}

/* ===== دوائر الحرف الأول + بطاقة القارئ + تحسينات التصفح ===== */
.av{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:hsl(var(--a,158) 46% 28%);color:#f3d98a;font-style:normal;font-weight:700;font-size:19px;font-family:Cairo,Tahoma,sans-serif;line-height:1;box-shadow:inset 0 0 0 2px rgba(232,200,90,.55)}
.av.big{width:84px;height:84px;font-size:38px;box-shadow:0 0 0 4px #fff,0 0 0 6px #c9a227,0 6px 18px rgba(15,76,58,.25)}
.rc.hv{display:grid;grid-template-columns:42px 1fr;column-gap:11px;align-items:center;text-align:start}
.rc.hv .av{grid-row:1/3}
.rc.hv b,.rc.hv span{grid-column:2;min-width:0}
.rc.hv b{align-self:end}.rc.hv span{align-self:start}
.rc.hv:not(:has(span)) b{grid-row:1/3;align-self:center}
html.dk .av.big{box-shadow:0 0 0 4px #14231c,0 0 0 6px #c9a227}
.pf{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e3d9b5;border-radius:16px;padding:16px;margin-top:14px;box-shadow:0 4px 14px rgba(15,76,58,.08)}
.pfm{flex:1;min-width:0}
.pf .altname{margin:0 0 8px;text-align:start;font-size:22px}
.pfb{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pfb .fav{margin:0}
.btn.go{background:#0f4c3a;color:#fff;border-radius:22px;padding:9px 20px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center}
.btn.go:hover{background:#1b6b52}
@media(max-width:560px){.av.big{width:64px;height:64px;font-size:28px}.pf{padding:12px;gap:12px}.pf .altname{font-size:19px}}
.stats{margin-top:12px}
.st{border-radius:14px;transition:transform .15s,box-shadow .15s}
a.st:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,76,58,.14)}
.jump{position:sticky;top:57px;z-index:40;display:flex;gap:8px;background:rgba(250,246,234,.96);padding:8px 0;margin-top:12px;border-bottom:1px solid #e3d9b5;overflow-x:auto;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.jump a{flex:0 0 auto;border:1px solid #0f4c3a;color:#0f4c3a;border-radius:18px;padding:6px 15px;font-size:14px;text-decoration:none;background:#fff}
.jump a:hover{background:#0f4c3a;color:#e8c85a}
html.dk .jump{background:rgba(20,28,24,.96);border-color:#2e4a3f}
html.dk .jump a{background:#1a2822;border-color:#2e4a3f;color:#e8c85a}
html.dk .pf{background:#1a2822;border-color:#2e4a3f}
h2[id]{scroll-margin-top:110px}
.panel{border-radius:16px;box-shadow:0 4px 14px rgba(15,76,58,.08)}
.sb{display:flex;align-items:center;gap:8px;border-radius:12px;padding:8px 9px;min-height:44px}
.sb i{display:inline-grid;place-items:center;min-width:28px;width:28px;height:28px;border-radius:50%;background:#f1e8c4;color:#6b5400;font-weight:700}
.sb.on i{background:rgba(232,200,90,.25);color:#e8c85a}
.sb b{font-weight:600;font-size:14.5px}
.dl{border-radius:12px;width:36px}
html.dk .sb i{background:#2a3a33;color:#e8c85a}
.chips:not(.letters) .chip{border-radius:22px;padding:7px 15px}
.abar{border-radius:14px;position:sticky;top:104px;z-index:30;box-shadow:0 6px 18px rgba(0,0,0,.12)}
@media(max-width:640px){.abar{top:auto;position:static}}
.sfind input{border-radius:12px}
table.rt{border-radius:12px;overflow:hidden}
.sb{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:9px;row-gap:0;align-items:center;text-align:start;padding:8px 10px;overflow:hidden}
.sb i{grid-row:1/4}
.sb b,.sb em,.sb .mt{grid-column:2;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb em{text-align:start}
html[dir=rtl] .sb em{text-align:right}
.grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.sc .dl{flex:0 0 36px}
.pf .altname{text-align:start}
html[dir=rtl] .pf .altname[dir=ltr]{text-align:right}
html[dir=ltr] .pf .altname[dir=rtl]{text-align:left}
.grid .sc{padding:0;gap:6px;overflow:visible;white-space:normal}
@media(max-width:560px){
 .grid{grid-template-columns:1fr 1fr;gap:6px}
 .grid .sc{gap:4px}
 .sb{grid-template-columns:26px minmax(0,1fr);column-gap:6px;padding:6px 7px;min-height:42px}
 .sb i{grid-row:1;width:26px;height:26px;min-width:26px;font-size:12px}
 .sb em,.sb .mt{display:none}
 .sb b{font-size:14.5px;grid-row:1}
 .sc .dl{flex:0 0 32px;width:32px}
}

/* ===== اختيار الرواية (بطاقات) + فلتر السور + أيقونات التحميل ===== */
.rsel{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;margin-top:6px}
.rcd{position:relative;display:flex;flex-direction:column;gap:3px;text-align:start;background:#fff;border:2px solid #e3d9b5;border-radius:14px;padding:11px 14px;padding-inline:14px 44px;font:inherit;color:#0f4c3a;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s;min-height:62px}
.rcd:hover{border-color:#c9a227;transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,76,58,.14)}
.rcd .rn{font-weight:700;font-size:15px;line-height:1.35}
.rcd .rm{font-size:12.5px;color:#6b7a73}
.rcd .ck{position:absolute;inset-inline-end:12px;top:12px;width:22px;height:22px;border-radius:50%;border:2px solid #d9cc99;display:grid;place-items:center;font-style:normal;font-size:13px;color:transparent;background:#fff}
.rcd.on{background:linear-gradient(135deg,#0f4c3a,#1b6b52);border-color:#0f4c3a;color:#fff;box-shadow:0 8px 20px rgba(15,76,58,.28)}
.rcd.on .rm{color:#e8c85a}
.rcd.on .ck{background:#e8c85a;border-color:#e8c85a;color:#0f4c3a;font-weight:700}
.rmore{grid-column:1/-1;border:2px dashed #c9a227;background:transparent;color:#0f4c3a;border-radius:14px;padding:10px;font:inherit;font-weight:700;cursor:pointer}
.rmore:hover{background:#fbf4d6}
@media(max-width:560px){.rsel{grid-template-columns:1fr}.rcd{min-height:56px}}
html.dk .rcd{background:#1a2822;border-color:#2e4a3f;color:#e8c85a}
html.dk .rcd .rm{color:#a9b8b1}
html.dk .rcd.on{background:linear-gradient(135deg,#0b3a2c,#14523f)}
html.dk .rmore{color:#e8c85a}
.ftabs{display:flex;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.ftab{border:1px solid #0f4c3a;background:#fff;color:#0f4c3a;border-radius:18px;padding:6px 16px;font:inherit;font-size:14px;cursor:pointer}
.ftab.on{background:#0f4c3a;color:#e8c85a}
html.dk .ftab{background:#1a2822;border-color:#2e4a3f;color:#e8c85a}
html.dk .ftab.on{background:#e8c85a;color:#0f4c3a}
/* أيقونات التحميل */
.dl{color:#0f4c3a;background:#fff;border-color:#d9cc99;transition:background .15s,color .15s,transform .15s}
.dl svg{display:block}
.dl:hover{background:#0f4c3a;color:#e8c85a;transform:translateY(-1px)}
.sb.on i{background:#e8c85a;color:#0f4c3a;animation:pls 1.6s ease-in-out infinite}
@keyframes pls{50%{box-shadow:0 0 0 5px rgba(232,200,90,.25)}}
@media(prefers-reduced-motion:reduce){.sb.on i{animation:none}}
.zipdl,#adl{display:inline-flex;align-items:center;gap:7px;border-radius:22px!important;padding:8px 16px!important}
.zipdl::before,#adl::before{content:"";width:17px;height:17px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 11l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 11l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat}
.panel .top .zipdl{background:#c9a227;color:#0f4c3a;font-weight:700;box-shadow:0 3px 10px rgba(201,162,39,.35)}
table.rt .zipdl{padding:6px 14px!important;font-size:13px}
.abar .acts a,.abar .acts button{border-radius:20px;transition:transform .15s,filter .15s}
.abar .acts a:hover,.abar .acts button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.abar #aplay{padding:6px 18px;font-size:14px}

/* ===== تخطيط صفحة القارئ بعمودين ===== */
.rp{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:6px}
.rmain{min-width:0}
.rmain>h2:first-of-type,.rmain .jump+h2{margin-top:16px}
.rside .pf{margin-top:8px;flex-direction:column;text-align:center;gap:10px;padding:18px 14px}
.rside .pfm{width:100%}
.rside .pf .altname{text-align:center!important;margin:0 0 10px}
.rside .pfb{justify-content:center}
.rside .stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.rside .st{flex:none;padding:8px 6px}
.rside .st b{font-size:22px}
.rside .intro{margin-top:10px;font-size:14.5px;line-height:1.9}
.rside .bio{background:#fffdf5;border-inline-start:4px solid #c9a227}
.about{margin-top:10px;background:#fff;border:1px solid #e3d9b5;border-radius:14px;padding:0 12px}
.about>summary{cursor:pointer;font-weight:700;color:#0f4c3a;padding:10px 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
.about>summary::-webkit-details-marker{display:none}
.about>summary::after{content:"▾";transition:transform .2s}
.about[open]>summary::after{transform:rotate(180deg)}
.about .intro{border:0;padding:0 0 8px;margin:0;background:none;font-size:14px}
.about .auto{font-size:14px;color:#444;margin:6px 0}
html.dk .about,html.dk .rside .bio{background:#1a2822;border-color:#2e4a3f}
html.dk .about>summary{color:#e8c85a}
@media(min-width:900px){
 .rp{grid-template-columns:320px minmax(0,1fr);gap:22px;align-items:start}
 .rside{position:sticky;top:72px;max-height:calc(100vh - 88px);overflow-y:auto;padding-bottom:8px;scrollbar-width:thin}
 .jump{top:57px}
 .rside .pf .av.big{width:96px;height:96px;font-size:44px}
}
@media(max-width:899px){
 .rside .pf{flex-direction:row;text-align:start;padding:12px}
 .rside .pf .altname{text-align:start!important}
 .rside .pfb{justify-content:flex-start}
 .rside .stats{grid-template-columns:repeat(4,1fr)}
 .rside .st b{font-size:19px}.rside .st span{font-size:11.5px}
}
@media(max-width:899px){
 .rside .bio{max-height:7.6em;overflow:hidden;position:relative;cursor:pointer;padding-bottom:26px}
 .rside .bio::after{content:"المزيد ▾";position:absolute;inset-inline:0;bottom:0;padding:18px 12px 4px;text-align:center;font-size:13px;font-weight:700;color:#0f4c3a;background:linear-gradient(to bottom,rgba(255,253,245,0),#fffdf5 55%)}
 html[lang=en] .rside .bio::after{content:"More ▾"}
 .rside .bio.open{max-height:none;padding-bottom:12px}
 .rside .bio.open::after{display:none}
 html.dk .rside .bio::after{color:#e8c85a;background:linear-gradient(to bottom,rgba(26,40,34,0),#1a2822 55%)}
}

/* ===== تحسينات الجوال (v15) ===== */
@media(max-width:560px){
 .wrap.hm>.bar .btn{flex:0 0 auto;margin-inline:auto;padding:8px 18px}
 .rside .pfb{gap:6px;flex-wrap:nowrap}
 .rside .pfb .btn{white-space:nowrap;font-size:13px;padding:8px 12px}
 .rside .pf .altname{font-size:18px;margin-bottom:8px}
 .rcd{min-height:50px;padding-block:8px}
 .rcd .rn{font-size:14px}.rcd .rm{font-size:12px}
 .rsel{gap:8px}
}
.ft2 h4 a{color:#e8c85a;text-decoration:none}
.ft2 h4 a:hover{text-decoration:underline}
.panel .note{font-size:12.5px;background:none;border:0;color:#6b7a73;padding:10px 2px 0;margin:0;text-align:start}

/* ===== شريط المواقيت (سطر واحد) ===== */
.ptm{background:#0b3a2c;color:#fff;border-radius:0;margin:0;padding:6px 14px;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:6px 16px;font-size:13.5px;border-bottom:1px solid rgba(232,200,90,.35);overflow:hidden;white-space:nowrap}
.ptm b{color:#e8c85a;font-weight:700}
.ptm .ptm-next{display:inline-flex;gap:10px;align-items:baseline;margin:0;font-size:13.5px}
.ptm .ptm-next .cd{font-size:14.5px;font-weight:700;color:#e8c85a;font-variant-numeric:tabular-nums;direction:ltr}
.ptm .ptm-row{display:none}
.ptm .ptm-sub{font-size:12.5px}
.ptm .ptm-sub a{color:#e8c85a;text-decoration:none;border-bottom:1px dotted #e8c85a}
@media(max-width:560px){.ptm{font-size:12.5px;gap:4px 10px;padding:5px 8px}.ptm .ptm-next{font-size:12.5px;gap:6px}.ptm .ptm-sub{display:none}}
/* زر التثبيت في القائمة */
.tb .nav a.inst{background:#c9a227;color:#0f4c3a;font-weight:700;border-radius:18px;padding:6px 14px;margin-inline-start:6px}
.tb .nav a.inst:hover{background:#e8c85a}
@media(max-width:860px){.tb .nav a.inst{text-align:center;margin:6px 0 0}}
#pk-h .tile.madinah{background:linear-gradient(135deg,#c9a227,#e8c85a);color:#2b2200;border:0}
#pk-h .tile.madinah b{color:#2b2200}#pk-h .tile.madinah span{color:#4a3a00}
html.dk #pk-h .tile.madinah{background:linear-gradient(135deg,#a8871c,#c9a227);color:#1a1400}
.ptm .ptm-sub{margin:0}
.pfc{margin:4px 0 0;font-size:13px}.pfc a{color:#0f4c3a}.pfc img{vertical-align:-2px;margin-inline-end:5px}
html.dk .pfc a{color:#e8c85a}
.hx{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch;margin:14px 0 6px}
.hx .hql{display:flex;flex-direction:column}.hx .hql h2{margin:0 0 8px}.hx .hql .qp{margin:0;flex:1;display:flex;align-items:center;border-color:#c9a227;box-shadow:0 2px 10px rgba(15,76,58,.08)}
.hx .hql .qp .qrow{flex:1;margin:0}
.hst{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hst div{background:#fff;border:1px solid #e3d9b5;border-radius:12px;padding:10px 8px;text-align:center}
.hst b{display:block;font-family:Amiri,serif;font-size:26px;color:#0f4c3a;line-height:1.2;font-variant-numeric:tabular-nums}
.hst span{font-size:13px;color:#6b7a73}
html.dk .hst div{background:#1a2822;border-color:#2e4a3f}html.dk .hst b{color:#e8c85a}html.dk .hst span{color:#a9b8b1}
@media(max-width:760px){.hx{grid-template-columns:1fr}.hst b{font-size:22px}}
/* ===== المشغل المدمج v20 ===== */
#pl.p2{padding:0;background:linear-gradient(180deg,#12503e,#0b3a2c);border-top:0;box-shadow:0 -4px 18px rgba(0,0,0,.25)}
#pl.p2 .prog{position:relative;height:5px;background:rgba(255,255,255,.2);direction:ltr}
#pl.p2 .prog i{position:absolute;inset:0 auto 0 0;width:0;background:#c9a227}
#pl.p2 .prog input{position:absolute;inset:-8px 0;width:100%;height:21px;opacity:0;margin:0;padding:0;cursor:pointer;background:none;border:0;min-height:0}
#pl.p2 .pin{max-width:1100px;margin:0 auto;padding:6px 12px calc(7px + env(safe-area-inset-bottom));position:relative}
#pl.p2 .row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;max-width:none;margin:0}
#pl.p2 .av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#c9a227,#e8c85a);color:#0f4c3a;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;flex:none}
#pl.p2.playing .av{box-shadow:0 0 0 3px rgba(232,200,90,.35)}
#pl.p2 .meta{flex:1 1 0;min-width:0;line-height:1.3}
#pl.p2 .meta b{display:block;font-size:15px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pl.p2 .meta span{display:block;font-size:12.5px;color:#c8e0d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pl.p2 .tm{font-size:12px;color:#c8e0d6;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}
#pl.p2 .eq{display:flex;gap:2px;align-items:flex-end;height:16px;flex:none}
#pl.p2 .eq i{width:3px;height:3px;background:#e8c85a;border-radius:2px}
#pl.p2.playing .eq i{animation:ple .9s infinite ease-in-out}
#pl.p2.playing .eq i:nth-child(2){animation-delay:-.3s}#pl.p2.playing .eq i:nth-child(3){animation-delay:-.6s}
@keyframes ple{0%,100%{height:3px}50%{height:15px}}
#pl.p2 .b{background:transparent;color:#fff;border:0;border-radius:50%;width:38px;height:38px;min-height:0;padding:0;font:inherit;font-size:16px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:none;position:relative;text-decoration:none;gap:0}
#pl.p2 .b:hover{background:rgba(255,255,255,.14)}
#pl.p2 .b.on{color:#e8c85a}
#pl.p2 .b.txt{width:auto;border-radius:10px;padding:0 8px;font-size:14px;min-width:38px}
#pl.p2 .b svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#pl.p2 .b em{position:absolute;bottom:2px;inset-inline-end:3px;font-size:10px;font-style:normal;color:#e8c85a;font-weight:700}
#pl.p2 .play{width:44px;height:44px;background:#c9a227;color:#0f4c3a}
#pl.p2 .play:hover{background:#e8c85a}
#pl.p2 .play svg{fill:currentColor;stroke:none;width:22px;height:22px}
#pl.p2 .play .i-s{display:none}#pl.p2.playing .play .i-p{display:none}#pl.p2.playing .play .i-s{display:inline}
#pl.p2.playing .play{animation:plp 2.2s infinite}
@keyframes plp{70%{box-shadow:0 0 0 11px rgba(201,162,39,0)}100%{box-shadow:0 0 0 0 rgba(201,162,39,0)}}
#pl.p2 .sep{width:1px;height:24px;background:rgba(255,255,255,.18);flex:none}
html[dir=rtl] #pl.p2 .dr svg,html[dir=rtl] #pl.p2 .mi.dr svg{transform:scaleX(-1)}
#pl.p2 #pmo{display:none}
#pl.p2 .pmenu{position:absolute;bottom:calc(100% + 6px);inset-inline-end:8px;background:#1f2a26;color:#fff;border-radius:12px;min-width:250px;box-shadow:0 8px 28px rgba(0,0,0,.4);padding:6px;display:none;z-index:60}
#pl.p2 .pmenu.show{display:block}
#pl.p2 .mi{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;color:#fff;font:inherit;font-size:15px;padding:10px 12px;border-radius:8px;cursor:pointer;text-decoration:none;text-align:start;min-height:0;font-weight:400}
#pl.p2 .mi:hover{background:rgba(255,255,255,.1)}
#pl.p2 .mi.on{color:#e8c85a}
#pl.p2 .mi svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#pl.p2 .msg{position:absolute;bottom:calc(100% + 4px);inset-inline:12px;background:#3a1f1c;color:#ffd9d4;border-radius:8px;padding:6px 10px;font-size:13px;text-align:center}
body.plon{padding-bottom:78px}
body.plon #up{bottom:86px}
@media(max-width:720px){#pl.p2 .dsk.x,#pl.p2 .sep{display:none}#pl.p2 .tm,#pl.p2 .eq{display:none}#pl.p2 .b{width:36px;height:36px}#pl.p2 .play{width:42px;height:42px}#pl.p2 #pmo{display:inline-flex}body.plon{padding-bottom:74px}}
@media(prefers-reduced-motion:reduce){#pl.p2.playing .eq i,#pl.p2.playing .play{animation:none}}
html.dk #pl.p2 .pmenu{background:#18221e}
#pl.p2 .b.x{color:#c8e0d6}
@media(max-width:720px){#pl.p2 .row{gap:4px}#pl.p2 .b{width:34px;height:34px}#pl.p2 .play{width:40px;height:40px}}
@media(max-width:400px){#pl.p2 .av{display:none}}
/* logo v22 */
.brand2 img{background:#fff;padding:2px;box-sizing:border-box}
.flogo{display:block;width:96px;height:auto;background:#fff;border-radius:12px;padding:6px;margin:0 0 10px}
.ablogo{display:block;width:150px;height:auto;margin:0 auto 14px;background:#fff;border-radius:14px;padding:8px}
/* quran text v23 */
.qtool{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:12px 0}
.qlis{display:flex;flex-wrap:wrap;gap:8px}
.qbtn{display:inline-block;text-decoration:none;border:1px solid #0f4c3a;color:#0f4c3a;background:#fff;border-radius:20px;padding:6px 16px;font-size:14px}
.qbtn.go{background:#0f4c3a;color:#e8c85a}
.qsz button{border:1px solid #0f4c3a;background:#fff;color:#0f4c3a;border-radius:8px;min-width:40px;height:36px;font:inherit;font-size:16px;cursor:pointer;margin-inline-start:6px}
.qcard{position:relative;background:#fffdf5;border:1px solid #e3d9b5;border-top:4px solid #c9a227;border-radius:10px;padding:22px 20px;margin:8px 0}
.qbas,.qtext{font-family:"KFGQPC Hafs","Amiri",serif}
.qbas{text-align:center;font-size:30px;color:#0f4c3a;margin:0 0 14px}
.qtext{font-size:30px;line-height:2.5;text-align:justify;text-align-last:center;word-spacing:2px}
.ay{cursor:pointer;border-radius:6px;transition:background .15s}
.ay:hover{background:rgba(201,162,39,.14)}
.ay.on,.ay.hl{background:rgba(201,162,39,.28)}
.pgm{display:inline-block;font-family:Cairo,Tahoma,sans-serif;font-size:11px;line-height:1;color:#6b5e22;border:1px solid #d9c98a;border-radius:10px;padding:2px 7px;margin:0 6px;vertical-align:middle;user-select:none}
.qpop{position:absolute;z-index:5;display:flex;gap:6px;background:#0f4c3a;border-radius:10px;padding:6px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.qpop button{border:0;background:transparent;color:#e8c85a;font:inherit;font-size:13px;padding:6px 10px;border-radius:6px;cursor:pointer;white-space:nowrap}
.qpop button:hover{background:rgba(255,255,255,.12)}
.qsrc{font-size:12px;color:#5b5b5b;text-align:center;margin:6px 0 14px}
html.dk .qcard{background:#15211c;border-color:#2e4a3f}
html.dk .qbas{color:#e8c85a}
html.dk .qtext{color:#eee}
html.dk .qbtn,html.dk .qsz button{background:#15211c;color:#e8c85a;border-color:#2e4a3f}
html.dk .qbtn.go{background:#c9a227;color:#0f4c3a}
html.dk .pgm{color:#c9b86a;border-color:#4a5a3f}
html.dk .qsrc{color:#a9b8b1}
@media(max-width:600px){.qcard{padding:16px 10px}.qtext{text-align:justify;text-align-last:center;text-justify:inter-word}}
/* quran v23b: ornaments & navigation */
.qi8{width:22px;height:22px;color:#c9a227;flex:0 0 auto}.qi8.s{width:14px;height:14px}
.qframe{border:3px double #c9a227;background:#fffdf5;border-radius:6px;padding:26px 22px 34px;position:relative}
.qframe::before{content:"";position:absolute;inset:6px;border:1px solid rgba(15,76,58,.35);border-radius:3px;pointer-events:none}
.qco{position:absolute;width:26px;height:26px;color:#c9a227;background:#fffdf5}
.qco.tl{top:-14px;right:-14px}.qco.tr{top:-14px;left:-14px}.qco.bl{bottom:-14px;right:-14px}.qco.br{bottom:-14px;left:-14px}
.qhead{display:flex;align-items:center;max-width:560px;margin:0 auto 18px}
.qhead .md{width:58px;height:58px;color:#c9a227;flex:0 0 auto}
.qhead .bd{flex:1;margin:0 -6px;border:2px solid #c9a227;outline:1px solid rgba(15,76,58,.35);outline-offset:3px;background:linear-gradient(#fffdf5,#f3ead0);text-align:center;padding:6px 10px;color:#0f4c3a}
.qhead .nm{display:block;font-size:30px;line-height:1.6}
.qhead small{display:block;font-size:12px;color:#7a6a2a;font-family:Cairo,Tahoma,sans-serif}
.mkb{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px auto;color:#6b5e22;font-size:13px;font-family:Cairo,Tahoma,sans-serif;position:relative}
.mkb::before,.mkb::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,#c9a227)}
.mkb::after{background:linear-gradient(270deg,transparent,#c9a227)}
.qpn{position:relative;width:54px;height:54px;margin:22px auto -50px;color:#c9a227}
.qpn svg{position:absolute;inset:0;width:100%;height:100%}.qpn b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#0f4c3a;font-size:14px;font-family:Cairo,Tahoma,sans-serif}
.qpage{padding-bottom:70px}
a.pgm{text-decoration:none}a.pgm:hover{background:#c9a227;color:#fff}
.qjump{background:#fff;border:1px solid #e3d9b5;border-radius:10px;margin:10px 0;padding:0}
.qjump>summary{cursor:pointer;padding:10px 14px;color:#0f4c3a;font-weight:600;font-size:14px}
.qj{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:4px 14px 14px}
.qf{display:flex;gap:8px;align-items:end}.qf label{flex:1;font-size:12px;color:#666;display:block}
.qf select,.qf input{width:100%;font:inherit;font-size:14px;padding:7px 8px;border:1px solid #cfc49a;border-radius:8px;background:#fff;color:#222}
.qw{display:flex;gap:6px}.qw input{width:72px}
.qf button{font:inherit;font-size:14px;border:0;background:#0f4c3a;color:#e8c85a;border-radius:8px;padding:8px 14px;cursor:pointer}
.qbrowse{display:grid;gap:12px}.qbrowse>div>b{display:block;margin-bottom:6px;color:#0f4c3a;font-size:14px}
.qrw{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;font-size:14px;color:#555}
.qresume{margin:12px 0}.qmore,.qhint,.qgo{font-size:13px;color:#5b5b5b;text-align:center;margin:10px 0}
.tiles-s{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
html.dk .qframe,html.dk .qco{background:#15211c}
html.dk .qframe::before{border-color:rgba(232,200,90,.3)}
html.dk .qhead .bd{background:linear-gradient(#1a2a23,#15211c);color:#e8c85a}html.dk .qhead small{color:#c9b86a}
html.dk .qjump{background:#15211c;border-color:#2e4a3f}html.dk .qjump>summary,html.dk .qbrowse>div>b{color:#e8c85a}
html.dk .qf select,html.dk .qf input{background:#111915;color:#eee;border-color:#2e4a3f}
html.dk .qf button{background:#c9a227;color:#0f4c3a}html.dk .qpn b{color:#e8c85a}html.dk .mkb{color:#c9b86a}
@media(max-width:600px){.qframe{padding:20px 10px 30px}.qhead .md{width:44px;height:44px}.qhead .nm{font-size:24px}.qco{width:22px;height:22px}}
/* quran v23c: search bar, tabs */
.qtabs{display:flex;gap:0;margin:10px 0;border:1px solid #0f4c3a;border-radius:12px;overflow:hidden;max-width:360px}
.qtabs a{flex:1;text-align:center;padding:9px 12px;text-decoration:none;color:#0f4c3a;background:#fff;font-weight:600}
.qtabs a.on{background:#0f4c3a;color:#e8c85a}
.qbar{background:#fff;border:1px solid #e3d9b5;border-radius:12px;padding:12px;margin:10px 0}
.qs{position:relative}
.qs input{width:100%;font:inherit;font-size:16px;padding:12px 14px;border:2px solid #0f4c3a;border-radius:10px;background:#fffdf5;color:#222;box-sizing:border-box}
.qsr{position:absolute;z-index:30;right:0;left:0;top:100%;margin-top:4px;background:#fff;border:1px solid #cfc49a;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.18);max-height:min(70vh,520px);overflow:auto}
.qrh{padding:8px 14px;font-size:12px;color:#7a6a2a;background:#faf4dc;position:sticky;top:0}
.qrc{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px}
.qri{display:block;padding:9px 14px;text-decoration:none;color:#222;border-bottom:1px solid #f0ead2}
.qri b{display:block;font-size:14px;color:#0f4c3a}.qri span{display:block;font-size:12px;color:#5b5b5b}
.qri.qv .qvt{font-size:14px;color:#333;line-height:1.7}.qri mark{background:#f4e08a;color:inherit;border-radius:3px}
.qri:hover,.qri.act{background:#f6f0d6}
.qj{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;min-height:58px}
.qf{display:block;flex:1 1 130px;font-size:12px;color:#666}.qf>span:first-child{display:block;margin-bottom:3px}
.qf select,.qf input{width:100%;box-sizing:border-box;font:inherit;font-size:14px;padding:7px 8px;border:1px solid #cfc49a;border-radius:8px;background:#fff;color:#222}
.qf .qw{display:flex;gap:6px}.qf .qw select{flex:1;min-width:0}.qf .qw input{width:64px;flex:none}
.qf:first-child{flex:2 1 220px}
.qiml{margin:10px 0;background:#fff;border:1px solid #e3d9b5;border-radius:10px;padding:8px 14px}.qiml summary{cursor:pointer;color:#0f4c3a;font-weight:600;font-size:14px}.qiml p{line-height:2;color:#444;font-size:15px}
.qh2{font-size:18px;margin:14px 0 4px}
.hqs{display:flex;gap:8px;margin:8px 0 12px}.hqs input{flex:1;font:inherit;font-size:16px;padding:11px 14px;border:2px solid #0f4c3a;border-radius:10px;background:#fffdf5}
.hqs button{font:inherit;border:0;background:#0f4c3a;color:#e8c85a;border-radius:10px;padding:0 20px;cursor:pointer}
.qbm{margin:10px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.qbi{display:inline-flex;align-items:center;gap:2px}.qbi button{border:0;background:transparent;color:#999;cursor:pointer;font-size:16px}
html.dk .qtabs{border-color:#c9a227}html.dk .qtabs a{background:#15211c;color:#e8c85a}html.dk .qtabs a.on{background:#c9a227;color:#0f4c3a}
html.dk .qbar,html.dk .qsr,html.dk .qiml{background:#15211c;border-color:#2e4a3f}
html.dk .qs input,html.dk .hqs input{background:#111915;color:#eee;border-color:#c9a227}
html.dk .qri{color:#ddd;border-color:#24352e}html.dk .qri b{color:#e8c85a}html.dk .qri .qvt{color:#ccc}html.dk .qrh{background:#1c2c25;color:#c9b86a}
html.dk .qri:hover,html.dk .qri.act{background:#1f3329}html.dk .qri mark{background:#6b5a14;color:#fff}
html.dk .qf select,html.dk .qf input{background:#111915;color:#eee;border-color:#2e4a3f}html.dk .qiml p{color:#ccc}html.dk .qiml summary{color:#e8c85a}
.qex{font-size:12px;color:#888;margin-top:6px}.qex i{font-style:normal;color:#0f4c3a;cursor:pointer;border-bottom:1px dotted #0f4c3a}
html.dk .qex i{color:#e8c85a;border-color:#e8c85a}
.qread{margin:8px 0}.qread a{display:inline-block;border:1px solid #0f4c3a;color:#0f4c3a;border-radius:20px;padding:6px 16px;text-decoration:none;font-size:14px;background:#fff}
html.dk .qread a{background:#15211c;color:#e8c85a;border-color:#2e4a3f}
/* v24: منع اتساع الصفحة أفقياً على الهاتف */
.qbrowse{grid-template-columns:minmax(0,1fr)}
.qbrowse>div,.qbar,.qcard,.qtext,.qjump,.qiml,.rel,.chips{min-width:0;max-width:100%}
.qiml p{overflow-wrap:anywhere}
.qtext{overflow-wrap:break-word}
/* v25 search quran */
.sxi2{display:flex;align-items:stretch;gap:6px}.sxi2 .sxi{flex:1;min-width:0}
.sxrd{display:flex;align-items:center;white-space:nowrap;padding:0 12px;border-radius:10px;border:1px solid var(--bd,#d9d2c3);font-size:.9rem;text-decoration:none;background:var(--card,#fff);color:inherit}
.sxrd:hover,.sxrd.on{border-color:#1a6b4a;color:#1a6b4a}
.sxi.sxv .qvt{display:block;font-family:inherit;line-height:1.9;white-space:normal;color:inherit;opacity:.85}
.sxi.sxv mark{background:#f6e7a8;color:inherit;padding:0 2px;border-radius:3px}
/* v25 home all-surahs grid */
.hsn{margin:-4px 0 10px;font-size:.88rem;opacity:.75}
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:18px}
.sg{display:flex;align-items:stretch;border:1px solid var(--bd,#d9d2c3);border-radius:10px;background:var(--card,#fff);overflow:hidden;min-width:0}
.sgl{flex:1;min-width:0;display:flex;align-items:center;gap:7px;padding:9px 10px;text-decoration:none;color:inherit}
.sgl i{font-style:normal;font-size:.72rem;opacity:.6;min-width:1.7em;text-align:center}
.sgl b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sgr{display:flex;align-items:center;padding:0 10px;text-decoration:none;border-inline-start:1px solid var(--bd,#d9d2c3);background:rgba(26,107,74,.07)}
.sg:hover{border-color:#1a6b4a}.sgr:hover{background:rgba(26,107,74,.18)}
@media(max-width:600px){.sgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v25 read link in recordings panel */
.sc .rd{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;border:1px solid #cfe3d8;background:#f2faf5;border-radius:10px;text-decoration:none;font-size:14px}
.sc .rd:hover{background:#dff1e6;border-color:#1a6b4a}
@media(max-width:640px){.sc .rd{flex:0 0 30px;width:30px;font-size:13px}}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .sc .rd{background:rgba(26,107,74,.18);border-color:rgba(26,107,74,.5)}}
:root[data-theme="dark"] .sc .rd{background:rgba(26,107,74,.18);border-color:rgba(26,107,74,.5)}

/* v25 quran search button + justify */
.qsb{display:flex;align-items:center;gap:8px;width:100%;font:inherit;font-size:.95rem;text-align:start;padding:11px 14px;border:1px solid #d9cc99;border-radius:12px;background:#fff;color:inherit;cursor:pointer;margin-bottom:10px}
.qsb:hover{border-color:#1a6b4a}.qsb kbd{margin-inline-start:auto;font:inherit;font-size:.8rem;border:1px solid #d9cc99;border-radius:6px;padding:0 7px;opacity:.7}
html.dk .qsb{background:#111915;color:#eee;border-color:#c9a227}
.qtext{text-justify:inter-word;hyphens:none;word-spacing:0}
/* v25 compact quran toolbar */
.qsb b{font-weight:700}.qsb small{opacity:.65;font-size:.82rem}
@media(max-width:600px){
 .qbar{padding:10px;margin:8px 0}
 .qsb{padding:10px 12px;margin-bottom:8px}.qsb small,.qsb kbd{display:none}
 .qj{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:0;min-height:0}
 .qf:first-child{grid-column:1/-1}.qf{flex:none}
 .qf select,.qf input{font-size:15px;padding:7px 6px}
 .qtool{flex-wrap:wrap;gap:8px;margin:8px 0}.qtool .qbtn{flex:1;min-width:0;font-size:14px;padding:9px 10px;text-align:center}
 .qsz{display:flex;flex:none}.qsz button{min-width:38px;margin-inline-start:4px}
}
@media(max-width:600px){
 .qtext{font-size:25px;line-height:2.25}
 .qtool .qbtn{display:flex;align-items:center;justify-content:center;line-height:1.4}
}
/* v26 reciter picker */
.qlis{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.qrsel{white-space:nowrap}
.qrpn{border:1px solid #d9cc99;background:#fff;border-radius:12px;padding:10px;margin:8px 0;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.qrpn input{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:9px 12px;border:1px solid #cfc49a;border-radius:10px;background:#fff;color:#222;margin-bottom:8px}
.qrl{max-height:min(46vh,340px);overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
.qrl .qrh{grid-column:1/-1;font-size:.8rem;opacity:.65;padding:4px 2px}
.qro{font:inherit;text-align:start;padding:10px 12px;border:1px solid #e3d9b5;border-radius:10px;background:#fffdf5;color:inherit;cursor:pointer}
.qro:hover,.qro.on{border-color:#1a6b4a;background:#eaf6ef}
.qro.on{font-weight:700}
html.dk .qrpn,html.dk .qrpn input{background:#15211c;color:#eee;border-color:#2e4a3f}
html.dk .qro{background:#111915;border-color:#2e4a3f}html.dk .qro:hover,html.dk .qro.on{background:#1d3a2c}
@media(max-width:600px){.qrl{grid-template-columns:1fr 1fr}.qlis .qbtn.go{flex:1 1 100%}.qlis .qrsel{flex:1}}
.qtool .qrpn{flex:1 1 100%;order:9}
/* v28 search polish */
.sxi.sxv{display:block;padding:10px 12px}
.sxi.sxv b{display:block;font-size:.88rem;opacity:.8;margin-bottom:2px}
.sxi.sxv .qvt{font-size:1.1rem;line-height:2;text-align:right}
.sxi{overflow-wrap:anywhere}

/* v29 home grid: labeled actions */
.sgrid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.sg{flex-direction:column;padding:0}
.sgh{display:flex;align-items:center;gap:7px;padding:9px 10px 5px}
.sgh i{font-style:normal;font-size:.72rem;opacity:.6;min-width:1.7em;text-align:center}
.sgh b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sgb{display:flex;gap:6px;padding:0 8px 8px}
.sgb a{flex:1;text-align:center;font-size:.85rem;padding:6px 4px;border-radius:8px;text-decoration:none;white-space:nowrap}
.sgb .sgl{display:block;padding:6px 4px;background:rgba(201,162,39,.14);border:1px solid rgba(201,162,39,.45);color:inherit}
.sgb .sgr{display:block;border:1px solid #cfe3d8;border-inline-start:1px solid #cfe3d8;background:rgba(26,107,74,.1);color:#14583c}
.sgb .sgl:hover{background:rgba(201,162,39,.3)}.sgb .sgr:hover{background:rgba(26,107,74,.22)}
html.dk .sgb .sgr{color:#8fd4b0;border-color:rgba(26,107,74,.6)}
@media(max-width:600px){.sgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.sgb a{font-size:.8rem}}
@media(min-width:640px){.sc .rd::after{content:" اقرأ";font-size:12px}.sc .rd{flex-basis:auto;width:auto;padding:0 9px}}
/* v29 khatma */
.qkh{border:1px solid #d9cc99;background:#fffdf5;border-radius:14px;padding:14px;margin:10px 0}
.qkh h3{margin:0 0 6px;font-size:1.05rem}.qkh p{margin:4px 0;font-size:.92rem}
.qkh .kb{height:12px;border-radius:8px;background:#ece3c0;overflow:hidden;margin:8px 0}
.qkh .kb i{display:block;height:100%;background:#1a6b4a;border-radius:8px}
.qkh .kr{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.qkh select,.qkh button,.qkh a.go{font:inherit;font-size:.92rem;padding:8px 12px;border-radius:10px;border:1px solid #cfc49a;background:#fff;color:inherit;cursor:pointer;text-decoration:none}
.qkh a.go,.qkh button.pr{background:#1a6b4a;color:#fff;border-color:#1a6b4a;font-weight:700}
.qkh small{opacity:.7}
.qkc{position:sticky;top:0;z-index:5;margin:6px 0;padding:6px 12px;border:1px solid #cfe3d8;border-radius:10px;background:#f2faf5;font-size:.85rem;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.qkc .kb{flex:1;min-width:80px;height:7px;background:#dceadf;border-radius:6px;overflow:hidden}
.qkc .kb i{display:block;height:100%;background:#1a6b4a}
html.dk .qkh,html.dk .qkh select,html.dk .qkh button{background:#15211c;color:#eee;border-color:#2e4a3f}
html.dk .qkh .kb{background:#243a30}html.dk .qkc{background:#15211c;border-color:#2e4a3f}
html.dk .qkh a.go,html.dk .qkh button.pr{background:#1a6b4a;color:#fff}
/* v30 recordings grid: one column on phones so surah names are never truncated */
@media(max-width:640px){#grid{grid-template-columns:1fr!important;gap:8px}.sc .sb b{white-space:normal}}
/* v30 accessibility */
.ft2 h2.fh2{color:#e8c85a;margin:0 0 8px;font-size:15px;font-weight:700}
.ft2 h2.fh2 a{color:#e8c85a;text-decoration:none}.ft2 h2.fh2 a:hover{text-decoration:underline}
.bc a{text-decoration:underline;text-underline-offset:3px}
.hsn a{color:#0f4c3a;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.sgh i{opacity:.85;color:#4d4d4d}
.ptw:focus-visible{outline:2px solid #1a6b4a;outline-offset:2px}
.nx.pt-r .t,#pzip{background:#dcb83f}
.qkh h2{margin:0 0 6px;font-size:1.05rem}
/* v30 dark-mode contrast fixes */
html.dk .sg{background:#15211c;border-color:#2e4a3f}
html.dk .sgh b{color:#f0f0f0}html.dk .sgh i{color:#b8c4bd;opacity:1}
html.dk .sgb .sgl{color:#f3e3a6;background:rgba(201,162,39,.16)}
html.dk .hsn a{color:#8fd4b0}
html.dk .panel h3 small,html.dk .abar .cnt,html.dk .rc span,html.dk .tile span,html.dk .sb em,html.dk table.rt td[data-l]::before,html.dk .pt-opts label span,html.dk .qsrc,html.dk .qmore,html.dk .qhint,html.dk .qgo,html.dk .qri span,html.dk #ptitle small{color:#a9b8b0}
html.dk .note,html.dk .abar .hint,html.dk .mk,html.dk .pt-msg,html.dk .pgm,html.dk .mkb{color:#e0c668}
html.dk .sb i{color:#f3e3a6;background:rgba(201,162,39,.22)}
html.dk .altname{color:#a9d9c0}
html.dk .qf span,html.dk .qf label span{color:#a9b8b0}
html.dk #ptitle a{color:#a9d9c0}
html.dk .chip.on,html.dk .tab.on,html.dk .sb.on,html.dk .qtabs a.on,html.dk .pg.on{background:#dcb83f;color:#0f4c3a}
html.dk .qbtn.go{background:#dcb83f;color:#0f4c3a}
