.category-body {
  background: #171a22;
  color: #f6f7fb;
}

.category-body::before,
.category-body::after {
  display: none !important;
}

.category-page-main {
  min-height: 70vh;
}

.category-hero {
  padding: 58px 0 36px;
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.28), rgba(13, 16, 24, 0.96)),
    #11141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #8fd3ff;
  color: #121720;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1;
}

.category-hero p {
  max-width: 700px;
  margin: 0;
  color: #c9ced8;
  font-size: 16px;
  line-height: 1.7;
}

.category-list-section {
  padding-top: 28px;
  padding-bottom: 38px;
}

.category-game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-game-card a {
  display: block;
  height: 100%;
  padding: 8px;
  border-radius: 10px;
  background: #20242f;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.category-game-card a:hover {
  transform: translateY(-4px);
  background: #282d3a;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.category-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #090b10;
}

.category-game-card div {
  padding: 10px 4px 4px;
}

.category-game-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.category-game-card span {
  color: #aab1c0;
  font-size: 13px;
}

.category-index-grid .category-game-card img {
  object-fit: contain;
  padding: 18px;
}

.category-empty,
.category-description {
  padding: 26px;
  border-radius: 10px;
  background: #20242f;
}

.category-empty h2 {
  margin: 0 0 10px;
  color: #fff;
}

.category-empty p {
  margin: 0;
  color: #c9ced8;
}

.category-description {
  margin-bottom: 40px;
}

.category-description .game-description {
  max-height: 520px;
  overflow: hidden;
  line-height: 1.8;
}

.category-description .game-description.expanded {
  max-height: none;
}

.list-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.list-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #20242f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.list-pagination a:hover,
.list-pagination a.active {
  background: #8fd3ff;
  color: #121720;
}

@media (max-width: 1180px) {
  .category-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .category-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .category-hero {
    padding: 38px 0 24px;
  }

  .category-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-game-card a {
    padding: 6px;
  }
}
