/* --- ГЛАВНЫЙ СЛАЙДЕР АФИШИ --- */
.afisha-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.afisha-slider-track {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.afisha-slider-track::-webkit-scrollbar { display: none; }

.afisha-card {
    flex: 0 0 82vw;
    height: 55vh;
    scroll-snap-align: center;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background-color: var(--color-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    z-index: 1;
}

@media (min-width: 64rem) {
    .afisha-card {
        flex: 0 0 320px;
        height: 460px;
    }
}

.afisha-card.showing {
    opacity: 1;
    transform: translateY(0);
}

.afisha-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.afisha-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.afisha-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    pointer-events: none;
}

.afisha-card-title {
    color: var(--color-1);
    font-weight: 500;
    font-size: var(--text-sm); 
    line-height: var(--line-height-xs);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    width: 100%;
    padding-right: 45px;
    pointer-events: auto;
}

.afisha-card-link-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: var(--color-6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: auto;
}
.afisha-card-link-icon:hover {
    transform: scale(1.1);
    background: var(--color-4);
}

.afisha-card-video-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: white;
    pointer-events: none;
}

/* --- ШТОРКА QUICKVIEW --- */
.bottom-side-content-2 {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100%) !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 550px !important;
    height: 90vh !important;
    background: var(--color-1);
    border-radius: 24px 24px 0 0 !important;
    z-index: 100000 !important; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: transform;
    touch-action: pan-y;
}

.bottom-side-content-2.active {
    transform: translateX(-50%) translateY(0) !important;
}

.bottom-side-content-2 .product-pagin-next,
.bottom-side-content-2 .product-nex {
    display: none !important;
}

/* Единый стиль кнопок (Glassmorphism) */
.afisha-glass-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    color: var(--color-6) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    z-index: 999 !important;
}

.afisha-glass-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.afisha-glass-btn svg {
    stroke: var(--color-6);
    stroke-width: 2.5;
}

.bottom-side-content-2 .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}
.bottom-side-content-2 .close span { display: none; }

.quickview-bottom-side-2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- СПИННЕР ЗАГРУЗКИ --- */
.afisha-loader-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.afisha-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}
.afisha-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 124, 10, 0.2);
    border-top-color: var(--color-6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Скроллируемая область (скрываем скроллбар) */
.qv-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.qv-scroll-area::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* --- ВНУТРЕННИЙ СЛАЙДЕР --- */
.qv-slider-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    background: #0a0a0a;
    border-radius: 0 0 0px 0px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.qv-slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.5) saturate(1.5);
    transform: scale(1.2);
    z-index: 1;
    opacity: 0.9;
}

.qv-internal-slider {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
    z-index: 2;
}
.qv-internal-slider::-webkit-scrollbar { display: none; }

.qv-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-slide-fg {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    border: none;
}

/* Стрелки внутреннего слайдера */
.qv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: none !important; 
    z-index: 100;
}
.qv-nav-btn.qv-prev { left: 15px; }
.qv-nav-btn.qv-next { right: 15px; }

@media (min-width: 64rem) {
    .qv-nav-btn.show-arrows { display: flex !important; }
}

/* Точки-пагинация */
.qv-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.qv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.qv-dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--color-6);
}

/* --- ОБНОВЛЕННЫЙ БЛОК ВИДЕО --- */
.qv-video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background-size: cover;
    background-position: center;
}

/* Затемнение для постера, чтобы кнопка Play была видна */
.qv-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.qv-play-btn {
    position: relative;
    z-index: 2;
    width: 70px; height: 70px;
    background: rgba(255, 124, 10, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 124, 10, 0.4);
    transition: transform 0.2s;
}
.qv-play-btn:hover { transform: scale(1.1); }

.qv-slide iframe, .qv-slide video {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    z-index: 2;
}

/* --- ТЕКСТОВЫЙ БЛОК --- */
.qv-text-content {
    padding: 0 var(--space-lg);
    animation: fadeUp 0.5s ease 0.2s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qv-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--color-5);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

@media (min-width: 64rem) {
    .qv-title { font-size: var(--text-base); }
}

.qv-description {
    font-size: var(--text-sm);
    color: var(--color-5);
    line-height: var(--line-height-content);
    margin-bottom: var(--space-sm);
}

/* --- ФИКСИРОВАННЫЙ ФУТЕР --- */
.qv-fixed-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px var(--space-lg) 25px var(--space-lg);
    background: var(--color-1);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}

.qv-btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    background: var(--color-6);
    color: var(--color-1);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: none;
}
.qv-btn-more:hover {
    background: var(--color-4);
    color: var(--color-1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 124, 10, 0.3);
}

/* --- ОВЕРЛЕЙ (FOG) --- */
.afisha-custom-fog {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-5, #000);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    backdrop-filter: blur(3px);
}
.afisha-custom-fog.active {
    opacity: 0.6;
    visibility: visible;
    pointer-events: auto;
}