﻿/* --- Easy TOC (Rank Math Compatible) Creative Design --- */
#ez-toc-container {
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(60, 60, 90, 0.07);
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  margin: 2.5rem 0 2.5rem 0;
  border-left: 7px solid var(--primary-color, #667eea);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

#ez-toc-container .ez-toc-title-container {
  margin-bottom: 1.1em;
}

#ez-toc-container .ez-toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color, #667eea);
  margin: 0;
  padding: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(60, 60, 90, 0.07);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#ez-toc-container .ez-toc-title::before {
  content: '\2630';
  font-size: 1.3em;
  color: var(--secondary-color, #764ba2);
  opacity: 0.7;
}

#ez-toc-container ul.ez-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ez-toc-container ul.ez-toc-list li {
  margin-bottom: 0.7em;
  position: relative;
  padding-left: 1.5em;
  transition: background 0.2s;
}

#ez-toc-container ul.ez-toc-list li:last-child {
  margin-bottom: 0;
}

#ez-toc-container ul.ez-toc-list li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.7em;
  width: 0.7em;
  height: 0.7em;
  background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

#ez-toc-container a.ez-toc-link {
  color: var(--primary-color, #667eea);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  padding: 2px 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}

#ez-toc-container a.ez-toc-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
  box-shadow: 0 2px 8px rgba(60, 60, 90, 0.10);
}

@media (max-width: 600px) {
  #ez-toc-container {
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 12px;
  }

  #ez-toc-container .ez-toc-title {
    font-size: 1rem;
  }
}

/* Modern Single Game Page - CrazyGames Style */

.single-game-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Single column when no sidebar (e.g. page.php, contact template) */
.single-game-layout:not(:has(.game-sidebar)) {
  grid-template-columns: 1fr;
  max-width: 960px;
}

.layout-fullwidth .single-game-layout {
  max-width: 100%;
}

.game-main-content {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Game Player Section */
.game-player-section {
  background: var(--card-background-60);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-width: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.game-container {
  position: relative;
  width: 100%;
  background: var(--card-background);
  display: flex;
  flex-direction: column;
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  flex-shrink: 0;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Play Now Overlay */
.play-now-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background-color: var(--background-color, #0f172a);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
  transition: all 0.3s ease;
  overflow: hidden;
}

.play-now-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.4) saturate(1.2);
  transform: scale(1.2);
  z-index: 1;
}

.play-now-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.9) 100%),
    radial-gradient(circle at 50% 30%, transparent 20%, rgba(15, 23, 42, 0.8) 70%);
  z-index: 2;
}

.play-now-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  /* Ensure it's gone */
}

.play-now-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.play-now-game-thumb {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: var(--card-background);
}

.play-now-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-now-game-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* Game Meta Info (Rating & Category) */
.play-now-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.25rem 0;
}

.play-now-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.play-now-rating svg {
  width: 16px;
  height: 16px;
  fill: #fbbf24;
}

.play-now-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.play-now-category svg {
  width: 14px;
  height: 14px;
  fill: #facc15;
}

.play-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2.5rem;
  background: var(--primary-gradient);
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px var(--primary-color-50);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  margin: 0.5rem 0;
  min-width: 200px;
}

.play-now-btn span {
  color: #ffffff !important;
}

.play-now-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px var(--primary-color-60);
}

.play-now-btn:active {
  transform: translateY(0) scale(0.98);
}

.play-now-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Action Buttons Row */
.play-now-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.play-now-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.play-now-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.play-now-action-btn:active {
  transform: scale(0.95);
}

.play-now-action-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.play-now-action-btn.play-now-like {
  padding-left: 0.85rem;
  padding-right: 1.1rem;
}

.play-now-action-btn .like-count {
  font-size: 0.8rem;
}

/* Expand Arrow */
.play-now-expand {
  margin-top: 1rem;
  opacity: 0.6;
  animation: bounceDown 2s ease-in-out infinite;
}

.play-now-expand svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.8);
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(6px);
  }

  60% {
    transform: translateY(3px);
  }
}

