@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-image: url('../images/radiation_glow.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.input-group {
    border-radius: 25px;
    width: 100%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.25);
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: white;
}

.form-control {
    background-color: transparent;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
}

.form-control:focus {
    background-color: transparent;
    box-shadow: none !important;
    border-color: transparent !important;
}

::placeholder,
input.form-control::placeholder {
    color: #ffffff !important;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none !important;
}

.swiper {
    width: 100%;
    padding: 80px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.4;
    width: 450px !important;
}

.swiper-slide-active {
    opacity: 1 !important;
}

.movie-card {
    width: 325px;
    height: 480px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition: transform 0.45s ease, filter 0.4s ease;
    background-color: #000;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.rating-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.rating-top .rating {
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.movie-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 15px;
     display: flex;
    color: #fff;
    flex-direction: column;
    gap: 6px;
}

.movie-info-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 3px 8px;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
}

.movie-meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-item {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.swiper-slide-active .movie-card {
    transform: scale(1.25) translateY(-10px);
    filter: brightness(1.15);
}

.swiper-slide-next .movie-card,
.swiper-slide-prev .movie-card {
    transform: scale(0.9);
    filter: brightness(0.85);
}

.movie-card:hover {
    transform: perspective(600px) rotateY(8deg) scale(1.28);
}

.spinner-grow {
    width: 1.2rem;
    height: 1.2rem;
}

.searchLoaderWrapper {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}