/* ============================================
   Общие стили и сброс - Apple Dark + Liquid Glass
   ============================================ */

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

/* ============================================
   Splash Screen
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out, backdrop-filter 0.8s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(20px);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

.splash-logo-container {
    position: relative;
    display: inline-block;
}

.splash-logo {
    width: 75vw;
    max-width: 900px;
    height: auto;
    opacity: 0;
    animation: splashLogoAppear 1s ease-out 0.3s forwards,
               splashLogoPulse 2s ease-in-out 1.3s infinite;
    filter: drop-shadow(0 8px 40px rgba(165, 180, 252, 0.6)) 
            drop-shadow(0 0 80px rgba(99, 102, 241, 0.4));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-360-logo {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 150px;
    height: auto;
    opacity: 0;
    animation: logo360SplashAppear 1s ease-out 0.8s forwards,
               logo360Float 3s ease-in-out 1.8s infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 204, 0, 0.6));
    z-index: 2;
}

@keyframes logo360SplashAppear {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(-10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes logo360Float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.splash-logo {
    width: 75vw;
    max-width: 900px;
    height: auto;
    opacity: 0;
    animation: splashLogoAppear 1s ease-out 0.3s forwards,
               splashLogoPulse 2s ease-in-out 1.3s infinite;
    filter: drop-shadow(0 8px 40px rgba(165, 180, 252, 0.6)) 
            drop-shadow(0 0 80px rgba(99, 102, 241, 0.4));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.fade-out .splash-logo {
    animation: none;
    width: 400px;
    transform: translateY(calc(-50vh + 80px));
    filter: drop-shadow(0 4px 20px rgba(165, 180, 252, 0.4)) 
            drop-shadow(0 0 40px rgba(99, 102, 241, 0.2));
}

.splash-screen.fade-out .splash-360-logo {
    opacity: 1;
    width: 80px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes splashLogoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes splashLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 40px rgba(165, 180, 252, 0.6)) 
                drop-shadow(0 0 80px rgba(99, 102, 241, 0.4));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 12px 50px rgba(165, 180, 252, 0.8)) 
                drop-shadow(0 0 100px rgba(99, 102, 241, 0.6))
                drop-shadow(0 0 120px rgba(168, 85, 247, 0.4));
    }
}

/* ============================================
   Общие стили и сброс - Apple Dark + Liquid Glass
   ============================================ */

body {
    font-family: "YS Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Фиксированный фон сверху */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1600px;
    height: 560px;
    background-image: url('bg.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Overlay для затемнения фона при скролле */
.bg-image-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1600px;
    height: 560px;
    background-color: rgba(0, 0, 0, 1);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Фиксированный logo-360 сверху справа */
.bg-logo-360 {
    position: fixed;
    top: 40px;
    right: 8%;
    width: 120px;
    height: auto;
    z-index: 1;
    opacity: 0;
    animation: bgLogo360Appear 1s ease-out 0.5s forwards,
               bgLogo360Float 4s ease-in-out 1.5s infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 204, 0, 0.5));
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

@keyframes bgLogo360Appear {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(-5deg);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes bgLogo360Float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Градиент для плавного перехода фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Animated liquid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes liquidMove {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) translate(2%, 2%);
        opacity: 0.8;
    }
}

/* ============================================
   Шапка - Apple Liquid Glass
   ============================================ */

.header {
    color: #FFFFFF;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin-top: 420px;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.3);
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 20px rgba(165, 180, 252, 0.4));
    animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
    opacity: 0; /* Начально скрыт для плавного перехода */
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(8px) scale(0.98);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 4px 20px rgba(165, 180, 252, 0.4)) 
                drop-shadow(0 0 40px rgba(99, 102, 241, 0.2));
    }
    100% {
        filter: drop-shadow(0 8px 30px rgba(165, 180, 252, 0.6)) 
                drop-shadow(0 0 60px rgba(99, 102, 241, 0.4))
                drop-shadow(0 0 80px rgba(168, 85, 247, 0.3));
    }
}

