/* Общие стили */
@font-face {
    font-family: "Unbounded";
    src: url("../font/Unbounded-Variable.ttf");
}

@font-face {
    font-family: "Montserrat";
    src: url("../font/Montserrat-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Tactic Sans";
    src: url("../font/TacticSans-Med.ttf");
}

:root {
    --main-bg-color: #252525;
    --text-grey-color: #858585;
    --border--color: #303030;
    --primary_04: #454545;
    --title-white-color: #EEEEEE;
    --secondary-text-color: #656565;
    --accent-color: #A8F227;
    --accent-color-hover: #B7FF36;
    --accent-color-active: #80C40E;
    --text-black-color: #1E1E1E;
    --blue-a: #04B9FE;
    --bg-second: #454545;
    --bg-blue: #297CEA;
    --blue-light: #04B9FE;
    --primary_05: #535353;
    --red_neutral: #332024;
    --red: #F2345B;
    --orange: #EF5B25;
    --green: #03D042;
    --txt-white: #858585;
}

.text-white{
    color: var(--txt-white) !important;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #1E1E1E;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: white;
}

button {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/*button:active, button:hover, button:focus, button:focus-visible {*/
/*    border: none !important;*/
/*    outline: none !important;*/
/*    box-shadow: none !important;*/
/*}*/

textarea {
    background-color: var(--main-bg-color);
    color: white;
    border: 1px solid var(--border--color);
    border-radius: 6px;
}

textarea:active, textarea:focus, textarea:focus-visible {
    border: none;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Unbounded", sans-serif;
}

h1 {
    font-weight: 400;
    font-size: 36px;
    line-height: 70.2px;
    letter-spacing: 0.02em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

h1 > span {
    color: var(--accent-color);
    font-size: 36px;
}

h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 41.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom: 0;
}


h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom: 0;
}

h4 {
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

h4 > span {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: inherit;
}

a {
    font-weight: 500;
}

h2 > span {
    color: var(--accent-color);
    font-size: 24px;
}

.vl {
    border-left: 1px solid var(--border--color);
    height: 100%;
}

span {
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

.header {
    display: flex;
    justify-content: space-between;
    margin: 30px 45px;
    align-content: center;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 880px;
    color: var(--text-grey-color);
    background-color: var(--main-bg-color);
    border-radius: 10px; /* Скругленные углы слева */
    border: 1px solid var(--border--color);
    margin-right: 10px;
}

.search-form:focus-within {
    border: 1px solid var(--accent-color);
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 20px;
    font-size: 16px;
    outline: none !important;
    transition: all 0.3s ease;
    background-color: var(--main-bg-color);
    border: none !important;
    border-radius: 10px !important;
    color: var(--text-grey-color);
}

a {
    color: var(--text-grey-color);
    text-decoration: none;
}

a:hover {
    color: white;
    text-decoration: none;
}

.parent-input {
    background-color: var(--main-bg-color);
    border: 1px solid var(--border--color);
    border-radius: 8px;
    outline: none;
    color: white;
    /*padding: 11px 10px;*/
}

.parent-input-second {
    padding: 10px 0 10px 10px;
    border-right: 1px solid var(--border--color);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
    min-width: 0;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.parent-input img {
    padding: 0 10px;
}

.login img:hover {
    filter: brightness(2);
    cursor: pointer;
}

.parent-input input {
    flex-grow: 1;
}

.parent-input:hover, .parent-input:hover input:-webkit-autofill, .parent-input:hover input, .parent-input:hover textarea {
    background-color: var(--border--color);
    /*transition: background-color 5000s ease-in-out 0s;*/
    box-shadow: inset 0 0 20px 20px var(--border--color);
}

.parent-input:focus-within {
    border: 1px solid var(--accent-color);
}

.parent-input:focus-within .login_icon_input {
    filter: brightness(2); /* пример: немного затемняет изображение */
}

input {
    background-color: var(--main-bg-color);
    border: none;
    outline: none;
    color: white;
}

/* Перекрасить автозаполненный input */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px var(--main-bg-color);

    font-weight: 500;
    font-size: 16px;
    line-height: 125%;

}

input:focus, input:focus-visible {
    border: none;
}

.forgot-password {
    color: var(--blue-a);
}

.agree_user_text {
    color: var(--text-grey-color);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 135%;
}

.agree_user_text > a {
    text-decoration: underline;
}

.body-content {
    display: flex;
}

.sidebar {
    width: 20%;
    max-width: 225px;
    height: 100vh;
    border-right: 1px solid var(--border--color);
    position: sticky;
    top: 0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.side-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border--color);
}

/* Ширина скроллбара */
.side-content::-webkit-scrollbar, textarea::-webkit-scrollbar {
    width: 6px;
}

/* Фон дорожки */
.side-content::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track {
    background: transparent;
}

/* Ползунок */
.side-content::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
    background-color: var(--primary_04); /* цвет ползунка */
    border-radius: 100px; /* скругление */
    cursor: auto;
    /*border: 2px solid #f0f0f0; !* «отступ» внутри трека (опционально) *!*/
}

/* Ползунок при наведении курсора */
.side-content::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover {
    /*background-color: #555;*/
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 30px;
}

.main-container {
    width: 85%;
}

.btn-sidebar {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    margin: 6px 0;
    cursor: pointer;
}

.btn-sidebar:hover {
    background-color: var(--main-bg-color);
    border-radius: 10px;
}

.btn-sidebar-active {
    background-color: var(--accent-color);
    border-radius: 10px;
    color: var(--text-black-color);
}

.btn-sidebar-active:hover {
    background-color: var(--accent-color);
    border-radius: 10px;
    color: var(--text-black-color);
}


.btn-sidebar a {
    display: flex;
    align-items: center;
}

.btn-sidebar-active a {
    color: var(--text-black-color);
}

.icon-cat {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    filter: brightness(0.7);
}

.btn-sidebar:hover .icon-cat {
    filter: brightness(1);
}

.btn-sidebar:hover span {
    color: white;
}

.btn-sidebar-active:hover span {
    color: var(--text-black-color);
}

.new-icon {
    filter: brightness(1);
    margin-left: 10px;
}

.btn-my-game-sidebar {
    margin: 18px 0;
}


.container {
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
}


.center {
    margin: 0 auto;
}

select {
    background-color: var(--main-bg-color);
    color: var(--text-grey-color);
    cursor: pointer;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.sort-select {
    height: 44px;
    width: 100%;
    padding: 10px 10px 10px 20px;
    border-radius: 10px;
    border-color: var(--border--color);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sort-select:focus-visible, .sort-select:focus {
    outline: none;
    border: 1px solid var(--accent-color);
}

/* Стили для иконок, размещённых внутри обёртки */
.select-arrow,
.select-reset {
    position: absolute;
    top: 53%;
    right: 30px;
    transform: translateY(-50%);
    pointer-events: none; /* по умолчанию отключаем события, чтобы не мешали клику по select */
}

.select-arrow-calendar, .select-reset-calendar {
    transform: translateY(-65%);
}

.select-arrow-main {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Крестик будем показывать только при выбранном значении */
.select-reset {
    display: none;
    pointer-events: auto; /* включаем кликабельность крестика */
    cursor: pointer;
}

.link-category {
    margin: 20px 0;
}

.link-category > a {
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 6px;
    padding: 2px 16px;
    color: var(--text-grey-color);
    background-color: var(--main-bg-color);
    border-radius: 100px;
    border: 1px solid var(--border--color);
}

.link-category > a:hover {
    color: white;
}

.image-gallery {
    background-color: var(--main-bg-color);
    /*max-width: 1040px;*/
}

.row-filter {
    width: 100%;
    gap: 10px 0;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.flex-grow-1 {
    flex-grow: 1;
}

.logo-header {
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* Выровнять контейнер по центру экрана */
.search-container {
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center; /* Центровка по горизонтали */
    align-items: center; /* Центровка по вертикали */
    height: 90vh; /* Высота на весь экран */
    background-color: transparent; /* Легкий фон для разделения */
}


/* Стили для кнопки */
.search-button {
    margin-right: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
}

.clear-btn {
    visibility: hidden;
    margin-right: 30px;
    border: none;
    background-color: transparent;
}

.clear-input {
    visibility: hidden;
}

.clear-btn-visible {
    visibility: visible;
}

.search-button:focus, .clear-btn:focus {
    outline: none;
}

.speedbar-container {
    height: 40px;
    padding-top: 9px;
}

.home-button {
    margin: 20px;
    width: 160px;
    height: 44px;
    display: flex;
    border-radius: 6px; /* Скругленные углы справа */
    font-size: 17px;
    justify-content: center;
    align-items: center;
}

.margin-pading-top-0 {
    margin-top: 0;
    padding-top: 0;
}

.blue {
    color: #04B9FE;
}

.lime {
    color: var(--accent-color);
}

.blue_button {
    background-color: #315CE7; /* Синий цвет кнопки */
    color: white;
    cursor: pointer;
}

.blue_button:hover {
    background-color: #466CE9; /* Цвет кнопки при наведении */
}

.blue_button:active {
    background-color: #2E53C9; /* Цвет кнопки при нажатии */
}

/* Навигация */
/* Основные стили для навигации */
.main-nav {
    padding: 10px 0; /* Отступы сверху и снизу */
}

.genres-container {
    padding: 20px 20%;
    width: 100%;
    text-align: center;
}

.genres-container h1 {
    font-size: 45px;
    font-width: 600;
    margin-bottom: 20px;
}

.genres-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три колонки, можно изменить на 4 или 2 в зависимости от нужного вида */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-items: start;
}

.genres-list li {
    text-align: left; /* Выровнять текст по левому краю */
}

.genres-list a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #34495e;
    font-size: 16px;
    position: relative;
}

.genres-list a:hover {
    background-color: #d2efff;
}


/* Основное содержимое */
.main-content {
    margin: 45px 45px;
}

.main-content .page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.main-content .content {
    line-height: 1.6;
}

/* Подвал сайта */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.footer .footer-links {
    text-align: center;
    margin-bottom: 10px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    display: inline;
    margin: 0 10px;
}

.footer .footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer .footer-links ul li a:hover {
    text-decoration: underline;
}

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

@media (max-width: 992px) {
    .search-button img {
        padding: 0;
    }

    .search-button span {
        display: none;
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        margin: 0;
    }
}

/* Стили для кратких историй (shortstory.tpl) */
.game-item {
    overflow: hidden;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.game-card {
    padding: 12px;
    transition: background-color 0.3s ease;
}

.game-card:hover {
    border-radius: 10px;
    background-color: var(--main-bg-color);
}

.game-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px
}

.card-img-top {
    object-fit: cover;
    aspect-ratio: 46 / 65;
    transition: all .6s ease 0s;
}

.card-img-top-calendar {
    aspect-ratio: auto;
}

.card-img-top:hover, .card-img-top-calendar:hover {
    transform: scale(1.05);
}

.game-title {
    margin-top: 12px;
    margin-bottom: 16px;
    max-height: 38px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.align-center-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.max-width-240 {
    max-width: 240px;
}

.max-width-780 {
    max-width: 780px;
}

.sort-direction {
    border-radius: 6px;
    background-color: var(--border--color);
    margin-left: 12px;
    cursor: pointer;
}

.sort-direction img {
    height: 100%;
    width: 100%;
}

.sort-direction:hover {
    background-color: var(--bg-second);
}

.sort-direction:hover > img {
    filter: brightness(2);
}

.sort-direction:active {
    background-color: var(--main-bg-color);
}

.sort-direction:active > img {
    filter: brightness(0.5);
}


#sort-post {
    width: 280px;
}

.direction-asc {
    transform: scaleX(-1);
}

.direction-desc {
    transform: scaleX(1);
}

#news_set_sort {

    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    padding: 0;
}

.align-center-right span {
    margin-right: 12px;
    color: white;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.sort-select-wrapper {
    display: flex;
}

.align-center-right .sort-select {
    color: white;
    background-color: var(--main-bg-color);
}

.game-title a {
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    text-decoration: none;
    color: var(--title-white-color);

    display: -webkit-box; /* создаём флекс-контейнер для текста */
    -webkit-line-clamp: 2; /* ограничиваем количество строк */
    -webkit-box-orient: vertical; /* вертикальная ориентация боксов */
    overflow: hidden; /* обрезаем всё, что не влезает */
    text-overflow: ellipsis; /* добавляем многоточие */
}

h5 {
    margin-bottom: 0;
}

.game-info {
    font-size: 12px;
    font-weight: 600;
    line-height: 15.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: var(--secondary-text-color);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lime-button {
    background-color: var(--accent-color);
    color: var(--text-black-color);
}

.blue-button:hover {
    background-color: #378AF8;
}

.blue-button:active {
    background-color: #1568D6;
}


.top-right-button {
    width: 260px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
}

.user-login {
    justify-content: end;
}

.user-name {
    font-family: "Unbounded", sans-serif;;
    padding: 6px 10px;
    font-weight: 500;
    font-size: 16px;
    line-height: 135%;
    text-align: right;
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
}

.user-name:hover {
    background-color: var(--main-bg-color);
}


.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-left: 10px;
}

#searchsuggestions {
    z-index: 2200;
    width: 54%;
    border-radius: 10px;
    background-color: var(--main-bg-color);
    margin-top: 12px;
    padding: 10px 0;
    /*box-shadow: 0 8px 40px -10px rgba(0, 0, 0, 0.3);*/
    border: 1px solid var(--border--color);
    background-clip: padding-box;
    font-size: .9em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#searchsuggestions a, #searchsuggestions span.notfound {
    display: block;
}

#searchsuggestions a {
    color: inherit;
}

#searchsuggestions a:hover {
    background-color: var(--border--color);
    text-decoration: none;
}

#searchsuggestions a span {
    display: block;
    cursor: pointer;
}

