* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    Segoe UI,
    sans-serif;
}
body {
  background: #0b0f1a;
  color: #fff;
  max-width: 100%;
  overflow-x: hidden;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body > * {
  position: relative;
  z-index: 5;
}
.container {
  margin: 0 auto;
  padding: 0 10px;
}
/* ===== USER AREA (COMPACT) ===== */

.user-area {
  margin-left: 1px;
  display: flex;
  align-items: center;
}

/* wrapper */
.user-dropdown {
  position: relative;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;       
  font-weight: 500;
  color: #fff;
  padding: 2px 4px;        
  border-radius: 6px;
  transition: background 0.15s ease;
}

.user-name svg {
  width: 14px;            
  height: 14px;
}

.user-name:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #462996;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  min-width: 140px;        
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;

  z-index: 99999;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;     
  font-size: 13px;         
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}

.dropdown-menu a:hover {
  background: #2c115f;
}

.login-btn {
  padding: 5px 10px;
  font-size: 13px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;

  transition: background 0.3s ease, color 0.3s ease;
}

.login-btn:hover {
  background: #462996;
}
.profile-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

.profile-card {
  background: #111827;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #462996, #2c115f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 15px;
  color: #fff;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats strong {
  display: block;
  font-size: 20px;
  color: #fff;
}

.profile-stats span {
  font-size: 12px;
  color: #9ca3af;
}

.profile-activity {
  background: #111827;
  padding: 25px;
  border-radius: 15px;
}
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.comment-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-item strong {
  color: #462996;
}

.comment-item p {
  margin: 5px 0 0;
  color: #ddd;
}
/* Link game trong profile */
.game-link {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: #a78bfa; /* tím sáng */
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

/* Hover đổi màu */
.game-link:hover {
  color: #ffffff;
}

/* Gạch chân animation */
.game-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #a78bfa;
  transition: width 0.25s ease;
}

.game-link:hover::after {
  width: 100%;
}
.rating {
  margin-top: 5px;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  width: 18px;
  height: 18px;
  fill: #374151; /* màu sao rỗng */
  transition: 0.2s;
}

.star.active {
  fill: #facc15; /* vàng */
}
/* ================= AUTH PAGE ================= */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 40px 35px;
  border-radius: 20px;

  background: linear-gradient(
    145deg,
    rgba(20, 20, 35, 0.95),
    rgba(10, 10, 20, 0.95)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.15),
    0 0 80px rgba(124, 58, 237, 0.15);

  backdrop-filter: blur(10px);
  animation: authFadeIn 0.5s ease;
}

.auth-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #00f5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-error {
  background: rgba(255, 0, 80, 0.1);
  border: 1px solid #ff4d6d;
  color: #ff4d6d;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;

  transition: 0.25s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  outline: none;
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

.auth-btn {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #00f5ff, #7c3aed);
  color: #fff;

  transition: 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #94a3b8;
}

.auth-switch a {
  color: #38bdf8;
  text-decoration: none;
  transition: 0.2s;
}

.auth-switch a:hover {
  color: #00f5ff;
}

/* Animation */
@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-container {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 22px;
  }
}
/* Outline Button */
.auth-btn-outline {
  display: block;
  text-align: center;
  margin-top: 15px;

  background: transparent;
  border: 1px solid #7c3aed;
  color: #7c3aed;
  text-decoration: none;
}

.auth-btn-outline:hover {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}
/* SEARCH BOX */
/* ================= HEADER LAYOUT ================= */

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f1a;

  height: 64px;
  padding: 0 30px;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Left + Right group */
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Category group */
.category-group {
  display: flex;
  gap: 10px;
}

/* Category style */
.category-card {
  padding: 6px 14px;
  background: #141b2d;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: 0.3s ease;
  white-space: nowrap;
}
/* ICON trong category */
.category-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Category layout */
.category-card {
  display: flex;
  align-items: center;
  gap: 6px;
}
.category-card:hover {
  background: #1f2a44;
  transform: translateY(-2px);
}

