/* ==========================================
   1. الإعدادات العامة والخطوط
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #0f1115; 
    color: #e0e0e0; 
    font-family: 'Cairo', sans-serif; 
    min-height: 100vh; 
    overflow-x: hidden;
}

/* ==========================================
   2. الشريط العلوي (Navbar)
   ========================================== */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    background-color: rgba(15, 17, 21, 0.95); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    flex-wrap: wrap; 
}

.clean-navbar { 
    background: transparent; 
    position: absolute; 
    box-shadow: none; 
    width: 100%; 
}

.logo-and-back {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-back-btn {
    background-color: rgba(26, 28, 35, 0.7); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.1); 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.3s; 
    backdrop-filter: blur(5px);
}

.top-back-btn:hover {
    background-color: #d81f26; 
    transform: scale(1.05);
}

html[dir="ltr"] .top-back-btn svg { 
    transform: rotate(180deg); 
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 4px; 
}

.logo-red-i { 
    color: #d81f26; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 2.8rem; 
    font-weight: 900; 
    line-height: 0.8; 
}

.logo-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.logo-en { 
    color: #ffffff; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    line-height: 1; 
}

.logo-ar { 
    color: #ffffff; 
    font-family: 'Cairo', sans-serif; 
    font-size: 1rem; 
    font-weight: 900; 
    letter-spacing: 1px; 
    line-height: 1; 
    margin-top: -2px; 
}

.search-container { 
    display: flex; 
    flex-grow: 1; 
    max-width: 450px; 
    margin: 0 20px; 
}

.search-container input { 
    width: 100%; 
    padding: 8px 15px; 
    border: none; 
    border-radius: 0 5px 5px 0; 
    background-color: #1a1c23; 
    color: white; 
    outline: none; 
    font-family: 'Cairo', sans-serif; 
    font-size: 0.95rem; 
}

.search-container button { 
    padding: 8px 20px; 
    border: none; 
    background-color: #d81f26; 
    color: white; 
    cursor: pointer; 
    border-radius: 5px 0 0 5px; 
    font-family: 'Cairo', sans-serif; 
    font-weight: 700; 
    transition: background 0.3s; 
}

.controls-container { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.login-btn { 
    background-color: transparent; 
    color: #e0e0e0; 
    border: 1px solid rgba(255,255,255,0.3); 
    padding: 6px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-family: 'Cairo', sans-serif; 
    font-size: 0.9rem; 
    font-weight: 700; 
    transition: all 0.3s; 
}

.login-btn:hover { 
    background-color: white; 
    color: #0f1115; 
}

#lang-toggle-btn { 
    background: none; 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    font-size: 1rem; 
}

/* ==========================================
   3. نافذة المصادقة (Auth Modal)
   ========================================== */
.auth-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px); 
    z-index: 2000; 
    justify-content: center; 
    align-items: center; 
}

.auth-box { 
    background-color: #16181f; 
    padding: 30px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 400px; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
}

.close-btn { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: none; 
    border: none; 
    color: #aaa; 
    font-size: 1.5rem; 
    cursor: pointer; 
    transition: color 0.3s; 
}