.game-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-background-95);
  color: var(--text-60);
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-background-95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  /* Ensure it's gone */
}

/* ========================================
   Preroll Ad Interstitial Overlay
   ======================================== */
.preroll-ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.preroll-ad-overlay.active {
  opacity: 1;
}

.preroll-ad-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.preroll-ad-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.preroll-ad-countdown {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-color, #667eea);
  padding: 4px 14px;
  border-radius: 20px;
  min-width: 120px;
  text-align: center;
}

.preroll-ad-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 50px 20px 60px;
}

.preroll-ad-content iframe,
.preroll-ad-content img,
.preroll-ad-content video {
  max-width: 100%;
  max-height: 100%;
}

.preroll-skip-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.preroll-skip-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(3px);
}
.preroll-skip-btn .skip-arrow {
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
}
.preroll-skip-btn:hover .skip-arrow {
  transform: translateX(3px);
}

/* Responsive Styles for Play Now Overlay */
@media (max-width: 600px) {
  .play-now-content {
    padding: 1rem;
    max-width: 90%;
  }

  .play-now-game-thumb {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
  }

  .play-now-game-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .play-now-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    min-width: 140px;
  }

  .play-now-meta {
    gap: 0.75rem;
    margin: 0.25rem 0;
  }

  .play-now-actions {
    gap: 0.4rem;
  }

  .play-now-action-btn {
    padding: 0.6rem 0.8rem;
  }
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--primary-20);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.animation-dots {
  border: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.loading-spinner.animation-dots::before,
.loading-spinner.animation-dots::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-spinner.animation-dots::before {
  animation-delay: -0.32s;
}

.loading-spinner.animation-dots::after {
  animation-delay: -0.16s;
}

.loading-spinner.animation-bar {
  border: none;
  width: 200px;
  height: 4px;
  background: var(--primary-20);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-spinner.animation-bar::before {
  content: '';
  position: absolute;
  left: -50%;
  width: 50%;
  height: 100%;
  background: var(--primary-color);
  animation: barProgress 1.5s infinite ease-in-out;
}

.loading-spinner.animation-pulse {
  border: none;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

@keyframes barProgress {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.loading-text {
  margin-top: 1rem;
  color: var(--text-80);
  font-size: 0.875rem;
}

.loading-tip {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-60);
  font-size: 0.8125rem;
  font-style: italic;
  max-width: 300px;
  text-align: center;
}

/* Game Action Buttons */
.game-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.game-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-height: 38px;
  background: var(--card-background-80);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-action-btn:hover {
  background: var(--primary-15, rgba(99, 102, 241, 0.1));
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.game-action-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.game-action-btn svg.hidden {
  display: none;
}

.game-action-btn span {
  display: none;
}

/* Show labels on wider screens */
@media (min-width: 769px) {
  .game-action-btn span {
    display: inline;
  }
}

.game-action-btn.hidden {
  display: none;
}

.game-action-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-color: transparent;
}

.game-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--primary-25);
}

.game-action-btn.favorited {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-color: transparent;
}

.game-action-btn.favorited svg {
  fill: currentColor;
}

/* Share button â€” copied/success state */
.game-action-btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
}

.game-action-btn.success:hover {
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* Game Info Section */
.game-info-section {
  background: var(--card-background-40);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
}

.game-info-section>* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Featured image banner for regular pages (above .game-info-section) */
.page-featured-image-banner {
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-featured-image-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.game-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-60);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.game-breadcrumb a {
  color: var(--text-60);
  text-decoration: none;
  transition: color 0.2s ease;
}

.game-breadcrumb a:hover {
  color: var(--primary-color);
}

.game-breadcrumb span {
  color: var(--text-40, var(--text-60));
}

.game-title-main {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.game-developer-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-60);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.game-developer-inline svg {
  color: var(--primary-color);
  opacity: 0.7;
  flex-shrink: 0;
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.game-plays-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-60);
  font-weight: 500;
}