.category-card.active {
  background: #00e0ff;
  color: #000;
  font-weight: 600;
}

/* Search Box */
.search-box {
  flex: 1;
  max-width: 500px;
  display: flex;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 40px 8px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  background: #141b2d;
  color: #fff;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

/* Logo */
.logo-mini img {
  display: block;
}
/* ===== CATEGORY BAR ===== */

.category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #222;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.category-card:hover {
  background: #333;
}

.category-card.active {
  background: #ff9800;
  color: #000;
}

.category-emoji {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ===== QUICK GAME IMAGE STRIP ===== */
/* ===== Recently Played - 1 Row Scroll ===== */

.quick-col {
  margin-bottom: 5px;
  margin-top: 5px;
}

.quick-title {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.8;
  color: white;
}

/* 1 hàng ngang + scroll */
.quick-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}

/* Ẩn thanh scroll cho đẹp (Chrome) */
.quick-list::-webkit-scrollbar {
  height: 6px;
}

.quick-list::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 10px;
}

/* Card nhỏ */
.quick-card-img {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;

  background: #111827;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.25s ease;

  width: 100px;
  aspect-ratio: 16 / 9;
  padding: 0;
}

/* Ảnh nhỏ */
.quick-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: 0.3s ease;
}

/* Title */
.quick-card-img span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 8px;
  font-size: 13px;
  text-align: center;

  background: linear-gradient(to top, rgba(102, 100, 100, 0.85), transparent);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

/* Hover */
.quick-card-img:hover {
  transform: translateY(-4px);
}

.quick-card-img:hover img {
  transform: scale(1.05);
}

.quick-card-img:hover span {
  opacity: 1;
  transform: translateY(0);
}
/* Ẩn hoàn toàn scrollbar */
.quick-list {
  -ms-overflow-style: none; /* IE */
  scrollbar-width: none; /* Firefox */
}

.quick-list::-webkit-scrollbar {
  display: none; /* Chrome */
}

/* Wrapper để chứa mũi tên */
.quick-col {
  position: relative;
  border-radius: 12px; /* nếu bạn muốn bo góc */
  overflow: hidden;
}

/* Lớp phủ mặc định */
.quick-col::before {
  content: "Recently Played Games";
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;

  /* Gradient text */
  background-image: linear-gradient(90deg, #38bdf8, #818cf8, #f472b6, #38bdf8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientMove 3s linear infinite;

  z-index: 999;
  transition: 0.4s ease;
}

/* Animation gradient chạy */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Hover vào khu này thì lớp phủ biến mất */
.quick-col:hover::before {
  opacity: 0;
  pointer-events: none;
}

/* Mũi tên */
.quick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

.quick-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quick-arrow.left {
  left: -15px;
}

.quick-arrow.right {
  right: -15px;
}
/* ================= HOT GAMES ================= */
.hot-section h2 {
  color: #e74c3c;
}

.game-card.hot {
  position: relative;
}

.hot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* ================= CATEGORY PAGE ONLY ================= */

.category-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* GRID 10 GAME / ROW */
.category-page .games-grid {
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* GAME CARD (CATEGORY ONLY) */
.category-page .game-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.category-page .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
}

.category-page .game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.category-page .game-card:hover img {
  filter: brightness(0.75);
}

/* TITLE OVERLAY */
.category-page .game-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transition: 0.25s;
}

.category-page .game-card:hover .game-title {
  opacity: 1;
}

/* ================= CATEGORY DESCRIPTION BOX ================= */

.category-page .category-info {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
}

.category-page .game-description-container {
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 30px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.category-page .game-description {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.3;
}
.hot-section.category-page .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 180px);
  gap: 16px;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ================= MOOD GRID ================= */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 50px;
  justify-content: center;
}

