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

:root {
  --bg-base: #0a0e27;
  --bg-surface: #1a1f3a;
  --bg-elevated: #2a2f4a;
  --bg-hover: #3a3f5a;
  --primary: #ff6b9d;
  --primary-dark: #ff4d7a;
  --primary-light: #ff8fb3;
  --accent: #00d4ff;
  --accent-light: #33dfff;
  --accent-2: #a855f7;
  --accent-3: #f59e0b;
  --accent-4: #10b981;
  --accent-5: #ef4444;
  --text-primary: #ffffff;
  --text-secondary: #e0e7ff;
  --text-muted: #a5b4fc;
  --border: #3a3f5a;
  --border-light: #4a4f6a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(0, 212, 255, 0.4);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.4);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2a1f3a 50%, #1a2f4a 75%, #0a0e27 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navigation Bar */
.nav-bar {
  background: rgba(26, 31, 58, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 107, 157, 0.1);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.6);
  animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link .iconfont {
  font-size: 18px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-link:hover .iconfont {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.6));
}

.nav-link.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
  border: 1px solid rgba(255, 107, 157, 0.3);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.nav-link.active .iconfont {
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
  }
  50% { 
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.9));
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-box .iconfont {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.burger-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

/* Ad Banner */
.ad-banner {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
}

.ad-inner {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.1);
}

.ad-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

/* Hero Banner */
.hero-banner {
  max-width: 1400px;
  margin: 36px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  background-clip: padding-box;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 107, 157, 0.3);
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 107, 157, 0.3); }
  50% { box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 212, 255, 0.4); }
}

.hero-image {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.6) 60%, rgba(10, 14, 39, 0.3) 100%);
}

.hero-info {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff4d7a 100%);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hero-tags .tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-tags .tag .iconfont {
  font-size: 16px;
  color: var(--accent);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  width: fit-content;
  box-shadow: var(--shadow-md), 0 0 25px rgba(255, 107, 157, 0.4);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-link:hover::before {
  left: 100%;
}

.hero-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 212, 255, 0.5);
}

.hero-link .iconfont {
  font-size: 18px;
}

/* Category Bar */
.cat-bar {
  max-width: 1400px;
  margin: 32px auto;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-inner {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  min-width: max-content;
  flex-wrap: nowrap;
}

.cat-btn {
  padding: 10px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-width: fit-content;
}

.cat-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 107, 157, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.cat-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cat-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.cat-btn.active {
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.5), 0 4px 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* Content Wrap */
.content-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* Section */
.section {
  margin-bottom: 50px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-name {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

.section-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.section-more:hover {
  color: var(--primary-light);
}

.section-more .iconfont {
  font-size: 14px;
}

/* Game List */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-flow: dense;
  gap: 22px;
  align-items: stretch;
}

.game-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.game-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 157, 0.3);
}

.game-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

.item-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.item-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

.game-item.big .item-img {
  aspect-ratio: 3 / 2;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

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

.item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.95) 0%, rgba(0, 212, 255, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.game-item:hover .item-overlay {
  opacity: 1;
}

.item-overlay .iconfont {
  animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.item-overlay .iconfont {
  font-size: 55px;
  color: var(--bg-base);
}

.item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  z-index: 2;
  animation: tagGlow 2s ease-in-out infinite;
}

@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 157, 0.5); }
}

.item-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  max-width: 100%;
}

.item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex-shrink: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

.game-item.big .item-name {
  font-size: 20px;
}

.item-info {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: auto;
}

.info-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-3);
  font-weight: 600;
}

.info-plays {
  color: var(--text-muted);
  font-weight: 500;
}

