body {
  font-family: "Rubik", sans-serif;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: white;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1100px; /* Ограничиваем ширину body */
  margin-left: auto; /* Центрируем по горизонтали */
  margin-right: auto; /* Центрируем по горизонтали */
}

.container {
  width: 100%;
  flex-grow: 1;
}

.header {
  background-color: rgba(26, 26, 26, 0.9); /* Немного прозрачный темный фон */
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Для позиционирования кнопки */
}

.header .logo {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-left: 20px;
  background: linear-gradient(
    to right,
    white 28%,
    #ff5733 56%
  ); /* Градиент с большим акцентом на "click" */
  background-clip: text;
  -webkit-background-clip: text; /* Для поддержки градиента на тексте */
  -webkit-text-fill-color: transparent; /* Прозрачный цвет текста */
  display: inline-block;
}

.logo a {
  text-decoration: none; /* Убираем подчеркивание у ссылки */
  color: inherit; /* Сохраняем цвет логотипа */
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo a:hover {
  color: #fff; /* Цвет при наведении */
  transform: scale(1.1); /* Немного увеличиваем размер логотипа */
}

.header .icon-buttons {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.header .icon-buttons .btn {
  background-color: #444;
  border: none;
  padding: 4px 10px;
  font-size: 20px;
  color: white;
  border-radius: 5px;
}

.header .icon-buttons .btn:hover {
  background-color: #ff5733;
}

.advert-banner {
  width: 470px;
  height: 62px;
  background-color: #555;
  display: inline-block;
  margin-right: 20px;
  border: 1px #ff5733 solid; /* Добавляем рамку вокруг баннера */
  box-sizing: border-box; /* Включаем рамку в размер элемента */
  position: relative; /* Для позиционирования кнопки внутри баннера */
}

/* Кнопка "+" в правом верхнем углу баннера */
.plus-button {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #ff5733;
  color: #1a1a1a;
  font-size: 12px;
  border: none;
  border-radius: 0 0 0 5px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.header .advert-banner .plus-button:hover {
  background-color: #1e7f7f;
}

#bannerUpload {
  display: none;
} /* Мобильная версия */
@media (max-width: 767px) {
  .header {
    flex-direction: column; /* Растягиваем лого и баннер по вертикали */
    align-items: center; /* Центрируем элементы */
    text-align: center;
  }

  .header .logo {
    margin-bottom: 10px; /* Добавляем отступ снизу для лого */
  }

  .header .advert-banner {
    margin: 10px;
    width: 100%; /* Баннер растягивается на всю ширину */
    max-width: 350px; /* Ограничиваем ширину баннера */
    height: auto; /* Автоматически подстраиваем высоту */
  }

  .header .advert-banner img {
    width: 100%; /* Изображение будет растягиваться по ширине контейнера */
    height: auto; /* Автоматическая подгонка высоты */
  }
}

.main-content {
  padding-top: 20px;
}

.item {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Центрируем элементы по вертикали */
}

.item-title {
  font-size: 1em;
  color: #ff5733;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  width: 80%; /* Устанавливаем ширину для текста */
}

.favicon-container {
  width: 24px;
  height: 24px;
  overflow: hidden;
  background: #555;
  border-radius: 5px;
  margin-right: 10px; /* Отступ от favicon */
  display: flex;
  align-items: center;
  justify-content: center;
}

.favicon {
  width: 60%;
  height: 60%;
  object-fit: cover;
}

.title-and-small {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-title-text {
  font-size: 1.2em;
  color: inherit;
}

.text-small {
  font-size: 0.7em;
  color: #bbb;
  margin-top: 5px; /* Отступ снизу для текста */
}

.item button {
  background-color: #ff5733;
  color: white;
  border: none;
  padding: 5px 20px;
  border-radius: 5px;
  margin-left: 10px; /* Отступ от текста */
}

.item button:hover {
  background-color: #c0392b;
}

button:hover {
  filter: brightness(80%);
}

.footer {
  border-top: 1px #ff5733 solid;
  background-color: rgba(26, 26, 26, 0.9); /* Немного прозрачный темный фон */
  padding: 20px;
  text-align: center;
  color: #777;
}

.footer p {
  margin: 0;
}

/* Сделать футер фиксированным внизу */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
}
@media (max-width: 555px) {
  .favicon-container {
    display: none;
  }
  .item-title-text {
    font-size: 1em;
  }
  .item-header {
    display: block !important;
  }
  .item-title {
    width: 100% !important;
    padding-bottom: 10px;
  }
  .banner_ls, .banner_ls div, .banner_ls img {
    width: 100% !important;
    height: 60px !important;
  }
}
@media (max-width: 390px) {
  .mHidden {
    display: none;
  }
}