.logo:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.logo-360 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(255, 204, 0, 0.5));
    animation: logo360Subtle 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    z-index: 2;
    opacity: 0; /* Начально скрыт для плавного перехода */
}

.logo-360:hover {
    animation-play-state: paused;
    transform: scale(1.15) rotate(5deg);
}

@keyframes logo360Subtle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.logo-360 {
    width: 60px;
    height: auto;
    margin-top: 16px;
    filter: drop-shadow(0 2px 8px rgba(255, 204, 0, 0.3));
    animation: logo360Subtle 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-360:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(5deg);
}

@keyframes logo360Subtle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(3deg);
    }
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Основной контейнер
   ============================================ */

.container {
    flex: 1;
    max-width: 1800px;
    margin: 500px auto 0;
    padding: 30px 40px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-radius: 24px 24px 0 0;
}

/* Градиент сверху контейнера */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}



/* ============================================
   Панель фильтров - Liquid Glass (плавающая снизу)
   ============================================ */

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    z-index: 100;
    pointer-events: none;
}

.filter-btn {
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(58, 58, 60, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 4px 16px rgba(0, 0, 0, 0.4);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover {
    background: rgba(72, 72, 74, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7),
                0 6px 20px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.6) 0%, rgba(99, 102, 241, 0.6) 100%);
    border-color: rgba(10, 132, 255, 0.5);
    box-shadow: 0 12px 40px rgba(10, 132, 255, 0.4),
                0 6px 20px rgba(10, 132, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 30px rgba(10, 132, 255, 0.3);
    color: #ffffff;
}

.filter-btn:active {
    transform: translateY(0);
}

/* ============================================
   Сетка карточек
   ============================================ */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

.content-subtitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    padding: 0px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.2);
}

/* Заголовок секции */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.8px;
    margin: 60px 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.8) 0%, transparent 100%);
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.4);
}

/* Внеклассные просмотры - сетка */
.extra-movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* Скрытие карточек при фильтрации */
.movie-card.hidden {
    display: none;
}

/* ============================================
   Карточка фильма - Apple Liquid Glass
   ============================================ */

.movie-card {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Ссылка на фильм */
.movie-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* Liquid glass shine effect */
.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.08) 50%, 
                transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.movie-card:hover::before {
    left: 100%;
}

.movie-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(28, 28, 30, 0.75);
}

/* ============================================
   Постер
   ============================================ */

.poster-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(44, 44, 46, 0.5);
    position: relative;
}

