/* كود CSS للمشغل الوهمي */
.fake-player-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.video-display {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.player-loading-container {
    display: flex; /* لجعله يظهر في المنتصف */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    position: absolute; /* ليغطي الصورة */
    top: 0;
    left: 0;
    z-index: 5; /* تأكد من أنه فوق المشغل وتحت الـ Overlay */
}
.play-button-icon {
    width: 70px;
    height: 70px;
    opacity: 0.8;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.fake-player-container:hover .play-button-icon {
    transform: scale(1.1);
    opacity: 1;
}
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    margin-bottom: 10px;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.play-pause-btn, .volume-btn, .fullscreen-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.controls-bar img {
    width: 24px;
    filter: invert(1);
}
.progress-bar-container {
    flex-grow: 1;
    height: 5px;
    background: #555;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #ff5555;
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* ---------------------------------------------------------------------- */
/* --- تنسيقات الـ Modals الجديدة (التسجيل) --- */
/* ---------------------------------------------------------------------- */

/* طبقة التعتيم (Overlay) */
.fp-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

/* الإطار العام للنافذة المنبثقة (Modal) */
.fp-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 380px;
    max-width: calc(100% - 40px);
    background: #0d151ab0;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    padding: 18px;
    display: none;
}

/* زر الإغلاق (X) */
.fp-close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-weight: 700;
    cursor: pointer;
    color: #666;
}
.fp-close:hover {
    color: #ffde54;
}

/* تنسيقات الأزرار العامة */
.btnle {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}
.btn-primary {
    color: #fff;
    background: #416980;
}
.btn-secondary {
    color: #222;
    background: #f2f2f2;
}
.btn-secondary:hover {
    background-color: #333;
}


/* تنسيق خاص بنافذة التسجيل */
.signup-modal p b {
    color: #ffde54; /* تمييز النص المهم */
}

/* ---------------------------------------------------------------------- */
/* --- استثناءات الهاتف (Mobile adjustments) --- */
/* ---------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* جعل الـ Modals تملأ الشاشة بالكامل على الهاتف */
    .fp-modal {
        width: 92%;
        padding: 14px;
    }
    .fp-modal h3 {
        font-size: 18px;
    }
    .fp-modal p {
        font-size: 14px;
    }
    .fp-close {
        top: 10px;
        right: 15px;
    }
}