@font-face {
    font-family: 'Segoe Print Bold';
    src: url('fonts/segoeprb.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe Print';
    src: url('fonts/segoepr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #E6D5F5 0%, #C4B5E8 25%, #9B7FD4 50%, #7C3AED 75%, #5B21B6 100%);
    min-height: 100vh;
    padding: 40px 80px;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    font-size: 3.5rem;
    font-family: 'Segoe Print Bold', cursive;
    color: #E0E7FF;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(147, 51, 234, 0.4);
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Segoe Print', cursive;
    color: rgba(224, 231, 255, 0.95);
    margin-bottom: 50px;
    animation: fadeIn 1.5s ease-out;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 20px;
}

.film {
    position: relative;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.film.hover {
    transform: translateY(-10px);
}

.film-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(192, 192, 192, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.film-card.hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(147, 51, 234, 0.4);
    border-color: rgba(192, 192, 192, 0.6);
}

.film-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.film-image.hidden {
    opacity: 0;
}

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

.film-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.95) 0%, rgba(107, 70, 193, 0.92) 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
}

.film-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.film-overlay h3 {
    font-size: 1.4rem;
    font-family: 'Segoe Print Bold', cursive;
    margin-bottom: 15px;
    color: #C0C0C0;
    border-bottom: 2px solid #C0C0C0;
    padding-bottom: 10px;
    line-height: 1.3;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.98) 0%, rgba(107, 70, 193, 0.95) 100%);
    z-index: 10;
    margin-top: 0;
    padding-top: 5px;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.film-overlay p {
    font-size: 0.95rem;
    font-family: 'Segoe Print', cursive;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
    padding-top: 10px;
}

.cinema-modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.cinema-modal.active {
    visibility: visible;
    opacity: 1;
}

.cinema-curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #4C1D95 0%, #7C3AED 50%, #4C1D95 100%);
    z-index: 10001;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cinema-curtain-left {
    left: 0;
    box-shadow: inset -20px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
}

.cinema-curtain-right {
    right: 0;
    box-shadow: inset 20px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
}

.cinema-modal.active .cinema-curtain-left {
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.cinema-modal.active .cinema-curtain-right {
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.cinema-modal.active.curtains-open .cinema-curtain-left {
    transform: translateX(-100%);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cinema-modal.active.curtains-open .cinema-curtain-right {
    transform: translateX(100%);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cinema-content {
    position: relative;
    width: 85%;
    max-width: 1000px;
    max-height: 85vh;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.cinema-modal.active.curtains-open .cinema-content {
    opacity: 1;
    transform: scale(1);
}

.cinema-close {
    position: absolute;
    top: -60px;
    right: -10px;
    background: rgba(192, 192, 192, 0.2);
    border: 2px solid #C0C0C0;
    color: #C0C0C0;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.cinema-close:hover {
    background: rgba(192, 192, 192, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.cinema-screen {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(147, 51, 234, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(192, 192, 192, 0.3);
    border: 3px solid #C0C0C0;
    max-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-screen video {
    width: 100%;
    max-height: calc(85vh - 80px);
    display: block;
    object-fit: contain;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.film {
    animation: fadeInUp 0.6s ease-out backwards;
}

.film:nth-child(1) { animation-delay: 0.1s; }
.film:nth-child(2) { animation-delay: 0.2s; }
.film:nth-child(3) { animation-delay: 0.3s; }
.film:nth-child(4) { animation-delay: 0.4s; }
.film:nth-child(5) { animation-delay: 0.5s; }
.film:nth-child(6) { animation-delay: 0.6s; }
.film:nth-child(7) { animation-delay: 0.7s; }
.film:nth-child(8) { animation-delay: 0.8s; }
.film:nth-child(9) { animation-delay: 0.9s; }
.film:nth-child(10) { animation-delay: 1s; }
.film:nth-child(11) { animation-delay: 1.1s; }
.film:nth-child(12) { animation-delay: 1.2s; }
.film:nth-child(13) { animation-delay: 1.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.film-overlay::-webkit-scrollbar {
    width: 6px;
}

.film-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.film-overlay::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.5);
    border-radius: 3px;
}

.film-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.7);
}