/* Подключение красивых шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Montserrat&family=Lato&family=Roboto&display=swap');

/* Стилизация страницы */
.player-container {
    position: relative;
    margin: 0;
}

.player-image {
    width: 100%;
    max-width: auto;
    height: 500px;
    margin: 0 auto;
    border-radius: 0px;
    object-fit: cover;
    background-color: #1c1c1c; /* Фон превью */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Добавлена тень */
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    .player-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        max-width: 800px;
    }
}

a {
    text-decoration: none;
    color: #04d9ff; /* Изменён цвет ссылок на голубой неон */
    cursor: pointer;
}

a:hover {
    color: #ccc; /* Светлый серый при наведении */
}

* {
    margin: 0;
    padding: 0;
    text-decoration: inherit;
    font-weight: inherit;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    font-style: inherit;
}

*:focus {
    outline: none;
    -moz-outline-style: none;
}

*::-moz-focus-inner {
    border: 0;
}

html {
    overflow-y: scroll;
}

/* Сброс отступов для всей страницы */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #fafafa;
    background-color: #1c1c2c; /* Темно-серый фон */
}

/* Убираем старый блок #body, он не нужен и конфликтует */
/* #body { ... } */

/* --- ИСПРАВЛЕНИЕ --- */
#page {
    width: 100%; /* Оставляем ширину 100% */
    margin: 0; /* Убираем центрирование (margin: 0 auto) */
    
    /* Убираем ограничение максимальной ширины! */
    max-width: none; 
    
    min-width: 288px;
    min-height: 100%;
    background-color: #262626;
    box-shadow: 0 0 15px #111;
}

#footer {
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: #cccccc; /* Легкий серо-голубой оттенок */
    padding: 15px 0;
}

#footer .links a {
    opacity: 0.7;
}

#footer .links a:hover {
    opacity: 1;
}

@media all and (min-width: 851px) {
    #body.background-image {
        padding-top: 370px;
        padding-top: 19.2708vw;
    }
    #body.background-image #page {
        width: 95%;
    }
}

/* Стилизация списка серий */
.series-list {
    padding-bottom: 20px;
}

.series-list .title {
    font-weight: normal;
    color: #ffffff; /* Белый цвет текста */
    padding-bottom: 3px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif; /* Шрифт подзаголовков */
}

.series-list a {
    display: inline-block;
    min-width: 1.4em;
    padding: 0 0.3em;
    line-height: 1.5em;
    text-align: center;
    color: #04d9ff; /* Выделенные элементы - голубой неон */
    border-bottom: 1px dashed;
    margin: 0 0.5em 0.5em 0;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Добавлена тень */
}

.series-list a.selected {
    color: #ffffff; /* Текущие активные серии - белые */
    border-bottom: none;
}

.series-list .seasons {
    padding-bottom: 10px;
}

.series-list .episodes-list {
    display: none;
}

.series-list .episodes-list.selected {
    display: block;
}

/* Стилизация превью кадров фильмов */
.stills {
    padding: 20px 0;
    text-align: center;
}

.stills .buttons {}

.stills .button {
    display: inline-block;
    background-color: #04d9ff; /* Контрастная голубая кнопка */
    border-radius: 3px;
    line-height: 46px;
    white-space: nowrap;
    padding: 0 35px;
    color: #121212; /* Темно-коричневый цвет текста */
    font-size: 16px;
    cursor: pointer;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Добавлена тень */
}

.stills .still {
    width: 22.75%;
    margin-right: 3%;
    padding-bottom: 3%;
    float: left;
    cursor: pointer;
    overflow: hidden;
}

.stills .img {
    width: 100%;
    height: 0;
    padding-bottom: 65%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

@media all and (min-width: 769px) {
    .stills .still:nth-child(4n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+5) {
        display: none;
    }
}

@media all and (max-width: 768px) and (min-width: 564px) {
    .stills .still {
        width: 31.2%;
        margin-right: 3.2%;
        padding-bottom: 3.2%;
    }
    .stills .still:nth-child(3n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+4) {
        display: none;
    }
}

@media all and (max-width: 563px) and (min-width: 376px) {
    .stills .still {
        width: 47.5%;
        margin-right: 5%;
        padding-bottom: 5%;
    }
    .stills .still:nth-child(2n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+5) {
        display: none;
    }
}

@media all and (max-width: 375px) {
    .stills .still {
        float: none;
        width: 100%;
        max-width: 230px;
        margin: 0 auto 6% auto;
    }
    .stills .still:nth-child(n+3) {
        display: none;
    }
}

.stills.show-all .still {
    display: block;
}

.film .stills.short .buttons {
    display: none;
}

.stills-slider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 10;
    font-size: 0;
}

