/* SharpNexus Games - Global Styles */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --secondary: #00CEC9;
  --accent: #FD79A8;
  --accent-orange: #FDCB6E;
  --bg-dark: #0F0F1A;
  --bg-card: #1A1A2E;
  --bg-card-hover: #222240;
  --bg-surface: #16162A;
  --bg-nav: rgba(15, 15, 26, 0.95);
  --text-primary: #FFFFFF;
  --text-secondary: #B2B2CC;
  --text-muted: #6C6C8A;
  --border: #2A2A45;
  --success: #00B894;
  --danger: #E17055;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-width: 1280px;
  --nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 26, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-brand .logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand .brand-name {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.nav-brand .brand-slogan {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.15);
}

.nav-menu li a.active { color: var(--primary-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px 8px 38px;
  color: var(--text-primary);
  font-size: 14px;
  width: 220px;
  transition: all var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  width: 280px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow);
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-result-item .info { flex: 1; }
.search-result-item .info .name { font-size: 14px; font-weight: 600; }
.search-result-item .info .cat { font-size: 12px; color: var(--text-muted); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.15);
}

.mobile-search {
  margin-bottom: 16px;
}

.mobile-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 16px;
}

.mobile-search input::placeholder { color: var(--text-muted); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-bottom: 40px;
}

.banner-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.banner-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.banner-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(0,206,201,0.15));
}

.banner-slide .slide-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 650px;
}

.banner-slide .slide-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-slide .slide-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.banner-slide .slide-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.banner-slide .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.banner-slide .slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.banner-dots .dot.active {
  background: var(--primary-light);
  width: 28px;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}

.banner-nav:hover { background: rgba(255,255,255,0.2); }
.banner-nav.prev { left: 20px; }
.banner-nav.next { right: 20px; }

/* ===== SECTION HEADERS ===== */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon { font-size: 24px; }

.section-link {
  font-size: 14px;
  color: var(--primary-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover { color: var(--secondary); }

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.2);
}

.game-card .card-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.game-card .card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .card-thumb img { transform: scale(1.08); }

.game-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.game-card:hover .card-overlay { opacity: 1; }

