/* ================= RESET / BASE ================= */
* {
  box-sizing: border-box;
}

body {
 margin: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  color: #ffffff;

  background: radial-gradient(circle at 20% 20%, #1a1a3a, #0b0f1a 40%),
              radial-gradient(circle at 80% 80%, #1f004d, #0b0f1a 60%);
  background-attachment: fixed;
}

/* ================= PAGE ================= */
.game-page {
  padding: 0 20px;
}

.layout-3col {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}
.main.content {
  min-width: 0;
  margin-top: 1px;
}

.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= GAME PLAYER ================= */
.game-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #0f0f25, #1a0033);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 0, 255, 0.3),
    0 0 25px rgba(0, 162, 255, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.7);
  margin-top: 20px;
  
}

.game-box iframe,
.game-iframe {
      position: absolute;
    inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Play Button */
.play-btn {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
 background: radial-gradient(circle, rgba(0, 0, 0, 0.5), #000 80%);
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.play-btn img {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 0 15px #00eaff);
  animation: pulseGlow 1.5s infinite;
  transition: transform 0.25s;
}
@keyframes pulseGlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.play-btn:hover img {
  transform: scale(1.15);
}
/* overlay nằm TRONG game-box */
.orientation-overlay {
  position: absolute;
  inset: 0;
  z-index: 20; /* cao hơn play-btn */

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.65);
  pointer-events: auto; /* CHẶN click */
}

/* hộp thông báo */
.orientation-modal {
  max-width: 80%;
  padding: 14px 20px;
  border-radius: 12px;

  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;

  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.orientation-modal.landscape::before {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.orientation-modal.portrait::before {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}
/* ================= HEADER BAR ================= */
.header-bar {
  margin-top: 5px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(20, 10, 40, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
   position: relative;
    z-index: 20;
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 0, 255, 0.25);
}

.header-bar h1 {
  font-size: 22px;
  margin: 0;
  word-break: break-word;
   font-weight: 700;
    background: linear-gradient(90deg, #00eaff, #ff00c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= HEADER ICONS ================= */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.game-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LIKE */
.like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px 8px;
  color: #fff;
  cursor: pointer;
}

.like-btn img {
  width: 20px;
  height: 20px;
}

.like-btn.liked {
  background: rgba(255, 0, 80, 0.15);
  border-color: #ff4d6d;
}

/* RATING */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating .star {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.rating .star img {
  width: 100%;
  height: 100%;
  transition: 0.2s;
}

.rating .star.active img,
.rating .star:hover img {
 transform: scale(1.2);
  filter: drop-shadow(0 0 6px #00eaff);
}

/* INFO + FULLSCREEN */
.infor-btn,
.fullscreen-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.infor-btn:hover,
.fullscreen-btn:hover {
  background: #1e293b;
  transform: scale(1.05);
}

.infor-btn img,
.fullscreen-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* ================= ADS ================= */
/*.ad-728 {*/
/*  width: 800px;*/
/*  height: 90px;*/
/*  margin: 18px auto;*/
/*  padding: 0; */
/*  border-radius: 14px;*/
/*  background: #020617;*/
/*  box-shadow: 0 0 0 1px #1e293b;*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*}*/
.ad-responsive {
  width: 100%;
  margin: 18px 0;
  border-radius: 14px;
  background: #020617;
  box-shadow: 0 0 0 1px #1e293b;
  overflow: hidden;
  padding: 10px;
  min-height: 280px;
}

/* Bắt Google full width */
.ad-responsive ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
}
/* ================= GAME INFO ================= */
.game-info {
  background: #020617;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 0 1px #1e293b;
}

.game-description {
  max-height: 520px;
  overflow: hidden;
  position: relative;
  line-height: 1.8;
}

.game-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 60px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0), #020617);
}

/* Expanded */
.game-description.expanded {
  max-height: none;
}

.game-description.expanded::after {
  display: none;
}

/* 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;
}
.show-more-btn {
  margin: 16px auto 0;
  padding: 8px 22px;
  border-radius: 10px;
  border: 1px solid #38bdf8;
  background: #020617;
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
}

/* ===== OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== MODAL BOX ===== */
.modal-box {
  width: 360px;
  padding: 35px 30px;
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    rgba(25, 25, 35, 0.95),
    rgba(15, 15, 25, 0.95)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 0, 100, 0.15);

  text-align: center;
  color: #fff;

  transform: translateY(20px) scale(0.95);
  transition: all 0.35s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* ===== TITLE ===== */
.modal-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-box p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 25px;
}

/* ===== BUTTONS ===== */
.modal-actions {
  display: flex;
  gap: 12px;
}

/* LOGIN BUTTON */
.btn-primary {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #6b7ed3, #221375);
  color: white;

  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 80, 0.4);
}

/* CANCEL BUTTON */
.btn-secondary {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
/* ================= chat ================= */
/* =========================
   QUICK CHAT BUTTON
========================= */
.quick-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #00f5ff, #7c3aed);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.quick-chat-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.9);
}

/* =========================
   MODAL BACKDROP
========================= */
.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.9),
    rgba(0, 0, 0, 0.95)
  );
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

/* =========================
   CHAT BOX
========================= */
.chat-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 25px;
  width: 340px;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.3),
    0 0 80px rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: popupScale 0.25s ease;
}

