.slots-main {
  min-width: 0;
  overflow-x: clip;
}

.slots-hero {
  width: 100%;
  margin-top: 0;
  padding-top: 128px;
}

.slots-hero_content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slots-hero_header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.slots-hero_back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #e8ff00;
  color: #19191c;
  font-family: "Onest", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.slots-hero_back:hover {
  opacity: 0.85;
  color: #19191c;
}

.slots-hero_back svg {
  flex-shrink: 0;
}

.slots-hero_title {
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.64px;
  margin: 0;
}

.slots-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: text;
  transition: border-color 0.2s, background 0.2s;
}

.slots-search:focus-within {
  border-color: rgba(232, 255, 0, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.slots-search_icon {
  flex-shrink: 0;
  display: flex;
  color: #9aa1b1;
}

.slots-search_input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
}

.slots-search_input::placeholder {
  color: #9aa1b1;
}

.slots-search_input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.slots-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: #9aa1b1;
  font-family: "Onest", sans-serif;
  font-size: 15px;
  text-align: center;
}

.slots-grid-section {
  width: 100%;
  margin: 24px 0 48px;
}

.slots-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.slots-filter {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #9aa1b1;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slots-filter:hover {
  color: #fff;
  border-color: rgba(232, 255, 0, 0.35);
}

.slots-filter_active {
  background: rgba(232, 255, 0, 0.12);
  border-color: #e8ff00;
  color: #e8ff00;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.game-card {
  display: block;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.game-card_image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 325 / 234;
  border-radius: 13px;
  overflow: hidden;
  background: #1a2228;
}

.game-card_placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2228 0%, #2a3540 100%);
  color: #e8ff00;
  font-family: "Onest", sans-serif;
  font-size: 48px;
  font-weight: 700;
}

.game-card_image {
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.game-card_play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #e8ff00;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-card_image {
  transform: scale(1.04);
}

.game-card:hover .game-card_play {
  opacity: 1;
}

.game-card_title {
  margin-top: 10px;
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* Планшеты и узкий десктоп без бокового меню */
@media (max-width: 1352px) {
  .slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .slots-hero {
    padding-top: 112px;
  }

  .slots-hero_title {
    font-size: 28px;
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Планшет */
@media (max-width: 799px) {
  .slots-hero {
    padding-top: 100px;
  }

  .slots-hero_title {
    font-size: 24px;
  }

  .slots-grid-section {
    margin: 20px 0 40px;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-card_title {
    font-size: 13px;
    margin-top: 8px;
  }

  .game-card_placeholder {
    font-size: 36px;
  }
}

/* Мобильные */
@media (max-width: 499px) {
  .slots-hero {
    padding-top: 92px;
  }

  .slots-hero_title {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .slots-hero_back {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .slots-hero_header {
    gap: 12px;
  }

  .slots-search {
    margin-top: 12px;
    padding: 10px 12px;
  }

  .slots-search_input {
    font-size: 13px;
  }

  .slots-grid-section {
    margin: 16px 0 32px;
  }

  .slots-filters {
    gap: 6px;
    margin-bottom: 14px;
  }

  .slots-filter {
    padding: 6px 10px;
    font-size: 12px;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-card_image-wrap {
    border-radius: 10px;
  }

  .game-card_title {
    font-size: 12px;
    margin-top: 6px;
  }

  .game-card_placeholder {
    font-size: 28px;
  }
}

/* Мобильные: без hover-оверлея Play */
@media (max-width: 799px) {
  .game-card:hover .game-card_image {
    transform: none;
  }

  .game-card:hover .game-card_play {
    opacity: 0;
  }

  .game-card_play {
    opacity: 0 !important;
    pointer-events: none;
  }
}
