        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

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

        body {
            font-family: 'Inter', 'Gilroy', sans-serif;
            background-image: url('/bg/bg.jpg');
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 100vh;
            transition: background-image 0.3s ease;
        }

        /* Стили для светлой темы */
        body.light-theme {
            background-image: url('/bg/bg_light.jpg');
        }

        body.light-theme .site-header {
            background-color: #f0f0f0;
        }

        body.light-theme .main-title,
        body.light-theme .sub-title,
        body.light-theme .nav-link,
        body.light-theme .auth-link {
            color: #212029;
        }

        body.light-theme .search-block {
            background-color: #d3d2d4;
        }

        body.light-theme .search-text {
            color: #212029;
        }

        body.light-theme .dropdown-content {
            background-color: #f0f0f0;
        }

        body.light-theme .dropdown-content a {
            color: #212029;
        }

        body.light-theme .dropdown-content a:hover {
            background-color: #f76b15;
            color: white;
        }

        /* Свободное пространство перед шапкой */
        .top-spacer {
            height: 36px;
            width: 100%;
        }

        /* Контейнер шапки */
        .site-header {
            width: 1550px;
            height: 70px;
            background-color: #212029;
            margin: 0 auto;
            border-radius: 10px 10px 0 0;
            transition: background-color 0.3s ease;
        }

        /* Контейнер для содержимого шапки */
        .header-content {
            height: 100%;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        /* Левая часть с логотипом */
        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .logo-img {
            width: 40px;
            height: 40px;
            display: block;
        }

        .site-title {
            display: flex;
            flex-direction: column;
        }

        .main-title {
            font-size: 20px;
            font-weight: 900;
            color: white;
            line-height: 1.2;
            transition: color 0.3s ease;
        }

        .sub-title {
            font-size: 10px;
            font-weight: 400;
            color: white;
            line-height: 1.2;
            transition: color 0.3s ease;
        }

        /* Блок поиска */
        .search-block
 {
    width: 300px;
    height: 40px;
    background-color: #101014;
    border-radius: 20px;
    display: flex;
    padding: 0 15px;
    gap: 10px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
}
.search-block1 {
    width: 100%;
    height: 100%;
    background-color: #101014;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    /* display: flex; */
    padding: 0 15px;
    /* gap: 10px; */
    /* transition: background-color 0.3s ease; */
    /* flex-shrink: 0; */
    /* justify-content: space-around; */
    border: 0px;
}
        .search-text {
            font-size: 12px;
            font-weight: 300;
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
            transition: color 0.3s ease;
        }

        .search-icon {
            width: 16px;
            height: 16px;
            filter: invert(45%) sepia(98%) saturate(1075%) hue-rotate(345deg) brightness(98%) contrast(91%);
            flex-shrink: 0;
        }

        /* Основная навигация */
        .main-nav {
            display: flex;
            align-items: center;
            gap: 20px;
            height: 100%;
        }

        .nav-link {
            font-size: 20px;
            font-weight: 900;
            color: white;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.3s ease;
            padding: 5px 0;
        }

        .nav-link:hover {
            color: #f76b15;
        }

        /* Контейнер для выпадающего меню */
        .dropdown {
            position: relative;
            display: inline-block;
            height: 100%;
            display: flex;
            align-items: center;
        }

        /* Выпадающий контент */
        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #f76b15;
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1000;
            border-radius: 8px;
            padding: 10px 0;
            transition: background-color 0.3s ease;
        }

        .dropdown-content a {
            color: white;
            padding: 8px 16px;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .dropdown-content a:hover {
            background-color: #ffffff;
            color: #212029;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        /* Правая часть */
        .user-actions {
            display: flex;
            align-items: center;
            gap: 25px;
            flex-shrink: 0;
        }

        .auth-links {
            display: flex;
            gap: 20px;
        }

        .auth-link {
            font-size: 20px;
            font-weight: 700;
            color: white;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.3s ease;
        }

        .auth-link:hover {
            color: #f76b15;
        }

        /* Кнопка смены темы */
        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f76b15;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
            padding: 0;
            flex-shrink: 0;
        }

        .theme-icon {
            width: 30px;
            height: 30px;
            transition: filter 0.3s ease;
            pointer-events: none;
        }

        /* Основной контент для демонстрации */
        .content {
            width: 1550px;
            margin: 0 auto;
            padding: 40px;
            background-color: #212029;
            color: white;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body.light-theme .content {
            background-color: rgba(255, 255, 255, 0.7);
            color: #212029;
        }

        .content h1 {
            font-size: 48px;
            margin-bottom: 20px;
            font-weight: 900;
        }

        .content p {
            font-size: 18px;
            line-height: 1.6;
        }


	/* Блок с ТОПами и категориями */
.top-categories-block {
    width: 1550px;
    height: 44px;
    background-color: #262626;
    margin: 0 auto; /* Центрируем блок */
    margin-top: 0; /* Впритык к шапке (шапка уже имеет margin: 0 auto, поэтому этот блок будет сразу под ней) */
    transition: background-color 0.3s ease;
}

/* Контейнер для категорий с отступами по краям */
.categories-container {
    height: 100%;
    padding: 0 50px; /* Свободное пространство по краям 50px */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Равномерное распределение */
    gap: 10px; /* Минимальный зазор между ссылками */
}

/* Стили для ссылок-категорий */
.category-link {
    font-size: 16px;
    font-weight: 600; /* Semibold */
    color: white;
    text-decoration: none;
    white-space: nowrap; /* Запрещаем перенос текста */
    transition: color 0.3s ease;
    padding: 5px 0; /* Немного отступа для удобства наведения */
}

.category-link:hover {
    color: #c1beef; /* Цвет при наведении */
}

/* Адаптация для светлой темы */
body.light-theme .top-categories-block {
    background-color: #e0e0e0; /* Светлый вариант для блока */
}

body.light-theme .category-link {
    color: #212029; /* Темный текст для светлой темы */
}

body.light-theme .category-link:hover {
    color: #c1beef; /* Цвет при наведении остается тем же */
}


/* Блок с постерами */
.posters-block {
    width: 1550px;
    height: 320px;
    background-color: #212029;
    margin: 0 auto; /* Центрирование и плотное прилегание к блоку выше */
    padding: 15px 50px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Контейнер для постеров */
.posters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 100%;
    width: 100%;
}

/* Карточка постера */
.poster-item {
    flex: 0 0 auto;
    width: 160px;
    height: 230px;
    border-radius: 10px;
    overflow: hidden;
}

.poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-item:hover {
    opacity: 0.5;
}

/* Адаптация для светлой темы */
body.light-theme .posters-block {
    background-color: #f0f0f0; /* Светло-серый фон для светлой темы */
}

/* Основной блок с тремя колонками */
.main-content-block {
    width: 1550px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили для боковых колонок */
.sidebar {
    width: 242px;
    background-color: #383746;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

/* Заголовок боковой колонки */
.sidebar-header {
    width: 100%;
    height: 44px;
    background-color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600; /* SemiBold */
    color: #f76b15;
}

/* Контент боковой колонки */
.sidebar-content {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Карточка фильма/сериала */
.movie-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.movie-card:hover {
    opacity: 0.9;
}

/* Постер с обводкой */
.movie-poster {
    width: 160px;
    height: 230px;
    border: 10px solid #383746; /* Обводка цветом фона колонки */
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Название фильма/сериала */
.movie-title {
    font-size: 14px; /* Уменьшил до 16px для лучшего размещения */
    font-weight: 600; /* SemiBold */
    color: #c1beef;
    text-align: center;
    transition: color 0.3s ease;
    max-width: 180px;
}


/* Адаптация для светлой темы */
body.light-theme .sidebar {
    background-color: #e8e8f0;
}

body.light-theme .sidebar-header {
    background-color: #d0d0d8;
}

body.light-theme .sidebar-title {
    color: #f76b15; /* Цвет остается */
}

body.light-theme .movie-poster {
    border-color: #e8e8f0; /* Обводка цветом фона светлой колонки */
}

body.light-theme .movie-title {
    color: #5a4a9a; /* Более темный оттенок для читаемости */
}

body.light-theme .center-column {
    background-color: rgba(255, 255, 255, 0.4);
}



/* Центральная колонка */
.center-column {
    flex: 1;
    background-color: #212029;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background-color 0.3s ease;
}

/* Элемент контента (один материал) */
.content-item {
    display: flex;
    gap: 20px;
    border-radius: 8px;
    padding: 15px;
}

/* Левая секция с постером */
.poster-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Контейнер постера */
.poster-container {
    width: 206px;
    height: 300px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.main-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Бейджи на постере */
.poster-badge {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 400;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.poster-badge.top-left {
    top: 8px;
    left: 8px;
}

.poster-badge.bottom-right {
    bottom: 8px;
    right: 8px;
}

/* Плашка с рейтингом */
.rating-block {
    width: 206px;
    height: 62px;
    background-color: #1a1a21;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    justify-content: center;
}

.rating-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ed6818;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.rating-btn:hover {
    background-color: #ff7a2a;
}

.like-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Белый цвет */
}

.like-icon.dislike {
    transform: rotate(180deg);
}

.rating-value {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* Правая секция с информацией */
.info-section {
    flex: 1;
    background-color: rgba(0, 0, 0, 20%);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 362px;
    box-sizing: border-box;
}

.movie-main-title {
    color: white;
    font-size: 24px;
    font-weight: 900; /* Black */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Сетка метаданных */
.movie-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    color: #f76b15;
    font-size: 14px;
    font-weight: 500; /* Medium */
    margin-bottom: 2px;
}

.meta-value {
    color: white;
    font-size: 16px;
    font-weight: 400;
}

/* Описание */
.movie-description {
    margin-bottom: 15px;
    flex: 1;
}

.description-label {
    color: #f76b15;
    font-size: 18px;
    font-weight: 500; /* Medium */
    display: block;
    margin-bottom: 5px;
}

.description-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
}

/* Кнопка перейти */
.goto-btn {
    width: 132px;
    height: 30px;
    background-color: #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500; /* Medium */
    align-self: flex-end;
    transition: background-color 0.2s ease;
}

.goto-btn:hover {
    background-color: #ff8533;
}

/* Адаптация для светлой темы */
body.light-theme .center-column {
    background-color: #e0e0e8;
}


body.light-theme .rating-block {
    background-color: #d0d0d8;
}

body.light-theme .rating-value {
    color: #212029;
}

body.light-theme .info-section {
    background-color: rgba(255, 255, 255, 0.7);
}

body.light-theme .movie-main-title {
    color: #212029;
}

body.light-theme .meta-value {
    color: #212029;
}

body.light-theme .description-text {
    color: #333;
}


/* Подвал */
.site-footer {
    width: 1550px;
    height: 158px;
    background-color: #212029;
    margin: 0 auto 0; /* Отступ сверху для отделения от контента */
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

.footer-content {
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Левая колонка */
.footer-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo-area:hover .footer-logo {
    opacity: 1;
}

.footer-site-title {
    display: flex;
    flex-direction: column;
}

.footer-main-title {
    font-size: 20px;
    font-weight: 900;
    color: white;
    opacity: 0.7;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.footer-sub-title {
    font-size: 10px;
    font-weight: 400;
    color: white;
    opacity: 0.7;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.footer-logo-area:hover .footer-main-title,
.footer-logo-area:hover .footer-sub-title {
    opacity: 1;
}

.footer-tech {
    font-size: 10px;
    font-weight: 300;
    color: #f76b15;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-tech:hover {
    opacity: 1;
}

/* Центральная колонка */
.footer-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: white;
    font-size: 18px;
    font-weight: 500; /* Medium */
    text-align: center;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

/* Правая колонка */
.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-link {
    color: #f76b15;
    font-size: 14px;
    font-weight: 500; /* Medium */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.social-btn {
    width: 24px;
    height: 24px;
    background-color: #f76b15;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-btn:hover {
    background-color: #ff8533;
}

.social-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Белый цвет */
}

/* Нижний отступ */
.bottom-spacer {
    height: 36px;
    width: 100%;
}

/* Адаптация для светлой темы */
body.light-theme .site-footer {
    background-color: rgba(240, 240, 245, 0.9);
}

body.light-theme .footer-main-title,
body.light-theme .footer-sub-title,
body.light-theme .footer-text {
    color: #212029;
}

body.light-theme .footer-tech {
    color: #f76b15;
}

body.light-theme .footer-link {
    color: #f76b15;
}

body.light-theme .social-btn {
    background-color: #f76b15;
}


/* Пагинация страниц */
.pagination-wrapper {
    width: 1550px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.pagination-bar {
    display: inline-flex;
    background-color: #f76b15;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 15px;
}

.page-link {
    color: #1a1a21;
    font-size: 20px;
    font-weight: 600; /* Semibold */
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: rgba(26, 26, 33, 0.1);
}

.page-link.active {
    background-color: #1a1a21;
    color: #f76b15;
}

/* Адаптация для светлой темы */
body.light-theme .page-link {
    color: #1a1a21;
}

body.light-theme .page-link.active {
    background-color: #1a1a21;
    color: #f76b15;
}

body.light-theme .page-link:hover {
    background-color: rgba(26, 26, 33, 0.2);
}


/* Пагинация внутри центрального блока */
.paging-wrapper-bottom
{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagesBlockuz2
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagesBlock2
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagesBlock1
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.swchItemA1
{
    width: 44px;
    height: 30px;
    background-color: #21202900;
    border: 2px solid #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f76b15;
    font-size: 20px;
    font-weight: 600; /* Semibold */
    text-decoration: none;
    transition: all 0.2s ease;
}
.swchItem1
{
    width: 44px;
    height: 30px;
    background-color: #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a21;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagesBlockuz1
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.swchItemA
{
    width: 44px;
    height: 30px;
    background-color: #21202900;
    border: 2px solid #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f76b15;
    font-size: 20px;
    font-weight: 600; /* Semibold */
    text-decoration: none;
    transition: all 0.2s ease;
}
.swchItem
{
    width: 44px;
    height: 30px;
    background-color: #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a21;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uf-btn {
    background-color: #17161d;
    color: #ffffff;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 5px 0;
    border: 0px;
}


.pagination-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    width: 44px;
    height: 30px;
    background-color: #f76b15;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a21;
    font-size: 20px;
    font-weight: 600; /* Semibold */
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background-color: #ff8533;
    transform: scale(1.05);
}

.pagination-item.active {
    background-color: #212029;
    color: #f76b15;
    border: 2px solid #f76b15;
}

/* Адаптация для светлой темы */
body.light-theme .pagination-item {
    background-color: #f76b15;
    color: #1a1a21;
}

body.light-theme .pagination-item.active {
    background-color: #e0e0e8;
    color: #f76b15;
    border-color: #f76b15;
}



/* Страница с материалом */
.movie-page {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Заголовок с постером и информацией */
.movie-header {
    display: flex;
    gap: 25px;
    border-radius: 8px;
    padding: 20px;
}

.movie-poster-large {
    width: 206px;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.movie-poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.movie-title-large {
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

/* Сетка информации */
.info-grid {
    display: flex;
    gap: 30px;
}

.info-labels {
    color: #f76b15;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-values {
    color: white;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-line {
    color: white;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Блок с лайками */
.rating-block-large {
    width: 178px;
    height: 56px;
    background-color: #17161d;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin: 5px 0;
    justify-content: center;
}

.rating-btn-large {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ed6818;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rating-btn-large:hover {
    background-color: #ff7a2a;
}

.rating-value-large {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    margin-left: -30%;
}

.trailer-btn {
    background-color: #f76b15;
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.trailer-btn:hover {
    background-color: #ff8533;
}

.download-btn {
    background-color: #278f5f;
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #2ea86b;
}

/* Блок со скриншотами */
.screenshots-block {
    width: 100%;
    height: 240px;
    background-color: #1a1a21;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.screenshots-container {
    display: flex;
    gap: 15px;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    align-items: center;
    justify-content: space-evenly;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 230px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Описание */
.description-block {
    border-radius: 8px;
    padding: 20px;
}

.description-title {
    color: #f76b15;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.description-full {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}



/* Секция скачивания */
.download-section {
    background-color: #1a1a21;
    border-radius: 8px;
    padding: 20px;
}

.tech-specs {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

/* Контейнер для одной характеристики */
.spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Заголовок характеристики */
.spec-label {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* Плашка со значением */
.spec-badge {
    background-color: #c1beef;
    color: #1a1a21;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Кнопка скачивания */
.download-file-btn {
    background-color: #278f5f;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    height: fit-content;
    margin-top: auto;
}

.download-file-btn:hover {
    background-color: #2ea86b;
}



/* Комментарии */
.comments-block {
    padding: 20px;
}

.comments-title {
    color: #f76b15;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.comment-input {
    flex: 1;
    height: 60px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    padding: 10px;
    font-family: inherit;
    resize: none;
}

.comment-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.comment-submit {
    background-color: #f76b15;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-submit:hover {
    background-color: #ff8533;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
}

.comment-author {
    color: #f76b15;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.comment-date {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-bottom: 8px;
}

.comment-text {
    color: white;
    font-size: 14px;
    line-height: 1.5;
}

/* Модальное окно для трейлера */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    background-color: #000;
    border-radius: 8px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: #f76b15;
}

/* Адаптация для светлой темы */
body.light-theme .movie-title-large,
body.light-theme .info-values,
body.light-theme .info-line,
body.light-theme .description-full,
body.light-theme .specs-labels span,
body.light-theme .comment-text {
    color: #212029;
}
body.light-theme .rating-value-large {color: #ffffff;}
body.light-theme .comment-input {
    background-color: rgba(0,0,0,0.05);
    color: #212029;
}

body.light-theme .comment-item {
    background-color: rgba(0,0,0,0.03);
}
.auth-links-label {color:#ffffff;}
body.light-theme .auth-links-label {color:#1a1a21;}
.uc-opacity {color:#ffffff;}
body.light-theme .uc-opacity {color:#1a1a21;}
.uc-message {color:#ffffff;}
body.light-theme .uc-message {color:#1a1a21;}
.com-order-title {color:#ffffff;}
body.light-theme .com-order-title {color:#1a1a21;}
.u-rate-wrapper {color: #f76b15;}

a {color:#f76b15;text-decoration: none;}
.screenshot-modal-content {
    background-color: transparent;
    text-align: center;
    padding: 0;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
}

.screenshot-full {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}









/* Мобильная адаптация (до 768px) */
@media screen and (max-width: 768px) {
    /* Общие контейнеры */
    .site-header,
    .top-categories-block,
    .posters-block,
    .main-content-block,
    .site-footer {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    /* Шапка */
    .site-header {
        height: auto;
        min-height: auto;
    }

    .header-content {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        height: auto;
    }

    .logo-area {
        width: 100%;
        justify-content: center;
    }

    .search-block {
        width: 100%;
        max-width: 100%;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-link {
        font-size: 16px;
        pointer-events: none; /* Отключаем клик по самой ссылке */
    }

    /* Стили для пунктов с выпадающим меню */
    .dropdown {
        position: relative;
        width: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Контейнер для ссылки и бургера */
    .dropdown-header {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .dropdown-header:hover {
        background-color: rgba(247, 107, 21, 0.2);
    }

    /* Бургер-иконка для выпадающих меню */
    .burger-icon {
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .burger-icon span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
    }

    /* Светлая тема для бургер-иконки */
    body.light-theme .burger-icon span {
        background-color: #212029;
    }

    /* Анимация бургера при открытом меню */
    .dropdown.active .burger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .dropdown.active .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .dropdown.active .burger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Выпадающее меню */
    .dropdown-content {
        width: 100%;
        min-width: 200px;
        margin-top: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        border-radius: 8px;
        text-align: center;
        display: none;
        background-color: #f76b15;
        z-index: 1000;
    }

    /* Показываем меню при активном классе */
    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Стили для ссылок в выпадающем меню */
    .dropdown-content a {
        padding: 12px 16px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* Для светлой темы */
    body.light-theme .dropdown-content {
        background-color: #f76b15;
    }

    body.light-theme .dropdown-content a {
        color: white;
    }

    body.light-theme .dropdown-content a:hover {
        background-color: #ffffff;
        color: #212029;
    }

    .user-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .auth-links {
        gap: 15px;
    }

    .auth-link {
        font-size: 16px;
    }

    /* Блок категорий */
    .categories-container {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .category-link {
        font-size: 14px;
        white-space: nowrap;
    }

    /* Блок постеров */
    .posters-block {
        height: auto;
        padding: 15px;
    }

    .posters-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
    }

    .poster-item {
        width: 120px;
        height: 180px;
        flex-shrink: 0;
    }

    /* Скрываем боковые колонки на мобильных */
    .sidebar.left-sidebar,
    .sidebar.right-sidebar {
        display: none;
    }

    /* Центральная колонка */
    .center-column {
        width: 100%;
        padding: 10px;
    }

    .content-item {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .poster-section {
        width: 100%;
        align-items: center;
    }

    .poster-container {
        width: 200px;
        height: 280px;
    }

    .rating-block {
        width: 200px;
    }

    .info-section {
        width: 100%;
        padding: 15px;
        min-height: auto;
    }

    .movie-main-title {
        font-size: 20px;
        text-align: center;
    }

    .movie-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .meta-label,
    .meta-value {
        font-size: 14px;
    }

    /* Страница фильма */
    .movie-header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .movie-poster-large {
        width: 200px;
        height: 280px;
    }

    .movie-info {
        width: 100%;
    }

    .movie-title-large {
        font-size: 22px;
        text-align: center;
    }

    .info-grid {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .info-labels,
    .info-values {
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
        margin-left: 0;
        gap: 10px;
    }

    .trailer-btn,
    .download-btn {
        font-size: 18px;
        padding: 10px;
        text-align: center;
        width: 100%;
    }

    /* Скриншоты */
    .screenshots-container {
        padding: 15px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .screenshot-item {
        width: 180px;
        height: 120px;
        flex-shrink: 0;
    }

    /* Секция скачивания */
    .tech-specs {
        flex-direction: column;
        gap: 15px;
    }

    .spec-item {
        width: 100%;
    }

    .spec-badge {
        font-size: 14px;
        padding: 6px 12px;
        width: 90%;
    }

    .download-file-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Комментарии */
    .comment-form {
        flex-direction: column;
    }

    .comment-input {
        width: 100%;
    }

    .comment-submit {
        width: 100%;
        padding: 12px;
    }

    /* Подвал */
    .site-footer {
        height: auto;
        border-radius: 0;
    }

    .footer-content {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
        height: auto;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .footer-center {
        order: -1;
    }

    .footer-text {
        font-size: 14px;
    }

    .footer-right {
        align-items: center;
    }

    .social-buttons {
        justify-content: center;
    }

    /* Пагинация */
    .pagination-section {
        padding: 10px;
    }

    .pagination-container {
        gap: 8px;
    }

    .pagination-item {
        width: 36px;
        height: 26px;
        font-size: 16px;
    }

    .pagination-wrapper {
        width: 100%;
        padding: 0 10px;
    }

    .pagination-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Модальные окна */
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .screenshot-modal-content {
        width: 100%;
    }

    .screenshot-full {
        max-width: 100%;
        height: auto;
    }

    iframe#trailerVideo {
        height: 250px;
    }
}

/* Дополнительная адаптация для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .main-title {
        font-size: 18px;
    }

    .sub-title {
        font-size: 9px;
    }

    .nav-link,
    .auth-link {
        font-size: 14px;
    }

    .search-text {
        font-size: 11px;
    }

    .category-link {
        font-size: 12px;
    }

    .poster-item {
        width: 180px;
        height: 250px;
    }

    .poster-container,
    .movie-poster-large {
        width: 300px;
        height: 450px;
    }

    .rating-block,
    .rating-block-large {
        width: 300px;
    }

    .movie-meta {
        grid-template-columns: 1fr;
    }

    .movie-title-large {
        font-size: 20px;
    }

    .info-labels,
    .info-values {
        font-size: 13px;
    }

    .screenshot-item {
        width: 150px;
        height: 100px;
    }

    .pagination-item {
        width: 30px;
        height: 24px;
        font-size: 14px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-link {
        font-size: 12px;
    }
}