/* Nzelha website: the app's glass look (ui/Theme.kt), with its deep-ink download sheet. */
:root {
  --ink: #1F2C35; --night: #12203A; --saffron: #F2A33A; --sheet: #1B2731;
  --text: #fff; --line: rgba(255,255,255,.24); --line-strong: rgba(255,255,255,.48);
  --soft: rgba(255,255,255,.92); --error: #FFB4AB; --accent-wash: rgba(242,163,58,.12);
  --glass: rgba(18,32,58,.42); --glass-hover: rgba(18,32,58,.52); --glass-strong: rgba(18,32,58,.88);
  --field-bg: rgba(18,32,58,.56); --font-small: 14px; --font-tiny: 12px; --font-brand: 22px; --font-section: 20px;
  --font-display: clamp(34px,4.4vw,56px);
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --radius-control: 12px; --radius-search: 20px; --radius-card: 24px; --touch-target: 44px;
  --page-width: 1040px; --search-width: 760px; --anchor-offset: 128px; --transition: 160ms ease;
  --shadow-soft: 0 12px 32px rgba(18,32,58,.12); --shadow-search: 0 16px 48px rgba(18,32,58,.18);
  --radius-media: 12px; --radius-field: 14px; --player-width: 352px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--text);
  font: 16px/1.55 var(--font-family);
  background: linear-gradient(rgba(18,32,58,.2),rgba(18,32,58,.2)),
              radial-gradient(circle at 10% 4%, rgba(255,255,255,.08), transparent 60%),
              radial-gradient(circle at 5% 95%, rgba(178,75,87,.75), transparent 55%),
              linear-gradient(#4E8494, #8F7A85, #CB6554);
  background-attachment: fixed;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
main { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; }

nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--night); display: inline-grid;
  place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); flex: none; }
.logo svg { width: 28px; height: 28px; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 999px;
  border: 1px solid transparent; font-size: var(--font-small); min-height: var(--touch-target);
  display: inline-flex; align-items: center; justify-content: center; transition: background var(--transition); }
.langs a:hover { background: var(--glass-hover); }
.langs a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; }

.hero { text-align: center; padding: 36px 0 20px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
.lead { opacity: .9; margin: 0 auto 22px; max-width: 520px; }
.meta { opacity: .85; font-size: 14px; margin: 12px 0 0; }

.linkbox { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); padding-inline-start: var(--space-5);
  background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-search);
  box-shadow: var(--shadow-search); transition: border-color var(--transition); }
.linkbox:focus-within { border-color: var(--saffron); outline: 2px solid var(--accent-wash); outline-offset: 3px; }
.linkbox input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 17px;
  padding: 10px 0; outline: none; }
.linkbox input::placeholder { color: var(--soft); }
.field-icon { display: inline-grid; opacity: .8; margin-inline-end: 4px; }
.field-icon .ic, .field-icon svg { width: 20px; height: 20px; }
.pill { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; background: #fff; color: var(--ink);
  white-space: nowrap; min-height: var(--touch-target); transition: background var(--transition), transform var(--transition); }