/* Year badge на постере */
.year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.movie-card:hover .year-badge {
    background: rgba(10, 132, 255, 0.9);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.poster-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
                transparent 0%, 
                rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.movie-card:hover .poster {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Play overlay - иконка воспроизведения */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.movie-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.play-icon {
    width: 64px;
    height: 64px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.movie-card:hover .play-icon {
    transform: scale(1);
}

/* ============================================
   Контент карточки
   ============================================ */

.movie-card .title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 16px 6px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.movie-card .description {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 16px 16px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 2;
}

.movie-card .datetime {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 16px 16px 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    
    border-radius: 8px;
    margin: 16px 0 0 16px;
    padding: 4px 12px;
    border: 1px solid rgba(10, 132, 255, 0.3);
    
}

/* ============================================
   Кнопки - Apple Liquid Glass
   ============================================ */

.buttons {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.status-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(58, 58, 60, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

/* Ripple effect on click */
.status-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.status-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Кнопка статуса */
.status-btn {
    background: rgba(58, 58, 60, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.status-btn[data-status="upcoming"] {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.25) 0%, rgba(255, 149, 0, 0.25) 100%);
    color: #ff9f0a;
    border-color: rgba(255, 159, 10, 0.4);
    box-shadow: 0 4px 16px rgba(255, 159, 10, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-btn[data-status="watched"] {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.25) 0%, rgba(40, 199, 78, 0.25) 100%);
    color: #30d158;
    border-color: rgba(48, 209, 88, 0.4);
    box-shadow: 0 4px 16px rgba(48, 209, 88, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-btn[data-status="upcoming"]:hover {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.35) 0%, rgba(255, 149, 0, 0.35) 100%);
    box-shadow: 0 8px 24px rgba(255, 159, 10, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-btn[data-status="watched"]:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.35) 0%, rgba(40, 199, 78, 0.35) 100%);
    box-shadow: 0 8px 24px rgba(48, 209, 88, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-btn:active {
    transform: translateY(0);
}

/* ============================================
   Подвал - Apple Liquid Glass
   ============================================ */

.footer {
    
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
}

/* Пульсирующее сердечко */
.heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    color: #ff4d6d;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.2);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    40% {
        transform: scale(1);
    }
}

/* ============================================
   Адаптивность для телевизоров и больших экранов
   ============================================ */

/* Экраны 4K и выше */
@media (min-width: 2560px) {
    .header h1 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }
    
    .subtitle {
        font-size: 22px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
    }
    
    .extra-movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
    
    .section-title {
        font-size: 36px;
        margin: 80px 0 40px 0;
    }
    
    .movie-card .title {
        font-size: 24px;
        letter-spacing: -0.8px;
    }
    
    .movie-card .description {
        font-size: 16px;
    }
    
    .movie-card .datetime {
        font-size: 14px;
    }
    
    .status-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Планшеты и средние экраны */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .content-subtitle {
        font-size: 22px;
    }
    
    .header h1 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    body::after {
        width: 95%;
        height: 250px;
    }
    
    .bg-image-overlay {
        width: 95%;
        height: 250px;
    }
    
    body::before {
        height: 320px;
    }
    
    .bg-logo-360 {
        top: 30px;
        right: 5%;
        width: 80px;
    }
    
    .header {
        margin-top: 270px;
    }
    
    .footer {
        width: calc(100% - 40px);
        margin-bottom: 100px;
        border-radius: 20px 20px 0 0;
    }
    
    .container {
        padding: 25px 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .movie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 140px; /* Больше отступ на мобильных из-за переноса кнопок */
    }
    
    .extra-movies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 22px;
        margin: 40px 0 24px 0;
    }
    
    .content-subtitle {
        font-size: 12px;
        margin-bottom: 0px;
        padding: 0px;
    }
    
    .header {
        padding: 20px 20px;
    }
    
    .header h1 {
        font-size: 24px;
        letter-spacing: -0.6px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .logo {
        width: 280px;
    }
    
    .logo-360 {
        width: 55px;
    }
    
    .splash-logo {
        width: 85vw;
        max-width: 500px;
    }
    
    .splash-360-logo {
        width: 100px;
    }
    
    .splash-screen.fade-out .splash-logo {
        width: 280px;
        transform: translateY(calc(-50vh + 60px));
    }
    
    .splash-screen.fade-out .splash-360-logo {
        width: 55px;
    }
    
    .movie-card .title {
        font-size: 20px;
        letter-spacing: -0.6px;
    }
    
    .movie-card .description {
        font-size: 14px;
    }
    
    .movie-card .datetime {
        font-size: 10px;
        padding: 5px 10px;
        margin: 12px 0 0 12px;
    }
    
    .status-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .filter-bar {
        padding: 16px 12px;
        gap: 12px;
    }
    
    .filter-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================
   Анимации - Liquid Style
   ============================================ */

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

.movie-card {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.movie-card:nth-child(1) { animation-delay: 0.05s; }
.movie-card:nth-child(2) { animation-delay: 0.1s; }
.movie-card:nth-child(3) { animation-delay: 0.15s; }
.movie-card:nth-child(4) { animation-delay: 0.2s; }
.movie-card:nth-child(5) { animation-delay: 0.25s; }
.movie-card:nth-child(6) { animation-delay: 0.3s; }
.movie-card:nth-child(7) { animation-delay: 0.35s; }
.movie-card:nth-child(8) { animation-delay: 0.4s; }
.movie-card:nth-child(9) { animation-delay: 0.45s; }
.movie-card:nth-child(10) { animation-delay: 0.5s; }

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшение производительности и типографики */
.movie-card,
.filter-btn,
.status-btn,
.header h1,
.subtitle {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
