.hero {
    background-image: url("28.jpg");
    /* تأكد من المسار الصحيح */
    background-size: cover;
    background-position: center;
    height: 80vh;
    position: relative;
    color: #fff;
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    /* تظليل غامق */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff4444;
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.6;
}


body {
    background-color: black;
    color: white;
    font-family: 'Tajawal', sans-serif;

}

.meta-box {
    background-color: #111;
    color: #fff;
    padding: 20px;
    text-align: right;
    font-size: 1rem;
    direction: rtl;
}

.meta-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-box li {
    margin-bottom: 8px;
}


.story-section {
    background-color: #111;
    color: #eee;
    padding: 60px 20px;
    direction: rtl;
}

.story-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.story-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.story-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #ccc;
}


.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: white;
    text-align: right;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 8px 0;
}

.opinion-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 20px;
    direction: rtl;
}

.opinion-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.opinion-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00bcd4;
}

.opinion-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #ddd;
}

.trailer-section {
    background-color: #0d0d0d;
    color: #fff;
    padding: 60px 20px;
    direction: rtl;
    text-align: center;
}

.trailer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff4444;
}

/* هاي هي video-wrapper المصححة */
.video-wrapper {
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.episodes-section {
    background-color: #111;
    padding: 60px 20px;
    color: #fff;
    direction: rtl;
}

.episodes-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffaa00;
}

.episode-box {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: #1d1d1d;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.episode-content {
    display: none;
    margin-top: 10px;
}

.toggle-btn {
    background-color: #444;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: right;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 5px;
}

.toggle-btn:hover {
    background-color: #666;
}

/* الألوان الأساسية (يمكنك تعديلها لتناسب موقعك) */
:root {
    --primary-color: #007bff;
    /* لون أساسي للأزرار والعناصر المميزة */
    --secondary-color: #6c757d;
    /* لون ثانوي للنصوص الثانوية */
    --background-dark: #1a1a1a;
    /* خلفية داكنة للموقع */
    --card-background: #2a2a2a;
    /* خلفية بطاقات التعليقات */
    --text-color: #e0e0e0;
    /* لون النص الأساسي */
    --border-color: #444;
    /* لون الحدود الفاصلة */
    --input-background: #3a3a3a;
    /* لون خلفية حقول الإدخال */
}

body {
    font-family: 'Arial', sans-serif;
    /* اختر خطاً عصرياً ومقروءاً */
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
}

#comments-section {
    width: 90%;
    max-width: 800px;
    /* تحديد أقصى عرض لجعله يبدو جيداً على الشاشات الكبيرة */
    margin: 40px auto;
    /* توسيط القسم مع هامش علوي وسفلي */
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* ظل خفيف لإضافة عمق */
}

#comments-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid var(--primary-color);
    /* خط تحت العنوان */
    padding-bottom: 10px;
}

/* تصميم نموذج التعليق */
#comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* مسافة بين العناصر */
    margin-bottom: 30px;
}

#comment-form input[type="text"],
#comment-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#comment-form input[type="text"]:focus,
#comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    /* ظل عند التركيز */
    outline: none;
}

#comment-form textarea {
    resize: vertical;
    /* السماح بتغيير حجم مربع النص عمودياً */
    min-height: 100px;
}

#comment-form button[type="submit"] {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-end;
    /* وضع الزر في نهاية النموذج */
}

#comment-form button[type="submit"]:hover {
    background-color: #0056b3;
    /* لون أغمق عند التحويم */
    transform: translateY(-2px);
    /* تأثير رفع خفيف */
}

/* تصميم قائمة التعليقات */
#comments-list {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.comment-item {
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.comment-item.reply {
    margin-left: 40px;
    /* مسافة بادئة للردود */
    border-left: 3px solid var(--primary-color);
    /* خط جانبي للردود */
    padding-left: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.comment-date {
    font-size: 0.85em;
    color: var(--secondary-color);
}

.comment-body {
    margin-bottom: 15px;
    color: var(--text-color);
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.comment-actions button:hover {
    color: var(--primary-color);
}

/* تصميم للردود المتداخلة */
.replies-list {
    margin-top: 15px;
    padding-left: 10px;
}

/* Media Queries للتصميم المتجاوب */
@media (max-width: 768px) {
    #comments-section {
        width: 95%;
        padding: 20px;
    }

    .comment-item.reply {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    #comments-section h2 {
        font-size: 1.5em;
    }

    #comment-form button[type="submit"] {
        width: 100%;
        align-self: center;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-date {
        margin-top: 5px;
    }
}