/* Pixel Print Ambient: 10-foot TV layout. 1rem = 1/120 of the screen width (16 px on a 1920 px screen). */

@font-face { font-family: 'PPA'; font-weight: 300; font-display: swap; src: url(../fonts/inter-latin-300-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'PPA'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'PPA'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'PPA'; font-weight: 300; font-display: swap; src: url(../fonts/inter-latin-ext-300-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PPA'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PPA'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PPA'; font-weight: 300; font-display: swap; src: url(../fonts/noto-sans-arabic-arabic-300-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'PPA'; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'PPA'; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-arabic-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'PPA'; font-weight: 300; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-300-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'PPA'; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'PPA'; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'PPA'; font-weight: 300; font-display: swap; src: url(../fonts/noto-sans-gurmukhi-gurmukhi-300-normal.woff2) format('woff2');
  unicode-range: U+0A00-0A7F, U+200C-200D, U+25CC; }
@font-face { font-family: 'PPA'; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-gurmukhi-gurmukhi-400-normal.woff2) format('woff2');
  unicode-range: U+0A00-0A7F, U+200C-200D, U+25CC; }
@font-face { font-family: 'PPA'; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-gurmukhi-gurmukhi-600-normal.woff2) format('woff2');
  unicode-range: U+0A00-0A7F, U+200C-200D, U+25CC; }
/* Urdu is read in Nastaliq. */
@font-face { font-family: 'PPA Urdu'; font-weight: 400; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'PPA Urdu'; font-weight: 600; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ink: #FFFFFF;
  --soft: rgba(255, 255, 255, .78);
  --faint: rgba(255, 255, 255, .55);
  --glass: rgba(10, 14, 26, .38);
  --glass-strong: rgba(12, 16, 30, .96);
  --line: rgba(255, 255, 255, .16);
  --accent: #2F9BFF;
  --accent-2: #FF4FA3;
}

html { font-size: calc(100vw / 120); }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05070D; color: var(--ink); }
body { font-family: 'PPA', 'Noto Sans', 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; cursor: none; }
html[lang="ur"] body { font-family: 'PPA Urdu', 'PPA', 'Noto Nastaliq Urdu', sans-serif; }
[hidden] { display: none !important; }

/* ---------- photos ---------- */
#stage { position: fixed; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #1B2A4A 0%, #070A12 70%); }
#stage, .photo, .shade { top: 0; right: 0; bottom: 0; left: 0; }
.photo { position: absolute; background-size: cover; background-position: center; opacity: 0;
  transition: opacity 1.8s ease; will-change: opacity, transform; }
.photo.show { opacity: 1; }
.photo.drift { -webkit-animation: drift 70s linear forwards; animation: drift 70s linear forwards; }
@-webkit-keyframes drift { from { -webkit-transform: scale(1.02); } to { -webkit-transform: scale(1.12); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.shade { position: absolute;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 34%, rgba(0,0,0,0) 55%); }
body.night #stage { -webkit-filter: brightness(.55); filter: brightness(.55); }
body.night #hud { opacity: .8; }

/* ---------- layout (5% title-safe margins) ---------- */
#hud { position: fixed; top: 0; right: 0; bottom: 0; left: 0; padding: 3.4rem 4.6rem; display: flex; flex-direction: column;
  justify-content: space-between; transition: transform 2s ease, opacity 2s ease; }
.top, .bottom { display: flex; justify-content: space-between; }
.top { align-items: flex-start; }
.bottom { align-items: flex-end; }

.place { display: flex; align-items: center; font-size: 1.6rem; font-weight: 400; color: var(--soft);
  text-shadow: 0 .1rem .6rem rgba(0,0,0,.5); }
.place .pin { width: 1.6rem; height: 1.6rem; color: var(--ink); -webkit-margin-end: .6rem; margin-inline-end: .6rem; }
.offline { -webkit-margin-start: 1.2rem; margin-inline-start: 1.2rem; font-size: 1rem; padding: .3rem .8rem; border-radius: 99rem; background: rgba(255, 90, 90, .25); }

