/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --accent-dark: #e84393;
  --dark: #0a0a1a;
  --dark-2: #141428;
  --dark-3: #1e1e3a;
  --dark-4: #2d2d5e;
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --text-light: #b8b8d0;
  --border: #2a2a50;
  --card-bg: #16162e;
  --card-hover: #1c1c3a;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-2: linear-gradient(135deg, #00cec9, #55efc4);
  --gradient-3: linear-gradient(135deg, #fd79a8, #e84393);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1040 40%, #2d1b69 70%, #0a0a1a 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 32px rgba(108,92,231,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: #fff;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-2);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ========== Header / Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 0.5rem 1.15rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  border-radius: 10px;
  transition: all 0.35s ease;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::before {
  width: 200%;
  height: 200%;
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-search input {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: var(--text);
  font-size: 0.9rem;
  width: 200px;
  transition: var(--transition);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--primary);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.nav-search .search-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-search {
  position: relative;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
  padding: 180px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,206,201,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-section {
  padding-top: 120px !important;
  background: var(--gradient-hero) !important;
}

.hero-tagline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 92, 231, 0.15) !important;
  border: 1px solid rgba(108, 92, 231, 0.3) !important;
  border-radius: 50px !important;
  padding: 0.4rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--primary-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 1.5rem !important;
  word-break: normal !important;
  overflow: visible !important;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 1.25rem !important;
  background: linear-gradient(135deg, #fff 0%, #e0e0f0 40%, var(--primary-light) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.hero-description {
  font-size: 1.15rem !important;
  color: var(--text-light) !important;
  line-height: 1.7 !important;
  margin-bottom: 0.75rem !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-subdescription {
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  margin-bottom: 2rem !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-stats {
  display: flex !important;
  gap: 2.5rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(108, 92, 231, 0.15) !important;
}

.stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.3rem !important;
  position: relative !important;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--dark-4), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: var(--gradient-1) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  line-height: 1.2 !important;
}

.stat-label {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.hero-actions {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.hero-actions .btn-primary {
  background: var(--gradient-1) !important;
  border: none !important;
  color: #fff !important;
  padding: 0.875rem 2rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4) !important;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5) !important;
}

.hero-actions .btn {
  border: none !important;
}

/* ========== Star Rating (no FontAwesome) ========== */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0;
}

.star-rating .star-icon {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.star-rating .star-full {
  color: #fbbf24;
}

.star-rating .star-full::before {
  content: '★';
}

.star-rating .star-empty {
  color: var(--dark-4);
}

.star-rating .star-empty::before {
  content: '☆';
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--dark-3);
  border-color: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-3);
  color: #fff;
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(253, 121, 168, 0.45);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ========== Section ========== */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-header h2 {
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}

.section-header .view-all {
  color: var(--primary-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.section-header .view-all:hover {
  color: var(--secondary);
}

/* ========== Game Card ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: var(--shadow-hover);
}

.game-card-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--dark-3);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.08);
}

.game-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gradient-3);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.game-card-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  color: #ffd700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.game-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-plays {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.game-card-btn {
  background: var(--gradient-1);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.game-card-btn:hover {
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
  transform: translateY(-1px);
}

/* ========== Game Row (List Page Horizontal) ========== */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30,30,58,0.6) 100%);
  border: 1px solid rgba(108,92,231,0.1);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.game-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6c5ce7, #fd79a8);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.game-row:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.15);
}

.game-row:hover::before {
  opacity: 1;
}