/* Title style optional */
.chat-box::before {
  content: "Global Chat";
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #00f5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   INPUTS
========================= */
.chat-box input,
.chat-box textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: 0.2s ease;
}

.chat-box input:focus,
.chat-box textarea:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.chat-box textarea {
  resize: none;
  height: 80px;
}

/* =========================
   SEND BUTTON
========================= */
#sendChat {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #000;
  transition: 0.3s ease;
}

#sendChat:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.8);
}

/* =========================
   GLOBAL MARQUEE (RUNNING TEXT)
========================= */
#globalMarquee {
  position: fixed;
  top: 80px;
  left: 100%;
  white-space: nowrap;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #000;
  padding: 5px 5px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
  z-index: 999999999;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes popupScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ================= COMMENTS ================= */
.comments {
  margin-top: 24px;
  padding: 20px;
  background: #020617;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #1e293b;
}

/* Title */
.comments h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #e5e7eb;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 10px;
}

/* Comment item */
.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

.comment-item:last-child {
  border-bottom: none;
}

/* Username */
.comment-item strong {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

/* Time */
.comment-item small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 6px;
}

/* Comment text */
.comment-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}
.comment-form textarea {
  resize: none;
  height: 100px; 
  max-height: 100px;
}
.comment-box {
    display: flex;
    gap: 12px;
    background: #1e1f26;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.comment-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-fallback {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ffcc00,#ff9900);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    color:#1e1f26;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display:flex;
    justify-content: space-between;
    font-size:14px;
    margin-bottom:5px;
}
/* ================= PAGINATION ================= */
.pagination {
  margin: 20px 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a {
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #cbd5f5;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
}

.pagination a:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.pagination a.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
}

/* ================= COMMENT FORM ================= */
.comment-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #64748b;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* Submit button */
.comment-form button {
  align-self: flex-start;
  padding: 8px 22px;
  border-radius: 10px;
  border: 1px solid #38bdf8;
  background: #020617;
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.comment-form button:hover {
  background: #38bdf8;
  color: #020617;
}

/* ================= RIGHT BAR ================= */
.rightbar {
  position: relative;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/*.rightbar .ad-300 {*/
/*  width: 100%;*/
/*  height: 250px;*/
/*  border-radius: 14px;*/
/*  background: #020617;*/
/*  box-shadow: 0 0 0 1px #1e293b;*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/

/*  margin-top: 0; */
/*  padding-top: 0; */
/*}*/
/* Similar Games */
.similar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.game-thumb {
   background: rgba(20, 10, 40, 0.8);
  border-radius: 14px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(0, 234, 255, 0.3);

  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px #1e293b;
}

.game-thumb:hover {
   transform: translateY(-5px);
  box-shadow:
    0 0 20px rgba(0, 234, 255, 0.5);
  background: #020617;
}

.game-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.game-thumb span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  text-align: center;
}


.game-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
     pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.25);
    border-top-color: #3a36be;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 12px;
    font-size: 14px;
    color: #325fb9;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ================= RESPONSIVE GAME PAGE ========== */
/* ================================================= */