.game-plays-stat svg {
  color: var(--text-40);
  flex-shrink: 0;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-rating .stars {
  color: #fbbf24;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.125rem;
}

.votes-count {
  color: var(--text-60);
  font-size: 0.875rem;
}

/* ===== Game Info Block (section wrapper with heading) ===== */
.game-info-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.game-info-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.game-info-block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.game-info-block-header svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.game-info-block-header span {
  line-height: 1.2;
}

/* Game Metadata Section */
.game-metadata-section {
  /* No standalone margin/border â€” handled by .game-info-block */
}

.metadata-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metadata-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--card-background-40);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metadata-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metadata-tag:hover {
  border-color: var(--primary-25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metadata-tag:hover::before {
  opacity: 1;
}

.metadata-tag svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.metadata-tag:hover svg {
  transform: scale(1.1);
}

.metadata-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.metadata-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-60);
  letter-spacing: 0.6px;
  line-height: 1;
}

.metadata-value {
  font-size: 0.8125rem;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

.metadata-developer {
  border-color: rgba(94, 114, 228, 0.2);
}

.metadata-developer:hover {
  border-color: rgba(94, 114, 228, 0.5);
  box-shadow: 0 8px 20px rgba(94, 114, 228, 0.15);
}

.metadata-release {
  border-color: rgba(16, 185, 129, 0.2);
}

.metadata-release:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.metadata-release svg {
  color: #10b981;
}

.metadata-updated {
  border-color: rgba(245, 158, 11, 0.2);
}

.metadata-updated:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

.metadata-updated svg {
  color: #f59e0b;
}

.metadata-technology {
  border-color: rgba(139, 92, 246, 0.2);
}

.metadata-technology:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.metadata-technology svg {
  color: #8b5cf6;
}

.metadata-platform {
  border-color: rgba(59, 130, 246, 0.2);
}

.metadata-platform:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.metadata-platform svg {
  color: #3b82f6;
}

.metadata-filesize {
  border-color: rgba(236, 72, 153, 0.2);
}

.metadata-filesize:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
}

.metadata-filesize svg {
  color: #ec4899;
}

.metadata-version {
  border-color: rgba(14, 165, 233, 0.2);
}

.metadata-version:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

.metadata-version svg {
  color: #0ea5e9;
}

/* Game Categories Section */
.game-categories-section {
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.game-categories {
  max-width: 100%;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 100%;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-15);
  border: 1px solid var(--primary-25);
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-tag:hover {
  background: var(--primary-25);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.tag-count {
  padding: 0.125rem 0.5rem;
  background: var(--border-color);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-80);
}

/* Modern Game Tags Design */
.game-tags-modern,
.game-tags-block {
  max-width: 100%;
  box-sizing: border-box;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  max-width: 100%;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-background-60);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.tag-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.tag-item .tag-name,
.tag-item .tag-count {
  position: relative;
  z-index: 1;
}

.tag-item .tag-name {
  color: var(--text-color);
  transition: color 0.25s ease;
}

.tag-item .tag-count {
  padding: 0.25rem 0.625rem;
  background: var(--primary-color-15);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
  transition: all 0.25s ease;
  min-width: 24px;
  text-align: center;
}

.tag-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.tag-item:hover::before {
  opacity: 0.12;
}

.tag-item:hover .tag-name {
  color: var(--primary-color);
}

.tag-item:hover .tag-count {
  background: var(--primary-color);
  color: #fff;
}

.tag-item:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Game Description Section */
.game-description-section {
  margin-bottom: 1.5rem;
}

.game-description {
  max-width: 100%;
  overflow-wrap: break-word;
  margin-top: 0;
}

.game-description h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--text-color);
}

.game-description-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--text-color);
}

.game-description-content,
.description-content {
  color: var(--text-80);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.game-description-content p {
  margin-bottom: 1.5rem;
  position: relative;
}

.game-description-content p:first-of-type {
  font-size: 1.125rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Content styles moved to post-content.css for unified styling */

.game-description-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background: var(--primary-color-10);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  color: var(--text-color);
  font-style: italic;
  position: relative;
}

.game-description-content blockquote::before {
  content: 'ðŸ’¬';
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  font-size: 1.5rem;
}

.game-description-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.game-description-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.game-description-content code {
  background: var(--card-background-80);
  color: var(--primary-color);
  padding: 0.25em 0.5em;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--primary-color-20);
}

