/*времнные стили каталога*/

.catalog-container {
   padding: 123px 64px;
   padding-bottom: 0px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: -1px;
    text-align: left;
}

.sort-dropdown {
    padding: 5px;
    font-size: 16px;
}

/* Сортировка */
.catalog-sort {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
}

.catalog-sort:hover {
    background-color: rgba(255, 255, 255, 0.14); /* Полупрозрачный фон при наведении */
}

.catalog-sort-text {
    color: rgb(192, 192, 199);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    margin-right: 4px;
}

.catalog-sort-icon {
    margin-left: 4px;
    width: 13px;
}

/* Меню сортировки */
.catalog-sort-menu {
   position: absolute;
    top: 110%;
    right: 0;
    width: 507px;
    height: 74px;
    background-color: rgba(33, 33, 33);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    z-index: 100;
}

/* Стили для кнопок сортировки */
.catalog-sort-item {
    display: flex;
    flex-direction: column;
    padding: 12px 20px 14px 20px;
    width: 86px;
    height: 74px;
    margin: 0;
    align-items: center;
}

.catalog-sort-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Подсветка при наведении */
    border-radius: 12px;
    height: 48px;
}

.catalog-sort-label {
    color: rgb(192, 192, 199);
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

/* Иконки для кнопок */
.catalog-sort-item .catalog-sort-icon-item {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Текст для кнопок */
.catalog-sort-item .catalog-sort-label {
    color: rgb(192, 192, 199);
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

/* Основной контейнер с фильтрами и результатами */
.catalog-content {
    display: flex;
    gap: 20px;
}

/* Левая колонка фильтров */
.filters-container {
    width: 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    gap: 16px;
}

/* Кнопка фильтра */
.filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0px 16px 0px;
    font-size: 16px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    border: none;
    border-bottom: 1px solid rgb(33, 33, 33);
    background: #ffffff00;
    cursor: pointer;
}

/* Содержимое фильтра (скрыто по умолчанию, с анимацией) */
.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* При активном состоянии (развернутом) */
.filter-content.active {
    max-height: 100%; /* Увеличьте, если нужно больше пространства для контента */
}

/* Диапазон года (контейнер для кнопок и черточки) */
.year-range {
    display: flex;
    align-items: center;
}

/* Кнопка для выбора года */
.year-item {
    width: 72px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: none;
    cursor: pointer;
    text-align: center; /* Центрируем текст */
    appearance: textfield; /* Убираем стандартные стрелки у input[type="number"] */
    transition: border-color 0.3s, background-color 0.3s;
}

.year-item.active {
    border: 2px solid rgb(128, 128, 128);
}

/* При фокусе на поле */
.year-item:focus {
    outline: none; /* Убираем стандартный outline */
    border-color: rgb(128, 128, 128); /* Подсветка активного года */
    background: rgba(255, 255, 255, 0.05); /* Лёгкий фон */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; 
}

.year-divider {
    position: static;
    width: 12px;
    height: 2px;
    flex: none; /* Не растягиваем черточку */
    background: rgb(41, 41, 41); /* Цвет черточки */
    border-radius: 100px; /* Закруглённые края */
    margin: 0 4px; /* Отступы вокруг черточки */
}


/* Постеры в виде сетки по 7 штук в ряду */
.catalog-posters {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.catalog-results {
    flex: 1;
/* Постеры сверху, кнопка снизу */
}

/* Контейнер постеров */
.catalog-cont {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
    max-width: -webkit-fill-available;
    margin: 0 auto;
}


/* Кнопка "Смотреть больше" */
.load-more  {
    width: 100%; /* Растягиваем кнопку на всю ширину блока результатов */
    text-align: center;
    margin-top: 48px;
    margin-bottom: 80px;
}

.load-more button {
    width: 100%; /* Растягиваем на ширину родительского контейнера */
    height: 54px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: rgb(18, 18, 18);;
    background-color: rgb(255, 255, 255);;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

/* Скрываем стандартный чекбокс */
.custom-checkbox input[type="checkbox"] {
    display: none; /* Прячем стандартный чекбокс */
}

/* Контейнер для кастомного чекбокса */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    cursor: pointer;
    font-size: 16px;
    color: rgb(128, 128, 128); /* Базовый цвет текста */
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 12px; /* Отступ между чекбоксами */
    transition: color 0.3s ease; /* Плавное изменение цвета текста */
}

/* Иконка чекбокса */
.custom-checkbox .checkbox-icon {
    width: 24px; /* Размер иконки */
    height: 24px;
    background-image: url("/templates/kurosaw/img/checkbox-off.svg"); /* Неактивный чекбокс */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease; /* Плавная смена изображения */
}

/* Изменение иконки при наведении */
.custom-checkbox:hover .checkbox-icon {
    background-image: url("/templates/kurosaw/img/checkbox-def.svg"); /* Подсветка при наведении */
}

/* Изменение цвета текста при наведении */
.custom-checkbox:hover {
    color: rgb(255, 255, 255); /* Цвет текста при наведении */
}

/* Активный чекбокс (нажат) */
.custom-checkbox input[type="checkbox"]:checked + .checkbox-icon {
    background-image: url("/templates/kurosaw/img/checkbox-on.svg"); /* Иконка для активного чекбокса */
}

/* Дополнительно: изменение цвета текста, когда чекбокс активен */
.custom-checkbox input[type="checkbox"]:checked + .checkbox-icon + span {
    color: rgb(255, 255, 255); /* Цвет текста для активного чекбокса */
}

/* Скрываем стандартный чекбокс */
.genre-item input[type="checkbox"] {
    display: none; /* Прячем стандартный чекбокс */
}

/* Контейнер для кастомного чекбокса */
.genre-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    cursor: pointer;
    font-size: 16px;
    color: rgb(128, 128, 128); /* Базовый цвет текста */
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 12px; /* Отступ между чекбоксами */
    transition: color 0.3s ease; /* Плавное изменение цвета текста */
}

/* Иконка чекбокса */
.genre-item .checkbox-icon {
    width: 24px; /* Размер иконки */
    height: 24px;
    background-image: url("/templates/kurosaw/img/checkbox-off.svg"); /* Неактивный чекбокс */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease; /* Плавная смена изображения */
}

/* Изменение иконки при наведении */
.genre-item:hover .checkbox-icon {
    background-image: url("/templates/kurosaw/img/checkbox-def.svg"); /* Подсветка при наведении */
}

/* Изменение цвета текста при наведении */
.genre-item:hover {
    color: rgb(255, 255, 255); /* Цвет текста при наведении */
}

/* Активный чекбокс (нажат) */
.genre-item input[type="checkbox"]:checked + .checkbox-icon {
    background-image: url("/templates/kurosaw/img/checkbox-on.svg"); /* Иконка для активного чекбокса */
}

/* Дополнительно: изменение цвета текста, когда чекбокс активен */
.genre-item input[type="checkbox"]:checked + .checkbox-icon + span {
    color: rgb(255, 255, 255); /* Цвет текста для активного чекбокса */
}

.show-all-btn {
    color: rgb(65, 135, 45);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0px 4px;
    cursor: pointer;
}

.view-icon {
    position: relative;
    bottom: 1px;
    cursor: pointer;
}

/* Стили для скелетона */
.skeleton {
    background: linear-gradient(90deg, #212121 25%, #303030 50%, #212121 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Медиазапросы каталога 
@media (min-width: 1420px) and (max-width: 1612px) {
    .catalog-cont {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1207px) and (max-width: 1420px) {
    .catalog-cont {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1207px) {
    .catalog-cont {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 776px) and (max-width: 992px) {
    .catalog-cont {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 565px) and (max-width: 776px) {
    .catalog-cont {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 565px) {
    .catalog-cont {
        grid-template-columns: 1fr;
    }
}