/* ---------- LAPTOP / SMALL DESKTOP (<= 1200px) ---------- */
@media (max-width: 1200px) {
   .layout-3col {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .rightbar {
    display: none;
  }

  .ad-728 {
    width: 100%;
    max-width: 728px;
  }
}

/* ---------- TABLET (<= 1024px) ---------- */
@media (max-width: 1024px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .rightbar {
    order: 3;
    display: flex;
  }

  .ad-728 {
    width: 100%;
    height: auto;
    min-height: 90px;
  }
}

/* ================================================= */
/* ================= MOBILE GAME UI ================= */
/* ================================================= */
@media (max-width: 768px) {
    /* Header thành 2 dòng */
.search-header {
  height: auto;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body {
  padding-top: 120px;
} /* Ẩn desktop nav */
.logo,
.nav {
  display: none;
} /* ===== DÒNG 1 ===== */
.logo-mini {
  font-size: 22px;
  flex-shrink: 0;
} /* Category nằm cùng hàng logo */
.category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  white-space: nowrap;
  padding-bottom: 4px;
}
.category-list::-webkit-scrollbar {
  display: none;
}
.category-card {
  font-size: 12px;
  padding: 5px 10px;
} /* ===== DÒNG 2 ===== */
.search-box {
  width: 100%;
  order: 3;
  border-radius: 12px;
}
.search-box input {
  padding: 10px 12px;
  font-size: 14px;
}
.search-box button {
  width: 46px;
}

  /* ----- PAGE ----- */
.game-page {
  padding: 0 10px;
}
.layout-3col {
 display: grid;
  grid-template-columns: 1fr;
} /* ----- HIDE SIDEBARS ----- */

.sidebar,
.rightbar { order: 2;
  display: none; 
} /* ----- GAME PLAYER ----- */
.main-content {
  order: 1;
}
.game-box {
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: none;
  position: relative;
  width: 100%;
  max-width: 100%;
  touch-action: manipulation;
}
.play-btn img {
  width: 64px;
  height: 64px;
} /* ----- HEADER BAR ----- */
.header-bar {
  padding: 10px 12px;
  border-radius: 12px;
}
.header-bar h1 {
  font-size: 18px;
  line-height: 1.3;
  width: 100%;
}
.header-icons {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
}
.game-stats {
  gap: 6px;
} /* ----- RATING & ICONS ----- */
.rating .star {
  width: 20px;
  height: 20px;
}
.like-btn {
  padding: 4px 6px;
} /* ----- ADS ----- */
.ad-728 {
  width: 100%;
  height: auto;
  min-height: 70px;
  margin: 14px 0;
} /* ----- GAME INFO ----- */
.game-info {
  padding: 16px;
  border-radius: 12px;
}
.game-description {
  font-size: 14px;
  line-height: 1.5;
}
.rightbar {
  order: 3;
  display: flex;
  margin-top: 20px;
}

  .rightbar .ad-300 {
    display: none;
  }
/* =========================
   QUICK CHAT BUTTON
========================= */
.quick-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #00f5ff, #7c3aed);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.quick-chat-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.9);
}
/* =========================
   GAME RULE TEXT
========================= */
.chat-box p {
  text-align: center;
  font-size: 12px;
  margin-bottom: 15px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.08);
  color: #00f5ff;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
  animation: glowPulse 2s infinite ease-in-out;
}
/* =========================
   MODAL BACKDROP
========================= */
.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.9),
    rgba(0, 0, 0, 0.95)
  );
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

/* =========================
   CHAT BOX
========================= */
.chat-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 25px;
  width: 340px;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.3),
    0 0 80px rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: popupScale 0.25s ease;
}

/* Title style optional */
.chat-box::before {
  content: "Global Chat";
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #00f5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   INPUTS
========================= */
.chat-box input,
.chat-box textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: 0.2s ease;
}

.chat-box input:focus,
.chat-box textarea:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.chat-box textarea {
  resize: none;
  height: 80px;
}

/* =========================
   SEND BUTTON
========================= */
#sendChat {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #000;
  transition: 0.3s ease;
}

#sendChat:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.8);
}

/* =========================
   GLOBAL MARQUEE (RUNNING TEXT)
========================= */
#globalMarquee {
  position: fixed;
  top: 80px;
  left: 100%;
  white-space: nowrap;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #000;
  padding: 5px 5px;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
  z-index: 999999999;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes popupScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
  /* ----- COMMENTS ----- */
  .comments {
    padding: 16px;
    border-radius: 12px;
  }

  .comments h3 {
    font-size: 16px;
  }

  .comment-item p {
    font-size: 14px;
  }

  .comment-form button {
    width: 100%;
    text-align: center;
  }

  /* ----- PAGINATION ----- */
  .pagination {
    justify-content: center;
  }
}

/* ---------- SMALL MOBILE (<= 480px) ---------- */
@media (max-width: 480px) {
  .header-bar h1 {
    font-size: 16px;
  }

  .play-btn img {
    width: 56px;
    height: 56px;
  }

  .rating .star {
    width: 18px;
    height: 18px;
  }

  .game-description {
    font-size: 13px;
  }

  .comment-item strong {
    font-size: 13px;
  }

  .comment-item p {
    font-size: 13px;
  }
}