.game-description-content pre {
  background: var(--card-background-80);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.game-description-content pre code {
  background: none;
  padding: 0;
  border: none;
}

/* Description Expandable */
.description-expandable {
  position: relative;
}

.description-expandable .description-preview {
  margin-bottom: 0;
}

.description-expandable .description-remaining {
  animation: fadeIn 0.4s ease;
  margin-top: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Discover More Button */
.discover-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  margin-top: 1rem;
  background: var(--card-background-60);
  border: 2px solid var(--primary-color-25);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.discover-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.discover-more-btn svg,
.discover-more-btn span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.discover-more-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-color);
}

.discover-more-btn.expanded svg {
  transform: rotate(180deg);
}

.discover-more-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.discover-more-btn:hover::before {
  opacity: 0.15;
}

.discover-more-btn:hover svg {
  stroke: var(--primary-color);
}

.discover-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}



.description-content ul li::before {
  position: absolute;
  left: 0;
  font-size: 1rem;
}

.description-content ol {
  counter-reset: game-counter;
}

.description-content ol li {
  counter-increment: game-counter;
}

.description-content ol li::before {
  content: counter(game-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.description-content strong,
.description-content b {
  color: var(--primary-color);
  font-weight: 700;
}

.description-content em,
.description-content i {
  font-style: italic;
  color: var(--text-secondary);
}

.description-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background: var(--primary-color-10);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  color: var(--text-color);
  font-style: italic;
  position: relative;
}

.description-content blockquote::before {
  content: 'ðŸ’¬';
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  font-size: 1.5rem;
}

.description-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.description-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.description-content code {
  background: var(--card-background-80);
  color: var(--primary-color);
  padding: 0.25em 0.5em;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--primary-color-20);
}

.description-content pre {
  background: var(--card-background-80);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.description-content pre code {
  background: none;
  padding: 0;
  border: none;
}

/* Sidebar */
.game-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--card-background-40);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 1rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.sidebar-title svg {
  color: var(--primary-color);
}

.sidebar-games-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-game-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card-background-40);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.sidebar-game-item:hover {
  background: var(--card-background-60);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-game-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.sidebar-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-game-info {
  flex: 1;
  min-width: 0;
}

.sidebar-game-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-game-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-60);
}

.sidebar-game-meta .rating {
  color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .single-game-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-sidebar {
    position: static;
    max-height: none;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .single-game-layout {
    padding: 0.5rem;
    gap: 1rem;
  }

  .game-title-main {
    font-size: 1.5rem;
  }

  .game-developer-inline {
    font-size: 0.8125rem;
  }

  .game-info-block-header {
    font-size: 0.9375rem;
  }

  .game-plays-stat {
    font-size: 0.8125rem;
  }

  .game-player-section {
    border-radius: 0;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    margin-bottom: 1rem;
  }

  .game-container {
    width: 100vw;
    margin-left: -0.5rem;
  }

  .play-now-overlay {
    padding-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  }

  .play-now-content {
    max-width: 320px;
    padding: 1rem;
    top: 45%;
  }

  .play-now-game-thumb {
    width: 140px;
    height: 140px;
    margin-bottom: 0.75rem;
    border-radius: 16px;
  }

  .play-now-game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .play-now-meta {
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .play-now-rating,
  .play-now-category {
    font-size: 0.85rem;
  }

  .play-now-btn {
    padding: 1rem 3rem;
    font-size: 1.15rem;
    min-width: 200px;
  }

  .play-now-btn svg {
    width: 18px;
    height: 18px;
  }

  .play-now-actions {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .play-now-action-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }

  .play-now-action-btn svg {
    width: 16px;
    height: 16px;
  }

  .play-now-expand {
    margin-top: 1.5rem;
  }

  .play-now-expand svg {
    width: 24px;
    height: 24px;
  }

  .game-frame-wrapper {
    padding-bottom: 125%;
    /* Increased height for larger overlay content */
  }

  .game-iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
  }

  .game-actions {
    gap: 0.5rem;
    padding: 0.75rem;
    flex-wrap: wrap;
  }

  .game-action-btn {
    padding: 0.625rem;
    width: 40px;
    height: 40px;
  }

  .similar-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .categories-tags {
    gap: 0.5rem;
  }

  .category-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .game-main-content {
    padding: 0 0.5rem;
  }
}

.game-sidebar::-webkit-scrollbar {
  width: 6px;
}

.game-sidebar::-webkit-scrollbar-track {
  background: var(--card-background-40);
  border-radius: 3px;
}

.game-sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-25);
  border-radius: 3px;
}