/* ---------- exchange rates (under the place name) ---------- */
.topleft { display: flex; flex-direction: column; }
.rates { margin-top: .9rem; font-size: 1.1rem; color: var(--soft); text-shadow: 0 .1rem .6rem rgba(0,0,0,.5); max-width: 46rem; }
.rates b { font-weight: 600; color: var(--ink); }
.rates .sep { opacity: .5; padding: 0 .55rem; }
.rates small { display: block; font-size: .78rem; color: var(--faint); margin-top: .25rem; }
.side { display: flex; flex-direction: column; align-items: stretch; }

/* ---------- prayer times ---------- */
.prayer { margin-top: 1rem; background: var(--glass); border: 1px solid var(--line); border-radius: 1.6rem; padding: 1.1rem 1.6rem 1.2rem;
  -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); }
.ptitle { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; color: var(--soft); }
.ptitle b { font-weight: 600; color: #FFD27A; -webkit-margin-start: 1rem; margin-inline-start: 1rem; }
.plist { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; justify-content: space-between; }
.plist li { display: flex; flex-direction: column; align-items: center; min-width: 4.4rem; padding: .35rem .45rem; border-radius: .8rem; }
.plist .pn { font-size: .95rem; color: var(--soft); white-space: nowrap; }
.plist .pt { font-size: 1.02rem; font-weight: 600; margin-top: .2rem; white-space: nowrap; }
.plist li.sunrise .pt { font-weight: 400; color: var(--soft); }
.plist li.next { background: rgba(255, 210, 122, .18); box-shadow: inset 0 0 0 .12rem rgba(255, 210, 122, .65); }
.plist li.next .pn, .plist li.next .pt { color: #FFE2A8; }
html[lang="ur"] .plist .pn { line-height: 1.9; }

/* ---------- occasion greeting ---------- */
.greeting { position: fixed; top: 3.2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; padding: .6rem 1.4rem .6rem .8rem;
  border-radius: 99rem; background: rgba(10, 14, 26, .55); border: 1px solid rgba(255, 210, 122, .45); font-size: 1.5rem; font-weight: 600;
  color: #FFE2A8; text-shadow: 0 .1rem .5rem rgba(0,0,0,.4); white-space: nowrap; }
.gicon { width: 2.4rem; height: 2.4rem; -webkit-margin-end: .7rem; margin-inline-end: .7rem; }
.gicon svg { width: 100%; height: 100%; display: block; }
html[lang="ur"] .greeting { line-height: 2; padding-top: .3rem; padding-bottom: .3rem; }

/* ---------- adhan ---------- */
.adhan { position: fixed; left: 50%; bottom: 8rem; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 1.2rem;
  padding: 1.1rem 2rem 1.1rem 1.3rem; border-radius: 1.6rem; background: rgba(8, 12, 24, .78); border: 1px solid rgba(255, 210, 122, .5);
  box-shadow: 0 .6rem 2.4rem rgba(0,0,0,.45); color: #FFE2A8; white-space: nowrap; animation: adhanIn .8s ease both; }
.adhan[hidden] { display: none; }
.aicon { width: 3.6rem; height: 3.6rem; flex: none; }
.aicon svg { width: 100%; height: 100%; display: block; }
.atext { display: flex; flex-direction: column; gap: .3rem; }
.atext b { font-size: 2.1rem; font-weight: 700; }
.atext small { font-size: 1.05rem; color: rgba(255, 236, 200, .75); }
html[lang="ur"] .atext { line-height: 2; }
.awave { display: flex; align-items: center; gap: .3rem; height: 2.4rem; }
.awave i { display: block; width: .35rem; height: 100%; border-radius: .2rem; background: #FFD27A; animation: adhanWave 1.1s ease-in-out infinite; }
.awave i:nth-child(2) { animation-delay: .15s; } .awave i:nth-child(3) { animation-delay: .3s; } .awave i:nth-child(4) { animation-delay: .45s; }
@keyframes adhanWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes adhanIn { from { opacity: 0; transform: translate(-50%, 1rem); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- weather ---------- */
.weather { background: var(--glass); border: 1px solid var(--line); border-radius: 1.6rem; padding: 1.4rem 1.8rem;
  -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); min-width: 30rem; }
.now { display: flex; align-items: center; }
.wicon { width: 6rem; height: 6rem; -webkit-margin-end: 1.2rem; margin-inline-end: 1.2rem; flex: none; }
.wicon svg, .dicon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .2rem .4rem rgba(0,0,0,.3)); }
.temp { font-size: 4.4rem; font-weight: 300; line-height: 1; letter-spacing: -.1rem; }
.cond { font-size: 1.45rem; margin-top: .35rem; }
.meta { font-size: 1.05rem; color: var(--faint); margin-top: .3rem; }
.days { list-style: none; margin: 1.3rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.days li { display: flex; flex-direction: column; align-items: center; min-width: 5rem; }
.dname { font-size: 1.05rem; color: var(--soft); white-space: nowrap; }
.dicon { width: 3rem; height: 3rem; margin: .35rem 0; }
.dtemp { font-size: 1.1rem; white-space: nowrap; display: flex; }
.dtemp b { font-weight: 600; }
.dtemp i { font-style: normal; color: var(--faint); -webkit-margin-start: .5rem; margin-inline-start: .5rem; }

/* ---------- clock ---------- */
.clockbox { text-shadow: 0 .2rem 1.2rem rgba(0,0,0,.45); flex: none; }
.clock { font-size: 10rem; font-weight: 300; line-height: .95; letter-spacing: -.3rem; white-space: nowrap; }
html[lang="ur"] .clock, html[lang="ar"] .clock { letter-spacing: 0; }
.ampm { font-size: 2.6rem; font-weight: 400; letter-spacing: 0; -webkit-margin-start: .8rem; margin-inline-start: .8rem; vertical-align: .4em; opacity: .85; }
.date { font-size: 2.1rem; font-weight: 400; color: var(--soft); margin-top: .6rem; }
html[lang="ur"] .date { line-height: 2; }

/* ---------- news ---------- */
.news { flex: 1 1 auto; max-width: 52rem; margin: 0 3.5rem; background: var(--glass); border: 1px solid var(--line);
  border-radius: 1.6rem; padding: 1.3rem 1.8rem 1.1rem; -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); }
.news-head { display: flex; align-items: center; font-size: 1rem; color: var(--faint); }
.badge { display: inline-block; padding: .25rem .8rem; border-radius: 99rem; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-margin-end: .9rem; margin-inline-end: .9rem; }
.headline { font-size: 1.75rem; line-height: 1.32; margin: .7rem 0 .8rem; min-height: 4.6rem; transition: opacity .45s ease, transform .45s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ur"] .headline { line-height: 2.1; min-height: 7.4rem; font-size: 1.6rem; }
.headline.out { opacity: 0; transform: translateY(.4rem); }
.dots { display: flex; }
.dots i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.3); -webkit-margin-end: .45rem; margin-inline-end: .45rem; transition: background .3s, width .3s; }
.dots i.on { background: #fff; width: 1.4rem; border-radius: .3rem; }

/* ---------- photo credit ---------- */
.credit { display: flex; align-items: center; font-size: .95rem; color: var(--faint); max-width: 26rem; text-align: end; flex: none; }
.credit span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.credit .mark { width: 2.6rem; height: 2.6rem; -webkit-margin-start: 1rem; margin-inline-start: 1rem; opacity: .9; }

/* ---------- promos (the company's own ads) ---------- */
/* Background style: the ad is the background picture; its QR sits in the free band under the ad's text. */
.photo.ad { -webkit-transform: none; transform: none; -webkit-animation: none; animation: none; }
.ad-qr { position: fixed; top: 38rem; left: 4.6rem; z-index: 1; background: #fff; color: #0C1020; border-radius: 1rem; padding: .7rem .7rem .45rem;
  text-align: center; font-size: .85rem; font-weight: 600; box-shadow: 0 .4rem 1.6rem rgba(0,0,0,.35); }
html[dir="rtl"] .ad-qr { left: auto; right: 4.6rem; }
.ad-qr .qr svg { width: 7.2rem; height: 7.2rem; display: block; margin: 0 auto .35rem; }
.promo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000; opacity: 0; transition: opacity .9s ease; z-index: 5; }
.promo.show { opacity: 1; }
.promo-bg { position: absolute; top: -5%; right: -5%; bottom: -5%; left: -5%; background-size: cover; background-position: center;
  -webkit-filter: blur(3rem) brightness(.55); filter: blur(3rem) brightness(.55); }
.promo-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }
.promo-media img, .promo-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.promo-chip { position: absolute; top: 3.4rem; left: 4.6rem; display: flex; align-items: center; padding: .45rem 1rem .45rem .5rem;
  border-radius: 99rem; background: rgba(0,0,0,.45); font-size: 1rem; font-weight: 600; color: #fff; }
.promo-chip img { width: 1.8rem; height: 1.8rem; -webkit-margin-end: .6rem; margin-inline-end: .6rem; }
.promo-qr { position: absolute; bottom: 4rem; right: 4.6rem; background: #fff; color: #0C1020; border-radius: 1.2rem; padding: .9rem .9rem .6rem;
  text-align: center; font-size: .95rem; font-weight: 600; box-shadow: 0 1rem 3rem rgba(0,0,0,.35); }
/* The chip (top-left) and QR (bottom-right) stay in the same corners in every language, so one design fits all. */
.promo-qr .qr svg { width: 9rem; height: 9rem; display: block; margin: 0 auto .4rem; }
.promo-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .35rem; background: rgba(255,255,255,.15); }
.promo-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.promo-bar i.run { width: 100%; transition-property: width; transition-timing-function: linear; }
html[dir="rtl"] .promo-bar i { margin-left: auto; }

/* ---------- start hint ---------- */
.hint { position: fixed; top: 8.4rem; left: 50%; transform: translateX(-50%); padding: .8rem 1.6rem; border-radius: 99rem;
  background: var(--glass-strong); border: 1px solid var(--line); font-size: 1.15rem; }

/* ---------- settings ---------- */
.settings { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(3, 5, 10, .62); display: flex; justify-content: flex-end; }
.panel { width: 44rem; height: 100%; box-sizing: border-box; padding: 3.2rem 2.8rem; background: #0C1020;
  -webkit-border-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.panel-head .logo { height: 3.4rem; }
.panel-head h1 { font-size: 2rem; font-weight: 600; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1 1 auto; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; margin-bottom: .45rem;
  border-radius: 1rem; border: .15rem solid transparent; font-size: 1.3rem; }
.row .label { color: var(--soft); }
.row .value { display: flex; align-items: center; font-weight: 600; max-width: 60%; text-align: end; }
.row .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .arrow { font-style: normal; opacity: 0; padding: 0 .6rem; color: var(--accent); }
.row.action .arrow { display: none; }
.row.focus { background: rgba(255,255,255,.1); border-color: var(--accent); }
.row.focus .arrow { opacity: 1; }
.row.close { justify-content: center; }
.row.close .label { color: var(--ink); font-weight: 600; }
.phone { display: flex; align-items: center; margin-top: .4rem; padding: 1.2rem; border-radius: 1.2rem; background: rgba(255,255,255,.06); border: .15rem solid var(--accent); }
.phone-qr { background: #fff; padding: .8rem; border-radius: .9rem; flex: none; -webkit-margin-end: 1.4rem; margin-inline-end: 1.4rem; }
.phone-qr svg { width: 12rem; height: 12rem; display: block; }
.phone p { margin: 0; font-size: 1.2rem; line-height: 1.5; }
.phone .phone-code { margin-top: .8rem; font-size: 1.6rem; font-weight: 600; letter-spacing: .25rem; color: var(--accent); direction: ltr; }
.search { margin-top: .6rem; }
.search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.4rem; color: var(--ink); background: rgba(255,255,255,.08);
  border: .15rem solid var(--accent); border-radius: 1rem; padding: .9rem 1.2rem; outline: none; }
.results { list-style: none; margin: .7rem 0 0; padding: 0; }
.results li { padding: .8rem 1.2rem; border-radius: .8rem; font-size: 1.25rem; border: .15rem solid transparent; }
.results li.focus { background: rgba(255,255,255,.1); border-color: var(--accent); }
.results li.muted { color: var(--faint); }
.about { font-size: .95rem; color: var(--faint); line-height: 1.5; margin: 1rem 0 0; }
