/* ربط ملف الخطوط الخارجية */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

.fake-player-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.fake-player-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 6px 20px rgba(0,0,0,0.7);
    transition: transform .25s ease, color .25s ease, opacity .2s;
    z-index: 6;
}
.fake-player-container:hover .fake-player-play {
    color: #aea799;
    transform: translate(-50%, -50%) scale(1.06);
}
/* شريط التحكم الرئيسي - New Controls Bar */
.fake-controls-new {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    padding: 0 10px 8px 10px; 
    color: #fff;
    font-family: sans-serif;
    z-index: 5;
    box-sizing: border-box;
}

/* شريط التقدم */
.fake-progress-bar-container {
    width: 100%;
    height: 6px; 
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 3px;
    position: relative;
}

.fake-progress-bar {
    height: 100%;
    background-color: #ff4500; 
    border-radius: 3px;
    transition: width 0.1s linear; 
}

/* شريط الأزرار والتوقيت السفلي */
.fake-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* مجموعة الأيقونات */
.control-group {
    display: flex;
    align-items: center;
    gap: 30px; 
}

.fake-icon {
    font-size: 18px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.fake-icon:hover {
    opacity: 1;
    color: #ff4500;
}

/* عرض التوقيت */
.time-display-new {
    font-size: 13px;
    opacity: 0.9;
}

/* ---------------------------------------------------------------------- */
/* --- تنسيقات الـ Modals والنوافذ المنبثقة (مُعدّلة لتكون absolute) --- */
/* ---------------------------------------------------------------------- */

.fp-modal {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 380px; max-width: calc(100% - 40px);
    background: #1c262ff2;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 18px;
    display: none;
}
.fp-close {
    position:absolute; right:10px; top:8px;
    font-weight:700; cursor:pointer; color:#666;
}
.fp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: none;
}
.btn { display:inline-block; padding:8px 12px; border-radius:6px; cursor:pointer; border:0; }
.btn-primary {color:#fff;justify-self: center;background:#416980;}
.btn-secondary { background:#f2f2f2; color:#222; }

/* Compteur circulaire */
#countdownCircle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.5);
    display: flex; justify-content:center; align-items:center;
    font-size: 48px; color:#fff;
    z-index: 10;
    display: none;
}

/* تعديل للهواتف */
@media (max-width: 480px) {
    .fake-controls-new {
        padding: 0 8px 6px 8px;
    }
    .fake-icon {
        font-size: 16px;
    }
    .time-display-new {
        font-size: 11px;
    }
    .fake-player-play{ font-size:100px; } 
    .fp-modal{ width: 92%; padding:14px; }
}