/*
Theme Name: Aflamicose Cinema Ultimate V5
Theme URI: https://aflamicose.com
Author: Aflamicose Studio
Version: 5.0.1
*/

:root {
    --bg-main: #0b0706;
    --bg-card: #150f0d;
    --bg-hover: #221714;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --text-main: #ffffff;
    --text-muted: #9c8e8a;
    --border: #2a1d1a;
    --gold: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', sans-serif; }
body { background: var(--bg-main); color: var(--text-main); direction: rtl; display: flex; overflow-x: hidden; }

/* الشريط الجانبي الأيقوني */
.side-navbar { width: 75px; height: 100vh; background: #060403; position: fixed; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 25px 0; z-index: 1000; border-left: 1px solid var(--border); }
.side-logo { font-size: 26px; color: var(--accent); font-weight: 900; text-decoration: none; }
.side-menu-links { display: flex; flex-direction: column; gap: 25px; }
.side-menu-links a { color: var(--text-muted); font-size: 20px; transition: 0.3s; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 12px; }
.side-menu-links a:hover, .side-menu-links a.active { color: #fff; background: var(--bg-hover); color: var(--accent); }

/* المحتوى الرئيسي */
.main-wrapper { margin-right: 75px; width: calc(100% - 75px); min-height: 100vh; display: flex; flex-direction: column; }

/* الهيدر العلوي والأزرار */
.top-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.circle-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.circle-btn:hover { background: var(--accent); }

/* Hero Banner */
.hero-slider-section { position: relative; width: 100%; height: 75vh; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 60px 40px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,7,6,0.1) 0%, rgba(11,7,6,0.95) 100%); }
.hero-content { position: relative; z-index: 10; max-width: 650px; }
.hero-title { font-size: 45px; font-weight: 900; margin-bottom: 15px; }
.hero-meta { display: flex; gap: 15px; font-size: 14px; color: var(--text-muted); margin-bottom: 15px; align-items: center; }
.hero-meta .badge { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: bold; }
.hero-overview { font-size: 15px; line-height: 1.8; color: #d1c7c5; margin-bottom: 25px; }
.hero-btn-play { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: 800; text-decoration: none; transition: 0.3s; }
.hero-btn-play:hover { background: var(--accent-hover); transform: scale(1.05); }

/* شريط الفلاتر */
.filter-bar { display: flex; gap: 12px; padding: 15px 40px; overflow-x: auto; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.filter-select { background: #1f1412; border: 1px solid var(--border); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; outline: none; }

/* صفوف الكاروسيل والأفلام */
.content-row { padding: 30px 40px; }
.row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.row-title { font-size: 20px; font-weight: 800; border-right: 4px solid var(--accent); padding-right: 12px; }
.movies-scroll-grid { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; }
.movies-scroll-grid::-webkit-scrollbar { display: none; }

/* كارت البوستر العادي و Top 10 */
.movie-card { position: relative; flex: 0 0 190px; border-radius: 10px; overflow: hidden; background: var(--bg-card); transition: 0.3s; text-decoration: none; color: #fff; }
.movie-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.6); }
.movie-poster { width: 100%; height: 280px; object-fit: cover; }
.top-badge { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #f59e0b, #b45309); color: #000; font-weight: 900; font-size: 13px; padding: 6px 10px; border-bottom-left-radius: 10px; }
.card-details { padding: 12px; }
.card-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* المشغل السينمائي بصفحة الفيلم */
.cinema-player-box { width: 100%; height: 600px; background: #000; border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 30px; }
.cinema-player-box iframe { width: 100%; height: 100%; border: none; }

/* طاقم التمثيل الدائري */
.cast-circle-grid { display: flex; gap: 20px; overflow-x: auto; padding: 10px 0; }
.cast-circle-item { text-align: center; flex: 0 0 100px; }
.cast-circle-item img { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); margin-bottom: 8px; }
.cast-name { font-size: 13px; font-weight: 700; }
.cast-role { font-size: 11px; color: var(--text-muted); }

/* الفوتر */
.site-footer { margin-top: auto; padding: 40px; text-align: center; background: #060403; border-top: 1px solid var(--border); }
.footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; font-size: 14px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-socials a:hover { background: var(--accent); color: #fff; }
.copyright { font-size: 12px; color: var(--text-muted); }
/* ===================================================
   تجاوب القالب مع شاشات الهواتف المحمولة (Mobile Responsive)
   =================================================== */

@media (max-width: 768px) {
    /* 1. إلغاء المساحة الجانبية وتحويل القائمة لشريط سفلي ثابت */
    body {
        display: block;
        padding-bottom: 70px; /* مساحة للشريط السفلي */
    }

    .main-wrapper {
        margin-right: 0 !important;
        width: 100% !important;
    }

    .side-navbar {
        width: 100% !important;
        height: 60px !important;
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        padding: 0 15px !important;
        background: rgba(11, 7, 6, 0.98) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        border-left: none !important;
        z-index: 99999;
    }

    .side-logo, .side-menu-bottom {
        display: none !important; /* إخفاء الشعار داخل الشريط السفلي */
    }

    .side-menu-links {
        flex-direction: row !important;
        width: 100%;
        justify-content: space-around;
        gap: 0 !important;
    }

    .side-menu-links a {
        font-size: 18px !important;
        width: 40px !important;
        height: 40px !important;
    }

    /* 2. الهيدر العلوي ومربع البحث */
    .top-header {
        padding: 15px 20px !important;
        gap: 10px;
    }

    .header-search {
        flex: 1;
    }

    .header-search form {
        width: 100%;
    }

    .header-search input {
        width: 100% !important;
        font-size: 12px !important;
    }

    .top-actions {
        gap: 8px;
    }

    .circle-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 13px !important;
    }

    /* 3. Hero Banner على الهاتف */
    .hero-slider-section {
        height: 55vh !important;
        padding: 20px !important;
    }

    .hero-title {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }

    .hero-meta {
        font-size: 12px !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        flex-wrap: wrap;
    }

    .hero-overview {
        display: none; /* إخفاء النص الطويل على شاشة الموبايل للتركيز على الزر */
    }

    .hero-btn-play {
        padding: 9px 18px !important;
        font-size: 13px !important;
        width: 100%;
        justify-content: center;
    }

    /* 4. شريط الفلاتر */
    .filter-bar {
        padding: 10px 15px !important;
        gap: 8px;
    }

    .filter-select {
        padding: 6px 10px !important;
        font-size: 11px !important;
        flex: 0 0 auto;
    }

    /* 5. شبكة وسلايدر كروت الأفلام */
    .content-row {
        padding: 20px 15px !important;
    }

    .row-title {
        font-size: 16px !important;
    }

    .movies-scroll-grid {
        gap: 12px !important;
    }

    .movie-card {
        flex: 0 0 135px !important; /* حجم بوستر مناسب ومريح لليد */
        border-radius: 8px !important;
    }

    .movie-poster {
        height: 195px !important;
    }

    .card-details {
        padding: 8px !important;
    }

    .card-title {
        font-size: 12px !important;
    }

    .card-meta {
        font-size: 10px !important;
    }

    .top-badge {
        font-size: 10px !important;
        padding: 4px 6px !important;
    }

    /* 6. صفحة الفيلم وتفاصيله (Single Movie) */
    div[style*="padding: 40px"] {
        padding: 15px !important;
    }

    div[style*="display:flex; gap:35px"] {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 15px !important;
    }

    div[style*="display:flex; gap:35px"] img {
        width: 100% !important;
        height: 380px !important;
        margin: 0 auto;
    }

    div[style*="display:flex; gap:35px"] h1 {
        font-size: 20px !important;
    }

    /* أزرار المشاهدة والتحميل على الموبايل */
    div[style*="display:flex; gap:15px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* 7. مشغل الفيديو وصفحة المشاهدة */
    .cinema-player-box {
        height: 230px !important; /* ارتفاع مريح للشاشات الصغيرة */
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }

    /* 8. دوائر الممثلين والوسائط */
    .cast-circle-item {
        flex: 0 0 75px !important;
    }

    .cast-circle-item img {
        width: 65px !important;
        height: 65px !important;
    }

    .cast-name {
        font-size: 11px !important;
    }

    .cast-role {
        font-size: 9px !important;
    }

    /* 9. الفوتر */
    .site-footer {
        padding: 25px 15px !important;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px !important;
        font-size: 12px !important;
    }
}
/* =======================================================
   تصميم صفحة عرض الفيلم السينمائية الفاخرة (Ultimate Movie Page)
   ======================================================= */

.cinema-details-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #090504;
    color: #fff;
}

/* البانر البانورامي */
.hero-cinematic-cover {
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.hero-cinematic-mask {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: linear-gradient(180deg, rgba(9, 5, 4, 0.4) 0%, rgba(9, 5, 4, 0.85) 60%, #090504 100%),
                linear-gradient(90deg, #090504 0%, rgba(9, 5, 4, 0.6) 50%, rgba(9, 5, 4, 0.95) 100%);
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

.hero-inner-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 45px;
    align-items: center;
}

/* بوستر الفيلم */
.hero-poster-column {
    flex: 0 0 260px;
}

.poster-card-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.poster-card-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.badge-card-quality {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(249, 115, 22, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

/* بيانات الفيلم والعنوان */
.hero-meta-column {
    flex: 1;
}

.meta-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pill-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #d1c7c5;
}

.pill-rating {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.pill-age {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.5);
    color: #f87171;
}

.movie-page-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
}

.movie-genres-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.genre-tag {
    background: #1c1311;
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.movie-description-block p {
    font-size: 15px;
    line-height: 1.8;
    color: #b0a4a1;
    max-width: 800px;
    margin-bottom: 25px;
}

/* أزرار الإجراءات */
.hero-actions-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cinema-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-watch-main {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-watch-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
}

.btn-download-main {
    background: #191210;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-download-main:hover {
    background: #22c55e;
    color: #000 !important;
    transform: translateY(-3px);
}

.cinema-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #191210;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.cinema-btn-icon:hover {
    background: #f97316;
    border-color: #f97316;
}

/* أقسام التفاصيل السفلية */
.details-body-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 40px 60px;
}

.details-block-section {
    margin-top: 40px;
}

.details-section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    border-right: 4px solid #f97316;
    padding-right: 12px;
}

.full-synopsis-text {
    background: #120c0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    color: #c4b9b7;
    line-height: 2;
    font-size: 15px;
}

/* طاقم العمل الدائري */
.cast-circular-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.cast-avatar-item {
    flex: 0 0 100px;
    text-align: center;
}

.avatar-circle-frame {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.avatar-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-avatar-item:hover .avatar-circle-frame {
    border-color: #f97316;
    transform: scale(1.08);
}

.actor-real-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actor-role-title {
    font-size: 11px;
    color: #8c7e7b;
}

/* معرض الصور */
.gallery-photo-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb-card img {
    width: 280px;
    height: 165px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.gallery-thumb-card img:hover {
    transform: scale(1.03);
    border-color: #f97316;
}

/* التجاوب مع شاشات الهواتف */
@media (max-width: 768px) {
    .hero-cinematic-mask {
        padding: 30px 20px;
    }
    .hero-inner-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .hero-poster-column {
        flex: 0 0 auto;
    }
    .poster-card-frame img {
        width: 190px;
        height: 275px;
        margin: 0 auto;
    }
    .movie-page-title {
        font-size: 24px;
    }
    .meta-pills-row, .movie-genres-row, .hero-actions-group {
        justify-content: center;
    }
    .cinema-btn {
        width: 100%;
        justify-content: center;
    }
    .details-body-container {
        padding: 20px;
    }
}
/* شبكة الأفلام المشابهة */
.similar-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.similar-movie-card {
    background: #140d0b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.similar-movie-card:hover {
    transform: translateY(-6px);
    border-color: #f97316;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.similar-poster-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.similar-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.similar-movie-card:hover .similar-poster-wrap img {
    transform: scale(1.05);
}

.similar-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.similar-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.similar-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.similar-year {
    font-size: 11px;
    color: #8c7e7b;
}

@media (max-width: 768px) {
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .similar-poster-wrap {
        height: 190px;
    }
}
/* ==========================================
   تنسيقات الأرشيف والتصنيفات (Archive & Genres)
   ========================================== */

.cinema-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px 60px;
    width: 100%;
}

.archive-header-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px 30px;
    border-radius: 14px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-title-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-main-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.archive-count-badge {
    background: #241714;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* شريط أزرار التصنيفات */
.archive-genre-pills-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.genre-pill-btn {
    background: #191210;
    border: 1px solid var(--border);
    color: #b0a4a1;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
}

.genre-pill-btn:hover, .genre-pill-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* شبكة كروت الأرشيف */
.archive-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.archive-movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive-movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.archive-poster-box {
    position: relative;
    width: 100%;
    height: 275px;
    overflow: hidden;
}

.archive-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.archive-movie-card:hover .archive-poster-box img {
    transform: scale(1.08);
}

.card-badge-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.card-badge-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(249, 115, 22, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.hover-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.archive-movie-card:hover .card-hover-overlay {
    opacity: 1;
}

.archive-card-details {
    padding: 12px;
}

.archive-card-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.archive-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    color: var(--accent);
}

/* الترقيم السينمائي */
.cinema-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cinema-pagination ul {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.cinema-pagination li a, .cinema-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.cinema-pagination li span.current, .cinema-pagination li a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.no-movies-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--text-muted);
}

/* تجاوب الأرشيف على الهاتف */
@media (max-width: 768px) {
    .cinema-archive-container {
        padding: 15px;
    }
    .archive-header-banner {
        padding: 15px;
    }
    .archive-main-title {
        font-size: 18px;
    }
    .archive-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .archive-poster-box {
        height: 200px;
    }
}
/* ========================================================
   تنسيقات الأقسام العشوائية والمقترحة في صفحة المشاهدة
   ======================================================== */

.watch-suggested-section {
    margin-bottom: 40px;
}

.watch-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.watch-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.watch-movies-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 18px;
}

.watch-suggest-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-suggest-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.watch-card-poster {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
}

.watch-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.watch-suggest-card:hover .watch-card-poster img {
    transform: scale(1.06);
}

.card-badge-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.card-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    color: #fff;
    font-size: 22px;
}

.watch-suggest-card:hover .card-hover-play {
    opacity: 1;
}

.watch-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.watch-card-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.watch-card-year {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .watch-movies-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .watch-card-poster {
        height: 185px;
    }
    .watch-section-subtitle {
        display: none;
    }
}
/* إصلاح حاوية المشغل بالكامل ومنع أي تعارض إعلاني */
.cinema-watch-full-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 25px 30px;
    display: block !important;
}

.watch-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.watch-movie-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.watch-ad-container {
    width: 100%;
    display: block;
    clear: both;
    margin: 15px 0;
    text-align: center;
}

/* المشغل السينمائي 16:9 بنسبة عرض كاملة */
.cinema-player-wrapper {
    width: 100% !important;
    display: block !important;
    background: #000;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 25px;
    clear: both;
}

.cinema-screen-box {
    position: relative;
    width: 100% !important;
    padding-top: 56.25% !important; /* نسبة 16:9 الحقيقية للسينما */
    background: #000;
}

.cinema-screen-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* شريط السيرفرات السفلي */
.modern-servers-panel {
    width: 100% !important;
    background: #120b09;
    padding: 20px;
    box-sizing: border-box;
    border-top: 1px solid var(--border);
}

.servers-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px;
    margin: 15px 0;
    width: 100%;
}

.servers-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    margin-top: 10px;
    width: 100%;
}

@media (max-width: 768px) {
    .cinema-watch-full-page {
        padding: 15px 10px;
    }
    .servers-footer-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn-direct-download-action {
        width: 100%;
        justify-content: center;
    }
}
/* تنسيق كروت السيرفرات باللون البرتقالي والداكن */
.server-card-item {
    background: #18100d !important;
    border: 1px solid #33201a !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    outline: none !important;
}

/* حالة التحويم واللمس */
.server-card-item:hover {
    background: #231612 !important;
    border-color: #f97316 !important;
    transform: translateY(-2px);
}

/* السيرفر النشط حالياً (Active / البرتقالي المضيء) */
.server-card-item.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.45) !important;
}

/* نصوص وعناوين السيرفر */
.server-card-item .srv-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.server-card-item .srv-badge {
    font-size: 11px !important;
    color: #d1c7c5 !important;
}

.server-card-item.active .srv-badge {
    color: #ffe4d6 !important;
}

/* شارة الجودة داخل السيرفر */
.server-card-item .srv-quality {
    font-size: 11px !important;
    font-weight: 800 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.server-card-item.active .srv-quality {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

/* أيقونة التشغيل داخل السيرفر */
.server-card-item .srv-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #271a17 !important;
    color: #f97316 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.server-card-item.active .srv-icon-wrap {
    background: #ffffff !important;
    color: #ea580c !important;
}