#searchsuggestions span.seperator a {
    padding: 10px 0;
    text-align: center;
    border: 0 none;
    background-color: transparent;
    color: #919191;
}

#searchsuggestions span.notfound {
    padding: 15px 25px;
    display: block;
}

#searchsuggestions .break {
    display: none;
}

.search-result-content, .fast-search-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.fast-result-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.fast-result-img {
    width: 42px;
    height: 60px;
    border-radius: 4px;
    margin-right: 20px;
}

.search-result-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
    margin-bottom: 6px;
}

.search-result-text {
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-grey-color);
}

.fast-search-year {
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
}

#fullsearch {
    flex: 0 0 100%;
    max-width: 100%;
}

.search-result-item {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 15px;
    display: block;
}

.header-search {
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Выровнять поиск справа */
    align-items: center;
    height: auto;
}

.btn-home:hover {
    background-color: #0056b3; /* Цвет фона при наведении */
    color: #fff; /* Цвет текста при наведении */
}

.genres-container > h1 {
    text-align: left;
}

.seo-description {
    background-color: #F0F0F0; /* Укажите путь к вашему фоновому изображению */
    background-size: cover;
    padding: 50px 0;
    text-align: center;
}

.seo-title {
    margin-bottom: 30px;
}

.seo-text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.logo {
    margin: 12px 14px;
}