.mood-item {
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #12141c, #1c1f2b);
  font-size: 18px;
  cursor: pointer;
  transition: 0.35s;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mood-item img {
  width: 48px;
  height: 48px;
}

.mood-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mood-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(56, 189, 248, 0.4);
}
/* ================= NAVIGATION BUTTONS ================= */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 60px;
  font-size: 26px;
  cursor: pointer;
  opacity: 0;
  transition: 0.25s;
  z-index: 5;
}

.nav-btn.left {
  left: -10px;
}

.nav-btn.right {
  right: -10px;
}

.game-row-wrapper:hover .nav-btn {
  opacity: 1;
}

.game-row-wrapper {
  position: relative;
}
/* ================= SECTION HEADERS ================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
}

.view-more {
  font-size: 14px;
  color: #8b8bff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 139, 255, 0.45);
  display: inline-flex;
  align-items: center;

  transition:
    background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more:hover {
  color: #fff;
  background: #8b8bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 139, 255, 0.45);
}

.view-more:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 139, 255, 0.4);
}
/* ===== GAME ===== */
.game-wrapper {
  display: block;
  gap: 20px;
  padding: 20px;
} /* ================= GAMES GRID ================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.game-grid.horizontal {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.game-grid.horizontal::-webkit-scrollbar {
  display: none;
}

.game-grid.horizontal .game-card {
  min-width: 250px;
}

/* ================= GAME CARDS ================= */
.game-card {
  background: #1a1a24;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  width: 180px;
  transition: 0.3s ease;
  box-shadow: 0 0 0 1px #242436;
}

.games-grid .game-card {
  border-radius: 14px;
  transition: box-shadow 0.3s ease;
}

.games-grid .game-card:hover {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.games-grid .game-card a {
  text-decoration: none;
  color: #fff;
  display: block;
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.05) saturate(1.05);
}

.games-grid .game-card img {
  height: 100px;
}

.game-card:hover img {
  filter: brightness(0.7);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 10px 10px 2px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  opacity: 0;
}

.game-card:hover .game-title {
  opacity: 1;
}

.games-grid .game-card h3 {
  margin: 0;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #e5e7eb;
}
/* ================= static page ================= */

.static-page-content {
  max-width: 1200px;
  margin: 24px auto;
  background: #111;
  border-radius: 12px;
  padding: 32px;
  box-shadow:
    0 0 0 1px #222,
    0 8px 24px rgba(0, 0, 0, 0.6);
}
.static-page-content a {
  color: #4da3ff;
  text-decoration: none;
}

.static-page-content a:hover {
  text-decoration: underline;
}

.static-page-content ul,
.static-page-content ol {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

/* ================= BREADCRUMB ================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: -15px;
  padding: 10px 14px;
  margin-bottom: 16px;

  list-style: none;
  font-size: 13px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #1e293b;
}

/* Item */
.breadcrumb-item {
  color: #94a3b8;
  font-weight: 500;
}

/* Link */
.breadcrumb-item a {
  color: #38bdf8;
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 6px;
  color: #334155;
}

/* Active */
.breadcrumb-item.active {
  color: #f8fafc;
  font-weight: 600;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}
/* ================= CATEGORY DESCRIPTION BOX ================= */

.category-info {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
}

.game-description-container {
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 18px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.game-description {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.3;
}

/* TYPOGRAPHY INSIDE DESCRIPTION */
.game-description h2,
.game-description h3 {
  color: #38bdf8;
  margin: 22px 0 12px;
}

.game-description p {
  margin-bottom: 16px;
}
/* ================= SEARCH PAGE GRID ================= */

.search-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SEARCH TITLE */
.search-page h2 {
  margin: 20px 0 24px;
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
}
.search-box {
  position: relative;
  z-index: 9999;
  overflow: visible;
}
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  margin-top: 8px;
  z-index: 9999;
  max-height: 360px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.live-search-results:empty {
  display: none;
}
.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #e5e7eb;
  transition: background 0.2s ease;
}

.live-search-item:hover {
  background: #0f172a;
}

/* ẢNH GAME */
.live-search-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #020617;
}

