/* --- 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;
}

.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: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.game-container {
  position: relative;
  width: 100%;
  background: var(--card-background);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.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(--card-background);
  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(20px) brightness(0.7);
  transform: scale(1.1);
  z-index: 1;
}

.play-now-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, var(--primary-color-40) 0%, var(--secondary-color) 100%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.6) 100%);
  background-blend-mode: overlay;
  opacity: 0.8;
  z-index: 2;
}

.play-now-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-now-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 350px;
  padding: 1rem;
  z-index: 3;
}

.play-now-game-thumb {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
}

.play-now-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-now-game-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.play-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary-gradient);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--primary-color-40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-now-btn span {
  color: #ffffff !important;
}

.play-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-color-50);
}

.play-now-btn:active {
  transform: translateY(0);
}

.play-now-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.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;
}

.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 spin {
  to { transform: rotate(360deg); }
}

@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.75rem;
  padding: 1rem;
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.game-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  width: 40px;
  height: 40px;
  background: var(--card-background-80);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-action-btn:hover {
  background: var(--card-background);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.game-action-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.game-action-btn svg.hidden {
  display: none;
}

.game-action-btn span {
  display: none;
}

.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;
}

/* Game Info Section */
.game-info-section {
  background: var(--card-background-40);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.game-info-section > * {
  max-width: 100%;
  box-sizing: border-box;
}

.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(--card-background-40);
}

.game-title-main {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.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;
}

/* Similar Games Section */
.similar-games-container {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.similar-games-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.similar-games-heading svg {
  color: var(--primary-color);
}

.similar-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.similar-game-card {
  display: block;
  background: var(--card-background-60);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.similar-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.similar-game-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.similar-game-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similar-game-info {
  padding: 0.75rem;
}

.similar-game-info h4 {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-game-meta {
  font-size: 0.75rem;
  color: var(--text-60);
}

.similar-game-meta .rating {
  color: #fbbf24;
}

/* Game Metadata Section */
.game-metadata-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.metadata-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.metadata-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  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.3s ease;
}

.metadata-tag:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: var(--primary-25);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.metadata-tag:hover::before {
  opacity: 1;
}

.metadata-tag svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  transition: transform 0.3s 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 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  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: 1rem;
}

.game-description {
  max-width: 100%;
  overflow-wrap: break-word;
}

.game-description h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.game-description-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  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: 12px;
 }

.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;
  }

  .similar-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .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-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-content {
    max-width: 280px;
    padding: 0.5rem;
  }

  .play-now-game-thumb {
    width: 140px;
    height: 140px;
    margin-bottom: 0.75rem;
  }

  .play-now-game-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .play-now-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .play-now-btn svg {
    width: 16px;
    height: 16px;
  }

  .game-frame-wrapper {
    padding-bottom: 75%;
  }

  .play-now-overlay {
    padding-bottom: 75%;
  }

  .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;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--primary-25);
}

/* 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 {
  display: 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 {
    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 */
.gameplay-video-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  max-width: 100%;
  overflow: hidden;
}

.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-top: 2rem;
    padding-top: 2rem;
  }

  .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: 3rem 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.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.related-games-section .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .related-games-section {
    padding: 0 1rem 1rem;
  }

  .related-games-section .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .related-games-section .section-title {
    font-size: 1.5rem;
  }
}

/* Store Links Section */
.game-store-links {
  margin: 1.5rem 0 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-store-links h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.store-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
  min-width: 160px;
}

.store-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-button.play-store:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.store-button.app-store:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.store-button svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.9;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.store-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.store-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .game-store-links {
    margin: 1.5rem 0;
    padding: 1rem;
  }

  .game-store-links h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .store-buttons {
    gap: 0.75rem;
    flex-direction: column;
  }

  .store-button {
    width: 100%;
    min-width: unset;
    padding: 0.625rem 1.25rem;
    gap: 0.625rem;
  }

  .store-button svg {
    width: 24px;
    height: 24px;
  }

  .store-label {
    font-size: 0.65rem;
  }

  .store-name {
    font-size: 0.9rem;
  }
}
