* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, h1, h2, h3, h4, h5, h6, .cinema-title, .btn, .ep-number-print, .series-title, .section-title, .duration-text {
    font-family: 'Cairo', sans-serif !important;
}

body {
    background: #111 url('/assets/img/ramadan-carpet.webp') repeat fixed;
    background-size: 350px;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
}

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: -1;
}

/* --- 2. زينة رمضان (Ramadan Lights) --- */
.vk-fixed-lights {
    position: fixed; top: 0; left: 0; width: 100%; height: 20px;
    z-index: 9999; pointer-events: none;
    display: flex; justify-content: center; overflow: hidden;
}
.vk-rope {
    margin: 0; padding: 0; display: flex; list-style: none;
    width: 100%; justify-content: space-between;
}
.vk-rope li {
    position: relative; width: 6px; height: 6px; border-radius: 50%;
    background: #fff; top: 5px; animation: vk-glow 1.5s infinite alternate;
}
.vk-rope li:nth-child(odd) { background: #ff0000; box-shadow: 0 0 5px 1px #ff0000; } 
.vk-rope li:nth-child(even) { background: #ff8800; box-shadow: 0 0 5px 1px #ff8800; animation-delay: 0.5s; }
@keyframes vk-glow { from { opacity: 0.5; } to { opacity: 1; } }

/* --- 3. السلايدر السينمائي (Cinema Slider) --- */
.cinema-slider-wrapper {
    position: relative; width: 100%; overflow: hidden;
    background: #000; margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.cinema-slide-item {
    position: relative; width: 100%; height: 85vh; overflow: hidden;
}
.cinema-video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.cinema-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #141414 10%, rgba(20,20,20,0.6) 50%, rgba(20,20,20,0.4) 100%);
    z-index: 1;
}

/* محتوى السلايدر (Desktop) */
.cinema-content-right {
    position: absolute; top: 18%; right: 5%; width: 45%;
    z-index: 10; color: #fff; text-align: right; direction: rtl;
}
.shahid-style-logo {
    max-height: 100px; width: auto; margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    opacity: 0.9; transform-origin: right center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.shahid-style-logo:hover { transform: scale(1.4); opacity: 1; }

.top-badge-row {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 10px; font-size: 0.9rem; font-weight: bold; margin-bottom: 10px;
}
.badge-top-red {
    background-color: #E50914 !important; color: #ffffff !important;
    padding: 3px 8px; border-radius: 4px;
    font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(229, 9, 20, 0.4);
}
.episodes-row { font-size: 1rem; color: #fff; font-weight: 500; margin-bottom: 5px; }
.episodes-row .text-success { color: #46d369 !important; }
.meta-row {
    font-size: 0.95rem; color: #b3b3b3;
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
}

/* أزرار السلايدر */
.buttons-row {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 15px; margin-top: 20px;
}
.btn-shahid-play {
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; padding: 5px 5px 5px 20px;
    display: flex; align-items: center; justify-content: space-between;
    text-decoration: none; transition: all 0.3s ease; min-width: 200px;
}
.btn-shahid-play:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.play-content { display: flex; flex-direction: column; text-align: right; margin-right: 10px; }
.play-text { color: #fff; font-weight: bold; font-size: 1.1rem; }
.play-sub { color: #ccc; font-size: 0.75rem; }
.play-icon-circle {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #ffc107, #ff9800); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; padding-left: 4px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}
.btn-shahid-list {
    display: flex; flex-direction: column; align-items: center;
    color: #fff; text-decoration: none; opacity: 0.8;
    transition: 0.3s; font-size: 0.9rem; padding: 0 10px;
}
.btn-shahid-list:hover { opacity: 1; }

/* شريط التنقل السفلي للسلايدر */
.slider-thumbs-nav {
    position: absolute; bottom: 20px; left: 0; width: 100%;
    z-index: 20; text-align: center;
}
.thumbs-flex {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; flex-wrap: wrap;
}
.thumb-item {
    cursor: pointer; opacity: 0.5; transition: all 0.3s ease;
    filter: grayscale(100%); transform: scale(0.9);
}
.thumb-item img { height: 40px; width: auto; object-fit: contain; }
.thumb-item.active-thumb {
    opacity: 1; transform: scale(1.1); filter: grayscale(0%);
    border-bottom: 2px solid #ffc107; padding-bottom: 5px;
}

/* --- 4. العناوين والأقسام (Headers & Layout) --- */
.section-wrapper { position: relative; margin-bottom: 40px; padding: 0 15px; }

.section-header {
    display: flex !important;
    justify-content: space-between !important; /* عنوان يمين - أزرار يسار */
    flex-direction: row !important;
    align-items: center !important;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,193,7,0.1);
    padding-bottom: 10px;
    direction: rtl;
}

.section-title {
    font-size: 1.4rem; font-weight: 800; color: #ffc107;
    position: relative; padding-right: 12px; margin: 0;
}
.section-title::after {
    content: ''; position: absolute; right: 0; top: 15%; bottom: 15%;
    width: 4px; background: #ffc107; border-radius: 4px;
}

.scroll-nav-buttons { display: flex; gap: 8px; }
.nav-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover {
    background-color: #f3ce13 !important;
    color: #000 !important;
    border-color: #f3ce13 !important;
}

/* --- 5. نظام الشبكة المتقدم (Pixel Perfect Grid System) --- */

/* أ) شبكة أحدث الحلقات (Latest Episodes) */
.two-row-scroll-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr); /* صفين ثابتين */
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory; /* تفعيل المغناطيس */
}
.two-row-scroll-container::-webkit-scrollbar { display: none; }

/* ب) شبكة المسلسلات والأقسام (Series Sections) */
.series-scroll-grid {
    display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 15px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.series-scroll-grid::-webkit-scrollbar { display: none; }

.scroll-grid-item, .series-card { scroll-snap-align: start; }

/* --- 6. المقاسات والتجاوب (Responsive Logic) --- */

/* >> DESKTOP (PC/Laptop) */
@media (min-width: 769px) {
    /* أحدث الحلقات: 5 كروت في الصف، ارتفاع 175px */
    .two-row-scroll-container {
        gap: 10px;
        grid-auto-columns: calc((100% - 40px) / 5); /* (100% - 4 gaps * 10px) / 5 items */
    }
    .scroll-grid-item { height: 175px; } /* الارتفاع الكبير الجديد */

    /* المسلسلات: 4 كروت (16/9) في الصف */
    .series-scroll-grid {
        grid-template-rows: repeat(2, 1fr); /* صفين */
        grid-auto-columns: calc((100% - 45px) / 4);
    }
    .series-card { aspect-ratio: 16/9; }
}

/* >> MOBILE (Phones) */
@media (max-width: 768px) {
    /* أحدث الحلقات: 2 كروت في الصف، ارتفاع 130px */
    .two-row-scroll-container {
        gap: 8px;
        grid-auto-columns: calc((100% - 8px) / 2); /* (100% - 1 gap * 8px) / 2 items */
    }
    .scroll-grid-item { height: 130px; }

    /* المسلسلات: 3 بوسترات (Vertical) في الصف */
    .series-scroll-grid {
        grid-template-rows: 1fr; /* صف واحد */
        grid-auto-columns: calc((100% - 20px) / 3);
        gap: 10px;
    }
    .series-card { 
        aspect-ratio: 2/3; /* تحويل لبوستر طولي */
        border-radius: 6px; 
    }
    
    /* تعديلات النصوص في الموبايل */
    .ep-title { font-size: 0.85rem !important; }
    .ep-number-print { font-size: 0.9rem !important; }
    .series-title { font-size: 0.75rem; text-align: center; white-space: normal; line-height: 1.2; }
    .series-info-bottom { background: linear-gradient(to top, #000 10%, transparent); padding-bottom: 5px; }
}

/* --- 7. تصميم الكروت (Cards UI) --- */

/* كارت الحلقة (Episode Card) */
.episode-card {
    height: 100%; border-radius: 8px; overflow: hidden;
    position: relative; transition: transform 0.3s ease;
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.episode-card:hover { transform: scale(1.05); z-index: 5; }
.ep-img { width: 100%; height: 100%; object-fit: cover; }

/* رقم الحلقة (Yellow Transparent Style) */
.ep-number-print {
    position: absolute; top: 5px; right: 10px;
    background: transparent !important;
    color: #f3ce13 !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    z-index: 10; line-height: 1;
}

/* زر التشغيل المصغر والوقت */
.play-duration-group {
    position: absolute; bottom: 8px; left: 8px;
    display: flex; align-items: center; gap: 6px;
    z-index: 10; flex-direction: row-reverse;
}
.mini-play-btn {
    width: 25px; height: 25px; border: 1.5px solid #f3ce13;
    color: #f3ce13; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.6rem; background: rgba(0,0,0,0.3);
}
.duration-text {
    color: #fff; font-size: 0.8rem; font-weight: 700;
    text-shadow: 1px 1px 2px #000;
}
.ep-overlay {
    position: absolute; bottom: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 25px 8px 8px; text-align: right;
}
.ep-title { color: #fff; font-size: 0.85rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* كارت المسلسل (Series Card) */
.series-card {
    position: relative; border-radius: 12px;
    overflow: hidden; background: #1a1a1a;
    border: none !important;
    transition: transform 0.3s ease;
}
.series-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.series-card:hover .series-img { transform: scale(1.1); }
/* --- إصلاح فيديو السلايدر في الموبايل (كامل وبدون قص) --- */

/* --- تحسين مظهر السلايدر في الموبايل (احترافي ومتناسق) --- */

/* --- المظهر النهائي الشامل للسلايدر على الموبايل (كل التفاصيل + زر صغير) --- */

/* --- تحسين مظهر السلايدر في الموبايل (احترافي ومتناسق) --- */

/* --- تنسيق الموبايل النهائي (مساحة ذكية + لوجو واضح) --- */
@media (max-width: 768px) {
    
    /* 1. ضبط ارتفاع الفيديو (16:9) */
    .cinema-slide-item {
        height: 56.25vw !important;
        min-height: 220px;
    }
    .cinema-video-bg { object-fit: cover !important; }

    /* 2. حاوية المحتوى (توسيط وتنسيق) */
    .cinema-content-right {
        top: 50% !important; transform: translateY(-50%) !important; bottom: auto !important;
        right: 15px !important; width: 85% !important; /* مساحة عرض كافية للأزرار */
        display: flex !important; flex-direction: column !important;
        align-items: flex-start !important; /* محاذاة لليمين */
        z-index: 10;
    }

    /* 3. اللوجو (تكبيره "سيكة" كما طلبت) */
    .shahid-style-logo {
        max-height: 55px !important; /* كان 30px، كبرناه لـ 55px */
        margin-bottom: 8px !important;
    }

    /* 4. التاجز (فوق الأزرار) */
    /* نظهر التاجز ونخليها صغيرة وجمب بعض */
    .meta-row {
        display: flex !important; flex-wrap: wrap; gap: 5px !important;
        margin-bottom: 10px !important; /* مسافة تفصله عن الأزرار */
        display: flex !important;
    }
    .meta-row span {
        font-size: 0.7rem !important; color: #ddd;
        background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
    }
    .sep-dot { display: none !important; } /* إخفاء النقط لتوفير مساحة */

    /* إخفاء الوصف الطويل والصفوف الأخرى لتوفير مساحة */
    .info-description, .episodes-row, .top-badge-row { display: none !important; }


    /* 5. صف الأزرار (جمب بعض) */
    .buttons-row {
        display: flex !important;
        flex-direction: row !important; /* جمب بعض مش تحت بعض */
        align-items: center !important;
        gap: 10px !important;
        margin-top: 0 !important;
        width: 100%;
    }

    /* أ) زر شاهد الآن (صغير وملموم) */
    .btn-shahid-play {
        min-width: auto !important;
        height: 38px !important; /* ارتفاع صغير */
        padding: 3px 3px 3px 12px !important; /* حواف صغيرة */
        border-radius: 30px !important;
        flex-grow: 0; /* ياخد حجمه بس */
    }
    /* الدائرة الصفراء جوه الزر */
    .play-icon-circle {
        width: 30px !important; height: 30px !important;
        font-size: 0.9rem !important;
    }
    /* النص */
    .play-text { font-size: 0.9rem !important; margin-left: 5px; }
    .play-sub { display: none !important; } /* نخفي كلمة "الحلقة الأولى" عشان يصغر */


    /* ب) زر قائمتي (صغير جداً - أيقونة فقط) */
    .btn-shahid-list {
        width: 38px !important; height: 38px !important; /* مربع/دائرة */
        border-radius: 50% !important; /* نخليه دائرة */
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.2);
        display: flex !important; align-items: center !important; justify-content: center !important;
        padding: 0 !important; margin: 0 !important;
    }
    .btn-shahid-list i { 
        font-size: 1.1rem !important; margin: 0 !important; color: #fff; 
    }
    .btn-shahid-list span { display: none !important; } /* إخفاء كلمة "قائمتي" */
}
/* --- زرار التحكم في الصوت (Mute Button) --- */
.mute-toggle-btn {
    position: absolute;
    top: 30px;      /* مسافة من فوق */
    left: 30px;     /* مسافة من الشمال (عشان الموقع RTL ده يعتبر أقصى اليسار) */
    z-index: 100;   /* عشان يظهر فوق الفيديو والأوفرلاي */
    
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    background: rgba(0, 0, 0, 0.5); /* خلفية سوداء شفافة */
    border: 1px solid rgba(255, 255, 255, 0.3); /* إطار أبيض خفيف */
    color: #fff;
    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mute-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mute-toggle-btn i {
    font-size: 1.2rem;
}

/* تنسيق للموبايل (نصغره شوية ونظبط مكانه) */
@media (max-width: 768px) {
    .mute-toggle-btn {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
    }
    .mute-toggle-btn i {
        font-size: 1rem;
    }
}
/* --- شريط النور الأصلي (VK Fixed Lights) --- */
.vk-fixed-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 2147483647; /* أعلى طبقة خالص */
    pointer-events: none;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.vk-rope {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-around; /* توزيع متساوي */
    white-space: nowrap;
}

/* شكل اللمبة */
.vk-rope li {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    top: 6px;
    animation: vk-glow 2s infinite alternate;
    flex-shrink: 0;
}

/* السلك المقوس الرفيع */
.vk-rope li:before {
    content: "";
    position: absolute;
    width: 40px;
    height: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35); /* لون السلك */
    border-radius: 50%;
    top: -8px;
    left: -20px;
}

/* الألوان (أحمر وبرتقالي) */
.vk-rope li:nth-child(4n+1) { background: #ff0000; box-shadow: 0 0 10px 2px #ff0000; } 
.vk-rope li:nth-child(4n+2) { background: #ff8800; box-shadow: 0 0 10px 2px #ff8800; animation-delay: 0.5s; } 
.vk-rope li:nth-child(4n+3) { background: #ff0000; box-shadow: 0 0 10px 2px #ff0000; animation-delay: 1s; } 
.vk-rope li:nth-child(4n+4) { background: #ff8800; box-shadow: 0 0 10px 2px #ff8800; animation-delay: 1.5s; }

@keyframes vk-glow { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* تعديلات الموبايل (تقليل العدد والحجم) */
@media (max-width: 768px) {
    .vk-rope li:nth-child(n+35) { display: none !important; } /* إخفاء الزيادة عشان الموبايل */
    .vk-rope li { width: 6px; height: 6px; margin: 0 2px; }
    .vk-rope li:before { width: 30px; left: -12px; }
}
/* --- تظبيط الموبايل النهائي (الحل الجذري للمسافات) --- */
@media (max-width: 768px) {

    /* 1. قتل المسافة الإجبارية اللي في الـ PHP */
    .logo-section {
        min-height: 0 !important; /* ده اللي بيلغي الـ 150px */
        height: auto !important;
        margin-bottom: 5px !important;
        display: block !important; /* بنلغي الفلكس عشان اللوجو ياخد راحته */
    }

    /* 2. الحاوية الأساسية: مكانها فين بالظبط */
    .cinema-content-right {
        position: absolute !important;
        top: auto !important;
        transform: none !important;
        
        /* المسافة من تحت */
        bottom: 80px !important; 
        
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        height: auto !important; /* مهم جداً عشان ميمطش */
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        gap: 0 !important; /* صفر مسافات، إحنا نتحكم بالـ margin */
        
        z-index: 20 !important;
    }

    /* 3. اللوجو: تظبيط حجمه */
    .shahid-style-logo {
        max-height: 50px !important; 
        margin: 0 0 5px 0 !important; /* مسافة 5 بكسل بس تحته */
        align-self: flex-start !important;
    }

    /* 4. إخفاء أي حاجة زيادة بتعمل زحمة */
    .episodes-row, .top-badge-row, .info-description, .meta-row, .sep-dot { 
        display: none !important; 
    }

    /* 5. صف الأزرار */
    .buttons-row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* زرار المشاهدة */
    .btn-shahid-play {
        height: 38px !important;
        font-size: 0.85rem !important;
        padding-left: 15px !important; 
        flex-grow: 0 !important;
    }
    
    /* زرار قائمتي */
    .btn-shahid-list {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
    .btn-shahid-list span { display: none !important; }
}
/* --- تنسيق بادج الدولة العام --- */
.country-badge {
    position: absolute;
    background: rgba(243, 206, 19, 0.9); /* لون ذهبي مميز */
    color: #000;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 6;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ناعمة */
}

/* --- نسخة الكمبيوتر (شاشات أكبر من 768px) --- */
@media (min-width: 769px) {
    .country-badge {
        bottom: 15px;  /* تحت */
        right: 15px;   /* يمين */
        border: 1px solid rgba(255,255,255,0.4);
    }
    /* تأثير بسيط عند مرور الماوس في الكمبيوتر */
    .series-card:hover .country-badge {
        transform: scale(1.1);
        background: #fff;
    }
}

/* --- نسخة الموبايل (شاشات أقل من 768px) --- */
@media (max-width: 768px) {
    .country-badge {
        top: 15px;    /* فوق عشان البوستر بالطول */
        right: -10px; /* مخفي جزئياً في الجانب الأيمن */
        background: rgba(0, 0, 0, 0.85); /* أسود شفاف في الموبايل */
        color: #f3ce13;
        border-left: 3px solid #f3ce13;
        border-radius: 6px 0 0 6px; /* تدوير الحواف اليسرى فقط */
        
        /* إخفاء العنصر */
        opacity: 0;
        transform: translateX(100%); /* يخرج بره الشاشة يمين */
    }

    /* عند اللمس (Active) أو الهوفر */
    .series-card:active .country-badge,
    .series-card:hover .country-badge {
        opacity: 1;
        transform: translateX(0) translateX(-10px); /* يظهر وينزاح قليلاً لليسار */
        right: 0;
    }
}
/* --- 1. تنسيق كبسولة الدولة (زي الصورة بالظبط) --- */
.modern-capsule {
    position: absolute;
    top: 10px;
    left: 50%; /* عشان تيجي في النص */
    transform: translateX(-50%); /* سنترتها */
    background: #fff; /* خلفية بيضاء */
    color: #000;      /* كتابة سوداء */
    padding: 4px 16px;
    border-radius: 20px; /* تدويرة الكبسولة */
    font-size: 0.85rem;
    font-weight: 800; /* خط تقيل */
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: 'Cairo', sans-serif;
}

/* --- 2. تنسيق زر التشغيل (للكمبيوتر فقط) --- */
.desktop-hover-play {
    position: absolute;
    bottom: 15px;      /* تحت */
    right: 15px;       /* يمين */
    width: 45px;
    height: 45px;
    background: #ffc107; /* أصفر */
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    
    /* مخفي افتراضياً */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

/* --- 3. قواعد الظهور والاختفاء (Media Queries) --- */

/* للكمبيوتر (شاشات أكبر من 768px) */
@media (min-width: 769px) {
    /* لما الماوس يقف على الكارت، الزرار يظهر وينط لفوق */
    .series-card:hover .desktop-hover-play {
        opacity: 1;
        transform: translateY(0);
    }
}

/* للموبايل (شاشات أقل من 768px) */
@media (max-width: 768px) {
    /* إخفاء زرار التشغيل تماااااماً في الموبايل */
    .desktop-hover-play {
        display: none !important;
    }
    
    /* ممكن نصغر كبسولة الدولة سنة بسيطة في الموبايل عشان الشاشة */
    .modern-capsule {
        padding: 3px 12px;
        font-size: 0.75rem;
        top: 8px;
    }
}/* --- تنسيق كبسولة الدولة (مشترك) --- */
.country-pill-final {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 800;
    z-index: 10;
    opacity: 0; /* مخفي افتراضياً */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-family: 'Cairo', sans-serif;
    pointer-events: none; /* عشان ميتداسش عليه بالغلط */
}

/* --- تنسيق زر التشغيل (للكمبيوتر) --- */
.pc-play-btn {
    position: absolute;
    bottom: 15px;
    right: 15px; /* يمين تحت */
    width: 45px;
    height: 45px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* =========================================
   1. الكمبيوتر (Hover)
   ========================================= */
@media (min-width: 769px) {
    /* مكان الدولة: تحت شمال (زي ما طلبت) */
    .country-pill-final {
        bottom: 15px; 
        left: 15px; 
        font-size: 0.9rem;
    }

    /* عند الوقوف بالماوس */
    .series-card:hover .country-pill-final {
        opacity: 1;
    }
    .series-card:hover .pc-play-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   2. الموبايل (Touch) - نظام الضغطتين
   ========================================= */
@media (max-width: 768px) {
    /* إخفاء زرار التشغيل تماماً في الموبايل */
    .pc-play-btn {
        display: none !important;
    }

    /* مكان الدولة: في النص من فوق، ومخفية افتراضياً */
    .country-pill-final {
        top: 10px; /* أعلى البوستر */
        left: 50%;
        transform: translateX(-50%) scale(0.9); /* متسنترة بالعرض ومصغرة سيكا */
        font-size: 0.9rem;
        padding: 4px 15px;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none; /* عشان متأثرش على اللمس */
    }

    /* دي الكلاس اللي الجافاسكريبت هيضيفها من أول ضغطة عشان تظهر الدولة */
    .card-touch-area.info-revealed .country-pill-final {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}