.game-card .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.game-card .card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-hot { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-popular { background: var(--accent-orange); color: #000; }
.badge-rising { background: var(--secondary); color: #000; }

.game-card .card-info {
  padding: 12px;
}

.game-card .card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-card .card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-orange);
}

.game-card .card-rating .star { font-size: 12px; }

.game-card .card-category {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.game-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.game-card .card-tags .tag {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
  border-radius: 4px;
  font-weight: 500;
}

/* ===== CATEGORY NAV ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.category-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.category-card .cat-icon { font-size: 28px; }
.category-card .cat-name { font-size: 14px; font-weight: 700; }
.category-card .cat-count { font-size: 12px; color: var(--text-muted); }

/* ===== RANKING ===== */
.ranking-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 4px;
}

.ranking-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.ranking-tab.active {
  background: var(--primary);
  color: #fff;
}

.ranking-tab:hover:not(.active) { color: var(--text-primary); }

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.ranking-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.ranking-item .rank {
  font-size: 18px;
  font-weight: 900;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item .rank.top1 { color: #FFD700; }
.ranking-item .rank.top2 { color: #C0C0C0; }
.ranking-item .rank.top3 { color: #CD7F32; }

.ranking-item .rank-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.ranking-item .rank-info { flex: 1; min-width: 0; }
.ranking-item .rank-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-item .rank-cat { font-size: 12px; color: var(--text-muted); }
.ranking-item .rank-score { font-size: 16px; font-weight: 800; color: var(--accent-orange); flex-shrink: 0; }

/* ===== SERIES ===== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.series-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.series-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.series-card .series-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.series-card .series-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent 50%);
}

.series-card .series-info { padding: 16px; }
.series-card .series-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.series-card .series-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.series-card .series-count { font-size: 12px; color: var(--primary-light); font-weight: 600; }

/* ===== REVIEWS ===== */
.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.reviews-scroll::-webkit-scrollbar { height: 6px; }

.review-card {
  min-width: 300px;
  max-width: 340px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.review-card .review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.review-card .review-player { font-size: 14px; font-weight: 700; }
.review-card .review-game { font-size: 12px; color: var(--text-muted); }
.review-card .review-stars { color: var(--accent-orange); font-size: 13px; margin-bottom: 8px; }
.review-card .review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== GAME DETAIL PAGE ===== */
.game-detail-hero {
  position: relative;
  padding: 48px 0 32px;
}

.game-detail-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.2);
  z-index: 0;
}

.game-detail-hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.game-detail-hero .hero-cover {
  width: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.game-detail-hero .hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-detail-hero .hero-info { flex: 1; }

.game-detail-hero .hero-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.game-detail-hero .hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.game-detail-hero .hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.game-detail-hero .hero-meta .meta-item .val { font-weight: 700; color: var(--accent-orange); }

.game-detail-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-detail-hero .hero-tags .tag {
  font-size: 13px;
  padding: 5px 14px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-weight: 600;
}

.play-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 36px;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.4);
}

.play-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5);
}

/* Game detail sections */
.detail-section {
  margin-bottom: 36px;
}

.detail-back {
  margin-top: calc(var(--nav-height) + 20px);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--bg-card-hover);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.external-link-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.detail-section .section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detail-main { min-width: 0; }
.detail-sidebar { min-width: 0; }

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.detail-card .card-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-card .card-value {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tutorial-steps {
  list-style: none;
  counter-reset: step;
}

.tutorial-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tutorial-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-box .stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-item .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-item .review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.review-item .review-player { font-size: 14px; font-weight: 600; }
.review-item .review-stars { color: var(--accent-orange); font-size: 12px; margin-left: auto; }
.review-item .review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== CATEGORY PAGE ===== */
.category-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.category-hero .cat-icon { font-size: 48px; margin-bottom: 16px; }
.category-hero .cat-title { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.category-hero .cat-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.filter-bar select:focus,
.filter-bar button:focus { outline: none; border-color: var(--primary); }

.filter-bar button.active { background: var(--primary); border-color: var(--primary); }

.tag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag-filter {
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.tag-filter:hover,
.tag-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== GAME IFRAME ===== */
.game-iframe-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: none;
}

.game-iframe-container.active { display: flex; flex-direction: column; }

.game-iframe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.game-iframe-header .game-title { font-size: 14px; font-weight: 700; }

.game-iframe-close {
  background: var(--danger);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.game-iframe-container iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ===== SEO CONTENT ===== */
.seo-content {
  padding: 48px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-secondary);
}

.seo-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.seo-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.seo-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 24px;
  margin-bottom: 10px;
}

.seo-content p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.seo-content h3 + p {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-brand .brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col .col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
}

.page-header .page-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-header .page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT/PAGES ===== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.content-page h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
}

.content-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--primary-light);
}

.content-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-page ul {
  list-style: none;
  margin-bottom: 16px;
}

.content-page ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-page ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== LAZY LOAD ===== */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-img.loaded { opacity: 1; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-text { font-size: 16px; color: var(--text-muted); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== WEEKLY PICKS ===== */
.weekly-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.weekly-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.weekly-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.weekly-card .weekly-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.weekly-card .weekly-info { flex: 1; min-width: 0; }
.weekly-card .weekly-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.weekly-card .weekly-highlight { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.weekly-card .weekly-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .game-detail-hero .hero-content { flex-direction: column; align-items: center; text-align: center; }
  .game-detail-hero .hero-cover { width: 240px; }
  .game-detail-hero .hero-tags { justify-content: center; }
  .game-detail-hero .hero-meta { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .search-box { display: none; }
  .hamburger { display: flex; }

  .banner { height: 300px; }
  .banner-slide .slide-content { padding: 0 24px; }
  .banner-slide .slide-title { font-size: 24px; }
  .banner-slide .slide-subtitle { font-size: 14px; }
  .banner-nav { display: none; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .category-card { padding: 14px 8px; }
  .category-card .cat-icon { font-size: 22px; }

  .series-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-title { font-size: 20px; }

  .ranking-item .rank { font-size: 15px; width: 24px; }
  .ranking-item .rank-thumb { width: 40px; height: 40px; }

  .game-detail-hero .hero-title { font-size: 26px; }
  .game-detail-hero .hero-cover { width: 200px; }

  .weekly-picks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .banner { height: 240px; }
  .banner-slide .slide-title { font-size: 20px; }
  .game-detail-hero .hero-cover { width: 160px; }
  .game-detail-hero .hero-title { font-size: 22px; }
}
