/* Тёмный минимализм, карточки игр */
:root {
  --bg: #0a0a0c;
  --bg-card: #141418;
  --bg-card-hover: #1a1a20;
  --fg: #f0f0f2;
  --fg-muted: #8b8b94;
  --accent: #ff9800;
  --accent-hover: #ffb74d;
  --border: #25252c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

/* Кастомные скроллбары в стиле сайта */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 0;
}
*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--bg);
  transition: background 0.15s;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
}
*::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: color 0.15s;
  flex-shrink: 0;
}
.logo:hover {
  color: var(--accent);
}
.nav-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.nav-cats__link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-cats__link:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}

/* Поиск в header */
.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  max-width: 400px;
}
.header-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.875rem;
  transition: border-color 0.15s;
}
.header-search__input:focus {
  outline: none;
  border-color: var(--accent);
}
.header-search__input::placeholder {
  color: var(--fg-muted);
}
.header-search__button {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: color 0.15s, border-color 0.15s;
}
.header-search__button:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}
.header-search__button:active {
  color: var(--fg);
}
.header-search__button svg {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .header-search {
    max-width: 100%;
  }
  .nav-cats {
    order: 3;
  }
}

.site-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Текст под H1 (год, разработчик, язык, издатель, жанр) — из шаблона сайта */
.page-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fg-muted, #888);
}

/* Сетка карточек игр */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

/* Главная: блоки по 8 карточек, 2 ряда по 4 */
.game-grid--4cols {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 640px) {
  .game-grid--4cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-section {
  margin-bottom: 2.5rem;
}
.home-section:last-child {
  margin-bottom: 0;
}
.home-section__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 152, 0, 0.4);
  background: var(--bg-card-hover);
}
.game-card__img {
  aspect-ratio: 460/215;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.game-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.game-card:hover .game-card__img img {
  transform: scale(1.06);
}
.game-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.game-card__badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.game-card__size {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.game-card__body {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.game-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fg);
  transition: color 0.15s;
}
.game-card:hover .game-card__title {
  color: var(--accent);
}
.game-card__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card__year {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: auto;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.15s;
}
.pagination__btn:hover:not(.pagination__btn--disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 152, 0, 0.1);
}
.pagination__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.pagination__page:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 152, 0, 0.1);
}
.pagination__page--current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.pagination__page--current:hover {
  background: var(--accent);
  color: #fff;
}
.pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ——— Страница игры ——— */
.page-game {
  max-width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.breadcrumbs a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs__sep {
  color: var(--border);
  user-select: none;
}
.breadcrumbs__current {
  color: var(--fg);
  font-weight: 500;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FAQ на карточке игры — аккордеон (скрыть/раскрыть) */
.page-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.page-faq__details {
  display: block;
}
.page-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.page-faq__question::-webkit-details-marker {
  display: none;
}
.page-faq__question::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.page-faq__details[open] .page-faq__question::after {
  transform: rotate(-135deg) translateY(-2px);
}
.page-faq__question:hover {
  background: rgba(255, 255, 255, 0.06);
}
.page-faq__answer {
  padding: 1rem;
  padding-top: 0;
  color: var(--fg-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

/* Алфавитный указатель */
.page-alphabet__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.page-alphabet__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-alphabet__letter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 152, 0, 0.08);
}
.page-alphabet__letter--current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: default;
}
.page-alphabet__empty {
  color: var(--fg-muted);
  margin: 1rem 0;
}

/* ——— Стиль DLE: страница игры ——— */

/* Заголовок страницы */
.page__header--game {
  margin-bottom: 1.25rem;
}
.page__header-main {
  min-width: 0;
}
.page__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
}
@media (min-width: 768px) {
  .page__title {
    font-size: 1.65rem;
  }
}
.page__version {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--fg-muted, #666);
}

