/* ============================================================
   Footer · modals · reels viewer · back-to-top
   ============================================================ */

/* --- footer --- */
footer{background:#080A2E;color:#a7abd0;margin-top:48px}
.foot-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.5fr;gap:34px;
  padding:44px 0 36px;border-top:1px solid rgba(255,255,255,.09)
}
.foot-col h4{color:#fff;font-size:14px;margin-bottom:16px}
.foot-col ul li{margin-bottom:2px}
.foot-col ul li a{display:block;font-size:13px;padding:5px 0;color:#a2a2ab;transition:.15s}
.foot-col ul li a:hover{color:#fff}

/* تابع كل العرب — platform, name and follower count in one row */
.foot-follow ul li a{
  display:flex;align-items:center;gap:9px;padding:6px 0;color:#a2a2ab
}
.foot-follow .icon{width:15px;height:15px;flex-shrink:0;transition:color .15s}
.foot-follow a:hover .icon{color:var(--net,#fff)}
.foot-follow a span{flex:1;min-width:0}
.foot-follow a b{
  color:#6f6f78;font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap
}
.foot-follow a:hover b{color:#c9c9d1}

/* newsletter */
.foot-news h4{color:#fff;font-size:15px;margin-bottom:10px}
.foot-news p{font-size:13px;line-height:1.85;color:#8f8f97;max-width:420px}
.foot-news .nl-form{
  display:flex;align-items:center;gap:0;margin-top:18px;max-width:420px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:5px 6px 5px 18px
}
.foot-news .nl-form input{
  flex:1;min-width:0;height:38px;border:none;background:none;outline:none;
  font-family:inherit;font-size:13.5px;color:#f0efec
}
.foot-news .nl-form input::placeholder{color:#6f6f78}
.foot-news .nl-form button{
  height:38px;padding:0 22px;border-radius:999px;background:var(--red);color:#fff;
  border:1px solid var(--red);font-family:var(--font-head);font-weight:800;font-size:13px;
  transition:.2s;line-height:1;flex-shrink:0
}
.foot-news .nl-form button:hover{background:var(--red-deep);border-color:var(--red-deep)}
.foot-news .nl-done{
  display:none;margin-top:14px;max-width:420px;font-size:13px;font-weight:700;color:#fff;
  background:rgba(204,0,0,.18);border:1px solid rgba(204,0,0,.4);border-radius:999px;
  padding:12px 18px;text-align:center
}
.foot-socials{display:flex;gap:16px;margin-top:22px}
.foot-socials a{color:#8f8f97;transition:.15s}
.foot-socials .icon{width:18px;height:18px}
.foot-socials .s-fb:hover{color:var(--fb)}
.foot-socials .s-ig:hover{color:var(--ig)}
.foot-socials .s-tg:hover{color:var(--tg)}
.foot-socials .s-wa:hover{color:var(--wa)}
.foot-socials .s-yt:hover{color:var(--yt)}

/* legal bar */
.foot-bottom{
  border-top:1px solid rgba(255,255,255,.09);padding:22px 0;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  font-size:12px;color:#6f6f78
}
.foot-brand{display:flex;align-items:center;gap:14px}
.foot-brand .logo .brand-mark{width:104px;height:auto;color:#fff}
.foot-brand .logo .brand-mark g{fill:currentColor}
.foot-legal{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.foot-legal a{color:#8f8f97;transition:.15s}
.foot-legal a:hover{color:#fff}
.foot-legal i{color:#3a3a41;font-style:normal}
.foot-app,.foot-lang{
  display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;
  border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#f4f4f2;
  font-family:var(--font-head);font-weight:700;font-size:12px;transition:.2s;line-height:1
}
.foot-app:hover,.foot-lang:hover{border-color:var(--red);color:#fff}
.foot-app .icon,.foot-lang .icon{width:15px;height:15px}
.foot-dev-row{border-top:1px solid rgba(255,255,255,.07);padding:14px 0;text-align:center}
.foot-dev{display:inline-flex;align-items:center;gap:8px;color:#5c5c64;font-size:11.5px}
.foot-dev img{height:18px;width:auto;display:block;opacity:.75}
.foot-dev:hover{color:#a2a2ab}
/* --- modals --- */
/* Above the Welcomer creative, which renders at z-index 1040. */
.modal-bg{position:fixed;inset:0;background:rgba(10,10,12,.6);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;z-index:1100;padding:20px}
.modal-bg.open{display:flex}
.modal{background:var(--surface);border-radius:4px;width:100%;max-width:400px;padding:28px;position:relative;border-top:4px solid var(--red);animation:pop .22s ease}
@keyframes pop{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
.modal .close{position:absolute;top:14px;left:14px;color:var(--muted);padding:4px;border-radius:4px;transition:.15s}
.modal .close:hover{background:var(--surface-2);color:var(--red)}
.modal h3{font-size:20px;font-weight:800;margin-bottom:4px}
.modal .sub{font-size:12.5px;color:var(--muted);margin-bottom:20px}
.field{margin-bottom:14px}
.field label{display:block;font-size:12.5px;font-weight:600;margin-bottom:6px}
.field input{width:100%;border:1px solid var(--line);border-radius:4px;padding:11px 14px;font-family:inherit;font-size:14px;background:var(--surface-2);color:var(--ink);outline:none;transition:.2s}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select{background:var(--input)}
.field input:focus,.field textarea:focus{border-color:var(--red);background:var(--surface);box-shadow:0 0 0 3px var(--red-soft)}
.field textarea{width:100%;border:1px solid var(--line);border-radius:4px;padding:11px 14px;font-family:inherit;font-size:14px;background:var(--surface-2);color:var(--ink);outline:none;transition:.2s;min-height:90px;resize:vertical}
.btn-red{display:inline-flex;align-items:center;gap:7px;height:42px;background:var(--red);color:#fff;border-radius:4px;padding:0 22px;font-weight:600;font-size:13.5px;transition:.2s;justify-content:center;line-height:1}
.btn-red:hover{background:var(--red-deep);box-shadow:0 4px 14px rgba(204,0,0,.3)}
.btn-red:active{transform:scale(.98);box-shadow:none}
.modal .btn-red{width:100%;height:46px;margin-top:6px}
.modal .alt{text-align:center;font-size:12.5px;color:var(--muted);margin-top:16px}
.modal .alt a{color:var(--red);font-weight:600}

/* --- ticker news popup --- */
.news-modal{max-width:560px;padding:0;overflow:hidden}
.news-modal .nm-head{background:var(--black-block);color:var(--on-black);padding:20px 24px 18px}
.news-modal .nm-head .cat-tag{margin-bottom:10px}
.news-modal .nm-head h3{font-size:19px;font-weight:800;line-height:1.6}
.news-modal .nm-meta{display:flex;align-items:center;gap:12px;font-size:12px;color:#b9b9bf;margin-top:10px;flex-wrap:wrap}
.news-modal .nm-meta .icon{width:13px;height:13px}
.news-modal .nm-body{padding:20px 24px;font-size:14px;line-height:1.9;color:var(--ink-2)}
.news-modal .nm-share{display:flex;align-items:center;gap:9px;padding:0 24px 22px;flex-wrap:wrap}
.news-modal .nm-share span{font-size:12px;color:var(--muted);margin-left:4px}
.news-modal .close{color:#b9b9bf}
.news-modal .close:hover{background:rgba(255,255,255,.12);color:#fff}
.share-b{width:38px;height:38px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;transition:transform .15s}
.share-b:hover{transform:scale(1.1)}
.share-b .icon{width:16px;height:16px}
.share-b.s-fb{background:var(--fb);color:#fff}
.share-b.s-ig{background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF);color:#fff}
.share-b.s-tg{background:var(--tg);color:#fff}
.share-b.s-wa{background:var(--wa);color:#fff}
.share-copy{width:auto;border-radius:4px;padding:0 16px;gap:7px;background:var(--surface-2);color:var(--ink);border:1px solid var(--line);font-size:12.5px}
.share-copy:hover{border-color:var(--red);color:var(--red)}

/* --- reels viewer --- */
.reels-bg{position:fixed;inset:0;background:rgba(8,8,10,.95);z-index:1120;display:none;align-items:center;justify-content:center;gap:18px}
.reels-bg.open{display:flex}
.reel{width:min(430px,90vw);height:min(84vh,760px);background:#131316;border-radius:4px;position:relative;overflow:hidden;animation:pop .22s ease}
/* مواجهة clips are 16:9 — give the popup a wide landscape frame on desktop
   (mobile keeps the tall reel shape above). */
@media (min-width:721px){
  .reel{width:min(960px,92vw);height:auto;aspect-ratio:16/9;max-height:86vh}
}
.reel-view{position:absolute;inset:0;transition:transform .4s cubic-bezier(.22,.8,.3,1);will-change:transform}
.reel .ph-dark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.reel .play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:2}
.reel .play span{width:64px;height:64px;border-radius:4px;background:var(--red);display:flex;align-items:center;justify-content:center}
.reel .play .icon{width:26px;height:26px;fill:#fff;stroke:none;margin-right:-3px}
.reel-info{position:absolute;bottom:0;right:0;left:0;padding:70px 18px 16px;background:linear-gradient(to top,rgba(0,0,0,.92),transparent);color:#fff;z-index:3}
.reel-info .vcat{position:static;display:inline-block;margin-bottom:8px}
.reel-info h3{font-size:16px;font-weight:800;line-height:1.6;color:#fff}
.reel-info .dur-t{font-size:12px;color:#b9b9bf;margin-top:6px;font-variant-numeric:tabular-nums}
.reel-count{position:absolute;top:14px;right:14px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;padding:3px 11px;border-radius:4px;font-variant-numeric:tabular-nums;z-index:4}
/* Brid video player fills the reel; its own controls sit under the info strip. */
.reel,.reel-player,.reel-player .brid,.reel-player iframe,.reel-player video{border-radius:0}
.reel-player{position:absolute;inset:0;width:100%;height:100%;background:#000;z-index:1}
.reel-player .brid,.reel-player iframe,.reel-player video{position:absolute;inset:0;z-index:1;width:100%!important;height:100%!important}
/* Let the player receive clicks; only the title/open-button intercept. */
.reel-player ~ .reel-info{pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.85),transparent 60%)}
.reel-player ~ .reel-info .reel-open,.reel-player ~ .reel-info h3{pointer-events:auto}
.reel-open{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:9px 16px;border-radius:999px;background:var(--red);color:#fff;font-family:var(--font-head);font-weight:800;font-size:12.5px}
.reel-open:hover{background:var(--red-deep)}
.reel-open .icon{width:14px;height:14px}
.reels-nav{display:flex;flex-direction:column;gap:10px}
.reels-nav button,.reels-close{width:46px;height:46px;border-radius:4px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:#fff;display:flex;align-items:center;justify-content:center;transition:.15s}
.reels-nav button:hover,.reels-close:hover{background:var(--red);border-color:var(--red)}
.reels-nav button:disabled{opacity:.3;pointer-events:none}
.reels-close{position:fixed;top:18px;left:18px;z-index:1121}
.reels-hint{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);color:#8f8f97;font-size:11.5px}

/* --- back to top --- */
.to-top{position:fixed;bottom:18px;inset-inline-end:18px;width:44px;height:44px;border-radius:4px;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;z-index:90;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 4px 14px rgba(204,0,0,.35)}
.to-top.show{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--red-deep)}
.to-top .icon{transform:rotate(180deg)}
