:root{--bg:#092e29;--panel:#103c34;--surface:#18483e;--ink:#f5f3e8;--muted:#b4c4b9;--gold:#dfc27e;--line:#bba67136;--soft:#ffffff08;--shadow:#001b1870;color-scheme:dark;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Avenir Next',Avenir,'Segoe UI',Tahoma,sans-serif;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,select,input{color:inherit}button{border:1px solid var(--line);background:var(--soft);border-radius:10px;min-height:46px;padding:9px 16px}button:hover{background:var(--surface)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}button[aria-pressed=true]{color:var(--gold);background:var(--surface)}.primary,.audio-button{background:var(--gold);color:var(--bg);font-weight:600}.primary:hover,.audio-button:hover{background:var(--ink);color:var(--bg)}.quiet,.icon-button{border-color:transparent;background:transparent}.icon-button{width:46px;padding:10px;font-size:22px;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0}.quiet{padding-inline:13px}.identity{display:flex;gap:12px;align-items:center}.brandmark{width:44px;height:44px;stroke:var(--gold);fill:none;stroke-width:1.3}.identity strong{font:34px/1.1 Georgia,'Times New Roman',serif}.brand-sub{display:block;font-size:12px;color:var(--muted);margin-top:4px}.city{display:flex;align-items:center;gap:10px;font-size:16px}.city small{display:block;font-size:12px;color:var(--muted)}.pin{font-size:32px;color:var(--gold)}header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:98px;border-bottom:1px solid var(--line)}nav{display:flex;gap:3px;align-items:center}#app{max-width:1500px;margin:auto;padding:0 42px;padding-top:env(safe-area-inset-top);min-height:100vh;display:flex;flex-direction:column}main{flex:1;display:flex;flex-direction:column}.time-section{position:relative;text-align:center;padding:25px 0 25px;overflow:hidden}.date-line{display:flex;gap:20px;align-items:center;justify-content:center;color:var(--muted);font-size:16px}.date-divider{color:var(--gold);font-size:10px}.clock{font-family:'Avenir Next','Segoe UI',sans-serif;display:flex;align-items:center;justify-content:center;line-height:1.13;font-size:clamp(110px,17vw,220px);letter-spacing:-.055em;font-weight:300;font-variant-numeric:tabular-nums;position:relative;z-index:1}.colon{font-weight:200;margin:0 .035em;transform:translateY(-.065em);color:var(--gold)}.clock-small{display:flex;flex-direction:column;font-size:25px;font-weight:400;letter-spacing:0;gap:11px;align-self:center;margin-left:20px;color:var(--muted)}#seconds{font-size:38px;color:var(--gold)}#period{font-size:19px}.next-line{display:flex;gap:10px;align-items:center;justify-content:center;position:relative;z-index:1;color:var(--muted)}.next-line strong{font-size:21px;color:var(--gold);font-weight:500}#countdown{font-variant-numeric:tabular-nums;margin-inline-start:7px;letter-spacing:.04em}.mosque{position:absolute;bottom:0;left:0;width:100%;height:130px;stroke:var(--gold);stroke-width:.9;fill:none;opacity:.12;pointer-events:none}#iqamah{font-size:14px;color:var(--gold)}.prayers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;gap:8px}.prayer{position:relative;text-align:center;padding:15px 2px 12px;border:1px solid transparent;border-radius:55px 55px 8px 8px;min-height:108px}.prayer.active{border-color:var(--gold);background:var(--soft)}.prayer .name{font-size:16px;color:var(--muted)}.prayer.active .name{color:var(--gold)}.prayer time{display:block;font-variant-numeric:tabular-nums;font-size:27px;font-weight:500;margin-top:6px;white-space:nowrap}.prayer time small{font-size:12px;font-weight:400;margin-inline-start:4px;color:var(--muted)}.prayer.sunrise{opacity:.7}.prayer .next-marker{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--bg);font-size:12px;padding:0 8px;color:var(--gold);white-space:nowrap}.reflection{display:flex;align-items:center;justify-content:center;gap:30px;min-height:137px;padding:16px 0;text-align:center;flex:1}.reflection p{margin:3px 0}.reflection #verse-ar{font:27px/1.6 'Traditional Arabic','Geeza Pro',Tahoma,serif;color:var(--gold)}.reflection #verse-en{font:16px/1.5 Georgia,serif}.reflection small{font-size:12px;color:var(--muted)}.ornament{font-size:30px;color:var(--gold);opacity:.55}.player{display:grid;grid-template-columns:1fr 1.15fr .7fr;align-items:center;gap:20px;border:1px solid var(--line);border-radius:14px;background:var(--soft);padding:16px 20px;margin-bottom:16px}.player-info{display:flex;align-items:center;gap:15px;min-width:0}.book{font-size:45px;color:var(--gold)}.player-info small{color:var(--muted);font-size:12px}.surah-title{display:flex;align-items:center;gap:8px;padding:0;background:none;border:0;border-radius:0;font:23px/1.2 Georgia,'Traditional Arabic',serif;min-height:34px;text-align:start;max-width:100%}.surah-title svg{width:14px}.player-info #reciter-name{display:block;font-size:12px;color:var(--muted)}.play-controls{display:flex;justify-content:center;align-items:center;gap:8px;direction:ltr}.play-controls .icon-button{font-size:20px}.play-button{border-radius:50%;height:54px;width:54px;padding:0;background:var(--gold);color:var(--bg);font-size:23px;border:0;display:flex;align-items:center;justify-content:center}.progress{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-top:9px;direction:ltr;font-variant-numeric:tabular-nums}.progress input{width:100%;min-width:50px;min-height:24px;margin:0;accent-color:var(--gold)}input[type=range]{accent-color:var(--gold)}.player-extra{text-align:end}.player-extra button{padding:5px 8px;font-size:14px}.player-extra small{display:block;color:var(--muted);font-size:12px}footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px;padding-bottom:16px;line-height:1.5}footer span:last-child{max-width:430px;text-align:end}dialog{color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 100px #0008;padding:0;max-width:850px;width:calc(100% - 40px);max-height:90vh;max-height:90dvh}dialog::backdrop{background:#001811b8}.dialog-header{padding:22px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}h1{font:30px/1.3 Georgia,'Traditional Arabic',serif;margin:0}h2{font-size:20px;font-weight:500;margin:8px 0 20px}h3{font-size:17px;font-weight:600;margin-top:25px}.dialog-header small{color:var(--muted)}.settings-tabs{display:flex;overflow-x:auto;gap:8px;border-bottom:1px solid var(--line);padding:10px 20px}.settings-tabs button{font-size:14px;white-space:nowrap;border-color:transparent}.settings-tabs button[aria-selected=true]{color:var(--gold);border-color:var(--line);background:var(--surface)}#settings-content{padding:24px 28px;min-height:330px}#settings-content p{color:var(--muted);font-size:15px;max-width:70ch}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}label.field{display:flex;flex-direction:column;gap:7px;font-size:15px}input:not([type=range]):not([type=checkbox]),select{min-width:0;max-width:100%;background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:46px;padding:10px 12px}select{appearance:none;-webkit-appearance:none;padding-inline-end:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%239ba99e' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}[dir=rtl] select{background-position:left 10px center}input[type=number],input[type=url],#zone-input{direction:ltr;text-align:start}input[type=range]{min-height:40px;width:100%}.check{display:flex;align-items:center;gap:12px;font-size:15px;min-height:46px}input[type=checkbox]{width:21px;height:21px;accent-color:var(--gold);flex-shrink:0}.hint{font-size:13px;color:var(--muted);margin:5px 0 16px}.dialog-bottom{padding:16px 28px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;background:var(--bg);position:sticky;bottom:0}.adjust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.per-prayer{display:grid;grid-template-columns:90px 1fr 1fr;gap:12px;align-items:center;border-top:1px solid var(--line);padding:10px 0}.audio-actions{display:flex;gap:10px;flex-wrap:wrap}.audio-actions button{font-size:14px}.import-label{display:block;margin:14px 0;font-size:14px}.import-label input{display:block;margin-top:8px;width:100%}a{color:var(--gold)}#notice,#audio-error{position:fixed;z-index:20;bottom:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);background:var(--panel);border:1px solid var(--gold);border-radius:12px;padding:8px 10px 8px 20px;display:flex;align-items:center;gap:12px;box-shadow:0 8px 35px #0005;font-size:14px}#audio-error{bottom:auto;top:15px;z-index:40;max-width:800px}#audio-error button{font-size:14px;flex-shrink:0}#notice[hidden],#audio-error[hidden]{display:none}.library-tools{padding:20px 28px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.library-tools label{display:flex;flex-direction:column;gap:8px;font-size:14px}#surah-list{padding:0 28px 25px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.surah-item{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start;padding:12px}.surah-item span:first-child{font-size:13px;color:var(--muted);min-width:24px}.surah-item strong{font-weight:500;flex:1}.surah-item .surah-ar{font:21px 'Traditional Arabic',Tahoma,serif;color:var(--gold)}#adhan-dialog{text-align:center;padding:40px;max-width:700px}#adhan-dialog h1{font-size:64px;color:var(--gold);margin:20px}.call-decoration{font-size:65px;color:var(--gold)}.call-arabic{font:42px 'Traditional Arabic','Geeza Pro',serif}#call-test{color:var(--gold)}#dua-caption{font-size:18px;color:var(--muted)}#dimmer{position:fixed;inset:0;background:#000;opacity:0;pointer-events:none;z-index:10}body[data-theme=midnight]{--bg:#101f35;--panel:#182d49;--surface:#223c5d;--muted:#b5c5d8;--gold:#d9c48e;--line:#97b4d83b}body[data-theme=dark]{--bg:#161b1b;--panel:#242c2b;--surface:#303c38;--muted:#b8c3bf;--gold:#d6c592;--line:#c4c9b92b}body[data-theme=light]{--bg:#f5f7f5;--panel:#fff;--surface:#e3eae5;--ink:#14392f;--muted:#50655c;--gold:#85651e;--line:#31594a36;--soft:#183c2905;color-scheme:light}[dir=rtl] .identity strong{font-family:'Traditional Arabic','Geeza Pro',Tahoma,serif}[dir=rtl] .brand-sub{font-size:13px}[dir=rtl] .clock{direction:ltr}[dir=rtl] .surah-title{font-family:'Traditional Arabic','Geeza Pro',Tahoma,serif}[dir=rtl] .player-info #reciter-name{font-size:14px}
@media(min-width:900px) and (max-height:780px){#app{padding-inline:30px}header{min-height:84px}.time-section{padding:16px 0 23px}.clock{font-size:176px}.prayers{padding:13px 0}.prayer{min-height:100px;padding-top:14px}.reflection{min-height:116px;padding:10px 0}.reflection #verse-ar{font-size:25px}.player{padding:12px 18px;margin-bottom:12px}footer{padding-bottom:12px}}
@media(min-width:900px) and (max-height:680px){header{min-height:72px}.clock{font-size:145px}.time-section{padding:12px 0 18px}.reflection{min-height:102px}.prayer{min-height:85px;padding:10px 2px}.prayer time{font-size:24px}.player{padding:8px 14px}.brand-sub{display:none}}
@media(max-width:899px){#app{padding-inline:20px}header{min-height:86px;flex-wrap:wrap;padding:16px 0;gap:12px}.brand-sub{display:none}.city{margin-inline-start:auto}nav{width:100%;justify-content:flex-end}.identity strong{font-size:30px}.brandmark{width:36px;height:36px}.time-section{padding-top:26px}.clock{font-size:clamp(90px,19vw,160px)}.clock-small{margin-left:10px;gap:6px}#seconds{font-size:28px}#period{font-size:15px}.date-line{font-size:14px;gap:10px;flex-wrap:wrap}.next-line{gap:7px;flex-wrap:wrap;font-size:14px}.next-line strong{font-size:18px}.prayers{grid-template-columns:repeat(3,1fr);gap:15px 8px;padding:20px 0}.prayer time{font-size:27px}.prayer{min-height:100px}.reflection{min-height:170px;gap:15px}.ornament{font-size:22px}.reflection #verse-ar{font-size:25px}.player{grid-template-columns:1fr;gap:14px;padding:16px}.player-info{justify-content:center}.player-extra{display:flex;justify-content:space-between;align-items:center}.progress{max-width:420px;margin:10px auto 0}footer{flex-direction:column;font-size:12px;gap:6px}footer span:last-child{text-align:start;max-width:none}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.adjust-grid{grid-template-columns:repeat(2,1fr)}dialog{width:calc(100% - 20px)}.dialog-header{padding:16px 18px}#settings-content{padding:20px 18px}.settings-tabs{padding:10px}.library-tools{grid-template-columns:1fr;padding:18px}#surah-list{grid-template-columns:1fr;padding:0 18px 18px}.per-prayer{grid-template-columns:65px 1fr 1fr;gap:6px}.per-prayer label{font-size:12px}#audio-error{flex-wrap:wrap}#audio-error span{flex:1 1 100%}#adhan-dialog{padding:25px 15px}#adhan-dialog h1{font-size:45px}.call-arabic{font-size:32px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@font-face{font-family:Amiri;src:url('fonts/Amiri-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}#verse-ar,.call-arabic,.surah-ar,[dir=rtl] .surah-title,[dir=rtl] .identity strong{font-family:Amiri,'Geeza Pro',serif}#verse-ar{line-height:1.7}


@media(min-width:900px) and (min-height:681px) and (max-height:780px){.clock{font-size:164px}.time-section{padding:12px 0 19px}.reflection{min-height:105px}.player{padding:10px 18px;margin-bottom:10px}}

/* AL HEJAZ: landscape clock based on the supplied layout reference. */
:root{--selected:#e2f1db;--next:#133f24;--next-ink:#fff}
body[data-theme=light]{--bg:#f8f9f6;--panel:#fff;--surface:#eaf0e6;--ink:#06302a;--muted:#627268;--gold:#426d40;--line:#193d2824;--soft:#fff9;--selected:#e2f1db;--next:#133f24;--next-ink:#fff}
body[data-theme=emerald]{--selected:#254c3a;--next:#153f2d;--next-ink:#f5f3e8}body[data-theme=midnight]{--selected:#2a4263;--next:#1c3354;--next-ink:#f1f5f8}body[data-theme=dark]{--selected:#334737;--next:#26382c;--next-ink:#f2f4ef}
button[aria-pressed=true]{background:var(--selected)}.background-calligraphy{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;opacity:.048}.background-calligraphy span{position:absolute;font:650px/1 Amiri,serif;white-space:nowrap;transform:rotate(-22deg);color:var(--ink);right:-280px;top:-220px}.background-calligraphy span:nth-child(2){right:300px;top:230px;transform:rotate(-18deg)}.background-calligraphy span:nth-child(3){right:-520px;top:470px}#app{position:relative;z-index:1;max-width:1560px;padding-inline:30px;min-height:100vh;min-height:100dvh}header{direction:ltr;height:88px;min-height:88px;flex-shrink:0}.identity{direction:ltr;gap:10px}.brandmark{width:40px;height:40px}.identity strong,[dir=rtl] .identity strong{font:700 23px/1.1 'Avenir Next','Segoe UI',sans-serif;letter-spacing:.08em}.brand-sub,[dir=rtl] .brand-sub{display:block;font:23px/1.3 Amiri,'Geeza Pro',serif;color:var(--gold);margin-top:2px}nav{gap:8px}.settings-button{display:flex;align-items:center;gap:9px;background:var(--panel);border-color:var(--gold);font-weight:600;min-width:120px;justify-content:center}.primary,.audio-button{background:var(--next);color:var(--next-ink)}.audio-button.quiet{background:transparent;color:var(--gold)}main{gap:12px;padding-top:20px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.15fr);gap:35px;direction:ltr;flex:1;min-height:425px}.prayers{grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));padding:0;border:0;gap:9px}.prayer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 25px;border:1px solid transparent;border-radius:15px;background:var(--soft);direction:ltr;min-height:0}.prayer .name{order:2;font-size:24px;font-weight:600;line-height:1.3;text-align:end;color:var(--ink)}.prayer time{order:1;margin:0;font-size:39px;letter-spacing:-.04em;font-weight:650;white-space:nowrap;line-height:1.2}.prayer time small{font-size:16px;font-weight:500;margin-left:8px;color:var(--gold);letter-spacing:0}.prayer.active{border:2px solid var(--gold);padding:7px 24px;background:var(--selected)}.prayer.active .name{color:var(--ink)}.prayer.sunrise{opacity:.58}.time-section{display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:center;gap:14px;padding:0;overflow:visible}.place-heading .city{font-size:22px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;margin:0}.place-heading small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.pin{font-size:23px}.clock{font:700 clamp(100px,15.6vw,235px)/1.03 'Avenir Next','Segoe UI',sans-serif;letter-spacing:-.085em;font-variant-numeric:tabular-nums;direction:ltr;white-space:nowrap}.colon{display:flex;flex-direction:column;gap:.19em;align-items:center;margin:0 .07em .01em .08em;transform:none}.colon i{height:.065em;width:.065em;background:var(--ink);transform:rotate(45deg)}.clock-small{display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:105px;font-weight:500;letter-spacing:0;margin-left:18px;align-self:center;color:var(--gold);gap:0}#seconds{font-size:25px;color:var(--muted);font-weight:600}#period{font-size:25px}.date-line{gap:10px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:9px 12px;font-size:14px;color:var(--ink);direction:rtl}.date-divider{color:var(--muted);font-size:14px}.next-panel{position:relative;display:flex;justify-content:space-between;align-items:center;gap:14px;overflow:hidden;background:var(--next);color:var(--next-ink);border-radius:20px;padding:18px 25px;direction:rtl;text-align:center;min-height:110px}.next-panel:before{content:'الحجاز';font:220px/1 Amiri,serif;opacity:.08;position:absolute;inset:-50px -100px auto auto;transform:rotate(-20deg);pointer-events:none}.next-panel>div{position:relative;z-index:1}.next-panel span{display:block;font-size:15px;opacity:.85}.next-panel strong{display:block;font-size:43px;line-height:1.2;margin-top:5px;font-weight:600}.next-panel .countdown-group{border-inline-start:1px solid #fff4;padding-inline-start:22px;flex:1}#countdown{font-size:40px;font-variant-numeric:tabular-nums;letter-spacing:-.03em;margin:5px 0 0}#iqamah{position:absolute;bottom:2px;left:20px;font-size:11px}.reflection{min-height:83px;flex:none;gap:22px;padding:0 12px}.reflection p{margin:0}.reflection #verse-ar{font:24px/1.7 Amiri,'Geeza Pro',serif}.reflection #verse-en{font:14px/1.35 Georgia,serif}.reflection small{font-size:11px}.ornament{font-size:27px}.player{grid-template-columns:1fr 1.1fr .8fr;direction:ltr;gap:16px;border-radius:19px;background:var(--panel);padding:15px 22px;box-shadow:0 8px 30px #153c1d06;flex-shrink:0;margin:0}.book-cover{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:62px;height:74px;border-radius:12px;background:var(--next);color:#dbe8be}.book-cover svg{width:39px;stroke:currentColor;stroke-width:1.3;fill:none}.track-details{min-width:0}.surah-title{font:600 24px/1.3 'Segoe UI',sans-serif}.reciter-link{display:block;text-align:start;border:0;border-radius:0;padding:2px 0;background:none;min-height:26px;font-size:13px;color:var(--muted);max-width:100%}.reciter-link:hover{text-decoration:underline;background:none}.play-controls{gap:9px}.play-button{height:55px;width:55px;background:var(--next);color:var(--next-ink)}.progress{margin-top:7px}.library-button{font-size:14px;border:1px solid var(--line);padding:8px 14px;background:var(--surface)}.player-extra small{margin-top:5px}#archive-status{font-size:10px;max-width:180px}#archive-status:empty{display:none}footer{font-size:11px;padding:10px 0 12px;flex-shrink:0}#library-dialog{max-width:1000px}.library-layout{display:grid;grid-template-columns:250px minmax(0,1fr);direction:ltr;min-height:350px}.reciter-panel{border-right:1px solid var(--line);padding:18px 15px}.collection-label{display:flex;flex-direction:column;gap:7px;font-size:14px;margin-bottom:13px}.reciter-cards{display:flex;flex-direction:column;gap:7px;max-height:480px;overflow-y:auto;padding:3px}.reciter-card{display:flex;align-items:center;gap:10px;padding:9px;text-align:start;min-height:64px;background:var(--panel)}.reciter-card[aria-pressed=true]{background:var(--selected);border-color:var(--gold)}.reciter-monogram{border:1px solid var(--line);background:var(--surface);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font:22px Amiri,serif}.reciter-card strong{font-size:14px;font-weight:600;display:block}.reciter-card small{font-size:11px;display:block;color:var(--muted)}.library-tools{padding:18px 22px 8px;gap:12px}.coverage-note{margin:6px 22px 14px;font-size:13px;color:var(--muted)}#archive-source{display:block;margin:-4px 22px 14px;font-size:13px}#archive-source[hidden]{display:none}#surah-list{padding:0 22px 25px;gap:7px}.surah-item{gap:10px;padding:10px}.surah-item strong{font-size:14px}.surah-item[aria-current=true]{border-color:var(--gold);background:var(--selected)}.unavailable-surah{opacity:.36}[dir=rtl] .time-section,[dir=rtl] .reflection,[dir=rtl] .reciter-panel,[dir=rtl] .surah-panel{direction:rtl}[dir=rtl] .player-info{direction:rtl}[dir=rtl] .track-details{text-align:right}[dir=rtl] .surah-title{font:28px/1.3 Amiri,serif}[dir=rtl] .reciter-link{font-size:14px}[dir=rtl] .prayer .name{font-size:26px}[dir=ltr] .date-line,[dir=ltr] .next-panel{direction:ltr}
@media(min-width:900px) and (max-height:800px){header{height:76px;min-height:76px}main{padding-top:16px;gap:8px}.dashboard-grid{min-height:0;gap:28px}.prayers{padding:0}.prayer{padding:6px 19px;min-height:0;border-radius:13px}.prayer.active{padding:5px 18px}.prayer time{font-size:35px}.prayer .name{font-size:22px}[dir=rtl] .prayer .name{font-size:25px}.clock{font-size:clamp(110px,15.3vw,175px)}.time-section{padding:0;gap:12px}.place-heading .city{font-size:20px}.next-panel{padding:15px 22px;min-height:104px}.next-panel strong,#countdown{font-size:36px}.next-panel .countdown-group{padding-inline-start:14px}.reflection{min-height:77px;padding:0 12px}.reflection #verse-ar{font-size:23px}.player{padding:11px 17px;margin:0}.book-cover{height:68px;width:56px}footer{font-size:10px;padding:8px 0 10px}}
@media(min-width:900px) and (max-height:680px){header{height:66px;min-height:66px}main{padding-top:12px;gap:6px}.time-section{gap:8px}.prayers{gap:6px}.prayer time{font-size:31px}.clock{font-size:137px}.clock-small{height:83px;margin-left:13px}.date-line{font-size:12px;padding:6px 8px}.next-panel{min-height:84px;padding:10px 20px}.next-panel strong,#countdown{font-size:31px}.next-panel span{font-size:13px}.reflection{min-height:63px}.reflection #verse-ar{font-size:20px}.reflection #verse-en{font-size:12px}.reflection small{font-size:10px}.player{padding:8px 16px}.book-cover{height:60px;width:48px}.play-button{height:48px;width:48px}.progress{margin-top:0}.place-heading .city{font-size:18px}.place-heading small{font-size:11px}}
@media(max-width:899px){#app{padding-inline:18px}header{height:auto;min-height:80px;flex-wrap:wrap;padding:15px 0;gap:14px}.identity strong{font-size:21px}.brandmark{width:35px;height:35px}.brand-sub,[dir=rtl] .brand-sub{display:block;font-size:20px}nav{gap:4px;flex-wrap:wrap;justify-content:flex-end;flex:1;width:auto}.settings-button{min-width:108px}.audio-button,.quiet{font-size:14px}.dashboard-grid{grid-template-columns:1fr;gap:20px;min-height:0}.time-section{grid-row:1;gap:15px;padding:0}.prayers{grid-row:2;gap:8px;grid-template-rows:none;grid-template-columns:1fr 1fr;padding:0}.prayer{padding:10px 13px;min-height:78px;flex-direction:column;gap:4px}.prayer.active{padding:9px 12px}.prayer .name{order:1;font-size:18px}.prayer time{order:2;font-size:30px}[dir=rtl] .prayer .name{font-size:21px}.prayer time small{font-size:12px;margin-left:4px}.place-heading .city{font-size:20px}.place-heading small{font-size:11px}.clock{font-size:clamp(85px,24vw,175px)}.clock-small{height:70px;margin-left:10px}#period{font-size:20px}#seconds{font-size:21px}.date-line{font-size:13px;gap:6px}.next-panel{min-height:99px;border-radius:17px;padding:16px 20px}.next-panel strong{font-size:36px}#countdown{font-size:33px}.next-panel span{font-size:13px}.next-panel .countdown-group{padding-inline-start:15px}.reflection{min-height:110px;padding:10px 0;gap:10px}.reflection #verse-ar{font-size:24px}.reflection #verse-en{font-size:14px}.ornament{font-size:20px}.player{grid-template-columns:1fr;gap:12px;padding:17px}.player-info{justify-content:center}.player-center{min-width:0}.player-extra{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.player-extra small{margin:0}.progress{max-width:420px;margin:7px auto 0}footer{flex-direction:column;font-size:11px;gap:5px;padding:13px 0}footer span:last-child{text-align:start;max-width:none}.library-layout{grid-template-columns:1fr}.reciter-panel{border-right:0;border-bottom:1px solid var(--line);padding:14px}.reciter-cards{display:grid;grid-auto-flow:column;grid-auto-columns:185px;overflow-x:auto;max-height:none;padding:3px 3px 10px}.reciter-card{min-height:68px}.library-tools{padding:16px 15px 8px;grid-template-columns:1fr}.coverage-note{margin:6px 15px 14px}#surah-list{padding:0 15px 20px;grid-template-columns:1fr 1fr}.surah-item{flex-wrap:wrap;gap:5px;padding:9px}.surah-item strong{font-size:13px}.surah-item .surah-ar{font-size:19px}#archive-source{margin-inline:15px}}
@media(max-width:420px){header{justify-content:center}.identity{margin-inline-end:auto}nav{flex-basis:100%;justify-content:space-between}.player-extra{justify-content:center}.player-extra small{flex-basis:100%;text-align:center}#archive-status{max-width:none}.prayer time{font-size:28px}.next-panel strong{font-size:32px}#countdown{font-size:30px}.next-panel{padding:16px}.background-calligraphy{opacity:.03}}
/* V3: restrained Andalusian stone, olive and brass; larger reading sizes. */
body[data-theme=andalus]{--bg:#f5f3ed;--panel:#fffefb;--surface:#eeeee4;--ink:#20382f;--muted:#526254;--gold:#776236;--line:#998e703a;--soft:#fffdf8b8;--selected:#e6ecdb;--next:#354c38;--next-ink:#fffdf7;color-scheme:light}
.background-calligraphy{opacity:.022}.background-calligraphy span{font-size:560px}.background-calligraphy span:nth-child(1){right:-420px;top:-260px}.background-calligraphy span:nth-child(2){right:650px;top:370px}.background-calligraphy span:nth-child(3){display:none}body[data-theme=andalus]{background-image:none;background-repeat:no-repeat;background-position:center bottom;background-size:cover;background-attachment:fixed}body[data-theme=andalus]:before{content:'';position:fixed;inset:0;background:#f5f3ede8;pointer-events:none;z-index:0}#app{z-index:1}.identity strong,[dir=rtl] .identity strong{font-size:24px;letter-spacing:.07em}.brand-sub,[dir=rtl] .brand-sub{font-size:25px}.settings-button{font-size:18px;min-height:52px;min-width:139px;gap:11px;border-radius:12px}.settings-button svg{width:25px;height:25px;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}.play-button{width:60px;height:60px}.play-button svg{width:30px;height:30px;display:block}.play-controls .icon-button{width:48px;height:48px}.play-controls .icon-button svg{width:25px;height:25px;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.player-info small{font-size:15px}.reciter-link,[dir=rtl] .reciter-link{font-size:17px;min-height:36px}.surah-title{font-size:27px;min-height:40px}[dir=rtl] .surah-title{font-size:31px}.library-button{font-size:17px;min-height:50px}.player-extra button{font-size:17px}.player-extra small{font-size:14px}.progress{font-size:14px}.place-heading small{font-size:14px}.date-line{font-size:16px}.prayer .name{font-size:25px}[dir=rtl] .prayer .name{font-size:28px}.prayer time{font-size:39px}.prayer time small{font-size:17px}.next-panel span{font-size:17px}.next-panel strong{font-size:40px}#countdown{font-size:40px}.reflection #verse-ar{font-size:26px}.reflection #verse-en{font-size:16px}.reflection small{font-size:13px}footer{font-size:12px}.library-layout{grid-template-columns:285px minmax(0,1fr)}.reciter-card{min-height:62px;padding:12px 14px;justify-content:space-between;gap:10px}.reciter-card strong{font-size:18px;font-weight:500;line-height:1.55}.reciter-card svg{width:22px;min-width:22px;stroke-width:2}.reciter-card small,.reciter-monogram{display:none}.reciter-cards{max-height:465px}.collection-label,.library-tools label{font-size:16px}.coverage-note{font-size:15px;line-height:1.65}.surah-item{min-height:57px}.surah-item strong{font-size:16px}.surah-item .surah-ar{font-size:24px}.settings-tabs button{font-size:16px}label.field,.check{font-size:17px}#settings-content p{font-size:16px}.hint{font-size:14px}#archive-status{font-size:12px}button,input,select{touch-action:manipulation}
@media(min-width:900px) and (max-height:800px){header{height:78px;min-height:78px}.prayer time{font-size:37px}.prayer .name{font-size:23px}[dir=rtl] .prayer .name{font-size:27px}.place-heading .city{font-size:23px}.place-heading small{font-size:14px}.date-line{font-size:15px;padding:8px 10px}.next-panel span{font-size:16px}.next-panel strong,#countdown{font-size:38px}.reflection{min-height:78px}.reflection #verse-ar{font-size:25px}.reflection #verse-en{font-size:15px}.reflection small{font-size:12px}.player{padding:10px 16px}.play-button{height:57px;width:57px}.player-info small{font-size:14px}.reciter-link,[dir=rtl] .reciter-link{font-size:16px;min-height:30px}.library-button{font-size:16px}.player-extra small{font-size:13px}footer{font-size:11px}}
@media(min-width:900px) and (max-height:680px){header{height:68px;min-height:68px}.clock{font-size:132px}.place-heading small{font-size:12px}.date-line{font-size:13px}.prayer time{font-size:32px}.prayer .name{font-size:21px}[dir=rtl] .prayer .name{font-size:24px}.next-panel strong,#countdown{font-size:32px}.next-panel span{font-size:14px}.reflection{min-height:61px}.reflection #verse-ar{font-size:21px}.reflection #verse-en{font-size:13px}.reflection small{font-size:11px}.player{padding:7px 14px}.play-button{width:49px;height:49px}.player-info small{font-size:13px}.surah-title,[dir=rtl] .surah-title{font-size:25px;min-height:30px}.reciter-link,[dir=rtl] .reciter-link{font-size:14px;min-height:26px}}
@media(max-width:899px){.identity strong,[dir=rtl] .identity strong{font-size:23px}.settings-button{font-size:17px;min-width:134px;min-height:50px}.date-line{font-size:14px}.place-heading .city{font-size:23px}.place-heading small{font-size:13px}.prayer time{font-size:32px}.prayer .name{font-size:21px}[dir=rtl] .prayer .name{font-size:25px}.prayer time small{font-size:15px}.next-panel span{font-size:15px}.next-panel strong,#countdown{font-size:34px}.reflection #verse-ar{font-size:25px}.reflection #verse-en{font-size:16px}.reflection small{font-size:13px}.library-layout{grid-template-columns:1fr}.reciter-cards{grid-auto-columns:220px;max-height:none}.reciter-card strong{font-size:18px}.surah-item strong{font-size:15px}.surah-item .surah-ar{font-size:23px}.player-extra small{font-size:14px}.library-button{font-size:17px}.player-info small{font-size:15px}.reciter-link,[dir=rtl] .reciter-link{font-size:17px}footer{font-size:12px}body[data-theme=andalus]{background-attachment:scroll}}
/* V4: real photographs only. Calligraphy is live Arabic type, never image-generated. */
@font-face{font-family:'Noto Kufi Arabic';src:url('fonts/NotoKufiArabic.ttf') format('truetype');font-weight:100 900;font-display:swap}
body[data-theme=umayyad-light]{--bg:#f6f3ec;--panel:#fffdf9;--surface:#eeece4;--ink:#25372f;--muted:#526155;--gold:#806a3f;--line:#8e7c4c42;--soft:#fffdf6eb;--selected:#e8ecdc;--next:#364a38;--next-ink:#fffaf1;--art-image:url('images/cordoba-real.png');--art-opacity:.25;--art-filter:saturate(.7);--calligraphy-opacity:.055;--clock-wash:#f6f3ec85;color-scheme:light}
body[data-theme=umayyad-dark]{--bg:#131815;--panel:#1d2520;--surface:#2b352d;--ink:#f2eee1;--muted:#c0c5b5;--gold:#d8bf86;--line:#cdb57945;--soft:#18221dee;--selected:#354330;--next:#34442f;--next-ink:#fff9e9;--art-image:url('images/cordoba-real.png');--art-opacity:.19;--art-filter:brightness(.7) saturate(.45);--calligraphy-opacity:.075;--clock-wash:#13181590;color-scheme:dark}
body[data-theme=umayyad-mono]{--bg:#f7f7f5;--panel:#fff;--surface:#ededeb;--ink:#171917;--muted:#565a56;--gold:#282c28;--line:#272b2745;--soft:#fffffff0;--selected:#e3e5e1;--next:#181b18;--next-ink:#fff;--art-image:url('images/cordoba-real.png');--art-opacity:.17;--art-filter:grayscale(1) contrast(.9);--calligraphy-opacity:.055;--clock-wash:#f7f7f5a0;color-scheme:light}
body[data-theme=makkah]{--bg:#101a25;--panel:#142332;--surface:#233647;--ink:#f5f2e7;--muted:#c2d0d6;--gold:#e1c98b;--line:#cbb68152;--soft:#102234dc;--selected:#2d4450;--next:#263d49;--next-ink:#fff9e9;--art-image:url('images/makkah-real.jpg');--art-opacity:.48;--art-filter:saturate(.7);--calligraphy-opacity:0;--clock-wash:#101a2578;color-scheme:dark}
#theme-art{position:fixed;inset:0;z-index:0;pointer-events:none;background-image:var(--art-image,none);background-position:center;background-size:cover;background-repeat:no-repeat;opacity:var(--art-opacity,0);filter:var(--art-filter,none)}body:before{display:none}body[data-theme=andalus]:before{display:none}.background-calligraphy{opacity:var(--calligraphy-opacity,.02)}.background-calligraphy span{font-family:'Noto Kufi Arabic',Amiri,serif;font-size:440px;font-weight:500;transform:rotate(-18deg)}.background-calligraphy span:nth-child(1){top:-140px;right:-270px}.background-calligraphy span:nth-child(2){top:420px;right:710px;font-size:340px;transform:rotate(-15deg)}.background-calligraphy span:nth-child(3){display:none}.next-panel:before{display:none}.time-section{background:linear-gradient(120deg,var(--clock-wash,transparent),transparent);border-radius:18px}.prayer.sunrise{opacity:1}.prayer.sunrise .name,.prayer.sunrise time{color:var(--muted)}.prayer .name{font-size:31px;line-height:1.35}[dir=rtl] .prayer .name{font-size:35px}.theme-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:22px}.theme-choice{display:flex;flex-direction:column;text-align:start;gap:8px;padding:8px;font-size:14px;background:var(--panel)}.theme-choice[aria-pressed=true]{border:2px solid var(--gold);padding:7px}.theme-swatch{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:85px;overflow:hidden;border-radius:7px;background-size:cover;background-position:center;font-family:'Noto Kufi Arabic',serif;font-size:24px}.theme-swatch span{position:relative;z-index:1}.theme-swatch:before{content:'';position:absolute;inset:0}.theme-swatch.umayyad-light{background-image:url('images/cordoba-real.png');color:#25372f}.theme-swatch.umayyad-light:before{background:#f6f3ecc9}.theme-swatch.umayyad-dark{background-image:url('images/cordoba-real.png');color:#e5ce9b}.theme-swatch.umayyad-dark:before{background:#101813d9}.theme-swatch.umayyad-mono{background-image:url('images/cordoba-real.png');filter:grayscale(1);color:#171917}.theme-swatch.umayyad-mono:before{background:#ffffffe0}.theme-swatch.makkah{background-image:url('images/makkah-real.jpg');color:#fff2ce}.theme-swatch.makkah:before{background:#091a278c}#archive-status{display:none}
@media(min-width:900px) and (max-height:800px){.prayer .name{font-size:29px}[dir=rtl] .prayer .name{font-size:33px}}
@media(min-width:900px) and (max-height:680px){.prayer .name{font-size:25px}[dir=rtl] .prayer .name{font-size:29px}}
@media(max-width:899px){.prayer .name{font-size:25px}[dir=rtl] .prayer .name{font-size:30px}.background-calligraphy span{font-size:300px}.background-calligraphy span:nth-child(1){right:-190px;top:100px}.background-calligraphy span:nth-child(2){display:none}.theme-gallery{grid-template-columns:1fr 1fr}.theme-choice{font-size:14px}.theme-swatch{height:90px}#theme-art{background-position:55% center}}

body[data-theme=umayyad-mono] .book-cover{color:#fff;background:#181b18}

/* V5: flowing, oversized calligraphy only; all photographic theme artwork is unchanged. */
@font-face{font-family:Amiri;src:url('fonts/Amiri-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
body[data-theme=calligraphy-light]{--bg:#f8f7f4;--panel:#fffefa;--surface:#eeede8;--ink:#07332e;--muted:#566457;--gold:#3f6a42;--line:#697a5b38;--soft:#fffef9df;--selected:#e0efda;--next:#174925;--next-ink:#fffdf2;--art-image:none;--art-opacity:0;--calligraphy-opacity:.095;--clock-wash:#f8f7f460;color-scheme:light}
body[data-theme=calligraphy-dark]{--bg:#151a18;--panel:#1f2822;--surface:#2e3a30;--ink:#f1efe6;--muted:#bfcabf;--gold:#d9c18a;--line:#c4b1743d;--soft:#1d2721e6;--selected:#344933;--next:#354c32;--next-ink:#fff9eb;--art-image:none;--art-opacity:0;--calligraphy-opacity:.085;--clock-wash:#151a1840;color-scheme:dark}
.background-calligraphy span{font-family:Amiri,'Geeza Pro',serif;font-weight:700;font-size:750px;line-height:1;letter-spacing:-.025em;transform:rotate(-24deg);white-space:nowrap;right:-165px;top:-330px}.background-calligraphy span:nth-child(2){font-family:Amiri,'Geeza Pro',serif;font-weight:700;font-size:780px;right:420px;top:250px;transform:rotate(-26deg)}.background-calligraphy span:nth-child(3){display:block;font-family:Amiri,'Geeza Pro',serif;font-weight:700;font-size:660px;right:-510px;top:620px;transform:rotate(-22deg)}
.theme-swatch.calligraphy-light{color:#173b2c;background:#f4f3ef}.theme-swatch.calligraphy-dark{color:#e8d4a3;background:#1a231c}.theme-swatch.calligraphy-light span,.theme-swatch.calligraphy-dark span{font:700 70px/1 Amiri,serif;transform:rotate(-18deg);opacity:.45;white-space:nowrap}.theme-swatch.calligraphy-light:before,.theme-swatch.calligraphy-dark:before{display:none}.theme-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.recording-item,.recording-link{grid-column:1/-1;display:flex;align-items:center;gap:15px;min-height:66px;padding:15px;text-align:start;background:var(--panel);border:1px solid var(--line);border-radius:10px;font-size:17px}.recording-item svg{width:25px;height:25px;flex-shrink:0;fill:currentColor}.recording-link{display:block;text-decoration:none}.recording-link strong{display:block;font-weight:500}.recording-link span{display:block;font-size:14px;color:var(--muted);margin-top:6px}.surah-title #surah-name{overflow-wrap:anywhere}
@media(max-width:899px){.background-calligraphy span{font-size:510px;right:-250px;top:-130px}.background-calligraphy span:nth-child(2){font-size:600px;right:-10px;top:630px;display:block}.background-calligraphy span:nth-child(3){display:none}.theme-gallery{grid-template-columns:1fr 1fr}.recording-item,.recording-link{font-size:16px}}

/* V8: uncluttered clock heading and optional expanded time display. */
.place-heading .city{font-size:32px;line-height:1.4;font-weight:600;justify-content:center;overflow-wrap:anywhere}
.place-heading .pin{font-size:25px}
.place-heading[hidden]{display:none!important}
.hide-city .time-section{gap:20px}
.hide-city .clock{font-size:clamp(120px,17.2vw,245px)}
.field,.timezone-field{min-width:0}.field select{width:100%;max-width:100%;min-width:0}
@media(min-width:900px) and (max-height:800px){.place-heading .city{font-size:30px}.hide-city .clock{font-size:clamp(120px,17.2vw,190px)}}
@media(min-width:900px) and (max-height:680px){.place-heading .city{font-size:25px}.hide-city .clock{font-size:150px}}
@media(max-width:899px){.place-heading .city{font-size:28px}.hide-city .clock{font-size:clamp(95px,26vw,180px)}.hide-city .time-section{gap:16px}}

/* V9: one unfiltered reciter collection, no category dropdown. */
.collection-heading{font-size:19px;line-height:1.4;margin:0 0 15px;font-weight:600}
.selected-reciter{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:15px;color:var(--muted)}
.selected-reciter strong{font-size:20px;color:var(--ink);font-weight:600;line-height:1.4}
.reciter-cards{overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:var(--gold) transparent}
/* Pigments taken from the real Cordoba photograph: limestone, red brick, charcoal. */
body[data-theme=umayyad-light]{--bg:#f2eadd;--panel:#fffaf0;--surface:#e6d9c8;--ink:#382b25;--muted:#6e5a4e;--gold:#894a3a;--line:#8d62503d;--soft:#fff8ece0;--selected:#e6d1b9ed;--next:#713e31;--next-ink:#fff8ea;--art-opacity:.35;--art-filter:saturate(.8);--calligraphy-opacity:0;--clock-wash:transparent}
body[data-theme=umayyad-dark]{--bg:#201a17;--panel:#2c231e;--surface:#3d2d25;--ink:#f8ecda;--muted:#d3bfa8;--gold:#d8b085;--line:#dfb78a40;--soft:#2a201be8;--selected:#5a3d2ce8;--next:#713e31;--next-ink:#fff5e4;--art-opacity:.28;--art-filter:brightness(.7) saturate(.7);--calligraphy-opacity:0;--clock-wash:transparent}
body[data-theme=umayyad-mono]{--bg:#f3f3f1;--panel:#ffffff;--surface:#e6e6e3;--ink:#171717;--muted:#555555;--gold:#303030;--line:#25252542;--soft:#ffffffd9;--selected:#d9d9d9ed;--next:#1b1b1b;--next-ink:#ffffff;--art-opacity:.32;--art-filter:grayscale(1) contrast(.92);--calligraphy-opacity:0;--clock-wash:transparent}
body[data-theme=umayyad-mono] .book-cover,body[data-theme=umayyad-mono] .play-button{background:#1b1b1b;color:#fff}
body[data-theme=umayyad-mono] input{accent-color:#303030}
.theme-swatch.umayyad-light{color:#713e31}.theme-swatch.umayyad-light:before{background:#f3e8d6b0}
.theme-swatch.umayyad-dark{color:#f4dfbd}.theme-swatch.umayyad-dark:before{background:#271a15b8}
/* Real font outlines, shaped with HarfBuzz. Not generated pseudo-Arabic or AI art. */
body[data-theme^=calligraphy] .background-calligraphy{background-image:url('art/user-kufic-parchment.png');background-size:cover;background-position:center;opacity:.19}
body[data-theme^=calligraphy] .background-calligraphy span{display:none}
body[data-theme=calligraphy-dark] .background-calligraphy{background-image:url('art/user-kufic-parchment.png');opacity:.13}
body[data-theme=calligraphy-light]{--bg:#f7f7f4;--panel:#fafaf6;--surface:#eaece6;--ink:#092f2b;--muted:#526158;--gold:#376b43;--line:#4c654333;--soft:#f7f5ef80;--selected:#ddf0d2bb;--next:#124b22;--next-ink:#fff;--clock-wash:transparent}
body[data-theme=calligraphy-dark]{--bg:#151b18;--panel:#202a23;--surface:#303b32;--ink:#f6f5e9;--muted:#c6cebf;--gold:#c7d1b0;--line:#c4ceae3d;--soft:#1b28208f;--selected:#3f5941b8;--next:#29462f;--next-ink:#fffef5;--clock-wash:transparent}
body[data-theme^=calligraphy] .time-section{background:none}
body[data-theme^=calligraphy] .prayer{background:var(--soft)}
body[data-theme^=calligraphy] .prayer.active{background:var(--selected)}
body[data-theme=calligraphy-light] .date-line{background:#ffffffa8}
body[data-theme=calligraphy-dark] .date-line{background:#19231ba8}
body[data-theme=calligraphy-light] .player{background:#fffefaad}
body[data-theme=calligraphy-dark] .player{background:#1c2922b3}
body[data-theme^=calligraphy] .next-panel{position:relative;isolation:isolate;overflow:hidden;background:var(--next)}
body[data-theme^=calligraphy] .next-panel:before{content:'';display:block;position:absolute;inset:0;pointer-events:none;z-index:-1;background-image:url('art/user-kufic-parchment.png');background-size:cover;background-position:center;background-attachment:fixed;opacity:.17}
.theme-swatch.calligraphy-light,.theme-swatch.calligraphy-dark{background-image:url('art/user-kufic-parchment.png');background-size:cover}
.theme-swatch.calligraphy-dark{background-image:url('art/user-kufic-parchment.png')}
.theme-swatch.calligraphy-light span,.theme-swatch.calligraphy-dark span{font:700 20px/1.4 Amiri,serif;transform:none;opacity:1}
@media(max-width:899px){.reciter-cards{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;overflow-x:hidden;overflow-y:auto;max-height:240px;gap:8px}.reciter-card{min-width:0;min-height:64px}.reciter-card strong{font-size:17px;overflow-wrap:anywhere}.collection-heading{font-size:20px}.selected-reciter strong{font-size:19px}}

/* V10: Safari-safe persistent media button colours; no sticky gray hover state. */
.play-controls .play-button,.play-controls .play-button:hover,.play-controls .play-button:active,.play-controls .play-button:focus{background:var(--next);color:var(--next-ink);-webkit-appearance:none;appearance:none;opacity:1}
.play-controls .play-button:disabled{opacity:.55}
[dir=rtl] .prayer .name{font-family:Amiri,'Geeza Pro',serif;font-size:36px;font-weight:700;line-height:1.3}
@media(min-width:900px) and (max-height:800px){[dir=rtl] .prayer .name{font-size:33px}}
@media(min-width:900px) and (max-height:680px){[dir=rtl] .prayer .name{font-size:29px}}
@media(max-width:899px){[dir=rtl] .prayer .name{font-size:31px}}
body[data-theme^=calligraphy] .background-calligraphy{opacity:.12;filter:none;background-image:url('art/user-kufic-parchment.png')}
body[data-theme=calligraphy-dark] .background-calligraphy{filter:invert(1);opacity:.12}
body[data-theme^=calligraphy] .next-panel:before{filter:invert(1);mix-blend-mode:screen;opacity:.16;background-image:url('art/user-kufic-parchment.png')}
.theme-swatch.calligraphy-dark{filter:invert(1)}

/* V11: user-supplied images only; no generated/reconstructed Arabic. */
body[data-theme=calligraphy-light]{--bg:#f0e9d8;--panel:#fffaf0;--surface:#e4dac6;--ink:#272c31;--muted:#625d51;--gold:#806a36;--line:#8f795040;--soft:#fff9ecc2;--selected:#e5d8b8dd;--next:#54452c;--next-ink:#fff9ea;--art-image:url('art/user-kufic-parchment.png');--art-opacity:.40;--art-filter:none}
body[data-theme=calligraphy-dark]{--bg:#102534;--panel:#132b3c;--surface:#253c4a;--ink:#fff1d2;--muted:#d2c8ad;--gold:#dbbb67;--line:#d4b96c45;--soft:#102b3cc7;--selected:#355061e8;--next:#273e4c;--next-ink:#fff3cf;--art-image:url('art/user-kufic-blue-gold.png');--art-opacity:.58;--art-filter:none}
body[data-theme=calligraphy-geometric]{--bg:#f6f6f3;--panel:#ffffff;--surface:#e6e6e2;--ink:#242424;--muted:#5c5c56;--gold:#5c601f;--line:#56583b40;--soft:#ffffffe0;--selected:#e5e7d5ed;--next:#303321;--next-ink:#fffff4;--art-image:url('art/user-kufic-geometric.png');--art-opacity:.30;--art-filter:none;--clock-wash:transparent;color-scheme:light}
body[data-theme^=calligraphy] #theme-art{background-size:contain;background-position:center;background-repeat:no-repeat}
body[data-theme^=calligraphy] .background-calligraphy{display:none}
body[data-theme^=calligraphy] .next-panel:before{display:none;background-image:none}
body[data-theme^=calligraphy] .prayer{background:var(--soft)}
body[data-theme^=calligraphy] .prayer.active{background:var(--selected)}
body[data-theme=calligraphy-light] .player,body[data-theme=calligraphy-geometric] .player{background:#fffaf0d6}
body[data-theme=calligraphy-dark] .player{background:#102b3cd9}
body[data-theme=calligraphy-light] .date-line{background:#fffaf0dc}
body[data-theme=calligraphy-dark] .date-line{background:#102b3cdc}
body[data-theme=calligraphy-geometric] .date-line{background:#ffffffdf}
.theme-swatch.calligraphy-light{background:#f0e9d8 url('art/user-kufic-parchment.png') center/contain no-repeat;filter:none}
.theme-swatch.calligraphy-dark{background:#102534 url('art/user-kufic-blue-gold.png') center/contain no-repeat;filter:none}
.theme-swatch.calligraphy-geometric{background:#fff url('art/user-kufic-geometric.png') center/contain no-repeat;filter:none}
.theme-swatch.calligraphy-light span,.theme-swatch.calligraphy-dark span,.theme-swatch.calligraphy-geometric span{display:none}

/* V12: use one Arabic face throughout, without enlarging small labels. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[lang=ar] body,html[lang=ar] button,html[lang=ar] input,html[lang=ar] select,html[lang=ar] option,html[lang=ar] optgroup,[lang=ar]{font-family:Amiri,'Geeza Pro',serif}
.identity strong,html[lang=ar] .identity strong,[lang=en]{font-family:'Avenir Next','Segoe UI',sans-serif}
.clock,.clock-small,.prayer time,.progress,#countdown{font-family:'Avenir Next','Segoe UI',sans-serif}
.reflection{position:relative;overflow:hidden;isolation:isolate;contain:layout paint}
.reflection-copy{text-align:center;max-width:100%;will-change:opacity,transform}
.reflection-copy p,.reflection-copy small{margin:0;line-height:1.35}
/* Explicit rows prevent old iPad Safari flex/grid intrinsic sizing from stretching
   the prayers behind Adhkar and the player in Home Screen standalone mode. */
body.tablet-clock{height:var(--app-height,100vh);overflow:hidden}
.tablet-clock #app{height:var(--app-height,100vh);min-height:0;max-height:var(--app-height,100vh);display:grid;grid-template-rows:76px minmax(0,1fr) 28px;padding:env(safe-area-inset-top,0px) 26px env(safe-area-inset-bottom,0px)}
.tablet-clock header{height:auto;min-height:0;padding:0;flex-wrap:nowrap}
.tablet-clock main{display:grid;grid-template-rows:minmax(0,1fr) 72px 112px;min-height:0;gap:8px;padding:12px 0 0;overflow:hidden}
.tablet-clock .dashboard-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr);min-height:0;height:100%;gap:28px;overflow:hidden;flex:none}
.tablet-clock .prayers{grid-row:auto;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));min-height:0;height:100%;padding:0;gap:8px;overflow:hidden}
.tablet-clock .prayer{min-height:0;height:auto;padding:6px 18px;flex-direction:row;gap:10px;overflow:hidden}
.tablet-clock .prayer.active{padding:5px 17px}
.tablet-clock .prayer .name{order:2;font-size:25px;line-height:1.3;white-space:nowrap}
.tablet-clock[dir=rtl] .prayer .name,html[dir=rtl] .tablet-clock .prayer .name{font-size:33px}
.tablet-clock .prayer time{order:1;font-size:36px;line-height:1.2}
.tablet-clock .prayer time small{font-size:16px}
.tablet-clock .time-section{grid-row:auto;min-height:0;height:100%;gap:9px;justify-content:center;overflow:hidden;padding:0}
.tablet-clock .place-heading .city{font-size:28px;line-height:1.3}
.tablet-clock .clock{font-size:clamp(106px,15.1vw,178px);line-height:1.02;flex-shrink:1}
.tablet-clock.hide-city .clock{font-size:clamp(116px,16.4vw,193px)}
.tablet-clock .clock-small{height:auto;margin-left:12px;gap:5px;align-self:center}
.tablet-clock #period,.tablet-clock #seconds{font-size:24px}
.tablet-clock .date-line{padding:7px 8px;font-size:14px;gap:8px;line-height:1.35;flex-wrap:wrap}
.tablet-clock .next-panel{min-height:86px;height:auto;padding:12px 17px;flex-shrink:0}
.tablet-clock .next-panel span{font-size:15px}
.tablet-clock .next-panel strong,.tablet-clock #countdown{font-size:37px;line-height:1.15}
.tablet-clock .reflection{min-height:0;height:72px;padding:4px 10px;display:flex;align-items:center;justify-content:center;gap:0}
.tablet-clock .reflection #verse-ar{font-size:26px}.tablet-clock .reflection #verse-en{font-size:14px}.tablet-clock .reflection small{font-size:12px}
.tablet-clock .player{min-height:0;height:112px;max-height:112px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,.65fr);gap:14px;padding:10px 16px;overflow:hidden;align-items:center}
.tablet-clock .player-info,.tablet-clock .player-center,.tablet-clock .player-extra,.tablet-clock .track-details{min-width:0}
.tablet-clock .player-info{justify-content:flex-start;gap:10px}
.tablet-clock .book-cover{width:50px;height:65px;flex-shrink:0}
.tablet-clock .surah-title,html[dir=rtl] .tablet-clock .surah-title{font-size:26px;min-height:0;line-height:1.25}
.tablet-clock .surah-title #surah-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tablet-clock .reciter-link,html[dir=rtl] .tablet-clock .reciter-link{font-size:16px;min-height:25px;line-height:1.25}
.tablet-clock .play-controls{gap:4px;justify-content:center}
.tablet-clock .play-controls .icon-button{width:41px;min-width:0;height:44px;padding:8px}
.tablet-clock .play-button{width:55px;height:55px;flex-shrink:0}
.tablet-clock .progress{margin:4px 0 0;font-size:13px;gap:7px}
.tablet-clock .player-extra{display:block;text-align:end}
.tablet-clock .player-extra small{font-size:13px;display:block;margin-top:4px}
.tablet-clock .library-button{font-size:16px;min-height:44px;padding:8px 12px}
.tablet-clock footer{min-height:0;padding:4px 0;font-size:11px;line-height:1.25;overflow:hidden;flex-direction:row;align-items:center}
@media(min-width:700px) and (max-width:899px){.tablet-clock #app{grid-template-rows:72px minmax(0,1fr) 34px;padding-inline:18px}.tablet-clock .dashboard-grid{gap:18px}.tablet-clock .clock{font-size:112px}.tablet-clock.hide-city .clock{font-size:125px}.tablet-clock .prayer time{font-size:31px}.tablet-clock .prayer .name,html[dir=rtl] .tablet-clock .prayer .name{font-size:29px}.tablet-clock .next-panel strong,.tablet-clock #countdown{font-size:29px}.tablet-clock .date-line{font-size:13px}.tablet-clock .player{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,.6fr);gap:7px;padding:9px 12px}.tablet-clock .book-cover{display:none}.tablet-clock .surah-title,html[dir=rtl] .tablet-clock .surah-title{font-size:23px}.tablet-clock .library-button{font-size:14px;padding:6px 8px}}
@media(min-width:900px) and (max-height:680px){.tablet-clock #app{grid-template-rows:65px minmax(0,1fr) 25px}.tablet-clock main{grid-template-rows:minmax(0,1fr) 60px 98px;gap:6px;padding-top:8px}.tablet-clock .reflection{height:60px}.tablet-clock .player{height:98px;max-height:98px}.tablet-clock .clock{font-size:131px}.tablet-clock.hide-city .clock{font-size:145px}.tablet-clock .place-heading .city{font-size:24px}.tablet-clock .next-panel{min-height:75px;padding:8px 12px}.tablet-clock .next-panel strong,.tablet-clock #countdown{font-size:31px}.tablet-clock .prayer .name,html[dir=rtl] .tablet-clock .prayer .name{font-size:29px}.tablet-clock .prayer time{font-size:32px}}
@media(prefers-reduced-motion:reduce){.reflection-copy{will-change:auto}}

html[lang=ar] button[lang=en]{font-family:'Avenir Next','Segoe UI',sans-serif}
/* V13 — Saudi Arabic paired with DM Sans, including Western clock digits. */
@font-face{font-family:Saudi;src:url('fonts/Saudi-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Saudi;src:url('fonts/Saudi-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'DM Sans';src:url('fonts/DM-Sans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
html body,html button,html input,html select,html option,html optgroup,html h1,html h2,html h3{font-family:'DM Sans',Saudi,sans-serif}
html[lang=ar] body,html[lang=ar] button,html[lang=ar] input,html[lang=ar] select,html[lang=ar] option,html[lang=ar] optgroup,html [lang=ar],html[dir=rtl] .prayer .name,html .surah-ar,html .call-arabic{font-family:Saudi,'DM Sans',sans-serif}
html .identity strong,html[lang=ar] .identity strong,html [lang=en],html[lang=ar] button[lang=en],html .clock,html .clock-small,html .prayer time,html .progress,html #countdown{font-family:'DM Sans',Saudi,sans-serif;font-variant-numeric:tabular-nums}
html .identity .brand-sub,html .reflection #verse-ar,html .call-hadith{font-family:Saudi,sans-serif}
html .player{grid-template-columns:minmax(0,1fr) minmax(270px,1.15fr) minmax(0,1fr)}
html .player-center{justify-self:center;width:100%;min-width:0}
html .play-controls{direction:ltr;justify-content:center}
html .player-info{overflow:hidden}html .track-details{min-width:0}
html .reflection{overflow:visible;contain:layout;min-height:90px;height:auto;padding:6px 10px}
html .reflection-copy small{display:block;white-space:normal;overflow:visible;font-size:14px;line-height:1.4}
html .reflection-copy #verse-ar{line-height:1.45}
html .reflection-copy #verse-en{line-height:1.4;font-family:'DM Sans',sans-serif}
html .tablet-clock #app{grid-template-rows:84px minmax(0,1fr);padding-top:calc(env(safe-area-inset-top,0px) + 8px);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
html .tablet-clock main{grid-template-rows:minmax(0,1fr) 96px 112px}
html .tablet-clock .reflection{height:96px;min-height:0}
html .tablet-clock .player{grid-template-columns:minmax(0,1fr) minmax(250px,1.15fr) minmax(0,1fr)}
html .tablet-clock .reflection #verse-ar{font-size:25px}
html .tablet-clock .reflection #verse-en{font-size:14px}
html .tablet-clock .reflection small{font-size:14px}
.call-hadith{font-size:clamp(24px,3.5vw,36px);line-height:1.7;margin:0 auto 12px;max-width:660px}
.hadith-source{font-size:14px;display:inline-block;margin-bottom:16px}
#adhan-dialog{max-height:calc(100% - 32px);overflow:auto}
#adhan-dialog h1{font-family:'DM Sans',Saudi,sans-serif;margin:18px 0}
html[lang=ar] #adhan-dialog h1{font-family:Saudi,sans-serif}
#adhan-dialog .call-arabic{margin:16px 0}
.routine-section{border-bottom:1px solid var(--line);padding:8px 0 24px;margin-bottom:20px}
.playlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px}
.playlist-grid .check{min-height:48px;padding:8px;background:var(--soft);border-radius:8px;overflow-wrap:anywhere}
@media(min-width:700px) and (max-width:899px){html .tablet-clock .player{grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr)}html .tablet-clock #app{grid-template-rows:80px minmax(0,1fr)}html .tablet-clock .player .book-cover{display:none}}
@media(min-width:900px) and (max-height:680px){html .tablet-clock #app{grid-template-rows:73px minmax(0,1fr)}html .tablet-clock main{grid-template-rows:minmax(0,1fr) 88px 98px}html .tablet-clock .reflection{height:88px}}
@media(max-width:699px){html .player{grid-template-columns:minmax(0,1fr);height:auto;max-height:none}html .player-center{grid-column:1;grid-row:2;max-width:100%;width:100%}html .player-info{grid-row:1}html .player-extra{grid-column:1;grid-row:3}html .reflection{min-height:120px}.playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html .call-hadith{font-size:24px}html #app{padding-top:12px}}
/* V15: accessible close targets and viewport-filling library scroll. */
html .dialog-header .close-dialog{width:52px;min-width:52px;height:52px;min-height:52px;display:grid;place-items:center;flex-shrink:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
html .close-dialog svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html #library-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr);height:calc(var(--app-height,100vh) * .9);max-height:calc(var(--app-height,100vh) - 24px);overflow:hidden}
html #library-dialog .dialog-header{min-height:0;padding:16px 22px;gap:14px}
html #library-dialog .dialog-header h1{margin:4px 0;font-size:28px;line-height:1.35}
html #library-dialog .library-layout{min-height:0;height:100%;overflow:hidden;grid-template-columns:285px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
html .reciter-panel{min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden;padding:16px 12px;box-sizing:border-box}
html .collection-heading{flex-shrink:0;margin:0 0 12px;line-height:1.5}
html .reciter-cards{display:flex;flex-direction:column;flex:1 1 0;min-height:0;max-height:none;height:auto;overflow-x:hidden;overflow-y:auto;padding:3px 3px 10px;gap:8px;-webkit-overflow-scrolling:touch}
html .reciter-card{flex-shrink:0;min-height:62px}
html .surah-panel{min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
html .player-extra,html .tablet-clock .player-extra{display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:end;gap:5px;text-align:center;width:max-content;max-width:100%}
html .player-extra #play-status{width:100%;text-align:center;margin:0;line-height:1.4}
html .call-hadith{white-space:normal;word-break:normal;overflow-wrap:normal;letter-spacing:normal;text-align:center;line-height:1.65}
html .call-hadith[lang=en]{font-family:'DM Sans',sans-serif;font-size:clamp(21px,2.2vw,28px);line-height:1.5}
html .hadith-source[lang=ar]{font-family:Saudi,sans-serif;font-size:18px}
@media(min-width:700px) and (max-width:899px){html #library-dialog .library-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:699px){html #library-dialog .library-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(170px,.43fr) minmax(0,.57fr)}html .reciter-panel{padding:10px 12px}html .reciter-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-rows:minmax(64px,auto);align-content:start}html .reciter-panel .collection-heading{font-size:20px;margin-bottom:6px}html #library-dialog .dialog-header{padding:12px 14px}html #library-dialog .dialog-header h1{font-size:25px}html .player-extra{justify-self:center}html .call-hadith[lang=en]{font-size:21px}}
/* V16: one Arabic font throughout; keep Latin characters and digits in DM Sans. */
html[lang=ar] body *,html [lang=ar],html [lang=ar] *,html .surah-ar,html .surah-item .surah-ar,html[dir=rtl] .surah-title,html[dir=rtl] .surah-title *,html .call-arabic,html #verse-ar{font-family:'DM Sans',Saudi,sans-serif!important}
html .clock{letter-spacing:.015em;font-kerning:none;font-feature-settings:'tnum' 1,'kern' 0}
html .clock #hours,html .clock #minutes{letter-spacing:.015em;font-kerning:none;font-variant-numeric:tabular-nums}
html .prayer time{letter-spacing:0}
html .hadith-source{display:block;margin:0 0 16px;color:var(--muted);text-decoration:none;cursor:default}
html .surah-item .surah-ar{font-size:23px;line-height:1.5}
@media(min-width:1600px) and (min-height:900px){
 html .tablet-clock #app{max-width:2400px;width:100%;padding-inline:clamp(40px,3vw,100px);grid-template-rows:112px minmax(0,1fr)}
 html .tablet-clock main{grid-template-rows:minmax(0,1fr) 132px 158px;gap:16px;padding-top:20px}
 html .tablet-clock .dashboard-grid{gap:48px}
 html .tablet-clock .prayer{padding:10px 28px}
 html .tablet-clock .prayer .name{font-size:36px}html[dir=rtl] .tablet-clock .prayer .name{font-size:46px}
 html .tablet-clock .prayer time{font-size:54px}html .tablet-clock .prayer time small{font-size:22px}
 html .tablet-clock .clock{font-size:clamp(180px,12vw,300px)}html .tablet-clock.hide-city .clock{font-size:clamp(200px,13vw,330px)}
 html .tablet-clock .place-heading .city{font-size:38px}html .tablet-clock .date-line{font-size:21px}
 html .tablet-clock .next-panel{min-height:135px;padding:16px 28px}html .tablet-clock .next-panel span{font-size:24px}html .tablet-clock .next-panel strong,html .tablet-clock #countdown{font-size:55px}
 html .tablet-clock .reflection{height:132px}html .tablet-clock .reflection #verse-ar{font-size:38px}html .tablet-clock .reflection #verse-en{font-size:22px}html .tablet-clock .reflection small{font-size:19px}
 html .tablet-clock .player{height:158px;max-height:158px;padding:18px 26px;gap:24px}html .tablet-clock .surah-title{font-size:36px}html .tablet-clock .reciter-link{font-size:22px}html .tablet-clock .player-info small{font-size:20px}
 html .tablet-clock .play-button{width:76px;height:76px}html .tablet-clock .play-controls .icon-button{width:56px;height:56px}html .tablet-clock .progress{font-size:18px}html .tablet-clock .library-button{font-size:23px;min-height:56px}html .tablet-clock .player-extra small{font-size:19px}
 html .identity strong{font-size:34px}html .identity .brand-sub{font-size:32px}html .settings-button{font-size:24px;min-height:64px}html .quiet{font-size:21px}
 html #library-dialog{max-width:1400px}html #library-dialog .library-layout{grid-template-columns:360px minmax(0,1fr)}html .reciter-card{min-height:80px}html .reciter-card strong{font-size:24px}html .surah-item{min-height:76px}html .surah-item strong{font-size:21px}html .surah-item .surah-ar{font-size:30px}
}
@media(min-width:1600px) and (min-height:900px){html[dir=rtl] .tablet-clock .surah-title{font-size:36px}html[dir=rtl] .tablet-clock .reciter-link{font-size:22px}}
/* V17 — colour-matched themes using the owner's original photographs. */
body[data-theme=makkah-sunset]{--bg:#302122;--panel:#38282a;--surface:#61423a;--ink:#fff3e2;--muted:#edd3c0;--gold:#f5c398;--line:#e8b58760;--soft:#3d2b2bdc;--selected:#79533fe8;--next:#704b39;--next-ink:#fff4df;--art-image:url('images/makkah-sunset.jpg');--art-opacity:.65;--art-filter:none;--clock-wash:#35232255;--calligraphy-opacity:0;color-scheme:dark}
body[data-theme=kiswah-gold]{--bg:#090a09;--panel:#151611;--surface:#302b1d;--ink:#fff5d9;--muted:#e0d3ae;--gold:#edcb75;--line:#d9b75b66;--soft:#11130fe8;--selected:#584a2de8;--next:#655022;--next-ink:#fff7df;--art-image:url('images/kiswah-gold.jpg');--art-opacity:.48;--art-filter:none;--clock-wash:#080a08a3;--calligraphy-opacity:0;color-scheme:dark}
body[data-theme=makkah-sunset] .background-calligraphy,body[data-theme=kiswah-gold] .background-calligraphy,body[data-theme=makkah-sunset] .next-panel:before,body[data-theme=kiswah-gold] .next-panel:before{display:none}
body[data-theme=makkah-sunset] #theme-art{background-position:50% 60%}
body[data-theme=kiswah-gold] #theme-art{background-position:center}
body[data-theme=makkah-sunset] .time-section,body[data-theme=kiswah-gold] .time-section{background:none;border-radius:0}
body[data-theme=makkah-sunset] .date-line,body[data-theme=kiswah-gold] .date-line{background:var(--soft)}
body[data-theme=makkah-sunset] .player,body[data-theme=kiswah-gold] .player{background:var(--soft)}
body[data-theme=makkah-sunset] .prayer,body[data-theme=kiswah-gold] .prayer{background:var(--soft)}
body[data-theme=makkah-sunset] .prayer.active,body[data-theme=kiswah-gold] .prayer.active{background:var(--selected)}
body[data-theme=makkah-sunset] .reflection-copy,body[data-theme=kiswah-gold] .reflection-copy{text-shadow:0 1px 5px #000,0 0 18px #000}
.theme-swatch.makkah-sunset{background:#61423a url('images/makkah-sunset.jpg') center/cover;color:#fff3e2}
.theme-swatch.kiswah-gold{background:#090a09 url('images/kiswah-gold.jpg') center/cover;color:#fff5d9}
.theme-swatch.makkah-sunset:before{background:#30212255}.theme-swatch.kiswah-gold:before{background:#090a0955}
@media(max-width:699px){body[data-theme=makkah-sunset] #theme-art{background-position:50% center}}
body[data-theme=makkah-sunset] .reflection-copy{background:none;border-radius:0;padding:0}
body[data-theme=kiswah-gold] .reflection-copy{background:none;border-radius:0;padding:0}

/* V18: clearer Adhan heading without enlarging the status or source text. */
html #adhan-dialog > [data-t=adhanHeading]{font-size:28px;font-weight:700;line-height:1.4;margin:16px 0;color:var(--gold)}
html[lang=ar] #adhan-dialog > [data-t=adhanHeading]{font-size:34px}
@media(max-width:699px){html #adhan-dialog > [data-t=adhanHeading]{font-size:25px}html[lang=ar] #adhan-dialog > [data-t=adhanHeading]{font-size:30px}}

html #adhan-dialog #call-status{font-size:24px;line-height:1.45;margin:14px 0;color:var(--ink)}
html[lang=ar] #adhan-dialog #call-status{font-size:28px}
@media(max-width:699px){html #adhan-dialog #call-status{font-size:22px}html[lang=ar] #adhan-dialog #call-status{font-size:26px}}
/* V20: DM Sans has proportional figures; real digit cells align every row. */
html .prayer time{display:inline-flex;direction:ltr;align-items:baseline;gap:8px;flex-shrink:0;letter-spacing:0;white-space:nowrap}
html .prayer time .time-digits{display:inline-flex;direction:ltr;align-items:baseline;letter-spacing:0}
html .prayer time .prayer-hour,html .prayer time .prayer-minute{display:inline-flex;width:1.28em;justify-content:flex-end;direction:ltr;letter-spacing:0}
html .prayer time .time-digit{display:inline-block;flex:0 0 .64em;width:.64em;text-align:center}
html .prayer time .prayer-colon{display:inline-block;width:.28em;text-align:center}
html .prayer time small{display:inline-block;width:2.2em;min-width:2.2em;margin:0;text-align:start;letter-spacing:0;line-height:1.2}
/* V21: enlarge the remaining Adhan hierarchy after removing repeated status. */
html #adhan-dialog{max-width:780px;padding:38px 42px}
html #adhan-dialog .call-hadith{font-size:40px;line-height:1.6}
html #adhan-dialog .call-hadith[lang=en]{font-size:31px;line-height:1.5}
html #adhan-dialog .hadith-source{font-size:16px;margin-bottom:18px}
html #adhan-dialog .hadith-source[lang=ar]{font-size:20px}
html #adhan-dialog > [data-t=adhanHeading]{font-size:31px}
html[lang=ar] #adhan-dialog > [data-t=adhanHeading]{font-size:38px}
html #adhan-dialog #call-prayer{font-size:72px;line-height:1.3;margin:18px 0}
html #adhan-dialog .call-arabic{font-size:47px;line-height:1.5;margin:18px 0}
html #adhan-dialog #call-status[hidden]{display:none}
html #adhan-dialog #dua-caption:empty,html #adhan-dialog #call-test:empty{display:none}
html #adhan-dialog #stop-call{font-size:18px;min-height:52px;margin-top:12px}
@media(max-width:699px){html #adhan-dialog{padding:24px 18px}html #adhan-dialog .call-hadith{font-size:26px}html #adhan-dialog .call-hadith[lang=en]{font-size:23px}html #adhan-dialog .hadith-source[lang=ar]{font-size:19px}html #adhan-dialog > [data-t=adhanHeading]{font-size:27px}html[lang=ar] #adhan-dialog > [data-t=adhanHeading]{font-size:33px}html #adhan-dialog #call-prayer{font-size:51px}html #adhan-dialog .call-arabic{font-size:36px}html #adhan-dialog #stop-call{font-size:16px}}
.playlist-manager{margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.playlist-manager .field{margin:12px 0}
.playlist-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 12px}
.playlist-actions button{min-height:48px}
html .recording-item,html .recording-link{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;min-height:78px;text-decoration:none;padding:14px;text-align:start}
html .recording-link{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html .recording-en{font-family:'DM Sans',sans-serif;font-size:17px;line-height:1.45;overflow-wrap:anywhere;text-align:left}
html .recording-ar{font-family:Saudi,sans-serif!important;font-size:23px;line-height:1.5;overflow-wrap:anywhere;text-align:right;color:var(--gold)}
html[lang=ar] .recording-item{grid-template-columns:26px minmax(0,1fr)}
html[lang=ar] .recording-link{grid-template-columns:minmax(0,1fr)}
@media(max-width:699px){.playlist-manager{padding:12px}.playlist-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.playlist-actions button{font-size:15px;padding:8px}html .recording-item{grid-template-columns:24px minmax(0,1fr)}html .recording-item .recording-ar{grid-column:2}html .recording-link{grid-template-columns:minmax(0,1fr)}html .recording-ar{text-align:right}html .recording-en{font-size:16px}}
@media(max-width:699px){html .reciter-cards{grid-auto-rows:minmax(104px,max-content)}html .reciter-cards .reciter-card{height:auto;max-height:none;min-height:104px}html .reciter-card strong{white-space:normal;line-height:1.4}}
.extra-heading,.extra-recording{grid-column:1 / -1}
html .extra-heading{margin:24px 0 8px;font-size:22px;line-height:1.5}
html .extra-recording{width:100%;text-align:start}
@media(max-width:699px){html .extra-heading{font-size:20px}}

/* Center the library action without a visible playback-status caption. */
html .player-extra{align-self:center;justify-content:center;align-items:center}html .player-extra #play-status{display:none}

/* Center Arabic Quran artwork and metadata within their own player column. */
html[lang=ar] .player-info,html[lang=ar] .tablet-clock .player-info{justify-content:center}


/* Center the Arabic library action in its allocated player column. */
html[lang=ar] .player-extra,html[lang=ar] .tablet-clock .player-extra{justify-self:center}

/* Enlarge only the Arabic choose-reciter action; keep its grid centering. */
html[lang=ar] .library-button{font-size:20px;padding:10px 17px}
html[lang=ar] .tablet-clock .library-button{font-size:19px;padding:10px 15px;min-height:48px}
@media(min-width:700px) and (max-width:899px){html[lang=ar] .tablet-clock .library-button{font-size:16.5px;padding:8px 11px}}
@media(min-width:1600px){html[lang=ar] .tablet-clock .library-button{font-size:27px;padding:11px 19px;min-height:62px}}
/* Full reminders wrap; Arabic source text is twenty percent larger. */
html .tablet-clock main{grid-template-rows:minmax(0,1fr) auto 112px}
html .tablet-clock .reflection{height:auto;min-height:110px}
html .reflection-copy{max-width:100%;width:100%;overflow-wrap:break-word}
html[lang=ar] .reflection-copy #verse-ref{font-size:17px;line-height:1.5}
@media(min-width:1600px){html .tablet-clock main{grid-template-rows:minmax(0,1fr) auto 158px}html .tablet-clock .reflection{height:auto;min-height:132px}html[lang=ar] .tablet-clock .reflection #verse-ref{font-size:23px}}
/* Slightly stronger player metadata and Arabic reminder references. */
html .player-info #reciter-name{font-size:16px;line-height:1.35}
html[lang=ar] .player-info #reciter-name{font-size:18px}
html[lang=ar] .reflection-copy #verse-ref{font-size:18px}
@media(min-width:1600px) and (min-height:900px){html .tablet-clock .player-info #reciter-name{font-size:24px}html[lang=ar] .tablet-clock .player-info #reciter-name{font-size:26px}html[lang=ar] .tablet-clock .reflection #verse-ref{font-size:24px}}
.about-content{max-width:760px;margin:0 auto;text-align:center;padding:24px 12px}
.about-content h2{font-family:Saudi,Tahoma,sans-serif;font-size:30px;line-height:1.6;margin:0 0 10px}
.about-content .about-hadith{font-family:Saudi,Tahoma,sans-serif;font-size:27px;line-height:1.9;margin:28px 0 16px}
.about-content .about-dedication,.about-content .about-translation{font-size:19px;line-height:1.7}
.about-content .about-source{font-size:17px;color:var(--muted)}
@media(max-width:699px){.about-content{padding:12px 0}.about-content h2{font-size:25px}.about-content .about-hadith{font-size:23px}.about-content .about-translation,.about-content .about-dedication{font-size:17px}}
#settings-content .about-hadith{font-size:27px;line-height:1.9;color:var(--ink);max-width:none}
#settings-content .about-dedication,#settings-content .about-translation{font-size:19px;line-height:1.7;max-width:none}
#settings-content .about-source{font-size:17px}
@media(max-width:699px){#settings-content .about-hadith{font-size:23px}#settings-content .about-dedication,#settings-content .about-translation{font-size:17px}}
.about-content h2 .dedication-line{display:block;text-align:center}
.about-content h2 .dedication-prayer{margin-top:8px}
#adhan-stage[hidden],#prayer-stage[hidden]{display:none}
#prayer-stage{padding:30px 12px;display:flex;flex-direction:column;justify-content:center;min-height:350px;gap:22px;text-align:center}
#prayer-time-heading{font-size:clamp(32px,4vw,54px);line-height:1.5;margin:0;color:var(--gold)}
#prayer-stage .prayer-screen-verse{font-family:Saudi,Tahoma,sans-serif;font-size:clamp(28px,3.6vw,46px);line-height:1.9;margin:12px 0}
#prayer-verse-en{font-size:22px;line-height:1.6;margin:0}
#prayer-verse-source{font-size:18px;color:var(--muted);margin:0}
@media(max-width:699px){#prayer-stage{min-height:300px;padding:16px 0;gap:16px}#prayer-verse-en{font-size:18px}}
#adhan-dialog #prayer-stage .prayer-screen-verse{font-family:Saudi,Tahoma,sans-serif;font-size:clamp(28px,3.6vw,46px);line-height:1.9;color:var(--ink);margin:12px 0}
#adhan-dialog #prayer-verse-en{font-size:22px;line-height:1.6;margin:0}
#adhan-dialog #prayer-verse-source{font-size:18px;line-height:1.5;color:var(--muted);margin:0}
@media(max-width:699px){#adhan-dialog #prayer-verse-en{font-size:18px}}

/* Compact volume popover: same themed controls, no always-visible slider. */
html .player-extra,html .tablet-clock .player-extra,
html[lang=ar] .player-extra,html[lang=ar] .tablet-clock .player-extra{
 flex-direction:row;direction:ltr;gap:10px;justify-self:end;overflow:visible;
}
html[lang=ar] .player-extra,html[lang=ar] .tablet-clock .player-extra{justify-self:center}
.volume-control{position:relative;flex:none}
.volume-button{width:46px;height:48px;padding:10px;display:flex;align-items:center;justify-content:center;color:var(--gold)}
.volume-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.volume-button[aria-expanded=true]{background:var(--surface);border-color:var(--gold)}
.volume-panel{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);z-index:30;width:130px;padding:14px 10px 10px;border:1px solid var(--gold);border-radius:14px;background:var(--panel);box-shadow:0 8px 24px var(--shadow);text-align:center;direction:ltr}
.volume-panel[hidden]{display:none}
.volume-panel label{display:block;font-size:14px;line-height:1.5;white-space:normal;color:var(--ink)}
html[lang=ar] .volume-panel label{font-family:Saudi,Tahoma,sans-serif;font-size:16px}
.vertical-volume{height:150px;width:44px;position:relative;margin:6px auto}
#quran-volume{position:absolute;top:50%;left:50%;width:136px;height:44px;margin:0;padding:0;transform:translate(-50%,-50%) rotate(-90deg);direction:ltr;cursor:pointer;accent-color:var(--gold);background:transparent}
#quran-volume-value{display:block;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
@media(max-width:699px){html .player-extra,html .tablet-clock .player-extra{justify-self:center;gap:12px}}
@media(min-width:700px) and (max-width:1100px){html .player-extra,html .tablet-clock .player-extra{gap:6px}.volume-button{width:42px;padding:8px}}

html .player,html .tablet-clock .player{overflow:visible;position:relative;z-index:3}
/* Place the speaker at the left edge of the action area, aligned with reciter. */
html .player-extra,html .tablet-clock .player-extra,
html[lang=ar] .player-extra,html[lang=ar] .tablet-clock .player-extra{
 display:grid;grid-template-columns:52px minmax(0,1fr);width:100%;gap:14px;align-items:center;justify-self:stretch;
}
.player-extra .volume-control{justify-self:start}
.player-extra #library{justify-self:end}
html[lang=ar] .player-extra #library{justify-self:center}
html .volume-button{width:52px;height:54px;padding:12px}
html .volume-button svg{width:27px;height:27px}
@media(max-width:699px){
 html .player-extra,html .tablet-clock .player-extra,
 html[lang=ar] .player-extra,html[lang=ar] .tablet-clock .player-extra{width:100%;max-width:290px;justify-self:center;gap:24px}
 .player-extra #library{justify-self:center}
}
@media(max-width:699px){.volume-panel{left:0;transform:none}}

/* Nudge the speaker inward without moving the reciter button. */
.player-extra .volume-control{transform:translateX(clamp(12px,2vw,28px))}
@media(max-width:699px){.player-extra .volume-control{transform:translateX(8px)}}
#test-call-close{position:absolute;inset-inline-end:16px;top:16px;width:52px;height:52px;background:var(--surface);border:1px solid var(--line);border-radius:12px;z-index:2}
#test-call-close[hidden]{display:none}
#test-call-close svg{width:28px;height:28px;stroke-width:2}

#location-welcome{max-width:580px;width:calc(100% - 32px);padding:28px;border-radius:18px}
#location-welcome h1{font-size:30px;line-height:1.4;margin:0 0 16px}
#location-welcome p{font-size:18px;line-height:1.7;color:var(--muted)}
#location-welcome .welcome-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
#location-welcome button{min-height:48px}
#location-welcome #welcome-location-status{color:var(--gold)}
@media(max-width:550px){#location-welcome{padding:22px}#location-welcome h1{font-size:27px}#location-welcome .welcome-actions button{width:100%}}