.logo > img {
    width: 180px;
    height: 30px;
}

.main-enter {
    position: absolute;
    top: 30px;
    right: 45px;
}

.br-10 {
    border-radius: 10px;
}

.br-8 {
    border-radius: 8px;
}

.info-game {
    background-color: var(--main-bg-color);
    padding: 20px;
}

.right-fullstory-block h3 {
    margin-bottom: 30px;
}


.comments-num {
    color: var(--text-grey-color);
}


.info-game-panel {
    display: flex;
    flex-direction: row;
    border-bottom: 2px solid var(--border--color);
    margin-bottom: 30px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-40 {
    margin-top: 40px;
}

#review-btn, #description-btn {
    padding: 8px 24px 10px;
    cursor: pointer;
    color: var(--text-grey-color);
}

#review-btn.active, #description-btn.active {
    border-bottom: 2px solid var(--accent-color);
    color: var(--title-white-color);
}

.blue-head {
    background-color: #315CE7;
}

.head-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

/* Блок с информацией */
.right-fullstory-block {
    background-color: var(--main-bg-color);
    width: 100%;
    padding: 20px;
}

.like-block img {
    margin-right: 15px;
}

.right-fullstory-block h2 {
    margin-bottom: 43px;
}


hr.solid {
    border-top: 1px solid var(--border--color);
}

hr.solid-2 {
    border-top: 2px solid var(--border--color);
}

.right-fullstory-subblock {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-bottom: 30px;
}

.text-gray {
    font-weight: 500;
    color: var(--secondary-text-color);
}

.text-gray-light {
    color: var(--text-grey-color);
}

.text-white {
    color: var(--title-white-color);
}

.action-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    color: var(--text-black-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.02em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.accent-color {
    background-color: var(--accent-color);
}

.add-favorite-btn {
    color: white;
}

.action-button:hover {
    color: var(--text-black-color);
}

.add-favorite-btn:hover {
    background-color: var(--border--color);
    color: white;
}

.background-transparent {
    background-color: transparent;
}


.action-button img {
    margin-right: 10px;
}

.info-item {
    display: flex;
    color: white;
    margin: 0 80px;
}

.info-value {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    padding-left: 12px;
    color: #315CE7;
}

.info-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: auto;
    color: black;
}

.border-solid {
    border: 1px solid;
}

.logo-header-top {
    width: 151px;
    height: 44px;
}

.max-540 {
    max-width: 540px;
}