.game-row-thumb {
  width: 160px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-row:hover .game-row-thumb img {
  transform: scale(1.1);
}

.game-row-info {
  flex: 1;
  min-width: 0;
}

.game-row-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.game-row-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.game-row-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.game-row-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-row-meta span:first-child {
  color: #ffd700;
}

.game-row-action {
  background: var(--gradient-1);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.game-row:hover .game-row-action {
  box-shadow: 0 4px 15px rgba(108,92,231,0.4);
  transform: translateY(-1px);
}

/* ========== Category Cards ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(30,30,58,0.6) 100%);
  border: 1px solid rgba(108,92,231,0.1);
  border-radius: 16px;
  padding: 2.75rem 1.5rem 2.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(108,92,231,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.category-card:hover::after {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow:
    0 12px 40px rgba(108,92,231,0.2),
    0 0 0 1px rgba(108,92,231,0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
  background: linear-gradient(145deg, rgba(30,30,70,0.9) 0%, rgba(20,20,50,0.8) 100%);
}

.category-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--dark-3) 0%, rgba(45,45,94,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.4rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(108,92,231,0.08);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  transform: scale(1.15) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
  border-color: transparent;
}

.category-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.category-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Tags Page ========== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 0;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
}

.tag-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.tag-item .tag-count {
  background: var(--dark-3);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-item:hover .tag-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.tag-item.active {
  background: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.tag-item.active .tag-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ========== List Page Filters ========== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.filter-group select {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: var(--primary);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .active {
  background: var(--gradient-1);
  color: #fff;
  border: none;
}

/* ========== Pagination Bar (tags page) ========== */
.pagination-bar {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination-container nav.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.pagination-item.active .pagination-link {
  background: var(--gradient-1);
  border-color: transparent;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.pagination-link.prev,
.pagination-link.next {
  font-size: 1.1rem;
  padding: 0 0.75rem;
}

.pagination-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========== Game Detail ========== */
.detail-hero {
  padding: 120px 0 60px;
  background: var(--gradient-hero);
  position: relative;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: 0.1;
}

.detail-content {
  position: relative;
  z-index: 1;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.detail-breadcrumb a {
  color: var(--text-muted);
}

.detail-breadcrumb a:hover {
  color: var(--primary-light);
}

.detail-breadcrumb .sep {
  color: var(--dark-4);
}

.detail-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.detail-info h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.detail-meta-item .star {
  color: #ffd700;
}

.detail-screenshot {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.detail-screenshot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.detail-description h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-description p {
  margin-bottom: 1rem;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-item .feature-icon {
  width: 40px;
  height: 40px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}

.sidebar-card-body {
  padding: 1.25rem;
}

.sidebar-game-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 80, 0.5);
}

.sidebar-info-row:last-child {
  border-bottom: none;
}

.sidebar-info-row .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-info-row .value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  padding: 0.3rem 0.8rem;
  background: var(--dark-3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: var(--transition);
}

.sidebar-tag:hover {
  background: var(--primary);
  color: #fff;
}

.related-game {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(42, 42, 80, 0.5);
  transition: var(--transition);
}

.related-game:last-child {
  border-bottom: none;
}

.related-game:hover {
  opacity: 0.8;
}

.related-game img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.related-game-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.related-game-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== Page Header (tags, list, about, etc.) ========== */
.page-header {
  padding: 120px 0 50px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== About Page ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.team-card h4 {
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== Contact Page ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========== Privacy Page ========== */
.policy-content {
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.policy-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content ul li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.policy-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  /* margin-top: 2rem; */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  /* border-top: 1px solid var(--border); */
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.6);
}

/* ========== Loading Skeleton ========== */
.skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .detail-main {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-2);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 2.25rem !important;
  }

  .hero-section {
    padding-top: 100px !important;
  }

  .hero-stats {
    gap: 1.5rem !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 1.85rem !important;
  }

  .hero-section {
    padding-top: 90px !important;
  }

  .hero-stats {
    gap: 1rem !important;
  }

  .stat-number {
    font-size: 1.25rem !important;
  }

  .stat-label {
    font-size: 0.7rem !important;
  }

  .stat-item::after {
    height: 24px;
    right: -0.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-row {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .game-row-thumb {
    width: 120px;
    height: 100px;
  }
  .game-row-info p {
    -webkit-line-clamp: 1;
  }
  .game-row-action {
    width: 100%;
    text-align: center;
  }
}

/* ========== Section Decorative Backgrounds ========== */
.section-featured {
  position: relative;
  overflow: hidden;
}
.section-featured::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253,121,168,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.section-featured::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108,92,231,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-trending {
  position: relative;
  background: linear-gradient(180deg, var(--dark-2) 0%, rgba(14,14,32,0.95) 50%, var(--dark-2) 100%);
  overflow: hidden;
}
.section-trending::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,92,231,0.5), rgba(0,206,201,0.5), transparent);
}
.section-trending::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,206,201,0.5), rgba(108,92,231,0.5), transparent);
}

