  :root {
            --bg-page: #050607;
            --bg-app: #111315;
            --bg-card: #1a1d21;
            --accent-red: #e50914;
            --accent-blue: #007aff; 
            --accent-green: #00ff88;
            --border: rgba(255, 255, 255, 0.08);
            --text-main: #ffffff;
            --text-dim: #9ca3af;
        }

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

        body {
            background-color: var(--bg-page);
            background-image: linear-gradient(to right, rgba(0, 122, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 122, 255, 0.1) 100%);
            background-attachment: fixed;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            display: flex; justify-content: center; margin: 0; color: var(--text-main);
        }
/* Контейнер для кнопок справа в карточке */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Стили кнопки Избранное */
.fav-btn {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555; /* Цвет пустой звезды */
}

.fav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Когда фильм в избранном — кнопка становится золотой */
.fav-btn.active {
    color: #ffb800;
    background: rgba(255, 184, 0, 0.1);
    border-color: rgba(255, 184, 0, 0.3);
}

/* Стили для страницы Избранного (когда список пуст) */
.empty-favs {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
}
        /* Стили для страницы результатов поиска */
#dle-content h1 { font-size: 18px; margin-bottom: 15px; color: var(--text-main); }
        /* --- СТИЛИЗАЦИЯ РАСШИРЕННОГО ПОИСКА --- */
#dle-content fieldset {
    border: 1px solid var(--border) !important;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

#dle-content legend {
    padding: 0 10px !important;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

/* Стили полей ввода и выпадающих списков */
#dle-content select, 
#dle-content input[type="text"], 
#dle-content textarea {
    background: #0d0e10 !important; /* Еще темнее чем карточка */
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 10px 12px !important;
    width: 100% !important;
    margin-top: 5px;
    outline: none;
}

#dle-content select {
    cursor: pointer;
    appearance: none; /* Убираем стандартную стрелку в некоторых браузерах */
}

/* Чекбоксы и радио-кнопки */
#dle-content input[type="checkbox"], 
#dle-content input[type="radio"] {
    accent-color: var(--accent-blue);
    margin-right: 8px;
    vertical-align: middle;
}

/* Кнопки Найти / Сбросить */
.search-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#dle-content button[type="submit"], 
#dle-content input[type="button"] {
    background: var(--accent-blue) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 25px !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

#dle-content input[type="button"][value="Сбросить"],
#dle-content button.res-btn {
    background: rgba(255,255,255,0.1) !important;
}

#dle-content button:hover {
    filter: brightness(1.2);

    transform: translateY(-2px);
}

/* Убираем лишние надписи DLE */
.search-page-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

/* Прячем старую белую форму поиска, так как у нас есть своя в шапке */
#dle-content form[name="searchfill"] {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

/* Стилизуем стандартные инпуты DLE на странице поиска */
#dle-content input[type="text"] {
    background: #000;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    width: 100%;
    margin-bottom: 10px;
}

