        :root {
            --bg-dark: #0f172a;
            --bg-card: #1e293b;
            --gold-main: #fbbf24;
            --gold-dim: #d97706;
            --text-white: #f8fafc;
            --text-gray: #cbd5e1;
            --font-main: 'Tajawal', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background-color: var(--bg-dark);
            background-image: radial-gradient(circle at 50% 0%, #1e3a8a 0%, var(--bg-dark) 60%);
            color: var(--text-white);
            font-family: var(--font-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Navbar */
        .navbar {
            background-color: rgba(15, 23, 42, 0.95);
            border-bottom: 1px solid rgba(251, 191, 36, 0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(8px);
        }

        .nav-container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .nav-logo-text {
            color: var(--gold-main);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-menu { display: flex; list-style: none; gap: 20px; }
        .nav-link { text-decoration: none; color: var(--text-white); font-size: 1rem; padding: 10px 5px; transition: color 0.3s; }
        .nav-link:hover, .nav-link.active { color: var(--gold-main); }

        .dropdown { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
        .dropdown > .nav-link::after { content: '▼'; font-size: 0.6em; margin-right: 5px; vertical-align: middle; color: var(--gold-main); }
        .dropdown-content {
            position: absolute; top: 100%; right: 0;
            background-color: var(--bg-card); min-width: 180px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.3); border-radius: 0 0 8px 8px;
            opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
            border: 1px solid rgba(251, 191, 36, 0.1); list-style: none; padding: 5px 0; z-index: 1001; margin-top: 6px;
        }
        .dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-content li a { display: block; padding: 10px 15px; color: var(--text-gray); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.2s; }
        .dropdown-content li a:hover { background-color: rgba(251, 191, 36, 0.1); color: var(--gold-main); padding-right: 20px; }

        /* Header & Decorations */
        header { position: relative; text-align: center; padding: 20px 0; height: 220px; overflow: hidden; }
        .decorations { position: absolute; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
        
        @keyframes swing { 0% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } 100% { transform: rotate(2deg); } }
        @keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 0.8; transform: scale(1.2); } }
        
        .star { animation: twinkle 3s infinite ease-in-out; fill: var(--gold-main); }
        .lantern { transform-origin: top center; animation: swing 3s infinite ease-in-out alternate; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3)); }
        
        .site-branding { position: relative; z-index: 2; padding-top: 70px; }
        .site-title { font-size: 2.5rem; color: var(--gold-main); font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .site-tagline { color: var(--text-gray); font-size: 0.9rem; }

        /* Main Content */
        .container { width: 90%; max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
        .section-title { text-align: center; font-size: 2rem; margin-bottom: 30px; color: var(--text-white); position: relative; display: inline-block; left: 5%; transform: translateX(-5%); }
        .section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold-main); margin: 10px auto 0; border-radius: 2px; }

        /* Privacy Policy Styles */
        .policy-card {
            background-color: var(--bg-card);
            border: 1px solid rgba(251, 191, 36, 0.1);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            transition: transform 0.3s ease;
        }
        .policy-card:hover { border-color: var(--gold-main); }
        .policy-card h3 { color: var(--gold-main); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
        .policy-card p { color: var(--text-gray); font-size: 0.95rem; text-align: justify; }
        .policy-card ul { margin-right: 20px; margin-top: 10px; color: var(--text-gray); }
        .policy-card li { margin-bottom: 8px; font-size: 0.9rem; }

        /* Footer */
        footer { padding: 60px 0 30px; margin-top: 80px; background-color: #070b15; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); border-top: 2px solid var(--gold-dim); text-align: center; position: relative; z-index: 10; }
        footer::before { content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 150px; height: 2px; background: var(--gold-main); box-shadow: 0 0 15px var(--gold-main); }
        .star-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)), radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)); background-size: 200px 200px; opacity: 0.2; }
        .footer-divider { width: 50px; height: 2px; background: var(--gold-main); margin: 20px auto; opacity: 0.5; }
        .footer-links a { color: var(--text-gray); text-decoration: none; margin: 0 10px; font-size: 0.85rem; }
        .copyright { color: var(--text-gray); font-size: 0.9rem; margin-top: 15px; opacity: 0.7; }

        @media (max-width: 480px) { .site-title { font-size: 2rem; } .container { width: 95%; } }
        
        /* تمييز اسم الشركة */
.company-branding {
    margin-bottom: 25px;
}

.company-branding span {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.company-link {
    font-size: 2rem; /* حجم كبير لاسم الشركة */
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(45deg, var(--gold-main), #fff9e6, var(--gold-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.2));
    text-transform: uppercase;
    letter-spacing: 2px;
}

.company-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 15px rgba(251, 191, 36, 0.4));
}


.contact-support {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03); /* خلفية خفيفة جداً للقسم */
    border-radius: 15px;
}

.btn-support {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 15px;
    background-color: #ffcc00; /* اللون الأصفر المتناسق مع العنوان */
    color: #1a1a2e; /* لون نص داكن للتباين */
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* زوايا دائرية بالكامل */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3); /* ظل مضيء */
}

