/* 游戏列表样式。批量改站点时带上这个文件，并在页面里引用。 */

.game-category {
  margin: 28px 0;
  color: #f5f7fb;
  font-family: Inter, "Segoe UI", sans-serif;
}

.game-category .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.game-category .category-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.game-category .see-all-link {
  flex: none;
  color: #ffb703;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.game-category .see-all-link:hover {
  color: #ffd166;
}

.game-category .games-scroll-container {
  position: relative;
}

.game-category .games-scroll {
  overflow: hidden;
}

.game-category .games-scroll-content {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.game-category .games-scroll-content::-webkit-scrollbar {
  display: none;
}

.game-category .game-item {
  flex: 0 0 148px;
  width: 148px;
  color: inherit;
  text-decoration: none;
}

.game-category .game-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #1c2433;
}

.game-category .game-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-category .game-title {
  margin-top: 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-category .game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.game-category .game-badge.new {
  background: #22c55e;
  color: #04140a;
}

.game-category .game-badge.featured {
  background: #ffb703;
  color: #2a1d00;
}

.game-category .game-number {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.game-category .game-number:empty {
  display: none;
}

.game-category .scroll-btn {
  position: absolute;
  top: 62px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 16, 24, 0.82);
  color: #fff;
  cursor: pointer;
}

.game-category .scroll-left {
  left: 6px;
}

.game-category .scroll-right {
  right: 6px;
}

@media (max-width: 720px) {
  .game-category .game-item {
    flex-basis: 124px;
    width: 124px;
  }

  .game-category .scroll-btn {
    display: none;
  }
}