#dle-content input[type="button"], 
#dle-content button[type="submit"] {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Исправляем сетку результатов поиска */
.searchresult {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.section-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    padding-left: 12px !important;
    border-left: 3px solid #e50914 !important; /* Красная полоска сбоку */
    line-height: 1 !important;
    margin: 25px 0 15px 5px !important; /* Добавил небольшой отступ слева 5px */
    text-transform: uppercase !important; /* Сделал заглавными буквами для строгости */
    letter-spacing: 1px !important; /* Чуть раздвинул буквы для красоты */
    display: block !important; /* Чтобы полоска слева была ровной */
}    /* ТВОИ 65% ШИРИНЫ */
        .app-container {
            background-color: var(--bg-app);
            width: 65%;
            min-height: 100vh;
            padding: 25px 15px 120px 15px;
            position: relative;
            border-left: 1px solid rgba(0, 122, 255, 0.5);
            border-right: 1px solid rgba(0, 122, 255, 0.5);
            box-shadow: -15px 0 30px -15px rgba(0, 122, 255, 0.3), 15px 0 30px -15px rgba(0, 122, 255, 0.3);
        }

        /* ШАПКА И ЛОГО */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    [not-static=poisk]margin-bottom: 25px;[/not-static] 
}
        .logo-title a { color: #FFFFFF; text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: 0.5px; }
        .logo-sub {font-size: 16px;}
        .v3-badge { color: var(--accent-red); border: 1px solid var(--accent-red); font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: bold; margin-left: 4px; }
        .status-dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; display: inline-block; box-shadow: 0 0 10px var(--accent-green); margin-right: 8px; }

        /* ПОИСК */
        .search-bar { background: #262b31; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
        .search-bar input { background: transparent; border: none; outline: none; color: white; width: 100%; font-size: 15px; }

        /* ПРОКРУТКА ЖАНРОВ */
        .mood-container { position: relative; display: flex; align-items: center; margin-bottom: 25px; }
        .mood-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; width: 100%; }
        .mood-scroll::-webkit-scrollbar { display: none; }
        .mood-item { background: var(--bg-card); border: 1px solid var(--border); padding: 10px 20px; border-radius: 50px; white-space: nowrap; font-size: 14px; font-weight: 600; color: white; text-decoration: none; }
        .mood-item.active { background: var(--accent-red); border-color: var(--accent-red); }

        /* СИНИЕ КНОПКИ ПРОКРУТКИ */
        .scroll-btn { position: absolute; width: 36px; height: 36px; background: var(--accent-blue); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; box-shadow: 0 0 15px rgba(0, 122, 255, 0.6); z-index: 10; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
        .scroll-btn.visible { opacity: 1; pointer-events: auto; }
        .btn-left { left: -5px; }
        .btn-right { right: -5px; }

        /* --- КАРТОЧКИ --- */
     /* --- ВАШИ СТИЛИ (сохранены и дополнены) --- */
.movie-card { background: #65a1ff45; border: 1px solid var(--border); border-radius: 20px; padding: 10px; display: flex; gap: 15px; margin-bottom: 15px; align-items: center; overflow: hidden; position: relative; transition: background 0.3s; }
.movie-card:hover { background: #65a1ff60; }
.main-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.movie-poster img { width: 70px; height: 100px; object-fit: cover; border-radius: 12px; flex-shrink: 0; position: relative; z-index: 0; }
.movie-content { flex: 1; min-width: 0; z-index: 0; }
.movie-content h4 { color: #FFFFFF; margin: 0 0 5px 0; font-size: 16px; font-weight: 700; line-height: 1.2; transition: 0.2s; }
.download-action { background: var(--accent-red); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.download-action svg { width: 20px !important; height: 20px !important; max-width: 20px !important; fill: white !important; display: block; }
.card-actions { display: flex; gap: 10px; position: relative; z-index: 5; }
.fav-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.fav-btn svg { width: 20px; height: 20px; fill: #ffb800; transition: fill 0.3s ease, transform 0.3s ease; }
.fav-btn.active svg { fill: #ff4747; transform: scale(1.1); }
.fav-btn:hover { background: rgba(255,255,255,0.15); }
.tech-info { display: flex; gap: 8px; margin-top: 8px; }
.badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #2d343d; }
.badge.quality { background: var(--accent-blue); }
        /* НАВИГАЦИЯ 65% С ТВОИМИ ГРАНИЦАМИ */
.nav-bar { position: fixed; bottom: 0px; left: 50%; transform: translateX(-50%); width: 65%; background: #111315; border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-around; align-items: center; padding: 8px 5px; z-index: 9999; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.nav-item { display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; opacity: 1; transition: 0.3s; }
.nav-item.active { color: #ffb800; }
.nav-item span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-special { background: #ffb800; padding: 10px 15px; border-radius: 12px; transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 184, 0, 0.4); }
.nav-special span { color: #000 !important; font-size: 11px; }
/*speedbar*/
.speedbar-wrap { padding: 10px 0; margin-bottom: 10px; font-size: 13px; color: #888; border-bottom: 1px solid rgba(255,255,255,0.1); }
.speedbar-wrap a { color: #ffb800; text-decoration: none; }
        /* ПАГИНАЦИЯ */
.navigation {
    margin: 30px 0 40px 0; /* Увеличили отступы сверху и снизу */
    padding: 0 10px;
}
.navigation a, .navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #1a1d21; /* Цвет карточки */
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
/* Активная страница (красная) */
.navigation span {
    background: var(--accent-red) !important;
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* Кнопки Назад / Вперед и Многоточие */
.navigation a:hover {
    background: #252930;
    border-color: var(--accent-blue);
}
/* Кнопки "Дальше" и "Назад" */
.pnext a, .pprev a, 
.navigation a:first-child, 
.navigation a:last-child {
    width: auto;
    color: var(--accent-blue) !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.pprev, .pnext { 
    display: contents; /* Позволяет ссылкам внутри вести себя как части флекс-контейнера */
}

/* Отступ для футера, чтобы пагинация не прилипала к тексту */
.site-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* Мобильная адаптация: чуть уменьшаем кнопки на очень узких экранах */
@media (max-width: 480px) {
    .navigation {
        gap: 5px;
    }
    .navigation a, .navigation span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}
        @media (max-width: 1024px) {
            .app-container, .nav-bar { width: 100%; left: 0; transform: none; border-left: none; border-right: none; }
        }
        .movie-meta a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none; /* Ссылка перестанет быть кликабельной */
    cursor: default;
}
        /* Адаптация кнопки избранного в шапке */
@media (max-width: 480px) {
    .header-fav-label { 
        display: none !important; /* Прячем слово "Коллекция:" на телефонах */
    }
    .header-fav-container {
        padding: 4px 8px !important; /* Уменьшаем внутренние отступы */
        gap: 4px !important;
    }
    .header-fav-text {
        font-size: 10px !important; /* Чуть уменьшаем шрифт */
    }
    .logo-title a {
        font-size: 16px !important; /* Немного уменьшим лого, чтобы всё влезло в одну строку */
    }
}
    
        /* ОБЩИЙ КОНТЕЙНЕР ПОЛНОЙ НОВОСТИ */
.full-movie {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ЗАГОЛОВОК И МЕТА */
.movie-header-block {
    background: transparent;
}

.movie-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.movie-icon-title {
    display: flex;
    gap: 15px;
    align-items: center;
}

.movie-mini-poster img {
    width: 130px;
    height: 180px;
    background: linear-gradient(135deg, #2a2e35, #1a1d21);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 1px solid var(--border);
}
/* Общий контейнер заголовка */
.movie-header-clean {
    margin-bottom: 20px;
}

.movie-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff !important;
    margin-bottom: 12px;
}

/* Список характеристик */
.movie-spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка с иконкой и текстом */
.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af; /* Цвет текста по умолчанию */
}

/* Убираем синие ссылки внутри */
.spec-item a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Иконки */
.spec-icon {
    width: 16px;
    height: 16px;
    fill: #4b5563; /* Цвет иконок */
    flex-shrink: 0;
}

/* Жанр: Акцентный стиль */
.genre-highlight .spec-value {
    color: #d3d992 !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Группа (Год, Страна, Время) */
.spec-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-group .spec-value {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb; /* Почти белый цвет для данных */
}

/* 1. Заголовок — делаем его массивным и белым */
.movie-title {
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF !important;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* 2. Контейнер мета-данных */
.modern-meta {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Расстояние между строками */
}

/* 3. Общие настройки для строк */
.meta-row {
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

/* 4. Убираем синий цвет ссылок ВНУТРИ блока */
.meta-row a {
    color: inherit !important;
    text-decoration: none !important;
}

/* 5. Точки-разделители */
.meta-dot {
    width: 5px;
    height: 5px;
    background: #374151; /* Темно-серая точка */
    border-radius: 50%;
    flex-shrink: 0;
}

/* Красная точка для жанра */
.meta-dot.active {
    background: #e50914; /* Фирменный красный */
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
}

/* 6. Текст (Метки) */
.meta-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af; /* Мягкий серый для второстепенных данных */
    line-height: 1;
}

/* 7. ОСОБЫЙ СТИЛЬ ДЛЯ ЖАНРА (Яркий и жирный) */
.red-link .meta-label, 
.red-link .meta-label a {
    color: #ff2e2e !important; /* Ярко-красный */
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* Белый цвет для года и страны при наведении или просто для четкости */
.meta-row:not(.red-link) .meta-label {
    color: #e5e7eb; /* Почти белый */
}
.movie-meta-top {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 5px;
}

.meta-genre { color: var(--accent-red); font-weight: 700; text-transform: uppercase; }

/* РЕЙТИНГ IMDB */
.imdb-rating {
    background: #6a7484;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
}

.imdb-label {
    display: block;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.rating-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 800;
}

/* ОПИСАНИЕ */
.movie-description {
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 20px;
}

/* КАРТОЧКИ АКТЕРОВ И РЕЖИССЕРА */
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.credit-card { background: #65a1ff45; border: 1px solid var(--border); padding: 12px 15px; border-radius: 15px; }
.credit-label { display: block; font-size: 9px; font-weight: 800; color: #a7c2f0; margin-bottom: 6px; letter-spacing: 0.5px; }
.credit-name { font-size: 13px; font-weight: 600; }

/* ПЛЕЕР */
#player_vi iframe {width: 100%;height: 360px;}
@media screen and (max-width: 768px) {#player_vi iframe {height: 240px; }}


/* СЕКЦИЯ СКАЧИВАНИЯ */
.download-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;}
.download-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dl-title-top { color: var(--accent-red); font-weight: 900; font-size: 14px; letter-spacing: 0.5px; }
.dl-subtitle { font-size: 10px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; font-weight: 700; }
.quality-tabs { display: flex; background: #0d0e10; padding: 4px; border-radius: 10px; gap: 4px; }
.q-btn { background: transparent; border: none; color: var(--text-dim); padding: 6px 12px; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.q-btn.active { background: rgba(229, 9, 20, 0.15); color: var(--accent-red); }
.download-card { background: #0d0e10; border: 1px solid var(--border); border-radius: 15px; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.badge.hdrip { background: #008844; color: white; font-size: 9px; padding: 2px 6px; border-radius: 4px; margin-right: 8px; }
.res-line { margin-bottom: 10px; }
.dl-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.dl-desc strong { color: #fff; }
.big-dl-btn { background: rgba(0, 122, 255, 0.1); border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 15px 25px; border-radius: 12px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; transition: 0.3s; }
.big-dl-btn:hover { background: var(--accent-blue); color: #fff; }
.dl-disclaimer { font-size: 11px; color: #4b5563; margin-top: 15px; line-height: 1.4; }

/* АДАПТИВНОСТЬ ПОД МОБИЛКИ */
@media (max-width: 600px) {
    .movie-main-info { flex-direction: column; gap: 15px; }
    .imdb-rating { align-self: flex-start; }
    .credits-grid { grid-template-columns: 1fr; }
    .download-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .download-card { flex-direction: column; align-items: flex-start; }
    .big-dl-btn { width: 100%; justify-content: center; }
    .quality-tabs { width: 100%; justify-content: space-around; }
}
        /* Стиль для заголовка (название жанра) */
.category-title-custom {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--accent-red); /* Красная полоска как в других блоках */
    text-transform: uppercase;
    letter-spacing: 1px;
}

        /* Кнопки прокрутки видны ТОЛЬКО на мобильных устройствах */
@media (max-width: 1024px) {
    .scroll-btn {
        display: flex; /* Показываем на мобилках */
    }
}
/*футер*/
        .site-footer {color: #c7c3a6; font-size: 14px; padding-top: 10px;}  
/*Жанры статика*/
.main-section-title { color: var(--accent-red); font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.section-desc { color: var(--text-gray); font-size: 12px; margin-bottom: 25px; }
.category-box { background: rgba(20, 26, 36, 0.3); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.category-label { color: var(--accent-red); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.genre-btn { background: #af876045; padding: 15px; border-radius: 8px; font-size: 13px; color: #bdc3c7; cursor: pointer; transition: 0.3s; border: 1px solid transparent; text-decoration: none; text-align: center; }
.genre-btn:hover { background: #232d3d; border-color: #30363d; color: #fff; }
        
        
.movie-content h4 a { color: #ffffff !important; text-decoration: none; }
.movie-content h4 a:hover { color: #cccccc !important; }