@font-face{font-family:'AmiriQuran';src:url('../fonts/AmiriQuran.ttf')}
@font-face{font-family:'NotoKufi';src:url('../fonts/NotoKufi.ttf')}
:root{
  --bg:#0b2b33; --bg2:#0f3540; --bg3:#123d47; --line:#1d4b57;
  --gold:#e8c07a; --gold2:#f0d09a; --green:#5ec98a; --red:#a63b46;
  --ink:#e8f2ee; --dim:#8fa6ab; --dim2:#5f7a80;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:'NotoKufi',system-ui,sans-serif;font-size:13px;overflow:hidden}
.app{display:grid;grid-template-columns:320px 1fr 240px;grid-template-rows:56px 1fr 86px 22px;
  grid-template-areas:"top top top" "side main col" "bottom bottom bottom" "disc disc disc";height:100vh}
/* top */
.top{grid-area:top;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;font-size:17px;color:var(--gold)}
.brand .dot{width:9px;height:9px;border-radius:50%;background:var(--gold);display:inline-block}
.brand .sep{color:var(--dim2)}
.brand .t2{font-size:13px;color:var(--gold2);opacity:.85}
.ctrls{display:flex;gap:10px;align-items:center}
.chip{background:var(--bg3);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:7px 14px;font-family:inherit;font-size:12px;cursor:pointer}
.chip:hover{border-color:var(--gold);color:var(--gold2)}
.chip.sel{display:flex;gap:8px;align-items:center;padding:4px 12px}
.chip select{background:transparent;color:var(--ink);border:0;font-family:inherit;font-size:12px;max-width:190px}
.chip select option{background:var(--bg3)}
.chip input{width:46px;background:#0a232a;color:var(--gold2);border:1px solid var(--line);border-radius:8px;padding:3px 6px;font-family:inherit;font-size:12px;text-align:center}
.chip input::-webkit-outer-spin-button,.chip input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
/* panels */
.side{grid-area:side;padding:14px;display:flex;flex-direction:column;gap:10px;border-left:1px solid var(--line);min-height:0}
.col{grid-area:col;padding:14px;display:flex;flex-direction:column;gap:10px;border-right:1px solid var(--line);min-height:0}
.panelTitle{margin:0 0 2px;font-size:15px;color:var(--gold);font-weight:600;text-align:center}
.panelTitle.small{font-size:13px;color:var(--gold2)}
.card{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-height:0}
.card.grow{flex:1;overflow:auto}
.cardHead{color:var(--gold2);font-size:12px;margin-bottom:8px;opacity:.95}
.rows{display:flex;flex-direction:column;gap:7px}
.row{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--ink)}
.row .k{color:var(--dim)}
.muted{color:var(--dim);font-size:11.5px;line-height:1.7}
.muted.tiny{font-size:11px}
.gold{margin-top:auto;background:var(--gold);color:#123;border:0;border-radius:12px;padding:14px;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
.gold:hover{background:var(--gold2)}
.gold.on{background:var(--red);color:#fff}
.bar{height:7px;border-radius:4px;background:#0a232a;overflow:hidden;margin:6px 0}
.fill{height:100%;background:var(--green);width:0%}
.legend{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--dim)}
.sw{width:11px;height:11px;border-radius:50%;display:inline-block;margin-left:7px;vertical-align:-1px}
.sw.ok{background:var(--green)}.sw.bad{background:var(--red)}.sw.pend{background:var(--dim2)}
/* main */
.main{grid-area:main;position:relative;padding:22px 30px;overflow:auto;display:flex;flex-direction:column}
.ayat{display:flex;flex-direction:column;gap:6px}
.ayah{display:flex;align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid rgba(29,75,87,.55)}
.ayah:last-child{border-bottom:0}
.ayahNo{flex:0 0 auto;width:30px;height:30px;border-radius:50%;border:1px solid var(--gold);color:var(--gold);
  display:flex;align-items:center;justify-content:center;font-size:12px}
.quran{flex:1;font-family:'AmiriQuran',serif;font-size:33px;line-height:2.15;color:var(--ink);text-align:right;word-spacing:2px}
.quran .w{transition:color .15s,background .15s;padding:0 1px}
.quran .w.ok{color:var(--ink)}
.quran .w.bad{background:var(--red);color:#fff;border-radius:7px;padding:0 4px}
.quran .w.miss{color:var(--dim);border-bottom:2px dotted var(--dim2)}
.quran .w.pend{color:var(--dim2)}
.ayat.hide .quran .w{color:transparent;text-shadow:0 0 16px rgba(232,192,122,.45)}
.ayah.cur{background:rgba(232,192,122,.05);border-radius:10px}
/* notice */
.notice{margin-top:auto;background:#4a1620;border:1px solid #6d2330;color:#ffd9de;border-radius:10px;padding:11px 14px;font-size:12.5px;line-height:1.8}
.notice.hidden{display:none}
.notice b{color:#fff}
/* bottom */
.bottom{grid-area:bottom;display:flex;align-items:center;gap:18px;padding:0 22px;border-top:1px solid var(--line)}
.rec{width:56px;height:56px;border-radius:50%;background:var(--red);border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.rec span{width:18px;height:18px;border-radius:50%;background:#fff;transition:border-radius .15s,width .15s,height .15s}
.rec.on span{width:20px;height:20px;border-radius:4px}
#wave{flex:1;height:46px}
.timer{color:var(--gold2);font-size:12px;font-variant-numeric:tabular-nums}
.disclaimer{grid-area:disc;font-size:10.5px;color:var(--dim2);padding:2px 22px 4px;border-top:1px solid rgba(29,75,87,.4)}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#1d4b57;border-radius:4px}