.game-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Additional Homepage Styles */
.no-game-message {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-background-40);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.no-game-message svg {
  color: var(--card-background-40);
  margin-bottom: 1.5rem;
}

.no-game-message h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.no-game-message p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}


/* All Games Section */
.all-games-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.section-heading svg {
  color: var(--primary-color);
}

.all-games-grid.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.view-all-link {
  text-align: center;
  padding-top: 1rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--card-background-60);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.btn-view-all:hover {
  background: rgba(71, 85, 105, 0.8);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-view-all svg {
  transition: transform 0.2s ease;
}

.btn-view-all:hover svg {
  transform: translateX(4px);
}

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
  .all-games-grid.games-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .section-heading {
    font-size: 1.25rem;
  }

  .no-game-message {
    padding: 3rem 1.5rem;
  }

  .no-game-message h2 {
    font-size: 1.5rem;
  }
}

/* Gameplay Video Section (now inside .game-info-section) */
.gameplay-video-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  max-width: 100%;
  overflow: hidden;
}

.game-info-section .gameplay-video-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gameplay-video-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gameplay-video-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: rgb(94, 114, 228);
  border-radius: 2px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .gameplay-video-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .gameplay-video-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gameplay-video-section h2 {
    font-size: 1.25rem;
  }
}

/* Share button success state */
.game-action-btn.success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: var(--text-color) !important;
}

.game-action-btn.success svg {
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Fullscreen improvements */
.game-container:fullscreen {
  width: 100vw;
  height: 100vh;
}

.game-container:fullscreen .game-frame-wrapper {
  padding-bottom: 0;
  height: 100%;
}

.game-container:fullscreen .game-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0;
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.game-container:fullscreen .game-action-btn {
  padding: 0.4rem 0.6rem;
  min-width: auto;
  font-size: 0.75rem;
}

.game-container:fullscreen .game-action-btn svg {
  width: 16px;
  height: 16px;
}

.game-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}

.game-container:-webkit-full-screen .game-frame-wrapper {
  padding-bottom: 0;
  height: 100%;
}

.game-container:-webkit-full-screen .game-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0;
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.game-container:-webkit-full-screen .game-action-btn {
  padding: 0.4rem 0.6rem;
  min-width: auto;
  font-size: 0.75rem;
}

.game-container:-webkit-full-screen .game-action-btn svg {
  width: 16px;
  height: 16px;
}

.game-container:-moz-full-screen {
  width: 100vw;
  height: 100vh;
}

.game-container:-moz-full-screen .game-frame-wrapper {
  padding-bottom: 0;
  height: 100%;
}

.game-container:-moz-full-screen .game-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0;
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.game-container:-moz-full-screen .game-action-btn {
  padding: 0.4rem 0.6rem;
  min-width: auto;
  font-size: 0.75rem;
}

.game-container:-moz-full-screen .game-action-btn svg {
  width: 16px;
  height: 16px;
}

.game-container:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
}

.game-container:-ms-fullscreen .game-frame-wrapper {
  padding-bottom: 0;
  height: 100%;
}

