* 

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #16171b;
    color: white;
}

/* Первый блок (фоновый блок для лого и формы поиска) */
.header-top {
    background-color: #16171b;
    color: white;
    height: 70px; /* Уменьшена высота */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px 20px; /* Уменьшен padding */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px;
    gap: 10px; /* Уменьшен промежуток между элементами */
}

.logo-container {
    flex: 0 0 auto;
    margin-right: -10px; /* Уменьшен правый отступ */
    margin-top: 3px; /* Уменьшен правый отступ */
}

.logo {
    width: 154px;
    height: auto;
    border-radius: 5px 0 0 5px;
}

.search-container {
    display: flex;
    align-items: center;
    width: 98%;
    gap: 1px; /* Уменьшен gap между логотипом и поисковой строкой */
}

.search-bar {
    background-color: #444;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    
    outline: none;
}

.search-button {
    background-color: #91093f;
    border: none;
    padding: 11px 15px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #7a072f; /* Темнее при наведении */
}

/* Второй блок с фоном #333 для выпадающих меню */
.menu-bar {
    background-color: #333;
    color: white;
    padding: 0px 0;
}

.menu-container {
    display: flex;
    justify-content: flex-start; /* Выравнивание влево */
    gap: 10px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

main {
    max-width: 1800px;
    margin: 0 auto; /* Центрирует main */
    padding: 5px;
}

main a {
      width: 100%;
      text-decoration: none;
      color: inherit;
}

/* Выпадающее меню */
.dropdown-container {
    display: flex;
    gap: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}

/* Скрыть список по умолчанию */
.dropdown-list {
    display: none;
    position: absolute;
    background-color: #444;
    color: white;
    padding: 10px;
    border-radius: 5px;
    list-style: none;
    margin: 0;
    min-width: 170px;
    z-index: 1;
}

/* Показываем меню при наведении */
.dropdown:hover .dropdown-list {
    display: block;
}

.dropdown-list li {
    padding: 8px 10px;
}

.dropdown-list li a {
    color: white;
    text-decoration: none;
}

.dropdown-list li a:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

main {
    padding: 5px;
}

/* Начало блока категории */
.category-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 8px 1fr 8px 1fr 8px 1fr 8px 1fr 8px 1fr;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

        .category-container {
            width: 100%;
            max-width: 100%;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            overflow: hidden;
            -webkit-transition: background-color 0.3s ease;
            -o-transition: background-color 0.3s ease;
            transition: background-color 0.3s ease;
            border-radius: 10px;
            position: relative;
        }

           .category-container {
      width: 100%;
      max-width: 100%;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      overflow: hidden;
      -webkit-transition: background-color 0.3s ease;
      -o-transition: background-color 0.3s ease;
      transition: background-color 0.3s ease;
      border-radius: 10px;
    }

    .category-container:hover {
      background-color: #4f5260;
    }

    .category-link {
      width: 100%;
      text-decoration: none;
      color: inherit;
    }

    .category-item {
      width: 100%;
      aspect-ratio: 16 / 9;
      background-color: #eee;
      border-radius: 10px;
      overflow: hidden;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      position: relative;
    }

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

    .category-title {
      margin-top: 1px;
      font-size: 14px;
      color: white;
      text-align: left;
      width: calc(100% - 20px);
      max-height: 38px;
      overflow: hidden;
      display: block;
      line-height: 19px;
      word-break: break-word;
      padding-left: 1px;
      padding-right: 10px;
      font-weight: 400;
    }

    .category-overlay {
      position: absolute;
      bottom: 5px;
      left: 5px;
      right: 5px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: justify;
          -ms-flex-pack: justify;
              justify-content: space-between;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      font-size: 12px;
      color: white;
      pointer-events: none; /* не перехватывает клики */
    }

    .category-quality,
    .category-likes {
      background-color: rgba(0, 0, 0, 0.7);
      padding: 3px 6px;
      border-radius: 5px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      gap: 3px;
      pointer-events: auto; /* можно кликать при необходимости */
    }

.category-count
{
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
}


.category-count {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.category-count-text {
    font-weight: bold;
    font-style: italic;
}


/* Конец блока категории */

main h1 {
    text-align: left;
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
}
main p {margin-left: 10px; font-weight: 300;font-size: 14px;}
.auth-links {
    margin-left: auto; /* Прижимает блок к правому краю */
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между ссылками */
}

.auth-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.auth-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.menu-container, 
.menu-container .dropdown-btn, 
.menu-container .dropdown-list li a {
    font-size: 11px;
}
.auth-links a {font-size: 11px;}

.dropdown-list li {
    padding: 8px 10px;
    transition: background-color 0.3s ease;
}

.dropdown-list li:hover {
    background-color: #666;
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999; /* Сделает кнопку поверх других элементов */
}

.scroll-icon {
    width: 40px; /* Установите нужный размер */
    height: auto;
    transition: transform 0.3s ease;
}

#scroll-to-top:hover .scroll-icon {
    transform: translateY(-5px); /* Добавьте эффект при наведении */
}

        .alphabet-nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 20px;
        }

        .alphabet-nav a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 5px;
            background-color: #333;
            font-weight: bold;
        }

        .alphabet-nav a:hover {
            background-color: #555;
        }

        .actors-container {
            max-width: 1900px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .actor-column {
            flex: 1 1 calc(33.333% - 20px);
            min-width: 350px;
        }

        .actor-header {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #91093f;
        }

        .actor-list {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .actor-card {
            background-color: #222;
            border-radius: 10px;
            overflow: hidden;
            text-align: center;
            width: 190px;
            padding: 10px;
        }

        .actor-card img {
            width: 100%;
            height: 190px;
            object-fit: cover;
            border-radius: 5px;
        }


        .actor-card a {
            text-decoration: none;
            color: white;
            font-size: 14px;
            display: block;
            margin-top: 5px;
        }

        .actor-card a:hover {
            text-decoration: underline;
        }

.profile-container {
    display: flex;
    align-items: center;
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    max-width: 1900px;
    margin: 20px 0; /* Прижимаем к левому краю */
    gap: 15px;
}

.profile-image {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.profile-stats {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #aaa;
}

.subscribe-button {
    background-color: #91093f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-button:hover {
    background-color: #7a072f;
}
.related-models-container {
    margin-top: 20px;
    text-align: left; /* Заголовок и элементы выравниваются по левому краю */
}

.related-models-container {
    margin-top: 20px;
    text-align: left;
}

.related-models-container h2 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
}

.related-models-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 элементов в ряду для больших экранов */
    gap: 20px; /* Отступы между элементами */
    margin-top: 10px;
}

.related-model {
    text-align: center;
    flex: 1 1 calc(33.333% - 20px);  /* 3 элемента в ряду, с учетом gap */
}

.related-model img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.model-name {
    margin-top: 8px;
    color: #fff;
    font-size: 0.9em;
}
.model-name {
    margin-top: 8px;
    color: #fff;
    font-size: 0.9em;
}
.pagination {
    display: flex;
    justify-content: center; /* Центрирование блока пагинации */
    margin-top: 20px;
}

.related-model a {
    text-decoration: none; /* Убираем подчеркивание ссылки */
    color: inherit; /* Ссылка наследует цвет */
}

.related-model .model-name {
    font-size: 0.9em;
    color: #fff;
    margin: 0; /* Убираем отступы сверху и снизу */
}

.related-model .category-count {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    margin-top: 2px; /* Минимальный отступ сверху */
}


.pagination a {
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    background-color: #333; /* Фон кнопки */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #555; /* Фон при наведении */
}

.pagination a.active {
    background-color: #91093f; /* Фон активной страницы */
    color: white;
}

.pagination a:first-child,
.pagination a:last-child {
    font-weight: bold; /* Стиль для стрелок */
}



.narrow-search {
    margin-top: 20px;
    text-align: left;
}

.narrow-search h3 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 10px;
}

