/* ============================================================
   JamSholatku — add-on: 15 layout TV + video YouTube
   - Kanvas tetap 1280×720 (rasio 16:9), diskalakan oleh tv-layout.js
     (transform: scale) → proporsi sama di TV 720p/1080p/4K.
   - Palet mengikuti arsip "Layout+Tv+Masjid+Video"; ukuran dinaikkan dari
     preview 640×360 agar terbaca dari jauh (aturan asal: jam besar,
     jadwal ≥90px, teks agenda ≥24px pada TV 1080p).
   - Hanya aktif bila #layoutScreen tampil (layout > 0); gaya Klasik/iOS
     di tv.css & tv-ios.css tidak tersentuh.
   ============================================================ */

/* ---------- wadah (area letterbox di luar rasio 16:9) ---------- */
#layoutScreen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 5;                        /* di bawah #gearBtn (40) & #settings (100) */
  background: #eef1f3;
}
#layoutScreen.l5,
#layoutScreen.l10 { background: #000; }
#layoutScreen.l11 { background: #0e2a1e; }
#layoutScreen.l15 { background: #0b1226; }

/* ---------- kanvas ---------- */
.ly-c {
  --ly-bg: #eef1f3;
  --ly-card: #ffffff;
  --ly-ink: #17211c;
  --ly-muted: #66706b;
  --ly-line: #dce3df;
  --ly-soft: #f3f6f4;
  --ly-green: #0e7a4a;
  --ly-green-dark: #0a5c38;
  --ly-green-soft: #e6f4ec;
  --ly-orange: #f07d12;
  --ly-orange-soft: #fff0df;
  --ly-blue: #1d6fd1;
  --ly-blue-soft: #e8f1fc;
  --ly-gold: #f2b705;

  /* kedalaman & motion (Fase C) */
  --ly-sh-1: 0 1px 2px rgba(16, 35, 27, .06), 0 2px 8px rgba(16, 35, 27, .06);
  --ly-sh-2: 0 4px 14px rgba(16, 35, 27, .10), 0 12px 32px rgba(16, 35, 27, .08);
  --ly-r: 12px;
  --ly-r-lg: 16px;
  --ly-dur: 320ms;

  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  /* latar: warna + tekstur pola titik halus + kilau sudut (bukan polos) */
  background-color: var(--ly-bg);
  background-image:
    radial-gradient(900px 480px at 88% -12%, rgba(14, 122, 74, .10), transparent 62%),
    radial-gradient(rgba(23, 33, 28, .055) 1px, transparent 1.4px);
  background-size: auto, 26px 26px;
  color: var(--ly-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

/* ---------- baris atas ---------- */
.ly-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ly-line);
}
.ly-idn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ly-logo {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 8px; background: var(--ly-green); color: #fff;
  display: grid; place-items: center; font-size: 20px;
}
.ly-idtx { min-width: 0; }
.ly-name {
  font-size: 21px; font-weight: 800; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ly-sub { font-size: 13px; color: var(--ly-muted); }
.ly-dates { text-align: right; flex: 0 0 auto; }
.ly-hijri { font-size: 16px; font-weight: 800; color: var(--ly-green); }
.ly-greg { font-size: 14px; color: var(--ly-muted); }

/* ---------- kerangka grid ---------- */
.ly-body { flex: 1 1 auto; min-height: 0; display: grid; gap: 10px; }
.ly-band { min-height: 0; display: grid; gap: 10px; }
.ly-stack { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; overflow: hidden; }
.ly-stack.center { justify-content: center; }
.ly-body2 { min-height: 0; display: grid; gap: 10px; }
.cols-58-42 { grid-template-columns: 58fr 42fr; }
.cols-45-55 { grid-template-columns: 45fr 55fr; }
.cols-30-40-30 { grid-template-columns: 30fr 40fr 30fr; }
.cols-55-45 { grid-template-columns: 55fr 45fr; }
.cols-32-68 { grid-template-columns: 32fr 68fr; }
.cols-70-30 { grid-template-columns: 70fr 30fr; }
.cols-60-40 { grid-template-columns: 60fr 40fr; }
.cols-38-62 { grid-template-columns: 38fr 62fr; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.rows-65-35 { grid-template-columns: 1fr; grid-template-rows: 65fr 35fr; }
.grid2x2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ly-cap { font-size: 13px; color: var(--ly-muted); text-align: center; }

/* ---------- blok jam + countdown ---------- */
.ly-clockbox {
  background: var(--ly-card);
  border-radius: var(--ly-r);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  flex: 0 1 auto;
  box-shadow: var(--ly-sh-1);
}
.ly-clockbox.center { align-items: center; text-align: center; }
.ly-clockbox.center .ly-cbtop { width: 100%; }
.ly-cbtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ly-daybadge {
  background: var(--ly-blue-soft); color: var(--ly-blue);
  font-size: 13px; font-weight: 800; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 6px; text-transform: uppercase;
}
.ly-day { text-transform: uppercase; }
.ly-tz { font-size: 12.5px; font-weight: 600; color: var(--ly-muted); }
.ly-hm {
  font-size: 64px; font-weight: 900; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.ly-sec { color: var(--ly-green); font-weight: 800; font-variant-numeric: tabular-nums; }
.ly-hm .ly-sec { font-size: .66em; }
.ly-cd { background: var(--ly-orange-soft); border-radius: 8px; padding: 8px 12px; }
.ly-cd-label {
  font-size: 13px; font-weight: 800; color: var(--ly-orange);
  text-transform: uppercase; letter-spacing: .05em;
}
.ly-cd-time {
  font-size: 38px; font-weight: 900; line-height: 1.06; color: var(--ly-orange);
  font-variant-numeric: tabular-nums;
}
.ly-cdcard { flex: 0 0 auto; }
.ly-dayclock { font-size: 14px; font-weight: 700; color: var(--ly-muted); }

/* ---------- kartu umum ---------- */
.ly-card {
  background: var(--ly-card);
  border-radius: var(--ly-r);
  padding: 8px 10px;
  min-height: 0;
  box-shadow: var(--ly-sh-1);
  position: relative;
  overflow: hidden;
}
/* aksen gradasi tipis di tepi atas kartu (Fase C) */
.ly-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ly-green), var(--ly-gold));
  opacity: .85;
}
.ly-ct {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .05em; margin-bottom: 6px;
  padding-top: 3px;                               /* ruang utk aksen atas */
}
.ly-chip {
  background: var(--ly-blue-soft); color: var(--ly-blue);
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
}

