/* ============================================================
   ADS HERO — بانر الإعلانات أعلى لوحة المستخدم (صور/فيديوهات يديرها الأدمن من "لوحة الإعلانات")
   ============================================================ */
.spot-hero {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    background: #070a14;
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 36px rgba(251, 191, 36, 0.08);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    animation: spotHeroIn 0.6s cubic-bezier(.2, .8, .2, 1) both;
}
.spot-hero.show { display: block; }
@media (max-width: 600px) { .spot-hero { aspect-ratio: 16 / 9; border-radius: 20px; } }

@keyframes spotHeroIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }

/* لمعة ذهبية خفيفة تمر على الحافة العلوية */
.spot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 150, 0.10) 50%, transparent 65%);
    background-size: 250% 100%;
    animation: spotHeroShine 7s ease-in-out infinite;
}
@keyframes spotHeroShine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

.spot-hero-track { position: absolute; inset: 0; }

.spot-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.spot-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s ease, visibility 0s;
    z-index: 1;
}
.spot-slide.has-link { cursor: pointer; }

.spot-slide img,
.spot-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
/* حركة تكبير هادئة (Ken Burns) على الصور فقط */
.spot-slide img { transform: scale(1.08); transition: transform 8s ease-out; }
.spot-slide.active img { transform: scale(1); }

/* تدرّج سفلي لقراءة العنوان فوق أي صورة */
.spot-slide-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5, 8, 18, 0.88) 0%, rgba(5, 8, 18, 0.35) 38%, transparent 62%),
        linear-gradient(90deg, rgba(5, 8, 18, 0.25), transparent 30%, transparent 70%, rgba(5, 8, 18, 0.25));
    pointer-events: none;
}

.spot-slide-caption {
    position: absolute;
    inset-inline: 18px;
    bottom: clamp(20px, 6cqi, 30px);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(.2, .8, .2, 1) 0.25s, opacity 0.7s ease 0.25s;
}
.spot-slide.active .spot-slide-caption { transform: none; opacity: 1; }

.spot-slide-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.spot-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0b0e1a;
    background: linear-gradient(135deg, #fde68a, #fbbf24 55%, #d97706);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}
.spot-slide-title {
    margin: 0;
    color: #fff;
    font-size: clamp(0.88rem, 3.8cqi, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spot-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(10, 14, 26, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.spot-slide.has-link:hover .spot-cta { background: #fbbf24; color: #0b0e1a; }
[dir="rtl"] .spot-cta i { transform: scaleX(-1); }

/* مؤشرات بشكل "ستوري" — كل شريط يمتلئ خلال مدة عرض الإعلان */
.spot-progress {
    position: absolute;
    inset-inline: 18px;
    bottom: 11px;
    z-index: 3;
    display: flex;
    gap: 5px;
}
.spot-progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    border: 0;
}
.spot-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}
.spot-progress-bar.done span { width: 100%; }

/* أسهم التنقل — تظهر عند المرور بالماوس فقط (بالموبايل السحب يكفي) */
.spot-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
}
.spot-nav:hover { background: rgba(251, 191, 36, 0.9); color: #0b0e1a; }
.spot-nav.prev { inset-inline-start: 12px; }
.spot-nav.next { inset-inline-end: 12px; }
[dir="rtl"] .spot-nav i { transform: scaleX(-1); }
@media (hover: hover) { .spot-hero:hover .spot-nav { opacity: 1; } }
.spot-hero.single .spot-nav, .spot-hero.single .spot-progress { display: none; }

/* زر كتم/تشغيل الصوت للفيديو */
.spot-sound {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.78rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.spot-hero.video-active .spot-sound { display: flex; }

@media (prefers-reduced-motion: reduce) {
    .spot-hero, .spot-hero::before { animation: none; }
    .spot-slide, .spot-slide img, .spot-slide-caption { transition: none; }
    .spot-slide img { transform: none; }
}