.section-new {
  position: relative;
  overflow: hidden;
}
.section-new::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(0,206,201,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.section-new::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,92,231,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ========== Section Header Upgrade ========== */
.section-header {
  position: relative;
}
.section-header h2 {
  font-size: 1.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}
.section-header .view-all {
  position: relative;
  padding: 0.45rem 1.1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: var(--transition);
}
.section-header .view-all:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

/* ========== Featured Games - Ranked List Style (Premium) ========== */
.featured-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30,30,58,0.6) 100%);
  border: 1px solid rgba(108,92,231,0.1);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
}

.featured-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #fd79a8, #6c5ce7, #00cec9);
  opacity: 0;
  transition: all 0.35s ease;
  border-radius: 0 0 4px 4px;
}

.featured-item:hover::before {
  opacity: 1;
  height: 4px;
  box-shadow: 0 0 12px rgba(253,121,168,0.4);
}

.featured-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(253,121,168,0.08) 0%, rgba(108,92,231,0.04) 50%, transparent 100%);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
.featured-item:hover::after {
  opacity: 1;
}

.featured-item:hover {
  background: linear-gradient(135deg, rgba(40,25,60,0.9) 0%, rgba(25,20,50,0.7) 100%);
  border-color: rgba(253, 121, 168, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 12px 36px rgba(253,121,168,0.15),
    0 0 0 1px rgba(253,121,168,0.08),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.featured-rank {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--dark-3), rgba(45,45,94,0.6));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.35s ease;
  position: relative;
  border: 1px solid rgba(108,92,231,0.06);
}

.featured-item-top .featured-rank {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  box-shadow: 0 4px 16px rgba(253,121,168,0.4);
  border-color: transparent;
  font-size: 1.4rem;
}
.featured-item-top .featured-rank::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  background: linear-gradient(135deg, #fd79a8, #e84393);
  z-index: -1;
  opacity: 0.25;
  filter: blur(6px);
  animation: featured-rank-glow 2s ease-in-out infinite;
}

@keyframes featured-rank-glow {
  0%, 100% { opacity: 0.25; filter: blur(6px); }
  50% { opacity: 0.5; filter: blur(10px); }
}

.featured-item:nth-child(2) .featured-rank {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108,92,231,0.35);
  border-color: transparent;
}

.featured-item:nth-child(3) .featured-rank {
  background: linear-gradient(135deg, #00cec9, #55efc4);
  color: #0a0a1a;
  box-shadow: 0 4px 14px rgba(0,206,201,0.35);
  border-color: transparent;
}

.featured-item:hover .featured-rank {
  background: linear-gradient(135deg, #fd79a8, #e84393) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(253,121,168,0.4) !important;
  transform: scale(1.08);
  border-color: transparent !important;
}

.featured-thumb {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(253,121,168,0.1);
  position: relative;
}
.featured-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253,121,168,0.2), transparent);
  opacity: 0;
  transition: all 0.35s ease;
}
.featured-item:hover .featured-thumb::after {
  opacity: 1;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-item:hover .featured-thumb img {
  transform: scale(1.15);
}

.featured-info {
  width: 100%;
  text-align: center;
  min-width: 0;
}

.featured-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  letter-spacing: -0.1px;
}
.featured-item:hover .featured-info h4 {
  color: var(--accent);
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.featured-cat {
  color: var(--secondary);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  background: rgba(0,206,201,0.1);
  border-radius: 50px;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0,206,201,0.12);
}