.btn-support:hover {
    background-color: #ffffff; /* يتحول للأبيض عند التمرير */
    transform: translateY(-3px); /* حركة بسيطة للأعلى */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    color: #1a1a2e;
}

        /* =========================================
           إضافات خاصة بصفحة اتصل بنا
           ========================================= */
        
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            justify-content: center;
        }

        /* تنسيق نموذج الاتصال */
        .contact-form {
            flex: 2;
            min-width: 300px;
            background-color: var(--bg-card);
            padding: 30px;
            border-radius: 15px;
            border: 1px solid rgba(251, 191, 36, 0.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: var(--gold-main);
            font-weight: bold;
        }

        .form-input, .form-textarea {
            width: 100%;
            padding: 12px;
            background-color: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--text-white);
            font-family: var(--font-main);
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--gold-main);
            box-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-btn {
            background: linear-gradient(45deg, var(--gold-dim), var(--gold-main));
            color: #000;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s, box-shadow 0.2s;
            font-family: var(--font-main);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
        }

        /* تنسيق معلومات الاتصال الجانبية */
        .contact-info {
            flex: 1;
            min-width: 250px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .info-card {
            background-color: var(--bg-card);
            border: 1px solid rgba(251, 191, 36, 0.1);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s;
        }

        .info-card:hover {
            transform: translateY(-3px);
            border-color: var(--gold-main);
        }

        .info-icon {
            width: 40px;
            height: 40px;
            margin: 0 auto 10px;
            fill: var(--gold-main);
        }

        .info-title {
            color: var(--text-white);
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .info-detail {
            color: var(--text-gray);
            font-size: 0.95rem;
            direction: ltr; /* للأرقام والبريد */
        }

        /* قصة الموقع / التعريف */
        .about-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            margin-bottom: 60px;
        }

        .intro-text { 
            text-align: center; 
            font-size: 1.15rem; 
            color: var(--text-gray); 
            max-width: 850px; 
            line-height: 2;
        }

        .intro-text strong {
            color: var(--gold-main);
        }

        /* قسم القيم */
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            width: 100%;
        }

        .value-card {
            background-color: var(--bg-card);
            border: 1px solid rgba(251, 191, 36, 0.1);
            border-radius: 20px;
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .value-card:hover {
            transform: translateY(-10px);
            border-color: var(--gold-main);
            box-shadow: 0 15px 30px rgba(0,0,0,0.4);
        }

        .value-icon {
            width: 60px;
            height: 60px;
            background: rgba(251, 191, 36, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            fill: var(--gold-main);
        }

        .value-card h3 {
            color: var(--gold-main);
            font-size: 1.4rem;
            margin-bottom: 15px;
        }

        .value-card p {
            color: var(--text-gray);
            font-size: 0.95rem;
        }


.lottifi-trust-badge {
    position: absolute;
    left: 40px;
    bottom: 35px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* خلفية بيضاء شبه شفافة */
    border: 1px solid rgba(255, 255, 255, 0.1); /* إطار باهت جداً */
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: ltr;
}

/* تأثير الـ Hover يرجعه للذهبي بشكل خفيف عند اقتراب الماوس */
.lottifi-trust-badge:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.badge-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.secure-title {
    color: rgba(255, 255, 255, 0.4); /* أبيض مطفي جداً */
    font-size: 7.5px;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.brand-name {
    color: rgba(255, 255, 255, 0.85); /* أبيض واضح لكن ليس فاقع */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-name small {
    color: #FFD700; /* لمسة ذهبية بسيطة في كلمة Shield */
    font-weight: 400;
    font-size: 10px;
    opacity: 0.9;
}

/* استجابة الموبايل */
@media (max-width: 992px) {
    .lottifi-trust-badge {
        position: static;
        margin: 20px auto;
        justify-content: center;
    }
}





/* إخفاء التشيك بوكس وزر المنيو افتراضياً في الشاشات الكبيرة */
#menu-bar, .menu-icon {
    display: none;
}

@media (max-width: 768px) {

    .section-title { font-size: 1.8rem; }
    .intro-text { font-size: 1rem; }
    .value-card { padding: 30px 20px; }
            
    /* إظهار أيقونة الثلاث شرط */
    .menu-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--gold-main);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* تحويل القائمة لنظام العمود وإخفائها */
    .nav-menu {
        position: absolute;
        top: 60px; /* نفس ارتفاع الناف بار */
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(251, 191, 36, 0.2);
        display: none; /* إخفاء القائمة */
        text-align: center;
        z-index: 1000;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    /* إظهار القائمة عند الضغط على الأيقونة */
    #menu-bar:checked ~ .nav-menu {
        display: flex;
    }

    /* التعامل مع الدروب داون في الموبايل */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* مخفي حتى يفتح */
        background-color: rgba(0,0,0,0.2);
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}


        /* =========================================
           تنسيقات صفحة العرض (Grid System)
           ========================================= */
        
        /* الهيدر المصغر */
        .page-header {
            text-align: center;
            padding: 40px 20px;
            background: linear-gradient(to bottom, rgba(15,23,42,0.8), rgba(15,23,42,1));
            border-bottom: 1px solid rgba(251, 191, 36, 0.1);
        }
        
        .page-title {
            color: var(--gold-main);
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* شبكة الكروت */
        .series-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* تصغير عرض الكارت */
            gap: 25px;
        }
        
        /* تصميم الكارت */
        .series-card {
            background-color: var(--bg-card);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .series-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
            border-color: rgba(251, 191, 36, 0.3);
        }

        /* ابحث عن هذا الكلاس في الكود وغير الرقم */
        .card-image-wrapper {
            position: relative;
            width: 100%;
            /* القيمة القديمة كانت 140% */
            padding-top: 110%; /* جرب 110% لارتفاع متوسط وجميل */
            background-color: #000;
            overflow: hidden;
        }

        .card-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .series-card:hover .card-image {
            transform: scale(1.05);
        }

        .card-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1; /* لملء الفراغ المتبقي */
        }

        .series-title {
            color: var(--text-white);
            font-size: 1.2rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .series-plot {
            color: var(--text-gray);
            font-size: 0.9rem;
            margin-bottom: 20px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* إظهار 3 أسطر فقط */
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }

        .card-btn {
            background-color: transparent;
            color: var(--gold-main);
            border: 1px solid var(--gold-main);
            padding: 10px 0;
            width: 100%;
            border-radius: 6px;
            cursor: pointer;
            font-family: var(--font-main);
            font-weight: bold;
            text-align: center;
            text-decoration: none;
            transition: all 0.3s ease;
            display: block;
        }

        .card-btn:hover {
            background-color: var(--gold-main);
            color: #000;
        }















.meta-tags span {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 2. الأبطال (Cast Section) */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.cast-card { text-align: center; }

.cast-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.5);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.cast-name { font-size: 0.9rem; color: var(--text-white); }
.role-name { font-size: 0.8rem; color: var(--text-gray); }

/* 3. قائمة الحلقات (Episode Cards) */
.episode-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.ep-img-wrapper {
    width: 250px;
    flex-shrink: 0;
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}

.episode-card:hover .play-overlay { opacity: 1; }





















        /* =========================================
           تنسيقات صفحة التفاصيل (جديد)
           ========================================= */
        
        /* 1. منطقة الغلاف (Hero Section) */
        .series-hero {
            position: relative;
            height: 400px;
            background-image: url('https://via.placeholder.com/1200x600/0f172a/fbbf24?text=غلاف+المسلسل');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
        }

        .series-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to top, var(--bg-dark) 10%, rgba(15, 23, 42, 0.6) 100%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding-bottom: 40px;
            display: flex;
            gap: 30px;
            align-items: flex-end;
        }

        .poster-wrapper {
            flex-shrink: 0;
            width: 200px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
            border: 2px solid var(--gold-main);
            transform: translateY(20px); /* يخرج قليلاً للأسفل لتداخل جميل */
        }

        .poster-wrapper img {
            width: 100%;
            display: block;
        }

        .series-info h1 {
            font-size: 2.5rem;
            color: var(--gold-main);
            margin-bottom: 10px;
        }

        .series-page-container {
            width: 90%;
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 10px;
        }
        /* قسم القصة */
        .story-section {
            margin-bottom: 40px;
        }

        .section-header {
            font-size: 1.5rem;
            color: var(--text-white);
            margin-bottom: 20px;
            border-right: 4px solid var(--gold-main);
            padding-right: 15px;
        }

        .story-text {
            color: var(--text-gray);
            line-height: 1.8;
            font-size: 1.05rem;
        }

        /* قسم الأبطال */
        .cast-section {
            margin-bottom: 40px;
        }

        .cast-card:hover .cast-img {
            transform: scale(1.1);
            border-color: var(--gold-main);
        }

        .cast-name {
            font-size: 0.9rem;
            color: var(--text-white);
        }

        .role-name {
            font-size: 0.8rem;
            color: var(--text-gray);
        }

        /* 3. قائمة الحلقات */
        .episodes-section {
            grid-column: 1 / -1; /* تأخذ العرض الكامل */
            margin-top: 20px;
        }


        .episode-card:hover {
            transform: translateX(-5px); /* حركة بسيطة لليسار */
            border-color: rgba(251, 191, 36, 0.3);
        }

        .ep-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            min-height: 160px;
        }

        .play-icon {
            width: 50px;
            height: 50px;
            fill: var(--text-white);
            background: var(--gold-main);
            border-radius: 50%;
            padding: 12px;
        }

        .ep-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .ep-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }

        .ep-title {
            color: var(--text-white);
            font-size: 1.2rem;
            font-weight: bold;
        }

        .ep-duration {
            font-size: 0.85rem;
            color: var(--gold-main);
            background: rgba(251, 191, 36, 0.1);
            padding: 3px 8px;
            border-radius: 4px;
        }

        .ep-desc {
            color: var(--text-gray);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .ep-btn {
            align-self: flex-end;
            background: transparent;
            color: var(--gold-main);
            border: 1px solid var(--gold-main);
            padding: 8px 20px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .ep-btn:hover {
            background: var(--gold-main);
            color: #000;
        }









