/*!
 * JWS TV — tampilan layar masjid.
 * Panggung digambar pada ukuran tetap 1920x1080 (potret 1080x1920) lalu diskalakan ke layar,
 * sehingga ukuran huruf sama persis dengan mockup di TV mana pun (HD, Full HD, 4K).
 */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body.tv { cursor: none; -webkit-font-smoothing: antialiased; }
body.tv.pointer { cursor: default; }
* { box-sizing: border-box; }

#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--text); --u: 1; --fs: 1;
}
#stage.portrait { width: 1080px; height: 1920px; }
.ar { font-family: 'Amiri', 'Traditional Arabic', serif; direction: rtl; unicode-bidi: isolate; }
.hide { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tema ---------------------------------------------------------------------------- */
.theme-langit   { --bg:#14233D; --deep:#0E1A2F; --panel:#1B2D4B; --line:#2C4163; --text:#EEF2EC; --dim:#A9B6C8; --brass:#E2B04F; --brass-ink:#14233D; --glow:rgba(226,176,79,.28); --iq:#6FC6B3; --good:#8AD3BF; --bad:#F0A28C; --sholat-bg:#03060B; --sholat-text:#8492A6;  --glass:rgba(14,26,47,.74); --ink:#14233D; }
.theme-kapur    { --bg:#EDF1EC; --deep:#E0E7E1; --panel:#FFFFFF; --line:#C6D1C9; --text:#16212E; --dim:#4F5D6A; --brass:#8A5527; --brass-ink:#FFFFFF; --glow:rgba(138,85,39,.22); --iq:#1E6B5C; --good:#1E6B5C; --bad:#A3412A; --sholat-bg:#0E1512; --sholat-text:#8C9A93;  --glass:rgba(255,255,255,.84); --ink:#16212E; }
.theme-hijau    { --bg:#0F2D28; --deep:#0A221E; --panel:#15382F; --line:#2A5249; --text:#EAF2EE; --dim:#A3BDB4; --brass:#DDB15A; --brass-ink:#0F2D28; --glow:rgba(221,177,90,.28); --iq:#8AD3BF; --good:#8AD3BF; --bad:#F0A28C; --sholat-bg:#030A08; --sholat-text:#7F978F;  --glass:rgba(10,34,30,.74); --ink:#0F2D28; }
.theme-marun    { --bg:#3A1420; --deep:#2C0F18; --panel:#4A1C2A; --line:#64303F; --text:#F6EEEF; --dim:#D2B6BC; --brass:#E8B661; --brass-ink:#3A1420; --glow:rgba(232,182,97,.28); --iq:#8AD3BF; --good:#9ED8C4; --bad:#F2A48E; --sholat-bg:#0B0306; --sholat-text:#9C8A8F;  --glass:rgba(44,15,24,.74); --ink:#3A1420; }
.theme-kontras  { --bg:#000000; --deep:#111111; --panel:#161616; --line:#3A3A3A; --text:#FFFFFF; --dim:#D2D2D2; --brass:#FFD23F; --brass-ink:#000000; --glow:rgba(255,210,63,.30); --iq:#7FE0C8; --good:#7FE0C8; --bad:#FF9C85; --sholat-bg:#000000; --sholat-text:#9A9A9A;  --glass:rgba(0,0,0,.78); --ink:#000000; }
.theme-biru     { --bg:#0E3A86; --deep:#0A2C68; --panel:#1F5BC4; --line:#3D74D6; --text:#FFFFFF; --dim:#CFDDF5; --brass:#FFE45C; --brass-ink:#0A2C68; --glow:rgba(255,228,92,.30); --iq:#8FE3CF; --good:#8FE3CF; --bad:#FFAB91; --sholat-bg:#02060F; --sholat-text:#8C9BB5;  --glass:rgba(10,44,104,.78); --ink:#0F3D8C; }
.theme-ramadhan { --bg:#24152F; --deep:#1A0F23; --panel:#311E3F; --line:#4A3459; --text:#F4EEF6; --dim:#C3B4CC; --brass:#EAB95C; --brass-ink:#24152F; --glow:rgba(234,185,92,.28); --iq:#7FE0C8; --good:#9EDFC9; --bad:#F2A48E; --sholat-bg:#07030A; --sholat-text:#958AA0;  --glass:rgba(26,15,35,.76); --ink:#24152F; }

/* ---------- Layar (fase) -------------------------------------------------------------------- */
.scr { position: absolute; inset: 0; display: none; }
.scr.on { display: flex; }

/* ---------- Bagian umum layar utama ---------------------------------------------------------- */
.main { flex-direction: column; padding: 44px 56px 40px; gap: 24px; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 104px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.logo { width: 84px; height: 84px; color: var(--brass); flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mname { font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maddr { font-size: 26px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dates { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; flex-shrink: 0; }
.dates .greg, .dates .hijri { font-size: 32px; font-weight: 500; white-space: nowrap; }
.dates .hijri { color: var(--brass); }
/* Suhu di ujung baris Hijriah: ikut ukuran dan warna baris Hijriah setiap tata letak. */
.hijri .htext, .hijri .temp { white-space: nowrap; }
.hijri .temp { unicode-bidi: isolate; }
.hijri.hin { display: inline-block; }
.hijri .htext:not(:empty) + .temp::before { content: '\00B7'; margin: 0 .4em; opacity: .75; }

.body { display: flex; gap: 44px; height: 500px; flex-shrink: 0; }
.clockbox { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.clock { display: flex; align-items: baseline; gap: 14px; line-height: 0.84; white-space: nowrap; }
.clock .hm { font-size: calc(280px * var(--fs)); font-weight: 400; letter-spacing: -0.035em; }
.clock .ss { font-size: calc(108px * var(--fs)); color: var(--dim); }
.next { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.next .lbl { font-size: 38px; color: var(--dim); }
.next .cd { font-size: 68px; font-weight: 700; color: var(--brass); }

.panel { position: relative; width: 760px; flex-shrink: 0; padding: 44px 48px 36px; border-radius: 22px; background: var(--panel); display: flex; flex-direction: column; overflow: hidden; }
.panel.empty { visibility: hidden; }
.panel .slot { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

.sched { display: flex; flex-direction: column; flex-shrink: 0; }
.dayline { position: relative; height: 28px; }
.dayline .track { position: absolute; top: 13px; height: 2px; background: var(--line); }
.dayline .fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--brass); opacity: .55; }
.dayline .dot { position: absolute; top: 8px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; background: var(--line); }
.dayline .dot.past { background: var(--dim); }
.dayline .dot.target { top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 8px; border: 3px solid var(--brass); background: var(--bg); }
.dayline .now { position: absolute; top: 3px; width: 22px; height: 22px; margin-left: -11px; border-radius: 11px; background: var(--brass); box-shadow: 0 0 0 7px var(--glow); transition: left 1s linear; }

.tiles { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: 18px; min-width: 0; }
.tile .tl { font-size: calc(30px * var(--fs)); white-space: nowrap; }
.tile .tt { font-size: calc(62px * var(--fs)); font-weight: 700; line-height: 1; }
.tile .ts { font-size: calc(23px * var(--fs)); height: 28px; color: var(--dim); white-space: nowrap; }
.tile.past .tl, .tile.past .tt { color: var(--dim); }
.tile.hl { background: var(--brass); color: var(--brass-ink); }
.tile.hl .tl { font-weight: 700; color: inherit; }
.tile.hl .tt { color: inherit; }
.tile.hl .ts { color: inherit; font-weight: 500; }
.tile.ring { border: 2px solid var(--line); padding: 14px 8px 12px; }

.ticker { margin-top: auto; height: 66px; flex-shrink: 0; padding: 0 28px; border-radius: 14px; background: var(--deep); display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: calc(30px * var(--fs)); position: relative; }
.ticker.empty { visibility: hidden; }
.ticker .strip { display: inline-flex; align-items: center; gap: 26px; position: absolute; left: 0; top: 0; height: 100%; will-change: transform; padding-left: 28px; }
.ticker .sep { width: 22px; height: 22px; flex-shrink: 0; color: var(--brass); }

/* ---------- Tata letak: klasik ---------------------------------------------------------------- */
.tpl-klasik .panel { --u: 1; }

/* ---------- Tata letak: minimal ---------------------------------------------------------------- */
.tpl-minimal .body { justify-content: center; }
.tpl-minimal .clockbox { align-items: center; text-align: center; }
.tpl-minimal .clock .hm { font-size: calc(340px * var(--fs)); }
.tpl-minimal .clock .ss { font-size: calc(124px * var(--fs)); }
.tpl-minimal .next { justify-content: center; }
.tpl-minimal .next .lbl { font-size: 44px; }
.tpl-minimal .next .cd { font-size: 84px; }
.tpl-minimal .panel { display: none; }

/* ---------- Tata letak: samping --------------------------------------------------------------- */
.tpl-samping .main { flex-direction: row; padding: 0; gap: 0; }
.side { width: 600px; flex-shrink: 0; padding: 44px 40px 36px 52px; background: var(--deep); display: flex; flex-direction: column; gap: 22px; }
.side .brand { gap: 18px; }
.side .logo { width: 64px; height: 64px; }
.side .mname { font-size: 34px; line-height: 1.1; white-space: normal; }
.side .maddr { font-size: 22px; }
.rows-head, .row { display: grid; grid-template-columns: 1fr 130px 130px; align-items: center; }
.rows-head { font-size: 22px; color: var(--dim); padding: 0 18px; margin-top: 8px; }
.rows-head span:not(:first-child), .row span:not(:first-child) { text-align: right; }
.rows { display: flex; flex-direction: column; gap: 4px; }
.row { padding: 10px 18px; font-size: calc(34px * var(--fs)); }
.row.past { color: var(--dim); }
.row.hl { padding: 16px 18px; border-radius: 14px; background: var(--brass); color: var(--brass-ink); font-size: calc(40px * var(--fs)); font-weight: 700; }
.nextbox { margin-top: auto; padding: 22px 18px 0; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nextbox .lbl { font-size: 28px; color: var(--dim); }
.nextbox .cd { font-size: 76px; font-weight: 700; line-height: 1; color: var(--brass); }
.content { flex: 1; min-width: 0; padding: 44px 56px 40px 48px; display: flex; flex-direction: column; gap: 28px; }
.content .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-shrink: 0; }
.content .clock .hm { font-size: calc(190px * var(--fs)); }
.content .clock .ss { font-size: calc(72px * var(--fs)); }
.content .clock { line-height: .8; }
.content .dates { padding-bottom: 6px; }
.tpl-samping .panel { width: auto; flex: 1; min-height: 0; padding: 38px 46px; --u: 1.05; }
.tpl-samping .ticker { height: 62px; font-size: calc(28px * var(--fs)); padding: 0 26px; margin-top: 0; }

/* ---------- Tata letak: panorama -------------------------------------------------------------- */
.tpl-panorama .main { padding: 40px 56px; gap: 26px; }
.tpl-panorama .hdr { height: 146px; }
.tpl-panorama .logo { width: 78px; height: 78px; }
.tpl-panorama .brand { gap: 22px; }
.tpl-panorama .mname { font-size: 44px; }
.tpl-panorama .subline { font-size: 26px; color: var(--dim); white-space: nowrap; }
.tpl-panorama .subline .hijri { color: var(--brass); font-weight: 500; margin-left: 18px; }
.pano-right { display: flex; align-items: baseline; gap: 26px; flex-shrink: 0; padding-top: 12px; }
.pano-next { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pano-next .lbl { font-size: 28px; color: var(--dim); }
.pano-next .cd { font-size: 52px; font-weight: 700; color: var(--brass); }
.pano-clock { font-size: calc(140px * var(--fs)); font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.pano-clock .ss { font-size: .4em; color: var(--dim); letter-spacing: 0; margin-left: 8px; }
.tpl-panorama .panel { width: auto; flex: 1; min-height: 0; padding: 48px 56px; border-radius: 24px; --u: 1.3; }
.theme-kapur.tpl-panorama .panel { border: 2px solid #D5DED7; }
.tpl-panorama .tiles { gap: 10px; margin-top: 0; }
.tpl-panorama .tile { gap: 4px; padding: 14px 6px; border-radius: 16px; }
.tpl-panorama .tile .tl { font-size: calc(26px * var(--fs)); }
.tpl-panorama .tile .tt { font-size: calc(52px * var(--fs)); }
.tpl-panorama .tile .ts { font-size: calc(20px * var(--fs)); height: 24px; }
.tpl-panorama .ticker { height: 58px; font-size: calc(28px * var(--fs)); margin-top: 0; }

/* ---------- Tata letak: potret (1080x1920) ---------------------------------------------------- */
.tpl-potret .main { padding: 52px 52px 44px; gap: 30px; }
.tpl-potret .hdr { height: auto; justify-content: flex-start; gap: 22px; }
.tpl-potret .logo { width: 86px; height: 86px; }
.tpl-potret .mname { font-size: 44px; white-space: normal; }
.tpl-potret .maddr { font-size: 25px; white-space: normal; }
.clocksec { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 22px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); text-align: center; flex-shrink: 0; }
.clocksec .dline { font-size: 32px; }
.clocksec .dline .hijri { color: var(--brass); margin-left: 14px; }
.clocksec .clock { line-height: .9; }
.clocksec .clock .hm { font-size: calc(250px * var(--fs)); }
.clocksec .clock .ss { font-size: calc(96px * var(--fs)); }
.clocksec .next .lbl { font-size: 36px; }
.clocksec .next .cd { font-size: 64px; }
.tpl-potret .rows-head, .tpl-potret .row { grid-template-columns: 1fr 190px 190px; }
.tpl-potret .rows-head { padding: 0 26px 6px; font-size: 24px; margin-top: 0; }
.tpl-potret .rows { gap: 2px; flex-shrink: 0; }
.tpl-potret .row { padding: 12px 26px; font-size: calc(40px * var(--fs)); }
.tpl-potret .row.hl { padding: 18px 26px; border-radius: 16px; font-size: calc(48px * var(--fs)); }
.tpl-potret .panel { width: auto; flex: 1; min-height: 0; padding: 38px 42px; --u: 1; }
.tpl-potret .ticker { height: 64px; font-size: calc(28px * var(--fs)); padding: 0 24px; margin-top: 0; }

/* ---------- Slide di panel ------------------------------------------------------------------- */
.sl { display: flex; flex-direction: column; gap: calc(22px * var(--u)); flex: 1; min-height: 0; animation: slide-in .6s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sl h2 { margin: 0; font-size: calc(54px * var(--u)); font-weight: 700; line-height: 1.05; }
.sl .kicker { font-size: calc(26px * var(--u)); color: var(--brass); font-weight: 700; letter-spacing: .01em; }
.sl .sub { font-size: calc(36px * var(--u)); color: var(--brass); font-weight: 500; line-height: 1.2; }
.sl .lines { display: flex; flex-direction: column; gap: calc(18px * var(--u)); font-size: calc(30px * var(--u)); line-height: 1.25; }
.sl .line { display: flex; align-items: center; gap: calc(18px * var(--u)); }
.sl .line svg { width: calc(34px * var(--u)); height: calc(34px * var(--u)); flex-shrink: 0; color: var(--dim); }
.sl .body-text { font-size: calc(30px * var(--u)); line-height: 1.42; white-space: pre-line; overflow: hidden; }
.sl .body-text.center, .sl.center { text-align: center; align-items: center; }
.sl .arabic { font-size: calc(46px * var(--u)); line-height: 1.75; }
.sl .translation { font-size: calc(28px * var(--u)); line-height: 1.45; }
.sl .source { font-size: calc(24px * var(--u)); color: var(--dim); }
.sl .more { margin-top: auto; font-size: calc(24px * var(--u)); color: var(--dim); line-height: 1.4; }
.sl .more strong { color: var(--text); font-weight: 700; }
.pfoot { margin-top: calc(20px * var(--u)); display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.pbar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--dim); }
.pcount { font-size: 22px; color: var(--dim); }

.panel.media { padding: 0; }
.panel.media .pfoot { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; }
.sl-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.sl-media img, .sl-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-media.cover img, .sl-media.cover video { object-fit: cover; }
.sl-media .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 32px 46px; font-size: calc(30px * var(--u)); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }

/* Laporan kas */
.fin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fin-head h2 { font-size: calc(46px * var(--u)); }
.fin-head .period { font-size: calc(26px * var(--u)); color: var(--dim); }
.fin { display: grid; grid-template-columns: 1fr auto; gap: 0 32px; font-size: calc(30px * var(--u)); line-height: 1.2; }
.fin span { padding: calc(12px * var(--u)) 0; }
.fin .det { padding: calc(6px * var(--u)) 0 calc(6px * var(--u)) 28px; color: var(--dim); }
.fin .det-v { padding: calc(6px * var(--u)) 0; text-align: right; }
.fin .sec, .fin .sec-v { border-top: 2px solid var(--line); font-weight: 700; }
.fin .sec-v, .fin .v { text-align: right; }
.fin .in { color: var(--good); }
.fin .out { color: var(--bad); }
.fin .tot, .fin .tot-v { border-top: 2px solid var(--brass); padding-top: calc(16px * var(--u)); font-weight: 700; font-size: calc(36px * var(--u)); }
.fin .tot-v { font-size: calc(44px * var(--u)); color: var(--brass); text-align: right; }
.fin .muted { color: var(--dim); }

/* Program infaq */
.camp { display: flex; gap: calc(48px * var(--u)); flex: 1; min-height: 0; }
.camp .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(18px * var(--u)); }
.camp h2 { font-size: calc(60px * var(--u)); letter-spacing: -0.01em; }
.camp .desc { margin: 0; font-size: calc(30px * var(--u)); line-height: 1.4; color: var(--dim); }
.camp .amount { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.camp .amount b { font-size: calc(48px * var(--u)); color: var(--good); }
.camp .amount span { font-size: calc(28px * var(--u)); color: var(--dim); }
.camp .bar { height: calc(20px * var(--u)); border-radius: 10px; background: var(--deep); overflow: hidden; }
.camp .bar i { display: block; height: 100%; background: var(--good); }
.camp .meta { display: flex; justify-content: space-between; gap: 16px; font-size: calc(24px * var(--u)); color: var(--dim); }
.camp .qrcol { width: calc(380px * var(--u)); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.camp .qrimg { width: calc(300px * var(--u)); height: calc(300px * var(--u)); object-fit: contain; border-radius: 14px; background: #fff; padding: 12px; }
.camp .qrcap { font-size: calc(26px * var(--u)); font-weight: 700; }
.camp .bank { font-size: calc(22px * var(--u)); color: var(--dim); line-height: 1.4; }
.tpl-klasik .camp { flex-direction: column; gap: 18px; }
.tpl-klasik .camp .qrcol { width: auto; flex-direction: row; justify-content: flex-start; text-align: left; }
.tpl-klasik .camp .qrimg { width: 150px; height: 150px; padding: 8px; }
.tpl-klasik .camp h2 { font-size: 46px; }
.tpl-klasik .camp .desc { display: none; }

/* Berita duka */
.obit { text-align: center; align-items: center; justify-content: center; }
.obit .ar { font-size: calc(44px * var(--u)); color: var(--dim); }
.obit .kicker { color: var(--dim); }
.obit h2 { font-size: calc(56px * var(--u)); }
.obit .meta { font-size: calc(28px * var(--u)); line-height: 1.45; color: var(--dim); }
.obit .meta strong { color: var(--text); }

/* Petugas */
.duty { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; font-size: calc(32px * var(--u)); line-height: 1.25; }
.duty span { padding: calc(14px * var(--u)) 0; border-top: 2px solid var(--line); }
.duty span:nth-last-child(-n+2) { border-bottom: 2px solid var(--line); }
.duty .r { color: var(--dim); }
.duty .n { font-weight: 700; }

/* QR */
.qr { flex-direction: row; align-items: center; gap: calc(40px * var(--u)); }
.qr .code { width: calc(330px * var(--u)); height: calc(330px * var(--u)); flex-shrink: 0; background: #fff; border-radius: 16px; padding: 14px; }
.qr .code svg { width: 100%; height: 100%; display: block; }
.qr .txt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.qr .url { font-size: calc(26px * var(--u)); color: var(--brass); word-break: break-all; }
.tpl-klasik .qr, .tpl-potret .qr { flex-direction: column; text-align: center; }
.tpl-klasik .qr .code { width: 260px; height: 260px; }

/* Ramadhan: "malam ini di masjid" */
.ram-grid { display: grid; grid-template-columns: auto 1fr; gap: calc(14px * var(--u)) 22px; font-size: calc(30px * var(--u)); line-height: 1.3; }
.ram-grid .k { color: var(--dim); }
.ram-prog { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.ram-prog .row2 { display: flex; justify-content: space-between; gap: 12px; font-size: calc(28px * var(--u)); }
.ram-prog .row2 .v { color: var(--brass); }
.ram-prog .bar { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.ram-prog .bar i { display: block; height: 100%; background: var(--brass); }

/* ---------- Layar fase ------------------------------------------------------------------------ */
.phase { flex-direction: column; padding: 44px 56px 48px; background: var(--bg); color: var(--text); }
.phase .ph-hdr { display: flex; align-items: center; justify-content: space-between; height: 72px; flex-shrink: 0; }
.phase .ph-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.phase .ph-brand .logo { width: 56px; height: 56px; }
.phase .ph-brand span { font-size: 34px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase .ph-clock { font-size: 52px; font-weight: 500; }
.phase .ph-clock .ss { color: var(--dim); }
.phase .ph-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }

.pre .ph-main { gap: 10px; }
.pre .ar-name { font-size: 116px; line-height: 1.2; color: var(--brass); }
.pre .title { font-size: 64px; font-weight: 700; }
.pre .big { font-size: 300px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; }
.pre .info { font-size: 34px; color: var(--dim); margin-top: 12px; }
.pre .ph-foot { display: flex; flex-direction: column; gap: 18px; align-items: center; flex-shrink: 0; }
.pre .bar { width: 1100px; max-width: 100%; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pre .bar i { display: block; height: 100%; width: 0; background: var(--brass); }
.pre .hint { font-size: 30px; color: var(--dim); }

.adz { gap: 28px; }
.adz .ph-main { gap: 16px; }
.adz .ar-takbir { font-size: 128px; line-height: 1.15; color: var(--brass); }
.adz .title { font-size: 84px; font-weight: 700; line-height: 1.05; }
.adz .hint { font-size: 36px; color: var(--dim); max-width: 1600px; line-height: 1.35; }
.adz .times { display: flex; gap: 40px; margin-top: 18px; font-size: 34px; }
.adz .times strong { color: var(--brass); }
.adz .doa { flex-shrink: 0; padding: 34px 48px; border-radius: 22px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.adz .doa .k { font-size: 26px; color: var(--dim); }
.adz .doa .ar { font-size: 46px; line-height: 1.7; }
.adz .doa .tr { font-size: 27px; line-height: 1.45; color: var(--dim); max-width: 1650px; }

.iqm .title { font-size: 72px; font-weight: 700; }
.iqm .big { font-size: 400px; font-weight: 500; line-height: .95; letter-spacing: -0.04em; color: var(--iq); }
.iqm .bar { width: 1000px; max-width: 100%; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 18px; }
.iqm .bar i { display: block; height: 100%; width: 0; background: var(--iq); }
.iqm .msg { font-size: 54px; font-weight: 700; margin-top: 46px; }
.iqm .hint { font-size: 34px; color: var(--dim); margin-top: 12px; }
.iqm .ph-foot { display: flex; justify-content: center; gap: 56px; font-size: 30px; color: var(--dim); flex-shrink: 0; min-height: 36px; }
.iqm .ph-foot strong { color: var(--text); }

.sholat { flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 56px; text-align: center; background: var(--sholat-bg); color: var(--sholat-text); }
.sholat.dim-redup { background: var(--deep); color: var(--dim); }
.sholat.dim-normal { background: var(--bg); color: var(--text); }
.sholat .ico { width: 64px; height: 64px; color: currentColor; opacity: .5; }
.sholat .title { font-size: 46px; font-weight: 500; }
.sholat .time { font-size: 28px; opacity: .85; }

.dzikir .ph-main { gap: 26px; max-width: 1640px; margin: 0 auto; }
.dzikir .k { font-size: 34px; color: var(--brass); font-weight: 700; }
.dzikir .ar { font-size: 64px; line-height: 1.7; }
.dzikir .tr { font-size: 32px; line-height: 1.45; color: var(--dim); }

.jum { padding: 44px 56px 40px; gap: 28px; }
.jum .body { flex: 1; height: auto; min-height: 0; }
.jum .clock .hm { font-size: calc(230px * var(--fs)); }
.jum .clock .ss { font-size: calc(92px * var(--fs)); }
.jum .clock { line-height: .85; }
.jum .jwhen { display: flex; flex-direction: column; gap: 6px; }
.jum .when { font-size: 38px; color: var(--dim); }
.jum .when b { color: var(--text); font-weight: 400; }
.jum .cd { font-size: 96px; font-weight: 700; line-height: 1; color: var(--brass); }
.jum .panel { width: 860px; padding: 40px 48px; gap: 4px; justify-content: flex-start; }
.jum .panel h2 { margin: 0 0 18px; font-size: 40px; font-weight: 700; }
.jum .duty { font-size: 34px; grid-template-columns: 210px 1fr; }
.jum .duty span { padding: 18px 0; }
.jum .theme-v { color: var(--brass); font-weight: 400 !important; }
.jum .tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; flex-shrink: 0; }
.jum .tip { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 16px; background: var(--deep); font-size: 30px; }
.jum .tip svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--brass); }

.khutbah { flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 56px 120px; text-align: center; background: #0A1322; color: #DCE3EA; }
.theme-kapur .khutbah { background: #10201B; }
.khutbah .ico { width: 72px; height: 72px; color: #B8913F; }
.khutbah .title { font-size: 78px; font-weight: 700; line-height: 1.08; }
.khutbah .hint { font-size: 40px; color: #A3B0C0; }
.khutbah .who { font-size: 34px; margin-top: 8px; }
.khutbah .rule { width: 160px; height: 2px; background: #2A3A55; margin: 18px 0; }
.khutbah .ar { font-size: 50px; line-height: 1.6; color: #C9D2DC; }
.khutbah .tr { font-size: 28px; line-height: 1.45; color: #8F9DB0; max-width: 1400px; }
.khutbah .time { margin-top: 24px; font-size: 28px; color: #8392A7; }

.night { background: #000; color: #4E5867; }
.night .drift { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: left 2s ease, top 2s ease; }
.night .t { font-size: 120px; font-weight: 300; line-height: 1; }
.night .n { font-size: 34px; }

/* Potret: perkecil layar fase */
.portrait .phase { padding: 52px 44px; }
.portrait .pre .ar-name { font-size: 96px; }
.portrait .pre .title { font-size: 56px; }
.portrait .pre .big { font-size: 260px; }
.portrait .adz .ar-takbir { font-size: 110px; }
.portrait .adz .title { font-size: 66px; }
.portrait .adz .times { flex-direction: column; gap: 10px; }
.portrait .iqm .big { font-size: 300px; }
.portrait .iqm .msg { font-size: 48px; }
.portrait .iqm .ph-foot { flex-direction: column; align-items: center; gap: 8px; }
.portrait .jum .body { flex-direction: column; }
.portrait .jum .panel { width: auto; }
.portrait .jum .tips { grid-template-columns: 1fr; }
.portrait .khutbah { padding: 56px 60px; }
.portrait .khutbah .title { font-size: 64px; }

/* ---------- Lapisan atas ---------------------------------------------------------------------- */
.flash { position: absolute; left: 56px; right: 56px; top: 170px; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 30px 40px; border-radius: 20px; background: var(--brass); color: var(--brass-ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.flash .k { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
.flash .m { font-size: 42px; font-weight: 700; line-height: 1.25; }
.flash.penting { background: #E57A2E; color: #1B0E05; }
.flash.darurat { inset: 0; border-radius: 0; flex-direction: column; justify-content: center; text-align: center; background: #7A1010; color: #fff; padding: 80px; }
.flash.darurat .k { font-size: 40px; }
.flash.darurat .m { font-size: 76px; }
.portrait .flash { top: 220px; left: 40px; right: 40px; flex-direction: column; align-items: flex-start; }

.notice { position: absolute; z-index: 18; left: 50%; top: 22px; transform: translateX(-50%); padding: 12px 26px; border-radius: 999px; background: var(--deep); color: var(--text); border: 2px solid var(--line); font-size: 26px; white-space: nowrap; }
.notice.imsak { top: 170px; padding: 26px 46px; border-radius: 20px; background: var(--brass); color: var(--brass-ink); border: 0; font-size: 44px; font-weight: 700; }
.clockwarn { position: absolute; z-index: 30; left: 50%; bottom: 120px; transform: translateX(-50%); max-width: 90%; padding: 18px 32px; border-radius: 16px; background: #8E1B1B; color: #fff; font-size: 28px; font-weight: 700; text-align: center; }
.watermark { position: absolute; z-index: 15; right: 18px; bottom: 12px; padding: 4px 14px; border-radius: 999px; font-size: 18px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.75); }
.theme-kapur .watermark { background: rgba(0,0,0,.08); color: rgba(0,0,0,.55); }
.status-pill { position: absolute; z-index: 15; left: 18px; bottom: 12px; padding: 4px 14px; border-radius: 999px; font-size: 18px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.8); }
.tap-hint { position: absolute; z-index: 40; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 16px 30px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 26px; }

.boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: #14233D; color: #EEF2EC; font-size: 34px; text-align: center; padding: 80px; }
.boot svg { width: 96px; height: 96px; color: #E2B04F; }
.boot .sub { font-size: 24px; color: #A9B6C8; max-width: 1200px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .sl { animation: none; }
  .dayline .now { transition: none; }
}

/* =============================================================================================
 * TEMPLATE TAMBAHAN — setiap template juga memberi gaya pada layar fase.
 * ============================================================================================= */

/* ---------- Komponen bersama template ---------------------------------------------------------- */
.panel.band { width: auto; height: 150px; flex-shrink: 0; flex-direction: row; align-items: center; gap: 24px; padding: 20px 28px; border-radius: 18px; }
.panel.band.empty { display: none; }
.panel.band .slot { flex-direction: row; align-items: center; min-width: 0; }
.panel.band .pfoot { margin: 0; flex-direction: column; align-items: flex-end; gap: 8px; width: 96px; flex-shrink: 0; }
.panel.band .pbar { flex: none; width: 96px; }
.bnd { display: flex; align-items: center; gap: 24px; min-width: 0; flex: 1; animation: slide-in .6s ease both; }
.bnd-thumb { width: 172px; height: 108px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #000; }
.bnd-thumb.qr, .bnd-thumb.qrbox { width: 108px; height: 108px; object-fit: contain; background: #fff; padding: 8px; }
.bnd-thumb.qrbox svg { width: 100%; height: 100%; display: block; }
.bnd-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bnd-k { font-size: 22px; color: var(--brass); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnd-t { font-size: 31px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bnd-l { font-size: 23px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Angka papan bandara (split-flap) */
.flapbox { display: inline-flex; align-items: center; gap: .07em; }
.flapbox .fcell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: .74em; height: 1.16em; border-radius: .1em;
  background: linear-gradient(#26313e 0 49.6%, #18212b 50.4% 100%); color: #F4F5EF; font-style: normal; font-weight: 700; line-height: 1; box-shadow: inset 0 -.04em 0 rgba(0,0,0,.35); }
.flapbox .fcell::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0,0,0,.6); }
.flapbox .fcolon { font-style: normal; font-weight: 700; padding: 0 .02em; line-height: 1; }
.flapbox .fcell.flip { animation: flip .26s ease-in-out; }
@keyframes flip { 0% { transform: scaleY(1); filter: brightness(1); } 50% { transform: scaleY(.08); filter: brightness(1.6); } 100% { transform: scaleY(1); filter: brightness(1); } }

/* Cincin hitung mundur (Analog, Lingkar) */
.ringbox { position: relative; width: 560px; height: 560px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ringsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--brass); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.iqm .ring-fg { stroke: var(--iq); }
.ring-tick { stroke: var(--dim); stroke-width: .8; opacity: .55; }
.ring-tick.h { stroke: var(--text); stroke-width: 1.6; opacity: .9; }
.ring-bezel .ring-bg { stroke-width: 3; }
.ring-bezel .ring-fg { stroke-width: 5; }
.ring-orbit .ring-bg { stroke-width: 10; stroke: var(--deep); }
.ring-orbit .ring-fg { stroke-width: 10; }
.ring-dot { fill: #FFD36B; stroke: rgba(255, 211, 107, .35); stroke-width: 6; }
.ringbox .big { position: relative; margin: 0; }

/* Ornamen geometris & bingkai mihrab */
.orn { position: absolute; inset: 0; pointer-events: none; background: var(--brass); opacity: .065;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='38' y='38' width='56' height='56'/%3E%3Crect x='38' y='38' width='56' height='56' transform='rotate(45 66 66)'/%3E%3Ccircle cx='66' cy='66' r='12'/%3E%3Cpath d='M0 0L22 22M132 0L110 22M0 132L22 110M132 132L110 110M66 0V14M66 132V118M0 66H14M132 66H118'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='38' y='38' width='56' height='56'/%3E%3Crect x='38' y='38' width='56' height='56' transform='rotate(45 66 66)'/%3E%3Ccircle cx='66' cy='66' r='12'/%3E%3Cpath d='M0 0L22 22M132 0L110 22M0 132L22 110M132 132L110 110M66 0V14M66 132V118M0 66H14M132 66H118'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 132px 132px; mask-size: 132px 132px; }
.arch-o { fill: none; stroke: var(--brass); stroke-width: 4; vector-effect: non-scaling-stroke; }
.arch-i { fill: none; stroke: var(--brass); stroke-width: 2; opacity: .45; vector-effect: non-scaling-stroke; }
.arch-f { fill: var(--brass); }
.ph-arch { position: absolute; left: 50%; top: 96px; bottom: 26px; width: 1360px; transform: translateX(-50%); pointer-events: none; }
.ph-arch .arch { width: 100%; height: 100%; display: block; }
.ph-shade { position: absolute; inset: 0; background: rgba(8, 12, 20, .66); pointer-events: none; }
.phase > .ph-hdr, .phase > .ph-main, .phase > .ph-foot, .phase > .doa, .phase > .hdr, .phase > .body, .phase > .tips { position: relative; z-index: 1; }

/* ---------- 6. Mihrab ------------------------------------------------------------------------- */
.tpl-mihrab .main { padding: 34px 56px 34px; gap: 18px; }
.mh-hdr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; text-align: center; }
.mh-brand { display: flex; align-items: center; gap: 18px; max-width: 1500px; }
.mh-brand .logo { width: 60px; height: 60px; }
.mh-brand .mname { font-size: 44px; }
.mh-hdr .maddr { font-size: 24px; }
.mh-row { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 780px minmax(0, 1fr); gap: 36px; }
.mh-arch { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mh-arch .arch { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 80px 40px; }
.mh-dates { display: flex; flex-direction: column; gap: 4px; font-size: 30px; }
.mh-dates .hijri { color: var(--brass); }
.tpl-mihrab .clock { line-height: .9; }
.tpl-mihrab .clock .hm { font-size: calc(200px * var(--fs)); }
.tpl-mihrab .clock .ss { font-size: calc(78px * var(--fs)); }
.tpl-mihrab .next { justify-content: center; gap: 16px; }
.tpl-mihrab .next .lbl { font-size: 32px; }
.tpl-mihrab .next .cd { font-size: 58px; }
.pillar { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.pillar.left { align-items: flex-end; text-align: right; }
.pillar.right { align-items: flex-start; text-align: left; }
.pl-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 28px; border-radius: 18px; min-width: 320px; }
.pillar.left .pl-item { align-items: flex-end; }
.pl-name { font-size: calc(30px * var(--fs)); }
.pl-time { font-size: calc(62px * var(--fs)); font-weight: 700; line-height: 1; }
.pl-sub { font-size: 22px; color: var(--dim); min-height: 26px; }
.pl-item.past .pl-name, .pl-item.past .pl-time { color: var(--dim); }
.pl-item.hl { background: var(--brass); color: var(--brass-ink); }
.pl-item.hl .pl-sub { color: inherit; font-weight: 500; }
.tpl-mihrab .panel.band { height: 126px; }
.tpl-mihrab .ticker { margin-top: 0; }
.tpl-mihrab .phase .ph-main { padding-top: 70px; }
.tpl-mihrab .pre .big { font-size: 250px; }
.tpl-mihrab .iqm .big { font-size: 320px; }
.tpl-mihrab .adz .ar-takbir { font-size: 112px; }
.tpl-mihrab .adz .doa { margin: 0 140px; background: var(--deep); }
.tpl-mihrab .dzikir .ph-main { max-width: 1060px; }
.tpl-mihrab .dzikir .ar { font-size: 54px; }

/* ---------- 7. Analog ------------------------------------------------------------------------- */
.tpl-analog .main { padding: 40px 56px 34px; gap: 22px; }
.an-wrap { flex: 1; min-height: 0; display: flex; gap: 56px; align-items: center; }
.an-left { width: 880px; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dial { width: 880px; height: 880px; max-height: 100%; display: block; }
.dial-face { fill: var(--panel); }
.dial-ring { fill: none; stroke: var(--line); stroke-width: 4; }
.tick-m { stroke: var(--dim); stroke-width: 3; opacity: .5; }
.tick-h { stroke: var(--text); stroke-width: 8; stroke-linecap: round; }
.num { fill: var(--text); font-size: 64px; font-weight: 700; text-anchor: middle; font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', 'Segoe UI', sans-serif; }
.hand-h { stroke: var(--text); stroke-width: 22; stroke-linecap: round; }
.hand-m { stroke: var(--text); stroke-width: 13; stroke-linecap: round; }
.hand-s { stroke: var(--brass); stroke-width: 5; stroke-linecap: round; }
.cap { fill: var(--brass); }
.mk { fill: var(--dim); }
.mk.past { fill: var(--line); }
.mk.next { fill: var(--brass); }
.mk-label { fill: var(--dim); font-size: 30px; font-weight: 700; text-anchor: middle; letter-spacing: .04em; font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', 'Segoe UI', sans-serif; }
.mk-label.next { fill: var(--brass); font-size: 34px; }
.mk-label.past { opacity: .5; }
.an-right, .lk-right { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.an-right .brand, .lk-right .brand { gap: 18px; }
.an-right .logo, .lk-right .logo { width: 64px; height: 64px; }
.an-right .mname, .lk-right .mname { font-size: 38px; white-space: normal; }
.an-right .maddr, .lk-right .maddr { font-size: 22px; }
.an-right .dates { align-items: flex-start; text-align: left; gap: 4px; }
.an-right .dates .greg, .an-right .dates .hijri { font-size: 30px; }
.an-next, .lk-next { display: flex; flex-direction: column; gap: 2px; }
.an-next .lbl, .lk-next .lbl { font-size: 32px; color: var(--dim); }
.an-next .cd, .lk-next .cd { font-size: 88px; font-weight: 700; line-height: 1; color: var(--brass); }
.tpl-analog .rows-head, .tpl-analog .row, .tpl-lingkar .rows-head, .tpl-lingkar .row { grid-template-columns: 1fr 150px 150px; }
.tpl-analog .rows-head, .tpl-lingkar .rows-head { margin-top: 0; }
.tpl-analog .row, .tpl-lingkar .row { padding: 5px 16px; font-size: calc(32px * var(--fs)); }
.tpl-analog .row.hl, .tpl-lingkar .row.hl { padding: 9px 16px; font-size: calc(36px * var(--fs)); }
.tpl-analog .panel.band, .tpl-lingkar .panel.band { height: 128px; }
.tpl-analog .ticker, .tpl-lingkar .ticker { margin-top: 0; }
.tpl-analog .phase .bar, .tpl-lingkar .phase .bar { display: none; }
.tpl-analog .pre .ar-name, .tpl-lingkar .pre .ar-name { font-size: 84px; }
.tpl-analog .pre .big, .tpl-lingkar .pre .big { font-size: 150px; margin: 0; letter-spacing: -0.02em; }
.tpl-analog .iqm .big, .tpl-lingkar .iqm .big { font-size: 168px; letter-spacing: -0.02em; }
.tpl-analog .iqm .msg, .tpl-lingkar .iqm .msg { margin-top: 26px; }

/* ---------- 8. LED ---------------------------------------------------------------------------- */
#stage.tpl-led { background: #050506; color: #EDEDED; --led-a: #FF3B2F; --led-b: #FFB020; --led-c: #3CE07A; --led-ghost: rgba(255, 70, 50, .08); }
#stage.tpl-led.theme-hijau { --led-a: #3CE07A; --led-b: #FFD23F; --led-c: #3CE07A; --led-ghost: rgba(60, 224, 122, .08); }
#stage.tpl-led.theme-kontras { --led-a: #FFB020; --led-b: #FFFFFF; --led-c: #FFB020; --led-ghost: rgba(255, 176, 32, .09); }
#stage.tpl-led.theme-kapur { --led-a: #FF5E3A; --led-b: #F2F2F2; --led-c: #7CE8FF; --led-ghost: rgba(255, 94, 58, .08); }
#stage.tpl-led.theme-marun { --led-a: #FF3B5C; --led-b: #FFC46B; --led-c: #FF8FA3; --led-ghost: rgba(255, 59, 92, .08); }
#stage.tpl-led.theme-ramadhan { --led-a: #D88BFF; --led-b: #FFD27A; --led-c: #9DF5D6; --led-ghost: rgba(216, 139, 255, .08); }
.tpl-led .main { padding: 34px 48px 30px; gap: 20px; background: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.7px) 0 0 / 9px 9px; }
.led-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; height: 88px; flex-shrink: 0; }
.led-name { font-size: 44px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--led-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-shadow: 0 0 16px currentColor; }
.led-dates { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.led-dates .greg, .led-dates .hijri { font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--led-c); }
.led-dates .hijri { color: var(--led-b); }
.led-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border: 3px solid #1d1d21; border-radius: 18px; background: #09090b; }
.led-clock { font-family: 'DSEG7', monospace; color: var(--led-a); display: flex; align-items: baseline; gap: 30px; line-height: 1; text-shadow: 0 0 22px currentColor; }
.led-clock .hm { font-size: calc(250px * var(--fs)); }
.led-clock .ss { font-size: calc(110px * var(--fs)); color: var(--led-a); }
.led-next { display: flex; align-items: baseline; gap: 28px; }
.led-next .lbl { font-family: 'DSEG14', monospace; font-size: 40px; color: var(--led-b); text-transform: uppercase; text-shadow: 0 0 14px currentColor; }
.led-next .cd { font-family: 'DSEG7', monospace; font-size: 74px; color: var(--led-c); text-shadow: 0 0 16px currentColor; }
.tpl-led [data-ghost] { position: relative; isolation: isolate; }
.tpl-led [data-ghost]::before { content: attr(data-ghost); position: absolute; left: 0; top: 0; z-index: -1; color: var(--led-ghost); text-shadow: none; }
.tpl-led .led-grid .tiles { gap: 10px; margin-top: 0; }
.tpl-led .tile { border: 3px solid #1d1d21; background: #09090b; border-radius: 12px; padding: 14px 6px 12px; gap: 10px; }
.tpl-led .tile .tl { font-family: 'DSEG14', monospace; font-size: calc(24px * var(--fs)); color: var(--led-b); text-transform: uppercase; }
.tpl-led .tile .tt { font-family: 'DSEG7', monospace; font-size: calc(52px * var(--fs)); font-weight: 700; color: var(--led-c); text-shadow: 0 0 12px currentColor; }
.tpl-led .tile .ts { font-size: 20px; font-weight: 700; color: #8b8b8b; text-transform: uppercase; }
.tpl-led .tile.past .tl, .tpl-led .tile.past .tt { color: #4b4b4f; text-shadow: none; }
.tpl-led .tile.hl { background: #120706; border-color: var(--led-a); color: inherit; }
.tpl-led .tile.hl .tl, .tpl-led .tile.hl .tt { color: var(--led-a); }
.tpl-led .tile.hl .ts { color: var(--led-b); }
.tpl-led .ticker { margin-top: 0; background: #09090b; border: 3px solid #1d1d21; color: var(--led-b); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.tpl-led .ticker .strip { text-shadow: 0 0 10px currentColor; }
.tpl-led .ticker::after { content: ''; position: absolute; inset: 0; background: radial-gradient(transparent 52%, rgba(0,0,0,.6) 56%) 0 0 / 6px 6px; pointer-events: none; }
.tpl-led .phase, .tpl-led .jum { background: #050506; color: #EDEDED; }
.tpl-led .phase .big { font-family: 'DSEG7', monospace; font-weight: 700; color: var(--led-a); letter-spacing: 0; text-shadow: 0 0 28px currentColor; }
.tpl-led .pre .big { font-size: 270px; }
.tpl-led .iqm .big { font-size: 290px; color: var(--led-c); margin-bottom: 26px; }
.tpl-led .phase .title { text-transform: uppercase; letter-spacing: .06em; color: var(--led-b); }
.tpl-led .ph-clock { font-family: 'DSEG7', monospace; color: var(--led-a); font-size: 44px; }
.tpl-led .ph-clock .ss { color: var(--led-a); }
.tpl-led .phase .bar i { background: var(--led-a); }
.tpl-led .iqm .bar i { background: var(--led-c); }
.tpl-led .phase .bar { background: #1d1d21; }
.tpl-led .adz .ar-takbir, .tpl-led .pre .ar-name { color: var(--led-b); }
.tpl-led .adz .times strong { color: var(--led-c); }
.tpl-led .doa, .tpl-led .jum .panel { background: #0c0c0f; border: 3px solid #1d1d21; }
.tpl-led .jum .clock { font-family: 'DSEG7', monospace; color: var(--led-a); text-shadow: 0 0 20px currentColor; }
.tpl-led .jum .clock .ss { color: var(--led-a); }
.tpl-led .jum .cd { font-family: 'DSEG7', monospace; color: var(--led-c); }
.tpl-led .jum .tip { background: #0c0c0f; border: 3px solid #1d1d21; }
.tpl-led .sholat { background: #000; color: #8a3a32; }
.tpl-led .khutbah { background: #050506; color: #EDEDED; }
.tpl-led .khutbah .title { color: var(--led-b); text-transform: uppercase; letter-spacing: .05em; }
.tpl-led .khutbah .ico { color: var(--led-b); }
.tpl-led .khutbah .time { font-family: 'DSEG7', monospace; color: var(--led-a); }
.tpl-led .night .t { font-family: 'DSEG7', monospace; color: rgba(255, 59, 47, .35); font-size: 110px; }

/* ---------- 9. Kartu -------------------------------------------------------------------------- */
.tpl-kartu .main { padding: 40px 56px 36px; gap: 24px; }
.kt-hdr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 30px; height: 150px; flex-shrink: 0; }
.kt-hdr .logo { width: 72px; height: 72px; }
.kt-hdr .mname { font-size: 38px; }
.kt-hdr .maddr { font-size: 22px; }
.kt-clock { justify-content: center; line-height: .9; }
.kt-clock .hm { font-size: calc(168px * var(--fs)); }
.kt-clock .ss { font-size: calc(66px * var(--fs)); }
.kt-hdr .dates { justify-self: end; }
.kt-hdr .dates .greg, .kt-hdr .dates .hijri { font-size: 30px; }
.kt-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.kt-cards { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 4), minmax(0, 1fr)); gap: 16px; min-height: 0; }
.kcard { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 24px; border-radius: 20px; background: var(--panel); min-height: 0; }
.k-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.k-name { font-size: calc(30px * var(--fs)); font-weight: 700; }
.k-chip { font-size: 20px; padding: 4px 12px; border-radius: 999px; background: var(--deep); color: var(--dim); white-space: nowrap; }
.k-chip:empty { display: none; }
.k-time { font-size: calc(68px * var(--fs)); font-weight: 700; line-height: 1; }
.k-sub { font-size: 22px; color: var(--dim); min-height: 26px; }
.kcard.past { opacity: .5; }
.kcard.hl { background: var(--brass); color: var(--brass-ink); }
.kcard.hl .k-sub { color: inherit; }
.kcard.hl .k-chip { background: rgba(0, 0, 0, .18); color: inherit; }
.kt-right { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.kt-next { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 30px; border-radius: 20px; background: var(--deep); flex-shrink: 0; }
.kt-next .lbl { font-size: 32px; color: var(--dim); }
.kt-next .cd { font-size: 64px; font-weight: 700; color: var(--brass); }
.tpl-kartu .panel { width: auto; flex: 1; min-height: 0; padding: 32px 38px; --u: .95; }
.tpl-kartu .ticker { margin-top: 0; }
.tpl-kartu .pre .ph-main, .tpl-kartu .iqm .ph-main, .tpl-kartu .adz .ph-main, .tpl-kartu .dzikir .ph-main { margin: 18px 150px; padding: 30px 50px; border-radius: 48px; background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.tpl-kartu .adz .ph-main { margin-bottom: 0; }
.tpl-kartu .adz .doa { background: var(--deep); }
.tpl-kartu .pre .big { font-size: 250px; }
.tpl-kartu .iqm .big { font-size: 320px; }
.tpl-kartu .iqm .msg { margin-top: 28px; }

/* ---------- 10. Lingkar ----------------------------------------------------------------------- */
.tpl-lingkar .main { padding: 36px 56px 34px; gap: 20px; }
.lk-wrap { flex: 1; min-height: 0; display: flex; gap: 40px; align-items: center; }
.lk-left { position: relative; width: 1060px; height: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ring24 { width: 1060px; height: 862px; display: block; }
.r-track { fill: none; stroke: var(--line); stroke-width: 40; }
.r-arc { fill: none; stroke-width: 40; }
.r-arc.night { stroke: var(--deep); }
.r-arc.dawn { stroke: var(--iq); stroke-opacity: .6; }
.r-arc.day { stroke: var(--brass); stroke-opacity: .5; }
.r-arc.dusk { stroke: var(--bad); stroke-opacity: .55; }
.r-tick { stroke: var(--text); stroke-width: 4; }
.r-tick.past { stroke: var(--dim); opacity: .55; }
.r-tick.next { stroke: var(--brass); stroke-width: 9; }
.r-label { fill: var(--dim); font-size: 31px; font-weight: 700; letter-spacing: .01em; font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', 'Segoe UI', sans-serif; }
.r-label.next { fill: var(--brass); font-size: 33px; }
.r-label.past { opacity: .55; }
.r-hour { fill: var(--dim); font-size: 26px; text-anchor: middle; opacity: .65; font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', 'Segoe UI', sans-serif; }
.r-sun { fill: #FFD36B; stroke: rgba(255, 211, 107, .35); stroke-width: 18; }
.r-sun.moon { fill: #DCE3EA; stroke: rgba(220, 227, 234, .25); }
.lk-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 500px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lk-center .clock { line-height: .9; }
.lk-center .clock .hm { font-size: calc(132px * var(--fs)); }
.lk-center .clock .ss { font-size: calc(50px * var(--fs)); }
.lk-dates { display: flex; flex-direction: column; gap: 4px; font-size: 28px; }
.lk-dates .hijri { color: var(--brass); }

/* ---------- 11. Galeri ------------------------------------------------------------------------ */
#stage.has-photo { background-size: cover; background-position: center; }
#stage.bg-pattern { background-image: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .09), transparent 50%), linear-gradient(160deg, var(--panel), var(--bg) 55%, var(--deep)); }
.tpl-galeri .main { padding: 46px 56px 38px; gap: 22px; }
.tpl-galeri.has-photo .main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.66) 100%); pointer-events: none; }
.tpl-galeri.bg-pattern .main::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--brass); opacity: .05;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='38' y='38' width='56' height='56'/%3E%3Crect x='38' y='38' width='56' height='56' transform='rotate(45 66 66)'/%3E%3Ccircle cx='66' cy='66' r='12'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='38' y='38' width='56' height='56'/%3E%3Crect x='38' y='38' width='56' height='56' transform='rotate(45 66 66)'/%3E%3Ccircle cx='66' cy='66' r='12'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 132px 132px; mask-size: 132px 132px; }
.tpl-galeri .main > * { position: relative; }
.gl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-shrink: 0; }
.gl-clock { display: flex; flex-direction: column; gap: 14px; }
.tpl-galeri.has-photo .gl-clock { color: #fff; text-shadow: 0 4px 28px rgba(0, 0, 0, .45); }
.gl-clock .clock { line-height: .86; }
.gl-clock .clock .hm { font-size: calc(220px * var(--fs)); }
.gl-clock .clock .ss { font-size: calc(84px * var(--fs)); }
.gl-clock .next .lbl { font-size: 36px; }
.tpl-galeri.has-photo .gl-clock .clock .ss { color: rgba(255, 255, 255, .75); }
.tpl-galeri.has-photo .gl-clock .next .lbl { color: rgba(255, 255, 255, .8); }
.gl-clock .next .cd { font-size: 62px; }
.tpl-galeri.has-photo.theme-kapur .gl-clock .cd { color: #F2C46D; }
.gl-card { padding: 26px 32px; border-radius: 22px; background: var(--glass); display: flex; flex-direction: column; gap: 16px; max-width: 760px; min-width: 0; }
.gl-card .brand { gap: 18px; }
.gl-card .logo { width: 64px; height: 64px; }
.gl-card .mname { font-size: 36px; white-space: normal; }
.gl-card .maddr { font-size: 22px; white-space: normal; }
.gl-card .dates { align-items: flex-start; text-align: left; gap: 4px; }
.gl-card .dates .greg, .gl-card .dates .hijri { font-size: 28px; }
.gl-mid { flex: 1; min-height: 0; display: flex; justify-content: flex-end; }
.tpl-galeri .panel { width: 820px; background: var(--glass); }
.gl-bar { padding: 14px 16px 10px; border-radius: 22px; background: var(--glass); flex-shrink: 0; }
.tpl-galeri .tiles { margin-top: 0; gap: 10px; }
.tpl-galeri .tile { padding: 12px 6px 10px; gap: 4px; }
.tpl-galeri .tile .tl { font-size: calc(26px * var(--fs)); }
.tpl-galeri .tile .tt { font-size: calc(54px * var(--fs)); }
.tpl-galeri .tile .ts { font-size: calc(20px * var(--fs)); height: 24px; }
.tpl-galeri .ticker { margin-top: 0; background: var(--glass); }
.tpl-galeri.has-photo .phase, .tpl-galeri.has-photo .jum { background: transparent; color: #fff; --dim: #D3DAE2; --line: rgba(255, 255, 255, .22); --panel: rgba(255, 255, 255, .1); --deep: rgba(0, 0, 0, .3); }
.tpl-galeri.has-photo.theme-kapur .phase, .tpl-galeri.has-photo.theme-kapur .jum { --brass: #EBC06E; --iq: #7FD3BF; }
.tpl-galeri.bg-pattern .phase, .tpl-galeri.bg-pattern .jum { background: transparent; }
.tpl-galeri.bg-pattern .ph-shade { display: none; }
.tpl-galeri .sholat { background: rgba(2, 4, 8, .94); }

/* ---------- 12. Papan ------------------------------------------------------------------------- */
.tpl-papan .main { padding: 40px 56px 34px; gap: 22px; }
.pp-hdr { display: flex; justify-content: space-between; align-items: center; gap: 30px; height: 110px; flex-shrink: 0; }
.pp-hdr .mname { font-size: 42px; }
.pp-clock { line-height: 1; }
.pp-clock .hm { font-size: calc(108px * var(--fs)); font-weight: 700; }
.pp-clock .ss { font-size: calc(54px * var(--fs)); }
.pp-main { flex: 1; min-height: 0; display: flex; gap: 30px; }
.pp-board { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--deep); border-radius: 22px; padding: 18px 24px; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) 290px 220px 280px; align-items: center; gap: 18px; padding: 8px 14px; border-radius: 14px; }
.pp-head { font-size: 22px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding: 4px 14px 12px; border-bottom: 2px solid var(--line); border-radius: 0; margin-bottom: 6px; }
.pp-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; }
.pp-name { font-size: calc(38px * var(--fs)); font-weight: 700; }
.pp-row .flapbox { font-size: calc(54px * var(--fs)); }
.pp-row .flapbox.small { font-size: calc(38px * var(--fs)); }
.pp-status { font-size: 26px; font-weight: 700; padding: 6px 14px; border-radius: 10px; justify-self: start; white-space: nowrap; }
.pp-status.done { color: var(--dim); font-weight: 500; }
.pp-status.next { background: var(--brass); color: var(--brass-ink); }
.pp-status.later { color: var(--text); opacity: .65; font-weight: 500; }
.pp-row.past .pp-name { color: var(--dim); }
.pp-row.past .flapbox { opacity: .5; }
.pp-row.hl { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px var(--brass); }
.theme-kapur .pp-row.hl { background: rgba(0, 0, 0, .04); }
.pp-side { width: 600px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.pp-cd { padding: 24px 30px; border-radius: 22px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.pp-cd-lbl { font-size: 32px; color: var(--dim); }
.pp-cd-v { font-size: 80px; }
.pp-dates { padding: 20px 30px; border-radius: 22px; background: var(--panel); align-items: flex-start; text-align: left; gap: 4px; flex-shrink: 0; }
.pp-dates .greg, .pp-dates .hijri { font-size: 30px; }
.tpl-papan .panel.band { height: auto; flex: 1; min-height: 0; flex-direction: column; align-items: stretch; padding: 24px 28px; }
.tpl-papan .panel.band .slot { flex-direction: column; align-items: stretch; }
.tpl-papan .panel.band .pfoot { flex-direction: row; width: auto; align-items: center; }
.tpl-papan .panel.band .pbar { flex: 1; width: auto; }
.tpl-papan .bnd { flex-direction: column; align-items: flex-start; gap: 14px; }
.tpl-papan .bnd-t { -webkit-line-clamp: 4; }
.tpl-papan .bnd-l { white-space: normal; }
.tpl-papan .ticker { margin-top: 0; }
.tpl-papan .phase .title { text-transform: uppercase; letter-spacing: .08em; }
.tpl-papan .pre .big { font-size: 210px; margin-top: 18px; }
.tpl-papan .iqm .big { font-size: 250px; }
.tpl-papan .iqm .bar { margin-top: 28px; }
.tpl-papan .jum .cd { font-size: 84px; }

/* Potret: kepala layar Jumat bertumpuk */
.portrait .jum .hdr { flex-direction: column; align-items: flex-start; height: auto; gap: 14px; }
.portrait .jum .dates { align-items: flex-start; text-align: left; }

/* =============================================================================================
 * Variasi layar fase untuk template dasar (Samping, Panorama, Minimal) & layar sholat/khutbah
 * ============================================================================================= */

/* Samping: layar fase terbagi, panel info waktu sholat di kiri */
.phase.split { flex-direction: row; padding: 0; gap: 0; }
.ph-side { width: 600px; flex-shrink: 0; padding: 44px 40px 40px 52px; background: var(--deep); display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.ps-ar { font-size: 70px; line-height: 1.35; color: var(--brass); margin-top: 36px; text-align: left; }
.ps-name { font-size: 80px; font-weight: 700; line-height: 1; }
.ps-rows { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 36px; padding: 22px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.ps-rows .k { color: var(--dim); }
.ps-rows .v { font-weight: 700; text-align: right; }
.ps-duty { display: flex; flex-direction: column; gap: 8px; font-size: 27px; color: var(--dim); }
.ps-duty strong { color: var(--text); }
.ps-date { margin-top: auto; font-size: 25px; color: var(--dim); line-height: 1.45; white-space: pre-line; }
.ph-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 44px 56px 48px; position: relative; z-index: 1; }
.split .ph-body .ph-brand { visibility: hidden; }
.split.adz .ph-body { gap: 26px; }
.tpl-samping .pre .ar-name { display: none; }
.tpl-samping .pre .big { font-size: 270px; }
.tpl-samping .iqm .big { font-size: 330px; }
.tpl-samping .iqm .title, .tpl-samping .pre .title { font-size: 60px; }
.tpl-samping .adz .ar-takbir { font-size: 110px; }
.tpl-samping .adz .title { font-size: 66px; }
.tpl-samping .adz .doa { padding: 28px 36px; }
.tpl-samping .adz .doa .ar { font-size: 40px; }
.tpl-samping .adz .doa .tr { font-size: 24px; }
.tpl-samping .sholat { align-items: flex-start; text-align: left; padding-left: 220px; }
.tpl-samping .sholat::before { content: ''; position: absolute; left: 170px; top: 36%; bottom: 36%; width: 4px; border-radius: 2px; background: currentColor; opacity: .35; }

/* Panorama: komposisi melebar, angka besar di kiri dan keterangan di kanan */
.tpl-panorama .pre .ph-main { display: grid; grid-template-columns: auto minmax(0, 760px); grid-template-areas: "big ar" "big title" "big info"; align-content: center; justify-content: center; align-items: center; column-gap: 80px; row-gap: 8px; text-align: left; }
.tpl-panorama .pre .ar-name { grid-area: ar; align-self: end; text-align: left; font-size: 96px; }
.tpl-panorama .pre .title { grid-area: title; font-size: 60px; line-height: 1.1; }
.tpl-panorama .pre .big { grid-area: big; font-size: 360px; margin: 0; }
.tpl-panorama .pre .info { grid-area: info; align-self: start; margin-top: 4px; }
.tpl-panorama .iqm .ph-main { display: grid; grid-template-columns: auto minmax(0, 760px); grid-template-areas: "big title" "big msg" "big hint" "bar bar"; align-content: center; justify-content: center; align-items: center; column-gap: 80px; row-gap: 10px; text-align: left; }
.tpl-panorama .iqm .title { grid-area: title; align-self: end; font-size: 64px; }
.tpl-panorama .iqm .big { grid-area: big; font-size: 400px; }
.tpl-panorama .iqm .bar { grid-area: bar; width: 100%; margin-top: 36px; }
.tpl-panorama .iqm .msg { grid-area: msg; margin-top: 0; font-size: 48px; line-height: 1.15; }
.tpl-panorama .iqm .hint { grid-area: hint; align-self: start; margin-top: 0; }
.tpl-panorama .adz .ph-main { display: grid; grid-template-columns: auto minmax(0, 860px); grid-template-areas: "tak title" "tak hint" "tak times"; align-content: center; justify-content: center; align-items: center; column-gap: 70px; row-gap: 14px; text-align: left; }
.tpl-panorama .adz .ar-takbir { grid-area: tak; font-size: 190px; }
.tpl-panorama .adz .title { grid-area: title; align-self: end; }
.tpl-panorama .adz .hint { grid-area: hint; }
.tpl-panorama .adz .times { grid-area: times; align-self: start; margin-top: 6px; }
.tpl-panorama .sholat { flex-direction: row; gap: 40px; }
.tpl-panorama .sholat .ico { width: 92px; height: 92px; }

/* Minimal: hanya angka dan judul */
.tpl-minimal .pre .ar-name, .tpl-minimal .pre .ph-foot, .tpl-minimal .adz .ar-takbir, .tpl-minimal .adz .doa,
.tpl-minimal .iqm .bar, .tpl-minimal .iqm .hint, .tpl-minimal .sholat .ico, .tpl-minimal .khutbah .ico,
.tpl-minimal .khutbah .rule { display: none; }
.tpl-minimal .ph-hdr { opacity: .55; }
.tpl-minimal .pre .big { font-size: 430px; }
.tpl-minimal .pre .title { font-size: 56px; color: var(--dim); font-weight: 500; }
.tpl-minimal .iqm .big { font-size: 480px; }
.tpl-minimal .iqm .title { font-size: 56px; color: var(--dim); font-weight: 500; }
.tpl-minimal .adz .title { font-size: 120px; }
.tpl-minimal .adz .times { font-size: 44px; }
.tpl-minimal .sholat .title { font-size: 40px; }

/* Layar sholat & khutbah per template */
.sholat > .ico, .sholat > .title, .sholat > .time, .khutbah > .ico, .khutbah > .title, .khutbah > .hint, .khutbah > .who,
.khutbah > .rule, .khutbah > .ar, .khutbah > .tr, .khutbah > .time { position: relative; z-index: 1; }
.sholat .orn { opacity: .025; }
.sholat .ph-arch { opacity: .22; }
.khutbah .orn { opacity: .04; }
.khutbah .ph-arch { opacity: .35; }
.tpl-mihrab .khutbah { background: var(--sholat-bg); }
.tpl-analog .sholat .ico, .tpl-lingkar .sholat .ico { width: 150px; height: 150px; padding: 34px; border: 3px solid currentColor; border-radius: 50%; }
.tpl-lingkar .sholat .ico { border-style: dashed; }
.tpl-kartu .sholat .title, .tpl-kartu .khutbah .title { padding: 26px 56px; border-radius: 30px; background: rgba(255, 255, 255, .04); }
.tpl-papan .sholat .title, .tpl-papan .khutbah .title { text-transform: uppercase; letter-spacing: .1em; }
.tpl-led .sholat .title { font-family: 'DSEG14', monospace; text-transform: uppercase; font-size: 38px; font-weight: 700; }
.tpl-galeri.has-photo .sholat, .tpl-galeri.has-photo .khutbah { background: transparent; }
.tpl-galeri.has-photo .sholat .ph-shade { background: rgba(2, 4, 8, .9); }
.tpl-galeri.has-photo .khutbah .ph-shade { background: rgba(6, 10, 18, .82); }
.tpl-papan .night .t { font-size: 110px; }

/* Khutbah per template dasar */
.tpl-samping .khutbah { align-items: flex-start; text-align: left; padding-left: 220px; padding-right: 160px; }
.tpl-samping .khutbah::before { content: ''; position: absolute; left: 170px; top: 22%; bottom: 22%; width: 4px; border-radius: 2px; background: #B8913F; opacity: .6; }
.tpl-samping .khutbah .rule { margin-left: 0; }
.tpl-panorama .khutbah.on { display: grid; }
.tpl-panorama .khutbah { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ico ar" "title ar" "hint tr" "who tr" "rule time"; column-gap: 90px; row-gap: 14px; align-content: center; justify-items: start; text-align: left; padding: 56px 120px; }
.tpl-panorama .khutbah .ico { grid-area: ico; }
.tpl-panorama .khutbah .title { grid-area: title; font-size: 72px; }
.tpl-panorama .khutbah .hint { grid-area: hint; }
.tpl-panorama .khutbah .who { grid-area: who; }
.tpl-panorama .khutbah .rule { grid-area: rule; margin: 10px 0; }
.tpl-panorama .khutbah .ar { grid-area: ar; align-self: end; text-align: right; justify-self: stretch; }
.tpl-panorama .khutbah .tr { grid-area: tr; align-self: start; }
.tpl-panorama .khutbah .time { grid-area: time; margin-top: 0; }
.tpl-analog .khutbah .ico, .tpl-lingkar .khutbah .ico { width: 150px; height: 150px; padding: 34px; border: 3px solid currentColor; border-radius: 50%; }
.tpl-lingkar .khutbah .ico { border-style: dashed; }

.power-off { position: fixed; inset: 0; background: #000; z-index: 99999; cursor: none; }


/* ---------- 13-17. Template berlatar foto masjid ----------------------------------------- */
/* Tata letak absolut di atas foto (Latar layar: unggahan pengurus atau ilustrasi bawaan). */
.tpl-jamdinding .main, .tpl-pitabawah .main, .tpl-lengkung .main, .tpl-kacaemas .main, .tpl-panelbiru .main { padding: 0; gap: 0; }
.tpl-jamdinding .main.on, .tpl-pitabawah .main.on, .tpl-lengkung .main.on, .tpl-kacaemas .main.on, .tpl-panelbiru .main.on { display: block; }
.tpl-jamdinding .main > *, .tpl-pitabawah .main > *, .tpl-lengkung .main > *, .tpl-kacaemas .main > *, .tpl-panelbiru .main > * { position: absolute; }
.tpl-jamdinding .ticker, .tpl-pitabawah .ticker, .tpl-lengkung .ticker, .tpl-kacaemas .ticker, .tpl-panelbiru .ticker {
  left: 0; right: 0; bottom: 0; height: 72px; margin: 0; border-radius: 0; background: rgba(0, 0, 0, .88); color: #fff; font-size: calc(36px * var(--fs)); }
.photo-tpl.has-photo .phase, .photo-tpl.has-photo .jum { background: transparent; color: #fff; --dim: #D3DAE2; --line: rgba(255, 255, 255, .22); --panel: rgba(255, 255, 255, .1); --deep: rgba(0, 0, 0, .3); }
.photo-tpl.has-photo .sholat, .photo-tpl.has-photo .khutbah { background: transparent; }
.photo-tpl.has-photo .sholat .ph-shade { background: rgba(2, 4, 8, .9); }
.photo-tpl.has-photo .khutbah .ph-shade { background: rgba(6, 10, 18, .82); }
.photo-tpl.bg-pattern .phase, .photo-tpl.bg-pattern .jum { background: transparent; }
.photo-tpl.bg-pattern .ph-shade { display: none; }

/* Nama masjid */
.nb { display: flex; align-items: center; gap: 26px; color: #fff; min-width: 0; }
.nb-tx { min-width: 0; }
.nb-name { font-family: 'Amiri', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: calc(68px * var(--fs)); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 3px 18px rgba(0, 0, 0, .45); }
.nb-addr { font-size: 22px; opacity: .92; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.nb-logo { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); overflow: hidden; }
.nb-logo .logo { width: 68px; height: 68px; color: var(--ink); }
.nb-logo img.logo { width: 100%; height: 100%; object-fit: cover; }

/* Pil hitung mundur */
.cpill { display: flex; align-items: center; height: 78px; padding: 0 34px 0 0; border-radius: 40px; background: rgba(255, 255, 255, .95); color: #1B2333; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); white-space: nowrap; }
.cp-ic { width: 78px; height: 78px; border-radius: 50%; background: var(--panel); color: #fff; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; border: 4px solid #fff; }
.cp-ic svg { width: 42px; height: 42px; }
.cp-next { display: flex; align-items: baseline; gap: 14px; }
.cp-next .lbl { font-size: 32px; color: #3B475E; }
.cp-next .cd { font-size: 42px; font-weight: 800; color: #111827; }

/* Daftar waktu ber-ikon (dasar) */
.pr { display: flex; align-items: center; min-width: 0; }
.pr-ic { flex-shrink: 0; }
.pr-tx { display: flex; flex-direction: column; min-width: 0; }
.pr-name, .pr-time { white-space: nowrap; }
.pr-time { font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.pr-sub.none { visibility: hidden; }
.pr-sub[data-k]::before { content: attr(data-k) ' '; }

/* Jam dinding (dasar) */
.wdial { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.wd-rim { fill: var(--deep); }
.wd-face { fill: var(--panel); }
.wd-orn line { stroke: rgba(255, 255, 255, .35); stroke-width: 6; stroke-linecap: round; }
.wd-th { stroke: #fff; stroke-width: 12; stroke-linecap: round; }
.wd-tm { stroke: rgba(255, 255, 255, .7); stroke-width: 5; stroke-linecap: round; }
.wd-num { fill: #fff; font-size: 72px; font-weight: 600; text-anchor: middle; font-family: 'JWS Angka', 'Atkinson Hyperlegible Next', sans-serif; }
.wd-hh { stroke: #fff; stroke-width: 24; stroke-linecap: round; }
.wd-hm { stroke: #fff; stroke-width: 15; stroke-linecap: round; }
.wd-hs { stroke: #E8483B; stroke-width: 6; stroke-linecap: round; }
.wd-cap { fill: #fff; }
.wd-pin { fill: #E8483B; }

/* 13. Jam Dinding */
.jd-side { left: 0; top: 0; bottom: 72px; width: 700px; background: linear-gradient(165deg, var(--panel), var(--deep)); clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%); }
.jd-list { position: absolute; inset: 0; display: flex; flex-direction: column; }
.jd-list .pr { flex: 1; gap: 30px; padding-left: 52px; border-bottom: 2px solid rgba(255, 255, 255, .12); color: #fff; }
.jd-list .pr:last-child { border-bottom: 0; }
.jd-list .pr-ic { width: 82px; height: 82px; }
.jd-list .pr-name { font-size: calc(40px * var(--fs)); }
.jd-list .pr-time { font-size: calc(86px * var(--fs)); }
.jd-list.n7 .pr-ic, .jd-list.n8 .pr-ic { width: 66px; height: 66px; }
.jd-list.n7 .pr-name, .jd-list.n8 .pr-name { font-size: calc(32px * var(--fs)); }
.jd-list.n7 .pr-time, .jd-list.n8 .pr-time { font-size: calc(68px * var(--fs)); }
.jd-list .pr.hl { background: rgba(0, 0, 0, .3); color: var(--brass); }
.jd-list .pr.past .pr-time { opacity: .78; }
.jd-top { left: 640px; right: 0; top: 0; height: 196px; background: rgba(26, 30, 40, .6); display: flex; align-items: center; justify-content: flex-end; padding: 0 52px 0 300px; }
.jd-top .nb { text-align: right; }
.jd-date { left: 640px; right: 0; top: 196px; height: 78px; background: linear-gradient(90deg, rgba(0, 0, 0, .55), var(--panel) 45%); display: flex; align-items: center; justify-content: flex-end; padding: 0 52px; color: #fff; font-size: 36px; white-space: nowrap; }
.jd-date .greg { font-weight: 700; }
.jd-date .hijri::before, .ke-date .hijri::before, .lk-date .hijri::before { content: '/'; margin: 0 18px; opacity: .7; }
.jd-date .hijri:empty::before, .ke-date .hijri:empty::before, .lk-date .hijri:empty::before { display: none; }
.jd-dial { left: 412px; top: 226px; width: 560px; height: 560px; }
.jd-pill { right: 52px; bottom: 108px; }

/* 14. Pita Bawah */
.pb-name { left: 52px; top: 44px; max-width: 1000px; }
.pb-name .nb-logo { border-radius: 26px; }
.tpl-pitabawah .panel { left: auto; right: 52px; top: 44px; width: 740px; height: 450px; padding: 32px 38px; background: var(--glass); --u: .88; }
.pb-pill { left: 52px; top: 662px; }
.pb-band { left: 0; right: 0; top: 770px; height: 238px; display: flex; align-items: stretch; padding: 24px 24px 18px; color: #fff;
  background: linear-gradient(180deg, var(--panel), var(--deep));
  -webkit-mask: radial-gradient(circle at 16px 0, transparent 11px, #000 11.5px) 0 0 / 32px 100% repeat-x;
          mask: radial-gradient(circle at 16px 0, transparent 11px, #000 11.5px) 0 0 / 32px 100% repeat-x; }
.pb-clock { width: 430px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 0 22px; border-right: 2px solid rgba(255, 255, 255, .22); }
.pb-time { display: flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.pb-time .hm, .pb-time .ss { font-size: calc(98px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; }
.pb-dates { margin-top: 12px; }
.pb-dates .greg { font-size: 28px; font-weight: 700; white-space: nowrap; }
.pb-dates .hijri { font-size: 26px; opacity: .9; margin-top: 4px; white-space: nowrap; }
.pb-list { flex: 1; display: flex; min-width: 0; }
.pb-list .pr { flex: 1; flex-direction: column; justify-content: center; text-align: center; border-right: 2px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 4px 6px; }
.pb-list .pr:last-child { border-right: 0; }
.pb-list .pr-ic { display: none; }
.pb-list .pr-tx { align-items: center; }
.pb-list .pr-name { font-size: calc(34px * var(--fs)); font-weight: 700; letter-spacing: .02em; }
.pb-list .pr-time { font-size: calc(84px * var(--fs)); margin-top: 6px; }
.pb-list .pr-sub, .lk-grid .pr-sub { margin-top: 10px; font-size: 20px; padding: 4px 12px; border-radius: 8px; background: rgba(0, 0, 0, .32); white-space: nowrap; }
.pb-list.n7 .pr-time { font-size: calc(64px * var(--fs)); }
.pb-list.n8 .pr-time { font-size: calc(56px * var(--fs)); letter-spacing: -0.02em; }
.pb-list.n7 .pr-name, .pb-list.n8 .pr-name { font-size: calc(27px * var(--fs)); }
.pb-list.n7 .pr-sub, .pb-list.n8 .pr-sub { font-size: 17px; padding: 3px 8px; }
.pb-list .pr.hl { background: rgba(0, 0, 0, .26); color: var(--brass); }

/* 15. Lengkung (potret 1080x1920) */
.lk-glow { left: 0; top: 0; width: 1080px; height: 1290px; background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .96) 40%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 62%); }
.lk-frame { left: 0; top: 0; width: 1080px; height: 1290px; }
.lk-pbg { fill: var(--panel); }
.lk-star { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; }
.lk-sq { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 2; }
.lk-dot { fill: rgba(255, 255, 255, .55); }
.lk-mask { fill: url(#lkpat); }
.lk-line1 { fill: none; stroke: #fff; stroke-width: 28; }
.lk-line2 { fill: none; stroke: var(--panel); stroke-width: 6; }
.lk-head { left: 170px; right: 170px; top: 168px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); }
.lk-logo { width: 124px; height: 124px; border-radius: 28px; background: var(--panel); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); overflow: hidden; }
.lk-logo .logo { width: 76px; height: 76px; color: #fff; }
.lk-logo img.logo { width: 100%; height: 100%; object-fit: cover; }
.lk-name { margin-top: 18px; font-family: 'Amiri', Georgia, serif; font-weight: 700; font-size: calc(62px * var(--fs)); line-height: 1.1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-addr { font-size: 22px; opacity: .72; margin-top: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-clock { margin-top: 26px; display: flex; align-items: baseline; line-height: 1; color: #1E2533; }
.lk-clock .hm, .lk-clock .ss { font-size: calc(150px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; }
.lk-pill { margin-top: 24px; position: relative; }
.lk-low { left: 0; right: 0; top: 1290px; bottom: 72px; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), var(--deep)); color: #fff; }
.lk-date { position: relative; height: 82px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(0, 0, 0, .28); white-space: nowrap; }
.lk-date .greg { font-weight: 700; }
.lk-grid { flex: 1; display: flex; flex-wrap: wrap; position: relative; }
.lk-grid .pr { width: 33.333%; flex-direction: column; justify-content: center; text-align: center; border-right: 2px solid rgba(255, 255, 255, .12); border-bottom: 2px solid rgba(255, 255, 255, .12); }
.lk-grid.n7 .pr, .lk-grid.n8 .pr { width: 25%; }
.lk-grid .pr-ic { display: none; }
.lk-grid .pr-tx { align-items: center; }
.lk-grid .pr-name { font-size: calc(40px * var(--fs)); }
.lk-grid .pr-time { font-size: calc(92px * var(--fs)); margin-top: 6px; }
.lk-grid.n7 .pr-name, .lk-grid.n8 .pr-name { font-size: calc(32px * var(--fs)); }
.lk-grid.n7 .pr-time, .lk-grid.n8 .pr-time { font-size: calc(70px * var(--fs)); }
.lk-grid .pr.hl { background: rgba(0, 0, 0, .3); color: var(--brass); }

/* 16. Kaca Emas */
.ke-side { left: 0; top: 0; bottom: 72px; width: 640px; }
.ke-side::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #F3D27A, #B88A2E 55%, #F0CD72); clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.ke-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 38, .9), rgba(16, 19, 30, .82)); clip-path: polygon(0 0, calc(100% - 6px) 0, calc(93% - 6px) 100%, 0 100%); }
.ke-list { position: absolute; left: 0; top: 0; bottom: 0; right: 40px; z-index: 1; display: flex; flex-direction: column; }
.ke-list .pr { flex: 1; display: grid; grid-template-columns: 72px auto; column-gap: 24px; align-content: center; justify-content: start; padding-left: 44px; border-bottom: 2px solid rgba(243, 210, 122, .26); color: #fff; }
.ke-list .pr-ic { grid-column: 1; grid-row: 1 / 4; align-self: center; }
.ke-list .pr-tx { display: contents; }
.ke-list .pr-name { grid-column: 2; grid-row: 1; }
.ke-list .pr-time { grid-column: 2; grid-row: 2; }
.ke-list .pr:last-child { border-bottom: 0; }
.ke-list .pr-ic { width: 72px; height: 72px; color: #F3D27A; }
.ke-list .pr-name { font-size: calc(38px * var(--fs)); }
.ke-list .pr-time { font-size: calc(74px * var(--fs)); color: #F3D27A; }
.ke-list .pr-sub { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; font-size: 19px; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 10px; border-radius: 6px; }
.ke-list .pr-sub.none { display: none; }
.ke-list.n7 .pr-ic, .ke-list.n8 .pr-ic { width: 58px; height: 58px; }
.ke-list.n7 .pr-time, .ke-list.n8 .pr-time { font-size: calc(54px * var(--fs)); }
.ke-list.n7 .pr-sub, .ke-list.n8 .pr-sub { font-size: 16px; margin-top: 4px; }
.ke-list.n7 .pr-name, .ke-list.n8 .pr-name { font-size: calc(26px * var(--fs)); }
.ke-list .pr.hl { background: linear-gradient(90deg, rgba(243, 210, 122, .24), rgba(243, 210, 122, 0)); }
.ke-list .pr.hl .pr-time { color: #fff; }
.ke-dial { left: 404px; top: 252px; width: 500px; height: 500px; }
.ke-dial .wd-rim { fill: #0C0D12; }
.ke-dial .wd-face { fill: #17181F; }
.ke-dial .wd-orn line { stroke: rgba(243, 210, 122, .55); }
.ke-dial .wd-th { stroke: #F3D27A; }
.ke-dial .wd-tm { stroke: rgba(243, 210, 122, .55); }
.ke-dial .wd-hs, .ke-dial .wd-pin { stroke: #F3D27A; fill: #F3D27A; }
.ke-name { right: 52px; top: 44px; max-width: 1100px; }
.ke-name .nb-tx { text-align: right; }
.ke-name .nb-name { color: #F6E3B0; }
.ke-bar { left: 560px; right: 0; bottom: 72px; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-left: 380px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--panel) 30%, var(--deep)); color: #fff; }
.ke-date { display: flex; flex-direction: column; font-size: 26px; line-height: 1.2; white-space: nowrap; min-width: 0; }
.ke-date .hijri { opacity: .9; }
.ke-date .hijri::before { display: none; }
.ke-date .greg { font-weight: 700; }
.ke-bar .cpill { position: relative; flex-shrink: 0; height: 80px; border-radius: 40px 0 0 40px; box-shadow: none; }
.ke-bar .cp-ic { width: 80px; height: 80px; }

/* 17. Panel Biru */
.pv-side { left: 0; top: 0; bottom: 72px; width: 760px; display: flex; flex-direction: column; padding: 30px 54px 26px 40px; color: #fff;
  background: linear-gradient(180deg, var(--panel), var(--deep));
  -webkit-mask: radial-gradient(circle at 100% 16px, transparent 11px, #000 11.5px) 0 0 / 100% 32px repeat-y;
          mask: radial-gradient(circle at 100% 16px, transparent 11px, #000 11.5px) 0 0 / 100% 32px repeat-y; }
.pv-clock { display: flex; justify-content: center; line-height: 1; }
.pv-clock .hm { font-size: calc(160px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; }
.pv-clock .ss { display: none; }
.pv-dates { text-align: center; margin-top: 8px; }
.pv-dates .greg { font-size: 32px; font-weight: 700; }
.pv-dates .hijri { font-size: 30px; opacity: .92; margin-top: 4px; }
.pv-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin-top: 16px; }
.pv-list .pr { gap: 22px; padding: 10px 20px; border-radius: 14px; }
.pv-list .pr-ic { width: 52px; height: 52px; }
.pv-list .pr-tx { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.pv-list .pr-name { font-size: calc(36px * var(--fs)); font-weight: 600; letter-spacing: .01em; }
.pv-list .pr-time { font-size: calc(66px * var(--fs)); }
.pv-list .pr-sub { width: 120px; flex-shrink: 0; text-align: center; font-size: 28px; font-weight: 700; line-height: 1.05; }
.pv-list .pr-sub[data-k]::before { display: block; font-size: 16px; font-weight: 600; opacity: .8; }
.pv-list.n7 .pr, .pv-list.n8 .pr { padding: 6px 20px; }
.pv-list.n7 .pr-time, .pv-list.n8 .pr-time { font-size: calc(54px * var(--fs)); }
.pv-list.n7 .pr-name, .pv-list.n8 .pr-name { font-size: calc(30px * var(--fs)); }
.pv-list .pr.hl { background: rgba(0, 0, 0, .3); color: var(--brass); }
.pv-name { right: 52px; top: 40px; max-width: 1040px; }
.pv-name .nb-tx { text-align: right; }
.pv-pill { right: 52px; bottom: 108px; }
/* Palet terang (Kapur) pada template berlatar foto: panel memakai hijau tua agar teks putih tetap terbaca. */
.theme-kapur.tpl-jamdinding, .theme-kapur.tpl-pitabawah, .theme-kapur.tpl-lengkung, .theme-kapur.tpl-kacaemas, .theme-kapur.tpl-panelbiru { --panel: #1E6B5C; --deep: #134A3F; --brass: #F6D57A; }

/* ---------- Bahasa layar Arab ----------
   Tata letak tidak dicerminkan (jam, kartu dan kolom tetap di tempatnya); yang diatur hanya arah baca tiap baris teks:
   baris yang diawali huruf Arab dibaca dari kanan, baris angka dan huruf Latin tetap dari kiri. */
#stage.lang-ar, #stage.lang-ar * { unicode-bidi: -webkit-plaintext; unicode-bidi: plaintext; }
/* Jarak antarhuruf memutus sambungan huruf Arab, jadi dimatikan untuk teks (bukan untuk angka jam). */
#stage.lang-ar *:not(.tnum) { letter-spacing: 0 !important; }