.featured-plays {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.featured-star {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255,215,0,0.3);
}

.featured-arrow {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--dark-3), rgba(45,45,94,0.4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
  border: 1px solid rgba(108,92,231,0.06);
}

.featured-item:hover .featured-arrow {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(253,121,168,0.4);
  border-color: transparent;
}

/* ========== Trending Games - Horizontal Ranked List (Premium) ========== */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  min-height: 100px;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30,30,58,0.6) 100%);
  border: 1px solid rgba(108,92,231,0.1);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
}

/* Animated gradient left border */
.trending-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6c5ce7, #00cec9, #fd79a8);
  opacity: 0;
  transition: all 0.35s ease;
  border-radius: 0 4px 4px 0;
}

.trending-item:hover::before {
  opacity: 1;
  width: 5px;
  box-shadow: 0 0 12px rgba(108,92,231,0.4);
}

/* Background glow on hover */
.trending-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 350px;
  background: linear-gradient(90deg, rgba(108,92,231,0.08) 0%, rgba(0,206,201,0.03) 50%, transparent 100%);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
.trending-item:hover::after {
  opacity: 1;
}

.trending-item:hover {
  background: linear-gradient(135deg, rgba(30,30,70,0.9) 0%, rgba(20,20,50,0.7) 100%);
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateX(8px);
  box-shadow:
    0 8px 30px rgba(108,92,231,0.15),
    0 0 0 1px rgba(108,92,231,0.08),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.trending-rank {
  display: none;
  background: linear-gradient(135deg, var(--dark-3), rgba(45,45,94,0.6));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.35s ease;
  position: relative;
  border: 1px solid rgba(108,92,231,0.06);
}

.trending-item:nth-child(1) .trending-rank {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  box-shadow: 0 4px 16px rgba(255,215,0,0.35);
  border-color: transparent;
}
.trending-item:nth-child(1) .trending-rank::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  z-index: -1;
  opacity: 0.25;
  filter: blur(6px);
  animation: rank-glow 2s ease-in-out infinite;
}

@keyframes rank-glow {
  0%, 100% { opacity: 0.25; filter: blur(6px); }
  50% { opacity: 0.45; filter: blur(10px); }
}

.trending-item:nth-child(2) .trending-rank {
  background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
  color: #1a1a2e;
  box-shadow: 0 4px 14px rgba(192,192,192,0.3);
  border-color: transparent;
}

.trending-item:nth-child(3) .trending-rank {
  background: linear-gradient(135deg, #e8a86d, #b06820);
  color: #1a1a2e;
  box-shadow: 0 4px 14px rgba(205,127,50,0.3);
  border-color: transparent;
}

.trending-item:hover .trending-rank {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(108,92,231,0.4) !important;
  transform: scale(1.08);
  border-color: transparent !important;
}

.trending-thumb {
  width: 150px;
  height: 100%;
  min-height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(108,92,231,0.1);
  position: relative;
}
.trending-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.2), transparent);
  opacity: 0;
  transition: all 0.35s ease;
}
.trending-item:hover .trending-thumb::after {
  opacity: 1;
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trending-item:hover .trending-thumb img {
  transform: scale(1.15);
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-info h4 {
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  letter-spacing: -0.1px;
}
.trending-item:hover .trending-info h4 {
  color: var(--primary-light);
}

.trending-info .trending-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trending-info .trending-meta .trending-cat {
  color: var(--secondary);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  background: rgba(0,206,201,0.1);
  border-radius: 50px;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0,206,201,0.12);
}

.trending-info .trending-meta .trending-plays {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trending-info .trending-meta .trending-star {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255,215,0,0.3);
}

.trending-arrow {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--dark-3), rgba(45,45,94,0.4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
  border: 1px solid rgba(108,92,231,0.06);
}

.trending-item:hover .trending-arrow {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(108,92,231,0.4);
  border-color: transparent;
}

/* ========== New Releases - Compact Grid Cards (Premium) ========== */
.new-releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.new-release-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(30,30,58,0.6) 100%);
  border: 1px solid rgba(108,92,231,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
}
/* Top accent line */
.new-release-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #00cec9, #fd79a8);
  background-size: 200% 100%;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  animation: gradient-flow 3s ease infinite;
}
.new-release-card:hover::before {
  opacity: 1;
}

