
.mitatagschema {
    display: none;
}



/* === تحسين عرض الحقول المخصصة === */
.StoryArea {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(4px);
    padding: 15px !important;
    border-radius: 8px;
    margin-bottom: 20px !important;
}

.StoryArea p {
    color: #a5a5a5 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* للموبايل فقط: إلغاء تمطيط النص */
@media (max-width: 768px) {
    .StoryArea p, .DescText, .desc-text {
        text-align: right !important; /* محاذاة لليمين فقط بدون تمطيط */
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }
}


/* === تحسين التنسيق للعناصر الأخرى === */
.infoB .TitleBox.Small {
    margin-bottom: 10px !important;
}

.infoB .TitleBox.Small h2 {
    font-size: 18px !important;
}

.TaxContent ul.RightTaxContent {
    margin-top: 15px !important;
}

.TaxContent ul.RightTaxContent li {
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

/* === إصلاح عرض بيانات IMDb في البوستر === */
.imdbR {
    pointer-events: auto !important;
    z-index: 30 !important;
    background: linear-gradient(135deg,#f5c518,#d4a90c) !important;
    color: #000 !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    box-shadow: 0 2px 6px rgba(245,197,24,0.25) !important;
    border: 1px solid #ffd700 !important;
    width: auto !important;
    margin: 0 !important;
    position: absolute !important;
    top: 10px !important;
    left: 4px !important;
    z-index: 10 !important;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
    pointer-events: auto;
    z-index: 40 !important;
}

.imdbR i {
    font-size: 10px !important;
    transition: transform 0.5s ease !important;
}

.imdbR span {
    font-size: 11px !important;
}

.imdbR em {
    font-size: 9px !important;
    margin-right: 2px !important;
}

/* === تأثيرات hover للبوستر - أبطأ === */
.image {
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

.image:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image img {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image:hover img {
    transform: scale(1.05);
}


/* === تنسيق قصة العرض (تأثير سينمائي على النص فقط) === */

/* تنظيف الحاوية تماماً */
.StoryArea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    
    /* إلغاء أي تأثيرات سابقة */
    border-right: none !important;
}

/* تنظيف العناصر الوهمية السابقة */
.StoryArea::before,
.StoryArea p::first-letter {
    display: none !important;
}

/* === السحر كله هنا في النص === */
.StoryArea p {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 2 !important; /* تباعد أسطر مريح */
    text-align: justify;
    
    /* التأثير: ظل أسود حاد يعطي تجسيم + ظل خفيف ناعم */
    text-shadow: 
        1px 1px 1px rgba(0, 0, 0, 1), /* ظل حاد للوضوح */
        0 0 15px rgba(255, 255, 255, 0.1); /* توهج بسيط جداً في الخلفية */

    /* لمسة شياكة: تباعد بسيط بين الحروف */
    letter-spacing: 0.3px;
    
    margin: 0 !important;
}

/* === لمسة تفاعلية للقصة (إضاءة عند اللمس) === */

.StoryArea {
    transition: all 0.3s ease; /* نعومة في الحركة */
}

/* لما الماوس ييجي على المنطقة */
.StoryArea:hover {
    /* الخط الأحمر ينور ويبقى لونه فاتح */
    border-right-color: #ff4d4d !important; 
    /* ظل أحمر ورا الخط (توهج) */
    box-shadow: 10px 0 20px -10px rgba(229, 9, 20, 0.5); 
}

/* الكلام نفسه ينور زيادة */
.StoryArea:hover p {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 1px 1px 1px #000 !important;
}

/* 1. الحاوية (خط جانبي شفاف وهادي) */
.StoryArea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 25px !important;
    
    /* خط جانبي خفيف جداً (أبيض شفاف) يحدد الكلام بشياكة */
    border-right: 2px solid rgba(255, 255, 255, 0.1) !important; 
    padding-right: 15px !important; 
    padding-left: 0 !important;
}


/* === تنسيق التصنيفات (الدمج السحري: سايح في العادي + بوكس في الهوفر) === */
.TaxContent {
    margin-top: 20px !important;
    width: 100%;
}

.TaxContent ul.RightTaxContent {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين */
    gap: 2px 15px; /* 👈 نزلنا المسافة بالطول لـ 2 بيكسل عشان السطور تلزق أكتر */
}

/* الحالة العادية: سايح بدون خلفية، بس محتفظ بمساحته */
.TaxContent ul.RightTaxContent li {
    background: transparent !important; 
    border: 1px solid transparent !important; /* إطار شفاف عشان الكلمة متتهزش في الهوفر */
    padding: 4px 15px !important; /* 👈 قللنا البادينج جداً عشان السطر يلم على بعضه */
    border-radius: 8px !important;
    
    display: flex;
    align-items: center; /* 👈 السنترة الأفقية التامة لكل اللي جوه السطر */
    gap: 8px; 
    
    width: 100%;
    line-height: 1.4; 
    white-space: normal; 
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🌟 تأثير الوقوف (Hover): يظهر البوكس الزجاجي وينور ويطلع لفوق */
.TaxContent ul.RightTaxContent li:hover {
    background: rgba(255, 255, 255, 0.04) !important; 
    border-color: rgba(255, 255, 255, 0.08) !important; 
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 1. الأيقونة (حمراء وثابتة) */
.TaxContent ul.RightTaxContent li i {
    color: #e50914 !important;
    font-size: 16px;
    transform: none !important; /* 👈 شيلنا الوزنة القديمة عشان تتسنتر بالظبط مع الكلام */
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; 
    align-items: center;
}

/* دوران الأيقونة عند اللمس */
.TaxContent ul.RightTaxContent li:hover i {
    transform: rotate(360deg) scale(1.2) !important; /* 👈 الدوران من غير ما تتحرك لفوق أو تحت */
}

/* 2. العنوان (النوع، السنة.. رمادي هادي) */
.TaxContent ul.RightTaxContent li span {
    color: #888 !important; 
    font-weight: 600 !important; 
    font-size: 15px !important; 
    white-space: nowrap;
    margin: 0;
    transition: color 0.3s ease;
    display: flex; /* 👈 لضمان السنترة مع الأيقونة */
    align-items: center;
}

/* يفتح شوية لما البوكس يظهر */
.TaxContent ul.RightTaxContent li:hover span {
    color: #aaa !important; 
}

/* 3. التفاصيل والأسماء (أبيض فخم وواضح) */
.TaxContent ul.RightTaxContent li a {
    color: #fff !important;
    font-weight: 700 !important; 
    text-decoration: none;
    font-size: 15px !important;
    
    display: inline-flex; /* 👈 لضمان السنترة التامة */
    align-items: center;
    margin-left: 3px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); 
    transition: color 0.3s ease;
}

/* حذف الفواصل القديمة */
.TaxContent ul.RightTaxContent li a::after {
    content: none !important;
}

/* 🌟 التعديل الجديد: تلوين الرابط بالأحمر بمجرد الوقوف على أي مكان في البوكس 🌟 */
.TaxContent ul.RightTaxContent li:hover a {
    color: #e50914 !important; 
    text-shadow: 0 0 8px rgba(229, 9, 20, 0.4); 
}

/* (اختياري) لو في أكتر من رابط في نفس البوكس */
.TaxContent ul.RightTaxContent li a:hover {
    color: #ff1f2a !important; 
    text-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

/* للموبايل */
@media (max-width: 600px) {
    .TaxContent ul.RightTaxContent {
        grid-template-columns: 1fr; 
        gap: 0px; /* 👈 لغينا المسافات تماماً في الموبايل */
    }
    .TaxContent ul.RightTaxContent li {
        padding: 4px 10px !important; /* 👈 تقليل البادينج للحد الأدنى */
    }
}

/* === تنسيق الوصف (ذكي، سينمائي، ومتجاوب) === */

.DescriptionBox {
    margin-bottom: 25px;
    border-bottom: none !important;
}

/* 1. تنسيق النص الأساسي (الوضع الافتراضي للديسك توب: خافت) */
.DescText {
    /* ✅ تعديل: تغيير justify إلى right لمنع تمطيط المسافات البشعة */
    text-align: right !important; 
    font-size: 18px !important;
    color: #a0a0a0 !important; 
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-shadow: 1px 1px 2px #000 !important;
    border-right: 2px solid rgba(255, 255, 255, 0.05) !important; 
    padding-right: 15px !important; 
    padding-left: 0 !important;
    transition: all 0.5s ease;
}

/* 2. تحسينات الموبايل والشاشات التاتش (الحل الذكي) */
@media (hover: none) {
    .DescText {
        /* ✅ تعديل: تصغير الخط للموبايل لمنع الازدحام */
        font-size: 15px !important; 
        color: #e0e0e0 !important; 
        text-shadow: 0 0 6px rgba(255,255,255,0.2) !important;
        border-right-color: rgba(255,255,255,0.2) !important;
        
        /* ✅ تعديل: منع التمدد نهائياً في الموبايل */
        text-align: right !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }
}

/* === تأثير التنوير للوصف للديسك توب والموبايل مع بعض === */

/* ده بيخلي التأثير يشتغل لو في hover أو لو الكلاس "is-active" موجود */
.DescText:hover, 
.DescText.is-active {
    color: #fff !important; 
    text-shadow: 1px 1px 2px #000, 0 0 6px rgba(255, 255, 255, 0.25) !important;
    border-right-color: rgba(255, 255, 255, 0.3) !important;
}

/* تقليل المسافات */
.DescText p {
    margin-bottom: 8px !important; 
    margin-top: 0 !important;
}

/* === 4. الزرار السينمائي (Glassmorphism Style) === */
.BtnContainer {
    margin-top: 12px; 
    padding-right: 15px; 
}

.ShowMoreBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #ff434c; 
    text-decoration: none;
    background: rgba(255, 67, 76, 0.05); 
    border: 1px solid rgba(255, 67, 76, 0.2); 
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.ShowMoreBtn:hover {
    background: rgba(255, 67, 76, 0.9); 
    color: #fff;
    border-color: #ff434c;
    box-shadow: 0 0 15px rgba(255, 67, 76, 0.3);
}

/* 5. أنميشن الظهور العميق */
.fade-in {
    animation: fadeInDeep 0.8s ease-out forwards; 
}

@keyframes fadeInDeep {
    0% { 
        opacity: 0; 
        transform: translateY(10px); 
        color: #444; 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
        color: inherit; 
    }
}

/* الحالة العادية – هادي ومطفي */
.PostTitle,
.entry-title {
    color: #e0e0e0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,1);
    transition: all 0.45s ease;
}

/* عند الوقوف – يضوي بهدوء */
.PostTitle:hover,
.entry-title:hover {
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(255,255,255,0.35),
        0 0 20px rgba(255,255,255,0.25),
        2px 2px 2px rgba(0,0,0,1);
}

@media (hover: none) {
    .PostTitle,
    .entry-title {
        color: #ffffff;
        /* ✅ تعديل: تصغير عنوان الفيلم قليلاً للموبايل لمنع التداخل */
        font-size: 22px !important;
        text-shadow:
            0 0 10px rgba(255,255,255,0.3),
            1px 1px 2px rgba(0,0,0,1);
    }
}


/* === 1. إشعار جودة الكاميرا (الأفلام 5410) === */
.cam-quality-notice {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-right: 4px solid #e50914;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    animation: pulseBorder 2s infinite alternate;
}
.cam-quality-notice i { font-size: 28px; color: #e50914; }
.cam-quality-notice .notice-text strong { color: #fff; font-size: 16px; display: block; margin-bottom: 4px; }
.cam-quality-notice .notice-text span { color: #b0bec5; font-size: 14px; }

@keyframes pulseBorder {
    0% { border-color: rgba(229, 9, 20, 0.2); box-shadow: 0 0 5px rgba(229, 9, 20, 0.1); }
    100% { border-color: rgba(229, 9, 20, 0.6); box-shadow: 0 0 15px rgba(229, 9, 20, 0.3); }
}

/* === 2. بوكس حلقات المشاهدة (المسلسلات 35583) === */
.ongoing-playlist { background: #111; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.ongoing-header { background: #e50914; padding: 12px 20px; color: #fff; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.ongoing-episodes-list { max-height: 250px; overflow-y: auto; padding: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.ongoing-episodes-list::-webkit-scrollbar { width: 6px; }
.ongoing-episodes-list::-webkit-scrollbar-thumb { background: #e50914; border-radius: 10px; }
.ep-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 10px; border-radius: 6px; text-align: center; cursor: pointer; transition: 0.3s; font-size: 14px; font-weight: bold; }
.ep-btn:hover, .ep-btn.active { background: #e50914; border-color: #e50914; box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4); }

/* === 3. بوكس تحميل الحلقات === */
.ongoing-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 15px 0; }
.dl-ep-item { background: linear-gradient(135deg, #1e90ff, #0d6efd); border-radius: 8px; padding: 12px; text-align: center; text-decoration: none !important; color: #fff !important; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 4px 10px rgba(30, 144, 255, 0.2); }
.dl-ep-item i { font-size: 22px; transition: 0.3s; }
.dl-ep-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(30, 144, 255, 0.5); }
.dl-ep-item:hover i { transform: scale(1.2); }


/* تنسيق تنويه نظام المسلسلات الجارية */
.system-notice {
    background: rgba(52, 152, 219, 0.1); /* لون أزرق خفيف هادي */
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-right: 4px solid #3498db;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
}
.system-notice i {
    font-size: 24px;
    color: #3498db;
}
.system-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #ecf0f1;
}
.system-notice p strong {
    color: #3498db;
}

/* تنسيق شبكة تحميل الحلقات */
.ongoing-dl-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 12px; 
    padding: 20px 0; 
}
.dl-ep-item { 
    background: linear-gradient(135deg, #1e90ff 0%, #0d6efd 100%); 
    border-radius: 10px; 
    padding: 15px 10px; 
    text-align: center; 
    text-decoration: none !important; 
    color: #fff !important; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.2); 
    border: 1px solid rgba(255,255,255,0.1);
}
.dl-ep-item i { font-size: 24px; }
.dl-ep-item span { font-weight: bold; font-size: 14px; }
.dl-ep-item:hover { 
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.4); 
    background: linear-gradient(135deg, #2b9cff 0%, #1e90ff 100%);
}




/* === تأثيرات hover لأيقونة IMDb - أبطأ === */
.imdbR:hover {
    transform: translateY(-3px) scale(1.08) rotate(3deg) !important;
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.7) !important;
    background: linear-gradient(135deg, #ffd700, #f5c518) !important;
    animation: imdbGlow 1.2s ease-in-out infinite alternate !important;
    z-index: 20 !important;
}

.imdbR:hover i {
    transform: rotate(10deg) scale(1.1) !important;
    color: #ffffff !important;
}

@keyframes imdbGlow {
    0% {
        box-shadow: 0 0 10px rgba(245, 197, 24, 0.5),
                    0 0 20px rgba(245, 197, 24, 0.3),
                    0 0 30px rgba(245, 197, 24, 0.2);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7),
                    0 0 25px rgba(255, 215, 0, 0.5),
                    0 0 35px rgba(255, 215, 0, 0.3);
    }
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .tmdb-actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .tmdb-actor-icon {
        width: 60px;
        height: 60px;
    }
    

    
    .imdbR {
        padding: 2px 4px !important;
        font-size: 9px !important;
        top: 8px !important;
        left: 3px !important;
    }
    
    .image:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .image:hover img {
        transform: scale(1.03);
    }
    
    .imdbR:hover {
        transform: translateY(-2px) scale(1.05) rotate(2deg) !important;
    }
}

/* === إضافات التحسين (Search & Reveal) === */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

.episodes-search { position: sticky; top: 10px; z-index: 10; margin-bottom: 15px; background: #1a1a1a; padding: 5px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.episodes-search input { width: 100%; padding: 10px; border: 1px solid #333; background: #252525; color: #fff; border-radius: 6px; outline: none; }
.episodes-search input:focus { border-color: #e50914; }
.episodes-search .continue { display: block; margin-top: 5px; background: #e50914; color: #fff; text-align: center; padding: 5px; border-radius: 4px; font-size: 12px; text-decoration: none; }

.similar-tools { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; }
.similar-tools input, .similar-tools select { flex: 1; padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; outline: none; }



/* ===== تصميم جديد للبوستر مع الإعلان ===== */
.MainSingle {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

/* الجزء الأيسر مع البوستر والأزرار */
.left {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

/* حاوية البوستر */
.image {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    background: #1a1a1a;
    margin-bottom: 20px;
    transform-origin: center center;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* زر مشاهدة الإعلان (مستقل) */
.poster-trailer-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    cursor: pointer;
    z-index: 30;
    transition: 0.25s;
}

.poster-trailer-btn i {
    color: #fff;
    font-size: 20px;
}

.poster-trailer-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* تلميح الإعلان يظهر فقط عند الوقوف على زر الإعلان نفسه */
.poster-trailer-btn .trailer-tooltip {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3b3b, #c70000);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
}

.poster-trailer-btn:hover .trailer-tooltip {
    opacity: 1;
    visibility: visible;
}
/* === تأثيرات مبهرة لأزرار المشاهدة والتحميل - أبطأ === */
.poster-actions {
    width: 100%;
    margin-top: 15px;
}

/* تصميم الأزرار الرئيسية */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.8s;
    z-index: -1;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn .icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.action-btn .text {
    flex: 1;
    text-align: center;
}

.action-btn .text span {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.action-btn .text small {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* زر المشاهدة بتأثيرات مبهرة - أبطأ */
.action-btn.watch-btn {
    background: linear-gradient(135deg, #e50914 0%, #b2070f 100%);
}

.action-btn.watch-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6),
                0 0 40px rgba(229, 9, 20, 0.3);
    background: linear-gradient(135deg, #ff1c1c 0%, #e50914 100%);
    animation: watchPulse 2s infinite alternate;
}

.action-btn.watch-btn:hover .icon {
    transform: rotate(12deg) scale(1.1);
    animation: watchIconPulse 1s infinite alternate;
}

@keyframes watchPulse {
    0% {
        box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6),
                    0 0 40px rgba(229, 9, 20, 0.3);
    }
    100% {
        box-shadow: 0 10px 35px rgba(229, 9, 20, 0.8),
                    0 0 50px rgba(229, 9, 20, 0.5);
    }
}

@keyframes watchIconPulse {
    0% {
        transform: rotate(12deg) scale(1.1);
    }
    100% {
        transform: rotate(15deg) scale(1.2);
    }
}

/* زر التحميل بتأثيرات مبهرة - أبطأ */
.action-btn.download-btn {
    background: linear-gradient(135deg, #1e90ff 0%, #0d6efd 100%);
}

.action-btn.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.6),
                0 0 40px rgba(30, 144, 255, 0.3);
    background: linear-gradient(135deg, #2b9cff 0%, #1e90ff 100%);
    animation: downloadPulse 2s infinite alternate;
}

.action-btn.download-btn:hover .icon {
    transform: translateY(-2px) scale(1.1);
    animation: downloadIconBounce 1s infinite alternate;
}

@keyframes downloadPulse {
    0% {
        box-shadow: 0 10px 30px rgba(30, 144, 255, 0.6),
                    0 0 40px rgba(30, 144, 255, 0.3);
    }
    100% {
        box-shadow: 0 10px 35px rgba(30, 144, 255, 0.8),
                    0 0 50px rgba(30, 144, 255, 0.5);
    }
}

@keyframes downloadIconBounce {
    0% {
        transform: translateY(-2px) scale(1.1);
    }
    100% {
        transform: translateY(-4px) scale(1.2);
    }
}

/* حاوية الإعلان داخل البوستر */
.poster-ad-wrapper {
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* عناصر تحت الإعلان */
.poster-bottom-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* زر التريلر تحت البوستر */
.TrillerOpenBtn {
    margin-top: 15px;
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.TrillerOpenBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.8s;
}

.TrillerOpenBtn:hover::before {
    left: 100%;
}

.TrillerOpenBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.5),
                0 0 30px rgba(253, 126, 20, 0.3);
    animation: trailerGlow 1.5s infinite alternate;
}

@keyframes trailerGlow {
    0% {
        box-shadow: 0 8px 25px rgba(253, 126, 20, 0.5),
                    0 0 30px rgba(253, 126, 20, 0.3);
    }
    100% {
        box-shadow: 0 8px 30px rgba(253, 126, 20, 0.7),
                    0 0 40px rgba(253, 126, 20, 0.5);
    }
}

/* زر تحميل الموسم كامل بتأثيرات مبهرة - أبطأ */
.download-full-season {
    background: linear-gradient(135deg, #eac13b 0%, #d4a90c 100%);
    color: #222;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(234, 193, 59, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.download-full-season::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.8s;
}

.download-full-season:hover::before {
    left: 100%;
}

.download-full-season:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(234, 193, 59, 0.5),
                0 0 30px rgba(234, 193, 59, 0.3);
    animation: seasonGlow 1.5s infinite alternate;
}

@keyframes seasonGlow {
    0% {
        box-shadow: 0 8px 25px rgba(234, 193, 59, 0.5),
                    0 0 30px rgba(234, 193, 59, 0.3);
    }
    100% {
        box-shadow: 0 8px 30px rgba(234, 193, 59, 0.7),
                    0 0 40px rgba(234, 193, 59, 0.5);
    }
}

/* === تأثيرات hover للبوستر - أبطأ === */
.image:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image:hover img {
    transform: scale(1.05);
}

/* === تأثيرات hover لأيقونة IMDb - أبطأ === */
.imdbR {
    background: linear-gradient(135deg,#f5c518,#d4a90c) !important;
    color: #000 !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    box-shadow: 0 2px 6px rgba(245,197,24,0.25) !important;
    border: 1px solid #ffd700 !important;
    width: auto !important;
    margin: 0 !important;
    position: absolute !important;
    top: 10px !important;
    left: 4px !important;
    z-index: 10 !important;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.imdbR i {
    font-size: 10px !important;
    transition: transform 0.5s ease !important;
}

.imdbR span {
    font-size: 11px !important;
}

.imdbR em {
    font-size: 9px !important;
    margin-right: 2px !important;
}

.imdbR:hover {
    transform: translateY(-3px) scale(1.08) rotate(3deg) !important;
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.7) !important;
    background: linear-gradient(135deg, #ffd700, #f5c518) !important;
    animation: imdbGlow 1.2s ease-in-out infinite alternate !important;
    z-index: 20 !important;
}

.imdbR:hover i {
    transform: rotate(10deg) scale(1.1) !important;
    color: #ffffff !important;
}

@keyframes imdbGlow {
    0% {
        box-shadow: 0 0 10px rgba(245, 197, 24, 0.5),
                    0 0 20px rgba(245, 197, 24, 0.3),
                    0 0 30px rgba(245, 197, 24, 0.2);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7),
                    0 0 25px rgba(255, 215, 0, 0.5),
                    0 0 35px rgba(255, 215, 0, 0.3);
    }
}

/* المحتوى الرئيسي */
.SecondPart {
    flex: 1;
    min-width: 0;
}

/* إخفاء أزرار المشاهدة والتحميل القديمة */
.BTNSDownWatch {
    display: none;
}

/* إخفاء قسم الإعلان الرئيسي في الأسفل */
.main-ad-section {
    display: none;
}

/* تنسيقات خاصة للإعلان لضبط حجمه */
.poster-ad-wrapper .unique-ad {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
}

.poster-ad-wrapper iframe,
.poster-ad-wrapper img,
.poster-ad-wrapper ins {
    max-width: 100% !important;
    height: auto !important;
}

/* تنسيق محتوى المقال المختصر */
/* الحاوية الزجاجية كما طلبتها */
.SingleContentBox {
    background: rgba(255, 255, 255, 0.02) !important; 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    padding: 20px 17px !important; 
    border-radius: 12px; 
    margin-bottom: 35px;
    direction: rtl;
    border: none !important;
}

/* النص: الفقرة الأولى كبيرة وواضحة */
.desc-text {
    margin: 0; 
    color: #f2f2f2 !important; 
    font-size: 20px !important; /* تكبير الخط بناءً على طلبك */
    line-height: 1.9 !important; 
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    text-align: right;
    max-height: 10em; /* الجزء الظاهر في البداية */
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}

/* حالة الفتح */
.desc-open {
    max-height: 5000px !important;
}

/* زر المزيد: أبيض يتحول لأحمر عند الضغط */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: #ffffff !important; /* اللون الأساسي أبيض */
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

/* أيقونة السهم */
.show-more-btn span {
    margin-right: 10px;
    width: 28px;
    height: 28px;
    border: 1px solid #ffffff; /* دائرة بيضاء */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* التغيير للأحمر عند إضافة كلاس النشط */
.show-more-btn.is-red {
    color: #e50914 !important;
}
.show-more-btn.is-red span {
    border-color: #e50914 !important;
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .MainSingle {
        flex-direction: column;
    }
    
    .left {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .action-btn {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .poster-ad-wrapper {
        max-width: 300px;
        margin: 15px auto;
    }
    
    .poster-trailer-btn {
        opacity: 1;
        visibility: visible;
    }
    
    .poster-trailer-btn span {
        transform: scale(0.8);
        padding: 10px 18px;
        font-size: 14px;
    }

    /* تأثيرات الموبايل */
    .image:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .image:hover img {
        transform: scale(1.03);
    }
    
    .action-btn:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .imdbR:hover {
        transform: translateY(-2px) scale(1.05) rotate(2deg) !important;
    }

    /* التعديل الجديد لحل مشكلة مسافة العنوان */
    .PostTitle {
        line-height: 1.6 !important; /* لعمل مسافة مريحة بين الأسطر */
        margin-bottom: 20px !important;
        text-align: center; /* اختياري: لجعل العنوان في المنتصف على الموبايل */
    }

    .PostTitle a {
        font-size: 20px !important; /* حجم خط مناسب للموبايل لمنع التداخل */
        display: block;
    }
}



/* تنسيق الحالة: نص ملون ونظيف */
.movie-status-item a {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline-block;
    transition: 0.3s ease;
}

/* أخضر لـ يعرض حالياً */
.status-now a { color: #2ecc71 !important; }

/* أزرق لـ قريباً */
.status-soon a { color: #3498db !important; }

/* أحمر لـ مكتمل */
.status-completed a { color: #e74c3c !important; }

.movie-status-item a:hover { filter: brightness(1.2); text-decoration: underline; }

/* ===== Enhancements: Toast + Modal + Chips + Reveal + Episodes Search + Similar Filter ===== */
:root{ --sp-toast-z:999999; }

.toast-container{
    position: fixed;
    inset-inline: 12px;
    bottom: 18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index: var(--sp-toast-z);
    pointer-events:none;
}
.toast{
    pointer-events:auto;
    max-width: 520px;
    width: fit-content;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(20,20,20,.88);
    border: 1px solid rgba(255,255,255,.10);
    color:#fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    transform: translateY(8px);
    opacity:0;
    transition: .25s;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
}
.toast.show{opacity:1; transform: translateY(0);}
.toast .dot{width:8px;height:8px;border-radius:50%; background:#22c55e;}
.toast.error .dot{background:#ef4444;}
.toast.warn .dot{background:#f59e0b;}

/* === تنسيق نافذة التريلر (معدل لملء الشاشة) === */
.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
}
.trailer-modal.is-open {
    display: block;
}
.trailer-modal .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85); /* تغميق الخلفية شوية */
    backdrop-filter: blur(5px);
}
.trailer-modal .panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 900px);   /* العرض: 90% من الشاشة أو 900 بيكسل كحد أقصى */
    aspect-ratio: 16/9;       /* النسبة السينمائية عشان الفيديو ميبقاش ممطوط */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.trailer-modal .frame {
    width: 100%;
    height: 100%;
    position: relative; /* ضروري عشان الفيديو يملأ المكان */
}
.trailer-modal iframe {
    width: 100% !important;  /* إجبار العرض 100% */
    height: 100% !important; /* إجبار الطول 100% */
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}
.trailer-modal .close {
    position: absolute;
    top: -45px; /* رفعنا زر الإغلاق فوق الفيديو عشان ميعكسش الرؤية */
    right: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.6);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.trailer-modal .close:hover {
    background: #e50914;
    border-color: #e50914;
}

.chips a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    margin: 4px 6px 0 0;
    text-decoration:none !important;
    transition:.2s;
}
.chips a:hover{transform: translateY(-1px); background: rgba(255,255,255,.09);}

.reveal{
    opacity:0;
    transform: translateY(10px);
    transition: .55s ease;
}
.reveal.is-in{opacity:1; transform: translateY(0);}

.episodes-search{
    width:100%;
    margin: 8px 0 12px;
    position:sticky;
    top: 8px;
    z-index: 5;
}
.episodes-search input{
    width:100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color:#fff;
    outline:none;
}
.episodes-search input::placeholder{color: rgba(255,255,255,.6);}

.similar-tools{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin: 8px 0 14px;
}
.similar-tools input, .similar-tools select{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color:#fff;
    outline:none;
}




                        .sidebar-season-nav {
                            background: rgba(255, 255, 255, 0.02);
                            border: 1px solid rgba(255, 255, 255, 0.05);
                            border-radius: 10px;
                            padding: 12px;
                            margin-top: 15px; /* مسافة بينه وبين أزرار المشاهدة */
                            width: 100%;
                        }
                        .sidebar-season-title {
                            text-align: center;
                            color: #a0a0a0;
                            font-size: 13px;
                            margin-bottom: 12px;
                            font-weight: 600;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            gap: 6px;
                        }
                        .sidebar-season-buttons {
                            display: flex;
                            gap: 10px;
                        }
                        .sidebar-season-btn {
                            flex: 1;
                            background: rgba(255, 255, 255, 0.04);
                            color: #e0e0e0;
                            padding: 10px 5px;
                            border-radius: 8px;
                            text-align: center;
                            font-size: 12px;
                            font-weight: bold;
                            text-decoration: none !important;
                            border: 1px solid rgba(255, 255, 255, 0.08);
                            transition: all 0.3s ease;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 6px;
                        }
                        .sidebar-season-btn i { font-size: 16px; color: #e50914; transition: 0.3s; }
                        .sidebar-season-btn:hover { 
                            background: rgba(229, 9, 20, 0.1); 
                            color: #fff; 
                            border-color: rgba(229, 9, 20, 0.3);
                            transform: translateY(-2px);
                        }
                        .sidebar-season-btn:hover i { transform: scale(1.1); }




/* ==========================================
   تنسيق قسم المواسم (النسخة النهائية الصارمة - الحل الجذري للقص)
   ========================================== */

/* 1. تنظيف الحاوية لقتل أي مسافات خارجية (زي الـ 20 بيكسل اللي في الـ PHP) */
.otherser {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 10px !important; 
}

/* 2. الشبكة الذكية: minmax(0, 1fr) هو السحر اللي بيمنع الـ Grid من التمدد خارج الشاشة */
.otherser .Blocks--List {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important; 
    gap: 15px !important;
    padding: 0 !important; 
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    list-style: none !important;
}

/* 3. إجبار البوكس إنه ينكمش مع الشاشة (min-width: 0 مهمة جداً) */
.otherser .Block--Item {
    width: 100% !important;
    min-width: 0 !important; 
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 4. إجبار البوستر على مقاس سينمائي ثابت */
.otherser .Block--Item .Poster--Block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.otherser .Block--Item .Poster--Block img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0; 
    left: 0;
}

/* 5. تنسيق عناوين المواسم */
.otherser .Block--Item h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-top: 10px !important;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: color 0.3s ease;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.otherser .Block--Item:hover h3 {
    color: #e50914 !important;
}

/* إخفاء تام لبادجات النوع في قسم المواسم */
.otherser .Block--Item .Genres {
    display: none !important;
}

/* التابلت */
@media (max-width: 1024px) {
    .otherser .Blocks--List {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* الموبايل (تقسيم الشاشة لعمودين بالملي بدون أي هروب للشمال) */
@media (max-width: 768px) {
    .otherser .Blocks--List {
        /* الإجبار القاطع للعمودين مع السماح لـ Grid بضغط الصورة */
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 10px !important; 
    }
    
    .otherser .Block--Item h3 {
        font-size: 14px !important; 
        margin-top: 8px !important;
    }
}



/* ==========================================
   مسلسلات مشابهة - شبكة 5 أعمدة
   ========================================== */

.similar-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

/* شاشات الكمبيوتر والشاشات الكبيرة (5 أعمدة) */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
    padding: 0;
}

.similar-grid-item {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.similar-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.similar-grid-poster {
    position: relative;
    aspect-ratio: 2/3;
    background: #1a1a2e;
    overflow: hidden;
}
.similar-grid-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    text-align: center;
    min-height: 50px;
    max-height: none;
    height: auto !important;
}

.similar-title-grid {
    font-size: 20px; /* 👈 اتغيرت لـ 20 للكمبيوتر */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    white-space: normal !important;
    max-height: none !important;
    height: auto !important;
    word-wrap: break-word;
}

.similar-grid-item:hover .similar-title-grid {
    color: #e50914;
}

/* ==========================================
   البادجات النيون (كل بادج منفصل تماماً)
   ========================================== */

/* 1. بادج الموسم (أعلى اليمين) */
.similar-grid-item .hover-badge-main-season {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 20;
    font-size: 15px; /* يمكنك تعديل الحجم هنا */
    font-weight: bold; /* يمكنك تعديل الوزن هنا */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    color: #CCFF00; 
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}
.similar-grid-item:hover .hover-badge-main-season {
    opacity: 1;
    transform: scale(1);
}

/* 2. بادج التقييم (أعلى اليسار) */
.similar-grid-item .hover-badge-main-rating {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 20;
    font-size: 15px; /* يمكنك تعديل الحجم هنا */
    font-weight: bold; /* يمكنك تعديل الوزن هنا */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    color: #ffeb3b; 
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}
.similar-grid-item:hover .hover-badge-main-rating {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   مثلث التشغيل وبادج الحلقة (فصل تام)
   ========================================== */

/* حاوية المثلث (تمركز في المنتصف) */
.similar-grid-item .play-button-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.similar-grid-item:hover .play-button-custom {
    opacity: 1;
}

/* المثلث نفسه */
.similar-grid-item .triangle-icon {
    width: 44px;
    height: 44px;
    background-color: #e50914;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    transition: transform 0.6s ease;
    box-shadow: 0 0 30px rgba(229,9,20,0.4);
}

.similar-grid-item:hover .triangle-icon {
    transform: rotate(360deg);
}


/* 3. بادج الحلقة (نص نيون منفصل تماماً) */
.similar-grid-item .hover-badge-main-episode {
    position: absolute;
    /* التمركز الجراحي: نزلناه 70% عشان يبقى تحت المثلث */
    top: 70% !important; /* 👈 دي اللي كانت 170% ومخفية البادج */
    left: 50% !important; 
    z-index: 30 !important; /* 👈 عشان نضمن إنه فوق الصورة والتظليل */
    
    -webkit-transform: translate3d(-50%, -50%, 0) !important;
    transform: translate3d(-50%, -50%, 0) !important;
    
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #00bfff !important; 
    font-size: 15px; 
    font-weight: 900; 
    white-space: nowrap;
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* إظهار البادج عند الـ Hover على الكارت */
.similar-grid-item:hover .hover-badge-main-episode {
    opacity: 1;
}

/* 5. الاستثناء الجراحي للمسلسلات مشابهة وعروض أخرى */
.similar-grid-item .hover-badge-main-episode,
.BlocksHolder .hover-badge-main-episode {
    -webkit-transform: translate3d(-50%, -50%, 0) !important;
    transform: translate3d(-50%, -50%, 0) !important;
}

/* ==========================================
   التجاوب مع الشاشات (Media Queries)
   ========================================== */

/* التابلت (4 أعمدة) */
@media (min-width: 769px) and (max-width: 1024px) {
    .similar-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 17px;
    }
}

/* الموبايل (2 عمود) */
@media (max-width: 768px) {
    .similar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    .similar-title-grid { 
        font-size: 15px !important; /* 👈 اتغيرت لـ 15 للموبايل */
    }
    
    /* فصلنا تحكم الموبايل لكل بادج لوحده عشان تعدله براحتك */
    .similar-grid-item .hover-badge-main-season { 
        font-size: 12px; 
        top: 5px; 
        right: 5px; 
    }
    
    .similar-grid-item .hover-badge-main-rating { 
        font-size: 12px; 
        top: 5px; 
        left: 5px; 
    }
    
    .similar-grid-item .triangle-icon { 
        width: 30px; 
        height: 30px; 
    }
    
    .similar-grid-item .hover-badge-main-episode { 
        font-size: 12px; /* حجم بادج الحلقة في الموبايل */
    }
}




/* ========================================================= */
/* 1. إعدادات البادجات الأساسية (الكل مخفي عدا التصنيف) */
/* ========================================================= */
.related-badge {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* بادج التصنيف (يظهر دائماً ويختفي عند الـ Hover) */
.rb-cat {
    top: 5px; right: 5px;
    opacity: 1 !important; /* ظاهر دائماً */
    transform: scale(1) !important;
}
.similar-grid-item:hover .rb-cat {
    opacity: 0 !important; /* يختفي عند الـ Hover */
}

/* باقي البادجات (مخفية وتظهر عند الـ Hover) */
.rb-season, .rb-genre, .rb-rating, .rb-year {
    opacity: 0;
    transform: scale(0.8);
}
.similar-grid-item:hover .rb-season,
.similar-grid-item:hover .rb-genre,
.similar-grid-item:hover .rb-rating,
.similar-grid-item:hover .rb-year {
    opacity: 1;
    transform: scale(1);
}

/* ========================================================= */
/* 2. التحكم الكامل في البادجات (اللون، الحجم، الوزن) */
/* ========================================================= */

/* بادج التصنيف (بنفسجي نيون) */
.rb-cat { 
    color: #ffc107; 
    font-size: 15px; font-weight: 800;
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}

/* بادج الموسم (أخضر مصفر نيون) */
.rb-season { 
    top: 5px; left: 5px; 
    color: #CCFF00; 
    font-size: 15px; font-weight: 800;
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}

/* بادج النوع (أزرق نيون) */
.rb-genre { 
   top: 5px; right: 5px; /* غيرت التوب لـ بوتوم عشان المساحة */
    color: #ff5e00; 
    font-size: 15px; font-weight: 700;
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}

/* بادج التقييم (أصفر نيون) */
.rb-rating { 
    top: 100px; left: 5px; 
    color: #ffeb3b; 
    font-size: 15px; font-weight: 900;
    text-shadow: 1px 1px 2px #000, 
                 -1px -1px 2px #000, 
                 0 0 10px currentColor, 
                 0 0 20px currentColor, 
                 0 0 5px #000 !important;
}

/* بادج السنة (برتقالي نيون) */
.rb-year { 
    top: 100px; 
 right: 5px !important; 
  font-size: 15px;
    color: #ffffff !important; 
    font-weight: 900 !important; 
    text-shadow: 1px 1px 2px #000, 
                 0 0 10px #e50914, 
                 0 0 20px #e50914 !important; 

}


/* ========================================================= */
/* 3. عنوان المقال والـ Hover (تحكم كامل) */
/* ========================================================= */
.similar-title-grid {
    font-size: 19px !important;    /* حجم الخط للكمبيوتر */
    font-weight: 800 !important;   /* وزن الخط */
    color: #ffffff;

    transition: color 0.3s ease;
}

.similar-grid-item:hover .similar-title-grid {
    color: #e50914 !important;    /* لون العنوان عند الـ Hover */
}

/* ========================================================= */
/* 2. تحكم الموبايل (عشان تظبط كل بادج في مكانه وحجمه) */
/* ========================================================= */
@media (max-width: 768px) {
    
    /* العنوان في الموبايل */
    .similar-title-grid { font-size: 14px !important; }

    /* البادجات في الموبايل */
    .related-badge { font-size: 12px !important; } /* حجم خط موحد للموبايل */

    /* أماكن البادجات في الموبايل */
    .rb-cat { top: 5px; right: 5px; }
    .rb-season { top: 5px; left: 5px; }
    .rb-genre { top: 5px; right: 5px; }
    .rb-rating { top: 75px; left: 5px; }
    .rb-year { top: 75px; right: 5px; }

    /* أيقونة الحلقة في الموبايل */
    .similar-grid-item .hover-badge-main-episode { font-size: 12px !important; }
}


/* ===== تكبير خط الاقتراحات الذكية تحت القصة ===== */
.secondary-dynamic-grid a strong {
    font-size: 18px !important; /* غيّر الرقم حسب رغبتك (مثلاً 20px) */
    line-height: 1.6 !important;
}


/* 🎯 تكبير أيقونة المثلث في الاقتراحات - حل قاطع */
.secondary-dynamic-grid a span {
    font-size: 22px !important;
    line-height: 1 !important;
    display: inline-block !important;
    transform: scale(1.2) !important; /* تكبير إضافي لو لزم الأمر */
    margin-left: 4px !important;
}

/* لو الأيقونة مش span بل i (FontAwesome) */
.secondary-dynamic-grid a i {
    font-size: 22px !important;
}

/* =========================================================
   🚀 دعم شاشات التلفزيون (Smart TV Remote Focus) لصفحة العرض
   ========================================================= */

/* لما الزائر يتحرك بالريموت على أي بوكس أو زرار في صفحة السنجل */
.similar-grid-item:focus,
.otherser .Block--Item:focus,
.action-btn:focus,
.TrillerOpenBtn:focus,
.download-full-season:focus,
.tmdb-actor-card:focus,
.ep-btn:focus,
#sideEpisodesWrapper a:focus,
.TaxContent ul.RightTaxContent li a:focus {
    outline: none !important;
    transform: scale(1.05) !important;
    border: 2px solid #e50914 !important; /* برواز أحمر نتفليكس للريموت */
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.8) !important; /* توهج قوي */
    z-index: 100 !important;
    background: rgba(229, 9, 20, 0.1) !important; /* خلفية حمراء خفيفة */
    transition: all 0.2s ease-in-out !important;
}

/* =========================================================
   📱 تسريع الأداء وإيقاف الحركات الثقيلة للموبايل (Hardware Acceleration)
   ========================================================= */

@media (max-width: 768px) {
    /* 1. إيقاف الحركات المبالغ فيها (Hover) في الموبايل لتوفير البطارية ومنع التقطيع */
    .similar-grid-item:hover,
    .otherser .Block--Item:hover,
    .image:hover,
    .image:hover img,
    .action-btn:hover {
        transform: none !important;
        animation: none !important; 
        /* بنسيب بس التوهج البسيط، لكن بنلغي التحجيم عشان الشاشة متتهزش */
    }

    /* 2. تسريع كارت الشاشة (GPU) لكل البادجات والأيقونات الطائرة في السنجل */
    .related-badge,
    .hover-badge-main-season,
    .hover-badge-main-rating,
    .play-button-custom,
    .imdbR,
    .poster-trailer-btn {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: opacity, transform !important; /* تنبيه المتصفح لتجهيز الجرافيك */
    }

    /* 3. الاستثناء الجراحي لبادج الحلقة والمثلث عشان يفضلوا متسنترين صح في الموبايل */
    .similar-grid-item .hover-badge-main-episode,
    .similar-grid-item .play-button-custom {
        -webkit-transform: translate3d(-50%, -50%, 0) !important;
        transform: translate3d(-50%, -50%, 0) !important;
        will-change: opacity !important;
    }
    
    /* 4. إلغاء الأنميشن المستمر لزرار التريلر والمشاهدة على الموبايل (بيسحب رامات) */
    .action-btn.watch-btn,
    .action-btn.download-btn,
    .TrillerOpenBtn,
    .cam-quality-notice {
        animation: none !important; 
    }
}




/* ============================================================
   🌟 القسم الشامل والنهائي لنجوم العمل (مدمج ومنظف بالكامل)
   ============================================================ */

/* 1. تنظيف الحاوية والعنوان */
.tmdb-actors-section {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}
.tmdb-actors-section h3 {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #a0a0a0 !important;
    display: flex !important;
    align-items: center !important;
}
.tmdb-actors-section h3 i {
    color: #e50914 !important;
    margin-left: 8px !important;
    font-size: 18px !important;
}

/* 2. الإعدادات العامة للكارت والصورة والاسم */
.tmdb-actor-card {
    flex: 0 0 85px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: transform 0.3s ease !important;
}
.tmdb-actor-avatar {
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.tmdb-actor-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.tmdb-actor-avatar i {
    font-size: 26px !important;
    color: #777 !important;
}
.tmdb-actor-name {
    font-size: 14px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    text-align: center !important;
    color: #fff !important;
    font-weight: bold !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    transition: color 0.3s ease !important;
    margin-top: 4px !important;
}

.tmdb-actor-role {
    display: none !important; /* ده السطر السحري اللي هيخفيه من كل الموقع القديم والجديد */
}

/* 3. تأثيرات الهوفر (Hover) */
.tmdb-actor-card:hover {
    transform: translateY(-5px) !important;
}
.tmdb-actor-card:hover .tmdb-actor-name {
    color: #e50914 !important;
}
.tmdb-actor-card:hover .tmdb-actor-avatar {
    border-color: #e50914 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4) !important;
}

/* 4. شبكة التوزيع الذكية (الكمبيوتر) */
.tmdb-actors-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    direction: rtl !important;
}
/* للمقالات العادية (4 ممثلين) */
.tmdb-actors-grid.clean-grid {
    justify-content: flex-start !important;
    gap: 15px 60px !important;
    padding-right: 45px !important;
}
.tmdb-actors-grid.clean-grid .tmdb-actor-avatar {
    width: 65px !important; height: 65px !important;
}
.clean-grid .tmdb-actor-card:nth-child(n+5) { display: none !important; }

/* للمقالات المجمعة والسلاسل (6 ممثلين) */
.tmdb-actors-grid.heavy-grid {
    justify-content: flex-start !important;
    gap: 15px 30px !important;
    padding-right: 20px !important;
}
.tmdb-actors-grid.heavy-grid .tmdb-actor-avatar {
    width: 65px !important; height: 65px !important;
}
.heavy-grid .tmdb-actor-card:nth-child(n+6) { display: none !important; }

/* 5. التجاوب مع الموبايل (Mobile) */
@media (max-width: 768px) {
    .tmdb-actors-grid.clean-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 5px !important;
        justify-items: center !important;
        padding-right: 0 !important;
    }
    .tmdb-actors-grid.heavy-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px 5px !important;
        justify-items: center !important;
        padding-right: 0 !important;
    }
    .tmdb-actor-card {
        width: 100% !important;
        flex: none !important;
    }
    .tmdb-actors-grid.clean-grid .tmdb-actor-avatar {
        width: 65px !important; height: 65px !important;
    }
    .tmdb-actors-grid.heavy-grid .tmdb-actor-avatar {
        width: 55px !important; height: 55px !important;
    }
    .tmdb-actor-name {
        font-size: 12px !important;
    }
    /* الإخفاء الذكي في الموبايل */
    .clean-grid .tmdb-actor-card:nth-child(n+4) { display: none !important; }
    .heavy-grid .tmdb-actor-card:nth-child(n+5) { display: none !important; }
}


/* =========================================
   📱 تعديلات الموبايل الجذرية (فصل الفيديو عن الحلقات) 
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. الحاوية الرئيسية (إجبار العناصر تظهر تحت بعضها) */
    .parent-container { /* 👈 استبدل هذا بالكلاس الأب الذي يجمع الفيديو والحلقات */
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* 2. مشغل الفيديو (ياخد مساحة الشاشة كلها ويكون فوق) */
    .video-player { /* 👈 استبدل هذا بكلاس مشغل الفيديو */
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important; /* إجباري يظهر في الأعلى */
        margin-bottom: 15px !important;
    }

    /* 3. بوكس الحلقات (ينزل تحت الفيديو وياخد العرض بالكامل) */
    .ongoing-playlist {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important; /* إجباري يظهر تحت الفيديو */
        margin: 0 !important;
        display: block !important;
        clear: both !important; /* لو القالب بيستخدم نظام Float القديم */
    }

    /* 4. تنسيق قائمة الحلقات من الداخل (بالطول كما طلبت) */
    .ongoing-episodes-list {
        display: flex !important; 
        flex-direction: column !important; 
        max-height: 250px !important; /* كبرنا المساحة شوية لأنها بقت تحت الفيديو ومش هتضايقه */
        padding: 10px;
        gap: 8px;
        overflow-y: auto;
    }
    .ongoing-episodes-list::-webkit-scrollbar { 
        width: 4px; 
    }
    .ep-btn {
        width: 100% !important; 
        padding: 12px;
        font-size: 14px;
        border-radius: 6px;
        text-align: center; 
    }
}