/* Общие стили */
body {
    font-family: 'Montserrat', sans-serif;
    color: rgb(240, 240, 240);
    overflow-x: hidden;
}


.duration-300 {
    transition-duration: .3s;
    background-color: black;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Анимированный фон с частицами */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* Герой секция */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

/* Навигация */
.nav-link {
    position: relative;
    padding-bottom: 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ef4444, #7c3aed);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.premium-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-card:hover {
    box-shadow: 0 15px 25px rgba(239, 68, 68, 0.2);
}


.movie-slider-premium {
    padding: 40px 0 60px;
}

.swiper-slide {
    transition: all 0.3s ease;
    transform: scale(0.95);
    opacity: 0.7;
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
    transform: scale(1);
    opacity: 1;
}


.movie-card {
    background: rgba(30, 30, 60, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    overflow: hidden;
}

.movie-card:hover {
    background: rgba(50, 50, 80, 0.9);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
    z-index: 10;
}

.movie-card img {
    transition: transform 0.5s ease;
}

.movie-card:hover img {
    transform: scale(1.05);
}


.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(31, 41, 55, 0) 0%, rgba(31, 41, 55, 0.5) 50%, rgba(31, 41, 55, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}


#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}


@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .premium-card {
        transform: none !important;
    }
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}




.qr-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    
}

.qr-code {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-code img {
    width: 100%;
    height: auto;
    max-width: 150px;
}

.qr-code p {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #333;
}

@media (min-width: 768px) {
    .qr-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        width: auto;
    }

    .qr-container.left {
        left: 1rem;
    }

    .qr-container.right {
        right: 1rem;
    }

    .qr-code {
        margin-bottom: 1.5rem;
    }
}