﻿:root{--prayer-width:clamp(240px,24vw,380px)}body[data-prayer-sidebar=right] #stage{width:calc(100% - var(--prayer-width));margin-right:var(--prayer-width)}body[data-prayer-sidebar=left] #stage{width:calc(100% - var(--prayer-width));margin-left:var(--prayer-width)}#prayer-sidebar{position:fixed;top:0;bottom:0;width:var(--prayer-width);z-index:3;background:linear-gradient(160deg,#102e29,#061d19);color:#f1f5ee;padding:clamp(18px,2vw,32px);display:flex;flex-direction:column;justify-content:center;direction:rtl;overflow:hidden}body[data-prayer-sidebar=right] #prayer-sidebar{right:0}body[data-prayer-sidebar=left] #prayer-sidebar{left:0}.prayer-city{font-size:clamp(16px,1.8vw,25px);text-align:center;color:#e2c681;letter-spacing:.4px}.prayer-clock{font-size:clamp(30px,4vw,58px);font-weight:300;text-align:center;direction:ltr;margin:12px 0 3px;font-variant-numeric:tabular-nums}.prayer-date{text-align:center;font-size:clamp(11px,1.1vw,16px);color:#bccdc5;margin-bottom:22px}.prayer-next{border:1px solid #e2c68180;border-radius:11px;background:#ffffff08;padding:15px;text-align:center;display:grid;gap:8px;margin-bottom:18px}.prayer-next small{color:#d8bf84;font-size:11px}.prayer-next strong{font-size:clamp(20px,2vw,29px);font-weight:500}.prayer-countdown{font-size:clamp(19px,2vw,30px);color:#e2c681;direction:ltr;font-variant-numeric:tabular-nums}.prayer-times{display:grid;gap:5px}.prayer-time{display:flex;align-items:center;justify-content:space-between;padding:clamp(8px,1.1vw,15px) 12px;border-radius:6px;border-bottom:1px solid #ffffff12}.prayer-time span{display:grid;gap:3px}.prayer-time b{font-size:clamp(16px,1.6vw,24px);font-weight:400}.prayer-time small{font-size:10px;color:#9eb9ad}.prayer-time>strong{font-size:clamp(19px,2vw,29px);direction:ltr;font-weight:500;font-variant-numeric:tabular-nums}.prayer-time.next-prayer{background:#e2c681;color:#172d23;border-color:transparent}.prayer-time.next-prayer small{color:#425849}.prayer-time.due-prayer{outline:2px solid #e2c681}.prayer-attribution{text-align:center;color:#93ada1;font-size:10px;margin-top:20px;line-height:1.6}.prayer-cached{color:#e2c681;font-size:10px;text-align:center;margin-top:8px}#prayer-card{position:fixed;inset:0;z-index:7;background:radial-gradient(ellipse at top,#1c4d3a,#061b18 75%);direction:rtl;color:#fff;padding:4vh 10vw;display:flex;flex-direction:column;align-items:center;justify-content:center}#prayer-card .prayer-city{font-size:25px}#prayer-card .prayer-clock{font-size:clamp(40px,6vw,86px);margin-top:6px}#prayer-card .prayer-date{margin-bottom:15px;font-size:18px}#prayer-card .prayer-next{padding:14px 30px;min-width:340px}#prayer-card .prayer-times{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));width:100%;gap:14px;margin-top:10px}#prayer-card .prayer-time{flex-direction:column;gap:15px;text-align:center;padding:22px 10px;background:#ffffff08;border:1px solid #ffffff15}#prayer-card .next-prayer{background:#e2c681}#prayer-card .prayer-time b{font-size:25px}#prayer-card .prayer-time>strong{font-size:31px}.prayer-due-title{color:#e2c681;margin:0 0 20px;text-align:center;font-size:clamp(25px,3vw,42px)}#prayer-video{position:fixed;inset:0;z-index:8;width:100vw;height:100vh;object-fit:contain;background:#000}#prayer-audio-notice{position:fixed;top:20px;right:20px;z-index:13;background:#000b;color:#fff;padding:10px 15px;border-radius:5px;font-size:13px}@media(max-width:700px){:root{--prayer-width:38vw}#prayer-sidebar{padding:10px}.prayer-date{margin-bottom:10px}.prayer-time{padding:7px 5px}.prayer-time b{font-size:13px}.prayer-time>strong{font-size:17px}.prayer-next{padding:10px;margin-bottom:8px}.prayer-clock{font-size:25px}.prayer-attribution{font-size:8px;margin-top:10px}#prayer-card{padding:20px}#prayer-card .prayer-times{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#prayer-card .prayer-time{padding:13px 6px;gap:8px}#prayer-card .prayer-time b{font-size:19px}#prayer-card .prayer-time>strong{font-size:23px}#prayer-card .prayer-next{min-width:0;width:100%}}
/* Prayer clock and timetable use an explicit 12-hour AM/PM display. */
.prayer-clock{font-size:clamp(25px,3.3vw,48px)}.prayer-time>strong{font-size:clamp(15px,1.6vw,24px);white-space:nowrap}#prayer-card .prayer-clock{font-size:clamp(32px,5vw,70px)}#prayer-card .prayer-time>strong{font-size:clamp(18px,2.3vw,30px)}@media(max-width:700px){.prayer-clock{font-size:19px}.prayer-time>strong{font-size:12px}.prayer-time{gap:6px;padding-inline:2px}}
.prayer-location{text-align:center;font-size:clamp(11px,1.2vw,17px);color:#a6bdb1;margin-top:7px}.prayer-city{line-height:1.5;overflow-wrap:anywhere}body.prayer-only #stage,body.prayer-only #message{display:none}body.prayer-only #prayer-card{padding:3vh 5vw;background:radial-gradient(ellipse at 50% 0%,#1a5645,#071f1c 70%)}body.prayer-only #prayer-card .prayer-city{font-size:clamp(26px,3.7vw,56px);font-weight:500;color:#ead79d}body.prayer-only #prayer-card .prayer-clock{font-size:clamp(40px,7vw,100px);font-weight:300;margin:1vh 0}body.prayer-only #prayer-card .prayer-date{font-size:clamp(14px,1.6vw,24px)}body.prayer-only #prayer-card .prayer-next{min-width:min(480px,90vw);padding:18px 35px}body.prayer-only #prayer-card .prayer-countdown{font-size:clamp(24px,3vw,42px)}body.prayer-only #prayer-card .prayer-time{padding:clamp(12px,2.5vh,30px) 10px;border-radius:11px}body.prayer-only #prayer-card .prayer-time>strong{font-size:clamp(20px,2.7vw,39px)}body.prayer-only #prayer-card .prayer-time b{font-size:clamp(20px,2.6vw,36px)}body.prayer-only #cache-status{bottom:10px;font-size:10px}.prayer-source .record-heading .btn{font-size:12px}
/* Per-store/TV prayer themes apply to the sidebar and the full-screen timetable. */
body[data-prayer-style=light] #prayer-sidebar,body[data-prayer-style=light] #prayer-card{background:linear-gradient(155deg,#ffffff,#eef4f1);color:#20382e}body[data-prayer-style=light] .prayer-city{color:#245d47}body[data-prayer-style=light] .prayer-clock{color:#142e24}body[data-prayer-style=light] .prayer-date,body[data-prayer-style=light] .prayer-location{color:#65796e}body[data-prayer-style=light] .prayer-next{border-color:#d6bd73;background:#fff9e9}body[data-prayer-style=light] .prayer-next small,body[data-prayer-style=light] .prayer-countdown{color:#8b6c22}body[data-prayer-style=light] .prayer-time,body[data-prayer-style=light] #prayer-card .prayer-time{background:#ffffffb0;border-color:#d6e3db}body[data-prayer-style=light] .prayer-time small,body[data-prayer-style=light] .prayer-attribution{color:#6a7f72}body[data-prayer-style=light] .prayer-time.next-prayer,body[data-prayer-style=light] #prayer-card .next-prayer{background:#dfc574;color:#1e3429}body[data-prayer-style=light] .prayer-due-title{color:#85651e}
body[data-prayer-style=midnight] #prayer-sidebar,body[data-prayer-style=midnight] #prayer-card{background:radial-gradient(ellipse at top,#173650,#081322 75%);color:#edf6ff}body[data-prayer-style=midnight] .prayer-city{color:#92d6ed}body[data-prayer-style=midnight] .prayer-next{border-color:#7cd3f180;background:#ffffff08}body[data-prayer-style=midnight] .prayer-next small,body[data-prayer-style=midnight] .prayer-countdown,body[data-prayer-style=midnight] .prayer-due-title{color:#92d6ed}body[data-prayer-style=midnight] .prayer-time.next-prayer,body[data-prayer-style=midnight] #prayer-card .next-prayer{background:#8fd2e9;color:#102c43}body[data-prayer-style=midnight] .prayer-date,body[data-prayer-style=midnight] .prayer-location,body[data-prayer-style=midnight] .prayer-attribution{color:#a8bdcc}
body[data-prayer-style=light] #prayer-card .prayer-city{color:#245d47}body[data-prayer-style=midnight] #prayer-card .prayer-city{color:#92d6ed}

/* Size the sidebar by available HEIGHT, including TV browser toolbars. */
html body #prayer-sidebar{height:100%;min-height:0;padding:1.4vh 12px;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;justify-content:flex-start;overflow:hidden}
html body #prayer-sidebar>*{-webkit-flex-shrink:0;flex-shrink:0}
html body #prayer-sidebar .prayer-city{font-size:2.8vh;font-size:clamp(13px,2.8vh,25px);line-height:1.25;max-height:7vh;overflow:hidden;word-wrap:break-word}
html body #prayer-sidebar .prayer-location{font-size:1.8vh;font-size:clamp(10px,1.8vh,15px);margin-top:.5vh;line-height:1.2}
html body #prayer-sidebar .prayer-clock{font-size:4.8vh;font-size:clamp(20px,4.8vh,48px);line-height:1.15;margin:.8vh 0 .4vh}
html body #prayer-sidebar .prayer-date{font-size:1.9vh;font-size:clamp(10px,1.9vh,16px);line-height:1.25;margin-bottom:1vh}
html body #prayer-sidebar .prayer-next{display:block;padding:1vh 5px;margin:0 0 1vh;line-height:1.2;min-width:0}
html body #prayer-sidebar .prayer-next small{display:block;font-size:1.8vh;font-size:clamp(9px,1.8vh,12px);margin:0 0 .5vh}
html body #prayer-sidebar .prayer-next strong{display:block;font-size:3vh;font-size:clamp(13px,3vh,26px);margin:0;line-height:1.2;white-space:nowrap}
html body #prayer-sidebar .prayer-countdown{display:block;font-size:3.5vh;font-size:clamp(15px,3.5vh,30px);margin:.5vh 0 0;line-height:1.15}
html body #prayer-sidebar .prayer-times{-webkit-flex:1 1 0%;flex:1 1 0%;min-height:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;gap:0}
html body #prayer-sidebar .prayer-time{-webkit-flex:1 1 0%;flex:1 1 0%;min-height:0;padding:0 5px;gap:5px}
html body #prayer-sidebar .prayer-time span{gap:1px;min-width:0}
html body #prayer-sidebar .prayer-time b{font-size:2.8vh;font-size:clamp(12px,2.8vh,23px);line-height:1.2}
html body #prayer-sidebar .prayer-time small{font-size:1.6vh;font-size:clamp(8px,1.6vh,11px);line-height:1.1}
html body #prayer-sidebar .prayer-time>strong{font-size:3.1vh;font-size:clamp(13px,3.1vh,25px);line-height:1.2;white-space:nowrap}
html body #prayer-sidebar .prayer-attribution{font-size:1.65vh;font-size:clamp(8px,1.65vh,11px);line-height:1.2;margin-top:1vh}
html body #prayer-sidebar .prayer-cached{font-size:1.6vh;font-size:clamp(8px,1.6vh,10px);line-height:1.2;margin-top:.5vh}
/* Legacy table layout uses the same remaining vertical space. */
html body.compat-player #prayer-sidebar{display:-webkit-flex;display:flex;height:100%;min-height:0;padding:1.4vh 12px;overflow:hidden}
html body.compat-player #prayer-sidebar .compat-prayer-times{-webkit-flex:1 1 0%;flex:1 1 0%;min-height:0;width:100%;margin:0}
html body.compat-player #prayer-sidebar .compat-prayer-times td{padding:.4vh 4px;font-size:2.9vh;line-height:1.2}
html body.compat-player #prayer-sidebar .compat-prayer-times small{font-size:1.6vh;line-height:1.1;margin-top:.2vh}
@media(max-height:420px){html body #prayer-sidebar .prayer-time small,html body.compat-player #prayer-sidebar .compat-prayer-times small{display:none}html body #prayer-sidebar .prayer-next{padding:.6vh 4px}html body #prayer-sidebar .prayer-city{max-height:6vh}html body #prayer-sidebar .prayer-time b{font-size:2.8vh}html body #prayer-sidebar .prayer-time>strong{font-size:3vh}}

@media(max-height:300px){html body #prayer-sidebar .prayer-location,html body #prayer-sidebar .prayer-date,html body #prayer-sidebar .prayer-next small,html body #prayer-sidebar .prayer-cached{display:none}html body #prayer-sidebar .prayer-city{font-size:10px;line-height:1.2;max-height:none;white-space:nowrap;text-overflow:ellipsis}html body #prayer-sidebar .prayer-clock{font-size:16px}html body #prayer-sidebar .prayer-next strong{font-size:11px}html body #prayer-sidebar .prayer-countdown{font-size:13px}}