/* ---------- jadwal: varian vertikal ---------- */
.ly-pv { display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; }
.ly-pv-rows { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ly-pv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex: 1 1 auto; min-height: 28px; overflow: hidden;
  background: var(--ly-soft); border-radius: 8px; padding: 4px 10px;
  font-size: 15.5px; font-weight: 600;
  transition: background-color var(--ly-dur) ease, color var(--ly-dur) ease,
              transform var(--ly-dur) ease;
}
.ly-pv-row .t { font-size: 16.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ly-pv-row.active {
  background: linear-gradient(135deg, var(--ly-green), var(--ly-green-dark));
  color: #fff;
  transform: translateX(3px);                     /* baris aktif sedikit menonjol */
  box-shadow: var(--ly-sh-1);
}

/* ---------- jadwal: varian horizontal ---------- */
.ly-ph { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 0 0 auto; }
.ly-ph-cell {
  background: var(--ly-card); border: 1px solid var(--ly-line);
  border-radius: 8px; text-align: center; padding: 6px 2px; min-width: 0; overflow: hidden;
  box-shadow: var(--ly-sh-1);
  transition: background-color var(--ly-dur) ease, border-color var(--ly-dur) ease,
              color var(--ly-dur) ease, transform var(--ly-dur) ease;
}
.ly-ph-cell .n {
  font-size: 13px; font-weight: 600; color: var(--ly-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ly-ph-cell .t { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ly-ph-cell.active {
  background: linear-gradient(135deg, var(--ly-green), var(--ly-green-dark));
  border-color: var(--ly-green); color: #fff;
  transform: translateY(-2px);                    /* sel aktif terangkat */
  box-shadow: var(--ly-sh-2);
}
.ly-ph-cell.active .n { color: rgba(255, 255, 255, .88); }

/* ---------- jadwal: baris inline (mode overlay) ---------- */
.ly-pr { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 14px; }
.ly-pr span { color: var(--ly-muted); white-space: nowrap; }
.ly-pr b { font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 5px; }
.ly-pr span.active { color: var(--ly-orange); font-weight: 800; }

/* ---------- agenda kajian ---------- */
.ly-agenda { display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; }
.ly-ag-list { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ly-ag-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--ly-soft); border-radius: 8px; padding: 5px 8px; min-width: 0;
  animation: lyIn var(--ly-dur) ease both;         /* muncul halus saat rotasi halaman */
}
@keyframes lyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ly-ag-item.today {
  background: linear-gradient(135deg, var(--ly-green-soft), transparent 90%);
  box-shadow: inset 0 0 0 1px var(--ly-green);
}
.ly-ag-date {
  flex: 0 0 auto; background: var(--ly-green); color: #fff;
  font-size: 12px; font-weight: 800; line-height: 1.3;
  padding: 4px 7px; border-radius: 6px; text-align: center;
}
.ly-ag-txt { min-width: 0; }
.ly-ag-title { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-ag-spk { font-size: 13px; color: var(--ly-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-ag-empty { font-size: 14px; color: var(--ly-muted); }

/* ---------- pengumuman ---------- */
.ly-ann {
  flex: 0 0 auto; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  background: var(--ly-card); border-left: 4px solid var(--ly-gold);
  border-radius: var(--ly-r); padding: 6px 14px; min-height: 44px;
  box-shadow: var(--ly-sh-1);
}
.ly-ann-t { flex: 0 0 auto; font-size: 15px; font-weight: 800; color: var(--ly-gold); letter-spacing: .05em; }
.ly-ann-b { flex: 1 1 auto; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-ann img { height: 48px; max-width: 45%; border-radius: 5px; object-fit: cover; }

/* ---------- running text ---------- */
.ly-ticker {
  flex: 0 0 auto; min-height: 48px;
  display: flex; background: #1d2b24; border-radius: var(--ly-r); overflow: hidden;
  box-shadow: var(--ly-sh-1);
}
.ly-ticker-label {
  flex: 0 0 auto; display: grid; place-items: center; padding: 0 16px;
  background: var(--ly-orange); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .06em;
}
.ly-ticker-vp { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.ly-ticker-move {
  white-space: nowrap; color: #fff; font-size: 19px; font-weight: 700;
  animation: ly-tk linear infinite;
}
@keyframes ly-tk {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ---------- video YouTube / placeholder ---------- */
.ly-video {
  position: relative;
  background: #101a24;
  border-radius: var(--ly-r);
  overflow: hidden;
  box-shadow: var(--ly-sh-1);
}
.ly-video.ar { aspect-ratio: 16 / 9; width: 100%; flex: 0 0 auto; }
.ly-video.fill { flex: 1 1 auto; width: 100%; min-height: 0; }
.ly-video.p916 { aspect-ratio: 9 / 16; height: 100%; width: auto; flex: 0 0 auto; }
.ly-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ly-vph {
  position: absolute; inset: 0; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 300px at 78% 12%, rgba(251, 191, 36, .35), transparent 60%),
    linear-gradient(135deg, #0b2b21 0%, #14523c 42%, #0e7a4a 78%, #f07d12 130%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 10px;
}
/* sapuan cahaya bergerak pelan — kesan sinematik */
.ly-vph::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);
  animation: vphSheen 7s ease-in-out infinite;
}
@keyframes vphSheen {
  0%, 100% { transform: translateX(-30%); }
  50%      { transform: translateX(30%); }
}
.ly-vb-row { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 1; }
.ly-vb {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px;
}
.ly-vb.dim { background: rgba(255, 255, 255, .22); }
.ly-vb .dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.ly-vph-c { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ly-play {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ly-green);
  display: grid; place-items: center; font-size: 17px; padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.ly-vph-t { font-size: 15px; font-weight: 800; line-height: 1.2; }
.ly-vph-s { font-size: 12px; color: rgba(255, 255, 255, .85); }
.ly-vprog {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px;
  background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; z-index: 1;
}
.ly-vprog i { display: block; width: 40%; height: 100%; background: #fff; border-radius: 999px; }
.ly-video.fill .ly-play { width: 58px; height: 58px; font-size: 22px; }
.ly-video.fill .ly-vph-t { font-size: 18px; }
.ly-video.p916 .ly-vph-t { font-size: 13px; }

/* ---------- pembungkus video khusus layout ---------- */
.ly-videofull { flex: 0 0 262px; min-height: 0; display: flex; }
.ly-topbarcard {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ly-card); border-radius: var(--ly-r); padding: 7px 14px;
  font-size: 15.5px; font-weight: 700;
  box-shadow: var(--ly-sh-1);
}
.ly-topbarcard .cd {
  color: var(--ly-orange); font-weight: 800; text-transform: uppercase;
  font-size: 13.5px; letter-spacing: .04em;
}
.ly-topbarcard .cd .ly-cd-time { font-size: 18px; margin-left: 8px; }
.ly-portrait { display: flex; justify-content: center; min-height: 0; }

/* ---------- video PIP (layout 4 & 11) ---------- */
.ly-pip {
  position: absolute; right: 12px; bottom: 104px; width: 32%;
  border: 3px solid rgba(255, 255, 255, .9); border-radius: var(--ly-r-lg);
  overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 3;
  background: #000;
}
.ly-pip-close {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.ly-canvas.pip-off .ly-pip, .ly-c.pip-off .ly-pip { display: none; }

/* ---------- overlay fullscreen (layout 5 & 10) ---------- */
.c5, .c10 { padding: 0; gap: 0; }
/* wajib flex: .ly-video.fill tingginya dari flex — tanpa ini tinggi = 0
   (anak absolute di parent non-flex tidak membentuk tinggi) */
.ly-full { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ly-blurbox { filter: blur(3px) brightness(.55); }
.ly-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); z-index: 1; }
.ly-ov-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent);
  color: #fff;
}
.ly-ov-name { font-size: 19px; font-weight: 800; }
.ly-ov-date { font-size: 14px; color: rgba(255, 255, 255, .85); }
.ly-ov-r { text-align: right; }
.ly-ov-clock { font-size: 36px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ly-ov-cd { margin-top: 5px; font-size: 14px; }
.ly-ov-cd .ly-cd-label { color: #f59e0b; margin-right: 6px; }
.ly-ov-cd .ly-cd-time { display: inline; font-size: 24px; }
.ly-ov-bottom {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
}
.ly-bottomzone {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px;
}
.ly-ov-card {
  background: #fff; color: #17211c; border-radius: var(--ly-r-lg); padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 8px;
  /* subtree kartu selalu gaya terang (latar video gelap) */
  --ly-card: #ffffff; --ly-soft: #f3f6f4; --ly-line: #dce3df;
  --ly-ink: #17211c; --ly-muted: #66706b; --ly-green: #0e7a4a;
  --ly-green-soft: #e6f4ec; --ly-orange: #f07d12; --ly-orange-soft: #fff0df;
  --ly-blue: #1d6fd1; --ly-blue-soft: #e8f1fc;
}
.ly-ov-cardrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ly-cardday { font-size: 13.5px; font-weight: 800; color: var(--ly-blue); letter-spacing: .05em; }
.ly-ov-card .ly-cd { text-align: right; }

/* ---------- mode adzan (layout 11) ---------- */
.c11 {
  --ly-bg: #06231a;
  --ly-card: rgba(255, 255, 255, .08);
  --ly-ink: #eef7f2;
  --ly-muted: rgba(238, 247, 242, .72);
  --ly-line: rgba(255, 255, 255, .16);
  --ly-soft: rgba(255, 255, 255, .10);
  --ly-green: #34d399;
  --ly-green-soft: rgba(52, 211, 153, .22);
  --ly-orange: #e5a93c;
  --ly-orange-soft: rgba(229, 169, 60, .18);
  --ly-blue-soft: rgba(255, 255, 255, .12);
  --ly-blue: #a7f3d0;
  position: relative;
}
.ly-topbar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 6px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.c11 .ly-ov-name { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: .02em; }
.c11 .ly-ov-date { font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.c11 .ly-ov-date span:last-child { color: #e5a93c; }

.ly-center11 {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 0 24px;
}
.ly-pill {
  background: linear-gradient(135deg, rgba(229, 169, 60, .22), rgba(229, 169, 60, .08));
  border: 1px solid rgba(229, 169, 60, .5); color: #fbbf24;
  font-size: 13.5px; font-weight: 800; padding: 6px 24px; border-radius: 999px;
  letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(229, 169, 60, .18);
}
.ly-cd-time.ly-giant {
  font-size: 126px; font-weight: 900; line-height: .95;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: #e5a93c;
  background: linear-gradient(180deg, #ffe599 0%, #e5a93c 60%, #b87b1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(229, 169, 60, .3));
}
.ly-cd-time.ly-giant.iqamah {
  background: linear-gradient(180deg, #a7f3d0 0%, #10b981 60%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(16, 185, 129, .35));
}
.ly-sub11 {
  font-size: 14.5px; color: rgba(255, 255, 255, .72);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .28); padding: 4px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.ly-sub11 b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.ly-blink {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid rgba(229, 169, 60, .4);
  background: rgba(6, 35, 26, .75);
  backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35), 0 0 16px rgba(229, 169, 60, .15);
  animation: ly-blink 2.4s ease-in-out infinite;
}
@keyframes ly-blink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.ly-blink-tag, .ly-blink p:first-child {
  font-size: 12.5px; font-weight: 800; letter-spacing: .15em; color: #fbbf24;
  text-transform: uppercase; margin: 0;
}
.ly-blink-n { font-size: 22px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; margin: 0; }
.ly-ann, .ly-topbar { position: relative; z-index: 2; }

/* PIP disembunyikan total di layout 11 (fokus adzan & countdown) */
.c11 .ly-pip {
  display: none !important;
}

/* Jam sholat di layout 11: RATA TENGAH, SATU BARIS SEJAJAR (TIDAK BOLEH TURUN KE BAWAH) */
.c11 .ly-pr {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap !important;
  gap: 10px; width: auto; max-width: 100%; margin: 10px auto 0;
  padding: 8px 20px; background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px;
  backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.c11 .ly-pr span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .72);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto;
}
.c11 .ly-pr span b { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; margin-left: 2px; }
.c11 .ly-pr span.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, .32), rgba(229, 169, 60, .12));
  border: 1px solid rgba(229, 169, 60, .6); color: #fbbf24;
  box-shadow: 0 0 14px rgba(229, 169, 60, .28); transform: translateY(-2px);
}
.c11 .ly-pr span.active b { color: #fef08a; }

/* Ticker & pengumuman harmonis dgn tema */
.c11 .ly-ticker { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); }
.c11 .ly-ticker-label { background: linear-gradient(135deg, #e5a93c, #b87b1c); color: #06231a; font-weight: 800; }
.c11 .ly-ann { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid #e5a93c; }
.c11 .ly-ann-t { color: #fbbf24; }

/* ---------- jam raksasa (layout 14) ---------- */
.ly-giantband {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 10px;
  background: var(--ly-card); border-radius: var(--ly-r);
  box-shadow: var(--ly-sh-1);
}
.ly-dateLine {
  font-size: 15px; font-weight: 800; letter-spacing: .1em;
  color: var(--ly-blue); text-transform: uppercase;
}
.ly-cd-inline { font-size: 15.5px; font-weight: 800; color: var(--ly-orange); text-transform: uppercase; letter-spacing: .04em; }
.ly-cd-inline .ly-cd-time { display: inline; font-size: 26px; }

/* ---------- penyesuaian per layout ---------- */
.c1 .ly-hm, .c6 .ly-hm, .c7 .ly-hm, .c10 .ly-hm { font-size: 60px; }
.c2 .ly-hm { font-size: 56px; }
.c3 .ly-hm { font-size: 52px; }
.c14 .ly-body { flex: 0 0 auto; }
.c14 .ly-videofull { flex: 1 1 auto; }
.c14 .ly-hm { font-size: 96px; }
.c14 .ly-giantband { gap: 4px; padding: 8px; }

/* kuadran kanan-bawah layout 13 sempit → baris jadwal & agenda dikompakkan */
.c13 .ly-hm { font-size: 52px; }
.c13 .ly-clockbox { padding: 10px 12px; }
.c13 .ly-pv { padding: 6px 8px; }
.c13 .ly-ct { margin-bottom: 4px; }
.c13 .ly-pv-row { min-height: 20px; font-size: 13.5px; padding: 2px 8px; }
.c13 .ly-pv-row .t { font-size: 14.5px; }
.c13 .ly-agenda { padding: 6px 8px; }
.c13 .ly-ag-item { padding: 3px 6px; }
.c13 .ly-ag-date { font-size: 10.5px; padding: 2px 4px; }
.c13 .ly-ag-title { font-size: 13.5px; }

/* mode malam (layout 15) — navy gelap, kontras tinggi, video diredupkan */
.c15 {
  --ly-bg: #0b1226;
  --ly-card: rgba(255, 255, 255, .10);
  --ly-ink: #eef2f7;
  --ly-muted: rgba(238, 242, 247, .68);
  --ly-line: rgba(255, 255, 255, .15);
  --ly-soft: rgba(255, 255, 255, .10);
  --ly-green: #34d399;
  --ly-green-soft: rgba(52, 211, 153, .25);
  --ly-orange: #fbbf24;
  --ly-orange-soft: rgba(251, 191, 36, .16);
  --ly-blue: #7dd3fc;
  --ly-blue-soft: rgba(125, 211, 252, .16);
  --ly-gold: #fbbf24;
}
.c15 .ly-video { filter: brightness(.65); }
.c15 .ly-hm { font-size: 54px; }
.c15 .ly-clockbox { padding: 10px 12px; }

/* mode kajian / modern (5 & 10) — teks putih di atas video */
.c5, .c10 {
  --ly-ink: #ffffff;
  --ly-muted: rgba(255, 255, 255, .78);
  --ly-card: rgba(0, 0, 0, .5);
  --ly-gold: #fbbf24;
}
.c5 .ly-ann, .c10 .ly-ann { background: rgba(0, 0, 0, .55); }
.c5 .ly-ann-b, .c10 .ly-ann-b { color: #fff; }

/* countdown berwarna hijau saat fase iqamah — rule terakhir supaya menang */
.ly-cd-time.iqamah { color: var(--ly-green); }

/* ---------- Fase C: tekstur latar & depth utk tema gelap (11 & 15) ----------
   Pola titik bawaan pakai tinta gelap → tak terlihat di latar gelap;
   ganti ke putih + kilau hijau tipis supaya latar tidak terlihat polos.
   Bayangan kartu juga perlu versi gelap (bayangan terang tak terlihat). */
.c11, .c15 {
  background-image:
    radial-gradient(900px 480px at 88% -12%, rgba(52, 211, 153, .16), transparent 62%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px);
  background-size: auto, 26px 26px;
}
.c11 .ly-card, .c11 .ly-clockbox, .c11 .ly-giantband, .c11 .ly-ticker,
.c15 .ly-card, .c15 .ly-clockbox, .c15 .ly-giantband, .c15 .ly-ticker {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

/* ---------- Fase C: hormati preferensi kurangi animasi ----------
   Hanya animasi dekoratif yang dimatikan — running text, jam, dan
   hitung mundur tetap jalan (fungsi informasi, bukan hiasan). */
@media (prefers-reduced-motion: reduce) {
  .ly-ag-item, .ly-blink, .ly-vph::after { animation: none !important; }
  .ly-pv-row.active, .ly-ph-cell.active { transform: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---------- HP / tampilan potret: kanvas diskalakan penuh lebar ---------- */
@media (max-width: 700px), (orientation: portrait) {
  #layoutScreen { overflow: auto; }
}