/* TÊN GAME */
.live-search-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* KHÔNG TÌM THẤY */
.live-search-empty {
  padding: 14px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

/* SCROLL ĐẸP */
.live-search-results::-webkit-scrollbar {
  width: 6px;
}
.live-search-results::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* GRID 10 GAME / ROW */
/* ================= SEARCH GRID FIX CENTER ================= */

.search-page .games-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, 140px);

  gap: 16px;

  justify-content: center;

  width: 100%;
  max-width: 1600px;
  margin: 0 auto;

  padding: 0 24px;
  box-sizing: border-box;
}

/* GAME CARD */
.search-page .game-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.search-page .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
}

/* IMAGE */
.search-page .game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.search-page .game-card:hover img {
  filter: brightness(0.75);
}

/* TITLE */
.search-page .game-card h3 {
  margin: 0;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-maintenance {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.maintenance-content {
  text-align: center;
  color: #e5e7eb;
  max-width: 320px;
}

.maintenance-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.maintenance-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #facc15;
}

.maintenance-content p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer-bg {
  background: linear-gradient(180deg, #020617, #020617 60%, #000);
  border-top: 1px solid #1e293b;
  padding: 40px 20px 24px;
  margin-top: 40px;
}

/* GRID LAYOUT */
.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* ===== SOCIAL ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #020617;
  border: 1px solid #1e293b;
  transition: 0.3s;
}

.footer-social img {
  filter: brightness(0.85);
  transition: 0.3s;
}

.footer-social a:hover {
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.footer-social a:hover img {
  filter: brightness(1) invert(1);
}

/* ===== CENTER ===== */
.footer-center {
  text-align: center;
}

.footer-center img {
  height: 42px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-center img:hover {
  transform: scale(1.05);
}

.game-credit {
  font-size: 13px;
  color: #94a3b8;
}

.game-credit a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.game-credit a:hover {
  text-decoration: underline;
}

/* ===== LINKS ===== */
.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  transition: 0.25s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-links .dot {
  color: #475569;
  user-select: none;
}

/* ===== DIVIDER ===== */
.hr-dash {
  max-width: 1200px;
  margin: 26px auto 14px;
  border: none;
  border-top: 1px dashed #1e293b;
}

/* ===== COPYRIGHT ===== */
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
/* ===== BACKGROUND CYBER GRID GAME STYLE ===== */

body {
  background: #05070d;
  overflow-x: hidden;
  position: relative;
}

/* Lớp ánh sáng gradient động */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(0, 255, 255, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 0, 255, 0.12),
      transparent 40%
    ),
    linear-gradient(120deg, #0a0f1f 0%, #05070d 60%, #0d1024 100%);
  animation: bgPulse 12s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Lưới game neon */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: center top;
  animation: gridMove 8s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* Hiệu ứng ánh sáng nhịp */
@keyframes bgPulse {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(1.2);
  }
}

/* Lưới di chuyển */
@keyframes gridMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 80px;
  }
}

/* ===== SCROLLBAR GAME STYLE ===== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0f1f;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f5ff, #ff00c8);
  border-radius: 10px;
  box-shadow:
    0 0 10px #00f5ff,
    0 0 20px #ff00c8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ffff, #ff33ff);
  box-shadow:
    0 0 15px #00ffff,
    0 0 30px #ff33ff;
}
/* ===== GAME DESCRIPTION (SYNC DARK THEME) ===== */
.game-info {
  width: 100%;
  margin-top: 16px;
  padding: 24px 0;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.06),
    transparent 60%
  );
}
.game-info-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
.game-description-container {
  width: 100%;
  margin: 0 auto;

  padding: 36px 48px;
  background: linear-gradient(135deg, #020617, #0f172a);
  border: 1px solid #1e293b;
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(56, 189, 248, 0.05);
}

.game-description-container h1 {
  font-size: 26px;
  margin-bottom: 18px;
  line-height: 1.35;
  color: #e5e7eb;
}

/* TEXT */
.game-description {
  font-size: 15px;
  line-height: 1.3;
  color: #cbd5f5;
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

/* DARK FADE */
.game-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), #0f172a);
}

