body {
    padding-top: 80px;
    scroll-behavior: smooth;
}

.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-wrapper.hidden {
    display: none;
}

#mainContent.visible {
    opacity: 1;
    transition: opacity 0.5s ease;
}


#discoverPoster {
    max-height: 510px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}


.owl-carousel .owl-item {
    height: 850px !important;
}

.owl-carousel .item {
    height: 100% !important;
}

.movie-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.movie-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-card .movie-plot {
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owl-carousel .item .card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .owl-carousel .owl-item {
        height: 650px !important;
    }

    .movie-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .owl-carousel .owl-item {
        height: 600px !important;
    }

    .movie-card img {
        height: 160px;
    }
}

.keyword-btn.active {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.keyword-btn:hover {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}