.game-container:-ms-fullscreen .game-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0;
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.game-container:-ms-fullscreen .game-action-btn {
  padding: 0.4rem 0.6rem;
  min-width: auto;
  font-size: 0.75rem;
}

.game-container:-ms-fullscreen .game-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Related Games Section */
.related-games-section {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 2rem 2rem;
}

.layout-fullwidth .related-games-section {
  max-width: 100%;
  padding: 0 3rem 2rem;
}

.related-games-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.related-games-section .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
}

.related-games-section .game-card {
  display: block;
  background: var(--card-background-60);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.related-games-section .game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--primary-25);
  border-color: var(--primary-color);
}

.related-games-section .game-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.related-games-section .game-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-games-section .game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.related-games-section .game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.related-games-section .game-card:hover .game-card-overlay {
  opacity: 1;
}

.related-games-section .play-button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 3px solid var(--text-color);
  border-radius: 50%;
  color: var(--text-color);
  box-shadow: 0 6px 24px var(--primary-25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-games-section .play-button svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.related-games-section .game-card:hover .play-button {
  transform: scale(1.15);
  box-shadow: 0 8px 32px var(--primary-25), 0 0 0 8px var(--primary-20);
}

/* Card content classes removed â€” cards are now image-only with gradient overlay */

@media (max-width: 768px) {
  .related-games-section {
    padding: 0 1rem 1rem;
    margin: 2rem auto;
  }

  .related-games-section .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.875rem;
  }

  .related-games-section .section-title {
    font-size: 1.35rem;
  }

  .related-games-section .play-button {
    width: 44px;
    height: 44px;
  }

  .related-games-section .play-button svg {
    width: 16px;
    height: 16px;
  }
}

/* Compact Related Games */
.related-games-compact {
  margin: 2rem auto;
  padding: 0 1.5rem 1.5rem;
}

.related-games-compact .section-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.related-games-compact .games-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.875rem;
  margin-top: 0;
}

.related-games-compact .game-card {
  border-radius: 10px;
}

.related-games-compact .game-card-image {
  padding-bottom: 100%;
}

.related-games-compact .game-card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.related-games-compact .play-button {
  width: 40px;
  height: 40px;
  border-width: 2px;
}

.related-games-compact .play-button svg {
  width: 14px;
  height: 14px;
}

/* Compact card content classes removed â€” cards are now image-only */

@media (max-width: 768px) {
  .related-games-compact {
    padding: 0 0.75rem 1rem;
    margin: 1.5rem auto;
  }

  .related-games-compact .section-title {
    font-size: 1.1rem;
  }

  .related-games-compact .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.625rem;
  }

  .related-games-compact .play-button {
    width: 32px;
    height: 32px;
  }

  .related-games-compact .play-button svg {
    width: 12px;
    height: 12px;
  }
}

/* Store Links Section (now inside .game-info-section) */
.game-store-links {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  padding-bottom: 1.5rem;
  background: var(--card-background-40);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.game-store-links h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text-color);
}

.store-section-title {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.store-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--text-color);
  min-width: 160px;
}

.store-button:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.store-button.play-store:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.store-button.app-store:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.store-button svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-60);
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.store-label {
  font-size: 0.65rem;
  color: var(--text-40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.store-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .game-store-links {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .game-store-links h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .store-buttons {
    gap: 0.625rem;
    flex-direction: column;
  }

  .store-button {
    width: 100%;
    min-width: unset;
    padding: 0.5rem 1rem;
    gap: 0.625rem;
  }

  .store-button svg {
    width: 22px;
    height: 22px;
  }

  .store-label {
    font-size: 0.6rem;
  }

  .store-name {
    font-size: 0.85rem;
  }
}


/* ==============================================
   GAME COMMENTS  (inside .game-info-section)
============================================== */

/* Comments body wrapper */
.game-comments-block .game-comments-body {
  margin-top: 0.25rem;
}

/* Hide WP duplicate title */
.game-comments-block .comments-title {
  display: none;
}

/* Comment list */
.game-comments-block .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Each comment card */
.game-comments-block .comment-list .comment {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.game-comments-block .comment-list .comment:hover {
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
}

/* Avatar */
.game-comments-block .comment-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--primary-color-20);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-background);
}