.pill:hover { background: #fff; filter: brightness(.96); }
.pill.solid { background: var(--saffron); color: var(--ink); }
.pill.ghost { background: transparent; color: inherit; border: 1px solid var(--line); font-weight: 600; }
.pill.small { padding: 6px 14px; font-size: 14px; }
.icon-btn { border: 0; background: transparent; width: var(--touch-target); height: var(--touch-target); border-radius: 50%; display: inline-grid;
  place-items: center; flex: none; padding: 0; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.ic { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; }
.ic svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn .ic, .icon-btn .ic svg { width: 22px; height: 22px; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--space-6); margin-top: var(--space-4); }
h2 { font-size: var(--font-section); font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
ol, ul { margin: 0; padding-inline-start: 22px; }
li { margin: 4px 0; }
.pre { margin: 0; white-space: pre-line; }
.btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; font-size: 17px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn:active, .pill:active { transform: scale(.98); }
.app-head { display: flex; gap: 14px; align-items: flex-start; }
.app-head .logo { width: 52px; height: 52px; border-radius: 16px; }
.app-head .logo svg { width: 36px; height: 36px; }
.app-head p { margin: 0; opacity: .9; }
.cta { text-align: center; margin: 18px 0 4px; }
footer { text-align: center; font-size: 13px; margin-top: 28px; }
footer p { margin: 0 0 4px; opacity: .8; }
/* Contact us, Privacy and Terms on every page: buttons, not faint text, so they're easy to find */
nav.foot-links { justify-content: center; gap: 8px; margin-top: 14px; }
.foot-links a { color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.12); font-size: 14px; font-weight: 600; }
.foot-links a[aria-current] { background: #fff; color: var(--ink); }

/* Search: tabs over the results (sources searched at once, then the site tabs), a row per video */
#results, #discover { margin-top: 4px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
/* Arrows at the ends of the tab row while more tabs lie that way; the tabs fade out under them. */
.tab-row { position: relative; }
.tab-row .arrow { position: absolute; top: 2px; z-index: 1; display: none; place-items: center; width: 34px; height: 34px;
  padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.tab-row .arrow .ic, .tab-row .arrow svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.tab-row .arrow:hover { background: var(--saffron); }
.tab-row .arrow.left { left: 0; }
.tab-row .arrow.right { right: 0; }
.tab-row.more-left .arrow.left, .tab-row.more-right .arrow.right { display: grid; }
.tab-row.more-left .tabs { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px);
  mask-image: linear-gradient(to right, transparent, #000 56px); }
.tab-row.more-right .tabs { -webkit-mask-image: linear-gradient(to left, transparent, #000 56px);
  mask-image: linear-gradient(to left, transparent, #000 56px); }
.tab-row.more-left.more-right .tabs {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.tabs .chip { flex: none; white-space: nowrap; }
.hits { display: grid; gap: 10px; margin-top: 8px; }
.hit { display: flex; align-items: center; gap: 4px; width: 100%; padding-inline-end: 6px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-search);
  transition: background var(--transition), border-color var(--transition); }
.hit:hover { background: var(--glass-hover); border-color: var(--line-strong); }
.hit.playing { border-color: var(--saffron); }
.hit .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; text-align: start;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 20px; }
.hit .art { position: relative; width: 128px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; flex: none;
  background: rgba(0,0,0,.22); display: grid; place-items: center; }
.hit .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A playlist: a shaded end of the cover with the playlist mark, as on YouTube. */
.hit .stack { position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; display: grid; place-items: center;
  background: rgba(0,0,0,.62); }
.hit .stack svg { width: 26px; height: 26px; fill: #fff; }
[dir="rtl"] .hit .stack svg { transform: scaleX(-1); }
.hit .badge { position: absolute; inset-inline-end: 5px; bottom: 5px; background: rgba(0,0,0,.72); font-size: 12px;
  padding: 0 6px; border-radius: 6px; line-height: 1.5; }
.hit .t { flex: 1; min-width: 0; display: grid; }
.hit b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px;
  line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.hit small { color: var(--soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit .dl { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: none; border: 0; color: inherit; cursor: pointer; }
.hit .dl:hover { background: rgba(255,255,255,.12); }
#results .error { color: #fff; background: rgba(120,20,20,.35); border-radius: 14px; padding: 10px 12px; margin: 12px 0 8px; }
#results .loading { margin: 10px 4px; color: #fff; opacity: .9; }
#results .loading .spinner { border-color: #fff; border-inline-end-color: transparent; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label { font-size: var(--font-section); font-weight: 600; margin: var(--space-6) 0 var(--space-3); }
.label-row .label { margin-top: 8px; }
#discover .chips { margin-top: 8px; }
#discover .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { font-size: 13px; opacity: .85; margin: 12px 4px 0; }
html[lang=ur] .hint { line-height: 2.1; }
@media (max-width: 420px) {
  .hit .art { width: 112px; }
}
.picks { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin: var(--space-4) 0 var(--space-2); }
.pick { min-width: 0; display: grid; gap: var(--space-2); grid-template-rows: auto 1fr; }
.pick-label { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--font-tiny); font-weight: 500; color: var(--soft); padding-inline: var(--space-1); }
.pick .hit { flex-direction: column; align-items: stretch; height: 100%; padding: 0; position: relative; }
.pick .hit .open { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-4); }
.pick .hit .art { width: 100%; }
.pick .hit .t { padding-inline: var(--space-2); padding-inline-end: var(--space-12); gap: var(--space-1); }
.pick .hit b { min-height: 2.7em; }
.pick .hit .dl { position: absolute; inset-inline-end: var(--space-2); bottom: var(--space-3);
  background: var(--accent-wash); color: var(--saffron); border-radius: var(--radius-control); }
.pick .hit .dl:hover { background: var(--saffron); color: var(--ink); }
.pick.skeleton .pick-label { width: 80px; height: 20px; background: rgba(255,255,255,.1); border-color: transparent; }
.pick.skeleton .hit { padding: 8px; gap: 8px; }
.pick.skeleton .art { width: 100%; }
.text-btn { display: inline-block; background: none; border: 0; color: var(--soft); font: inherit; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; margin-top: 2px; }
.text-btn:hover { color: #fff; }
@media (min-width: 560px) { .picks { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 900px) { .picks { grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* A site's panel (TikTok, Instagram, Facebook, X): search it, or play one of its videos in its official player. */
.site-panel { background: var(--sheet); }
.site-form { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.site-form label { font-size: var(--font-small); font-weight: 600; }
.site-form input { width: 100%; min-width: 0; font: inherit; color: inherit; background: var(--field-bg);
  border: 1px solid var(--line); border-radius: var(--radius-field); padding: var(--space-3); }
.site-form .pill { justify-self: start; }
.site-preview:empty { display: none; }

/* Watch: a search result in its site's own player, with Download floating over it. */
.watch { background: var(--sheet); }
.watch .sheet-top h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; }
.player { position: relative; margin: var(--space-4) auto 0; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--radius-media); background: var(--night); }
.player.wide { aspect-ratio: 16 / 9; }
.player.square { aspect-ratio: 1 / 1; max-width: 480px; }
.player.tall { aspect-ratio: 9 / 16; max-width: var(--player-width); }
/* An Instagram or X post: the video with who posted it and what they wrote, so a card rather than a screen. */
.player.post { height: 660px; max-width: 400px; }
.player .float { position: absolute; inset-inline-end: 12px; bottom: 12px; width: auto; margin: 0; padding-inline: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* While downloads run and their list is out of sight (the app's bar above the tabs) */
.active-bar { position: fixed; inset-inline: 16px; bottom: 16px; margin: 0 auto; max-width: 560px; z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; padding-inline-start: 16px;
  background: var(--sheet); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.active-bar .grow { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-bar main { padding-bottom: 96px; }
body.has-bar #toast { bottom: 84px; }

/* Downloads */
.dl-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.dl-head h2 { margin: 0; }
.chips { display: flex; gap: 6px; margin: 12px 0 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 16px;
  font-size: var(--font-small); min-height: var(--touch-target); transition: background var(--transition); }
.chip:hover { background: var(--glass-hover); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.note { font-size: 14px; opacity: .85; margin: 8px 0 0; }
.empty { opacity: .8; margin: 16px 0 6px; text-align: center; }
.group { border: 1px solid rgba(255,255,255,.22); border-radius: 18px; margin-top: 12px; padding: 4px 12px 8px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; }
.group-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0 6px; }
.group-head .t { flex: 1; min-width: 0; }
.group-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-head small { opacity: .8; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
#dl-list > .item:first-child, .group > .item:first-of-type { border-top: 0; }
.thumb { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(0,0,0,.22);
  display: grid; place-items: center; }
.item .t { flex: 1; min-width: 0; }
.item .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.item .status { font-size: 13px; opacity: .85; margin-top: 2px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .status.err { color: var(--error); opacity: 1; }
.actions { display: flex; gap: 2px; flex: none; align-items: center; }

.bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 6px; position: relative; }
.bar > i { display: block; height: 100%; background: var(--saffron); border-radius: 4px; transition: width .4s; }
.bar.busy > i { width: 35% !important; position: absolute; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { inset-inline-start: -35%; } to { inset-inline-start: 100%; } }

/* Sheet and dialog */
.overlay { position: fixed; inset: 0; background: rgba(8,14,24,.55); z-index: 10; display: flex;
  align-items: flex-end; justify-content: center; }
.overlay.center { align-items: center; padding: 16px; z-index: 20; }
.sheet { background: var(--sheet); color: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 28px 28px 0 0; padding: 8px 24px 20px; box-shadow: 0 -12px 40px rgba(0,0,0,.35);
  animation: up .22s ease-out; overscroll-behavior: contain; }
@media (min-width: 640px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-height: 88vh; }
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); margin: 4px auto 10px; }
.sheet-top { display: flex; align-items: center; gap: 8px; }
.sheet-top h2 { flex: 1; font-size: 21px; margin: 0; }
.head { display: flex; gap: 14px; align-items: center; margin: 16px 0 4px; }
.head .art { position: relative; width: 112px; height: 64px; border-radius: 12px; overflow: hidden; flex: none;
  background: rgba(255,255,255,.08); }
.head .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.head .badge { position: absolute; inset-inline-end: 4px; bottom: 4px; background: rgba(0,0,0,.72); font-size: 12px;
  padding: 0 6px; border-radius: 6px; }
.head .t { min-width: 0; flex: 1; }
.head b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600;
  overflow-wrap: anywhere; }
.head small { display: block; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton b, .skeleton small { background: rgba(255,255,255,.1); border-radius: 6px; color: transparent; height: 14px; margin: 6px 0; }
.toggle { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; margin-top: 16px; }
.toggle button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.row { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: transparent; text-align: start;
  padding: 12px 6px; border-radius: 12px; }
.row:hover { background: rgba(255,255,255,.06); }
.row .grow { flex: 1; min-width: 0; }
.row .dim, .dim { color: var(--soft); }
.section { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--saffron); margin: 18px 6px 2px; text-transform: uppercase; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); flex: none; display: grid; place-items: center; }
.row[aria-checked="true"] .radio { border-color: var(--saffron); }
.row[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); }
.check { width: 20px; height: 20px; border-radius: 5px; border: 2px solid rgba(255,255,255,.55); flex: none; display: grid; place-items: center; }
.row[aria-checked="true"] .check { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.row[aria-checked="true"] .check::after { content: "✓"; font-size: 14px; font-weight: 800; line-height: 1; }
.divider { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 8px 0 0; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--soft); margin: 14px 0 22px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--saffron); border-inline-end-color: transparent;
  animation: spin .8s linear infinite; flex: none; }
.go .spinner { border-color: var(--ink); border-inline-end-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { display: flex; gap: 10px; align-items: flex-start; color: var(--error); margin: 16px 0; overflow-wrap: anywhere; }
.login-need { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 4px; padding: 14px 16px;
  border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid var(--line); overflow-wrap: anywhere; }
.login-need .ic { color: var(--saffron); flex: none; margin-top: 2px; }
.login-need b { display: block; margin-bottom: 4px; }
.login-need p { margin: 0; opacity: .9; line-height: 1.45; }
a.go { text-decoration: none; }
.login-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; padding: 10px 10px 10px 16px;
  padding-inline: 16px 10px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid var(--line); }
.login-bar span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.login-bar .pill { flex: none; }
.go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border: 0;
  border-radius: 999px; background: var(--saffron); color: var(--ink); font-weight: 700; font-size: 17px; margin-top: 12px; }
.go:disabled { opacity: .5; }
.go.ghost { background: transparent; color: #fff; border: 1px solid var(--line); }
.entry-img { width: 72px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(255,255,255,.08); }
.list-top { display: flex; gap: 8px; margin: 12px 0 4px; }
.sticky { position: sticky; bottom: -20px; background: var(--sheet); padding: 8px 0 20px; margin-bottom: -20px; }

.dialog { background: var(--sheet); color: #fff; border-radius: 24px; padding: 22px 22px 14px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.dialog h2 { font-size: 20px; margin-bottom: 10px; }
.dialog p { margin: 0; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.dialog .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dialog .buttons button { border: 0; background: transparent; color: var(--saffron); font-weight: 700; padding: 10px 14px; border-radius: 999px; }
.dialog .buttons button:hover { background: rgba(255,255,255,.08); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  h1 { font-size: 27px; }
  .pill { padding: 10px 14px; }
  .sheet { padding: 8px 16px 16px; }
  .head .art { width: 96px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[dir="rtl"] .ic.chevron svg { transform: scaleX(-1); }
@media (min-width: 640px) { .handle { display: none; } }

/* Contact us */
footer a { color: inherit; }
a.brand { color: inherit; text-decoration: none; }
.contact { display: grid; gap: 14px; }
.contact label, .contact .field > span { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact input[type=text], .contact input[type=email], .contact textarea {
  font: inherit; font-weight: 400; color: #fff; background: rgba(255,255,255,.18); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; width: 100%; }
.contact textarea { resize: vertical; min-height: 120px; }
.contact ::placeholder { color: rgba(255,255,255,.7); }
.contact .field { display: grid; gap: 8px; justify-items: start; }
.contact small { opacity: .8; }
.contact .pill.solid { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumbs .thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .thumb button { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; line-height: 1; font-size: 16px; padding: 0; }
#status, #done .status { margin: 0; font-weight: 600; color: var(--error); }
#done .status.ok { color: #fff; }

/* How to install: the guide video for the page's language (install/<lang>.mp4), then the steps */
.install p { margin: 0; opacity: .9; }
.install video { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 9 / 16; margin: 16px auto;
  border-radius: 20px; background: var(--night); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.cta .meta a { color: #fff; font-weight: 600; }
/* Nastaliq is tall; the default line height makes Urdu lines overlap */
html[lang=ur] .card li, html[lang=ur] .card p, html[lang=ur] .lead { line-height: 2.1; }
.install .more { text-align: center; margin-top: 14px; }
a.pill { display: inline-block; text-decoration: none; }

/* /install: every screen of the install, with the button to tap highlighted (install/steps/<lang>-<n>.webp) */
.guide > p { margin: 0; opacity: .9; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 26px; }
.step { display: grid; gap: 14px; margin: 0; }
.step p { margin: 0; }
.step .txt { display: flex; gap: 12px; align-items: flex-start; }
.step .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--saffron); color: var(--ink); font-weight: 800; line-height: 1; }
.step .hint { color: var(--soft); font-size: 14px; margin-top: 4px; }
.step b { background: rgba(18,32,58,.4); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.step img { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
@media (min-width: 640px) {
  .step { grid-template-columns: 1fr 220px; align-items: center; gap: 24px; }
}

/* Privacy Policy and Terms of Use */
.legal h2 { margin: 22px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; opacity: .92; }
.legal a { color: #fff; font-weight: 600; }

/* Voice search: the box becomes a white bubble with the voice's live wave, ✕ on one side, ■ and ↑ on the other. */
#mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#mic:disabled { opacity: .5; cursor: progress; }
.linkbox { position: relative; }
.voicebar { display: none; }
.linkbox.voice > :not(.voicebar) { visibility: hidden; }
.linkbox.voice .voicebar { position: absolute; inset: -1px; display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.16);
  animation: bubble .22s ease-out, listen 1.6s ease-in-out .22s infinite; }
.linkbox.sending .voicebar { animation: none; }
.voicebar .icon-btn:hover { background: rgba(31,44,53,.08); }
.voice-cancel { background: rgba(31,44,53,.06); }
.voice-stop { background: rgba(31,44,53,.08); }
.voice-stop .ic, .voice-stop .ic svg { width: 18px; height: 18px; }
.voicebar .voice-send { background: var(--saffron); color: var(--ink); }
.voicebar .voice-send:hover { background: var(--saffron); filter: brightness(1.06); }
.wave { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 3px;
  overflow: hidden; padding-inline: 6px; }
.wave i { flex: none; width: 3px; height: 10%; min-height: 3px; border-radius: 2px; background: currentColor;
  transition: height .07s linear; }
.voice-status { display: none; flex: 1; min-width: 0; padding-inline: 8px; font-size: var(--font-small); opacity: .75;
  text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbox.sending .wave { display: none; }
.linkbox.sending .voice-status { display: block; animation: writing 1.2s ease-in-out infinite; }
.linkbox.sending .voice-stop, .linkbox.sending .voice-send { opacity: .4; pointer-events: none; }
@keyframes bubble { from { transform: scale(.94); opacity: 0; } }
@keyframes listen { 50% { box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 0 0 8px rgba(242,163,58,.3); } }
@keyframes writing { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .linkbox.voice .voicebar, .linkbox.sending .voice-status { animation: none; }
  .wave i { transition: none; }
}

.helper-actions{margin-block:16px;display:grid;gap:10px}.helper-actions .note{margin:0}.helper-commands{overflow-x:auto;padding:16px;background:var(--night);border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}

.helper-downloads{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}.helper-downloads .pill{text-align:center}.browser-helper-card .note{margin-block-end:0}

/* Keep the app and browser choices visible before discovery content and while scrolling. */
.quick-downloads { position: sticky; top: var(--space-2); z-index: 3; display: grid; align-items: center;
  grid-template-columns: 1.2fr 1fr .8fr; gap: var(--space-2); margin-top: var(--space-6); padding: var(--space-2);
  border: 1px solid var(--line); border-radius: var(--radius-search); background: var(--glass-strong);
  box-shadow: var(--shadow-soft); }
.quick-downloads .pill { display: flex; gap: var(--space-2); align-items: center; justify-content: center;
  text-align: start; text-decoration: none; white-space: normal; min-width: 0; font-size: var(--font-small);
  padding: var(--space-2) var(--space-3); min-height: var(--space-12); border-radius: var(--radius-control); }
.quick-downloads .pill small { display: block; font-size: var(--font-tiny); font-weight: 400; color: var(--soft); }
.quick-downloads .pill span { display: block; }
.quick-downloads .pill.ghost { border-color: transparent; background: transparent; }
.quick-downloads .pill.ghost:hover { background: var(--glass-hover); border-color: var(--line); }
.quick-downloads-label { display: none; margin: 0; color: var(--soft); font-size: var(--font-small); }
.quick-icon { width: var(--space-6); height: var(--space-6); flex: none; }
.quick-copy { min-width: 0; }
.quick-downloads+.hero { padding-top: var(--space-12); }
.helper-actions a,.browser-helper-card a:not(.solid),.guide a:not(.solid){color:inherit;text-underline-offset:3px}
.helper-advanced{margin-top:18px}.helper-advanced summary{cursor:pointer;font-size:14px;text-decoration:underline;text-underline-offset:3px}.helper-advanced .note{margin-top:10px}
.helper-downloads [aria-disabled="true"]{opacity:.65;white-space:normal}#browser{scroll-margin-top:100px}
@media (max-width: 559px) {
  .quick-downloads .pill { flex-direction: column; gap: 0; text-align: center; padding-inline: var(--space-1); }
  .quick-icon { display: none; }
}

.home-page main { max-width: var(--page-width); padding-block: var(--space-6) var(--space-12); }
.site-nav { min-height: var(--space-12); gap: var(--space-4); }
.site-nav .brand { font-size: var(--font-brand); font-weight: 700; gap: var(--space-3); }
.site-nav .logo { width: var(--touch-target); height: var(--touch-target); box-shadow: var(--shadow-soft); }
.site-nav .langs { padding: var(--space-1); gap: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.home-page .hero { padding-block: var(--space-12) var(--space-8); }
.home-page h1 { font-size: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.15;
  margin-bottom: var(--space-4); text-wrap: balance; }
.home-page .lead { color: var(--soft); opacity: 1; max-width: 560px; margin-bottom: var(--space-8); text-wrap: pretty; }
.home-page .linkbox { max-width: var(--search-width); margin-inline: auto; min-height: 72px; text-align: start; }
.home-page .linkbox .pill { border-radius: var(--radius-control); min-height: var(--space-12); }
.home-page .field-icon { color: var(--soft); opacity: 1; }
.home-page #discover { margin-block: var(--space-2) var(--space-10); }
.home-page #discover > .label:first-child { margin-top: var(--space-3); }
.home-page #discover .hint { max-width: var(--search-width); line-height: 1.7; color: var(--soft); opacity: 1; }
.home-page .text-btn { min-height: var(--touch-target); margin-top: var(--space-2); }
.home-page .label-row .icon-btn { background: var(--glass); }
.get-nzelha { display: grid; gap: var(--space-5); margin-top: var(--space-10); }
.get-nzelha > .card { margin: 0; }
.get-nzelha .cta { text-align: start; margin-block: var(--space-6) var(--space-4); }
.get-nzelha .helper-downloads { gap: var(--space-2); }
.get-nzelha .helper-downloads .pill { white-space: normal; }
.get-nzelha .app-head .logo { width: var(--space-12); height: var(--space-12); }
.get-nzelha .app-card ul { color: var(--soft); font-size: var(--font-small); }
.get-nzelha .app-card li { margin-block: var(--space-2); }
.home-page .install { margin-top: var(--space-5); }
.home-page #browser, .home-page #install, .home-page #results, .home-page #site { scroll-margin-block-start: var(--anchor-offset); }
.home-page footer { border-top: 1px solid var(--line); padding-top: var(--space-6); margin-top: var(--space-10); }
html[dir=rtl] .home-page h1 { letter-spacing: normal; line-height: 1.4; }
html[lang=ur] .home-page .lead, html[lang=ur] .home-page .hint { line-height: 2.1; }
@media (min-width: 768px) {
  .home-page main { padding-inline: var(--space-6); }
  .home-page .hero { padding-block: var(--space-16) var(--space-10); }
}
@media (min-width: 900px) {
  .home-page .quick-downloads { grid-template-columns: minmax(0,1fr) 1fr 1fr .8fr; }
  .quick-downloads-label { display: block; padding-inline: var(--space-4); }
  .get-nzelha { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .install { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: var(--space-4) var(--space-10);
    grid-template-areas: "heading video" "intro video" "steps video" "guide video"; align-items: start; }
  .home-page .install h2 { grid-area: heading; margin: 0; }
  .home-page .install > p:not(.more) { grid-area: intro; }
  .home-page .install > ol { grid-area: steps; }
  .home-page .install > .more { grid-area: guide; }
  .home-page .install video { grid-area: video; margin: 0; }
}
@media (max-width: 559px) {
  .home-page main { padding-top: var(--space-4); }
  .site-nav { gap: var(--space-2); flex-wrap: nowrap; }
  .site-nav .brand { font-size: 18px; gap: var(--space-2); }
  .site-nav .langs a { padding-inline: var(--space-2); font-size: 13px; }
  .site-nav .langs { padding: 0; }
  .site-nav .logo { width: var(--space-10); height: var(--space-10); }
  .home-page .hero { padding-block: var(--space-10) var(--space-6); }
  .home-page .lead { font-size: var(--font-small); margin-bottom: var(--space-6); }
  .home-page .linkbox { min-height: var(--space-16); gap: var(--space-1); padding-inline-start: var(--space-3); }
  .home-page .linkbox input { font-size: 16px; }
  .home-page .linkbox .pill { padding-inline: var(--space-3); }
  .home-page .card { padding: var(--space-5); }
  .get-nzelha { margin-top: var(--space-8); }
}
@media (max-width: 359px) {
  .site-nav { flex-wrap: wrap; }
  .site-nav .langs { margin-inline-start: auto; }
}
