body {
  background-color: #f5f5f5;
}
.screenshot-img {
  transition: transform 0.3s ease;
}
.screenshot-img:hover {
  transform: scale(1.05);
}
.tab-btn.active {
  border-bottom: 2px solid #7c3aed !important;
  color: #7c3aed !important;
}
.mobile-menu {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.3s ease !important;
}
.mobile-menu.active {
  max-height: 500px !important;
}
.tab-content {
  display: none !important;
}
.tab-content.active {
  display: block !important;
}

.game-card:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: #7c3aed !important;
    color: white;
}

.filter-sidebar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.filter-sidebar.active {
    max-height: 800px;
}

.tag-item:hover {
    background-color: #7c3aed !important;
    color: white;
}

.dropdown-menu {
    display: none;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown.active .dropdown-menu {
    display: block;
}
@media (max-width: 640px) {
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

@media (max-width: 400px) {
    #langSwitcher {
        display: none;
    }
}

#tab0 h2 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: bold;
}
#tab0 h3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: bold;
}
.logo {
    background: linear-gradient(to right, #8b5cf6, #c084fc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
.recently-played-container {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 16px;
}

/* 卡片容器：桌面端采用网格布局 */
.recently-played-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* 卡片样式 */
.rp-item {
  background: #ffffff10;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}

.rp-item:hover {
  transform: translateY(-4px);
}

.rp-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.rp-name {
  font-size: 14px;
  margin-top: 2px;
  color: #fff;
  text-align: center;
}

/* 📱 Mobile: 显示水平滑动，避免挤成一列 */
@media (max-width: 640px) {
  .recently-played-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
  }

  .rp-item {
    min-width: 140px;
    flex-shrink: 0;
  }
}