:root {
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --ink: #23263A;
  --muted: #6B6F85;
  --line: #F0E4D8;
  --primary: #FF6A3D;
  --primary-dark: #E9531F;
  --primary-soft: #FFE6DB;
  --accent: #19B6A4;
  --accent-soft: #DDF6F2;
  --danger: #D93A49;
  --danger-soft: #FDE7EA;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(35, 38, 58, .04), 0 10px 30px -12px rgba(255, 106, 61, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(800px 420px at 85% -10%, #FFE3D3 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 10%, #E2F7F3 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Top bar */
/* Səhifə eni: geniş ekranda 3 sütun (160 | 760 | 160, aralıq 40) = 1160px. Başlıq, yuxarı banner və
   sütunlar eyni kənarlarda bitir — hər şey bir xətdə */
:root { --page: 1160px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: calc(var(--page) + 40px); width: 100%; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { display: block; flex: none; width: 36px; height: 36px; filter: drop-shadow(0 5px 10px rgba(233, 83, 31, .28)); }
/* Loqo yazısı — Plus Jakarta Sans (öz serverimizdə, OFL lisenziya); ".az" — narıncı, daha incə */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
.logo-text {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800; font-size: 1.22rem; letter-spacing: -.035em; line-height: 1;
}
.logo-tld { color: #E9531F; font-weight: 600; }

/* Dil seçimi — bayraqlı açılan menyu (<details>) */
.lang-menu { position: relative; flex: none; z-index: 30; }
.lang-btn {
  list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 800; color: var(--ink); user-select: none; -webkit-tap-highlight-color: transparent;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::marker { content: ""; }
.lang-btn:hover { border-color: #E2D6CB; }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-btn .chev { color: var(--muted); transition: transform .2s; }
.lang-menu[open] .lang-btn { border-color: var(--primary); }
.lang-menu[open] .lang-btn .chev { transform: rotate(180deg); }
.flag {
  display: inline-block; flex: none; width: 22px; height: 15px; border-radius: 3px;
  background: #ddd center / cover no-repeat; box-shadow: 0 0 0 1px rgba(35, 38, 58, .12);
}
.langs {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 196px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px -12px rgba(35, 38, 58, .28);
  animation: vy-menu .16s ease-out;
}
@keyframes vy-menu { from { opacity: 0; transform: translateY(-4px); } }
.langs a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600;
}
.langs a .lang-name { flex: 1; }
.langs a .lang-code { font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.langs a:hover { background: var(--primary-soft); }
.langs a[aria-current="page"] { background: #F6EFE8; font-weight: 800; }
.langs a[aria-current="page"]::after { content: "✓"; color: var(--primary); font-weight: 800; margin-left: -2px; }
.langs a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
/* Bayraqlar (SVG — emoji bayraqlar Windows-da görünmür) */
.flag-az { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23509E2F%22/%3E%3Crect width=%2230%22 height=%2213.34%22 fill=%22%23EF3340%22/%3E%3Crect width=%2230%22 height=%226.67%22 fill=%22%2300B5E2%22/%3E%3Ccircle cx=%2214%22 cy=%2210%22 r=%223.3%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2214.85%22 cy=%2210%22 r=%222.7%22 fill=%22%23EF3340%22/%3E%3Cpolygon points=%2219.55,10.00 18.67,10.24 19.13,11.03 18.34,10.57 18.10,11.45 17.86,10.57 17.07,11.03 17.53,10.24 16.65,10.00 17.53,9.76 17.07,8.97 17.86,9.43 18.10,8.55 18.34,9.43 19.13,8.97 18.67,9.76%22 fill=%22%23fff%22/%3E%3C/svg%3E"); }
.flag-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23E30A17%22/%3E%3Ccircle cx=%2211%22 cy=%2210%22 r=%225%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2212.25%22 cy=%2210%22 r=%224%22 fill=%22%23E30A17%22/%3E%3Cpolygon points=%2215.30,10.00 16.71,9.50 16.75,8.00 17.66,9.19 19.10,8.77 18.25,10.00 19.10,11.23 17.66,10.81 16.75,12.00 16.71,10.50%22 fill=%22%23fff%22/%3E%3C/svg%3E"); }
.flag-ru { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23D52B1E%22/%3E%3Crect width=%2230%22 height=%2213.34%22 fill=%22%230039A6%22/%3E%3Crect width=%2230%22 height=%226.67%22 fill=%22%23fff%22/%3E%3C/svg%3E"); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 30%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3CclipPath id=%22s%22%3E%3Cpath d=%22M0,0v30h60V0z%22/%3E%3C/clipPath%3E%3CclipPath id=%22t%22%3E%3Cpath d=%22M30,15h30v15zv15H0zH0V0zV0h30z%22/%3E%3C/clipPath%3E%3Cg clip-path=%22url%28%23s%29%22%3E%3Cpath d=%22M0,0v30h60V0z%22 fill=%22%23012169%22/%3E%3Cpath d=%22M0,0 60,30M60,0 0,30%22 stroke=%22%23fff%22 stroke-width=%226%22/%3E%3Cpath d=%22M0,0 60,30M60,0 0,30%22 clip-path=%22url%28%23t%29%22 stroke=%22%23C8102E%22 stroke-width=%224%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23fff%22 stroke-width=%2210%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23C8102E%22 stroke-width=%226%22/%3E%3C/g%3E%3C/svg%3E"); }

/* Layout */
.wrap { max-width: 760px; width: 100%; margin: 0 auto; padding: 8px 20px 40px; flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.hero { text-align: center; padding: 28px 0 22px; }
/* Başlıq (H1, SEO) — yığcam və zərif: əsas diqqət platforma çiplərinə və link xanasına düşsün */
.hero h1 { font-size: clamp(1.32rem, 1.05rem + 1.1vw, 1.55rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em;
  margin: 0 auto 8px; max-width: 21em; text-wrap: balance; }
/* Landing səhifələri (/xx/mp3/, /xx/x/ …): yol göstəricisi, platforma nişanı, link nümunəsi */
.crumbs { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--primary-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.page-badge {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--badge, var(--primary)); box-shadow: 0 10px 22px -10px var(--badge, var(--primary));
}
.badge-tiktok { --badge: #111; } .badge-facebook { --badge: #1877F2; }
.badge-instagram { --badge: #DD2A7B; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.badge-mp3 { --badge: #19B6A4; } .badge-x { --badge: #0F1419; } .badge-pinterest { --badge: #E60023; } .badge-vk { --badge: #0077FF; }
.url-example { margin: 10px 4px 0; font-size: .8rem; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.url-example code { font: 600 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }
.lead { color: var(--muted); margin: 0 auto 20px; max-width: 36em; font-size: .97rem; }
.platforms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.platforms li {
  font-size: .95rem; font-weight: 700; padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 7px;
}
.platforms li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--muted)); }
.p-tiktok { --c: #23263A; } .p-instagram { --c: #E1306C; } .p-facebook { --c: #1877F2; } .p-x { --c: #0F1419; } .p-vk { --c: #0077FF; } .p-pinterest { --c: #E60023; } .p-more { --c: var(--accent); color: var(--muted); }
.platforms li { transition: background .2s, color .2s, opacity .2s, border-color .2s; }
/* Link tanınanda: həmin platformanın çipi öz rəngində işıqlanır, qalanları solğunlaşır */
.platforms.has-active li { opacity: .45; }
.platforms.has-active li.active {
  opacity: 1; background: var(--c); border-color: var(--c); color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent);
}
.platforms li.active::before { background: #fff; }
.platforms li.active::after { content: "✓"; font-weight: 800; margin-left: -2px; }

/* Search */
.search { display: flex; gap: 10px; padding: 10px; }
.field {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
  background: #FFFCF9; border: 1.5px solid var(--line); border-radius: 13px; padding: 0 6px 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field-icon { color: var(--muted); flex: none; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 4px; font-size: 1rem; }
.field input::placeholder { color: #A4A7B8; }

/* Düz (flat) düymə: kölgə, qabarıqlıq və "basılma" hərəkəti yoxdur — yalnız rəng dəyişir */
.primary {
  border: 0; cursor: pointer; background: #E9531F; color: #fff; font-weight: 700; letter-spacing: .01em;
  padding: 0 26px; min-height: 52px; border-radius: 12px; font-size: 1.05rem; box-shadow: none;
  transition: background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.primary:hover { background: #D44716; }
.primary:active { background: #C2400F; }
.primary:focus-visible { outline: 3px solid #FFC9B4; outline-offset: 2px; }
#submit { font-size: 1.2rem; min-width: 128px; }     /* əsas "Yüklə" — iri, aydın yazı (ağ/narıncı kontrast 3.7:1) */
.primary:disabled { opacity: .65; cursor: progress; }
.primary.small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.ghost {
  border: 0; background: transparent; cursor: pointer; color: var(--muted); font-weight: 600;
  padding: 8px 10px; border-radius: 9px; font-size: .9rem; white-space: nowrap;
}
.ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.icon-only { font-size: .85rem; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Messages */
.msg { margin: 14px 2px 0; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.msg.error { background: var(--danger-soft); color: var(--danger); }
.msg.info { background: var(--accent-soft); color: #0E7266; }
.msg-retry {
  display: inline-flex; align-items: center; margin: 8px 0 0; padding: 7px 14px; border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; background: var(--danger); color: #fff;
}
.msg-retry::before { content: "↻"; margin-right: 6px; font-weight: 800; }
.msg-retry:hover { filter: brightness(1.08); }
.msg-retry:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Result */
.result { margin-top: 18px; padding: 18px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.media { display: flex; gap: 16px; align-items: flex-start; }
.thumb {
  position: relative; flex: none; width: 168px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(35,38,58,.82); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.meta { min-width: 0; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #F3F0EC; color: var(--muted); text-transform: capitalize; }
.badge.ok { background: var(--accent-soft); color: #0E7266; text-transform: none; }
#nowm::before { content: "✓ "; }   /* işarə dekordur — tərcümə mətni yalnız sözdür */
.meta h2 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uploader { color: var(--muted); margin: 0; font-size: .9rem; }
.note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }

.options .opt-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 10px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1.5px solid var(--line); background: #FFFCF9; border-radius: 13px; padding: 12px 14px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.opt:active:not(:disabled) { transform: translateY(1px); }
.opt:disabled { cursor: default; opacity: .5; }
.opt.active { border-color: var(--primary); background: var(--primary-soft); opacity: 1; }
.opt .q { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.opt .q::after { content: "↓"; color: var(--primary); font-weight: 800; }
.opt .sub { font-size: .78rem; color: var(--muted); }
.opt.audio .q::after { color: var(--accent); }
/* Sürət: ⚡ dərhal (H.264) / ⏳ çevirmə lazımdır. Tövsiyə olunan — sürətli ən yüksək keyfiyyət */
.opt { position: relative; }
.opt .speed { font-size: .74rem; font-weight: 700; margin-top: 2px; display: inline-flex; align-items: flex-start; gap: 4px; }
.opt .speed::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.opt .speed.fast { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.opt .speed.slow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.opt .speed.fast { color: #0E8C7E; }
.opt .speed.slow { color: var(--muted); font-weight: 600; }
.opt.rec { border-color: #19B6A4; box-shadow: 0 0 0 3px rgba(25, 182, 164, .14); }
.opt .rec-tag {
  position: absolute; top: -9px; right: 10px; background: #19B6A4; color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
}
.speed-note { font-size: .78rem; color: var(--muted); margin: 10px 2px 0; line-height: 1.45; }

.progress { margin-top: 18px; }
.bar { height: 10px; background: #F3EDE7; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #FF9B5E); border-radius: 99px; transition: width .4s ease; }
.bar.indeterminate span { width: 35% !important; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.prog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.prog-main { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.prog-text { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.prog-text.pct { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--primary-dark); }
.loading-word { margin-top: 4px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.loading-word::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--primary); vertical-align: middle; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; transform: scale(.6); } }
.eta { color: var(--primary-dark); font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.eta.calc { color: var(--muted); font-weight: 500; }
.prog-detail { margin: 4px 0 0; color: var(--ink); font-size: .88rem; font-variant-numeric: tabular-nums; }
.prog-meta { margin: 2px 0 0; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.stall { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FFF4D6; color: #8A5A00; font-size: .86rem; font-weight: 600; }

.done-box {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: #E3F8EA; border: 1.5px solid #34C26A; outline: none;
  animation: pop .3s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.done-icon { flex: none; color: #1FA654; line-height: 0; }
.done-icon .tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-body { min-width: 0; flex: 1; }
.done-title { display: block; font-size: 1.15rem; line-height: 1.3; font-weight: 800; color: #14773B; }
.done-hint { margin: 2px 0 0; color: #23503A; font-size: .9rem; }
.done-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.done-box .primary { background: #1FA654; box-shadow: none; }
.done-box .primary:hover { background: #17894A; }
.ghost-strong {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 13px;
  border: 2px solid #1FA654; color: #14773B; background: #fff; font-weight: 700; text-decoration: none;
  animation: rise .25s ease-out;
}
.ghost-strong:hover { background: #F2FBF5; }
.compat-box { font-size: .82rem; color: var(--muted); margin: 6px 0 2px; line-height: 1.5; }
.compat-box span { display: block; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary-dark);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; min-height: 0; }

.dl-error {
  margin-top: 18px; padding: 16px; border-radius: 14px; outline: none;
  background: var(--danger-soft); border: 2px solid #F3A9B1; animation: rise .25s ease-out;
}
.dl-error-text { margin: 0; color: var(--danger); font-weight: 700; }
.dl-error .done-actions { justify-content: flex-start; margin-top: 12px; }

/* Steps & features */
.section-title { font-size: 1.3rem; letter-spacing: -.01em; margin: 44px 0 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(35, 38, 58, .04);
}
/* İllüstrasiya — kartın yuxarısı (orta ölçü, hərəkəti göstərir) */
.step-art {
  height: 150px; display: flex; align-items: center; justify-content: center; padding: 12px 14px;
  background: linear-gradient(160deg, #FFF1E8 0%, #FFF9F4 70%); border-bottom: 1px solid var(--line);
}
.step-art svg { width: 100%; height: 100%; max-width: 250px; display: block; }
/* Mətn — kartın altı: nömrə + başlıq + izah */
.step-body { padding: 14px 16px 18px; }
.step-title { display: flex; align-items: center; gap: 10px; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  line-height: 1;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem;
}
.step h3 { margin: 0; font-size: 1.02rem; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
/* "Niyə videoyukle.az?" — üstünlüklər: ikon + başlıq + qısa izah (kompüterdə 4, telefonda 2 sütun) */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.why {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.why:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(35, 38, 58, .07); }
.why-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 10px;
  border-radius: 12px; background: var(--s, var(--primary-soft)); color: var(--c, var(--primary));
}
.why-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why { min-width: 0; }
.why b { display: block; margin-bottom: 4px; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.why p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .why { padding: 14px 12px 12px; } }
@media (max-width: 340px) { .features { grid-template-columns: 1fr; } }

/* Yükləmə sayğacı — formanın altında kiçik, sakit sətir */
.dl-stat { margin: 10px 0 0; text-align: center; font-size: .88rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-stat::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-stat[hidden] { display: none; }

/* "Yapışdır" düyməsi — link xanasının içində (xana dolanda yerini ✕ tutur) */
.paste-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; font: inherit; font-size: .88rem; font-weight: 700; white-space: nowrap;
  background: var(--primary-soft); color: var(--primary-dark); transition: background .15s, transform .1s;
}
.paste-btn:hover { background: #FFD6C4; }
.paste-btn:active { transform: scale(.96); }
.paste-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.paste-btn[hidden] { display: none; }
/* Bufer əlçatmazdırsa — xana qısa vurğulanır: "bura uzun bas" */
@keyframes hintPulse { 0%, 100% { border-color: var(--primary); } 40% { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); } }
.field.hint-pulse { animation: hintPulse 1.1s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .field.hint-pulse { animation: none; } }
@media (max-width: 360px) {   /* dar ekranda yalnız ikon — mətn ekran oxuyucusu üçün qalır */
  .paste-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .paste-btn { padding: 8px 10px; }
}

/* ===== Reklam zonaları (assets/ads.js, /ads/config.json) ===== */
.ad-row { max-width: 980px; width: 100%; min-width: 0; margin: 0 auto; padding: 0 20px; }
.ad-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px auto; width: 100%; min-width: 0; }
.ad-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #A4A7B8; font-weight: 700; }
.ad-box {
  width: var(--w); max-width: 100%; aspect-ratio: var(--ar); overflow: hidden; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ad-box > a, .ad-box > a > img, .ad-box > img, .ad-box > iframe { display: block; width: 100%; height: 100%; border: 0; }
.ad-box > a > img, .ad-box > img { object-fit: cover; }
.ad-placeholder {
  border: 1.5px dashed #E8CDB9; color: #B49C8A; font-size: .8rem; font-weight: 600; text-align: center;
  background: repeating-linear-gradient(135deg, #FFF6EF 0 10px, #FFF1E7 10px 20px);
}
.ad-middle { margin: 36px auto 0; }
/* Yükləmədən sonrakı xana — "Yükləndi!" panelinin altında */
.ad-after { margin: 16px auto 0; }
/* Önizləmə (?ads=preview): hər zonanın adı yuxarı küncdə */
.ad-placeholder[data-label] { position: relative; flex-direction: column; gap: 4px; padding: 6px; }
.ad-placeholder[data-label]::before {
  content: attr(data-label); font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: #E9531F; border-radius: 6px; padding: 2px 8px;
}
/* Yan zonalar — yalnız geniş ekranda, məzmunun kənarında sabit (məzmunu sıxışdırmır) */
/* Yuxarı banner — tam enli üfüqi zolaq (başlığın altında, sütunların üstündə) */
.ad-row-top { max-width: calc(var(--page) + 40px); width: 100%; margin: 0 auto; padding: 4px 20px 0; }
.ad-row-top .ad-top { margin: 0; }
.ad-row-top .ad-box { width: 100%; min-height: 96px; border-radius: 14px; }
/* 3 sütun: sol reklam | məzmun | sağ reklam */
.layout { flex: 1; width: 100%; display: flex; flex-direction: column; }
.layout > .wrap { flex: 1; }
.ad-side { display: none !important; }
@media (min-width: 1200px) {
  .layout {
    display: grid; grid-template-columns: 160px minmax(0, 760px) 160px; column-gap: 40px;
    justify-content: center; align-items: start; max-width: calc(var(--page) + 40px); margin: 0 auto; padding: 0 20px;
  }
  .layout > .wrap { grid-column: 2; padding-left: 0; padding-right: 0; }
  .ad-side { display: flex !important; position: sticky; top: 16px; width: 160px; margin: 26px 0 0; }
  .ad-side[hidden] { display: none !important; }
  .ad-left { grid-column: 1; grid-row: 1; }
  .ad-right { grid-column: 3; grid-row: 1; }
}

/* ===== Ev reklamı (house ads) — canlı, rəngli; real reklam gələnə qədər ===== */
.house {
  position: relative; isolation: isolate; border: 0; color: #fff;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, .16) 0 30%, transparent 31%),
    linear-gradient(120deg, #FF8A3D 0%, #FF5E62 55%, #FF4D86 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.house-scene { position: absolute; z-index: 0; pointer-events: none; }
.house-scene svg { display: block; width: 100%; height: 100%; }
.house-deck { position: absolute; z-index: 1; }
/* Forma: enli zolaq — mətn solda, səhnə sağda */
.house[data-shape="wide"] .house-scene { top: 0; right: 4px; bottom: 0; width: 40%; }
.house[data-shape="wide"] .house-deck  { top: 0; bottom: 0; left: 0; right: 40%; }
/* Dar zolaq (mobil 320×100): səhnədə yalnız qız + kiçik FB nişanı, mətn yığcam */
.house .fb-mini { display: none; }
.house[data-narrow] .fb-mini { display: inline; }
.house[data-narrow] .house-scene { width: 33%; right: 0; }
.house[data-narrow] .house-deck { right: 33%; }
.house[data-narrow] .house-card { padding: 6px 4px 6px 12px; }
.house[data-narrow] .house-icon { display: none; }
.house[data-narrow] .house-title { font-size: .84rem; }
.house[data-narrow] .house-desc {
  font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.house[data-narrow] .house-chip { font-size: .64rem; padding: 1px 6px; }
.house[data-narrow] .house-platforms { gap: 4px; padding-top: 4px; padding-bottom: 4px; }
.house[data-narrow] .house-platforms .house-title { font-size: .78rem; }
.house[data-narrow] .house-chips { gap: 3px; }
/* Nazik zolaq (başlıq): bir sətir mətn solda, kiçik nişanlar sağda — loqo və dillərlə eyni hündürlükdə */
.house[data-shape="strip"] .house-scene { top: 0; bottom: 0; right: 8px; width: 112px; }
.house[data-shape="strip"] .house-deck  { top: 0; bottom: 0; left: 0; right: 124px; }
.house[data-shape="strip"] .house-card { padding: 0 6px 0 8px; gap: 9px; }
.house[data-shape="strip"] .house-icon { width: 28px; height: 28px; border-radius: 9px; }
.house[data-shape="strip"] .house-icon svg { width: 17px; height: 17px; }
.house[data-shape="strip"] .house-text { flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.house[data-shape="strip"] .house-title { font-size: .9rem; flex: none; }
.house[data-shape="strip"] .house-desc { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.house[data-shape="strip"] .house-platforms { flex-direction: row; align-items: center; gap: 10px; padding: 0 8px 0 12px; }
.house[data-shape="strip"] .house-chips { flex-wrap: nowrap; overflow: hidden; gap: 4px; justify-content: flex-start; min-width: 0;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
.house[data-shape="strip"] .house-chip { flex: none; font-size: .66rem; padding: 2px 7px; gap: 4px; }
.house[data-shape="strip"] .house-chip::before { width: 6px; height: 6px; }
/* Mobil zolaq (320×50): yer dardır — nişanlar yox, mətn tam endə; başlıq + qısa izah iki sətirdə */
.house[data-shape="strip"][data-narrow] .house-scene { display: none; }
.house[data-shape="strip"][data-narrow] .house-deck { right: 0; }
.house[data-shape="strip"][data-narrow] .house-card { padding: 0 10px; gap: 9px; }
.house[data-shape="strip"][data-narrow] .house-icon { display: grid; width: 28px; height: 28px; }
.house[data-shape="strip"][data-narrow] .house-text { flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.house[data-shape="strip"][data-narrow] .house-title { font-size: .84rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.house[data-shape="strip"][data-narrow] .house-desc { font-size: .72rem; display: block; max-width: 100%; -webkit-line-clamp: unset; }
.house[data-shape="strip"][data-narrow] .house-platforms { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 0 10px; }
.house[data-shape="strip"][data-narrow] .house-platforms .house-title { font-size: .78rem; }
.house[data-shape="strip"][data-narrow] .house-chips { max-width: 100%; }
.house[data-shape="strip"][data-narrow] .house-chip { font-size: .62rem; padding: 1px 6px; }
/* Tam enli zolaq (≥900px, başlığın altında): iri ikon və mətn, səhnə sağda */
.house[data-xl] .house-scene { width: 42%; right: 24px; }
.house[data-xl] .house-deck { right: 42%; }
.house[data-xl] .house-card { padding: 0 28px; gap: 18px; }
.house[data-xl] .house-icon { width: 56px; height: 56px; border-radius: 16px; }
.house[data-xl] .house-icon svg { width: 30px; height: 30px; }
.house[data-xl] .house-text { gap: 4px; }
.house[data-xl] .house-title { font-size: 1.45rem; letter-spacing: -.01em; }
.house[data-xl] .house-desc { font-size: 1rem; }
.house[data-xl] .house-platforms { gap: 10px; padding: 0 28px; }
.house[data-xl] .house-platforms .house-title { font-size: 1.3rem; }
.house[data-xl] .house-chip { font-size: .86rem; padding: 4px 12px; gap: 6px; }
.house[data-xl] .house-chip::before { width: 9px; height: 9px; }
/* Kvadrat: səhnə yuxarıda, mətn aşağıda */
.house[data-shape="box"] .house-scene  { top: 0; left: 0; right: 0; height: 58%; }
.house[data-shape="box"] .house-deck   { left: 0; right: 0; bottom: 0; height: 42%; }
/* Hündür: mətn yuxarıda, səhnə aşağıda */
.house[data-shape="tall"] .house-scene { left: 0; right: 0; bottom: 0; height: 64%; display: flex; flex-direction: column; }
.house[data-shape="tall"] .house-scene svg { height: 50%; }
.house[data-shape="tall"] .play { display: none; }        /* iki kadrın sərhədinə düşür */
.house[data-shape="tall"] .house-deck  { left: 0; right: 0; top: 0; height: 36%; }

.house-card {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  /* Ardıcıl keçid (iki mətn heç vaxt üst-üstə düşmür): köhnə kart .3s-də tam sönüb gizlənir,
     yeni kart yalnız ondan SONRA (.3s gecikmə ilə) görünür */
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.house-card.is-on {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .35s ease .3s, transform .35s ease .3s, visibility 0s linear .3s;
}
.house[data-shape="box"] .house-card, .house[data-shape="tall"] .house-card { flex-direction: column; justify-content: center; text-align: center; padding: 10px 12px; gap: 6px; }
.house-icon {
  flex: none; width: 34px; height: 34px; border-radius: 11px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(120, 20, 30, .45);
}
.house-icon svg { width: 20px; height: 20px; }
.house[data-shape="tall"] .house-icon { width: 44px; height: 44px; border-radius: 13px; }
.house[data-shape="tall"] .house-icon svg { width: 24px; height: 24px; }
.house-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.house-title { font-size: .95rem; font-weight: 800; color: #fff; line-height: 1.2; text-shadow: 0 1px 2px rgba(120, 20, 30, .25); }
.house-desc { font-size: .78rem; color: rgba(255, 255, 255, .92); line-height: 1.3; }
.house-desc a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.house[data-shape="tall"] .house-title { font-size: 1rem; }
.house[data-shape="box"] .house-icon { display: none; }            /* kvadratda səhnə artıq var — mətn sığsın */
.house-platforms { flex-direction: column; justify-content: center; gap: 6px; }
.house[data-shape="wide"] .house-platforms { align-items: flex-start; }
.house-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.house[data-shape="wide"] .house-chips { justify-content: flex-start; }
.house-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px;
  background: #fff; font-size: .7rem; font-weight: 800; color: var(--ink);
}
.house-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
/* Hündür zona dardır (160px): 6 platforma + uzun başlıq (RU) sığsın */
.house[data-shape="tall"] .house-platforms { padding: 8px 8px; gap: 5px; }
.house[data-shape="tall"] .house-platforms .house-title { font-size: .9rem; }
.house[data-shape="tall"] .house-chips { gap: 4px; }
.house[data-shape="tall"] .house-chip { font-size: .66rem; padding: 2px 7px; gap: 4px; }
/* Yumşaq hərəkət: ürəklər yavaşca qalxıb itir, nişanlar yellənir, ulduzlar parıldayır */
.house .fl { transform-box: fill-box; transform-origin: center; }
.house .rise { animation: vy-rise 5.5s ease-in-out infinite; }
.house .bob { animation: vy-bob 3.6s ease-in-out infinite; }
.house .twinkle { animation: vy-twinkle 3s ease-in-out infinite; }
@keyframes vy-rise { 0% { transform: translateY(6px) scale(.7); opacity: 0; } 20% { opacity: 1; } 75% { opacity: .9; } 100% { transform: translateY(-34px) scale(1.05); opacity: 0; } }
@keyframes vy-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes vy-twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
/* Mövzulu səhnələrin yüngül hərəkətləri */
.house .fall { animation: vy-fall 3.4s ease-in infinite; }
.house .drop { animation: vy-drop 1.6s ease-in-out infinite; }
.house .fillbar { transform-origin: left center; animation: vy-fill 3.2s ease-in-out infinite; }
.house .eq { transform-origin: center bottom; animation: vy-eq 1.1s ease-in-out infinite alternate; }
.house .pulse { animation: vy-pulse 2.8s ease-in-out infinite; }
@keyframes vy-fall { 0% { transform: translateY(-10px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes vy-drop { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2.5px); } }
@keyframes vy-fill { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
@keyframes vy-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes vy-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
/* "Tut və yüklə" səhnəsi: video kartları əyri yolla telefona uçur, telefon/qovluq yüngülcə üzür */
.house .fly { transform-box: fill-box; transform-origin: center; opacity: 0; animation: vy-fly 3.6s cubic-bezier(.45, 0, .3, 1) infinite; }
.house .floaty { animation: vy-floaty 4.2s ease-in-out infinite; }
.house .pop { transform-origin: center; animation: vy-pop 3.6s ease-in-out infinite; }
.house .dash { animation: vy-dash 1.4s linear infinite; }
@keyframes vy-fly {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  12% { transform: translate(0, 0) scale(1); opacity: 1; }
  55% { transform: translate(var(--mx), var(--my)) scale(1); opacity: 1; }
  86% { transform: translate(var(--dx), var(--dy)) scale(.5); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}
@keyframes vy-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes vy-pop { 0%, 72%, 100% { transform: scale(1); } 82% { transform: scale(1.3); } }
@keyframes vy-dash { to { stroke-dashoffset: -18; } }
/* Hər zona öz rəngində — saytın açıq fonundan və bir-birindən seçilsin */
.house[data-theme="watch"], .house[data-theme="catch"] {
  background: radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, .16) 0 30%, transparent 31%), linear-gradient(120deg, #FF6F91 0%, #F2457E 50%, #C42B8F 100%);
}
.house[data-theme="download"] {
  background: radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, .14) 0 30%, transparent 31%), linear-gradient(160deg, #13C2AE 0%, #0E9FB3 45%, #1670D0 100%);
}
.house[data-theme="music"] {
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14) 0 30%, transparent 31%), linear-gradient(160deg, #8B5CF6 0%, #7C3AED 45%, #C026D3 100%);
}
.house[data-theme="react"] {
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .16) 0 30%, transparent 31%), linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
}
.house[data-theme="platforms"] {
  background: radial-gradient(90% 120% at 100% 50%, rgba(129, 140, 248, .35) 0 35%, transparent 36%), linear-gradient(120deg, #1E1B4B 0%, #312E81 55%, #4338CA 100%);
}
/* Hündür zonada mövzulu səhnə bir SVG-dir (izləyənlər səhnəsi iki kadrdır) */
.house[data-shape="tall"]:not([data-theme="watch"]) .house-scene svg { height: 100%; }
@media (prefers-reduced-motion: reduce) { .house .fl { animation: none !important; opacity: 1; } }

/* ===== Reklam qapısı — yükləmədən əvvəl, ekranın ortasında (assets/ads.js → vyAdGate) ===== */
html.gate-open, html.gate-open body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(24, 20, 44, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: vy-fade .2s ease-out;
}
.gate-card {
  width: min(100%, 384px); max-height: calc(100vh - 32px); overflow: auto; outline: none;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  animation: vy-pop .26s cubic-bezier(.2, .9, .3, 1.2);
}
.gate-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gate-count {
  font-size: .95rem; font-weight: 800; color: #C2410C; background: #FFF1E7; border-radius: 999px; padding: 4px 12px;
  font-variant-numeric: tabular-nums;
}
.ad-zone.ad-gate { margin: 0; }
.gate-track { height: 6px; background: #F3E8DF; border-radius: 999px; overflow: hidden; }
.gate-track > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF8A3D, #E9531F); transition: width .2s linear; }
.gate-status { margin: 0; min-height: 1.35em; text-align: center; font-size: .9rem; font-weight: 600; color: #5A5E73; }
.gate-btn { width: 100%; }
.gate-btn:disabled { cursor: not-allowed; opacity: .55; }
@keyframes vy-fade { from { opacity: 0; } }
@keyframes vy-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* "Sizin reklamınız burada ola bilər" — qapının ev reklamı: yuxarıda səhnə (qalan yer), altda mətn — üst-üstə düşmür */
.gate-house { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.gate-house .gh-scene { position: relative; flex: 1 1 auto; min-height: 0; padding-top: 6px; pointer-events: none; }
.gate-house .gh-scene svg { width: 100%; height: 100%; display: block; }
.gate-house .gh-text {
  position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px 14px 14px; text-align: center;
}
.gh-title { font-size: 1.2rem; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 2px rgba(120, 30, 0, .18); }
.gh-desc { font-size: .82rem; line-height: 1.3; opacity: .95; margin-bottom: 7px; }
.gh-mail {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  background: #fff; color: #E9531F; font-weight: 800; font-size: .92rem; text-decoration: none;
  box-shadow: 0 6px 16px rgba(120, 30, 0, .22); transition: transform .15s ease;
}
.gh-mail:hover, .gh-mail:focus-visible { transform: translateY(-1px); }
.house .wave { animation: vy-wave 1.8s ease-out infinite; }
@keyframes vy-wave { 0% { opacity: 0; transform: translateX(-5px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(7px); } }
@media (max-width: 380px) { .gh-title { font-size: 1.08rem; } .gh-desc { font-size: .78rem; } }

/* ===== Video reklam — fayl hazırlanarkən ===== */
.preroll { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFF9F4; }
.preroll-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.preroll-status { font-size: .85rem; font-weight: 700; color: #14773B; }
.preroll-player { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: 52vh; }
.preroll-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.preroll-player video[hidden], .preroll-frame[hidden], .pr-btn[hidden] { display: none; }
.preroll-frame, .preroll-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.preroll-player.ad-placeholder { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #FFF6EF 0 10px, #FFF1E7 10px 20px); }
/* Video olmayanda (şəbəkə kodu / önizləmə) 16:9 hündürlüyü — aspect-ratio dəstəkləməyən brauzerlər üçün (iOS ≤14) */
@supports not (aspect-ratio: 1 / 1) {
  .preroll-player.is-html::before { content: ""; display: block; padding-top: 56.25%; }
  .preroll-player.ad-placeholder { min-height: 200px; }
}
.ad-box > a > video, .ad-box > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-btn {
  position: absolute; border: 0; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700;
  padding: 7px 12px; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.pr-sound { left: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; }
.pr-more { left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.pr-skip { right: 10px; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.pr-skip:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.pr-skip:disabled { cursor: default; }
.pr-btn:focus-visible { outline: 3px solid #FFC9B4; outline-offset: 2px; }

/* Haqqında + FAQ (SEO mətni — oxunaqlı, sakit) */
.about { margin-top: 44px; }
.about h2, .faq h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 10px; }
.about p { margin: 0 0 10px; color: #3F435A; }
.faq { margin-top: 32px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 700; color: var(--primary);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-item summary h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.faq-item p { margin: 0; padding: 0 16px 14px; color: #3F435A; }

/* Footer — tünd (navy) fon, ağ mətn. Masaüstü: [Yükləyicilər] [Hüquqi] [Əlaqə + qeydlər + ©] yan-yana */
.footer {
  margin-top: 36px; background: #1B1F33; color: rgba(255, 255, 255, .62); font-size: .86rem; text-align: left;
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: calc(var(--page) + 40px); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 32px 56px; align-items: start;
}
.footer p { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-h { margin: 0; font-size: .78rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
/* Yükləyicilər: 2 sütun — 1-ci: TikTok, Instagram, Facebook, X; 2-ci: VK, Pinterest, MP3 */
.footer-tools .footer-list { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 9px 32px; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-list a:hover span:last-child, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-list a[aria-current="page"] { color: #FFB089; }
/* Platforma ikonları — kiçik, öz rəngində */
.fi {
  width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: var(--badge, var(--primary)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.fi svg { width: 15px; height: 15px; }
.footer-about { gap: 10px; max-width: 520px; }
.footer-contact { color: #fff; font-weight: 600; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 800; }
.footer-note { font-size: .8rem; line-height: 1.55; color: rgba(255, 255, 255, .55); }
.ad-note { font-size: .74rem; line-height: 1.55; color: rgba(255, 255, 255, .42); }
.copy { color: rgba(255, 255, 255, .5); font-size: .8rem; padding-top: 6px; }
.footer a:focus-visible { outline: 2px solid #FFB089; outline-offset: 3px; border-radius: 4px; }
/* Planşet: iki siyahı yan-yana, qeydlər altda; mobil: hamısı alt-alta */
@media (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
  .footer { padding-top: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-tools .footer-list { gap: 10px 24px; }
}
@media (max-width: 359px) {   /* çox dar ekran: yükləyicilər bir sütunda */
  .footer-tools .footer-list { grid-template-rows: none; grid-auto-flow: row; }
}
/* MP3 səhifəsi: səs seçimi birinci göstərilsin */
body[data-page="mp3"] .options { display: flex; flex-direction: column; }
body[data-page="mp3"] #audioBlock { order: -1; }
body[data-page="mp3"] #audioBlock .opt-head { margin-top: 20px; }

/* Hüquqi səhifələr — oxunaqlı mətn */
.legal { max-width: 720px; margin: 0 auto; padding: 12px 20px 48px; flex: 1; width: 100%; }
.legal h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); letter-spacing: -.02em; margin: 18px 0 4px; }
.legal .updated { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.legal .intro { font-size: 1.05rem; color: #3F435A; }
.legal h2 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #3F435A; line-height: 1.65; }
.legal ul { padding-left: 1.2em; margin: 6px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--primary-dark); }
.legal .back { display: inline-block; margin-top: 28px; font-weight: 700; text-decoration: none; }

/* Mobile */
@media (max-width: 600px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .ad-row-top { padding-left: 16px; padding-right: 16px; }
  .footer-inner { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .logo-text { font-size: 1.1rem; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 1.25rem; }
  .lead { font-size: .93rem; margin-bottom: 16px; }
  .platforms { gap: 6px; }
  .platforms li { font-size: .86rem; padding: 7px 11px; gap: 6px; }
  .platforms li::before { width: 9px; height: 9px; }
  .search { flex-direction: column; }
  .primary { width: 100%; }
  .done-actions .primary { width: auto; }
  .media { flex-direction: column; }
  .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-art { height: 170px; }
  .section-title { margin-top: 32px; }
}
@media (max-width: 400px) {   /* kiçik telefonlar (iPhone SE/mini): loqo + dillər bir sətirdə qalsın */
  .ad-row { padding: 0 16px; }
}
@media (max-width: 360px) {   /* kiçik telefon: yazı qalır, bir az kiçilir */
  .logo-text { font-size: 1.02rem; }
  .logo { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done-icon .tick { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------ "Bizə bildirin" (assets/report.js) */
.footer-report a {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 7px 14px; font-size: .92rem;
}
.footer-report a::before { content: "✉"; font-weight: 400; }
.footer-report a:hover { background: rgba(255, 255, 255, .1); }
/* Xəta mesajında və yükləmə xətasında — "Problem oldu? Bizə bildirin" */
.msg-report, .report-offer {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; color: inherit;
}
.msg-report { display: block; margin-top: 8px; font-size: .92rem; }
.report-offer { display: block; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.msg-report:hover, .report-offer:hover { color: var(--primary-dark); }
.msg-report:focus-visible, .report-offer:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

html.rp-open { overflow: hidden; }
.rp-dlg {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(35, 38, 58, .45);
}
.rp-dlg[open]:not(:modal) { position: fixed; inset: 16px; margin: auto; height: fit-content; z-index: 1000; }
.rp-dlg::backdrop { background: rgba(35, 38, 58, .45); }
.rp-form, .rp-thanks { padding: 20px 20px 18px; }
.rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rp-head h2, .rp-thanks h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.rp-x { border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; margin: -4px -6px 0 0; }
.rp-x:hover { color: var(--ink); }
.rp-intro { margin: 6px 0 14px; color: var(--muted); font-size: .94rem; }
.rp-field { margin-bottom: 12px; }
.rp-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.rp-hint { font-weight: 500; color: var(--muted); }
.rp-field input, .rp-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #FFFCF9;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.rp-field textarea { resize: vertical; min-height: 96px; }
.rp-field input:focus, .rp-field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.rp-shot { margin: 2px 0 10px; }
.rp-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rp-file-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .92rem;
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 9px 12px; color: var(--ink);
}
.rp-file-btn::before { content: "📎"; }
.rp-file-btn:hover { border-color: var(--primary); }
.rp-file-input:focus-visible + .rp-file-btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.rp-file-btn[hidden], .rp-busy[hidden], .rp-preview[hidden], .rp-err[hidden], .rp-form[hidden], .rp-thanks[hidden] { display: none; }
.rp-busy { margin-left: 10px; color: var(--muted); font-size: .9rem; }
.rp-preview { display: flex; align-items: center; gap: 10px; }
.rp-preview img { max-width: 140px; max-height: 110px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rp-auto, .rp-privacy { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.rp-privacy a { color: inherit; font-weight: 700; }
.rp-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .92rem; }
.rp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rp-send { min-width: 120px; }
.rp-thanks { text-align: center; padding-top: 28px; outline: 0; }
.rp-thanks p { color: var(--muted); margin: 8px 0 18px; }
.rp-ok { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: #0E7266;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
@media (max-width: 480px) {
  .rp-form, .rp-thanks { padding: 18px 16px 16px; }
  .rp-actions { flex-direction: column-reverse; }
  .rp-actions button { width: 100%; }
}