.main-title {
    position: absolute;
    top: 30%;
    font-weight: 600;
    font-size: 45px;
}

#dlemasscomments {
    width: 100%;
}

#comments {
    width: 100%;
    height: 100%;
    color: white;
}

.black-find-icon {
    position: absolute;
    left: 10px;
    margin: 10px auto;
}

.header-button {
    color: white;
    background-color: transparent;
    max-width: 280px;
    border: 0;
}

.header-button:hover {
    outline: none;
}

.header-button:focus {
    outline: none;
}

.img-header {
    padding-right: 10px;
}


.item__fav > a {
    color: white;
}

.item__fav > a:hover {
    text-decoration: none;
}


@media (max-width: 768px) {
    body {
        font-size: 14px; /* Slightly reduce font size for readability */
    }

    .container, .center {
        width: 100%; /* Full width for containers on mobile */
        padding: 0 10px; /* Add some padding for spacing */
    }

    .search-form {

    }

    .search-input {
        padding: 10px; /* Adjust padding */
        width: 90%; /* Make the input take most of the width */
        font-size: 16px; /* Adjust font size */
        margin-right: 10px;
        border: 1px solid;
    }

    .search-input::placeholder {
        color: transparent; /* Hide the placeholder text */
    }

    .search-button {
        width: 100%; /* Full width for button */
        font-size: 16px; /* Adjust font size */
    }

    .header {
        text-align: center; /* Center header content */
        margin: 15px;
    }

    .logo-header {
        max-width: 90%; /* Reduce logo size for mobile */
    }

    .flex {
        flex-direction: column; /* Stack flex items vertically on mobile */
        align-items: center; /* Center flex items */
    }

    .main-enter {
        top: 0;
        right: 0;
    }

    /*.top-right-button {*/
    /*    width: auto;*/
    /*    margin: 5px;*/
    /*    padding: 5px 10px;*/
    /*}*/
    .genres-list {
        display: block;
    }

}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column; /* Stack input and button vertically */
        justify-content: center; /* Center them */
        align-items: center; /* Align items to the center */
        padding: 20px; /* Add some padding for spacing */
    }

    .search-form {
        width: 90%; /* Full width on mobile */
        box-shadow: none; /* Remove box shadow for simpler look */
    }

    .black-find-icon {
        display: none;
    }

    .search-button {
        width: 90%; /* Full width for the button */
        font-size: 16px; /* Adjust font size for better readability */
        padding: 10px 0; /* Add padding for a larger clickable area */
    }
}

@media (max-width: 768px) {

    .search-button > img {
        padding-right: 0;
        margin: auto;
    }

    .search-button {
        width: 50px; /* Reduce the button size */
        padding: 0; /* Remove padding */
        background-position: center; /* Center the icon */
        background-repeat: no-repeat; /* Prevent repeating */
    }

    .search-button > span {
        display: none;
    }

    .search-form {
        justify-content: space-between; /* Ensure input and button are evenly spaced */
    }

    .login {
        width: auto;
    }

    .modal-overlay {
        align-items: start;
        padding-top: 50px;
    }
}

.blue_text {
    color: #315CE7;
}

.background-panel {
    margin-top: 40px;
    background-color: #F0F0F0;
    color: #fff;
    width: 100%;
}

.display-4 {
    font-weight: 600;
    font-size: 45px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.pdr-13 {
    padding-right: 13px;
}

.w-280 {
    width: 280px;
}

.img-fluid {
    min-width: 230px;
    max-width: 100%;
    height: 374px;
    border-radius: 10px;
}

.black {
    color: #000;
}

.navigation {
    width: 100%;
    margin: 20px;
    border: 3px solid #f4f7f8;
    padding: 10px;
    border-radius: 10px;
}

.screenshots, .video-section, .torrent-download {
    width: 100%;
}

.torrent-download {
    margin: 80px 0;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
}

.main-content-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.short-description {
    flex-grow: 1;
}

/*.short-description h2,*/
/*.full-description h2,*/
/*.screenshots h2,*/
/*.video-section h2,*/
/*.additional-description h2 {*/
/*    font-size: 36px;*/
/*    margin-bottom: 10px;*/
/*    color: #333;*/
/*}*/

.short-description p,
.full-description p,
.additional-description p {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
}

.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.lightbox .lb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Дополнительное позиционирование для крестика */
.lightbox .lb-data .lb-close {
    top: -50px; /* Поднятие иконки выше */
}

.content-header {
    width: 100%;
    /*background-color: #f8f9fa;*/
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

.content-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}


.btn-primary,
.share-button {
    margin-right: 10px; /* Отступ между кнопками */
}


.ya-share2__item {
    padding: 0 10px;
}

.share-block {
    position: absolute;
    top: 90%;
    z-index: 1000;
    background-color: #fff; /* Цвет фона */
    padding: 10px; /* Внутренний отступ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень для плавающего эффекта */
    border: 1px solid black;
    border-radius: 10px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #007bff;
    color: #fff;
}

.side-block {
    margin-top: 60px;
}

.owl-prev {
    width: 15px;
    height: 100px;
    position: absolute;
    margin-left: -50px;
    display: block !important;
    border: 0 solid black;
}

.owl-next {
    width: 15px;
    height: 100px;
    position: absolute;
    top: 25%;
    right: -25px;
    display: block !important;
    border: 0 solid black;
}

.owl-next:focus, .owl-prev:focus {
    outline: none;
}

.owl-prev i, .owl-next i {
    display: block;
    width: 40px;
    height: 40px;
}

.fa-angle-right, .fa-angle-left {
    display: none;
    height: 48px;
    width: 48px;
    background-image: url("/templates/Antigamer/images/icon_arrow_right.svg");
}

.full-header {
    display: flex;
    justify-content: space-between;
    margin: 0 40px;
}

.full-star {
    display: contents;
}

.short-star {
    display: none;
}

.search-container {
    background-image: url("/templates/Antiplayer/images/bg.webp");
}

@media (max-width: 768px) {
    .search-container {
        background-image: url("/templates/Antiplayer/images/bg-mobile.webp");
    }

    .head-logo {
        margin-top: 20px;
        padding: 0;
    }

    .search-input {
        margin-right: 10px;
    }

    .top-right-button {
        width: auto;
    }


    /*.top-right-button > img {*/
    /*    margin: auto;*/
    /*}*/
    #searchsuggestions {
        width: 65%;
    }

    .content-header {
        padding: 0 20px;
        font-size: 12px;
    }

    .header-button > img {
        padding-bottom: 2px;
        padding-right: 0;
    }

    .owl-nav {
        display: none;
    }

    .full-star {
        display: none;
    }

    .short-star {
        display: inherit;
    }

    .star {
        display: flex;
        justify-content: center;
    }

    .img-fluid {
        display: none;
    }

    .info-item {
        margin: 0 20px;
    }

    .game-category {
        margin: 0 15%;
    }

    .popular-item {
        margin: 0 15%;
    }

    .header-button {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
    }

    .img-header {
        height: 16px;
        padding-right: 0;
    }

    .fa-bookmark {
        height: 18px;
    }

}