/* Две колонки: постер слева, таблица справа */
.page__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.page__col-left {
  flex-shrink: 0;
  width: 250px;
}
.page__col-right {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 760px) {
  .page__cols {
    flex-direction: column;
  }
  .page__col-left {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Постер с метой на обложке (как в DLE) */
.page__poster {
  position: relative;
  width: 100%;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.page__poster.img-fixed-size {
  aspect-ratio: 460/215;
  max-height: 320px;
}
.page__poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.page__poster-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.item__meta {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.item__meta span {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
}

/* Трейлер под постером */
.page__trailer {
  margin-top: 1rem;
}
.page__trailer-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
}
.page__trailer-embed iframe,
.page__trailer-embed .page__trailer-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.page__trailer-video {
  object-fit: contain;
}
.page__trailer-all {
  margin-top: 1rem;
  margin-bottom: 0;
}
.page__trailer-all .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--border, #333);
  border-radius: var(--radius, 8px);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.page__trailer-all .btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* Metacritic под постером/трейлером */
.page__quick-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--border, #333);
  border-radius: var(--radius, 8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  box-sizing: border-box;
}
.page__quick-stats__icon {
  opacity: 0.9;
  font-size: 1.1rem;
}
.page__quick-stats__label {
  color: var(--fg-muted, #888);
}
.page__quick-stats__value.quick-stats__mc {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.quick-stats__mc--excellent { background: #166534; color: #86efac; }
.quick-stats__mc--good { background: #15803d; color: #bbf7d0; }
.quick-stats__mc--avg { background: #a16207; color: #fef08a; }
.quick-stats__mc--poor { background: #9a3412; color: #fed7aa; }
.quick-stats__mc--bad { background: #991b1b; color: #fecaca; }

/* Таблица информации об игре */
.page__game-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}
.page__sys-req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.page__sys-req-table tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.08);
}
.page__sys-req-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}
.page__sys-req-table td:first-child {
  width: 38%;
  color: var(--fg-muted);
  font-weight: 500;
}
.page__sys-req-table td:last-child {
  color: var(--fg);
}
.page__table-link {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}
.page__table-link:hover {
  color: var(--accent);
}
.page__lang-link--russian {
  color: var(--accent);
  font-weight: 600;
}
.page__lang-link--russian:hover {
  color: var(--accent-hover);
}

/* Оценка Metacritic — цвет по диапазону */
.metacritic-score {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}
.metacritic-score--excellent { background: #1a5f2a; color: #a8e6a0; }      /* 90–100 */
.metacritic-score--good     { background: #2d6a3e; color: #b8e6b0; }      /* 75–89 */
.metacritic-score--average  { background: #7d5a1f; color: #f5d78e; }      /* 50–74 */
.metacritic-score--poor     { background: #8b4513; color: #f0c674; }      /* 25–49 */
.metacritic-score--bad      { background: #6b2d2d; color: #f0a0a0; }      /* 0–24 */

/* Информация об игре — красивый блок */
.game-info {
  background: linear-gradient(180deg, #1a1d23 0%, #15171c 100%);
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  overflow: hidden;
}
.game-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}
.game-info__row:last-child {
  border-bottom: none;
}
.game-info__row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.game-info__row--highlight {
  background: rgba(245, 158, 11, 0.08);
}
.game-info__row--highlight:hover {
  background: rgba(245, 158, 11, 0.12);
}
.game-info__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #6b7280;
  margin-top: 0.15rem;
}
.game-info__icon svg {
  width: 100%;
  height: 100%;
}
.game-info__icon--size {
  color: #f59e0b;
}
.game-info__icon--mc {
  color: #fbbf24;
}
.game-info__content {
  flex: 1;
  min-width: 0;
}
.game-info__label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0;
}
.game-info__value {
  display: block;
  font-size: 0.8rem;
  color: #e5e7eb;
  line-height: 1.3;
}
.game-info__value--size {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
}
.game-info__value--langs {
  font-size: 0.85rem;
  color: #9ca3af;
}
.game-info__sub {
  color: #6b7280;
  font-size: 0.85rem;
}
.game-info__link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.15s;
}
.game-info__link:hover {
  color: #60a5fa;
}
.game-info__link--ru {
  color: #4ade80;
  font-weight: 600;
}
.game-info__link--ru:hover {
  color: #86efac;
}
.game-info__mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
}
.game-info__mc--excellent { background: #166534; color: #86efac; }
.game-info__mc--good { background: #15803d; color: #bbf7d0; }
.game-info__mc--avg { background: #a16207; color: #fef08a; }
.game-info__mc--poor { background: #9a3412; color: #fed7aa; }
.game-info__mc--bad { background: #991b1b; color: #fecaca; }

@media (max-width: 640px) {
  .game-info__row {
    padding: 0.3rem 0.6rem;
  }
  .game-info__value--langs {
    font-size: 0.75rem;
  }
}

/* Блок скачивания — минималистичный */
.dl-block {
  background: linear-gradient(135deg, #1a1d23 0%, #22262e 100%);
  border: 1px solid #2d3340;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.dl-block__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dl-block__stats {
  display: flex;
  gap: 2rem;
  min-width: 0;
}
.dl-block__stat {
  text-align: center;
}
.dl-block__stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.dl-block__stat-value--seeds {
  color: #4ade80;
}
.dl-block__stat-value--peers {
  color: #60a5fa;
}
.dl-block__stat-value--na {
  color: var(--fg-muted);
  font-weight: 500;
}
.dl-block__stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.dl-block__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
  min-width: 0;
}
.dl-block__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted, #888);
  max-width: 100%;
}
.dl-block__badge-list {
  margin: 0;
  padding-left: 1rem;
  list-style: disc;
  line-height: 1.6;
}
.dl-block__av-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: disc;
}
.dl-block__av-name {
  flex: 0 0 auto;
  min-width: 0;
}
.dl-block__av-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.dl-block__av-item .dl-block__badge-spinner {
  display: inline-flex;
}
.dl-block__av-item .dl-block__badge-check {
  display: none;
  color: #22c55e;
}
.dl-block__av-item--done .dl-block__badge-spinner {
  display: none;
}
.dl-block__av-item--done .dl-block__badge-check {
  display: inline-flex;
}
.dl-block__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-block__badge-spinner svg {
  transform-origin: center;
  animation: dl-block-spin 1s linear infinite;
}
.dl-block__badge-check {
  color: #22c55e;
}
@keyframes dl-block-spin {
  to {
    transform: rotate(360deg);
  }
}
.dl-block__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.dl-block__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dl-block__btn--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.dl-block__btn--primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.dl-block__btn--magnet {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
}
.dl-block__btn--magnet:hover {
  background: #4b5563;
  color: #fff;
}
@media (max-width: 640px) {
  .dl-block__row {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-block__stats {
    justify-content: space-around;
  }
  .dl-block__actions {
    flex-direction: column;
    margin-left: 0;
  }
  .dl-block__btn {
    width: 100%;
  }
}

/* Блок списка файлов торрента (стиль DLE) */
.torrent-files {
  background: #2a2f3a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.torrent-files__header {
  background: #374151;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.torrent-files__header:hover {
  background: #3d4552;
}
.torrent-files__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
.torrent-files__count {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 0.35rem;
}
.torrent-files__toggle {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.torrent-files__content {
  padding: 1rem;
  color: #e2e8f0;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.85rem;
}
.torrent-files-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.torrent-files-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}
.torrent-files-list__path {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  color: #e2e8f0;
}
.torrent-files-list__size {
  flex-shrink: 0;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* Секции (sect) — заголовок с полосой слева как в DLE */
.sect {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.sect:first-of-type {
  margin-top: 0;
}
.sect--bdt {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.sect__header {
  margin-bottom: 1.25rem;
}
.sect__title {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 1.25rem 0;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  color: var(--fg);
}
.sect__title.sect__header {
  margin-bottom: 1.25rem;
}
.sect__action {
  margin-top: 1rem;
  margin-bottom: 0;
}
.sect__action a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sect__action a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-game-screenshots__back,
.page-game-videos__back,
.page-game-requirements__back {
  margin-bottom: 1.25rem;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-back:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.torrent-files {
  margin-top: 1.5rem;
}
/* Общая сетка: видео и скриншоты в одной строке */
.page__media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page__media-grid > .game-videos-gallery,
.page__media-grid > .page__scr {
  display: contents;
}
.page__media-grid .game-video-thumb,
.page__media-grid .screenshot-thumb {
  flex: 1 1 calc((100% - 1.5rem) / 3);
  min-width: 250px;
  max-width: calc((100% - 0.75rem) / 2);
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.page__media-grid .game-video-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.page__media-grid .screenshot-thumb {
  padding: 0;
  background: transparent;
}
.page__media-grid .screenshot-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.page__media-grid .screenshot-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.page__video-wrap {
  margin-bottom: 1rem;
}

/* Системные требования */
.page__sys-req {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.page__sys-req-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--fg-muted);
  font-family: ui-monospace, monospace;
}

/* Описание (full-text) */
.page__text.full-text {
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--fg);
}
.page__text.full-text p {
  margin: 0 0 0.75rem;
}

/* Другие репаки — таблица над похожими играми */
.repacks-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.repacks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.repacks-table__th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--fg-muted);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.repacks-table__th--download {
  text-align: center;
  width: 1%;
}
.repacks-table__row {
  transition: background 0.15s;
}
.repacks-table__row:hover {
  background: var(--bg-card-hover);
}
.repacks-table__row:last-child .repacks-table__cell {
  border-bottom: none;
}
.repacks-table__cell {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}
.repacks-table__cell--repacker {
  font-weight: 600;
  color: var(--fg);
}
.repacks-table__cell--type,
.repacks-table__cell--version {
  color: var(--fg-muted);
}
.repacks-table__cell--download {
  text-align: center;
}
.repacks-table__link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}
.repacks-table__link:hover {
  background: var(--accent-hover);
}
.repacks-table__link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Похожие игры — сетка как в DLE */
.page__related .sect__content {
  margin-top: 0.5rem;
}
.d-grid-items {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.page__related .item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page__related .item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.page__related .item__img {
  padding-top: 56%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}
.page__related .item__title {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fg);
}
.page__related .item__year {
  color: var(--fg-muted);
  font-weight: 400;
}

.game-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.game-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.game-block__title {
  margin: 0;
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.game-block__body {
  padding: 1.25rem;
}
.game-block--download .game-block__body {
  padding: 1.5rem;
  text-align: center;
}

.game-desc {
  line-height: 1.6;
  color: var(--fg);
}
.game-desc p {
  margin: 0 0 0.75rem;
}
.game-desc p:last-child {
  margin-bottom: 0;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.game-tags .tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.game-tags .tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.game-info-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 500px) {
  .game-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
.game-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.game-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}
.game-info-value {
  font-size: 0.95rem;
  color: var(--fg);
}
.game-info__link {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}
.game-info__link:hover {
  color: var(--accent);
}

.game-requirements {
  margin: 0;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
  color: var(--fg-muted);
  font-family: ui-monospace, monospace;
}

/* Горизонтальная галерея скриншотов */
.screenshots-horizontal {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshot-thumb {
  flex-shrink: 0;
  width: 200px;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  scroll-snap-align: start;
}
.screenshot-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.screenshot-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.screenshot-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.screenshot-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.screenshot-link img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Галерея — лайтбокс */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.gallery-lightbox__close:hover {
  background: var(--accent);
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--fg);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.gallery-lightbox__nav:hover {
  background: var(--accent);
}
.gallery-lightbox__nav--prev { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }
.gallery-lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Видео на карточке игры */
.game-videos {
  display: grid;
  gap: 1.25rem;
}
.game-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.game-video-wrap iframe,
.game-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: none;
}
.game-video-player {
  background: #000;
  cursor: pointer;
  min-height: 300px;
}
.game-video-player::-webkit-media-controls-panel {
  background-color: rgba(0,0,0,0.7);
}
.game-video-player::-webkit-media-controls-play-button {
  display: block;
}
.game-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}
.game-video-link:hover {
  background: rgba(255, 152, 0, 0.15);
}

/* Галерея видео (превью, открытие в модалке) */
/* Список встроенных видео (как трейлер под постером) */
.game-videos-embeds {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.game-videos-embeds__item {
  width: 100%;
}
.game-videos-embeds__item .page__trailer-embed {
  max-width: 100%;
}

/* Страница «Видео»: галерея по 3 в строку */
.page-game-videos .game-videos-embeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.page-game-videos .game-videos-embeds__item {
  width: auto;
  min-width: 0;
}
.page-game-videos .game-videos-embeds__item .page__trailer-embed {
  width: 100%;
}
@media (max-width: 900px) {
  .page-game-videos .game-videos-embeds {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .page-game-videos .game-videos-embeds {
    grid-template-columns: 1fr;
  }
}

.game-videos-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.game-video-thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.game-video-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.game-video-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-video-thumb__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.95rem;
  background: var(--bg-card);
}
.game-video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2.5rem;
  opacity: 0.5;
  transition: opacity 0.15s;
  pointer-events: none;
}
.game-video-thumb:hover .game-video-thumb__play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

/* Модалка видео */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.video-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.video-lightbox__close:hover {
  background: var(--accent);
}
.video-lightbox__content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lightbox__player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video-lightbox__iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}
.video-lightbox__video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Похожие игры */
.similar-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.similar-game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.similar-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 152, 0, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.similar-game-card__img {
  aspect-ratio: 460/215;
  overflow: hidden;
  background: var(--bg);
}
.similar-game-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.similar-game-card:hover .similar-game-card__img img {
  transform: scale(1.05);
}
.similar-game-card__body {
  padding: 0.6rem 0.75rem;
  flex: 1;
  min-width: 0;
}
.similar-game-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fg);
  transition: color 0.15s;
}
.similar-game-card:hover .similar-game-card__title {
  color: var(--accent);
}
.similar-game-card__year {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

/* Блок скачивания торрента */
.game-block--download {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
  border-color: rgba(255, 152, 0, 0.3);
}
.torrent-download {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.35);
  align-self: flex-start;
}
.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}
.btn-download__icon {
  font-size: 1.25rem;
  line-height: 1;
}
.btn-download__text {
  flex: 1;
}
.btn-download__size {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.95;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.game-downloads-count {
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.game-downloads-count strong {
  color: var(--accent);
  font-weight: 600;
}

/* Блок «Состав торрента» (отдельный блок под описанием) */
.game-block--torrent-files {
  border-color: rgba(255, 152, 0, 0.2);
}
.game-block--torrent-files .game-block__title {
  color: var(--fg-muted);
}
.torrent-files-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.torrent-files-block__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
  color: var(--fg);
}
.torrent-files-block__stat {
  font-weight: 500;
}
.torrent-files-block__sep {
  color: var(--fg-muted);
  user-select: none;
}
.torrent-files-block__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.torrent-files-block__toggle:hover {
  border-color: var(--accent);
  background: rgba(255, 152, 0, 0.08);
  color: var(--accent);
}
.torrent-files-block__toggle-icon {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.2s;
}
.torrent-files-block__toggle[aria-expanded="true"] .torrent-files-block__toggle-icon {
  transform: rotate(0deg);
}
.torrent-files-block__empty {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.torrent-files-list {
  margin-top: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.torrent-files-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.torrent-files-list__title {
  color: var(--fg);
}
.torrent-files-list__count {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.torrent-files-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}
.torrent-files-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  gap: 1rem;
}
.torrent-files-list__item:last-child {
  border-bottom: none;
}
.torrent-files-list__item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.torrent-files-list__path {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--fg);
  word-break: break-all;
}
.torrent-files-list__size {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Список файлов в торренте (старый блок, оставлен для совместимости) */
.torrent-files {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.torrent-files__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}
.torrent-files__title {
  color: var(--fg);
}
.torrent-files__count {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.torrent-files__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}
.torrent-files__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.torrent-files__item:last-child {
  border-bottom: none;
}
.torrent-files__item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.torrent-files__path {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--fg);
  word-break: break-all;
  padding-right: 1rem;
}
.torrent-files__size {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.page-404 {
  text-align: center;
  padding: 3rem 1rem;
}
.page-404 h1 {
  font-size: 4rem;
  margin: 0;
  color: var(--fg-muted);
}
.page-404 a {
  color: var(--accent);
  text-decoration: none;
}
.page-404 a:hover {
  text-decoration: underline;
}

/* Список категорий */
.page-categories-list {
  max-width: 900px;
}
.categories-intro {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  gap: 1rem;
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  transform: translateY(-2px);
}
.category-card__content {
  flex: 1;
  min-width: 0;
}
.category-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.category-card__count {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.category-card__arrow {
  font-size: 1.2rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.category-card:hover .category-card__arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.category-card--russian {
  border-color: rgba(45, 138, 62, 0.5);
  background: rgba(45, 138, 62, 0.08);
}
.category-card--russian .category-card__title {
  color: #2d8a3e;
}
.category-card--russian:hover {
  border-color: #2d8a3e;
  background: rgba(45, 138, 62, 0.12);
}
.languages-intro,
.years-intro,
.developers-intro,
.publishers-intro {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Страница поиска */
.page-search {
  width: 100%;
}
.search-form-wrapper {
  margin-bottom: 2rem;
}
.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}
.search-form__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.search-form__input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-form__input::placeholder {
  color: var(--fg-muted);
}
.search-form__button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-form__button:hover {
  background: var(--accent-hover);
}
.search-form__button:active {
  background: var(--accent);
}

.search-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.search-empty__text {
  margin: 1rem 0;
  color: var(--fg-muted);
  font-size: 1.1rem;
}
.search-empty__text strong {
  color: var(--fg);
  font-weight: 600;
}
.search-empty__hint {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Таблица системных требований */
.sys-req-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
.sys-req-table-wrap--full {
  margin: 1.5rem 0;
}
.sys-req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.sys-req-table--full {
  font-size: 0.95rem;
}
.sys-req-table__th,
.sys-req-table__cell {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.sys-req-table__th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.sys-req-table__th--param {
  width: 20%;
  min-width: 120px;
}
.sys-req-table__th--min,
.sys-req-table__th--rec {
  width: 40%;
}
.sys-req-table__row:last-child .sys-req-table__cell {
  border-bottom: none;
}
.sys-req-table__row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.sys-req-table__cell--param {
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}
.sys-req-table__cell--min,
.sys-req-table__cell--rec {
  color: var(--fg);
  word-break: break-word;
}
.sys-req-table__cell--rec {
  background: rgba(255, 152, 0, 0.03);
}

/* Мобильная адаптация таблицы требований */
@media (max-width: 640px) {
  .sys-req-table {
    font-size: 0.85rem;
  }
  .sys-req-table__th,
  .sys-req-table__cell {
    padding: 0.75rem 0.625rem;
  }
  .sys-req-table__th--param {
    width: auto;
    min-width: 90px;
  }
}

/* Страница требований - сообщение об отсутствии данных */
.page__no-data {
  color: var(--fg-muted);
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

/* Бейдж игры для подстраниц */
.game-badge {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.game-badge:hover {
  border-color: var(--fg-muted);
}
.game-badge__image-link {
  flex-shrink: 0;
  display: block;
  width: 230px;
  height: 107px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-badge__image-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.game-badge__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-badge__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.game-badge__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.game-badge__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.game-badge__title-wrap {
  min-width: 0;
}
.game-badge__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-badge__title:hover {
  color: var(--accent);
}
.game-badge__version {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.game-badge__mc {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.game-badge__mc-icon {
  font-size: 0.85rem;
}
.game-badge__mc--excellent {
  background: rgba(102, 204, 51, 0.15);
  color: #66cc33;
}
.game-badge__mc--good {
  background: rgba(102, 204, 51, 0.12);
  color: #7fba3d;
}
.game-badge__mc--avg {
  background: rgba(255, 204, 51, 0.12);
  color: #ffcc33;
}
.game-badge__mc--poor {
  background: rgba(255, 102, 51, 0.12);
  color: #ff6633;
}
.game-badge__mc--bad {
  background: rgba(255, 51, 51, 0.12);
  color: #ff3333;
}
.game-badge__genres {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-badge__genre {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.game-badge__genre:hover {
  color: var(--accent);
}
.game-badge__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.game-badge__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.game-badge__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.game-badge__meta-item a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.game-badge__meta-item a:hover {
  color: var(--accent);
}
.game-badge__meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}
.game-badge__download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.game-badge__download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.game-badge__download-icon {
  width: 16px;
  height: 16px;
}

/* Бейдж игры - мобильная адаптация */
@media (max-width: 600px) {
  .game-badge {
    flex-direction: column;
    gap: 1rem;
  }
  .game-badge__image-link {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
  }
  .game-badge__header {
    flex-wrap: wrap;
  }
  .game-badge__title {
    white-space: normal;
  }
  .game-badge__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .game-badge__meta {
    gap: 0.4rem 1rem;
  }
  .game-badge__download {
    width: 100%;
    justify-content: center;
  }
}
