/* --- ზოგადი სტილები კინოს გვერდისთვის --- */
:root {
    --kino-bg-primary: #0f0f0f;
    --kino-bg-secondary: #1a1a1a;
    --kino-primary-color: #e50914;
    --kino-text-primary: #ffffff;
    --kino-text-secondary: #adb5bd;
    --kino-border-color: rgba(255, 255, 255, 0.1);
    --kino-gold-color: #d4af37;
}

.kino-lobby {
    width: 100%;
    overflow: hidden;
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--kino-primary-color, #e50914);
}


/* --- 1. გამორჩეული ფილმის სექცია --- */
.featured-event-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.95) 20%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0) 100%);
}

.featured-event-section .container {
    position: relative;
    z-index: 2;
}

.badge-featured {
    display: inline-block;
    padding: 0.4em 1em;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--kino-primary-color);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-poster-main {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

.event-details .event-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff 0%, var(--kino-gold-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fff;
}

.event-details .event-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

.event-meta-main {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.event-meta-main .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}
.event-meta-main .meta-item i {
    color: var(--kino-gold-color);
}

.countdown-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--kino-gold-color);
    opacity: 1;
}

#countdown-timer {
    display: flex;
    gap: 1.5rem;
}

#countdown-timer .timer-box {
    text-align: center;
}

#countdown-timer span {
    display: block;
    color: #fff;
}

#countdown-timer .timer-box span:first-child {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

#countdown-timer .timer-box .timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    color: var(--kino-gold-color);
    opacity: 0.9;
}

.actions .btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.actions .btn-primary {
    background-color: var(--kino-primary-color, #e50914);
    border-color: var(--kino-primary-color, #e50914);
    color: #fff;
}
.actions .btn-primary:hover {
    background-color: #c40812;
    border-color: #c40812;
    transform: translateY(-2px);
}

.actions .btn-secondary {
    background-color: transparent;
    border-color: var(--kino-primary-color, #e50914);
    color: var(--kino-primary-color, #e50914);
}
.actions .btn-secondary:hover {
    background-color: var(--kino-primary-color, #e50914);
    color: #fff;
    transform: translateY(-2px);
}

/* --- 2. მომავალი და LIVE სეანსების სლაიდერი/გრიდი --- */
.active-events-section {
    background-color: #0a0a0a;
}

.coming-soon-slider {
    padding-bottom: 50px;
}

/* --- Movie Card განახლებული სტილები --- */
.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    /* ზომების უნიფიცირება */
    width: 100%;
    aspect-ratio: 2 / 3; /* სტანდარტული ვერტიკალური პოსტერის პროპორცია */
    background-color: #000; /* შავი ფონი, რომ ჰორიზონტალური სურათის "ცარიელი" ადგილები შეივსოს */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-card:hover {
    transform: scale(1.03); /* ოდნავ ნაკლები ზუმი, რომ არ აირიოს გრიდი */
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.2);
    z-index: 5;
}

.movie-card img {
    width: 100%;
    height: 100%;
    /* contain - არ კვეთს სურათს, აქცევს ცენტრში. 
       cover - გაწელავდა და მოჭრიდა. */
    object-fit: contain; 
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* ჰოვერზე სურათის მსუბუქი ზუმი ეფექტისთვის */
.movie-card:hover img {
    transform: scale(1.05);
}

/* --- Overlay და ტექსტის კითხვადობა --- */
.movie-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem; /* ზედა პადინგი გავზარდეთ გრადიენტისთვის */
    
    /* განახლებული გრადიენტი:
       ქვემოთ (100%) არის სრულიად შავი/მუქი, რომ ტექსტი გამოჩნდეს.
       ზემოთ (0%) გამჭვირვალეა. 
       შუაში (70%) უკვე საკმაოდ მუქია, რომ თეთრი ტექსტი თეთრ ფონზეც ჩანდეს. 
    */
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.9) 30%, 
        rgba(0, 0, 0, 0.6) 60%, 
        rgba(0, 0, 0, 0) 100%
    );
    
    color: #fff;
    z-index: 2; /* რომ სურათის ზემოთ იყოს */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.movie-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* დამატებითი ჩრდილი ტექსტს */
    line-height: 1.3;
}

.movie-card .card-date {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--kino-gold-color);
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.movie-card .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    align-self: flex-start; /* ღილაკი მარცხნივ */
}

.movie-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Grayscale for finished events */
.grayscale-card img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.grayscale-card:hover img {
    filter: grayscale(0%);
}

/* LIVE Badges */
.badge-live-pulse {
    display: inline-block;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background-color: #e50914;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.8);
    animation: livePulse 2s infinite;
}

.badge-live-card {
    display: inline-block;
    padding: 4px 8px;
    background: #e50914;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: livePulse 2s infinite;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

@keyframes livePulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 900;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}
.swiper-pagination-bullet-active {
    background-color: var(--kino-primary-color, #e50914);
}


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .featured-event-section {
        text-align: center;
        min-height: auto;
    }
    .backdrop-overlay {
        background: linear-gradient(to bottom, rgba(15, 15, 15, 0.95) 50%, rgba(15, 15, 15, 0.7) 100%);
    }
    .poster-wrapper {
        margin-bottom: 2rem;
    }
    .event-details .event-description {
        margin-left: auto;
        margin-right: auto;
    }
    .event-meta-main, #countdown-timer, .actions {
        justify-content: center;
    }
    .event-details .event-title {
        font-size: 2.5rem;
    }
    #countdown-timer .timer-box span:first-child {
        font-size: 2.5rem;
    }
	.badge-featured, .badge-live-pulse {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .event-details .event-title {
        font-size: 2.2rem;
    }
    .actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* მობილურზე ბარათის სიმაღლე ოდნავ შევამციროთ თუ საჭიროა, 
       მაგრამ aspect-ratio შეინარჩუნებს პროპორციას */
    .movie-card {
        aspect-ratio: 2 / 3;
    }
}