@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Amiri:wght@700&display=swap');
:root{--navy:#082d2b;--deep:#041d20;--teal:#0b7164;--gold:#f3c96b;--cream:#fff8e9;--white:#fff;--muted:#c6ddd4}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif}.tv{background:radial-gradient(ellipse at top left,#13594e,#062b2b 60%,#031a20);color:#fff;min-height:100vh;padding:1.7vh 2vw;display:flex;flex-direction:column}.top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff25;padding-bottom:1.4vh}.brand{display:flex;align-items:center;gap:18px}.crescent{font-size:42px;color:var(--gold)}.eyebrow{font-size:clamp(10px,.8vw,15px);letter-spacing:.18em;color:var(--gold);font-weight:800}.top h1{margin:3px 0;font-size:clamp(22px,2.4vw,42px);letter-spacing:.02em}.muted{color:var(--muted);font-size:clamp(11px,.9vw,16px)}.clock{text-align:right}.clock #clock{font-size:clamp(24px,2.6vw,46px);font-weight:800;font-variant-numeric:tabular-nums}.clock #date{font-size:clamp(11px,.95vw,17px)}.hijri{color:var(--gold);font-size:clamp(10px,.8vw,14px);margin-top:4px}.layout{display:grid;grid-template-columns:1.4fr .8fr;gap:1.4vw;flex:1;min-height:0;padding:1.6vh 0}.left,.right{display:flex;flex-direction:column;gap:1.3vh;min-height:0}.hero{background:linear-gradient(125deg,#0c6558,#08443e);border:1px solid #ffffff1b;border-radius:18px;padding:1.8vh 1.4vw;display:grid;grid-template-columns:.7fr 1.3fr;align-items:center;gap:1vw}.bigclock{font-size:clamp(38px,5vw,85px);font-weight:900;letter-spacing:-.05em;line-height:1.1;font-variant-numeric:tabular-nums}.next{font-size:clamp(11px,.95vw,17px);color:#d7eee5;margin-top:8px}.prayergrid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:12px 0 8px}.prayer{background:#052e2d;border:1px solid #ffffff18;border-radius:10px;padding:12px 5px;text-align:center}.prayer span{display:block;font-size:clamp(9px,.75vw,13px);color:#a9d5c8;font-weight:800;letter-spacing:.04em}.prayer strong{display:block;font-size:clamp(16px,1.55vw,28px);margin-top:7px;color:var(--gold)}.today small{font-size:clamp(9px,.7vw,12px);color:#c4e0d6}.notice,.cash{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:14px;padding:1.2vh 1vw;min-height:0}.section-title{display:flex;align-items:center;justify-content:space-between;color:var(--gold);font-size:clamp(12px,1vw,18px);font-weight:900;padding-bottom:8px;border-bottom:1px solid #ffffff20}.section-title small{font-size:clamp(8px,.65vw,12px);color:#a7cfc2;letter-spacing:.1em}.notice-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:8px}.notice-item{padding:8px 10px;background:#ffffff0c;border-left:3px solid var(--gold);border-radius:5px;min-width:0}.notice-item b{display:block;font-size:clamp(10px,.9vw,15px);margin-bottom:4px}.notice-item span{font-size:clamp(9px,.72vw,13px);color:#cde2d9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cash table{width:100%;border-collapse:collapse;font-size:clamp(9px,.72vw,13px);margin-top:7px}.cash th{text-align:left;color:#a9d5c8;font-size:.9em}.cash td,.cash th{padding:6px 7px;border-bottom:1px solid #ffffff13}.cash td:nth-child(3){color:#b4e9c7}.cash td:nth-child(4){color:#ffb6a9}.right{background:#031f21;border:1px solid #ffffff1a;border-radius:18px;overflow:hidden;gap:0}.photo-title{padding:14px 16px;color:var(--gold);font-weight:900;letter-spacing:.14em;font-size:clamp(12px,1vw,18px)}.slideshow{position:relative;flex:1;min-height:180px;background:#031515;overflow:hidden}.slide{display:none;position:absolute;inset:0}.slide.active{display:block;animation:fade .7s}.slide img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#001a1aee);padding:40px 18px 15px;font-size:clamp(13px,1.15vw,20px);font-weight:800}.empty-photo{height:100%;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c4e2d7}.empty-photo span{font-size:70px;color:var(--gold)}.side-note{text-align:center;padding:1.6vh 12px;color:#d5e9df;font-size:clamp(10px,.85vw,15px)}.arabic{font-family:Amiri,serif;color:var(--gold);font-size:clamp(24px,2.1vw,38px);margin-bottom:4px}.side-note small{display:block;color:#8fb9aa;margin-top:4px}.ticker{background:#dcb75f;color:#102f29;overflow:hidden;white-space:nowrap;padding:10px;font-size:clamp(10px,.8vw,14px);font-weight:800}.ticker span{display:inline-block;padding-left:100%;animation:marquee 25s linear infinite}footer{display:flex;justify-content:space-between;border-top:1px solid #ffffff25;padding-top:9px;color:#9bc3b5;font-size:clamp(9px,.7vw,12px)}@keyframes marquee{to{transform:translateX(-100%)}}@keyframes fade{from{opacity:.2}to{opacity:1}}
.login-bg,.admin-bg{background:#f1f5f4;color:#172f2c;min-height:100vh}.login-bg{display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#073a34,#0a6b5d)}.login-card{background:white;width:min(420px,100%);padding:32px;border-radius:20px;box-shadow:0 20px 70px #001a1833;display:flex;flex-direction:column;gap:12px}.login-card .crescent{text-align:center}.login-card h1{text-align:center;font-size:24px;margin:0}.login-card p,.login-card small{text-align:center;color:#61736e}.login-card label,.formgrid label{font-weight:700;font-size:13px;display:flex;flex-direction:column;gap:7px}.login-card input,.formgrid input,.formgrid textarea{width:100%;padding:11px 12px;border:1px solid #ccd8d4;border-radius:8px;font:inherit;color:#183b35;background:white}.login-card button,.formgrid button{background:#087564;color:white;border:0;border-radius:9px;padding:12px 16px;font-weight:800;cursor:pointer}.login-card a{color:#087564;text-align:center;text-decoration:none}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:8px}.admin-top{height:65px;background:#073a34;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 26px}.admin-top b{font-size:18px}.admin-top nav{display:flex;gap:20px}.admin-top a{color:#d8eee5;text-decoration:none;font-size:13px}.admin-wrap{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 65px)}.sidebar{background:white;border-right:1px solid #dfe7e4;padding:18px 12px;display:flex;flex-direction:column;gap:5px}.sidebar a{padding:12px 14px;border-radius:8px;color:#35554e;text-decoration:none;font-size:14px;font-weight:600}.sidebar a.selected,.sidebar a:hover{background:#e2f2ed;color:#087564}.admin-main{padding:28px;max-width:1300px;width:100%}.admin-main h1{margin:0 0 8px;font-size:28px}.admin-main>p{color:#6b7f78;margin-top:0}.panel{background:white;border:1px solid #dce7e2;border-radius:12px;padding:20px;margin:18px 0;box-shadow:0 2px 8px #102e2810}.panel h2{margin:0 0 14px;font-size:17px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.formgrid button{align-self:end;justify-self:start}.formgrid label:has(textarea),.formgrid label:has(input[type=file]){grid-column:1/-1}.formgrid textarea{resize:vertical}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.stats div{background:white;border:1px solid #dce7e2;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:6px}.stats b{font-size:30px;color:#087564}.stats span{font-size:13px;color:#6b7f78}.success{background:#dcfce7;color:#166534;padding:12px 16px;border-radius:8px;margin-bottom:15px}.table-scroll{overflow:auto}.admin-main table{border-collapse:collapse;width:100%;font-size:13px}.admin-main th,.admin-main td{text-align:left;padding:10px;border-bottom:1px solid #e6eeea;white-space:nowrap}.admin-main th{color:#4a6b62;background:#f7faf9}.inline{display:inline}.small{padding:6px 9px!important;font-size:11px!important}.danger{background:#b42318!important;color:white;border:0;border-radius:6px;cursor:pointer}.listrow{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e6eeea}.listrow p{margin:5px 0;color:#61736e;font-size:13px}.photo-admin{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.photo-admin>div{background:white;border:1px solid #dce7e2;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.photo-admin img{width:100%;height:130px;object-fit:cover;border-radius:6px}.photo-admin b{font-size:13px}.admin-main code{background:#edf4f1;padding:2px 5px;border-radius:4px}@media(max-width:900px){.tv{padding:12px}.top{gap:10px}.layout{grid-template-columns:1fr}.right{min-height:350px}.hero{grid-template-columns:1fr}.notice-list{grid-template-columns:1fr}.prayergrid{gap:4px}.admin-wrap{grid-template-columns:1fr}.sidebar{flex-direction:row;overflow:auto}.sidebar a{white-space:nowrap}.admin-main{padding:15px}.stats{grid-template-columns:repeat(2,1fr)}.formgrid{grid-template-columns:1fr}footer{gap:8px;flex-direction:column}.clock #date{max-width:180px}.brand{gap:8px}.brand .crescent{font-size:28px}}


/* Pilihan tema layar TV */
.tv.theme-blue{background:radial-gradient(ellipse at top left,#124d80,#071e3b 62%,#041323)}
.tv.theme-blue .hero{background:linear-gradient(125deg,#1764a0,#0c3765)}
.tv.theme-blue .prayer{background:#08274b}.tv.theme-blue .prayer strong{color:#8ed7ff}
.tv.theme-blue .eyebrow,.tv.theme-blue .section-title,.tv.theme-blue .photo-title{color:#8ed7ff}
.tv.theme-blue .ticker{background:#8ed7ff;color:#062342}
.tv.theme-maroon{background:radial-gradient(ellipse at top left,#772f40,#351522 62%,#1b0b13)}
.tv.theme-maroon .hero{background:linear-gradient(125deg,#8b3349,#4e1b2d)}
.tv.theme-maroon .prayer{background:#351421}.tv.theme-maroon .prayer strong,.tv.theme-maroon .eyebrow,.tv.theme-maroon .section-title,.tv.theme-maroon .photo-title{color:#ffd1a6}
.tv.theme-maroon .ticker{background:#e8b67b;color:#351421}
.tv.theme-midnight{background:radial-gradient(ellipse at top left,#282d38,#11141b 62%,#07090d)}
.tv.theme-midnight .hero{background:linear-gradient(125deg,#343b49,#202632)}
.tv.theme-midnight .prayer{background:#141923}.tv.theme-midnight .prayer strong{color:#e5e7eb}
.tv.theme-midnight .eyebrow,.tv.theme-midnight .section-title,.tv.theme-midnight .photo-title{color:#e5e7eb}
.tv.theme-midnight .ticker{background:#d1d5db;color:#111827}
.tv.theme-light{background:radial-gradient(ellipse at top left,#eff8f3,#d9e9e3 70%,#c8ddd5);color:#123b32}
.tv.theme-light .top{border-color:#174b3b33}.tv.theme-light .muted,.tv.theme-light .clock #date,.tv.theme-light .side-note{color:#345d51}
.tv.theme-light .eyebrow,.tv.theme-light .section-title,.tv.theme-light .photo-title{color:#087564}
.tv.theme-light .hero{background:linear-gradient(125deg,#ffffff,#dff1e8);border-color:#9bbfb0}
.tv.theme-light .next,.tv.theme-light .today small{color:#355f53}
.tv.theme-light .prayer{background:#e4f3ec;border-color:#a8cdbd}
.tv.theme-light .prayer span{color:#35695a}.tv.theme-light .prayer strong{color:#087564}
.tv.theme-light .notice,.tv.theme-light .cash{background:#ffffffb8;border-color:#b8d4c8}
.tv.theme-light .section-title{border-color:#b8d4c8}.tv.theme-light .section-title small{color:#4b7567}
.tv.theme-light .notice-item{background:#e7f3ed;border-color:#0b8b71}.tv.theme-light .notice-item b{color:#153e33}.tv.theme-light .notice-item span{color:#476b5e}
.tv.theme-light .cash th{color:#376858}.tv.theme-light .cash td,.tv.theme-light .cash th{border-color:#c7ddd3}
.tv.theme-light .right{background:#edf7f2;border-color:#b8d4c8}.tv.theme-light .side-note{color:#234b3f}
.tv.theme-light footer{border-color:#174b3b33;color:#416b5c}
.prayer-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:3vw;background:#001411d9;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s,visibility .35s}
.prayer-overlay.visible{opacity:1;visibility:visible}
.prayer-alert{width:min(900px,94vw);min-height:55vh;max-height:92vh;overflow:auto;border:3px solid var(--gold);border-radius:28px;background:linear-gradient(145deg,#0b6658,#052e2c 72%);box-shadow:0 0 0 100vmax #00110fc2,0 0 70px #f3c96b55;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:clamp(22px,4vw,58px);animation:prayerZoom 2.4s ease-in-out infinite}
.alert-moon{font-size:clamp(28px,4vw,58px);color:var(--gold);line-height:1}.alert-kicker{font-size:clamp(11px,1.1vw,18px);font-weight:900;letter-spacing:.25em;color:#d9eee5;margin-top:12px}
.alert-title{font-size:clamp(28px,5.2vw,76px);line-height:1.12;font-weight:900;letter-spacing:.025em;color:#fff;margin-top:15px;text-wrap:balance}
.alert-time{font-size:clamp(26px,3.6vw,54px);font-weight:900;color:var(--gold);margin-top:10px;font-variant-numeric:tabular-nums}
.alert-rule{width:min(360px,70%);height:2px;background:#f3c96b99;margin:22px 0}
.iqomah-label{font-weight:900;letter-spacing:.17em;color:#d5e8df;font-size:clamp(12px,1.3vw,20px)}
.iqomah-time{font-weight:900;font-size:clamp(25px,3.5vw,52px);color:#fff;margin-top:5px;font-variant-numeric:tabular-nums}
.countdown-wrap{display:none;margin-top:18px;background:#f3c96b;color:#082d2b;border-radius:14px;padding:12px 26px;align-items:center;gap:18px}
.countdown-wrap.show{display:flex;animation:countdownPulse .9s ease-in-out infinite alternate}
.countdown-wrap span{font-size:clamp(10px,1vw,16px);font-weight:900;letter-spacing:.1em}.countdown-wrap strong{font-size:clamp(30px,4.5vw,64px);font-variant-numeric:tabular-nums}
.alert-foot{color:#d5e8df;font-size:clamp(11px,1vw,16px);margin-top:24px}
@keyframes prayerZoom{0%,100%{transform:scale(.965)}50%{transform:scale(1.015)}}
@keyframes countdownPulse{from{transform:scale(1)}to{transform:scale(1.04)}}
@media(max-width:600px){.prayer-alert{min-height:50vh;padding:22px 14px}.countdown-wrap{flex-direction:column;gap:2px;padding:10px 18px}.alert-foot{margin-top:12px}}


/* Mode pengingat: mengganti seluruh layar utama, lalu kembali otomatis setelah 1 jam */
.prayer-overlay{
  background:#041d20;
  padding:0;
  overflow:hidden;
}
.prayer-overlay.visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.prayer-alert{
  width:100%;
  height:100%;
  min-height:100vh;
  max-height:100vh;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:clamp(24px,5vw,80px);
  background:radial-gradient(ellipse at top,#0b6658 0%,#052e2c 65%,#03191b 100%);
}
.tv.theme-blue .prayer-overlay{background:#041323}
.tv.theme-blue .prayer-alert{background:radial-gradient(ellipse at top,#1764a0,#08274b 65%,#041323)}
.tv.theme-maroon .prayer-overlay{background:#1b0b13}
.tv.theme-maroon .prayer-alert{background:radial-gradient(ellipse at top,#8b3349,#351421 65%,#1b0b13)}
.tv.theme-midnight .prayer-overlay{background:#07090d}
.tv.theme-midnight .prayer-alert{background:radial-gradient(ellipse at top,#343b49,#141923 65%,#07090d)}
.tv.theme-light .prayer-overlay{background:#d9e9e3}
.tv.theme-light .prayer-alert{background:radial-gradient(ellipse at top,#ffffff,#dff1e8 65%,#c8ddd5)}
.tv.theme-light .alert-title,.tv.theme-light .iqomah-time{color:#123b32}
.tv.theme-light .alert-kicker,.tv.theme-light .iqomah-label,.tv.theme-light .alert-foot{color:#345d51}
@media(max-width:600px){
  .prayer-alert{min-height:100vh;padding:22px 14px}
}
