.m-game-list .m-category-scroll__content{padding:0;margin:0}
.lEAWeRzbdY .games-section{padding:0}.lEAWeRzbdY .games-section .m-category-scroll__content{margin:0}.lEAWeRzbdY .games-section .m-category-scroll__header{padding:0 0 0 var(--sectionPadding)}.lEAWeRzbdY .games-section .m-counter{display:none}.games-section .m-category-scroll__content{padding:0 16px !important}
.BPl8JW0{display:flex}
.m-game-list-header img.category-vip-icon{width:54px;height:24px}.lEAWeRzbdY .m-game-list-header img.category-vip-icon{width:40px;height:18px}
.lEAWeRzbdY .my-top-wins .m-segment-control{margin-right:var(--sectionPadding)}.my-top-wins .Card-Tags__one{white-space:nowrap}

/* === Desktop: Top Games → 6 колонок, квадратные превью, заголовок под картинкой === */
@media (min-width: 1024px) {

  /* GRID на 6 колонок */
  .games-section .m-category-scroll__content--cols6 {
    --gap-games: 24px;
    --card-radius: 16px;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: var(--gap-games) !important;
    scroll-snap-type: none !important;
  }
  .games-section .m-category-scroll__wrapper { overflow: visible !important; }

  /* айтем как обычный блок (не флекс-ячейка) */
  .games-section .m-category-scroll__content--cols6 > .m-category-scroll__item {
    display: block !important;
    flex: initial !important;
    width: auto !important;
    max-width: none !important;
  }

  /* карточка = колонка: медиа сверху, подпись снизу */
  .games-section .m-category-scroll__content--cols6 .m-game-card {
    display: flex !important;
    flex-direction: column !important;
  }

  /* медиа-контейнер: квадрат 1:1, обрезаем края */
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--card-radius) !important;
    overflow: hidden !important;
  }

  /* картинка/превью заполняет m-game-main целиком */
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main .m-card-thumb,
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main .m-card-thumb-preview,
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main .m-cdn-image,
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main img,
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-main picture img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    max-width: none !important;
  }

  /* подпись: ниже картинки, без оверлея */
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-footer {
    position: static !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    transform: none !important;
    margin-top: 8px !important;
    padding: 0 2px 0 2px !important;
    display: block !important;
    font-size: 14px;
    line-height: 1.25;
    /* два ряда + обрезка, чтобы карточки были ровнее */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Desktop: фиксируем высоту подписи, чтобы ряды были ровными */
@media (min-width: 1024px) {
  .games-section .m-category-scroll__content--cols6 {
    row-gap: 28px !important;              /* чутка больше воздуха между рядами */
  }

  /* Карточка = колонка: медиа сверху, подпись снизу */
  .games-section .m-category-scroll__content--cols6 .m-game-card {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Квадратное превью уже есть (aspect-ratio: 1/1), оставляем */

  /* Подпись: всегда две строки по 1.25em — одинаковая высота у всех */
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-footer {
    margin-top: 8px !important;
    line-height: 1.25 !important;
    min-height: calc(1.25em * 2) !important;   /* фикс на две строки */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    white-space: normal !important;            /* чтобы переносилось */
  }
}

/* Compact mode for Top Games (только ужимаем воздух) */
@media (min-width: 1024px) {
  /* меньше промежутки между карточками */
  .games-section .m-category-scroll__content--cols6 {
    --gap-games: 16px;           /* было 24px — можно 14px, если хочешь ещё плотнее */
    row-gap: 18px !important;    /* вертикальный зазор между рядами */
  }

  /* меньше зазор между картинкой и подписью */
  .games-section .m-category-scroll__content--cols6 .m-game-card {
    gap: 6px !important;         /* было flex-колонка — gap работает как отступ между media и подписью */
  }

  /* подпись: оставляем ровную высоту (2 строки), но уменьшим верхний отступ */
  .games-section .m-category-scroll__content--cols6 .m-game-card .m-game-footer {
    margin-top: 4px !important;               /* было 8px */
    min-height: calc(1.25em * 2) !important;  /* фикс, чтобы ряды не «прыгали» */
  }

  /* на всякий уберём случайные внутренние маргины у ячейки */
  .games-section .m-category-scroll__content--cols6 > .m-category-scroll__item {
    margin: 0 !important;
    padding: 0 !important;
  }
}