/* Body column */
.game-comments-block .comment-body {
  flex: 1;
  min-width: 0;
}

.game-comments-block .comment-meta {
  margin-bottom: 0.5rem;
}

/* Author row */
.game-comments-block .comment-author.vcard {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.game-comments-block .comment-author .fn {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-color);
}

.game-comments-block .comment-author .says {
  display: none;
}

/* Date */
.game-comments-block .comment-metadata a {
  font-size: 0.775rem;
  color: var(--text-60);
  text-decoration: none;
  transition: color 0.15s;
}

.game-comments-block .comment-metadata a:hover {
  color: var(--primary-color);
}

/* Text */
.game-comments-block .comment-content {
  margin-top: 0.4rem;
}

.game-comments-block .comment-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Reply pill */
.game-comments-block .reply {
  margin-top: 0.75rem;
}

.game-comments-block .reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.275rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-color-10);
  border: 1px solid var(--primary-color-15);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.game-comments-block .reply a:hover {
  background: var(--primary-color-20);
  border-color: var(--primary-color-40);
}

/* Moderation notice */
.game-comments-block .comment-awaiting-moderation {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.775rem;
  color: var(--primary-color);
  background: var(--primary-color-10);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-weight: 600;
}

/* Nested replies */
.game-comments-block .children {
  list-style: none;
  padding: 0;
  margin: 0.625rem 0 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.game-comments-block .children .comment {
  border-left: 3px solid var(--primary-color-20);
  border-radius: 10px;
  padding: 1rem 1.125rem;
}

/* Leave a Reply form */
.game-comments-block #respond {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1.5px solid var(--border-color);
}

.game-comments-block .comment-reply-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.game-comments-block .comment-reply-title small a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--primary-color);
  text-decoration: none;
}

.game-comments-block .comment-notes {
  font-size: 0.8rem;
  color: var(--text-60);
  margin-bottom: 1.25rem;
}

.game-comments-block .comment-form > p {
  margin-bottom: 0.875rem;
}

/* Name / email side by side */
.game-comments-block .comment-form-author,
.game-comments-block .comment-form-email {
  display: inline-block;
  width: calc(50% - 0.375rem);
  vertical-align: top;
  margin-bottom: 0.875rem;
}

.game-comments-block .comment-form-author {
  margin-right: 0.75rem;
}

.game-comments-block .comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.game-comments-block .comment-form label .required {
  color: var(--primary-color);
  margin-left: 2px;
}

/* Inputs & textarea */
.game-comments-block .comment-form input[type="text"],
.game-comments-block .comment-form input[type="email"],
.game-comments-block .comment-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.game-comments-block .comment-form input[type="text"]:focus,
.game-comments-block .comment-form input[type="email"]:focus,
.game-comments-block .comment-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-10);
}

.game-comments-block .comment-form textarea {
  min-height: 115px;
  resize: vertical;
  line-height: 1.65;
}

/* Cookie consent */
.game-comments-block .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.game-comments-block .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary-color);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.game-comments-block .comment-form-cookies-consent label {
  font-size: 0.8rem;
  color: var(--text-60);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

/* Submit button */
.game-comments-block .form-submit {
  margin: 0;
}

.game-comments-block .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2.25rem;
  background: var(--primary-gradient);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}

.game-comments-block .form-submit input[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(var(--primary-rgb), 0.45);
}

.game-comments-block .form-submit input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

/* No comments */
.game-comments-block .no-comments {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  color: var(--text-60);
  font-size: 0.9375rem;
}

/* Mobile */
@media (max-width: 640px) {
  .game-comments-block .comment-list .comment {
    flex-direction: column;
    gap: 0.625rem;
  }

  .game-comments-block .children {
    margin-left: 1rem;
  }

  .game-comments-block .comment-form-author,
  .game-comments-block .comment-form-email {
    width: 100%;
    display: block;
    margin-right: 0;
  }
}
