.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
}

.card {
    min-width: calc(100% / 3);
    flex: 0 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        min-width: 50%;
    }
}

@media (max-width: 480px) {
    .card {
        min-width: 100%;
    }
}

.rankings-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: thin;
}

.rankings-container::-webkit-scrollbar {
  height: 8px;
}

.rankings-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.rankings-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.rankings-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.ranking-category {
  flex: 0 0 auto;
  min-width: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ranking-title {
  font-size: 18px;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
  color: #333;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.ranking-item:hover {
  background-color: #e9ecef;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e9ecef;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
}

.rank-number.rank-1 {
  background-color: #ffd700;
  color: #000;
}

.rank-number.rank-2 {
  background-color: #c0c0c0;
  color: #000;
}

.rank-number.rank-3 {
  background-color: #cd7f32;
  color: #fff;
}

.game-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.game-thumb {
  width: 50px;
  height: 50px;
  overflow: hidden;
  background-color: #ddd;
  border-radius: 6px;
  margin-right: 12px;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}
.game-thumb img{
  width: 100%;
  height: 100%;
}

.game-details {
  flex: 1;
}

.game-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.game-stats {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ranking-category {
    min-width: 280px;
  }

  .game-thumb {
    width: 40px;
    height: 40px;
  }
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.list-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.list-item-thumb {
  flex: 0 0 auto;
  margin-right: 15px;
}

.list-item-thumb .card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.list-item-desc {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-meta {
  display: flex;
  gap: 15px;
}

.meta-item {
  font-size: 12px;
  color: #999;
}

.list-item-action {
  flex: 0 0 auto;
  margin-left: 15px;
}

.play-btn {
  padding: 8px 16px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-btn:hover {
  background: #e55a2b;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item-thumb {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .list-item-thumb .card-thumb {
    width: 100%;
    height: 120px;
  }

  .list-item-action {
    margin-left: 0;
    align-self: flex-end;
    margin-top: 10px;
  }

  .list-item-meta {
    flex-wrap: wrap;
  }
}

/* 图标占位符样式 */
.icon-play::before,
.icon-like::before {
  content: "▶";
  margin-right: 4px;
}

.icon-like::before {
  content: "♥";
}