.info-plays::before {
  content: '👁 ';
  margin-right: 2px;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.95) 0%, rgba(10, 14, 39, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 107, 157, 0.2);
  padding: 50px 0 24px;
  margin-top: 70px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b9d, #00d4ff, #a855f7, transparent);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 45px;
  margin-bottom: 35px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-title {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-copy {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.drawer-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: var(--bg-hover);
  color: var(--primary);
  border-color: var(--primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-link:hover {
  background: var(--bg-elevated);
  color: var(--primary);
}

.drawer-link {
  position: relative;
}

.drawer-link .iconfont {
  font-size: 22px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.drawer-link .iconfont::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.drawer-link:hover .iconfont {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4), 0 0 30px rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  border-color: rgba(255, 107, 157, 0.5);
  color: transparent;
  background-image: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
}

.drawer-link:hover .iconfont::after {
  opacity: 0.6;
}

.drawer-line {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.drawer-mask.active {
  opacity: 1;
  visibility: visible;
}

/* Category Header Section */
.category-header-section {
  max-width: 1400px;
  margin: 30px auto;
  padding: 45px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 30px rgba(255, 107, 157, 0.2);
  position: relative;
  overflow: hidden;
}

.category-header-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #ff6b9d, #00d4ff, #a855f7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.category-header-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.category-page-title {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

.category-page-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.category-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  text-shadow: 0 0 25px rgba(255, 107, 157, 0.5);
  animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-list {
    display: none;
  }

  .search-box {
    max-width: 280px;
  }

  .burger-btn {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-info {
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    padding: 40px 30px;
    min-height: auto;
    overflow: visible;
  }
  
  .hero-image {
    aspect-ratio: 16 / 9;
  }

  .game-list {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
    height: 60px;
    justify-content: space-between;
  }

  .brand {
    font-size: 22px;
  }

  .search-box {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-banner {
    margin: 24px auto;
    padding: 0 16px;
  }

  .hero-info {
    padding: 30px 20px;
    gap: 16px;
    overflow: visible;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .hero-text {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .hero-link {
    padding: 12px 24px;
    font-size: 14px;
  }

  .cat-bar {
    margin: 24px auto;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .cat-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .content-wrap {
    padding: 0 16px 50px;
  }

  .game-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .section-name {
    font-size: 26px;
  }

  .game-item.big {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 12px;
    height: 56px;
    justify-content: space-between;
  }

  .brand {
    font-size: 20px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-banner {
    margin: 20px auto;
    padding: 0 12px;
  }

  .hero-info {
    padding: 24px 16px;
    gap: 14px;
    overflow: visible;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .hero-link {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  
  .hero-tags {
    gap: 8px;
  }
  
  .hero-tags .tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  .hero-tags .tag {
    padding: 6px 14px;
    font-size: 13px;
  }

  .cat-bar {
    margin: 20px auto;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .cat-inner {
    gap: 8px;
  }
  
  .cat-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .content-wrap {
    padding: 0 12px 40px;
  }

  .game-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-name {
    font-size: 22px;
  }

  .game-item.big {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 0 16px;
  }

  .mobile-drawer {
    width: 280px;
  }

  .category-header-section {
    margin: 24px auto;
    padding: 35px 24px;
  }

  .category-stats-row {
    gap: 38px;
  }

  .stat-value {
    font-size: 32px;
  }
}

/* ============================================
   Page Content Styles (About, Contact, FAQ, Privacy, Terms)
   ============================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}

.content-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Privacy & Terms specific styles */
.content-box h2 {
  font-size: 24px;
  margin-top: 30px;
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

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

.submit-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
}

/* FAQ Styles */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   Game Detail Page Styles
   ============================================ */
.game-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.detail-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-info h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-meta span {
  padding: 8px 16px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.detail-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
}

.detail-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Search Results Styles */
.results-count-text {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.6;
}

.results-count-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* No Results Styles */
.no-results-wrapper {
  width: 100%;
  margin: 20px 0;
}

.no-results {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.no-results::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
  z-index: 0;
}

.no-results > * {
  position: relative;
  z-index: 1;
}

.no-results-icon {
  margin-bottom: 32px;
  animation: searchPulse 2s ease-in-out infinite;
}

.no-results-icon .iconfont {
  font-size: 80px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

@keyframes searchPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
  }
}

.no-results-title {
  font-size: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.no-results-title-part {
  display: inline-block;
  font-size: 42px;
  font-weight: 900;
  margin: 0 8px;
  letter-spacing: -1px;
}

.no-results-title-part:first-child {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff4d7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results-title-part:last-child {
  background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.no-results-desc strong {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .detail-header {
    grid-template-columns: 1fr;
  }
  
  .detail-info h1 {
    font-size: 32px;
  }
  
  .page-content {
    padding: 30px 16px;
  }
  
  .content-box {
    padding: 30px 20px;
  }
  
  .content-box h2 {
    font-size: 22px;
  }
  
  .no-results {
    padding: 50px 24px;
    border-radius: 20px;
  }

  .no-results-icon .iconfont {
    font-size: 64px;
  }

  .no-results-title-part {
    font-size: 32px;
    margin: 0 4px;
  }

  .no-results-desc {
    font-size: 14px;
  }

  .results-count-text {
    font-size: 14px;
  }
}

/* ============================================
   Search Page Styles
   ============================================ */
.search-form-hero {
  max-width: 700px;
  margin: 30px auto 0;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.search-box-large {
  flex: 1;
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0;
  transition: all 0.3s ease;
  min-width: 0;
  display: block;
}

.search-box-large:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.search-box-large .iconfont {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  z-index: 1;
}

.search-box-large input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

.search-box-large input:focus {
  outline: none;
}

.search-box-large input::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.search-submit-btn .iconfont {
  font-size: 18px;
}

/* Popular Tags */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.popular-tag {
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popular-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popular-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.popular-tag:hover::before {
  opacity: 1;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
}

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

.category-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.4) 0%, rgba(0, 212, 255, 0.4) 100%);
  transform: scale(1.1) rotate(5deg);
}

.category-card-icon .iconfont {
  font-size: 32px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.category-card:hover .category-card-icon .iconfont {
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.6));
}

.category-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-name {
  background: linear-gradient(135deg, #ff6b9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-card-count {
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.category-card:hover .category-card-count {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .category-header-section {
    padding: 35px 20px;
  }

  .search-form-hero {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .search-box-large {
    width: 100%;
  }

  .search-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .popular-tags {
    gap: 8px;
  }

  .popular-tag {
    padding: 8px 16px;
    font-size: 13px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .category-card {
    padding: 20px;
  }

  .category-card-icon {
    width: 50px;
    height: 50px;
  }

  .category-card-icon .iconfont {
    font-size: 28px;
  }

  .category-card-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 16px;
  }

  .category-card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }

  .category-card-icon .iconfont {
    font-size: 24px;
  }

  .category-card-name {
    font-size: 15px;
  }

  .category-card-count {
    font-size: 12px;
  }

  .no-results {
    padding: 40px 20px;
  }

  .no-results-icon .iconfont {
    font-size: 56px;
  }

  .no-results-title-part {
    font-size: 28px;
    margin: 0 3px;
  }

  .no-results-desc {
    font-size: 13px;
    line-height: 1.6;
  }
}
