html, body {
    overflow-x: hidden; /* يمنع التمرير الأفقي للموقع بالكامل */
    width: 100%;
    position: relative;
}

img, iframe, video {
    max-width: 100%; /* يمنع الصور والفيديوهات من تجاوز عرض الحاوية */
    height: auto;
}

/* نستخدم الكلاس الأب لضمان عدم التأثير على الهيدر */
.site-path-navigation {
    margin: 15px 0;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-path-navigation a {
    color: #00BCD4; /* الأزرق المائي الخاص بك */
    text-decoration: none;
    transition: 0.3s;
    border: none !important; /* لضمان عدم أخذ أي حدود من الهيدر */
    background: none !important; /* لضمان عدم أخذ خلفية */
}

.site-path-navigation a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-path-navigation .sep {
    color: #333;
}

.site-path-navigation .current-page {
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Layout Wrapper */
.article-header-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background1: #0a1012;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #1b2529;
}

.article-poster {
    flex: 1;
    max-width: 280px;
}
.article-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.article-details-main {
    flex: 2;
}

.entry-title {
    font-size: 2.2rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #1b2529;
    padding-bottom: 15px;
}

/* Info Grid - 2 Columns */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item .label {
    display: block;
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
}

.info-item .value {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.info-item.full-width {
    grid-column: span 2;
}

.genres-links a {
    display: inline-block;
    background: #1a1a1a;
    color: #aaa;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-top: 5px;
    text-decoration: none;
    border: 1px solid #333;
    transition: 0.3s;
}

.genres-links a:hover {
    border-color: var(--main-red);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-header-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .article-poster { max-width: 200px; }
    .info-grid { grid-template-columns: 1fr; }
    .info-item.full-width1 { grid-column: span 1; }
    .entry-title { font-size: 1.6rem; }
}

/* تحسين توزيع الـ Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
}

.full-width {
    grid-column: span 2;
    border-top: 1px solid #1b2529;
    padding-top: 10px;
}

/* تنسيق الممثلين */
.cast-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.actor-link {
    font-size: 0.85rem;
    color: #eee;
    text-decoration: none;
    background: #161d20;
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid #252f33;
    transition: 0.2s;
}

.actor-link:hover {
    color: #00BCD4;
    border-color: #00BCD4;
}

/* تنسيق الملخص */
.overview-box {
    margin-top: 5px;
}

.summary-text {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: unset;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* في الشاشات الصغيرة نلغي حصر الأسطر */
@media (max-width: 768px) {
    .summary-text { -webkit-line-clamp: unset; }
}



.article-poster {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trailer-btn-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--main-red); /* الأحمر الاحترافي */
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.trailer-btn-trigger:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.play-icon {
    font-size: 1.1rem;
}

/* لضمان النزول السلس */
html {
    scroll-behavior: smooth;
}

.trailer-embed-box {
    border-top: 1px solid #1b2529;
    padding-top: 20px;
    margin-top: 10px;
}



.star.active {
    color: #ffbd00 !important;
}
.hero { position: relative; height: 60vh; background-size: cover; background-position: center; background-attachment: fixed; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(transparent, var(--dark-bg)); }

.container { 
    max-width: 1300px; 
    margin: -100px auto 50px; 
    position: relative; 
    z-index: 10; 
    display: grid; 
    grid-template-columns: 10fr 3fr; 
    gap: 30px; 
    padding: 0; 
}

.main-article { background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid #222; }

/* إصلاح العنوان المتجاوب */
.main-article h1 { 
    font-size: 2.8rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: #fff;
    word-wrap: break-word;
}

.movie-info-bar { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; flex-wrap: wrap; }
.info-item {font-size: 0.9rem; color: #bbb;}
.info-item span {color: var(--main-red); font-weight: bold; display: block;}
.info-item a {color: #bbb; text-decoration: none;}
.info-item a:hover {text-decoration: underline;}


.cast-card-link:hover .cast-card img {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.3s ease;
}
.cast-card-link:hover p {
    color: #ffbd00; /* تغيير الاسم للون الأصفر عند تمرير الماوس */
}

.article-body { font-size: 1.1rem; color: #ddd; line-height: 1.8; }
.trailer-container { margin: 20px 0; border-radius: 8px; overflow: hidden; background: #000; }
iframe { width: 100%; aspect-ratio: 16/9; border: none; }

.sidebar {padding: 10px; position: sticky; top: 100px; height: fit-content; border-radius: 12px; border: 1px solid #222;}

.side-card {background: var(--card-bg);}
.side-card img { width: 80px; height: 110px; object-fit: cover; border-radius: 4px; }
.side-card h4 { margin:0; font-size:0.95rem; color:#fff; }

/* الكاست Cast */
.cast-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
.cast-card { text-align: center; }
.cast-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid #222; background: #222; }
.cast-card p { font-size: 0.85rem; margin-top: 8px; color: #bbb; line-height: 1.2; }

/* المقالات ذات الصلة */
.related-section { margin-top: 30px; border-top: 1px solid #333; padding-top: 20px; clear: both; }
.related-section h3 { color: var(--main-red); margin-bottom: 20px; font-size: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.rel-item { text-decoration: none; color: inherit; }
.rel-card-inner { border-radius: 8px; overflow: hidden; border: 1px solid #222; background: #1a1a1a; transition: 0.3s; }
.rel-card-inner:hover { border-color: #e50914; }
.rel-poster-box { position: relative; width: 100%; padding-top: 150%; }
.rel-poster-box img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.rel-info { padding: 12px; }
.rel-info h4 { margin: 0; font-size: 0.9rem; height: 2.4em; overflow: hidden; color: #fff; line-height: 1.2; }
.rel-rate { margin-top: 8px; font-size: 0.8rem; color: #ffbd00; }

/* --- استعلامات الموبايل المتجاوبة --- */
@media (max-width: 900px) { 
    .container { grid-template-columns: 1fr; margin-top: -50px; } 
    .hero { height: 40vh; background-attachment: scroll; } 
    .main-article {padding: 25px 15px;}
    
    /* تصغير حجم العنوان في الموبايل */
    .main-article h1 { 
        font-size: 1.7rem !important; 
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .cast-grid-wrapper { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

      /* Ta3Lii9aaaaaT */
@media (max-width: 600px) {
    .comment-inputs {
        flex-direction: column; /* تحويل الحقول من جانب بعضها إلى تحت بعضها */
    }
    .comment-inputs input {
        width: 100% !important; /* إلغاء الـ 50% وجعلها 100% */
    }
    #comment-form button {
        width: 100%; /* جعل الزر كبيراً ليسهل الضغط عليه بالإصبع */
    }
}

#comment-form input:focus, #comment-form textarea:focus {
    border-color: #e50914 !important;
    box-shadow: 0 0 5px rgba(229, 9, 20, 0.2);
}
      /* Ta3Lii9aaaaaT */
      
      
      /* AY9onaaaaaaT */
.admin-actions a {
    transition: transform 0.2s;
    display: inline-block;
    }
.admin-actions a:hover {
    transform: scale(1.2);
    }
.delete-btn:hover {
    color: #ff4d4d !important;
    }
      /* AY9onaaaaaaT */
      
      

/* MiiiLF Episode */      
.ep-hero { 
    position: relative; 
    height: 45vh; 
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
  }

.ep-hero::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(transparent, var(--dark-bg)); 
  }

.ep-container { 
    max-width: 1300px; margin: -100px auto 50px; position: relative; z-index: 10; 
    padding: 0; display: grid; grid-template-columns: 10fr 3fr; gap: 30px;
  }

.main-box { background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid #222; }
.side-box { position: sticky; top: 100px; height: fit-content; }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
.cast-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid #333; }
.cast-item p { font-size: 0.7rem; color: #bbb; margin-top: 5px; line-height: 1.2; text-align: center; }

@media (max-width: 900px) { .ep-container { grid-template-columns: 1fr; } .ep-hero { height: 35vh; } }
      /* MiiiLF Episode */ 