.stills-slider .slider-wrap {
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
}

.stills-slider .slider-image {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-right: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('');
}

.stills-slider .slider-image .img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.content {
    width: 95%;
    max-width: 1000px;
    min-width: 288px;
    margin: 0 auto;
}

.location-error {
    font-size: 36px;
    text-align: center;
    font-weight: 300;
    line-height: 252px;
    white-space: nowrap;
    overflow: hidden;
}

@media all and (max-height: 720px) {
    .location-error {
        line-height: 35vh;
    }
}

@media all and (max-width: 480px) {
    .location-error {
        font-size: 7.5vw;
    }
}

h2 {
    width: 95%;
    max-width: 1140px;
    min-width: 288px;
    margin: 0 auto;
    font-size: 40px;
    padding-bottom: 0.5em;
    color: #ffffff; /* Теперь заголовок белый */
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    line-height: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Добавлена тень текста */
    font-family: 'Montserrat', sans-serif !important; /* Новый красивый шрифт для заголовков */
}

h2:before,
h2:after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 2px;
    background: #04d9ff; /* Голубые линии */
    z-index: -1;
    position: relative;
    top: -10px;
}

h2:before {
    right: 0.7em;
    margin: 0 0 0 -100%;
}

h2:after {
    left: 0.7em;
    margin: 0 -100% 0 0;
}

@media all and (max-width: 550px) {
    h2:before,
    h2:after {
        display: none;
    }
}

.film-removed {
    font-size: 36px;
    text-align: center;
    font-weight: 300;
    padding-top: 150px;
    line-height: 50px;
    padding-top: calc(50vh - 25px);
}

@media all and (max-width: 750px) {
    .film-removed {
        padding-top: calc(50vh - 50px);
    }
}

@media all and (max-width: 485px) {
    .film-removed {
        font-size: 7.4227vw;
        line-height: 10.3093vw;
        padding-top: calc(50vh - 10.3093vw);
    }
}

.comments {
    padding: 20px 0;
}

/* --- ОСНОВНОЕ ИЗМЕНЕНИЕ --- */
.comment {
    display: flex; /* Включаем Flexbox */
    align-items: flex-start; /* Выравниваем элементы по верхнему краю */
    padding-bottom: 22px;
    padding-left: 0; /* Убираем старый отступ */
}

.comment .avatar {
    /* Убираем все позиционирование! */
    /* position: sticky; - больше не нужно */
    width: 70px;
    height: 70px;
    margin-right: 15px; /* Добавляем отступ справа, чтобы текст не прилипал к картинке */
    flex-shrink: 0; /* Запрещаем картинке сжиматься на маленьких экранах */
}

.comment .data {
    min-height: 70px;
    border-left: 1px solid #04d9ff;
    font-family: 'Roboto', sans-serif;
    padding-left: 5px; /* Небольшой отступ для текста внутри блока данных */
}

/* Остальные стили остаются без изменений */
.comment .user-name, .comment .date, .comment .text {
    font-family: 'Roboto', sans-serif; /* Можно объединить для краткости */
}

.comment .user-name {
    text-transform: uppercase;
    font-size: 15px;
    color: #04d9ff;
}

.comment .date {
    font-size: 12px;
    color: #aaaaaa;
    padding: 2px 0;
    font-weight: lighter;
}

.comment .text {
    font-size: 15px;
    padding: 5px 0 0 0;
    font-weight: lighter;
    line-height: 1.3em;
}

@media all and (max-width: 550px) {
    .comment {
        padding-left: 0;
        padding-bottom: 10px;
    }
    .comment .avatar {
        display: none;
    }
    .comment .data {
        min-height: 0;
        padding: 0 0 10px 0;
        border-left: none;
        border-bottom: 1px solid #04d9ff; /* При мобильной версии внизу рамка голубая неоновая */
    }
    .comments .comment:last-child .data {
        border: none;
    }
}

@media all and (max-width: 550px) {
    .comment {
        padding-left: 0;
        padding-bottom: 10px;
    }
    .comment .avatar {
        display: none;
    }
    .comment .data {
        min-height: 0;
        padding: 0 0 10px 0;
        border-left: none;
        border-bottom: 1px solid #04d9ff;
        
        /* --- ДОБАВЬ ЭТИ ДВЕ СТРОКИ --- */
        width: 100%; /* Занимает всю доступную ширину */
        overflow-wrap: break-word; /* Переносит длинные слова */
    }
    .comments .comment:last-child .data {
        border: none;
    }
}

