/* 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;
  --line: rgba(255,255,255,.35); --soft: rgba(255,255,255,.72); --error: #FFB4AB;
  --field-bg: rgba(255,255,255,.18); --font-small: 14px; --space-3: 12px; --space-4: 16px;
  --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: 100vh; color: #fff;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
  background: radial-gradient(circle at 10% 4%, rgba(255,255,255,.22), 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: 2px; }
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: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; }
.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: 6px; padding: 6px; padding-inline-start: 16px;
  background: rgba(255,255,255,.24); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.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: rgba(255,255,255,.75); }
.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; }
.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: 40px; height: 40px; 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: rgba(255,255,255,.16); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 20px; margin-top: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
h2 { font-size: 18px; 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; opacity: .75; margin-top: 28px; }

/* Search: tabs over the results (sites searched here, then sites that open in a new tab), a row per video */
#results, #discover { margin-top: 4px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .chip { flex: none; white-space: nowrap; }
a.chip { color: inherit; text-decoration: none; }
.chip.ext { display: inline-flex; align-items: center; gap: 4px; }
.chip.ext .ic, .chip.ext svg { width: 14px; height: 14px; opacity: .8; }
[dir="rtl"] .chip.ext svg { transform: scaleX(-1); }
.hits { display: grid; gap: 10px; margin-top: 8px; }
.hit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 10px; padding-inline-end: 6px;
  background: rgba(255,255,255,.16); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hit:hover { background: rgba(255,255,255,.22); }
.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; }
.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: 40px; height: 40px; border-radius: 50%; flex: none; }
.hit:hover .dl { 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: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .9; margin: 14px 4px 0; }
.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; }
}

/* TikTok uses the official player only after a video link is submitted. */
.tiktok { background: var(--sheet); }
.tiktok-form { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.tiktok-form label { font-size: var(--font-small); font-weight: 600; }
.tiktok-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); }
.tiktok-form .pill { justify-self: start; }
.tiktok-preview:empty { display: none; }
.tiktok-preview iframe { display: block; width: 100%; max-width: var(--player-width); height: auto; aspect-ratio: 9 / 16;
  border: 0; border-radius: var(--radius-media); background: var(--night); margin: var(--space-4) auto 0; }

/* 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: transparent; border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.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; }
.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; }
}
