/* فيديو PixMatic Studio تحت أزرار الـ hero: إطار بحبر غامق زي باقي الموقع، ونور دهبي وراه */
.promo-video {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(1120px, calc(100vw - 48px));
  margin: clamp(30px, 5vh, 56px) auto clamp(20px, 3vh, 40px);
  position: relative;
  isolation: isolate;
  animation: paper-in .9s .34s cubic-bezier(.2, .8, .2, 1) both;
}
.promo-video::before { /* نور دهبي ناعم ورا الإطار */
  content: ''; position: absolute; inset: -9% -7% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(252, 176, 23, .32), rgba(252, 176, 23, 0) 70%);
  filter: blur(10px);
}
.pv-head {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px;
  font: 700 12px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #995900;
}
.pv-head::before, .pv-head::after { content: ''; width: 34px; height: 1.5px; background: currentColor; opacity: .55; }
.pv-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  border-radius: 22px; background: #f6efdf;
  border: 1.5px solid #202620; box-shadow: 7px 7px 0 #202620, 0 40px 90px -40px rgba(80, 55, 10, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}
.pv-frame:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 #202620, 0 46px 100px -40px rgba(80, 55, 10, .5); }
.pv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #f6efdf; }

/* زرار التشغيل الكبير (قبل ما يشتغل، أو لو المتصفح منع التشغيل التلقائي) */
.pv-play {
  position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; z-index: 3;
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #202620; background: #fffdf7; box-shadow: 4px 4px 0 #202620; color: #202620;
  font: 800 15px/1 Inter, sans-serif; transition: transform .2s, box-shadow .2s, opacity .3s;
}
body[dir="rtl"] .pv-play { padding: 12px 12px 12px 22px; font-family: Cairo, Inter, sans-serif; }
.pv-play:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #202620; }
.pv-play i { width: 46px; height: 46px; border-radius: 50%; background: #fcb017; display: grid; place-items: center; border: 1.5px solid #202620; }
.pv-play i svg { margin-inline-start: 3px; }
.promo-video.is-playing .pv-play { opacity: 0; pointer-events: none; transform: scale(.94); }

/* الصوت وملء الشاشة فوق على اليمين (المكان ده فاضي في الفيديو)، والتقدم خط رفيع على حرف الإطار */
.pv-bar {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: flex; align-items: center; gap: 10px; direction: ltr;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s;
}
.promo-video.is-playing .pv-bar { opacity: 1; transform: none; }
.pv-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #202620; background: rgba(255, 253, 247, .94); color: #202620; box-shadow: 2px 2px 0 #202620;
  font: 700 13px/1 Inter, sans-serif; white-space: nowrap;
}
body[dir="rtl"] .pv-btn { font-family: Cairo, Inter, sans-serif; }
.pv-btn:hover { background: #fff0ce; }
.pv-btn.pv-icon { width: 38px; padding: 0; justify-content: center; }
.pv-sound.is-on { background: #fcb017; }
.pv-sound .off, .pv-sound.is-on .on { display: none; }
.pv-sound.is-on .off { display: inline; }
.pv-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 12px; cursor: pointer; opacity: 0; transition: opacity .25s; }
.pv-progress::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(32, 38, 32, .12); }
.pv-progress i { position: absolute; left: 0; bottom: 0; display: block; height: 4px; width: 0; background: #fcb017; box-shadow: 0 0 10px rgba(252, 176, 23, .8); }
.promo-video.is-playing .pv-progress { opacity: 1; }
.pv-frame:hover .pv-progress::before, .pv-frame:hover .pv-progress i { height: 6px; }

@media (max-width: 640px) {
  .promo-video { width: calc(100vw - 28px); margin: 22px auto 8px; }
  header.hero:has(.promo-video) { padding-bottom: 24px; }
  .pv-sound span { display: none !important; }
  .pv-sound { width: 32px; padding: 0; justify-content: center; }
  .pv-head { font-size: 10.5px; margin-bottom: 12px; }
  .pv-frame { border-radius: 14px; box-shadow: 4px 4px 0 #202620; }
  .pv-play { padding: 8px 16px 8px 8px; font-size: 13px; gap: 10px; }
  .pv-play i { width: 36px; height: 36px; }
  .pv-bar { top: 8px; right: 8px; gap: 6px; }
  .pv-btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .pv-btn.pv-icon { width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-video { animation: none; }
}

/* متاح على: Mac / Windows / إضافة فوتوشوب (مكان بادج "NEW" القديم).
   الكلمة في سطر لوحدها، والعلامات التلاتة تحتها في نص العنوان بالظبط */
.hero-platforms {
  justify-self: center; align-self: center; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px;
  width: 100%; max-width: 640px; margin: 0 auto 30px; animation: paper-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
.hp-label {
  flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 2px;
  font: 700 12px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #995900;
}
.hp-label::before, .hp-label::after { content: ''; width: 30px; height: 1.5px; background: currentColor; opacity: .5; }
body[dir="rtl"] .hp-label { font-family: Cairo, Inter, sans-serif; font-size: 14px; letter-spacing: 0; }
.hp-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #202620; background: #fffdf7; color: #202620; box-shadow: 3px 3px 0 #202620;
  font: 700 14.5px/1 Inter, sans-serif; white-space: nowrap;
}
body[dir="rtl"] .hp-chip { font-family: Cairo, Inter, sans-serif; font-size: 15px; }
.hp-chip svg { flex: none; }
.hp-ps { width: 23px; height: 23px; border-radius: 6px; background: #001e36; color: #31a8ff; display: inline-grid; place-items: center; font: 800 11px/1 Inter, sans-serif; font-style: normal; flex: none; }
@media (max-width: 640px) {
  .hero-platforms { gap: 8px 6px; margin-bottom: 20px; }
  .hp-label { font-size: 10.5px; }
  body[dir="rtl"] .hp-label { font-size: 12.5px; }
  .hp-chip { height: 33px; padding: 0 10px; font-size: 12px; gap: 6px; box-shadow: 2px 2px 0 #202620; }
  body[dir="rtl"] .hp-chip { font-size: 13px; }
  .hp-ps { width: 19px; height: 19px; font-size: 9.5px; }
}