.new-release-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 206, 201, 0.4);
  box-shadow:
    0 16px 48px rgba(0, 206, 201, 0.12),
    0 0 0 1px rgba(0,206,201,0.1),
    0 0 60px rgba(108,92,231,0.06);
  background: linear-gradient(145deg, rgba(30,30,70,0.9) 0%, rgba(20,20,50,0.7) 100%);
}

.new-release-card .nr-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-3) 0%, rgba(20,20,50,0.8) 100%);
}

.new-release-card .nr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.new-release-card:hover .nr-image img {
  transform: scale(1.15);
}

.new-release-card .nr-new-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #00cec9, #55efc4);
  color: #0a0a1a;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 3px 12px rgba(0,206,201,0.4);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(0,206,201,0.4); }
  50% { box-shadow: 0 3px 22px rgba(0,206,201,0.7); }
}

.new-release-card .nr-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  color: #ffd700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  border: 1px solid rgba(255,215,0,0.2);
  text-shadow: 0 0 6px rgba(255,215,0,0.3);
}

.new-release-card .nr-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.45), rgba(0,206,201,0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s ease;
}

.new-release-card:hover .nr-play-overlay {
  opacity: 1;
}

.new-release-card .nr-play-overlay .play-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.55);
  transform: scale(0.5);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255,255,255,0.25);
}

.new-release-card:hover .nr-play-overlay .play-circle {
  transform: scale(1);
}

.new-release-card .nr-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.new-release-card .nr-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--secondary);
  margin-bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.new-release-card .nr-category::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 6px rgba(0,206,201,0.5);
}

.new-release-card .nr-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  letter-spacing: -0.2px;
}
.new-release-card:hover .nr-title {
  color: var(--primary-light);
}

.new-release-card .nr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-release-card .nr-plays {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.new-release-card .nr-date {
  font-size: 0.7rem;
  color: var(--text-light);
  background: rgba(0,206,201,0.08);
  border: 1px solid rgba(0,206,201,0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ========== Responsive for new list styles ========== */
@media (max-width: 1024px) {
  .featured-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .featured-item {
    padding: 1rem;
  }
  .featured-thumb {
    height: 95px;
  }
}

@media (max-width: 768px) {
  .featured-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-item {
    padding: 0.9rem;
    gap: 0.7rem;
  }
  .featured-thumb {
    height: 85px;
  }
  .featured-rank {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .featured-item-top .featured-rank {
    font-size: 1.1rem;
  }
  .trending-item {
    gap: 0.85rem;
    padding: 1.2rem 1.15rem;
    min-height: 80px;
  }
  .trending-thumb {
    width: 110px;
    height: 68px;
  }
  .new-releases-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 1rem;
  }
  .new-release-card .nr-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .featured-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .featured-item {
    padding: 0.85rem;
    gap: 0.6rem;
  }
  .featured-thumb {
    height: 80px;
  }
  .featured-info .featured-meta {
    gap: 0.3rem;
  }
  .featured-arrow {
    width: 34px;
    height: 34px;
  }
  .featured-rank {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .featured-item-top .featured-rank {
    font-size: 1rem;
  }
  .trending-info .trending-meta {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }
  .trending-arrow {
    width: 36px;
    height: 36px;
  }
  .new-releases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .new-release-card .nr-image {
    height: 130px;
  }
  .new-release-card .nr-body {
    padding: 0.9rem 1rem 1rem;
  }
  .category-icon {
    width: 64px;
    height: 64px;
  }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


.ellipsis-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 控制显示几行 */
  -webkit-box-orient: vertical;
  /* 下面两个可选，让换行更自然 */
  word-break: break-all;
  line-height: 1.5;
}