body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-image: image-set(
  url("logo/fon_84024346.avif") type("image/avif"),
  url("logo/fon_84024346.webp") type("image/webp"),
  url("logo/fon_84024346.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgb(51, 51, 51);
  /*position: relative;
  z-index: 1000;*/
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
header button {
  margin-left: 10px;
  padding: 8px 16px;
  width:  auto;
  height: auto;
  position: relative;
  color: #fff;
  outline: none;
  background-color: transparent;
  transition: 1s;
  border: 3px ridge rgb(151, 193, 241);
  border-radius: 0.4em;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}
header button::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 3%;
  width: 95%;
  height: 40%;
  background: rgb(51, 51, 51);
  transition: 0.5s;
  transform-origin: center;
}
header button::before {
  content: '';
  position: absolute;
  top: 80%;
  left: 3%;
  width: 95%;
  height: 40%;
  background: rgb(51, 51, 51);
  transition: 0.5s;
  transform-origin: center;
}
header button:hover::before, header button:hover::after {transform: scale(0);}
header button:hover {box-shadow: inset 0px 0px 25px rgb(151, 193, 241);}
.name {display: inline-flex; gap: 0rem; align-items: center;}
.name h4, h5{margin: 0; line-height: 1; white-space: nowrap;}
.name h4 {font-size: 2rem; color: rgb(151, 193, 241);}
.name h5 {font-size: 2rem; color: rgb(218, 135, 11);}
.authorLine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  box-shadow: 0 0 1rem rgba(0,0,0,0.9);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#author {font-size: 1.1rem; color: white;}
.marquee-infinite {
  margin: 15px auto;
  display: flex;
  border: 3px solid #000;
  border-radius: 8px;
  width: 90%;
  overflow-x: auto;
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.9);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
}
.marquee-infinite::-webkit-scrollbar {display: none;}
.group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8em;
  animation: spin 18s infinite linear;
  padding-right: 5em;
}
.card {
  flex: 0 0 5em;
  height: 6em;
  padding: 0.3em;
  /*background-color: #000;*/
  font-size: 1rem;
  text-align: center;
  align-content: center;
}
@keyframes spin {from {translate: 0%;} to {translate: -100%;}}
.main{
  display: flex;
  flex: 1;
  height: 0;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
/* поиск / счечик */
.mods-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}
.mods-header h2 {justify-self: start;}
.modsCount {
  color: black;
  justify-content: center;
  width: max-content;
  font-size: 1.1rem;
  border-left: 10px solid rgb(151, 193, 241);
  padding-left: 5px;
  border-radius: 10px;
  background: linear-gradient(to right, rgb(151, 193, 241), rgb(218, 135, 11)); 
  border-right: 10px solid rgb(218, 135, 11);
  padding-right: 5px;
  box-shadow: 0 0 1rem rgba(0,0,0,0.9);
}
.search {
  justify-self: end;
  text-align: center;
  margin-top: 10px;
}
.Comm {
  margin-bottom: 5px;
  justify-self: center;
  font-size: 1.1rem;
  color: black;
  border-left: 10px solid rgb(151, 193, 241);
  padding-left: 5px;
  border-radius: 10px;
  background: linear-gradient(to right, rgb(151, 193, 241), rgb(218, 135, 11)); 
  width: max-content;
  border-right: 10px solid rgb(218, 135, 11);
  padding-right: 5px;
  box-shadow: 0 0 1rem rgba(0,0,0,0.9);
}
#searchInput {
  font-size: 1.04rem;
  padding: 6px;
  width: 200px;
  border-radius: 5px;
  border: none;
}
/* display game/spec */
#selectedFilter {transform: translate(0, -100%); pointer-events: none;}
/* Стили кнопок */
#pagination {
  position: sticky;
  bottom: 0;
  padding: 10px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hint {
  color: #111;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 2px solid rgba(151, 193, 241, 0.8);
  backdrop-filter: blur(5px);
}
#pagination button {
  font-size: 1.2rem;
  border: 2px ridge rgb(151, 193, 241);
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
  color: black;
  cursor: pointer;
  border-radius: 0.6em;
  padding: 8px 16px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
/* линии сверху/снизу */
#pagination button::before,
#pagination button::after {
  content: '';
  position: absolute;
  left: 5%;
  width: 90%;
  height: 2px;
  background: rgb(151, 193, 241);
  transition: 0.4s;
}
#pagination button::before {top: 0;}
#pagination button::after {bottom: 0;}
/* hover эффект */
#pagination button:hover::before, #pagination button:hover::after {transform: scaleX(0);}
#pagination button:hover {box-shadow: 0 0 15px rgb(151, 193, 241); transform: translateY(-2px);}
.active-page {background: rgb(151, 193, 241); color: black; box-shadow: 0 0 20px rgb(151, 193, 241);}
/* левая зона */
.mods-zone {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 3;
  padding: 10px;
  color: white;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.mods-zone h2 {margin-top: 0;}
/* элемент для стиля скрола */
.mods-zone::-webkit-scrollbar {width: 11px;}
.mods-zone::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgb(151, 193, 241), rgb(218, 135, 11));
  border-radius: 10px;
}
.mods-zone::-webkit-scrollbar-track {background: rgba(0,0,0,0.4);}
/* Блок мода — карточка с адаптивной раскладкой */
.mod-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(5px);
  border: 2px solid black;
  cursor: pointer;
  transition: 0.2s;
  box-shadow:0 20px 35px rgba(0,0,1,0.9);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* когда появляется */
.mod-card.show {
    color: #1f2a56;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mod-card:hover {
    transform: scale(1.01);
}

