body {
  min-height: 100vh;
}

main.container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

header {

}

header p {
  max-width: 720px;
}

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

.archive-header {
  display: flex;
  justify-content: flex-start; /* можно center, если захочешь центровать */
}

section[aria-label="Архив"] {
    
}

/* Немного свечения карточкам */
.game-card,
.movie-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.social-links a {
  margin-right: 0.5rem;
}

.tab-toggle {
  border: none;
  background: rgba(10, 12, 18, 0.9);
  color: #fff;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.1;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab-toggle.is-active {
  background: linear-gradient(135deg, #0f9bf5, #7b3ff2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(80, 120, 255, 0.5);
}

.tab-toggle:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.05);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Сделаем карточки визуально компактнее */
.game-card,
.movie-card {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 18, 25, 0.9);
  overflow: hidden;
}

/* Фоновое изображение */
.game-card::before,
.movie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.05);
  opacity: 0.5;
  z-index: 0;
}

/* Тёмный оверлей поверх картинки */
.game-card::after,
.movie-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.7); /* можно поиграть с 0.6–0.8 */
  z-index: 1;
}

/* Контент поверх всего */
.game-card > *,
.movie-card > * {
  position: relative;
  z-index: 2;
}

.game-card h3,
.movie-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.game-card p,
.movie-card p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: inline-flex;
  gap: 0.1rem;
}

.star {
  font-size: 1rem;
  color: #555;
}

.star.filled {
  color: #ffd700; /* золотой */
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.9);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(120, 140, 180, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.social-link i {
  font-size: 1rem;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  background: rgba(18, 22, 32, 0.95);
}

/* Можно чуть подкрасить отдельные сервисы */
.social-link.twitch i { color: #9146ff; }
.social-link.youtube i { color: #ff4b4b; }
.social-link.telegram i { color: #27a6e5; }
.social-link.steam i { color: #66c0f4; }
.social-link.boosty i { color: #ff6a3c; }
.social-link.donate i { color: #ffd24c; }

.toolbar-wrapper {
  display: flex;
  justify-content: center;                  /* центрируем полосу */
  margin-bottom: var(--pico-block-spacing-vertical);
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
}

/* поиск и жанры */
.toolbar-left input[type="search"] {
  flex: 1 1 auto;
}

.toolbar-left select {
  flex: 1 1 220px;
}

/* табы */
.tabs-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.9);
  box-shadow: 0 0 0 1px rgba(80, 120, 255, 0.3);
}

/* Убираем нижние отступы у инпутов/селектов/кнопок в панели фильтров */
.toolbar input:not([type="checkbox"]):not([type="radio"]),
.toolbar select,
.toolbar textarea {
  margin-bottom: 0 !important;
}

/* Сбрасываем margin-bottom у всех кнопок внутри toolbar */
.toolbar [type="button"],
.toolbar [type="reset"],
.toolbar [type="submit"] {
  margin-bottom: 0 !important;
}

/* Закругляем поиск и селект жанров под один стиль */
.toolbar-left input[type="search"],
.toolbar-left select {
  border-radius: 999px;        /* как у табов и соцкнопок */
}

/* Космический фон */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;                 /* под всем контентом */
}

/* Тёмный фон на всякий случай под canvas */
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a2744 0, #050a18 45%, #02030a 100%);
}

main.container {
  position: relative;
  z-index: 1;
}

main.container {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
