@import url('https://googleapis.com');

:root {
    --primary: #ffd700;
    --bg: #0a0510;
    --card-bg: #160d2b;
    --side-bg: rgba(26, 17, 37, 0.98);
}

body {
    margin: 0; padding: 0; font-family: 'Alexandria', sans-serif;
    background: var(--bg); color: white; direction: rtl;
}

/* الهيدر */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; background: rgba(10, 5, 16, 0.9); position: sticky; top: 0; z-index: 2000;
}
.logo img { height: 40px; }

/* السلايدر (زي اللي في الصورة) */
.slider { position: relative; height: 500px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.slide-content { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); text-align: right; }
.slide-content h1 { font-size: 3rem; margin: 0; }
.watch-btn { 
    background: var(--primary); color: black; padding: 10px 30px; 
    border-radius: 20px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 15px;
}

/* الشبكة (Grid) */
.main-container { padding: 40px 5%; }
.section-title { color: var(--primary); border-right: 4px solid var(--primary); padding-right: 15px; margin-bottom: 30px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card { background: var(--card-bg); border-radius: 10px; overflow: hidden; text-decoration: none; color: white; transition: 0.3s; position: relative; }
.card:hover { transform: translateY(-10px); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2); }
.card img { width: 100%; height: 280px; object-fit: cover; }
.card-info { padding: 10px; text-align: center; font-size: 0.9rem; }
.badge { position: absolute; top: 10px; right: 10px; background: red; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }

/* تصميم صفحة المشاهدة الاحترافي (زي الصورة) */
.watch-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* أزرار السيرفرات (الأفقية) */
.servers-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.server-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px; /* شكل بيضاوي زي الصورة */
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.server-btn:hover, .server-btn.active {
    background: #e50914; /* اللون الأحمر المميز */
    border-color: #e50914;
    transform: translateY(-3px);
}

/* حاوية المشغل الكبيرة */
.player-frame {
    width: 100%;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* نسبة 16:9 */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.player-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* الفوتر البسيط (الروابط في سطر واحد) */
.mini-footer {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover { color: #fff; }
/* تنسيق منطقة البوستر الصغير والمعلومات */
.series-header {
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.8), #0a0510);
    padding: 40px 5%;
    display: flex;
    justify-content: center;
}

.series-info-container {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    align-items: flex-start;
}

/* حل مشكلة الزوم: البوستر صغير وكامل */
.poster {
    width: 200px !important; /* عرض صغير */
    height: 300px !important; /* طول متناسق */
    object-fit: contain !important; /* يمنع الزوم ويظهر الصورة كاملة */
    background: #000;
    border-radius: 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.details h1 { font-size: 2.2rem; color: var(--primary); margin: 0 0 10px; }
.stats { margin-bottom: 15px; font-size: 0.9rem; color: #aaa; }
.imdb { background: #f5c518; color: #000; padding: 2px 8px; border-radius: 4px; font-weight: bold; margin-left: 10px; }

/* أزرار أرقام الحلقات (باقة الحلقات) */
.episodes-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* أزرار صغيرة */
    gap: 12px;
    margin-top: 20px;
}

.num-btn {
    background: #1a1125;
    color: var(--primary);
    text-decoration: none;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: 0.3s;
}

.num-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

/* تنسيق اللوجو الشفاف بالبرواز الذهبي V4.3 */
.logo img {
    height: 60px; /* حجم مناسب للوجو الجديد */
    padding: 5px;
    background: transparent !important; /* شيلنا الخلفية البيضاء تماماً */
    border: 2px solid #ffd700; /* برواز ذهبي رفيع وشيك */
    border-radius: 12px;
    /* توهج ذهبي خفيف عشان الكلام الأسود في اللوجو يبان فوق الخلفية الغامقة */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    border-color: #ffffff; /* يقلب أبيض لؤلؤي عند اللمس */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* يضيف توهج للكلام نفسه */
}