/* Заголовок */
.mod-header {
    display: flex;
    align-items: center;
}

.mod-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}
/* Тело карточки */
.mod-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
/* Описание */
.mod-description {
    flex: 1;
    font-size: 1.04rem;
    color: #333;
    display: -webkit-box;
    margin-top: 5px;
    white-space: pre-line;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    width: 100%;
}

/* звезды */
.mod-stats {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.mod-stats span {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 999px;
}
.stars {display: inline-flex; gap: 2px;}
/* базовая звезда */
.star {
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
  line-height: 1;
}
/* пустая */
.star.empty {color: #ccc;}
/* полная */
.star.full {color: gold;}
/* половинка */
.star.half {color: orange;}
.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: gold;
}
/* число рейтинга / info */
.rating-value, .info {
    display: inline-flex;
    font-weight: bold;
    color: #222;
    align-items: center;
    gap: 6px;
}

.icon {
  border-radius: 6px;
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.mod-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
/* Превью с лево */
.mod-thumb {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
/* Сетка модов */
#modsList {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 650px), 1fr));
    gap: 16px;
    align-items: stretch;
    align-content: start;
    transition: opacity 0.3s ease;
    flex: 1;
}
@media (max-width: 650px) {
    .mod-body {
        flex-direction: column;
    }

    .mod-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 13 / 10;
    }
}
/* Правая колонка — игры и категории */
.games-column{
  width:auto;
  flex: 0 0 clamp(220px, 14vw, 270px);
  align-self: stretch;
  background-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
  border-radius: 1.2em 0 0 0;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
    }

    .main {
        height: auto;
        overflow: visible;
        flex-direction: column;
    }

    .mods-zone {
        overflow-y: visible;
    }

    .games-column {
        width: 100%;
        flex: 0 0 auto;
        height: auto;
        border-radius: 1.2em 1.2em 0 0;
    }
}
.games-column::-webkit-scrollbar {width: 9px;}
.games-column::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgb(151, 193, 241), rgb(218, 135, 11));
  border-radius: 10px;
}
.games-column::-webkit-scrollbar-track {background: rgba(0,0,0,0.4);}
.games-column h3 {margin-top: 0;}

/*.game-item,
.category-item {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: black;
  background-color: rgb(151, 193, 241);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.game-item:hover,
.category-item:hover {
  background-color: rgb(218, 135, 11);
  transform: scale(1.05);
}

.game-item.active,
.category-item.active {
  background: linear-gradient(to right, rgb(151, 193, 241), rgb(218, 135, 11));
  box-shadow: 0 0 1rem rgba(0,0,0,0.5);
}*/
/* Игры */
.game-item {
  /*width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: black;
  background-color: ;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;*/

  padding: 10px;
  margin-bottom: 5px;
  background-color: rgb(187, 187, 187);
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-wrap: balance
}

.game-item:hover {
  background-color: rgb(218, 135, 11);
  transform: scale(1.01);
}

.game-item.active {
  background: linear-gradient(to right, rgb(187, 187, 187), rgb(218, 135, 11));
  box-shadow: 0 0 1rem rgba(0,0,0,0.5);
}
/* Категории */
.category-column {
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
  text-wrap: balance;
}
.category-item {
  /*width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: black;
  background-color: ;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;*/

  padding: 8px;
  margin-bottom: 5px;
  background-color: rgb(153, 153, 153);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
}

.category-item:hover {
  background-color: rgb(151, 193, 241);
  transform: scale(1.05);
}

.category-item.active {
  background: linear-gradient(to right, rgb(153, 153, 153), rgb(151, 193, 241));
  box-shadow: 0 0 1rem rgba(0,0,0,0.5);
}
/* контейнер меню */
.menu-wrapper {position: relative;}
/* выпадающее меню */
.menu-dropdown {
  position: absolute;
  z-index: 9999;
  top: 120%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgb(51, 51, 51);
  padding: 10px;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}
/* активное состояние */
.menu-dropdown.active {opacity: 1; transform: translateY(0); pointer-events: all;}
/* кнопки внутри меню */
.menu-dropdown button {width: 190px; text-align: center;}
.messeng {
  display: inline-flex;
    font-weight: bold;
    align-items: center;
}
.icon-menu {
  height: 38px;
  width: 38px;
  border-radius: 8px;
}
/* Банер cookie соглашения пользователя */
.cookie-banner {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow:0 20px 35px rgba(0,0,1,0.9);
  border: 2px solid black;
  backdrop-filter: blur(5px);
  border-radius: 26px;
  color: #fff;
  display: none;
}

.cookie-content {
  width: auto;
  justify-content: center;
  align-items: center;
  margin: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  font-size: 1.1rem;
}

.info-policy {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(151, 193, 241, 0.25);
  border: 2px solid rgba(151, 193, 241, 0.45);
  color: #0d151f;
  line-height: 1.45;
  text-align: center;
  position: relative;
}

.info-policy::after {
  content: '';
  position: absolute;
  background: rgba(151, 193, 241, 0.45);
  border-radius: 26px;
  inset: -8px;
  z-index: -1;
  filter: blur(14px);
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #111;
  background: rgb(151, 193, 241);
  font-size: 1rem;
  font-weight: bold;
}

.btn:hover {
  background-color: rgb(218, 135, 11);
  transform: scale(1.05);
}

.cookie-buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1.1rem;
}

.yes {
  background: #4CAF50;
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease
}

.yes:hover {
  transform: scale(1.05);
  background: green;
}

.no {
  background: #f44336;
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease
}

.no:hover {
  transform: scale(1.05);
  background: red;
}
