/* 1rem = 1/96 lebar layar → tampilan sama di TV 720p/1080p. Tanpa animasi/bayangan berat (box RAM 1 GB). */
:root { --bg: #070c0a; --panel: #16221d; --panel2: #1e2e27; --text: #eef3f0; --muted: #9db3a8; --accent: #2fbf71; --gold: #e9c46a; }
* { box-sizing: border-box; }
html { font-size: calc(100vw / 96); }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: default; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 2rem 3.5rem 1rem; }
.brand { font-size: 2.6rem; font-weight: 700; color: var(--accent); }
.hbtn { cursor: pointer; font-size: 1.7rem; font-weight: 600; color: var(--text); background: var(--panel); border-radius: .8rem;
  padding: .6rem 1.2rem; margin-right: 1.2rem; vertical-align: middle; border: .3rem solid transparent; }
.hbtn:hover, .hbtn.focus { border-color: var(--accent); }
.logo { height: 6.5rem; display: block; }
.clock { font-size: 2.6rem; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Beranda: hero + ikon + baris thumbnail (gaya Smart TV) */
.hscroll { position: absolute; inset: 0; overflow: hidden; }
.hcontent { position: relative; padding-bottom: 20rem; transition: transform .25s ease-out; will-change: transform; }
.hero { position: relative; height: 36rem; overflow: hidden; }
.hslides, .hl, .hshade { position: absolute; inset: 0; }
.hl { opacity: 0; transition: opacity .9s ease; }
.hl.on { opacity: 1; }
.hl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl.on img { animation: kb 14s ease-out forwards; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hshade { background:
  linear-gradient(90deg, rgba(7,12,10,.96) 0%, rgba(7,12,10,.78) 30%, rgba(7,12,10,.15) 62%, rgba(7,12,10,0) 80%),
  linear-gradient(0deg, var(--bg) 0%, rgba(7,12,10,0) 38%),
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%); }
.htop { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 3.5rem; }
.htop { align-items: flex-start; }
.htop .logo { height: 5.6rem; }
.ghuraba { margin-top: .7rem; max-width: 30rem; text-shadow: 0 .1rem .4rem rgba(0,0,0,.6); }
.ghuraba .ar { font-family: Amiri, "Traditional Arabic", serif; font-weight: 700; font-size: 1.4rem; line-height: 1.45; color: var(--gold); text-align: left; }
.ghuraba .tr { font-size: .9rem; line-height: 1.4; color: #d6e2dc; }
.ghuraba .tr b { color: var(--muted); font-weight: 600; white-space: nowrap; }
.hright { display: flex; align-items: center; gap: 2rem; }
.hclock { text-align: right; }
.hclock .clock { font-size: 3.2rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.05rem; }
.hdate { font-size: 1.3rem; color: var(--muted); margin-top: .4rem; }
.hsholat { display: flex; align-items: center; background: rgba(10,18,15,.55); border: .1rem solid rgba(255,255,255,.12);
  border-radius: 1.6rem; padding: .4rem .5rem .4rem 1.3rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hkota { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; color: var(--muted); margin-right: .8rem; max-width: 13rem; white-space: nowrap; }
.hkota span { overflow: hidden; text-overflow: ellipsis; }
.hkota .ri { color: var(--accent); }
.ptimes { display: flex; gap: .2rem; }
.pt { text-align: center; padding: .5rem 1rem; border-radius: 1.1rem; min-width: 7rem; }
.pt .n { font-size: 1.15rem; color: var(--muted); }
.pt .v { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt .c { font-size: 1.05rem; color: var(--gold); }
.pt.next { background: linear-gradient(135deg, rgba(47,191,113,.35), rgba(47,191,113,.12)); }
.pt.next .n, .pt.next .v { color: #7ff0b0; }
.pt-empty { padding: .8rem 1rem; font-size: 1.3rem; color: var(--muted); }

.hinfo { position: absolute; left: 3.5rem; bottom: 4rem; width: 50rem; }
.hinfo.in > * { animation: up .6s ease both; }
.hinfo.in > :nth-child(2) { animation-delay: .08s; }
.hinfo.in > :nth-child(3) { animation-delay: .16s; }
.hinfo.in > :nth-child(4) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
.hbadge { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: .15rem; }
.hbadge img { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: .15rem solid var(--gold); }
.hbadge .ri { width: 2rem; height: 2rem; }
.htitle { font-size: 2.7rem; font-weight: 800; line-height: 1.12; margin: .6rem 0 .5rem; letter-spacing: -.05rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 .2rem 1.2rem rgba(0,0,0,.5); }
.hsub { font-size: 1.45rem; color: #c9d8d0; margin-bottom: 1.3rem; }
.hbtn2 { display: inline-flex; align-items: center; gap: .8rem; padding: .9rem 2rem .9rem 1.6rem; border-radius: 99rem; cursor: pointer;
  font-size: 1.6rem; font-weight: 700; background: rgba(255,255,255,.16); color: var(--text); border: .2rem solid rgba(255,255,255,.25);
  transition: background .2s, color .2s, transform .2s; }
.hbtn2 .ri { width: 2rem; height: 2rem; }
.hfocus .hbtn2 { background: #fff; color: #0a120e; border-color: #fff; transform: scale(1.06); }
.hdots { position: absolute; left: 3.5rem; bottom: 2.4rem; display: flex; gap: .6rem; }
.hdots i { width: .8rem; height: .8rem; border-radius: .4rem; background: rgba(255,255,255,.3); transition: width .4s, background .4s; }
.hdots i.on { width: 2.8rem; background: var(--accent); }

.track { overflow: hidden; padding: 1.6rem 0 1.8rem; }
.rail { position: relative; display: flex; gap: 1.6rem; width: max-content; padding: 0 3.5rem;
  transition: transform .2s ease-out; will-change: transform; }
.apps { margin-top: -1.4rem; position: relative; }
.apps .rail { gap: 2rem; }
/* baris yang tidak aktif diredupkan supaya jelas sedang di baris mana */
.apps, .vrow { opacity: .4; transition: opacity .3s; }
.apps.act, .vrow.act { opacity: 1; }
.hfocus ~ .apps { opacity: .8; }
.app { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .7rem; cursor: pointer; }
.tile { width: 9rem; height: 9rem; border-radius: 2rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #1d2c26, #121b17); border: .3rem solid rgba(255,255,255,.06); color: var(--muted);
  transition: transform .2s ease, border-color .2s, box-shadow .2s; overflow: hidden; }
.tile .ri { width: 3.6rem; height: 3.6rem; }
.app-ch .tile { border-radius: 50%; padding: .35rem; background: linear-gradient(145deg, var(--accent), var(--gold)); border: 0; }
.app-ch .tile img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #000; }
.app-ch .tile b { font-size: 3.4rem; color: #fff; }
.app-latest .tile { background: linear-gradient(145deg, #2fbf71, #158a4c); color: #fff; }
.app-jadwal .tile { width: 25rem; white-space: nowrap; justify-content: flex-start; gap: 1.2rem; padding: 0 1.8rem; color: #fff;
  background: linear-gradient(135deg, #b8862f, #e9c46a); }
.app-jadwal .tile .ri { width: 4rem; height: 4rem; }
.tj1 { font-size: 1.9rem; font-weight: 800; color: #1d1405; }
.tj2 { font-size: 1.3rem; font-weight: 600; color: rgba(29,20,5,.7); margin-top: .2rem; }
.lbl { font-size: 1.3rem; color: var(--muted); max-width: 11rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.app.on .tile { transform: scale(1.12); border-color: var(--accent); box-shadow: 0 0 0 .4rem var(--accent), 0 0 2.4rem rgba(47,191,113,.55), 0 .8rem 2.4rem rgba(0,0,0,.6); }
.app-ch.on .tile { box-shadow: 0 0 0 .45rem #fff, 0 0 0 .9rem var(--accent), 0 .8rem 2.4rem rgba(0,0,0,.6); }
.app.on .lbl { color: #7ff0b0; }

.vrow { padding-top: .4rem; }
.rtitle { display: flex; align-items: center; gap: .8rem; padding: 0 3.5rem; font-size: 1.9rem; font-weight: 700; position: relative; transition: color .3s; }
.act .rtitle { color: #7ff0b0; }
.act .rtitle::before { content: ''; position: absolute; left: 2.2rem; top: .3rem; bottom: .3rem; width: .45rem; border-radius: .3rem; background: var(--accent); }
.rtitle img { width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.vcard { flex: 0 0 auto; width: 20rem; cursor: pointer; }
.vcard .thumb { border-radius: 1.2rem; overflow: hidden; border: .3rem solid transparent; transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.vcard .left { position: absolute; right: .6rem; bottom: 1rem; background: rgba(0,0,0,.75); font-size: 1.1rem; padding: .2rem .6rem; border-radius: .4rem; }
.vt { font-size: 1.45rem; font-weight: 600; line-height: 1.3; margin-top: .9rem; height: 3.8rem; color: #cfdcd5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vm { font-size: 1.2rem; color: var(--muted); margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard.on .thumb { transform: scale(1.05); border-color: #fff; box-shadow: 0 1rem 2.6rem rgba(0,0,0,.7); }
.vcard.on .vt { color: #fff; }

.bar { height: .5rem; background: rgba(255,255,255,.2); border-radius: .3rem; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; width: 0; background: #e53935; }
.focus { border-color: var(--accent) !important; background: var(--panel2) !important; }
.ri { width: 1.2em; height: 1.2em; fill: currentColor; flex: 0 0 auto; }
.hbtn, .obtn { display: inline-flex; align-items: center; gap: .6rem; }

/* Daftar */
.listbody { flex: 1; display: flex; min-height: 0; padding: 0 3.5rem 2rem 2rem; gap: 2rem; }
.side { width: 23rem; flex: 0 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.tab { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.4rem; border-radius: .9rem; font-size: 1.75rem; color: var(--muted); border: .35rem solid transparent; }
.tab img { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: 0 0 auto; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.sel { color: var(--text); background: var(--panel); font-weight: 600; }
.gridwrap { flex: 1; overflow: hidden; position: relative; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding: .6rem; }
.card { background: var(--panel); border-radius: 1rem; overflow: hidden; border: .35rem solid transparent; }
.card.focus { transform: scale(1.04); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; }
.thumb .done { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.75); color: var(--accent); font-size: 1.2rem; padding: .2rem .6rem; border-radius: .4rem; }
.ct { padding: .7rem .9rem .9rem; }
.ct .t { font-size: 1.45rem; font-weight: 600; line-height: 1.3; height: 3.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct .m { font-size: 1.2rem; color: var(--muted); margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { font-size: 2rem; color: var(--muted); padding: 3rem; }

/* Pemutar */
#player { background: #000; }
#yt, #player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 6rem 3.5rem 2.5rem; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.shield { position: absolute; inset: 0; z-index: 1; }   /* klik/mouse tetap di halaman, tidak masuk iframe */
.osd { z-index: 2; }
.obtns { display: flex; gap: 1.2rem; margin-bottom: 1.4rem; }
.obtn { pointer-events: auto; cursor: pointer; background: rgba(255,255,255,.15); border-radius: .8rem; padding: .7rem 1.4rem; font-size: 1.6rem; }
.obtn:hover { background: var(--accent); }
.otitle { font-size: 2.6rem; font-weight: 700; }
.ometa { font-size: 1.6rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.otime { display: flex; align-items: center; gap: 1.4rem; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.ohint { margin-top: 1.2rem; font-size: 1.35rem; color: var(--muted); }

.msg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 70rem; text-align: center;
  background: rgba(10,18,15,.95); border: .3rem solid var(--gold); border-radius: 1.2rem; padding: 2.4rem 3.5rem; font-size: 2.2rem; z-index: 9; }

/* Jadwal + jam di atas video: sama dengan panel beranda. Tanpa blur (berat di box 1 GB saat video jalan) → latar lebih pekat. */
.pbar { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; padding: 1.8rem 3.5rem; }
/* Di kiri atas (logo channel umumnya di kanan atas video): jam di ujung kiri, lalu jadwal */
.pbar .hright { flex-direction: row-reverse; }
.pbar .hclock { text-align: left; }
.pbar .hsholat { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,18,15,.72); }
.pbar .hclock { text-shadow: 0 .1rem .8rem rgba(0,0,0,.7); }

/* Pilih kota */
.search { font-size: 1.8rem; color: var(--gold); min-width: 20rem; text-align: right; }
.klist { flex: 1; overflow: hidden; margin: 0 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: .6rem 1.2rem; align-content: start; }
.krow { font-size: 1.7rem; padding: .8rem 1.2rem; border-radius: .8rem; border: .3rem solid transparent; color: var(--muted); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow.sel { color: var(--accent); }
.krow.focus { color: var(--text); }
.khint { padding: 1.2rem 3.5rem 2rem; font-size: 1.35rem; color: var(--muted); }

/* Ganti ID masjid */
.mbox { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1rem 3.5rem; }
.mval { min-width: 36rem; text-align: center; font-size: 4rem; font-weight: 700; letter-spacing: .3rem; color: var(--gold);
  background: var(--panel); border-radius: 1.2rem; padding: 1rem 2rem; min-height: 6.6rem; }
.mval i { font-style: normal; color: var(--accent); }
.mnote { font-size: 1.5rem; color: var(--muted); margin: .8rem 0 1.4rem; }
.kbd { display: grid; grid-template-columns: repeat(10, 6.4rem); gap: .7rem; }
.kbd .k { height: 5rem; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; background: var(--panel);
  border-radius: .9rem; border: .35rem solid transparent; cursor: pointer; }
.kbd .k.wide { grid-column: span 3; font-size: 1.8rem; }
.kbd .k.ok { background: var(--panel2); color: var(--accent); }
.kbd .k.focus { border-color: var(--accent); background: var(--panel2); }

/* Hubungkan HP (QR) */
.pairbox { flex: 1; display: flex; align-items: center; gap: 6rem; padding: 0 6rem; }
.pleft { flex: 1; min-width: 0; }
.pbadge { font-size: 1.4rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .15rem; }
.pleft h1 { font-size: 3.6rem; line-height: 1.15; margin: .8rem 0 1.6rem; letter-spacing: -.05rem; }
.psteps { margin: 0 0 2rem; padding-left: 2.4rem; font-size: 1.9rem; color: #c9d8d0; }
.psteps li { margin: .6rem 0; }
.pmanual { font-size: 1.5rem; color: var(--muted); }
.pmanual b { color: var(--text); }
.pcode { font-size: 5rem; font-weight: 800; letter-spacing: 1rem; color: var(--gold); margin: .6rem 0 1.4rem; font-variant-numeric: tabular-nums; }
.pacct { font-size: 1.5rem; color: var(--muted); }
.pstat { font-size: 1.6rem; color: var(--muted); margin-top: .8rem; }
.pstat.ok { color: #7ff0b0; font-weight: 700; font-size: 2rem; }
.pqr { flex: 0 0 auto; width: 30rem; height: 30rem; background: #fff; border-radius: 2rem; padding: 1.2rem;
  box-shadow: 0 0 0 .6rem rgba(47,191,113,.35), 0 2rem 5rem rgba(0,0,0,.6); }
.pqr svg { width: 100%; height: 100%; display: block; }

/* Layar promo: gambar utuh di tengah, latar senada (navy) */
#promo { background: #0f1830; align-items: center; justify-content: center; }
#promo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.phint { position: absolute; right: 2.4rem; top: 2rem; font-size: 1.3rem; color: rgba(255,255,255,.85); background: rgba(10,18,40,.55);
  padding: .5rem 1.2rem; border-radius: 99rem; }
.app-promo .tile { padding: 0; background: #221c52; }
.hby { font-size: .95rem; font-weight: 600; letter-spacing: .1rem; text-transform: uppercase; color: rgba(238,243,240,.6); margin: .3rem 0 0 2.7rem; }
.app-promo .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Layar adzan */
.adzan { position: fixed; inset: 0; z-index: 8; background: rgba(8,14,12,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.adzan .ri { width: 6rem; height: 6rem; color: var(--accent); }
.aname { font-size: 5rem; font-weight: 700; margin-top: 1.5rem; }
.atime { font-size: 3rem; color: var(--gold); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.ahint { font-size: 1.8rem; color: var(--muted); margin-top: 3rem; }
.aaudio { width: 32rem; height: 18rem; margin-top: 2.4rem; border-radius: 1rem; overflow: hidden; background: #000; border: .2rem solid rgba(255,255,255,.12); }
.aaudio iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Video berikutnya */
.upnext { position: fixed; right: 3rem; bottom: 3rem; z-index: 7; width: 52rem; display: flex; gap: 1.4rem; align-items: center;
  background: rgba(8,14,12,.92); border: .3rem solid var(--accent); border-radius: 1.2rem; padding: 1.2rem; cursor: pointer; }
.upnext img { width: 18rem; height: 10.1rem; object-fit: cover; border-radius: .7rem; background: #000; }
.uinfo { flex: 1; min-width: 0; }
.ulabel { font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.utitle { font-size: 1.8rem; font-weight: 600; margin: .4rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uhint { font-size: 1.3rem; color: var(--muted); }
/* Kartu update aplikasi (melayang di kanan bawah beranda/daftar) */
.upd { position: fixed; right: 3rem; bottom: 3rem; z-index: 7; width: 40rem; display: flex; gap: 1.2rem; align-items: center; cursor: pointer;
  background: rgba(8,14,12,.95); border: .3rem solid var(--gold); border-radius: 1.2rem; padding: 1.2rem 1.6rem; box-shadow: 0 .6rem 2.4rem rgba(0,0,0,.5); }
.upd > .ri { width: 3.6rem; height: 3.6rem; color: var(--gold); flex: none; }
.upd .utitle { font-size: 1.6rem; -webkit-line-clamp: 3; margin: 0 0 .4rem; }
.ubar { height: .6rem; border-radius: .3rem; background: rgba(255,255,255,.15); margin-top: .8rem; overflow: hidden; }
.ubar i { display: block; height: 100%; width: 0; background: var(--gold); }