.background-none {
    background-image: none;
}

@media (max-width: 490px) {
    .right-fullstory-block {
        display: block;
    }

    .info-item {
        display: block;
    }


    .top-right-button > span {
        display: none;
    }
}

#review {
    margin-bottom: 20px;
}

.main-download-ubar {
    font-size: 17px;
    position: absolute;
    top: 35px;
    left: 20px;
    padding: 0;
}

.edite-mark {
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 8px;
    right: 25px;
    top: 22px;
}

.edite-mark-img {
    margin: 6px 16px;
}

.edit-mark-text {
    display: none;
    color: var(--title-white-color);
    font-weight: 600;
    font-size: 12px;
    line-height: 15.6px;
    position: absolute;
    top: 40px;
    left: -50px;
    z-index: 2;
    background-color: var(--main-bg-color);
    border: 1px solid var(--border--color);
    border-radius: 4px;
    padding: 8px 12px;
    vertical-align: middle;
}

.edite-mark:hover {

    .edit-mark-text {
        display: block;
        width: max-content;
    }
}

.owl-carousel {
    position: relative; /* чтобы можно было абсолютно позиционировать стрелки */
    z-index: 0;
}

.owl-carousel .owl-nav {
    height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    flex-direction: row;
    align-items: center;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    pointer-events: auto;
    background: transparent;
    border: none;
    cursor: pointer;
}

.owl-carousel .owl-nav button.owl-prev {
    margin-left: 0;
}

.owl-carousel .owl-nav button {
    width: 48px;
    height: 100%;
    top: 0;
    margin-right: 1.5rem;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    background-color: var(--main-bg-color);
}

.owl-nav button.owl-prev:active,
.owl-nav button.owl-next:active {
    .fa {
        filter: brightness(0.5);
    }
}

.owl-carousel .item img {
    width: 100%; /* растягивает по ширине родителя */
    height: auto; /* высота автоматически по пропорциям */
    display: block; /* чтобы не было лишних отступов */
}

.ui-dialog {
    background-color: var(--main-bg-color);
}

.ui-dialog-titlebar-close {
    width: 18px;
    height: 18px;
    padding: 0 !important;
    margin: 0 !important;
    background-image: url("/templates/Antigamer/images/icon_close.svg");
}

.ui-dialog-titlebar-close span {
    display: none;
}

details {
    padding: 20px 30px;
    color: var(--text-grey-color);
}

details[open] {
    color: white;
}

details summary {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 125%;
}

details .detail-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease; /* длительность и тип анимации */
}

details[open] .detail-block {
    max-height: 1000px;
}

details[open] summary {
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
    margin-bottom: 22px;
}

/* Скрываем стандартный маркер */
summary::-webkit-details-marker {
    display: none;
}

/* Делаем summary flex-контейнером */
summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Добавляем кастомный маркер справа */
summary::after {
    content: url("/templates/Antigamer/images/icon_arrow_down.svg"); /* Вы можете заменить на нужный символ */
    transition: transform 0.3s ease;
}

/* При раскрытии изменяем вид маркера, например, поворачиваем его */
details[open] summary::after {
    transform: rotate(180deg);
    filter: brightness(2);
}

h5 {
    font-size: 18px;
    font-weight: 600;
}

.modal-content {
    background-color: var(--text-black-color);
    border: 1px solid var(--border--color);
    border-radius: 20px;
    overflow: hidden;
}

.modal-dialog {
    max-width: 1010px;
    width: 80%;
    color: white;
}

.modal-header {
    padding: 30px;
}

.modal-body {
    padding: 0;
    margin: 0;
}

.block-modal {
    margin: 20px 0;
    display: inline-block;
}

.block-modal-15 {
    margin: 15px 0;
}

.block-modal .title {
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 135%;
}

.block-modal .description {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
}

.modal-header, .modal-footer, .modal-body {
    border: none;
}

.giBlock {
    border-radius: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    height: 62px;
    border: none;
    margin-right: 20px;


}

.gi-button-desc {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.gi-button-desc .first {
    font-family: "Tactic Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    vertical-align: middle;
    text-transform: uppercase;
}

.gi-button-desc .second {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    vertical-align: middle;
}

.block-modal .notification {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    vertical-align: middle;
    color: var(--text-grey-color);
}

.space-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-torrent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 12px;

    font-size: 12px;
    font-weight: 500;
}


.info-torrent img {
    margin-right: 5px;
}


.p-12 {
    padding: 12px 0;
}

.p-30 {
    padding: 30px;
}

.modal-torrent-list .row {
    border-radius: 8px;
    background-color: var(--main-bg-color);
    margin: 10px 0;
}

.modal-torrent-list .row:hover {
    border-radius: 8px;
    background-color: var(--border--color);
}

