.hero {
    position: relative;
    height: 95vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
}

.hero-content {
    padding: 20px;
    z-index: 1;
}

.title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-play {
    background-color: #691b9ad0;
    border: 2px solid var(--accent-purple);
    color: #fff;
}

.btn-play:hover {
    background-color: #691b9a;
}

.btn-info {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-info:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

#rate-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.carousel {
    margin-bottom: 2rem;
}

.carousel-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.carousel-content {
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on mobile */
}

.carousel-content::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for better Netflix-like appearance */
}

.movie-card {
    flex: 0 0 auto;
    width: 220px;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    /* Match Netflix thumbnail aspect ratio */
}

.movie-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .overlay {
    display: flex;
    opacity: 1;
}

.play-btn {
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    margin-bottom: 1rem;
}

.overlay-title,
.overlay-type,
.overlay-running-time,
.overlay-language {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.see-more-btn {
    padding: 0.5rem 1rem;
    background-color: #691b9ad0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.see-more-btn:hover {
    background-color: #691b9a;
}

.movie-info-below {
    padding: 0.5rem;
}

.movie-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.type-and-running,
.movie-language,
.release-date {
    font-size: 0.9rem;
    color: #e5e5e5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        height: 60vh;
    }

    .title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .movie-card {
        width: 200px;
    }

    .movie-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .title {
        font-size: 2rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .movie-card {
        width: 150px;
    }

    .movie-image-container {
        height: 225px;
    }

    .carousel-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .title {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .movie-card {
        width: 120px;
    }

    .movie-image-container {
        height: 180px;
    }

    .carousel-title {
        font-size: 1rem;
    }
}