.narrow-search-list {
    list-style-type: none;  /* Убираем стандартные маркеры списка */
    padding: 0;
    display: grid;  /* Используем grid вместо flex */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));  /* Элементы будут автоматически распределяться по колонкам */
    gap: 10px;  /* Отступы между ссылками */
}

.narrow-search-list li {
    margin: 0;
}

.narrow-search-list a {
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
    display: block;  /* Убираем inline-block, делаем элементы блочными */
    white-space: nowrap;  /* Запрещаем перенос текста внутри ссылки */
}

.narrow-search-list a:hover {
    background-color: #555;  /* Цвет фона при наведении */
}


@media (max-width: 3840px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
.related-models-grid {
        grid-template-columns: repeat(10, 1fr); /* Например, 6 элементов в ряду */
    }
}

@media (max-width: 1920px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
.related-models-grid {
        grid-template-columns: repeat(10, 1fr); /* Например, 6 элементов в ряду */
    }
}

@media (max-width: 1600px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
.related-models-grid {
        grid-template-columns: repeat(10, 1fr); /* Например, 6 элементов в ряду */
    }
.related-models-grid {
        grid-template-columns: repeat(4, 1fr); /* Например, 6 элементов в ряду */
    }
}

@media (max-width: 800px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
	}
    main p { margin-left: 10px; font-weight: 80;font-size: 12px; }
    .actors-container {display: none;}
    .popular-list-container {display: none;}
}

.related-models-grid {
        grid-template-columns: repeat(3, 1fr); /* Например, 6 элементов в ряду */
    }


@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
	}
    main p {margin-left: 10px; font-weight: 100;font-size: 7px;}
    .actors-container {display: none;}
    .popular-list-container {display: none;}
}
.related-models-grid {
        grid-template-columns: repeat(2, 1fr); /* Например, 6 элементов в ряду */
    }
.narrow-search-list {
        grid-template-columns: 1fr;  /* На узких экранах элементы будут располагаться в 1 колонку */
    }