.close-btn:hover { color: #fff; }
.auth-box h2 { text-align: center; margin-bottom: 20px; color: #fff; }
.auth-box input { width: 100%; padding: 12px; margin-bottom: 15px; background-color: #0f1115; border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 6px; font-family: 'Cairo', sans-serif; }
.auth-submit-btn { width: 100%; padding: 12px; background-color: #d81f26; border: none; color: white; font-weight: bold; border-radius: 6px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 1rem; }
.auth-footer { margin-top: 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.auth-footer p { font-size: 0.85rem; color: #aaa; margin-bottom: 10px; }
.auth-login-btn { background: transparent; color: #fff; border: 1px solid #fff; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.9rem; }

/* ==========================================
   4. السلايدر الرئيسي (Hero Banner Slider)
   ========================================== */
.banner-slider { 
    position: relative; 
    width: 100%; 
    height: 70vh; 
    overflow: hidden; 
    background-color: #0f1115; 
    cursor: grab; 
    touch-action: pan-y; 
}

.banner-slider:active { cursor: grabbing; }

.slider-track { 
    display: flex; 
    width: 100%; 
    height: 100%; 
    transition: transform 1.2s cubic-bezier(0.1, 1, 0, 1); 
}

.slide { 
    min-width: 100%; 
    height: 100%; 
    position: relative; 
    overflow: hidden; 
    user-select: none; 
    -webkit-user-drag: none; 
    cursor: pointer; /* جعل الشريحة كاملة قابلة للنقر */
}

.slide::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to top, #0f1115 0%, transparent 40%, rgba(15, 17, 21, 0.4) 100%); 
    pointer-events: none; 
}

.slide .backdrop-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center top; 
    transform: scale(1.08); 
    transition: transform 6s ease-out; 
    pointer-events: none; 
}

.slide.active .backdrop-img { transform: scale(1); }

/* تم إصلاح زر ونصوص الشعار بالسلايدر ليقبل اللمس فوراً */
.logo-container-movie { 
    position: absolute; 
    bottom: 12%; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 20; 
    width: 100%; 
    max-width: 260px; 
    text-align: center; 
    cursor: pointer;
    pointer-events: auto; /* تم إزالة قفل اللمس القديم */
}

.movie-logo { 
    width: 100%; 
    max-height: 110px; 
    object-fit: contain; 
    filter: drop-shadow(0px 5px 12px rgba(0, 0, 0, 0.95)); 
    pointer-events: auto;
}

.movie-text-title { 
    color: white; 
    font-size: 1.8rem; 
    font-weight: 900; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9); 
    pointer-events: auto;
}

.slider-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 6px; 
    z-index: 30; 
}

.dot { 
    width: 6px; 
    height: 6px; 
    background-color: rgba(255, 255, 255, 0.3); 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.4s ease; 
}

.dot.active { 
    width: 18px; 
    border-radius: 10px; 
    background-color: #d81f26; 
}

/* ==========================================
   5. شريط الإعلانات المتحرك وحركات الأنميشن
   ========================================== */
.dynamic-ad-banner { 
    width: 100%; 
    height: 50px; 
    background-color: #121419; 
    border-bottom: 2px solid #2a0b0d; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    position: relative; 
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); 
}

.ad-content { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #e0e0e0; 
    letter-spacing: 0.5px; 
    text-align: center; 
    width: 100%; 
}

.ad-highlight { 
    color: #d81f26; 
    font-weight: 900; 
}

/* الحركات الـ 10 للإعلانات */
.anim-fade { animation: adFade 0.8s ease-in-out; } 
@keyframes adFade { 0% { opacity: 0; } 100% { opacity: 1; } }

.anim-slide-up { animation: adSlideUp 0.6s cubic-bezier(0.1, 1, 0, 1); } 
@keyframes adSlideUp { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

.anim-blur { animation: adBlur 1s ease-out; } 
@keyframes adBlur { 0% { filter: blur(10px); opacity: 0; } 100% { filter: blur(0); opacity: 1; } }

.anim-zoom { animation: adZoom 0.7s cubic-bezier(0.1, 1.5, 0.5, 1); } 
@keyframes adZoom { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.anim-slide-side { animation: adSlideSide 0.8s ease-out; } 
@keyframes adSlideSide { 0% { transform: translateX(50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

.anim-flip { animation: adFlip 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes adFlip { 0% { transform: perspective(400px) rotateX(90deg); opacity: 0; } 100% { transform: perspective(400px) rotateX(0deg); opacity: 1; } }

.anim-bounce { animation: adBounce 0.8s cubic-bezier(0.28, 0.84, 0.42, 1); }
@keyframes adBounce { 0% { transform: translateY(-30px); opacity: 0; } 50% { transform: translateY(10px); } 75% { transform: translateY(-5px); } 100% { transform: translateY(0); opacity: 1; } }

.anim-slide-down { animation: adSlideDown 0.6s cubic-bezier(0.1, 1, 0, 1); } 
@keyframes adSlideDown { 0% { transform: translateY(-30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

.anim-pulse { animation: adPulse 1s ease-in-out; }
@keyframes adPulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 1; color: #fff; } 100% { transform: scale(1); opacity: 1; } }

.anim-swing { animation: adSwing 1s ease-out; transform-origin: top center; }
@keyframes adSwing { 0% { transform: rotateZ(15deg); opacity: 0; } 30% { transform: rotateZ(-10deg); opacity: 1; } 60% { transform: rotateZ(5deg); } 100% { transform: rotateZ(0); opacity: 1; } }

/* ==========================================
   6. صفوف وأقسام المحتوى (Sections & Media Rows)
   ========================================== */
.main-content { padding: 30px 5%; }
.media-section { margin-bottom: 25px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

/* الخط الأحمر للألف */
.section-header h3, .explore-title, .section-title-red { 
    font-size: 1.4rem; 
    font-weight: 900; 
    color: #fff; 
    border-right: 5px solid #d81f26; 
    padding-right: 6px; 
    line-height: 1.1; 
    display: inline-block; 
}

html[dir="ltr"] .section-header h3, 
html[dir="ltr"] .explore-title, 
html[dir="ltr"] .section-title-red { 
    border-right: none; 
    border-left: 5px solid #d81f26; 
    padding-right: 0; 
    padding-left: 6px; 
}

.see-more { 
    color: #888; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    transition: color 0.3s; 
}

.see-more:hover { color: #d81f26; }
html[dir="ltr"] .see-more .arrow { transform: rotate(180deg); }

.media-row { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    padding-bottom: 15px; 
    scrollbar-width: none; 
}
.media-row::-webkit-scrollbar { display: none; }

.media-card { 
    flex: 0 0 160px; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative; 
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    background-color: #1a1c23; 
}

.media-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.media-card img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
    display: block; 
}

.empty-ad-space { width: 100%; height: 100px; margin: 25px 0; }

/* التقييم والشعار الدائري */
.rating-badge { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    width: 25px; 
    height: 25px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
    background: radial-gradient(circle, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 70%); 
}

.laurel-wreath { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.9)); 
    z-index: 1; 
}

.rating-number { 
    position: relative; 
    color: #ffffff; 
    font-size: 0.95rem; 
    font-weight: 900; 
    font-family: 'Montserrat', sans-serif; 
    text-shadow: 0 2px 4px rgba(0,0,0,1); 
    z-index: 2; 
    margin-top: 2px; 
}

/* ==========================================
   7. صفحة الاستكشاف (Explore Page)
   ========================================== */
.explore-header { 
    padding: 30px 5% 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.title-with-back { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.sleek-back-btn { 
    background-color: rgba(26, 28, 35, 0.7); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.1); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.3s; 
    backdrop-filter: blur(5px); 
}

.sleek-back-btn:hover { 
    background-color: #d81f26; 
    transform: scale(1.05); 
}

html[dir="ltr"] .sleek-back-btn svg { transform: rotate(180deg); }

.media-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 20px; 
    padding: 20px 5% 50px; 
}

.media-info-explore { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px 10px 10px; 
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); 
    color: white; 
    text-align: center; 
}

.media-info-explore h4 { 
    font-size: 0.85rem; 
    font-weight: 700; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* ==========================================
   8. صفحة تفاصيل العمل (Details Page)
   ========================================== */
.details-hero-wide {
    position: relative; 
    width: 100%; 
    height: 75vh;
    background-size: cover; 
    background-position: center top;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end;
}

.hero-gradient-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, #0f1115 0%, rgba(15,17,21,0.6) 30%, transparent 80%, rgba(0,0,0,0.5) 100%);
}

.hero-center-content {
    position: relative; 
    z-index: 2; 
    width: 100%; 
    text-align: center;
    padding-bottom: 40px; 
    display: flex; 
    justify-content: center;
}

.title-logo-wrapper { max-width: 450px; width: 100%; }
.details-logo-img { width: 100%; object-fit: contain; filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.9)); }
.details-text-title { font-size: 3rem; font-weight: 900; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,1); font-family: 'Montserrat', sans-serif; }

.details-actions-centered {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    padding: 0 5% 40px; 
    position: relative; 
    z-index: 3;
}

.action-btn {
    padding: 12px 45px; 
    border-radius: 8px; 
    font-family: 'Cairo', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 900; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s;
}

.primary-btn { 
    background-color: #d81f26; 
    color: white; 
    border: none; 
    box-shadow: 0 5px 20px rgba(216, 31, 38, 0.4); 
}

.primary-btn:hover { 
    background-color: white; 
    color: #d81f26; 
    transform: translateY(-3px); 
}

.secondary-btn { 
    background-color: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.3); 
    backdrop-filter: blur(5px); 
}

.secondary-btn:hover { 
    background-color: white; 
    color: #0f1115; 
}

.details-main-content { padding: 0 5% 50px; max-width: 1200px; margin: 0 auto; }
.details-split-layout { display: flex; gap: 50px; margin-bottom: 50px; }
.story-side { flex: 2; }
.section-title-red { margin-bottom: 20px; }
.overview-text { font-size: 1.15rem; line-height: 1.9; color: #e0e0e0; text-align: justify; }

.meta-side-modern {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 25px;
    padding-right: 35px; 
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="ltr"] .meta-side-modern { 
    padding-right: 0; 
    padding-left: 35px; 
    border-right: none; 
    border-left: 1px solid rgba(255, 255, 255, 0.1); 
}

.meta-item-modern { display: flex; flex-direction: column; gap: 5px; }
.meta-item-modern .meta-label { font-size: 0.9rem; color: #888; font-weight: 700; }
.meta-item-modern .meta-value { font-size: 1.1rem; font-weight: 900; color: #fff; }
.meta-value.rating { color: #d4af37; font-size: 1.3rem; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; }
.meta-value.age { color: #d81f26; background: rgba(216, 31, 38, 0.15); padding: 4px 12px; border-radius: 6px; display: inline-block; width: max-content; border: 1px solid rgba(216, 31, 38, 0.3); font-family: 'Montserrat', sans-serif; }

/* أزرار الحلقات والمواسم */
.tv-seasons-section { margin-bottom: 50px; }
.seasons-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; margin-bottom: 20px; }
.seasons-tabs::-webkit-scrollbar { display: none; }

.season-btn, .season-tab-btn { 
    background-color: transparent; 
    color: #888; 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 8px 20px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-family: 'Cairo', sans-serif; 
    font-weight: 700; 
    white-space: nowrap; 
    transition: all 0.3s; 
}

.season-btn.active, .season-btn:hover,
.season-tab-btn.active, .season-tab-btn:hover { 
    background-color: #d81f26; 
    color: #fff; 
    border-color: #d81f26; 
}

.episodes-row { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; padding-bottom: 15px; }
.episodes-row::-webkit-scrollbar { display: none; }

.episode-card { 
    flex: 0 0 240px; 
    background-color: transparent; 
    border-radius: 8px; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: transform 0.3s; 
}

.episode-card:hover { 
    transform: translateY(-5px); 
    border-color: #d81f26; 
    background-color: rgba(255,255,255,0.05); 
}

.episode-img-wrap { position: relative; width: 100%; height: 135px; }
.episode-img { width: 100%; height: 100%; object-fit: cover; }
.episode-number { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 900; font-family: 'Montserrat', sans-serif; }
.episode-info { padding: 12px; }
.episode-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-meta { font-size: 0.8rem; color: #aaa; display: flex; justify-content: space-between; }

/* أبطال العمل */
.cast-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; }
.cast-row::-webkit-scrollbar { display: none; }
.cast-card { flex: 0 0 110px; text-align: center; }
.cast-img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid transparent; transition: border 0.3s; }
.cast-card:hover .cast-img { border-color: #d81f26; }
.cast-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.cast-role { font-size: 0.75rem; color: #888; }

/* نافذة الإعلان التشويقي */
.trailer-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; justify-content: center; align-items: center; }
.trailer-content { width: 90%; max-width: 900px; position: relative; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; border-radius: 12px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.close-trailer { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; }

/* ==========================================
   9. الفوتر (Footer)
   ========================================== */
.site-footer { 
    width: 100%; 
    background-color: #0c0e12; 
    border-top: 1px solid rgba(216, 31, 38, 0.4); 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3); 
    padding: 40px 5% 20px; 
    margin-top: 50px; 
}

.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-right { display: flex; flex-direction: column; gap: 12px; }
.footer-right a { color: #999; text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: color 0.3s; }
.footer-right a:hover { color: #fff; }
.footer-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.copyright { color: #666; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 10px; align-items: center; }
.footer-legal a { color: #888; text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-legal a:hover { color: #d81f26; }
.dot-separator { color: #444; font-size: 0.8rem; }
.footer-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-left p { color: #999; font-size: 0.9rem; font-weight: 700; }
.social-links { display: flex; gap: 15px; }
.social-icon { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background-color: #1a1c23; color: #fff; text-decoration: none; font-family: 'Montserrat', sans-serif; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.social-icon:hover { background-color: #d81f26; transform: translateY(-3px); }

/* ==========================================
   10. التوافقية الشاملة مع جميع الشاشات (Responsiveness)
   ========================================== */

/* 1. للموبايل (أقل من 576px) */
@media (max-width: 576px) {
    .navbar { flex-direction: column; padding: 10px; gap: 10px; }
    .search-container { width: 100%; margin: 0; }
    .banner-slider { height: 38vh; }
    .movie-text-title { font-size: 1.3rem; }
    .ad-content { font-size: 0.8rem; padding: 0 5px; }
    
    .media-card { flex: 0 0 120px; }
    .media-card img { height: 180px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    
    .details-hero-wide { height: 45vh; }
    .details-text-title { font-size: 1.8rem; }
    .details-split-layout { flex-direction: column; gap: 20px; }
    .meta-side-modern { padding: 20px 0 0 0; border-top: 1px solid rgba(255,255,255,0.1); border-right: none; }
    html[dir="ltr"] .meta-side-modern { padding-left: 0; border-left: none; }
    .action-btn { width: 100%; padding: 12px; font-size: 1rem; }
    .details-actions-centered { flex-direction: column; padding: 0 5% 20px; }
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
}

/* 2. للآيباد والتابلت (بين 577px و 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .search-container { max-width: 300px; }
    .banner-slider { height: 50vh; }
    .media-card { flex: 0 0 150px; }
    .media-card img { height: 225px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .details-hero-wide { height: 60vh; }
    .details-split-layout { gap: 30px; }
}

/* 3. للشاشات العادية والكمبيوتر (أكبر من 993px) */
@media (min-width: 993px) {
    .media-card { flex: 0 0 170px; }
    .media-card img { height: 255px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
}

/* 4. لشاشات التلفزيون (TVs) والشاشات العملاقة (أكبر من 1600px) */
@media (min-width: 1600px) {
    .main-content, .details-main-content { max-width: 1600px; margin: 0 auto; }
    .banner-slider { height: 80vh; }
    .movie-text-title { font-size: 2.5rem; }
    .ad-content { font-size: 1.3rem; }
    .media-card { flex: 0 0 220px; }
    .media-card img { height: 330px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
    .section-header h3, .explore-title, .section-title-red { font-size: 1.8rem; }
    .overview-text { font-size: 1.3rem; line-height: 2.2; }
    .details-text-title { font-size: 4rem; }
}
/* ==========================================
   11. تأثير بلوكات التحميل (Skeleton Shimmer)
   ========================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    flex: 0 0 160px;
    height: 240px;
    border-radius: 8px;
    background: linear-gradient(90deg, #16181f 25%, #252936 50%, #16181f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@media (max-width: 576px) {
    .skeleton-card { flex: 0 0 120px; height: 180px; }
}

/* ==========================================
   12. تصغير لوجو صفحة التفاصيل ليكون أنيقاً ومتناسقاً
   ========================================== */
.title-logo-wrapper { 
    max-width: 250px !important; /* تم تصغيره من 450px */
    width: 100%; 
    margin: 0 auto;
}

.details-logo-img { 
    width: 100%; 
    max-height: 110px !important; /* حد أقصى للارتفاع */
    object-fit: contain; 
    filter: drop-shadow(0px 8px 16px rgba(0,0,0,0.95)); 
}

.details-text-title { 
    font-size: 2rem !important; /* تصغير حجم العنوان النصي */
    font-weight: 900; 
    color: #fff; 
    text-shadow: 0 4px 12px rgba(0,0,0,1); 
    font-family: 'Montserrat', 'Cairo', sans-serif; 
}
