* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #D2C2FF;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh; /* centers vertically */
}

header .title-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 3rem;
    color: #2c3e50;
    text-shadow: none;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #555;
}

.search-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#movieSearch {
    padding: 10px 15px;
    width: 300px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

#searchBtn {
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#searchBtn:hover {
    background-color: #ff5252;
}

.movie-details {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    gap: 30px;
}

.movie-poster img {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.movie-info {
    flex: 1;
}

.movie-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.movie-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.user-rating, .user-review {
    margin-top: 20px;
}

.user-rating label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

#userRating {
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#userReview {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

#submitReview {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#submitReview:hover {
    background-color: #45a049;
}

.reviews-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reviews-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.review-card {
    background: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #ff6b6b;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-rating {
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.review-text {
    font-style: italic;
    color: #555;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #fff;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .movie-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-poster {
        margin-bottom: 20px;
    }

    .movie-poster img {
        max-width: 100%;
    }
}