.modal-torrent-list .row:hover .btn-gray{
    background-color: var(--accent-color);
    color: var(--text-black-color);
}

.modal-torrent-list .row:hover .btn-gray:hover{
    background-color: var(--accent-color-hover);
    color: var(--text-black-color);
}

.modal-torrent-list .row:hover .btn-gray:active{
    background-color: var(--accent-color-active);
    color: var(--text-black-color);
}

.modal-torrent-list .row:hover .btn-gray img{
    content: url("/templates/Antigamer/images/icon_download.svg");
}

.modal-torrent-list .col-6 {
    /* Перенос длинных слов, если они не помещаются */
    overflow-wrap: break-word; /* или word-wrap: break-word; */

    /* Ограничение количества строк до двух */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.modal-torrent-list .row:hover .col-6 {
    color: var(--accent-color);
}

.header-torrent {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-grey-color);
    margin: 20px 0;
}

.text-align-h-center {
    text-align: center;
}

.text-align-v-center {
    align-self: anchor-center;
}

.row-like {
    display: flex;
    height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
    border-radius: 6px;
}

.row-like img {
    width: 32px;
    height: 32px;
}

.like-block a {
    width: 100%;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.like-block a span {
    margin-left: 15px;
}

.like-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
}

.row-like-all {
    width: 100%;
    margin-top: 10px;
}

.row-like-all span {
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
}

.blue-back {
    background-color: var(--bg-blue);
}

.accent-color-text {
    color: var(--accent-color);
}

.shared-block {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 0;
}

.shared-block input {
    width: 100%;
    flex: 1;
    margin: 0 20px 0 30px;
    padding: 7px 20px;
    border-radius: 8px;
    border: 1px solid var(--border--color);
}

.btn-share {
    box-shadow: none;
    border: none;
    border-radius: 8px;
    padding: 0;
}

.btn-share img {
    margin: 10px;
}

.btn-gray {
    color: var(--title-white-color);
    transition: background-color 0.3s ease;
    background-color: var(--border--color);
}

.btn-gray:hover {
    color: var(--title-white-color);
    background-color: var(--bg-second);
}

.btn-gray:active {
    color: var(--title-white-color);
    background-color: var(--main-bg-color);
}

.btn-green {
    transition: background-color 0.3s ease;

    color: var(--text-black-color);
    background-color: var(--accent-color);
}

.btn-green:hover {
    background-color: var(--accent-color-hover);
}

.btn-green:active {
    background-color: var(--accent-color-active);
}

button:focus, button:focus-visible {
    border: none;
    outline: none;
    box-shadow: none;
}

.m-0 {
    margin: 0;
}

.m-0-30 {
    margin: 0 30px;
}

#shareModal .modal-body {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
}

#shareModal .modal-dialog {
    width: 40%;
}

#shareModal .modal-body a {
    display: flex;
    align-content: flex-start;
    font-size: 20px;
}

#shareModal .modal-body img {
    margin-right: 6px;
}

.mb-15px {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

@media (max-width: 1280px) and (min-width: 992px) {
    .my-1280-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 1920px) and (min-width: 992px) {
    .my-1280-5-calendar {
        flex: 0 0 20%;
        max-width: 20%;
    }
}


@media (max-width: 850px) and (min-width: 768px) {
    .my-850-3 {
        flex: 0 0 33%;
        max-width: 33%;
    }
}

.header-row-1 {
    width: 100%;
    margin-bottom: 30px;
    display: none;
}

.header-row-1-1 {
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.header-row-2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
}


.header-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    width: 100%;
}

.header-phone-container {
    display: none;
    width: 100%;
}

.header-phone-container > .row > .col-12 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-login-btn {
    display: flex;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}

.menu-toggle {
    display: none;
}

.close-menu {
    display: none;
    padding: 0;
}

.header-row-2-user {
    width: 260px;
}

@media (max-width: 1000px) {
    aside {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-right: 30px;
        padding-left: 0;
    }

    .close-menu {
        display: block;
    }

    .main-container {
        width: 100%;
    }

    .header-row-1 {
        display: block;
    }

    .header-row-2-user {
        display: none;
    }

    .search-form {
        margin-right: 0;
    }

    .logo {
        margin-left: 0;
    }

    .menu-logo {
        display: flex;
        justify-content: center;

        flex: 1;
    }
}

.min-comments {
    display: none;
    width: 100%;
}

@media (max-width: 992px) {
    .comments {
        display: none;
    }

    .min-comments {
        display: block;
    }
}

.login__social-btns {
    margin-bottom: 20px;
}

.login__social-btns img:hover {
    filter: none;
}

.margin-left-auto {
    margin-left: auto;
}

.comment-item__reply a {
    display: flex;
}

.login__header {
    align-items: center;

}

.pagination__btn-loader {
    display: flex;
    justify-content: center;
}

.pagination__btn-loader a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.pagination__btn-loader a:hover {
    background-color: #0056b3;
}

.login-btn-user {
    padding: 5px 15px;
}

.login-btn-user > span {
    display: block;
}

