* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon-blue: #00f3ff;
  --neon-pink: #ff2d75;
  --dark-bg: #0c0c0c;
  --card-bg: #1a1a1a;
}

body {
  background: var(--dark-bg);
  color: #fff;
  overflow-x: hidden;
  font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.main-container {
  min-height: 100vh;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0c0c0c 100%);
}

.glowing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 243, 255, 0.1) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 45, 117, 0.1) 0%,
      transparent 25%
    );
}

.content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  padding: 4rem 0;
}

.title {
  font-size: 5rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.subtitle {
  font-size: 1.5rem;
  color: #888;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.game-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-preview {
  position: relative;
  overflow: hidden;
}

.game-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff4d4d;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-preview:hover .play-button {
  opacity: 1;
}

.game-details {
  padding: 15px;
}

.game-details h3 {
  color: #fff;
  margin-bottom: 5px;
}

.game-details p {
  color: #ccc;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.game-description {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 15px;
  padding: 40px;
  margin: 20px 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.game-description h2 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 2.2em;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 243, 255, 0.3);
  background: linear-gradient(135deg, #fff 0%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-description h3 {
  color: var(--neon-pink);
  margin: 30px 0 20px;
  font-size: 1.6em;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 45, 117, 0.3);
}

.seo-content p {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05em;
  text-align: justify;
  text-justify: inter-word;
}

.seo-content p strong {
  color: var(--neon-blue);
  font-weight: 600;
}

.seo-content p em {
  color: var(--neon-pink);
  font-style: italic;
}

.seo-content ul {
  list-style: none;
  margin: 20px 0;
  padding-left: 0;
}

.seo-content li {
  color: #e0e0e0;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.05em;
  line-height: 1.7;
  transition: transform 0.2s;
}

.seo-content li:hover {
  transform: translateX(5px);
  color: #fff;
}

.seo-content li:before {
  content: "▶";
  color: var(--neon-blue);
  position: absolute;
  left: 0;
  font-size: 0.8em;
}

@media (max-width: 768px) {
  .game-description {
    padding: 20px;
  }
}

.home-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.home-link:hover {
  opacity: 0.8;
}

/* Style cho video container */
.video-container {
  margin: 40px 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container h3 {
  color: var(--neon-pink);
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
}

.video-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: block;
}

/* Style cho related keywords */
.related-keywords {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.related-keywords h3 {
  color: var(--neon-blue);
  margin-bottom: 20px;
  font-size: 1.4em;
  font-weight: 600;
  text-align: center;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.keyword {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(255, 45, 117, 0.1) 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: default;
}

.keyword:hover {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(255, 45, 117, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 243, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-container iframe {
    height: 240px;
  }
}

/* Footer Styles */
.footer {
  background: var(--card-bg);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-link {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--neon-blue);
}

.separator {
  color: #999;
  margin: 0 1rem;
}

.copyright {
  color: #999;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0;
  }

  .separator {
    margin: 0 0.5rem;
  }
}

/* Game Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background-color: #0c0c0c;
  margin: 2% auto;
  padding: 0;
  border: 2px solid var(--neon-blue);
  border-radius: 10px;
  width: 95%;
  height: 90%;
  max-width: 1400px;
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  border-bottom: 2px solid var(--neon-blue);
}

.modal-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.fullscreen-btn {
  background: rgba(0, 243, 255, 0.2);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
}

.fullscreen-btn:hover {
  background: var(--neon-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.close-btn {
  background: rgba(255, 45, 117, 0.2);
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
}

.close-btn:hover {
  background: var(--neon-pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
}

.modal-body {
  height: calc(100% - 60px);
  position: relative;
  padding: 0;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 10px 15px;
  }
  
  .modal-title {
    font-size: 1rem;
  }
  
  .modal-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
  }
}
