/* Shared brand styles: aminchaar.com + media kit */
:root {
  --paper: #f3f1ee;
  --paper-2: #e9e6e1;
  --ink: #2b2b2b;
  --ink-soft: #5a5754;
  --brand: #b8442a;       /* orange-red from the logo & headings */
  --brand-deep: #b8442a;  /* brick red behind the portrait */
  --brand-glow: #d0532e;  /* accent for text on dark backgrounds */
  --night: #0d0d0f;
  --night-2: #1a1a1d;
  --line: #d6d1ca;
  --ok: #2fbf71;
  --verified: #1d9bf0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 15, 10, 0.12);
  --f-display: "Grandstander", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --f-body: "Nunito", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --maxw: 1120px;
}
html[lang="ar"] {
  --f-display: "Baloo Bhaijaan 2", system-ui, sans-serif;
  --f-body: "Baloo Bhaijaan 2", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
/* keep Latin numbers like +1.5M readable inside Arabic text */
html[dir="rtl"] :is(.hero-quick b, .big-stat b, .platform b, .kpi b, .metric b, .pcard .follow, .pkg .price, .bar > span:last-child) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] :is(.hero-quick b, .platform b, .kpi b, .metric b, .pcard .follow, .pkg .price) { text-align: right; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; position: relative; }

/* Bubbly outlined headings like the current site */
.h-bubble {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 28px;
  color: #fff;
  -webkit-text-stroke: 3px var(--brand);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(184,68,42, 0.18);
  letter-spacing: 0.5px;
}
.h-bubble.dark { -webkit-text-stroke-color: var(--ink); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); }
html[lang="ar"] .h-bubble { -webkit-text-stroke-width: 2px; letter-spacing: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(184,68,42, .35); }
.btn-primary:hover { background: #9e3a23; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-dark { background: var(--ink); color: #fff; }

/* Torn-paper edges */
.torn-top, .torn-bottom { position: relative; }
.torn-top::before, .torn-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px; z-index: 2;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12l18 5 22-9 15 7 24-6 19 8 17-10 26 9 14-6 21 7 23-11 16 8 25-4 13 9 20-8 27 5 15-9 22 10 19-6 24 7 12-9 28 6 17-8 21 9 26-7 14 8 23-10 18 7 25-5 16 9 22-8 20 6 27-9 13 8 24-6 19 9 21-10 26 7 15-6 22 8 17-9 25 6 18-7 23 10 14-8 26 5 20-9 16 8 24-6 21 9 13-7 27 6 18-9 22 10 25-6 15 7 20-9 23 8 18-5 24 9 16-10 22 6 19 8 26-9 14 7 21-6 23 9 17-8 25 6 20-9 18 8 22-5V26z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12l18 5 22-9 15 7 24-6 19 8 17-10 26 9 14-6 21 7 23-11 16 8 25-4 13 9 20-8 27 5 15-9 22 10 19-6 24 7 12-9 28 6 17-8 21 9 26-7 14 8 23-10 18 7 25-5 16 9 22-8 20 6 27-9 13 8 24-6 19 9 21-10 26 7 15-6 22 8 17-9 25 6 18-7 23 10 14-8 26 5 20-9 16 8 24-6 21 9 13-7 27 6 18-9 22 10 25-6 15 7 20-9 23 8 18-5 24 9 16-10 22 6 19 8 26-9 14 7 21-6 23 9 17-8 25 6 20-9 18 8 22-5V26z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.torn-top::before { top: -25px; }
.torn-bottom::after { bottom: -25px; transform: scaleY(-1); }

/* Platform icon chip */
.picon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 20px;
  flex: none;
}

