/* =========================================================
   000 Player Clone - ALmEz0 IPTV Player
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Outfit:wght@400;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=Readex+Pro:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0f121a;
    --bg-card: rgba(26, 32, 44, 0.9);
    --border-card: rgba(255, 255, 255, 0.05);

    --accent-red: #d92424;
    --accent-red-hover: #f03232;
    --accent-gold: #f4c242;
    --accent-gold-hover: #f5d16e;

    --grad-live: radial-gradient(circle at 30% 30%, #153c82 0%, #050e1f 100%);
    --grad-movies: radial-gradient(circle at 70% 30%, #9e1c1c 0%, #1a0303 100%);
    --grad-series: radial-gradient(circle at 40% 50%, #5d1b91 0%, #0f0217 100%);

    --text-main: #ffffff;
    --text-muted: #8b949e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

.hidden {
    display: none !important;
}

/* =========================================================
   GLOBAL SLIM MODERN SCROLLBARS (VERTICAL & HORIZONTAL)
   ========================================================= */
*::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

*::-webkit-scrollbar-corner,
::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* =========================================================
   CANVAS SCALER ENGINE (Fixed Desktop Canvas 1200x750)
   ========================================================= */
#app-scaler,
.app-scaler {
    width: 1650px;
    height: 750px;
    min-width: 1650px;
    min-height: 750px;
    max-width: 1650px;
    max-height: 750px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-main);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
}

.app-screen-container {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

/* =========================================================
   AUTH SCREENS (Login & Server Code)
   ========================================================= */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: transparent;
}

.auth-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    padding: 65px 45px;
    /* زيادة الارتفاع الرأسي للصندوق */
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    text-align: center;
    position: relative;
}

.auth-logo {
    width: 140px;
    height: auto;
    margin-bottom: 24px;
    /* مسافة رأسية إضافية أسفل الشعار */
}

.auth-title {
    font-family: 'Tajawal', 'Readex Pro', 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #fff;
    direction: rtl;
    unicode-bidi: isolate;
}

.auth-subtitle {
    font-size: 25px !important;
    /* تكبير الحجم بشكل واضح جداً */
    color: #ffffff !important;
    /* تغيير اللون إلى الأبيض البارز */
    font-weight: 900 !important;
    /* جعل الخط عريضاً */
    margin-bottom: 25px !important;
}

.input-group {
    text-align: left;
    margin-bottom: 28px;
}

.input-label {
    display: block;
    font-size: 19px;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px 20px 20px 60px;
    /* زيادة بسيطة في ارتفاع حقل الإدخال */
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    outline: none;
    transition: border-color 0.3s;
    position: relative;
}

.input-field:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 22px;
}

.btn-primary {
    width: 100%;
    padding: 20px;
    /* زيادة ارتفاع زر الاتصال */
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-gold {
    background: var(--accent-gold);
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
}

.btn-red {
    background: var(--accent-red);
    color: #fff;
}

.btn-red:hover {
    background: var(--accent-red-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   DASHBOARD / NAVBAR
   ========================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================================================
   شعار المنصة في شريط التنقل
   ========================================================= */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
    text-decoration: none;
    cursor: default;
    margin-right: 30px;
    /* هذا السطر الجديد لإبعاد الشعار عن زر الرئيسية */
}

.nav-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 14px rgba(217, 36, 36, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(217, 36, 36, 0.6), 0 6px 18px rgba(0, 0, 0, 0.6);
}

.nav-brand-text {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

/* تكبير زر الرجوع / الرئيسية الأخضر */
.btn-home-return {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    /* زيادة القطر (كان 58px) */
    height: 66px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15) !important;
    border: 2.5px solid rgba(76, 175, 80, 0.8) !important;
    color: #4caf50 !important;
    font-size: 30px;
    /* تكبير أيقونة البيت */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.btn-home-return i {
    color: #4caf50 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-home-return:hover {
    color: #00ff66 !important;
    border-color: #00ff66 !important;
    background: rgba(76, 175, 80, 0.35) !important;
    box-shadow: 0 0 32px rgba(0, 255, 102, 0.95), inset 0 0 16px rgba(0, 255, 102, 0.5) !important;
    transform: scale(1.1);
}

/* زيادة المسافات بين الأزرار لتتناسب مع الحجم الأكبر */
/* =========================================================
   زيادة المسافة والتباعد بين أزرار التحكم (الخروج، الملف الشخصي، التحديث)
   ========================================================= */
.nav-right,
.nav-user {
    display: flex !important;
    align-items: center !important;
    gap: 38px !important;
    /* زيادة التباعد بين الأزرار (كان 28px) */
}

.refresh-icon {
    margin-left: 15px;
    color: #f4c242 !important;
    /* اللون الأصفر الفخم */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(244, 194, 66, 0.75));
    /* توهج أصفر متناسق */
}

.refresh-icon:hover {
    color: #f5d16e !important;
    filter: drop-shadow(0 0 18px rgba(245, 209, 110, 0.95)) !important;
    transform: scale(1.18);
}

/* تكبير زر الملف الشخصي (Profile) */
.profile-icon {
    cursor: pointer;
    font-size: 40px !important;
    /* تكبير أيقونة المستخدم (كانت 34px) */
    color: #2196f3 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.8));
}

.profile-icon:hover {
    color: #00e5ff !important;
    filter: drop-shadow(0 0 26px rgba(0, 229, 255, 0.95)) !important;
    transform: scale(1.18);
}

/* تكبير زر تسجيل الخروج (Logout) */
.logout-icon {
    cursor: pointer;
    font-size: 38px !important;
    /* تكبير أيقونة الخروج (كانت 32px) */
    color: #ff3333 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(-1);
    filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.8));
}

.logout-icon:hover {
    color: #ff1744 !important;
    filter: drop-shadow(0 0 26px rgba(255, 23, 68, 0.95)) !important;
    transform: scaleX(-1) scale(1.18);
}

.logout-icon:hover {
    color: #ff1744 !important;
    filter: drop-shadow(0 0 18px rgba(255, 23, 68, 0.95)) drop-shadow(0 0 30px rgba(255, 23, 68, 0.7)) !important;
    transform: scaleX(-1) scale(1.22);
}