/* Typography inside description */
.game-description p {
  margin: 0 0 14px;
}

.game-description strong {
  color: #f8fafc;
}

.game-description a {
  color: #38bdf8;
  text-decoration: underline;
  text-decoration: none;
}

.game-description ul,
.game-description ol {
  margin: 10px 0 14px 18px;
}

.game-description li {
  margin-bottom: 6px;
}

.game-description.expanded {
  max-height: none;
}

.game-description.expanded::after {
  display: none;
}

/* BUTTON */
.show-more-btn {
  margin-top: 18px;
  background: none;
  border: none;
  color: #38bdf8;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.show-more-btn:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* ================= RESPONSIVE =================== */
/* ================================================= */

/* ---------- LARGE LAPTOP (<= 1400px) ---------- */
@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ---------- LAPTOP / TABLET LANDSCAPE (<= 1200px) ---------- */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .quick-games.two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ---------- TABLET PORTRAIT (<= 992px) ---------- */
@media (max-width: 992px) {
  .search-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    font-size: 22px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-card-img {
    width: 140px;
  }

  .mood-grid {
    gap: 24px;
  }
}

/* ================================================= */
/* ================= MOBILE UI ===================== */
/* ================================================= */
@media (max-width: 768px) {
  /* ----- HEADER ----- */
  .search-header {
    padding: 10px 12px;
  }

  .logo,
  .nav {
    display: none;
  }

  .logo-mini {
    font-size: 24px;
  }

  .search-box input {
    font-size: 14px;
    padding: 12px;
  }

  /* ----- CATEGORY BAR ----- */
  .category-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .category-list::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    font-size: 13px;
    padding: 6px 12px;
  }

  .quick-games {
    padding: 12px;
  }

  .quick-games.two-col {
    display: block;
  }

  .quick-col {
    margin-bottom: 14px;
  }

  /* LIST TRƯỢT NGANG */
  .quick-games .quick-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  /* ẨN SCROLLBAR */
  .quick-games .quick-list::-webkit-scrollbar {
    display: none;
  }

  /* CARD */
  .quick-card-img {
    flex: 0 0 auto;
    width: 130px;
    scroll-snap-align: start;
  }

  /* ----- GAME GRID: 2 GAME / ROW ----- */
  .games-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .games-grid .game-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .games-grid .game-card img {
    height: 110px;
  }

  /* ----- CATEGORY PAGE ----- */
  .category-page .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px;
  }

  /* ----- SEARCH PAGE ----- */
  .search-page h2 {
    font-size: 20px;
  }

  .search-page .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ----- MOOD GRID ----- */
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mood-item {
    font-size: 16px;
    padding: 16px;
  }

  /* ----- FOOTER ----- */
  .footer-bg {
    padding: 24px 12px;
  }

  .footer-grid {
    gap: 16px;
  }

  .footer-center img {
    height: 36px;
  }
}

/* ---------- SMALL MOBILE (<= 480px) ---------- */
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-title {
    font-size: 11px;
  }

  .search-box button {
    width: 46px;
  }

  .quick-card-img {
    width: 120px;
  }

  .category-card {
    font-size: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ================= ULTRA WIDE DESKTOP ================= */
@media (min-width: 1600px) {
  .layout-3col {
    max-width: 1800px;
    grid-template-columns: 340px minmax(0, 1fr) 340px;
    gap: 32px;
  }

  .game-box {
    border-radius: 22px;
  }

  .games-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .category-page .games-grid {
    grid-template-columns: repeat(10, 1fr);
  }
  .quick-list .quick-card-img:nth-child(4),
  .quick-list .quick-card-img:nth-child(5) {
    display: block;
  }
}
