* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Poppins', 'Cairo', sans-serif;

}



body {

    background-color: #2c2c2c;

    color: white;

}



.container {


    margin: 0 auto;

    padding: 0 20px;

}




/* --- 6. Movie Hero --- */

.movie-hero {

    padding: 60px 20px;

    min-height: 500px;

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

}



.hero-content {

    display: flex;

    justify-content: space-between;

    width: 100%;

    gap: 30px;

}



.movie-main-info {

    display: flex;

    gap: 30px;

    align-items: flex-start;

}



.poster-container {

    flex-shrink: 0;

}



.poster {

    width: 240px;

    height: 350px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.5);

}



.movie-text-details {

    max-width: 550px;

}



.title-row h1 {

    font-size: 2.2rem;

    margin-bottom: 10px;

    color: white;

}



.badge-available {

    background-color: #f1c40f;

    color: #000;

    padding: 4px 12px;

    border-radius: 15px;

    font-weight: bold;

    font-size: 0.85rem;

    display: inline-block;

    margin-bottom: 10px;

}



.genres-container {

    margin: 10px 0;

}



.badge {

    background-color: #444;

    color: white;

    padding: 4px 8px;

    border-radius: 4px;

    font-size: 0.8rem;

    margin-right: 5px;

    display: inline-block;

}



.rating {

    margin: 15px 0;

    color: #f1c40f;

    display: flex;

    align-items: center;

    gap: 5px;

}



.imdb-tag {

    background: #f5c518;

    color: #000;

    padding: 2px 6px;

    border-radius: 3px;

    font-weight: bold;

    font-size: 0.8rem;

    margin-right: 10px;

}



.description {

    font-size: 0.95rem;

    color: #ccc;

    margin-bottom: 25px;

    line-height: 1.6;

}



.streaming-icons {

    display: flex;

    gap: 10px;

    align-items: center;

    padding-top: 10px;

    flex-wrap: wrap;

}



.platform-mini-box img {

    width: 50px;

    height: 50px;

    border-radius: 5px;

    object-fit: cover;

}



.action-side {

    display: flex;

    align-items: flex-start;

}



.add-watchlist-btn {

    background: transparent;

    border: 2px solid #f1c40f;

    color: white;

    padding: 12px 25px;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

    white-space: nowrap;

}



.add-watchlist-btn:hover {

    background: #f1c40f;

    color: #000;

}



.add-watchlist-btn.active {

    background: #f1c40f;

    color: #000;

}



/* --- 7. التعليقات --- */

.comments-section {

    padding: 50px 20px;

    background: #1a1a1a;

}



.comments-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    flex-wrap: wrap;

    gap: 15px;

}



.comments-title {

    font-size: 1.8rem;

    color: white;

}



.comment-form {

    display: flex;

    background: white;

    border-radius: 10px;

    padding: 5px;

    width: 100%;

    max-width: 450px;

    overflow: hidden; /* يضمن عدم خروج العناصر عن الحواف */

    align-items: center; /* يوسط العناصر رأسياً */

}



.comment-input {

    flex: 1;

    border: none;

    outline: none;

    padding: 10px;

    color: #333;

    background: transparent;

    min-width: 0; /* مهم جداً لمنع الـ input من دفع الزر للخارج في الشاشات الصغيرة */

}



.btn-send {

    background: #a32121;

    color: white;

    border: none;

    padding: 8px 20px;

    border-radius: 8px;

    cursor: pointer;

    transition: background 0.3s;

}



.btn-send:hover {

    background: #c0392b;

}



.comments-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}



.comment-card {

    background: #3a3a3a;

    padding: 20px;

    border-radius: 12px;

    border: 1px solid #444;

    transition: transform 0.3s;

}



.comment-card:hover {

    transform: translateY(-5px);

}



.user-info {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 10px;

}



.user-info img {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    object-fit: cover;

}



.user-info h4 {

    font-size: 0.9rem;

    margin: 0;

    color: white;

}



.user-info span {

    font-size: 0.75rem;

    color: #aaa;

}



.comment-card p {

    color: #ddd;

    line-height: 1.5;

    margin-top: 10px;

}

/* ✅ Guest Messages */
.guest-message {
    text-align: center;
    margin-top: 15px;
}

.guest-text {
    color: #aaa;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 8px;
    border: 1px dashed #555;
}

.guest-text i {
    margin-right: 8px;
    color: #e50914;
}

.login-link {
    color: #e50914;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.login-link:hover {
    color: #ff3347;
    text-decoration: underline;
}

.guest-comment-msg {
    color: #aaa;
    font-size: 14px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed #444;
}

/* --- 8. RTL --- */

/* --- 9. Tablet --- */

@media (max-width: 1024px) {



    .comments-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



/* ============================================ */

/* ========= 10. MOBILE ====================== */

/* ============================================ */

@media (max-width: 768px) {



    /* Hero */

    .hero-content {

        flex-direction: column;

        text-align: center;

    }



    .movie-main-info {

        flex-direction: column;

        align-items: center;

    }



    .poster {

        width: 200px;

        height: 300px;

    }



    .streaming-icons {

        justify-content: center;

    }



    .action-side {

        justify-content: center;

    }



    .comments-grid {

        grid-template-columns: 1fr;

    }



    .comments-header {

        flex-direction: column;

        align-items: stretch;

    }



    .comment-form {

        max-width: 100%;

    }

.platform-mini-box img {

    width: 30px;

    height: 30px;

    border-radius: 5px;

    object-fit: cover;

}



}



@media (max-width: 480px) {


    .title-row h1 {

        font-size: 1.6rem;

    }



    .poster {

        width: 180px;

        height: 270px;

    }

    .platform-mini-box img {

    width: 30px;

    height: 30px;

    border-radius: 5px;

    object-fit: cover;

}

}