.film-title {
    font-size: 42px;
    padding: 0.5em 0;
    padding: calc(0.3em + 12px) 0;
    color: #ffffff; /* Название фильма теперь белое */
    font-family: 'Montserrat', sans-serif !important; /* Новое оформление названия фильма */
}

.film-title .name {
    font-size: 42px;
    font-weight: bold;
    display: block;
    line-height: 1.4em;
}

.film-title .subtitle {
    font-size: 22px;
    display: block;
    font-weight: lighter;
    padding-top: 0.1em;
    line-height: 1.4em;
    font-family: 'Montserrat', sans-serif; /* Новый шрифт для подзаголовков */
}

.film-title.txt-tst,
.film-title.txt-tst * {
    white-space: nowrap;
    color: transparent;
    display: inline-block;
}

.film-title.txt-tst {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    visibility: hidden;
    top: -10000px;
    left: 10000px;
}

.film .poster {
    float: left;
    width: 23%;
    height: 0;
    padding-bottom: 34.5%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Добавлена тень */
}

.film .film-info {
    float: right;
    position: relative;
    width: 72%;
    font-size: 15px;
    font-weight: lighter;
    line-height: 1.6em;
    padding-top: 2
}

/* --- ИСПРАВЛЕННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ --- */

@media (max-width: 768px) {
    .film {
        /* Убираем общее центрирование для всего контейнера */
        text-align: left; 
    }

    .film .poster {
        float: none !important;
        display: block;
        margin: 0 auto 25px auto; /* Вот здесь оставляем auto, чтобы центрировать сам постер */
        width: 90%;
        max-width: 320px;
        height: 0;
        padding-bottom: 150%;
        background-size: cover;
        background-position: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .film .film-info {
        float: none !important;
        width: 90% !important;
        max-width: 320px;
        margin: 25px auto 0 auto; /* Центрируем блок с текстом */
        
        /* Прижимаем текст внутри блока к левому краю */
        text-align: left; 
    }
}
	
	/* --- СТИЛИ ДЛЯ ФОРМЫ ОТЗЫВА --- */
.feedback-area {
    background: #2a2a2a; /* Тёмно-серый фон окна */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.feedback-area h3 {
    margin-top: 0;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.form-control {
    background: #3a3a3a; /* Цвет полей ввода */
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    width: 100%; /* Растягивается на всю ширину контейнера */
    margin-bottom: 15px; /* Отступ снизу */
    box-sizing: border-box; /* Чтобы padding не ломал ширину */
    font-size: 1em;
}

.form-control::placeholder {
    color: #aaa;
}

.action-link {
    background: #04d9ff; /* Голубой неон кнопки */
    color: #fff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    box-shadow:
        0 0 8px #04d9ff,
        0 0 15px #04d9ff,
        inset 0 0 5px rgba(0,123,255,0.4);
    transition: box-shadow .3s, transform .2s;
}

.action-link:hover {
     box-shadow:
        0 0 15px #04d9ff,
        0 0 30px #04d9ff,
        inset 0 0 8px rgba(0,123,255,0.6);
     transform: translateY(-2px);
}

/* --- ФИНАЛЬНЫЙ CSS: ЛОГО И МЕНЮ --- */

/* 1. ПЕРЕМЕННЫЕ (оставляем твои) */
:root {
    --f-cond: 'Roboto Condensed', sans-serif;
    --main-dark: #050505;
    --card-dark: #0d1117;
    --neon-blue: #6EC6FF;
    --deep-blue: #04d9ff;
    --text-dim: #a0b0c0;
}

/* 2. АНИМАЦИЯ РАДУГИ (для лого) */
@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3. ОСНОВНЫЕ СТИЛИ */
body {
    background-color: var(--main-dark);
    color: #e2e8f0;
    margin: 0;
    font-family: var(--f-cond);
    line-height: 1.5;
}

header {
    background: linear-gradient(to right, #050505, #0d1117);
    border-bottom: 1px solid var(--deep-blue);
    padding: 20px 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* --- СТИЛИ ДЛЯ ПК (Desktop) --- */
@media (min-width: 769px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-container {
        display: flex;
        gap: 35px;
    }
}

/* --- СТИЛИ ДЛЯ МОБИЛЬНЫХ (Mobile) --- */
@media (max-width: 768px) {
    header {
        display: block; /* Для мобилки делаем блоки друг под другом */
        text-align: center; /* Центрируем содержимое */
    }

    .nav-container {
        display: flex;
        justify-content: center; /* Меню по центру */
        flex-direction: row; /* Меню в строку */
        gap: 25px;
        margin-top: 15px; /* Отступ меню от лого */
    }
}

/* 4. СТИЛИ ЛОГОТИПА (Перелив) */
.brand-logo {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    
    /* Градиент из мягких цветов радуги */
    background: linear-gradient(270deg, #FF8A00, #FFD60A, #76FF03, #00E5FF, #2979FF, #7C4DFF);
    
    /* Настройки для анимации */
    background-size: 700% 700%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Очень плавная анимация */
    animation: rainbow 40s ease infinite;
}

/* 5. СТИЛИ МЕНЮ И ССЫЛОК */
.nav-bar { display: flex; gap: 35px; }

.nav-bar a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    
    /* Плавный переход для цвета текста */
    transition: color 0.6s ease; 
}

/* Стиль для неонового подчеркивания (Голубой неон) */
.nav-bar a::after {
    content: '';
    position: absolute;
    width: 0; /* Скрыто по умолчанию */
    height: 2px;
    bottom: -4px;
    left: 50%;
    
    /* Голубой неон с свечением */
    background: linear-gradient(90deg, var(--deep-blue), var(--neon-blue));
    
    transition: width 0.6s ease, left 0.6s ease; /* Плавное появление */
}

.nav-bar a:hover {
    color: var(--neon-blue);
}

.nav-bar a:hover::after {
    width: 100%; /* Растягиваем подчеркивание при наведении */
    left: 0; /* Выравниваем по левому краю */
}

        .seo-text-block {
            background: #242424;
            border: 1px solid #1a1a1a;
            padding: 30px;
            margin: 50px 0;
            border-radius: 4px;
        }
        .seo-text-block h4 { color: #444; margin-top: 0; }
        .seo-text-block p { font-size: 14px; color: #555; line-height: 1.8; margin: 0; }
		

/* --- СТИЛИ ДЛЯ РЕЙТИНГА (ГОТОВЫЙ КОД) --- */

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating .score {
    background: #252525;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.2rem;
}

.rating .score i {
    font-size: 1.5rem;
    color: #ffc107; /* Желтый цвет звезды */
}
		
  .dreams-player {
    --plyr-color-main: #04d9ff; /* Основной неоновый голубой */
    --plyr-video-background: #0a0a1a; /* Тёмный фон для контраста */
    --plyr-control-color: white; /* Белый цвет для всех иконок управления */
    --plyr-tooltip-background: #04d9ff; /* Фон подсказок — неоновый голубой */
    --plyr-tooltip-color: white; /* Цвет текста подсказок */
  }

  /* Кнопка Play в центре плеера — оставляем в исходном виде */
  button.plyr__control--overlaid {
    background-color: #04d9ff !important;
    border: none !important;
    box-shadow: 0 0 8px rgba(4, 217, 255, 0.6) !important; /* Неоновое свечение */
  }

  button.plyr__control--overlaid:hover {
    background-color: #2d55ff !important;
    box-shadow: 0 0 12px rgba(45, 85, 255, 0.8) !important; /* Усиленное свечение при наведении */
  }

  /* КРИТИЧЕСКИ ВАЖНО для перемотки: восстанавливаем интерактивность области прогресса */
  .plyr__progress,
  .plyr__progress__container {
    cursor: pointer !important; /* Восстанавливает курсор-указатель */
    position: relative !important; /* Гарантирует корректное позиционирование */
    z-index: 10 !important; /* Поднимает слой выше */
    height: 6px !important; /* Фиксированная высота для удобства клика */
  }

  /* Прогресс‑бар (сыгранное время) */
  .plyr__progress__played {
    background: #04d9ff !important;
    box-shadow: 0 0 4px rgba(4, 217, 255, 0.4) !important; /* Лёгкое свечение */
    height: 100% !important;
  }

  /* Буфер прогресса (загруженная часть) — белый, полупрозрачный */
  .plyr__progress__buffer {
    background: rgba(255, 255, 255, 0.3) !important; /* Белый, 30 % непрозрачности */
    height: 100% !important;
  }

  /* Ползунок перемотки (точка, которую тянем) */
  .plyr__progress__input {
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important; /* Делает стандартный ползунок невидимым */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important; /* Располагаем поверх прогресса */
    cursor: pointer !important;
  }

  /* Все маленькие иконки управления — чисто белые, остаются белыми при наведении */
  .plyr__controls button:not(.plyr__control--overlaid) {
    color: white !important; /* Чисто белый цвет */
    transition: box-shadow 0.3s ease !important; /* Плавный переход свечения */
  }

  .plyr__controls button:hover:not(.plyr__control--overlaid) {
    box-shadow: 0 0 8px rgba(4, 217, 255, 0.5) !important; /* Неоновое свечение вокруг иконки */
  }

  /* Полноэкранная кнопка */
  .plyr__control[aria-label="Fullscreen"] {
    color: white !important; /* Чисто белый */
  }

  .plyr__control[aria-label="Fullscreen"]:hover {
    box-shadow: 0 0 8px rgba(4, 217, 255, 0.5) !important; /* Неоновое свечение вокруг */
  }

  /* Селекторы сезонов и эпизодов */
  .dc-season-select,
  .dc-episode-select {
    background-color: #04d9ff !important;
    color: white !important;
    border: 1px solid #2d55ff !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    box-shadow: 0 0 6px rgba(4, 217, 255, 0.3) !important; /* Лёгкое неоновое свечение */
  }

  .dc-season-select:hover,
  .dc-episode-select:hover {
    background-color: #2d55ff !important;
    border-color: #1a3cc9 !important;
    box-shadow: 0 0 8px rgba(45, 85, 255, 0.5) !important; /* Усиленное свечение */
  }

  /* Кнопка на Попапе */
  #dialog-cta-btn {
    background: linear-gradient(to right, #04d9ff, #2d55ff) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: 0 0 8px rgba(4, 217, 255, 0.4),
                 0 0 16px rgba(4, 217, 255, 0.2) !important; /* Многослойное неоновое свечение */
    transition: all 0.3s ease !important;
  }

  #dialog-cta-btn:hover {
    background: linear-gradient(to right, #2d55ff, #1a3cc9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 12px rgba(45, 85, 255, 0.6),
                 0 0 24px rgba(45, 85, 255, 0.3) !important; /* Более яркое свечение при наведении */
  }
  
    .registration-alert {
        backdrop-filter: blur(5px);
    }
    
    .registration-alert .alert-content {
        background: var(--main-dark);
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }
    
    .registration-alert .alert-content p {
        margin: 0 0 20px;
        color: var(--text-dim);
        font-size: 16px;
    }
    
    .registration-alert .close-btn {
        background: var(--deep-blue);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .registration-alert .close-btn:hover {
        background: var(--neon-blue);
    }
	
	/* Базовые стили для блока информации */
.film-info {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Состояние активного элемента */
.film-info.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Декоративная линия сверху */
.film-info::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #04d9ff, #2d55ff);
    position: absolute;
    top: 0;
    left: 15px;
}

/* Описание */
.description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Информационная таблица */
.info-table {
    margin: 0;
    padding: 0;
}

.row {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* Анимация при наведении */
.row:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Разделители между строками */
.row::after {
    content: '';
    display: block;
    width: 1px;
    background: linear-gradient(90deg, #04d9ff, #2d55ff);
    height: calc(100% - 20px);
    position: absolute;
    right: 0;
    margin-right: 15px;
    opacity: 0.5;
}

.label {
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    min-width: 100px;
    white-space: nowrap;
    font-size: 13px;
}

.value {
    color: #fff;
    font-size: 14px;
    word-break: break-word;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для жанров без использования data-атрибутов */
.row.genre .value {
    display: flex;
    gap: 5px;
    font-size: 13px;
}

.genre-item {
    background: rgba(0,0,0,0.7);
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
    
    &:hover {
        background: #04d9ff;
        color: #000;
        transform: scale(1.02);
    }
}

/* SEO-блок */
.seo-text-block {
    background: #242424;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.seo-text-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивка */
@media (max-width: 768px) {
    .row {
        flex-direction: row;
        gap: 10px;
    }
    
    .label {
        min-width: auto;
        font-size: 12px;
    }
    
    .value {
        font-size: 13px;
    }
    
    .genre-item {
        padding: 2px 6px;
    }
    
    .description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .film-info {
        padding: 10px;
    }
    
    .row {
        gap: 8px;
        padding: 8px 0;
    }
    
    .label {
        font-size: 11px;
    }
    
    .value {
        font-size: 12px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.film-info {
    animation: fadeIn 0.4s ease forwards;
}

.seo-text-block {
    animation: fadeIn 0.4s ease forwards;
}

/* Исправления для конкретных случаев */
.row.genre .value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-table {
    width: 100%;
}

/* Стили для модальных окон */
.registration-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-content {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    max-width: 600px;
}

.close-btn {
    background: #04d9ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin: 0 auto;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #00ffff;
}

/* Разделитель между контентом и футером */
.main-content {
    position: relative;
    margin-bottom: 30px;
}

.main-content::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #04d9ff;
    position: absolute;
    bottom: -30px;
}

/* Основные стили футера */
.site-footer {
    background: #222;
    padding: 40px 0;
    color: #aaa;
    text-align: center;
}

.footer-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    max-width: 25%;
    text-align: left;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-logo {
    text-decoration: none;
    color: #fff;
    font-size: 30px; /* Увеличили размер логотипа */
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    display: block;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
}

.footer-links a:hover {
    color: #04d9ff;
    background: rgba(0,0,0,0.1);
}

.footer-special {
    color: #777;
}

.footer-special:hover {
    color: #04d9ff;
    background: rgba(0,0,0,0.2);
}

.footer-col h4 {
    margin: 20px 0 15px;
    color: #fff;
    font-size: 20px; /* Увеличили размер заголовков */
    font-weight: 600;
    text-align: left;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Исправляем проблемы с выравниванием */
.footer-grid {
    align-items: flex-start;
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-col {
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
    }
    
    .footer-col h4 {
        font-size: 18px;
        margin: 15px 0;
    }
    
    .site-logo {
        font-size: 24px;
        text-align: center;
    }
    
    .footer-links a {
        font-size: 14px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-col {
        padding: 0 10px;
    }
    
    .footer-links a {
        padding: 8px 10px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .site-logo {
        font-size: 20px;
        text-align: center;
    }
    
    .footer-col h4 {
        font-size: 16px;
        margin: 15px 0 10px;
        text-align: center;
    }
}

/* Фиксируем положение элементов */
.footer-grid {
    display: flex;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Улучшаем позиционирование текста */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Оптимизируем отступы */
.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

/* Улучшаем внешний вид на ПК */
@media (min-width: 992px) {
    .footer-grid {
        gap: 40px;
    }
    
    .footer-col {
        padding: 0 30px;
    }
    
    .site-logo {
        font-size: 32px;
    }
    
    .footer-col h4 {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        max-width: 1200px;
        gap: 50px;
    }
    
    .footer-col {
        padding: 0 40px;
    }
}

/* Оптимизируем для планшетов */
@media (max-width: 991px) {
    .footer-grid {
        gap: 30px;
    }
    
    .footer-col {
        padding: 0 20px;
    }
}

/* Дополнительные улучшения */
.footer-links a {
    display: block;
    text-align: left;
    word-break: break-word;
}

.footer-col {
    position: relative;
}

/* Исправляем проблемы с плавающим текстом */
.footer-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Улучшаем визуальное разделение */
.footer-col::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px 0;
}

/* Исправляем проблемы с отступами */
.footer-grid {
    width: 100%;
    box-sizing: border-box;
}

/* Разделитель между контентом и футером */
.main-content {
    position: relative;
    margin-bottom: 30px;
}

.main-content::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #04d9ff;
    position: absolute;
    bottom: -30px;
}

/* Стили для разделителей в футере */
.footer-col::after {
    content: '';
    display: block;
    height: 1px;
    background: #04d9ff;
    margin: 20px 0;
}

/* Основные стили футера */
.site-footer {
    background: #222;
    padding: 40px 0;
    color: #aaa;
    text-align: center;
}

.footer-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    max-width: 25%;
    text-align: left;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-logo {
    text-decoration: none;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-col {
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
    }
    
    .footer-col h4 {
        text-align: center;
    }
    
    .site-logo {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-col {
        padding: 0 10px;
    }
    
    .footer-links a {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .site-logo {
        font-size: 20px;
        text-align: center;
    }
    
    .footer-col h4 {
        font-size: 16px;
        margin: 15px 0 10px;
        text-align: center;
    }
}

/* Оптимизируем отступы для ПК версии */
@media (min-width: 992px) {
    .footer-grid {
        gap: 40px;
    }
    
    .footer-col {
        padding: 0 30px;
    }
}

/* Дополнительные улучшения для текста */
.footer-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
}

/* Исправляем проблемы с переносом текста */
.footer-links a {
    word-break: break-word;
    display: block;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-links a {
        text-align: center;
    }
}

        // Добавляем стили для модального окна
        .modal.style.cssText = `
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        `;