/* إخفاء زر الرجوع الموجود بجانب القنوات */
.back-icon {
    display: none !important;
}

.back-icon:hover {
    color: #00ff66 !important;
    filter: drop-shadow(0 0 18px rgba(0, 255, 102, 0.95)) !important;
    transform: scale(1.2);
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* =========================================================
   تكبير الصناديق الرئيسية (البث، الأفلام، المسلسلات)
   ========================================================= */
.dash-cards-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(340px, 500px));
    /* زيادة عرض الكروت (كان 300px-450px) */
    justify-content: center;
    align-content: center;
    gap: 45px;
    padding: 20px 40px;
}

.dash-card {
    height: 480px;
    /* زيادة ارتفاع الكرت (كان 400px) */
    align-self: center;
    border-radius: 24px;
    /* تدوير الحواف بشكل أوضح وأفخم */
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dash-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.dash-card i {
    position: absolute;
    top: 45px;
    left: 45px;
    font-size: 65px;
    /* تكبير الأيقونة العلوية (كانت 50px) */
    opacity: 0.85;
}

.dash-card h2 {
    font-size: 40px;
    /* تكبير عنوان الكرت (كان 32px) */
    font-weight: 900;
    margin-bottom: 8px;
    z-index: 1;
}

.dash-card p {
    font-size: 18px;
    /* تكبير النص التوضيحي (كان 16px) */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* =========================================================
   تكبير أزرار التواصل (واتساب، فيسبوك، اتصال) في الفوتر
   ========================================================= */
.dash-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-footer .social-icons {
    display: flex;
    gap: 20px;
    /* زيادة المسافة بين أزرار التواصل */
}

.footer-social-btn {
    width: 48px;
    /* تكبير قطر الزر الدائري (كان 35px) */
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 22px;
    /* تكبير أيقونات التواصل (كانت 18px) */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.btn-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
}

.btn-call:hover {
    background: #ffb300;
    border-color: #ffb300;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.6);
}

.profile-icon:hover {
    color: #2196f3 !important;
}

/* =========================================================
   PLAYER SCREEN
   ========================================================= */
.app-screen {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.col-sidebar {
    width: 480px;
    min-width: 480px;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
}

.col-list {
    width: 485px;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
}

.col-player {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.col-header {
    position: relative;
    z-index: 50;
}

.col-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-box {
    background: rgba(255, 255, 255, 0.06) !important;
    /* خلفية داكنة خفيفة وشفافة */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    /* إطار أنيق حول مربع البحث */
    border-radius: 12px !important;
    /* حواف دائرية عصرية */
    padding: 12px 16px !important;
    /* مساحة داخلية مريحة */
    margin: 12px 15px 15px 15px !important;
    /* تباعد ممتاز عن العناصر المحيطة */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

/* تأثير جمالي عند النقر أو الكتابة داخل مربع البحث */
.search-box:focus-within {
    border-color: var(--accent-red) !important;
    /* يتلون بالإطار الأحمر المميز للمشغل */
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(217, 36, 36, 0.25);
}

.search-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    /* خط أبيض ناصع وواضح للكتابة */
    font-size: 20px !important;
    /* تكبير الخط ليصبح مقروءاً بكل سهولة */
    font-weight: 700 !important;
    /* خط غليظ وبارز */
    outline: none !important;
}

.search-input::placeholder {
    color: #94a3b8 !important;
    /* لون نص التوضيح (Placeholder) مريح للعين */
    font-weight: 500 !important;
}

.list-container {
    flex: 1;
    overflow-y: auto;
}

.list-item {
    padding: 14px 18px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    font-size: 22px;
    /* تم رفع الحجم إلى 22px لخط ضخم وواضح جداً */
    color: #ffffff;
    /* أبيض ناصع */
    font-weight: 700;
    /* غليظ وبارز */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.list-item .cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.cat-count {
    background: transparent !important;
    /* إزالة الخلفية المغلفة تماماً */
    color: #ffffff !important;
    /* لون أبيض صافي وواضح */
    padding: 0 !important;
    /* إزالة الحشو حتى لا يصنع شكلاً مربعاً أو دائرياً */
    border-radius: 0 !important;
    /* إلغاء الانحناء */
    font-size: 22px !important;
    /* حجم كبير وواضح (يمكنك تعديله حسب رغبتك) */
    font-weight: 700 !important;
    /* خط غليظ وبارز */
    min-width: auto !important;
    /* إلغاء الإطار الإجباري للعرض */
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.list-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-red);
    color: #fff;
    font-weight: 600;
}

.list-item.active .cat-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.channel-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.player-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.player-top-header {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.channel-info-header img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-info-header span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.live-channel-fav {
    width: 36px;
    height: 36px;
    margin-right: 6px;
}

.btn-close-live-player {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 15px;
    margin-right: auto;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-close-live-player:hover {
    background: rgba(217, 36, 36, 0.3);
    border-color: var(--accent-red);
    color: #fff;
    transform: scale(1.12);
}

.player-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.styled-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

.styled-select option {
    background: #0f121a;
    color: #fff;
}

.player-action-btns {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-red);
}

.plyr-container {
    flex: 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    color: var(--text-muted);
    font-size: 16px;
}

/* =========================================================
   VOD / MOVIES SCREEN (GRID)
   ========================================================= */
.vod-screen {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.vod-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vod-card:hover {
    transform: scale(1.05);
}

.vod-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.vod-info {
    padding: 0;
}

.vod-title {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-align: center;
    /* هذا السطر هو المسؤول عن توسيط الاسم في المنتصف تماماً */
}


/* =========================================================
   تكبير خط نصوص صندوق معلومات الحساب مع الحفاظ على الارتفاع
   ========================================================= */
/* =========================================================
   تقليل طفيف جداً في ارتفاع صندوق معلومات الحساب
   ========================================================= */
.profile-card {
    background: rgba(0, 0, 0, 0.35) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    width: 100%;
    max-width: 650px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    padding: 40px !important;
    /* تقليل بسيط جداً في حواف الصندوق */
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px !important;
    margin-bottom: 8px !important;
    /* تقليل المسافة أسفل العنوان */
}

.profile-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
}

.profile-name-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px !important;
}

.profile-name-status h2 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0;
}

/* تنسيق وتوهج حالة الحساب عندما يكون متصلاً (أخضر مشع) */
.profile-status {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 1px solid rgba(76, 175, 80, 0.6) !important;
    color: #00ff66 !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.45) !important;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 !important;
    /* تقليل بسيط جداً في تباعد الأسطر */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.profile-label {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.profile-value {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.profile-footer {
    margin-top: 4px !important;
    padding-top: 4px !important;
    display: flex;
    flex-direction: column;
}

.styled-select {
    padding: 6px 18px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Utilities */
.hidden {
    display: none !important;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


/* Generated from inline styles */
.gen-style-1 {
    margin-top: 25px;
}

.gen-style-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: url('https://images.unsplash.com/photo-1593784991095-a205069470b6?auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
}

.gen-style-3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.gen-style-4 {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}

.gen-style-5 {
    background-image: url('https://images.unsplash.com/photo-1593784991095-a205069470b6?auto=format&fit=crop&w=400&q=80');
}

.gen-style-6 {
    background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=400&q=80');
}

.gen-style-7 {
    background-image: url('https://images.unsplash.com/photo-1522869635100-9f4c5e86aa37?auto=format&fit=crop&w=400&q=80');
}

.gen-style-8 {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: flex-end;
}

.gen-style-9 {
    width: auto;
    background: linear-gradient(135deg, #1d94c9, #0a4f8a);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gen-style-10 {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    overflow-y: hidden;
}

/* تكبير عنوان معلومات الحساب */
.gen-style-11 {
    color: #fff;
    font-size: 34px !important;
    /* تكبير حجم الخط (كان 24px) */
    font-weight: 900 !important;
    /* خط عريض جداً وبارز */
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gen-style-12 {
    margin-bottom: 15px;
}

.gen-style-13 {
    color: #ccc;
}

.gen-style-14 {
    margin-left: 20px;
}

.gen-style-15 {
    font-size: 13px;
    color: #aaa;
}

.gen-style-16 {
    color: var(--accent-red);
    margin: 0 5px;
}

.gen-style-17 {
    color: var(--accent-gold);
    margin: 0 5px;
}

.gen-style-18 {
    color: #3b82f6;
    margin: 0 5px;
}

.gen-style-19 {
    width: 250px;
}

.gen-style-20 {
    padding: 20px;
    padding-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.gen-style-21 {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gen-style-22 {
    width: 100%;
}

.gen-style-23 {
    flex-direction: column;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gen-style-24 {
    width: auto;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.gen-style-25 {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.gen-style-26 {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
}

.gen-style-27 {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 18px;
}

.gen-style-28 {
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-size: 20px;
}

.gen-style-29 {
    color: #fff;
    margin-bottom: 10px;
}

/* Styles moved from inline HTML */
.auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* =========================================================
   تكبير نص حقوق النشر في الفوتر بشكل بسيط وواضح
   ========================================================= */
.copyright {
    font-size: 16px !important;
    /* تكبير بسيط للخط (كان 14px) */
    font-weight: 700 !important;
    /* خط أوضح وأكثر بروزاً */
    color: #cbd5e1 !important;
    /* تفتيح طفيف للون لتسهيل القراءة */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-user {
    display: flex;
    gap: 15px;
    align-items: center;
}

.profile-icon {
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
    color: #aaa;
}

.profile-icon:hover {
    color: #fff;
}

.logout-icon {
    margin-left: 0;
}

.gen-style-30 {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    font-size: 16px;
}

.gen-style-31 {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 16px;
}

.gen-style-32 {
    padding: 40px;
}

.gen-style-33 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
    font-size: 30px;
}

.gen-style-34 {
    text-align: center;
    color: #ccc;
    margin-bottom: 40px;
    font-size: 18px;
}

.gen-style-35 {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.gen-style-36 {
    min-height: 100vh;
}

.gen-style-37 {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.gen-style-38 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.gen-style-39 {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.gen-style-40 {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
}

.gen-style-41 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.gen-style-42 {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    font-size: 15px;
}

/* --- Advanced UI: Header Icons, Dropdown, Sort Modal --- */
/* =========================================================
   أيقونة البحث والأزرار العلوية للأقسام باللون الأبيض
   ========================================================= */
.header-icon {
    font-size: 28px !important;
    /* الحفاظ على الحجم المكبر */
    color: #ffffff !important;
    /* اللون الأبيض الناصع */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.header-icon:hover {
    color: #ffffff !important;
    transform: scale(1.2);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.8));
}

.header-dropdown {
    position: absolute;
    top: 45px;
    left: 10px !important;
    /* تثبيت آمن داخل حدود العمود من جهة اليسار */
    right: auto !important;
    transform: none !important;
    /* إلغاء التوسط الخارجي لمنع الخروج عن الحافة وقصه */
    background: #1a1e23;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 0;
    width: 230px !important;
    /* عرض ثابت ومثالي لا يتجاوز الحدود */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
    z-index: 999999 !important;
}

.header-dropdown .dropdown-item {
    padding: 14px 20px !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 17px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: background 0.3s;
}

.header-dropdown .dropdown-item i,
.header-dropdown .dropdown-item svg {
    font-size: 18px !important;
}

.header-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sort-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.01) !important;
    /* درع شفاف تماماً للعين لكنه يمنع النقرات من المرور للخلف */
    pointer-events: auto !important;
    /* لتلتقط النقرات وتمنع وصولها للعناصر الخلفية */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999 !important;
}

.sort-modal.hidden {
    display: none !important;
}

.sort-modal-content {
    pointer-events: auto !important;
    background: rgba(18, 22, 30, 0.95) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    color: #fff !important;
    width: 440px !important;
    /* زيادة عرض الصندوق */
    border-radius: 24px !important;
    /* تدوير الحواف بشكل أكبر */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    overflow: hidden;
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

.sort-modal-header {
    padding: 24px !important;
    /* تكبير الحواف الداخلية للعنوان */
    font-size: 22px !important;
    /* تكبير حجم خط العنوان */
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
}

.sort-options {
    padding: 26px !important;
    /* زيادة المساحة الداخلية للخيارات */
    display: flex;
    flex-direction: column;
    gap: 20px !important;
    /* زيادة التباعد بين الخيارات */
}

.sort-radio {
    display: flex;
    align-items: center;
    gap: 16px !important;
    /* زيادة المسافة بين الدائرة والنص */
    font-size: 20px !important;
    /* تكبير خط النصوص (الافتراضي، أ-ي، ي-أ) */
    font-weight: 700 !important;
    /* جعل الخط أثقل وأوضح */
    color: #ffffff !important;
    /* لون أبيض ناصع وبارز */
    cursor: pointer;
}

.sort-radio input[type="radio"] {
    width: 22px !important;
    /* تكبير أزرار الاختيار الدائرية */
    height: 22px !important;
    accent-color: var(--accent-red);
}

.sort-modal-footer {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-sort-close,
.btn-sort-save {
    flex: 1;
    padding: 18px !important;
    /* زيادة ارتفاع الأزرار السفلية */
    border: none;
    font-weight: 800 !important;
    cursor: pointer;
    font-size: 18px !important;
    /* تكبير الخط داخل أزرار الحفظ والإغلاق */
    transition: background 0.3s;
}

.btn-sort-close {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

.btn-sort-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.btn-sort-save {
    background: var(--accent-red) !important;
    color: #fff !important;
}

.btn-sort-save:hover {
    background: var(--accent-red-hover) !important;
}

.hide-vod-names .vod-title {
    display: none !important;
}

.gen-style-43 {
    color: #ddd;
    margin-bottom: 20px;
    font-size: 15px;
}

span.cat-count:empty {
    display: none !important;
}


/* Auto-extracted inline styles */
.auto-style-1 {
    position: relative;
}

.auto-style-2 {
    position: absolute;
    top: 15px;
    right: 15px;
}

.auto-style-3 {
    margin-top: 25px;
}

.auto-style-4 {
    text-align: center;
    font-size: 19px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.auto-style-5 {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.auto-style-6 {
    position: relative;
}

.auto-style-7 {
    position: absolute;
    top: 15px;
    right: 15px;
}

.auto-style-8 {
    margin-top: 10px;
    margin-bottom: 15px;
}

.auto-style-9 {
    margin-bottom: 15px;
}

.auto-style-10 {
    padding-right: 40px;
}

.auto-style-11 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.auto-style-12 {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.auto-style-13 {
    flex-direction: column;
}

.auto-style-14 {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.auto-style-15 {
    flex-shrink: 0;
}

.auto-style-16 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.auto-style-17 {
    margin: 0;
}

.auto-style-18 {
    display: flex;
    gap: 15px;
    position: relative;
}

.auto-style-19 {
    padding: 0 15px 15px 15px;
}

.auto-style-20 {
    width: 100%;
}

.auto-style-21 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.auto-style-22 {
    margin: 0;
}

.auto-style-23 {
    display: flex;
    gap: 15px;
    position: relative;
}

.auto-style-24 {
    padding: 0 15px 15px 15px;
}

.auto-style-25 {
    width: 100%;
}

.auto-style-26 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.auto-style-27 {
    margin: 0;
}

.auto-style-28 {
    display: flex;
    gap: 15px;
    position: relative;
}

.auto-style-29 {
    padding: 0 15px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto-style-30 {
    width: 100%;
}

.auto-style-31 {
    width: 100%;
}

.auto-style-32 {
    display: flex;
    gap: 10px;
}

.auto-style-33 {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
}

.auto-style-34 {
    display: flex;
    gap: 10px;
}

.auto-style-35 {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
}

.auto-style-36 {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    font-family: 'Tajawal', 'Cairo', 'Outfit', sans-serif;
}

/* =========================================================
   تكبير إضافي طفيف للوقت والتاريخ في منتصف الشريط العلوي
   ========================================================= */
.auto-style-37 {
    font-size: 38px !important;
    /* تكبير خط الساعة (كان 32px) */
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #ffffff;
    line-height: 1.1;
}

.auto-style-38 {
    font-size: 20px !important;
    /* تكبير خط التاريخ (كان 17px) */
    opacity: 0.95;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    color: #e2e8f0 !important;
}

.auto-style-39 {
    color: #2196F3;
}

/* =========================================================
   MOVIE & SERIES DETAILS SCREEN (PREMIUM GLASS-MORPHISM UI)
   ========================================================= */
.movie-screen-layout {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    box-sizing: border-box;
}

.movie-backdrop,
.series-backdrop {
    display: none !important;
}

/* =========================================================
   تكبير الصندوق والمحتويات الداخلية بشكل متناسق وملء الفراغ
   ========================================================= */
.movie-card-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 50px;
    align-items: center;
    /* محاذاة العناصر في المنتصف عمودياً */
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 50px;
    /* زيادة الحواف الداخلية للصندوق */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    max-width: 1150px;
    /* تكبير العرض الأقصى للصندوق */
    width: 100%;
    max-height: 1000px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.movie-poster-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 330px;
    /* تكبير عرض خانة البوستر */
    flex-shrink: 0;
}

.movie-poster-img,
.series-poster-img {
    width: 100%;
    height: 400px;
    /* تكبير طول البوستر ليناسب المساحة الجديدة */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-watch-movie {
    width: 100%;
    padding: 18px;
    /* تكبير زر شاهد الآن */
    font-size: 22px;
    font-weight: 900;
    border-radius: 16px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(217, 36, 36, 0.5);
    transition: all 0.25s ease;
}

.btn-watch-movie:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 36, 36, 0.7);
}

.movie-info-box,
.series-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    /* تباعد متناسق بين العناصر الداخلية */
    min-width: 0;
}

.movie-header-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.movie-main-title {
    font-size: 46px !important;
    /* تكبير عنوان الفيلم بشكل ضخم وبارز */
    font-weight: 900 !important;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.action-btn-fav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px !important;
    /* تكبير زر المفضلة (القلب) */
    height: 60px !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 26px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.action-btn-fav:hover {
    background: rgba(229, 57, 53, 0.25);
    border-color: #e53935;
    color: #e53935;
    transform: scale(1.12);
}

.action-btn-fav.active {
    background: #e53935;
    border-color: #e53935;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(229, 57, 53, 0.7);
}

.movie-genre-text {
    font-size: 20px !important;
    /* تكبير التصنيف والمدة */
    font-weight: 700 !important;
}

.movie-rating-badge {
    font-size: 21px !important;
    /* تكبير شارة التقييم والنقاط */
    font-weight: 800 !important;
}

.movie-subheading {
    font-size: 22px !important;
    /* تكبير كلمة "القصة" والعناوين */
    font-weight: 800 !important;
    margin: 12px 0 8px 0 !important;
}

.movie-plot-text {
    font-size: 18px !important;
    /* تكبير نص القصة لتسهيل قراءته */
    line-height: 1.8 !important;
}

.movie-meta-item,
.movie-text-small,
.movie-subheading-small {
    font-size: 18px !important;
    /* تكبير معلومات المخرج والممثلين */
}

/* ==========================================
   التعديلات الجديدة على النصوص لتكون أكبر وأكثر بياضاً وسماكة
   ========================================== */

.movie-genre-text {
    color: #ffffff !important;
    /* لون أبيض ناصع */
    font-size: 17px !important;
    /* تكبير درجة */
    margin: 0;
    font-weight: 700 !important;
    /* خط غليظ */
}

.movie-rating-badge {
    color: var(--accent-gold);
    font-size: 19px !important;
    /* تكبير التقييم درجة */
    font-weight: 800 !important;
    /* خط غليظ جداً */
    display: flex;
    align-items: center;
    gap: 6px;
}

.movie-details-scrollable {
    overflow-y: auto;
    max-height: 220px;
    padding-left: 5px;
}

.movie-subheading {
    color: #ffffff !important;
    /* أبيض ناصع */
    font-size: 22px !important;
    /* تكبير كلمة "القصة" */
    font-weight: 800 !important;
    /* خط غليظ جداً */
    margin: 10px 0 6px 0;
}

.movie-plot-text {
    color: #ffffff !important;
    /* أبيض ناصع */
    line-height: 1.7;
    font-size: 18px !important;
    /* تكبير خط القصة */
    font-weight: 600 !important;
    /* خط شبه غليظ لتسهيل القراءة */
    margin: 0;
}

.movie-cast-director-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.movie-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px !important;
    /* تكبير حاوية الممثلين والمخرج */
}

.movie-subheading-small {
    color: #ffffff !important;
    /* أبيض ناصع لعناوين (المخرج/الممثلين) */
    margin: 0;
    font-weight: 700 !important;
    /* خط غليظ */
    font-size: 17px !important;
}

.movie-text-small {
    color: #ffffff !important;
    /* أبيض ناصع لأسماء الأشخاص */
    font-weight: 700 !important;
    /* خط غليظ */
    font-size: 17px !important;
}

/* SERIES DETAILS */
.series-screen-layout {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.series-top-card {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.series-poster-box {
    width: 240px;
    flex-shrink: 0;
}

.series-episodes-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.series-episodes-heading {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seasons-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 14px 2px;
}

.season-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 14px 28px !important;
    /* تكبير مساحة زر الموسم */
    font-size: 18px !important;
    /* تكبير حجم خط زر الموسم */
    font-weight: 800 !important;
    /* جعل الخط عريضاً وبارزاً */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px !important;
    /* زيادة التباعد داخل الزر */
    transition: all 0.25s ease;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.season-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.season-tab-btn.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(217, 36, 36, 0.4);
}

.season-count-pill {
    background: rgba(0, 0, 0, 0.35);
    font-size: 15px !important;
    /* تكبير رقم الحلقات بجانب الموسم */
    font-weight: 800 !important;
    /* جعل الرقم عريضاً */
    padding: 4px 12px !important;
    /* زيادة الحواف الداخلية للرقم */
    border-radius: 14px;
}

.season-tab-btn.active .season-count-pill {
    background: rgba(255, 255, 255, 0.25);
}

/* EPISODES GRID */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 20px;
    width: 100%;
}

.episode-card {
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.episode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 36, 36, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 36, 36, 0.25);
}

.episode-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}


.episode-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.episode-card:hover .episode-thumb-img {
    transform: scale(1.08);
}

.episode-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.25s ease;
}

.episode-card:hover .episode-play-overlay {
    opacity: 1;
}

.episode-play-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-red);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(217, 36, 36, 0.5);
    transform: scale(0.8);
    transition: transform 0.25s ease;
}

.episode-card:hover .episode-play-icon {
    transform: scale(1);
}

.episode-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.episode-info-box {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.episode-card-title {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.episode-card-duration {
    color: #94a3b8;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}

/* =========================================================
   FULLSCREEN VIDEO PLAYER MODAL
   ========================================================= */
.fullscreen-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-video-modal.hidden {
    display: none !important;
}

.btn-close-video {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.25s ease, background 0.25s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    opacity: 1;
    pointer-events: auto;
}

.btn-close-video.idle-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    cursor: default;
}

.btn-close-video:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.12);
}

.fullscreen-video-container {
    width: 100%;
    height: 100%;
}

/* Hide PIP Button in Artplayer Controls */
.art-control-pip,
.art-control-pip-mode,
[data-control="pip"] {
    display: none !important;
}

/* Custom SweetAlert2 Dark Glassmorphic Popup Theme */
.almezo-swal-popup {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
    padding: 30px 25px !important;
    background: rgba(18, 22, 30, 0.95) !important;
}

.almezo-swal-popup .swal2-title {
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
}

.almezo-swal-popup .swal2-html-container {
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
    font-size: 15px !important;
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
    margin-top: 5px !important;
}

.almezo-swal-btn {
    background: linear-gradient(135deg, #f4c242, #e5b330) !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 12px 35px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(244, 194, 66, 0.35) !important;
    transition: all 0.25s ease !important;
}

.almezo-swal-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(244, 194, 66, 0.5) !important;
}

/* =========================================================
   FORCE LANDSCAPE OVERLAY
   ========================================================= */
.rotate-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f121a;
    z-index: 9999999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.rotate-icon {
    font-size: 70px;
    color: #4caf50;
    animation: rotatePhone 2s infinite ease-in-out;
}

.rotate-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    color: #fff;
}

.rotate-subtitle {
    font-size: 16px;
    color: #aaa;
    margin-top: 8px;
}

.force-landscape-btn {
    margin-top: 24px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.25s ease;
}

.force-landscape-btn:hover,
.force-landscape-btn:active {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.force-landscape-btn i {
    font-size: 16px;
    transition: transform 0.4s ease;
}

.force-landscape-btn:hover i {
    transform: rotate(180deg);
}

@keyframes rotatePhone {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }
}

@media screen and (orientation: portrait) {
    .rotate-prompt {
        display: flex !important;
    }

    body> :not(#rotate-prompt) {
        display: none !important;
    }
}

/* تنظيف حاويات البحث من أي خطوط سابقة */
.col-sidebar .search-box {
    border: none !important;
}

/* استهداف حقل إدخال الأفلام مباشرة (عن طريق كلمة المسلسلات) ووضع خط أسفله */
input.search-input[placeholder*="المسلسلات"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    display: block !important;
    border-radius: 0 !important;
}

/* ==========================================
   تكبير الشريط السفلي لمشغل Video.js وتنسيق زر الأبعاد
   ========================================== */
.video-js .vjs-control-bar {
    height: 65px !important;
    /* تكبير ارتفاع الشريط بالكامل */
    background-color: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
}

.video-js .vjs-button>.vjs-icon-placeholder:before {
    font-size: 2.4em !important;
    /* تكبير أيقونات الأزرار (تشغيل، إيقاف، تكبير) */
    line-height: 65px !important;
}

.video-js .vjs-time-control {
    font-size: 2.2em !important;
    /* تكبير خط وقت الفيديو */
    line-height: 95px !important;
    font-weight: bold;
}

/* تكبير شريط التقدم (Progress Bar) */
.video-js .vjs-progress-control .vjs-progress-holder {
    height: 8px !important;
    /* زيادة سمك خط التقدم */
}

.video-js .vjs-play-progress:before {
    font-size: 1.6em !important;
    /* تكبير الدائرة التي تسحب بها الفيديو */
    top: -0.4em !important;
}

/* تنسيق الزر الجديد (تغيير الأبعاد) */
.vjs-aspect-ratio-btn {
    cursor: pointer !important;
    width: 50px !important;
}

.vjs-aspect-ratio-btn i {
    line-height: 65px !important;
    color: #fff;
    transition: color 0.3s ease;
}

.vjs-aspect-ratio-btn:hover i {
    color: var(--accent-red);
}

/* =========================================================
   توسيط الساعة والتاريخ بدقة تامة في منتصف الشاشة
   ========================================================= */
.nav-center-time {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    pointer-events: none;
}

/* =========================================================
   إخفاء شارة رقم الحلقة من أعلى البوستر
   ========================================================= */
.episode-badge {
    display: none !important;
}

/* =========================================================
   تعديلات المشغل الاحترافية (تصميم نتفلكس)
   ========================================================= */

/* 1. إخفاء العناصر الخارجية وعناصر الصورة داخل صورة */
.player-top-header {
    display: none !important;
}

.btn-close-video {
    display: none !important;
}

.video-js .vjs-picture-in-picture-control {
    display: none !important;
}

/* 2. تكبير الشريط السفلي وجميع الأزرار */
.video-js .vjs-control-bar {
    height: 95px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent) !important;
    align-items: center !important;
    /* لتوسيط العناصر داخله */
}

.video-js .vjs-button>.vjs-icon-placeholder:before {
    font-size: 4em !important;
    /* تكبير الأيقونات */
    line-height: 95px !important;
}

.video-js .vjs-time-control {
    font-size: 1.5em !important;
    line-height: 75px !important;
}

/* 3. تعديل مستوى الصوت (تغليظ وتوسيط كما في الصورة) */
/* =========================================================
   3. إصلاح وتجميل شريط الصوت (Netflix Style)
   ========================================================= */

.video-js .vjs-volume-panel {
    display: flex !important;
    align-items: center !important;
}

/* توسيط عنصر التحكم بالشريط داخل الحاوية */
.video-js .vjs-volume-control.vjs-control {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* الشريط الرمادي (الخلفية) - جعله غليظاً وموسيطاً */
.video-js .vjs-volume-bar.vjs-slider-horizontal {
    width: 80px !important;
    height: 8px !important;
    /* تغليظ الشريط */
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    margin: 0 10px 0 0 !important;
    position: relative !important;
}

/* الشريط الأحمر (المستوى الفعلي) - يأخذ نفس الارتفاع */
.video-js .vjs-volume-level {
    background: var(--accent-red) !important;
    height: 100% !important;
    /* ضروري لكي يملأ الشريط الرمادي بالكامل ولا ينزل للأسفل */
    border-radius: 4px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* الدائرة البيضاء (المقبض) - توسيط احترافي 100% */
.video-js .vjs-volume-level:before {
    content: '' !important;
    /* مسح الأيقونة الافتراضية واستبدالها بدائرة حقيقية مرسومة */
    position: absolute !important;
    right: -8px !important;
    /* وضعها في نهاية الشريط الأحمر */
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* توسيط الدائرة عمودياً بشكل دقيق جداً */
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

/* إخفاء تلميح (Mute) المزعج الذي ظهر في صورتك */
.video-js .vjs-mute-control .vjs-control-text,
.video-js .vjs-volume-panel .vjs-control-text {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 4. تصميم الشريط العلوي الداخلي (يحتوي الإغلاق والمعلومات) */
.vjs-custom-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s;
    direction: ltr;
    /* زر الإغلاق يسار، والمعلومات يمين */
}

/* إخفاء الشريط العلوي تلقائياً عند اختفاء الشريط السفلي (عدم لمس الشاشة) */
.vjs-user-inactive .vjs-custom-top-bar {
    opacity: 0;
    visibility: hidden;
}

/* تصميم أزرار الشريط العلوي */
.vjs-top-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.vjs-top-btn:hover {
    background: var(--accent-red);
    transform: scale(1.1);
    border-color: var(--accent-red);
}

.vjs-custom-title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. تنسيق الأزرار الجديدة في الشريط السفلي */
.custom-vjs-btn {
    cursor: pointer;
    color: #fff;
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5em;
    transition: color 0.2s;
}

.custom-vjs-btn:hover {
    color: var(--accent-gold);
}

/* تكبير أزرار الترجمة والصوتيات الافتراضية الخاصة بـ Video.js إن وجدت */
.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,
.video-js .vjs-audio-button .vjs-icon-placeholder:before {
    font-size: 2.8em !important;
}

/* إخفاء زر الفل سكرين الداخلي لمنع تعارضه مع زر الرجوع في هواتف الأندرويد */
.video-js .vjs-fullscreen-control {
    display: none !important;
}

/* =========================================================
   تأثيرات حركية (أنيميشن) وألوان عصرية للمشغل (نسخة مصححة)
   ========================================================= */

/* 1. أنيميشن النبض (Pulse) لزر التشغيل الكبير في بداية الفيديو */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 36, 36, 0.7);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(217, 36, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 36, 36, 0);
    }
}

.video-js .vjs-big-play-button {
    background: rgba(217, 36, 36, 0.85) !important;
    /* لون أحمر زجاجي */
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    /* جعله دائرياً تماماً */
    width: 90px !important;
    height: 90px !important;
    line-height: 85px !important;
    /* الترتيب الصحيح لدعم متصفحات آبل ثم المتصفحات القياسية */
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
    animation: pulseGlow 2s infinite !important;
    /* تشغيل النبض */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.video-js .vjs-big-play-button:hover {
    background: var(--accent-red) !important;
    transform: scale(1.1) translate(-45%, -45%) !important;
    /* تكبير عند اللمس */
}

/* إصلاح ترتيب الفلتر الزجاجي لأزرار الشريط العلوي أيضاً */
.vjs-top-btn {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* 2. ألوان متدرجة مضيئة (Gradient Glow) لشريط تقدم الفيديو وشريط الصوت */
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
    background: linear-gradient(90deg, #ff3b30, #ff9f0a) !important;
    /* تدرج من الأحمر للبرتقالي/الذهبي */
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.8) !important;
    /* توهج حول الشريط */
}

/* تلوين نقطة التحكم في الشريط (الدائرة البيضاء) وجعلها تتوهج */
.video-js .vjs-play-progress:before,
.video-js .vjs-volume-level:before {
    color: #fff !important;
    text-shadow: 0 0 10px #ff9f0a !important;
    transition: transform 0.2s ease !important;
}

/* تكبير نقطة التحكم قليلاً عند تمرير الماوس على الشريط */
.video-js .vjs-progress-control:hover .vjs-play-progress:before {
    transform: scale(1.3) translateY(-2px) !important;
}

/* 3. تأثير ارتداد وتوهج لجميع أزرار المشغل السفلية والعلوية */
.video-js .vjs-button,
.custom-vjs-btn,
.vjs-top-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    /* تأثير ارتداد (Bounce) مرن */
}

.video-js .vjs-button:hover,
.custom-vjs-btn:hover {
    transform: translateY(-4px) scale(1.15) !important;
    /* القفز للأعلى والتكبير */
    color: #ff9f0a !important;
    /* تغير اللون للذهبي */
    text-shadow: 0 5px 15px rgba(255, 159, 10, 0.6) !important;
}

/* 4. أنيميشن انزلاق (Slide) سينمائي للأشرطة العلوية والسفلية بدلاً من الاختفاء العادي */
.video-js .vjs-control-bar {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease !important;
}

.vjs-custom-top-bar {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, visibility 0.5s !important;
}

/* عندما يختفي المؤشر (عدم اللمس): ينزل الشريط السفلي لأسفل، ويصعد العلوي لأعلى */
.video-js.vjs-user-inactive .vjs-control-bar {
    transform: translateY(20px) !important;
    /* انزلاق للأسفل */
    opacity: 0 !important;
}

.video-js.vjs-user-inactive .vjs-custom-top-bar {
    transform: translateY(-20px) !important;
    /* انزلاق للأعلى */
    opacity: 0 !important;
}

/* =========================================================
   تأثيرات حركية (أنيميشن) وألوان عصرية لجميع صفحات المنصة
   ========================================================= */

/* 1. أنيميشن الانتقال بين الصفحات (دخول سينمائي ناعم) */
@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* تطبيق الحركة على أي صفحة يتم فتحها (إزالة كلاس hidden) */
.app-screen-container:not(.hidden),
.app-screen:not(.hidden),
#auth1-screen:not(.hidden),
#auth2-screen:not(.hidden) {
    animation: pageEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* 2. تأثيرات عصرية لبطاقات الصفحة الرئيسية (توهج وارتفاع) */
.dash-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.dash-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    /* رفع البطاقة للأعلى */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 3. تأثيرات بطاقات الأفلام والمسلسلات والحلقات */
.vod-card,
.episode-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.vod-card:hover,
.episode-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(217, 36, 36, 0.3) !important;
    /* توهج أحمر خفيف */
    border-color: rgba(217, 36, 36, 0.5) !important;
    z-index: 10;
}

/* 4. حركة القوائم الجانبية (الأقسام والقنوات) */
.list-item {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.list-item:hover {
    transform: translateX(-8px) !important;
    /* دفع العنصر لليسار قليلاً في الواجهة العربية */
    background: linear-gradient(90deg, rgba(217, 36, 36, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-left-color: var(--accent-gold) !important;
}

/* 5. تأثير عصري لجميع الأزرار الرئيسية (توهج عند اللمس) */
.btn-primary,
.btn-watch-movie {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-watch-movie:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(217, 36, 36, 0.5) !important;
    /* توهج */
    filter: brightness(1.1);
}

/* 6. تأثير النبض الخفيف لأيقونة الملف الشخصي والإعدادات في البار العلوي */
@keyframes softPulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.9));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.5));
    }
}

.profile-icon {
    animation: softPulse 3s infinite;
}

/* 7. تحسينات لونية عصرية للخلفية (إعطاء عمق أكبر) */
body {
    background-image: linear-gradient(to bottom, rgba(15, 18, 26, 0.85) 0%, rgba(5, 8, 12, 0.98) 100%), url('photo/background.jpeg') !important;
}

/* أنيميشن ظهور النافذة المنبثقة بشكل سينمائي */
@keyframes modalPopupEntry {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-logout-box {
    animation: modalPopupEntry 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* تأثير حركي تفاعلي لأزرار نافذة الخروج عند مرور الماوس */
.logout-action-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.logout-action-btn:hover {
    transform: translateY(-4px) scale(1.06) !important;
    filter: brightness(1.15);
}

/* إبعاد وإنزال حقوق النشر في الأسفل قليلاً */
.auth-container .auth-footer,
.auth-footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: 40px !important;
    /* زيادة المسافة العلوية لإنزالها للأسفل */
    padding-bottom: 15px;
}

.auth-container .copyright {
    font-size: 0.95rem !important;
    color: #94a3b8 !important;
    letter-spacing: 0.3px;
}

/* إجبار أيقونة التحديث على اللون الأصفر بقوة مطلقة */
.navbar .nav-right i.fas.fa-sync-alt,
.navbar .nav-right .refresh-icon,
i.fas.fa-sync-alt.refresh-icon {
    color: #f4c242 !important;
    filter: drop-shadow(0 0 10px rgba(244, 194, 66, 0.8)) !important;
}

.navbar .nav-right i.fas.fa-sync-alt:hover,
.navbar .nav-right .refresh-icon:hover {
    color: #f5d16e !important;
    filter: drop-shadow(0 0 18px rgba(245, 209, 110, 1)) !important;
}

/* توحيد حجم وشكل جميع أزرار الشريط العلوي لتكون متساوية تماماً */
.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

/* 1. زر الهوم (أخضر) */
.nav-btn-home {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 1.5px solid rgba(76, 175, 80, 0.65) !important;
    color: #4caf50 !important;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.35);
}

.nav-btn-home:hover {
    color: #00ff66 !important;
    border-color: #00ff66 !important;
    background: rgba(76, 175, 80, 0.3) !important;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.85);
    transform: scale(1.12);
}

/* 2. زر التحديث (أصفر) */
.nav-btn-refresh {
    background: rgba(244, 194, 66, 0.15) !important;
    border: 1.5px solid rgba(244, 194, 66, 0.65) !important;
    color: #f4c242 !important;
    box-shadow: 0 0 12px rgba(244, 194, 66, 0.35);
}

.nav-btn-refresh:hover {
    color: #ffd700 !important;
    border-color: #ffd700 !important;
    background: rgba(244, 194, 66, 0.3) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.85);
    transform: scale(1.12);
}

/* 3. زر الملف الشخصي (أزرق) */
.nav-btn-profile {
    background: rgba(33, 150, 243, 0.15) !important;
    border: 1.5px solid rgba(33, 150, 243, 0.65) !important;
    color: #2196f3 !important;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.35);
}

.nav-btn-profile:hover {
    color: #00e5ff !important;
    border-color: #00e5ff !important;
    background: rgba(33, 150, 243, 0.3) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.85);
    transform: scale(1.12);
}

/* 4. زر تسجيل الخروج (أحمر) */
.nav-btn-logout {
    background: rgba(229, 57, 53, 0.15) !important;
    border: 1.5px solid rgba(229, 57, 53, 0.65) !important;
    color: #e53935 !important;
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.35);
    transform: scale(-1.12);
}

.nav-btn-logout:hover {
    color: #ff1744 !important;
    border-color: #ff1744 !important;
    background: rgba(229, 57, 53, 0.3) !important;
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.85);
    transform: scale(1.12);
}

/* =========================================================
   تعديل وتصغير حجم اللوجو والشعار في الشريط العلوي
   ========================================================= */
.logo-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img-custom {
    height: 80px !important;
    /* تقليص الطول ليكون مناسباً للشريط */
    width: 80px !important;
    /* تقليص العرض ليكون مربعاً ومنظماً */
    min-height: 80px !important;
    min-width: 80px !important;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text-custom {
    font-size: 1.7rem !important;
    /* ضبط حجم النص ليتطابق مع بقية عناصر الشريط */
    color: #fff;
    margin: 0;
    white-space: nowrap;
    /* منع انقسام النص على أسطر متعددة */
}

/* حالة الحساب: متصل (أخضر مشع ومتوهج) */
.profile-status.status-online {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 1.5px solid rgba(76, 175, 80, 0.6) !important;
    color: #00ff66 !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.45) !important;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
}

/* حالة الحساب: غير متصل أو منتهي أو معطل (أحمر مشع ومتوهج) */
.profile-status.status-offline {
    background: rgba(229, 57, 53, 0.15) !important;
    border: 1.5px solid rgba(229, 57, 53, 0.6) !important;
    color: #ff5252 !important;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.45) !important;
    text-shadow: 0 0 8px rgba(229, 57, 53, 0.7);
}

/* ==========================================
   تلوين أزرار الشريط العلوي للمشغل
   ========================================== */

/* 1. زر الإغلاق: أحمر دائماً مع أيقونة بيضاء */
#innerPlayerClose {
    background-color: #e53935 !important;
    /* لون أحمر واضح */
    color: #ffffff !important;
    /* لون علامة X */
    border: 2px solid #e53935 !important;
    opacity: 0.9;
}

#innerPlayerClose:hover {
    background-color: #ef5350 !important;
    /* درجة أفتح قليلاً عند اللمس */
    opacity: 1;
}

/* 2. زر المعلومات: أبيض دائماً مع أيقونة داكنة */
#innerPlayerInfo {
    background-color: #ffffff !important;
    /* خلفية بيضاء */
    color: #0f121a !important;
    /* لون علامة i داكن لتكون واضحة على الأبيض */
    border: 2px solid #ffffff !important;
    opacity: 0.9;
}

#innerPlayerInfo:hover {
    background-color: #e2e8f0 !important;
    /* درجة فضية خفيفة عند اللمس */
    opacity: 1;
}

/* تغيير شكل المؤشر للهواتف فقط عندما تتحول لوضع القراءة */
#serverCode[readonly] {
    cursor: pointer;
}