/* Brand logos in one color (PNG alpha used as a mask) */
.brand-logo {
  display: block; width: 150px; height: 46px; max-width: 100%;
  background: var(--logo-color, #2b2b2b);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
}

/* Verified badges */
.vbadge { width: 1.05em; height: 1.05em; margin-inline-start: 3px; vertical-align: -0.16em; display: inline-block; flex: none; }
.verified-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,155,240,.14); color: #8fd0ff; border: 1px solid rgba(29,155,240,.45);
  padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 16px;
}
.verified-pill i { color: var(--verified); font-size: 19px; }
.verified-pill.light { background: #e8f4fe; color: #0b5d99; border-color: #b7dcf8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Logo (text fallback until the real logo is uploaded) */
.logo-text {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.skeleton { min-height: 100vh; display: grid; place-items: center; color: var(--ink-soft); }
.updated { font-size: 13px; color: var(--ink-soft); }

/* Platform name + verified badge always on one line */
.pname { display: inline-flex !important; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; }
.pname > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pname .vbadge { margin-inline-start: 0; flex: none; }
html[dir="rtl"] .pname { direction: ltr; } /* platform names are Latin: badge sits after the name, like on the apps */

/* YouTube episodes slider */
.ytsl { position: relative; }
.ytsl-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ytsl-track::-webkit-scrollbar { display: none; }
.ytsl-card { flex: 0 0 clamp(230px, 30%, 320px); scroll-snap-align: start; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.ytsl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.ytsl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ytsl-card:hover .ytsl-thumb img { transform: scale(1.04); }
.ytsl-play { position: absolute; inset-inline-start: 10px; bottom: 10px; width: 36px; height: 26px; border-radius: 8px; background: #f00; color: #fff; display: grid; place-items: center; font-size: 12px; }
.ytsl-card b { font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ytsl-nav { position: absolute; top: calc((min(320px, 30vw) * 9 / 16) / 2); transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(13,13,15,.8); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ytsl-nav.prev { left: -12px; } .ytsl-nav.next { right: -12px; }
@media (max-width: 760px) { .ytsl-nav { display: none; } .ytsl-card { flex-basis: 78%; } }

.flag-svg { display: inline-block; width: 1.2em; height: .8em; vertical-align: -.05em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* YouTube-style channel row */
.ytch { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: Roboto, "Nunito", "Baloo Bhaijaan 2", Arial, sans-serif; }
.ytch-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #f2f2f2; }
.ytch-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytch-info { flex: 1; min-width: 0; }
.ytch-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; color: #0f0f0f; text-decoration: none; line-height: 1.3; }
.ytch-name .vbadge { width: 14px; height: 14px; flex: none; }
.ytch-meta { color: #606060; font-size: 14px; margin-top: 2px; }
.ytch-sub { display: inline-flex; align-items: center; gap: 8px; background: #0f0f0f; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; flex: none; transition: background .15s; }
.ytch-sub:hover { background: #272727; }
.ytch-logo { width: 22px; height: 16px; flex: none; }
.ytbox { background: #fff; border-radius: 18px; padding: 20px 20px 8px; box-shadow: 0 2px 12px rgba(0,0,0,.05); font-family: Roboto, "Nunito", "Baloo Bhaijaan 2", Arial, sans-serif; }
.ytbox .ytsl-card b { color: #0f0f0f; font-weight: 600; }
.ytbox .ytsl-thumb { border-radius: 12px; }
@media (max-width: 520px) { .ytch { flex-wrap: wrap; } .ytch-av { width: 52px; height: 52px; } .ytch-name { font-size: 16px; } .ytch-sub { width: 100%; justify-content: center; } }
/* dark (links page) */
.ytch.dark .ytch-name { color: #f1f1f1; }
.ytch.dark .ytch-meta { color: #aaa; }
.ytch.dark .ytch-sub { background: #f1f1f1; color: #0f0f0f; }
.ytch.dark .ytch-sub:hover { background: #d9d9d9; }
.ytch.dark .ytch-av { background: #272727; }

/* Top countries: podium + regions (ranked, no %) */
.pod { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 20px; }
.pod .pc { position: relative; background: var(--night); color: #fff; border-radius: 16px; padding: 18px 8px 14px; text-align: center; display: grid; gap: 6px; justify-items: center; min-width: 0; }
.pod .pc .fl { font-size: 30px; line-height: 1; }
.pod .pc .fl .flag-svg { width: 34px; height: 23px; }
.pod .pc b { font-family: "Grandstander", sans-serif; font-size: 20px; color: #ff8a55; }
.pod .pc.first b { color: #fff; font-size: 26px; }
.pod .pc .pn { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pc .rk { position: absolute; top: 8px; inset-inline-start: 10px; font-family: "Grandstander", sans-serif; font-size: 13px; color: #ff8a55; }
.pod .pc.first { background: var(--brand); padding-block: 28px 18px; }
.pod .pc.first .fl { font-size: 38px; }
.pod .pc.first .fl .flag-svg { width: 42px; height: 28px; }
.pod .pc.first .pn { font-size: 16px; }
.pod .pc.first .rk { color: #fff; }
.reg { display: grid; gap: 0; }
.rg { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); }
.rg-h { font-weight: 800; font-size: 14px; padding-top: 5px; display: grid; gap: 2px; }
.rg-h b { font-family: "Grandstander", sans-serif; font-size: 20px; color: var(--brand); }
.rg-body { display: grid; gap: 8px; min-width: 0; }
.rg-bar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; margin-top: 6px; }
.rg-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.rg-chips b { color: var(--brand); font-variant-numeric: tabular-nums; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-chips span { background: rgba(0,0,0,.05); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 460px) { .rg { grid-template-columns: 1fr; gap: 6px; } .rg-h { padding-top: 0; display: flex; justify-content: space-between; align-items: baseline; } }
@media print { .pod .pc { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: center; }
.cgrid .pod { margin-bottom: 0; }
.cgrid .reg .rg:first-child { border-top: 0; }
@media (max-width: 860px) { .cgrid { grid-template-columns: 1fr; gap: 18px; } .cgrid .reg .rg:first-child { border-top: 1px solid rgba(0,0,0,.08); } }
.cnote { margin: 16px 0 0; font-size: 12px; color: var(--ink-soft); }

/* Contact block (home page + media kit): one main request button, then direct contact chips */
.contact-block { max-width: 460px; }
.contact-block .btn-main { width: 100%; justify-content: center; }
.contact-block .alt { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 700; color: inherit; opacity: .9; text-decoration: underline; text-underline-offset: 4px; }
.contact-block .direct { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); }
.contact-block .direct-label { display: block; font-size: 14px; font-weight: 700; opacity: .85; margin-bottom: 10px; }
.contact-block .chips { display: flex; gap: 10px; }
.contact-block .chip { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; }
.contact-block .chip:hover { background: rgba(255,255,255,.12); }
.contact-block .print-contact { display: none; }
@media print { .contact-block .chips, .contact-block .alt { display: none !important; } .contact-block .print-contact { display: block; font-weight: 700; } }