.pagination__pages {
    display: flex;
    gap: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination__pages > a, .pagination__pages > span, .pagination__pages > .nav-ext {
    color: var(--text-grey-color);
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;

    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.pagination__pages a:has(.nav-preview), .pagination__pages a:has(.nav-next) {
    width: auto;
    border-radius: 8px;
    padding: 10px 35px;
    background-color: var(--border--color);
    color: #EEEEEE;
}

.pagination__pages a:has(.nav-preview):hover, .pagination__pages a:has(.nav-next):hover {
    background-color: var(--bg-second);
}

.pagination__pages a:has(.nav-preview):active, .pagination__pages a:has(.nav-next):active {
    background-color: var(--main-bg-color);
}

.pagination__pages a:hover {
    background-color: var(--border--color);
}

.pagination__pages a:active {
    background-color: var(--main-bg-color);
}

.pagination__pages > span {
    color: var(--text-black-color);
    background-color: var(--accent-color);
}

.pagination {
    margin-top: 100px;
}

.nav-preview, .nav-next {
    width: auto !important;
    background-color: transparent;
}

.pagination__pages > span:has(span) {
    display: none;
}

.pagination__pages > a > img {
    width: 20px;
    height: 20px;
}

.nav-preview {
    margin-left: 10px;
}

.nav-next {
    margin-right: 10px;
}

.kalendar-filter {
    display: flex; /* Расположим элементы в одну линию */
    flex-wrap: wrap; /* Чтобы они переносились на новую строку при нехватке места */
    gap: 8px; /* Промежуток между «кнопками» */
    padding: 0; /* У fieldset по умолчанию есть отступы */
    border: none; /* У fieldset по умолчанию есть рамка */
    margin: 0 0 0 30px;
}

.kalendar-filter div {
    display: flex;
    align-items: center;
}

/* Скрываем стандартное отображение радиокнопок */
.kalendar-filter input[type="radio"] {
    display: none;
}

/* Стилизуем лейблы как «кнопки» */
.kalendar-filter label {
    display: inline-block;
    background-color: var(--border--color); /* Фон неактивной кнопки */
    color: #fff; /* Цвет текста неактивной кнопки */
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;

    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

/* При наведении (hover) можно подсвечивать */
.kalendar-filter label:hover {
    background-color: var(--main-bg-color);
    color: var(--text-grey-color);
}

/* Стилизуем выбранный элемент */
.kalendar-filter input[type="radio"]:checked + label {
    background-color: var(--accent-color); /* или любой другой цвет (здесь ярко-зелёный) */
    color: #000; /* цвет текста при выбранном состоянии */
}

main .row {
    gap: 30px 0;
}

.poster-middle {
    display: flex;
    justify-content: center;
}

.sort-select-calendar {
    height: 36px;
    padding: 0 10px 0 20px;
}

.select-wrapper-calendar {
    flex-direction: column;
    align-items: center;
}

.owl-carousel {
    aspect-ratio: 16/9;
    max-height: 330px;
    overflow: hidden;
}

.menu-toggle {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.open-menu {
    display: flex;
    position: absolute;
    z-index: 2;
    background-color: var(--text-black-color);
    width: 300px;
    max-width: 300px;
}

.menu-fade {
    display: none;
}

.menu-fade-active {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    background-color: #151515CC;
}

.menu-logo-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.form__content {
    flex: 1;
    flex-wrap: wrap;
}

.form__content input {
    min-width: 0;
    border: 1px solid var(--border--color);
    border-radius: 6px;
}

.ui-dialog-buttonset button {
    color: var(--title-white-color);
}

#dlecomplaint {
    margin: 0 20px;
}

.gap-10 {
    gap: 10px;
}

.gap-30 {
    gap: 30px;
}

.nav_ext {
    background-color: transparent !important;
    color: var(--text-grey-color) !important;
}


@media (max-width: 480px) {
    .open-menu {
        width: 100%;
        max-width: 100%;
    }

    .width-100-480 {
        width: 100%;
    }

    .shared-block input {
        margin-left: 0;
    }
}

@media (max-width: 456px) {
    .main-sort {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }

    #sort-post {
        flex: 1;
        max-width: none;
    }

    .select-arrow-main {
        transform: translateY(30%);
    }

    .sort-select-wrapper {
        width: 100%;
    }
}

pre {
    color: white;
}

#dle-promt-mail, #dle-promt-text {
    color: white;
    border: 1px solid var(--border--color);
    border-radius: 6px;
}

.ui-dialog-content {
    text-align: center;
}

.ui-dialog-buttonpane {
    justify-content: center;
}

.ui-dialog-buttonset {
    width: 100%;
}

.ui-dialog-buttonset > button {
    width: 100%;
    background-color: var(--border--color);
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
}

.btn {
    font-weight: 600;
    font-size: 16px;
    line-height: 125%;
}

.color-grey-img {
    filter: invert(45%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.color-red-img {
    filter: invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.clear-input:hover, .show-password:hover {
    cursor: pointer;
    /*  change color from grey to white*/
    filter: brightness(2);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 55%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border--color) transparent transparent transparent;
}

#registration, #dle-lostpassword, #sendmail {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border--color);
    max-width: 566px;
    width: 100%;
}

#dle-lostpassword {
    padding: 30px;
}

.form__row {
    display: flex;
    flex-direction: row;
    margin: 10px 0;
}

.btn-lostpassword {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 20px;
}

.form__content input {
    border: none;
    flex: 1;
}

.icon-at-left {
    display: block;
    text-align: end;
}

.favorite > .message-info {
    display: none;
}

.favorite-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.favorite-btn {
    width: 260px;
}

@media (max-width: 296px) {
    .favorite-btn {
        width: 100%;
    }
}

.favorite-btn-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.body-main-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

.body-main {
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
}

.label-small {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
}

.label-medium {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    text-align: right;
    vertical-align: middle;
}

.stay-connected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border--color);
    padding: 20px 30px;
    color: white;
    gap: 16px;
    flex-wrap: wrap;
}

.stay-connected .label {
    font-family: "Unbounded", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
}

.stay-connected .links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stay-connected .link {
    display: flex;
    align-items: center;
    color: #eaeaea;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.stay-connected .link:hover {
    color: #ffffff;
}

.stay-connected .link img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.no-scroll {
    overflow: hidden; /* убирает полосы прокрутки */
    height: 100vh; /* фиксирует высоту, чтобы не дёргался фон */
}

