/* ============================================================
   Afisha Slider Styles
   ============================================================ */

.afisha-slider-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Lora', serif;
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* --- Header Block --- */
.afisha-slider-header {
    display: flex;
    align-items: flex-start;
    justify-content: end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    flex: 0 0 20%;
}

.afisha-slider-title-block {
    flex: 1;
    min-width: 280px;
    padding-left: 30px;
}

.afisha-slider-title {
    font-size: clamp(48px, 3.5cqw, 72px);
    line-height: 0.7;
    font-weight: 400;
    margin: 0 0 20px 0;
    position: relative;
    top: -50px;
}
.afisha-slider-title small {
    font-size: clamp(20px, 2.4cqw, 36px);
    line-height: 1;
}

.afisha-slider-filters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: end;
}

.afisha-slider-filters li a {
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    position: relative;
}

.afisha-slider-filters li a .filter-line {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s;
    -moz-transition: width 0.3s;
    -webkit-transition: width 0.3s;
    -o-transition: width 0.3s;
}

.afisha-slider-filters li a.active .filter-line,
.afisha-slider-filters li a:hover .filter-line {
    width: 40px;
    -moz-transition: width 0.3s;
    -webkit-transition: width 0.3s;
    -o-transition: width 0.3s;
}

.afisha-slider-filters li a.active {
    font-weight: 600;
}

.afisha-slider-view-all {
    display: inline-block;
    padding: 14px 32px;
    background: #f5f0eb;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    margin-top: auto;
}

.afisha-slider-view-all:hover {
    background: #e8e0d8;
    transform: translateY(-1px);
}

/* --- Swiper Carousel --- */
.afisha-slider-container {
    position: relative;
    width: 100%;
    flex: 0 0 80%;
    overflow: hidden;
}

.afisha-swiper {
    padding-bottom: 20px;
}

.afisha-slide {
    height: auto;
}

.afisha-slide-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #2a5a7a;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.afisha-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.afisha-slide-inner:hover .afisha-slide-image {
    transform: scale(1.05);
}

.afisha-slide-inner:hover .afisha-slide-info {
    z-index: 0;
}

/* --- Overlay with buttons on hover --- */
.afisha-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(10deg, #000 0%, transparent 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 1;
}

.afisha-slide-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    width: 80%;
    max-width: 280px;
    opacity: 0;
    z-index: 10;
}

.afisha-slide-inner:hover .afisha-slide-overlay .afisha-slide-buttons  {
    opacity: 1;
}

.afisha-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #1a1a1a;
}

.afisha-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.afisha-btn-desc, .afisha-btn-book, .afisha-btn-ticket {
    background: #EAE1D0BF;
    backdrop-filter: blur(10px);
}

/* --- Slide Info (title + date at bottom) --- */
.afisha-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 3;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.afisha-slide-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.afisha-slide-date {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .afisha-slider-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    #afisha-slider-wrapper {
        flex-direction: column;
        padding: 00px 0px 20px 10px;
    }
    .afisha-slider-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .afisha-slider-title {
        top: 0;
    }

    .afisha-slide-title{
        font-size: 18px !important;
    }

    .afisha-slider-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .afisha-slider-filters li a {
        font-size: 14px;
    }

    .afisha-slider-filters li a .filter-line {
        display: none;
    }

    .afisha-slide-buttons {
        width: 90%;
    }

    .afisha-btn {
        padding: 10px 16px;
        font-size: 13px;
        line-height: 1;
    }
    .afisha-slide-overlay {
        align-items: start;
    }
}

.afisha-slider-container.hidden {
    display: none;
}

.afisha-no-events {
    display: none;
    padding: 60px 20px;
    text-align: center;
}

.afisha-no-events.visible {
    display: block;
}

.afisha-no-events p {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Скрытие отдельных слайдов при фильтрации */
.afisha-slide.slide-hidden {
    display: none !important;
}

/* Скрытие всей карусели */
.afisha-swiper.hidden {
    display: none !important;
}

@media (width < 768px) {
    .afisha-slider-title-block {
        padding-left: 0px;
    }
    .afisha-slider-title-block ul {
        padding-left: 0px;
    }
}