.comment_button {
    background-color: var(--bg-second);
    border-radius: 100px;
    padding: 8px 24px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

.comment_button:hover {
    background-color: var(--primary_05);
}

.container-comment-buttons {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.container-faq-buttons {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.container-comment-buttons input {
    width: 100%;
}

.container-comment-buttons .parent-input {
    padding: 1px;
}

.modal-faq__tabs, .modal-faq__content {
    display: flex;
    gap: 16px;
    margin: 30px;
}

.modal-faq__tabs {

}

.tab-button {
    background: none;
    border: none;
    color: var(--text-grey-color);
    padding: 8px 20px 10px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab-button.active {
    color: var(--title-white-color);
    border-bottom: 2px solid var(--accent-color);
}

.modal-faq__content .tab-content {
    display: none;
}

.modal-faq__content .tab-content.active {
    display: block;
}

.tab-content span {
    color: var(--accent-color);
    padding-right: 10px;
}

.modal-footer {
    padding: 20px;
    margin: 30px;
    justify-content: space-between;
    border-radius: 12px;
    background-color: var(--main-bg-color);
    border: 1px solid var(--accent-color);
}

.gi-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    font-size: 12px;
}

.info-torrent-element {
    background-color: var(--border--color);
    border-radius: 100px;
    padding: 6px 20px;
}

.m-30 {
    margin: 30px;
}

.footer-social {
    margin: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-social-links img {
    margin-right: 10px;
}

.footer-social-text {
    max-width: 552px;
}

.nowrap-text {
    white-space: nowrap;
}

.right-fullstory-block h3.like-title {
    margin-bottom: 10px;
}

.error-block {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--red);
    background-color: var(--red_neutral);
}

.error-block p {
    margin: 0;
}

.icon-error {
    width: 24px;
    height: 24px;
}


.btn-main {
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
}

#kalendar-count {
    font-weight: 400;
}

.page-description {
    margin: 60px 10%;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: 0%;
}

.screenshot-swiper {
    width: 100%;
    max-width: 100%;
    /*margin: 0 auto;*/
    border-radius: 10px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.swiper-button-prev, .swiper-button-next {
    display: flex;
    justify-content: end;
    padding-right: 20px;
    width: 48px;
    height: 100%;
    top: calc(0% + 22px);
    background-color: transparent;
}

.swiper-button-next:hover
{
    /*background-color: var(--main-bg-color);*/
    /*background-image: url("/templates/Antigamer/images/background_screenshot.png");*/
    background: #1E1E1E;
    background: linear-gradient(270deg,rgba(30, 30, 30, 1) 0%, rgba(255, 255, 255, 0) 100%);
    width: 240px;
}

.swiper-button-prev:hover{
    /*background-color: var(--main-bg-color);*/
    background: #1E1E1E;
    background: linear-gradient(270deg,rgba(30, 30, 30, 1) 0%, rgba(255, 255, 255, 0) 100%);
    width: 240px;
    rotate: 180deg;
}

.swiper-button-next:after, .swiper-button-prev:after
{
    content: none;
}

.swiper-button-next:hover .fa, .swiper-button-prev:hover .fa{
    display: block;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

.color_blue{
    color: var(--blue-light);
}

.text-grey-color{
    color: var(--text-grey-color);
}

/*.swiper-pagination-bullet {*/
/*    width: 32px;*/
/*    height: 4px;*/
/*    background-color: var(--text-grey-color);*/
/*    opacity: 1;*/
/*    margin: 0 4px;*/
/*    border-radius: 100px;*/
/*    transition: background-color 0.3s;*/
/*}*/

/*.swiper-pagination-bullet-active {*/
/*    background-color: var(--accent-color); !* зелёный активный *!*/
/*}*/

.swiper-pagination-carousel {
    width: 100%;
    position: absolute;
    bottom: 20px;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    display: flex;
    justify-content: flex-start;

}
.pagination-track {
    display: flex;
}
.pagination-bullet {
    flex-shrink: 0;
    width: 32px;
    height: 4px;
    background-color: var(--text-grey-color);
    margin: 0 6px;
    border-radius: 999px;
    transition: background-color 0.3s;
}

.pagination-bullet:hover{
    cursor: pointer;
}

.pagination-bullet.active {
    background-color: var(--accent-color);
}

.swiper-pagination-carousel::-webkit-scrollbar {
    display: none;
}
.swiper-pagination-carousel {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}


.font-weight-500{
    font-weight: 500;
}

.accent-border{
    border: 1px solid var(--accent-color);
    border-radius: 12px;
}

.info-torrent-item{
    background-color: var(--border--color);
    border-radius: 100px;
    display: flex;
    flex-direction: row;
    padding: 6px 20px;
}

#modalTorrent>.modal-dialog{
    /*max-height: 825px;*/
    overflow: hidden;
}

.modal-torrent-list {
    overflow-y: auto;
    max-height: 225px; /* или calc(100% - X), если хочешь адаптивную высоту */
    padding-right: 10px; /* для удобства со скроллом */
}

#modalTorrent .modal-header, #modalTorrent .modal-body, #modalTorrent .modal-footer-torrent{
    background-color: var(--main-bg-color);
}

.back-color-black{
    background-color: var(--text-black-color);
}

.ml-20{
    margin-left: 20px;
}

.info-torrent-block{
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--orange);
    font-weight: 400;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.modal-footer-torrent{
    padding: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 1px solid var(--border--color);
}

.footer-text{
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: 0%;
    max-width: 600px;
}

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

.wrap{
    display: flex;
    flex-wrap: wrap;
}

.pb-0{
    padding-bottom: 0;
}

.modal-torrent-list::-webkit-scrollbar, textarea::-webkit-scrollbar {
    width: 6px;
}

/* Фон дорожки */
.modal-torrent-list::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track {
    background: transparent;
}

/* Ползунок */
.modal-torrent-list::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
    background-color: var(--primary_04); /* цвет ползунка */
    border-radius: 100px; /* скругление */
    cursor: auto;
    /*border: 2px solid #f0f0f0; !* «отступ» внутри трека (опционально) *!*/
}

/* Ползунок при наведении курсора */
.modal-torrent-list::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover {
    /*background-color: #555;*/
}

.zaebalo{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;
    text-align: start;
}

.line-height-130{
    line-height: 130%;
}

.mt-15{
    margin-top: 15px;
}