/* Modern Arcade Theme - High Performance CSS */
:root {
  --primary: #00FF88;
  --primary-hover: #00cc6a;
  --bg-dark: #0a0b14;
  --bg-card: #151621;
  --bg-card-hover: #1e1f2e;
  --text-main: #ffffff;
  --text-muted: #8a8d9f;
  --nav-bg: rgba(21, 22, 33, 0.95);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px
}

body {
  font-family: 'Inter', 'sans-serif';
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition)
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ul {
  list-style: none
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px
}

.flex {
  display: flex
}

.flex-col {
  flex-direction: column
}

.items-center {
  align-items: center
}

.justify-between {
  justify-content: space-between
}

.justify-center {
  justify-content: center
}

.grid {
  display: grid
}

.hidden {
  display: none
}

.text-center {
  text-align: center
}

.relative {
  position: relative
}

.absolute {
  position: absolute
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes pulse {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.05)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards
}

/* Ripple Effect */
.ripple-effect {
  position: relative;
  overflow: hidden
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.logo span {
  color: var(--primary)
}

.logo img {
  max-height: 50px;
  width: auto
}

.nav-links {
  display: flex;
  gap: 30px
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 15px;
  position: relative
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main)
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition)
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%
}

.search-bar {
  position: relative;
  width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border: 1px solid transparent
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1)
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 100%;
  margin-left: 10px;
  outline: none;
  font-size: 14px
}

.search-icon {
  color: var(--text-muted)
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 15px
}

.btn-login {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 14px
}

.btn-login:hover {
  background: var(--text-main);
  color: var(--bg-dark)
}

.btn-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary)
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer
}

/* Page Layout with Sidebar */
.page-layout {
  display: flex;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  flex-shrink: 0
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px
}

.sidebar-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover)
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0
}

.sidebar-item i {
  width: 18px;
  font-size: 16px
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main)
}

.sidebar-item.active {
  background: var(--primary);
  color: var(--bg-dark)
}

.main-content {
  flex: 1;
  min-width: 0
}

/* Recently Played Bar (Compact Horizontal Style) */
.recently-played-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recently-played-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.recently-played-label span {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.recently-played-label i {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.recently-played-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 4px 0;
}

.recently-played-scroll::-webkit-scrollbar {
  display: none;
}

.recently-played-card {
  flex: 0 0 auto;
  width: 120px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.recently-played-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recently-played-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.recently-played-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.recently-played-card:hover::after {
  opacity: 1;
}

/* Category Sections */
.category-section {
  margin-bottom: 50px
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.view-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition)
}

.view-all:hover {
  color: var(--primary-hover)
}

.view-all i {
  font-size: 12px
}

/* Horizontal Scroll Container */
.games-scroll {
  position: relative;
  overflow: hidden
}

/* Scroll Indicators (Fade Edges) */
.games-scroll::before,
.games-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 60px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.games-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.games-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.games-scroll.show-left::before {
  opacity: 1;
}

.games-scroll.show-right::after {
  opacity: 1;
}

/* Scroll Arrow Buttons */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.9);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.scroll-arrow:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 10px;
}

.games-scroll:hover .scroll-arrow {
  opacity: 1;
}

.scroll-arrow.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* Scroll Hint Animation */
.scroll-hint {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  z-index: 15;
  animation: scrollHintPulse 2s ease-in-out infinite;
  pointer-events: none;
}

.scroll-hint i {
  animation: scrollHintBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.games-scroll.scrolled .scroll-hint {
  display: none;
}

.games-scroll-inner {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.games-scroll-inner::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.game-card-scroll {
  flex: 0 0 200px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.game-card-scroll:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary)
}

/* Category Page */
.category-page-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px
}

.category-header {
  margin-bottom: 40px
}

.category-header-inner {
  display: flex;
  align-items: center;
  gap: 20px
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover
}

.category-info {
  flex: 1
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px
}

.category-description {
  font-size: 16px;
  line-height: 1.6
}

.category-content {
  margin-bottom: 40px
}

.category-footer-desc {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  line-height: 1.8
}

/* Search Page */
.search-page-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px
}

.search-header {
  margin-bottom: 40px
}

.search-title {
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px
}

.search-query {
  color: var(--primary)
}

.search-content {
  margin-bottom: 40px
}

/* Game Page */
.game-page-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px
}

.back-to-games {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  transition: var(--transition)
}

.back-to-games:hover {
  color: var(--primary)
}

.game-page-content {
  display: flex;
  gap: 30px
}

.game-page-container-inner {
  display: flex;
  gap: 30px;
}

.game-main-area {
  flex: 1;
  min-width: 0
}

.game-player-new {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

#game-frame-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.game-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 14, 33, 0.95), rgba(26, 27, 46, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10
}

.game-preview-content {
  text-align: center;
  padding: 40px
}

.game-preview-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  margin: 0 auto 24px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4)
}

.game-preview-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px
}

.play-now-btn {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 16px 40px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition)
}

.play-now-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3)
}

.game-frame-hidden {
  display: none
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none
}

/* Ad Slots */
.ad-top-area {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  min-height: 90px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  align-items: center;
  position: relative;
}

.ad-top-area:empty::after {
  content: 'AD BANNER (728x90)';
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}

.description-with-ads {
  display: flex;
  gap: 30px;
}

.game-desc-left {
  flex: 1;
}

.game-desc-ad {
  width: 300px;
  min-height: 250px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-desc-ad:empty::after {
  content: 'AD (300x250)';
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}

.sidebar-ad {
  margin-bottom: 20px;
  min-height: 250px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-ad:empty::after {
  content: 'AD (300x250)';
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .description-with-ads {
    flex-direction: column;
  }

  .game-desc-ad {
    width: 100%;
    margin-top: 20px;
  }
}

.walkthrough-container {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.walkthrough-container h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--primary-color);
}

#gamemonetize-video {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.game-instructions-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game-instructions-section h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.game-instructions-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.game-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.game-info-left {
  display: flex;
  align-items: center;
  gap: 16px
}

.game-info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover
}

.game-info-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px
}

.game-info-category {
  color: var(--text-muted);
  font-size: 14px
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition)
}

.fullscreen-btn:hover {
  background: var(--primary);
  color: var(--bg-dark)
}

.game-description-section {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.game-description-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px
}

.game-description-content {
  color: var(--text-muted);
  line-height: 1.8
}

.game-sidebar {
  width: 280px;
  flex-shrink: 0
}

.sidebar-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px
}

.more-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.more-game-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.more-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow)
}

.more-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block
}

@media(max-width:1024px) {
  .game-page-content {
    flex-direction: column
  }

  .game-sidebar {
    width: 100%
  }

  .more-games-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:768px) {
  .more-games-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .game-preview-icon {
    width: 80px;
    height: 80px
  }

  .game-preview-title {
    font-size: 24px
  }

  .play-now-btn {
    padding: 12px 32px;
    font-size: 16px
  }

  /* Responsive Game Info Bar */
  .game-info-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .game-info-left {
    width: 100%;
    justify-content: flex-start;
  }

  .game-info-icon {
    width: 40px;
    height: 40px;
  }

  .game-info-title {
    font-size: 16px;
  }

  .game-info-category {
    font-size: 12px;
  }

  .fullscreen-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .fullscreen-btn::after {
    content: 'Fullscreen';
  }
}

@media(max-width:480px) {
  .game-preview-icon {
    width: 60px;
    height: 60px
  }

  .game-preview-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .game-preview-content {
    padding: 20px;
  }

  .play-now-btn {
    padding: 10px 24px;
    font-size: 14px;
    gap: 8px;
  }

  .game-info-bar {
    padding: 12px;
  }

  .game-info-icon {
    width: 35px;
    height: 35px;
  }

  .game-info-title {
    font-size: 14px;
  }
}

/* Game Badges */
.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4)
}

.badge-new {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 123, 213, 0.4)
}

/* Loading Placeholder */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px
}

.loading-placeholder i {
  font-size: 20px
}

.error-message {
  padding: 40px;
  text-align: center;
  color: var(--text-muted)
}

/* Main Content */
#main-content {
  padding-top: 100px;
  min-height: 100vh
}

/* Hero / Trending */
.trending-games {
  margin-bottom: 40px
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px
}

.section-title i {
  color: var(--primary)
}

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary)
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #2a2b3d
}

.game-info {
  padding: 15px
}

.game-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px
}

.game-cat {
  font-size: 12px;
  color: var(--text-muted);
  display: block
}

/* Game Page */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative
}

.game-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

.img-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center
}

.btn-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--bg-dark);
  cursor: pointer;
  animation: pulse 2s infinite;
  box-shadow: 0 0 30px var(--primary)
}

.btn-play:hover {
  transform: scale(1.1)
}

.game-details {
  margin-top: 30px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none
}

/* Footer */
footer {
  background: var(--bg-card);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-main)
}

.footer-links li {
  margin-bottom: 10px
}

.footer-links a {
  color: var(--text-muted)
}

.footer-links a:hover {
  color: var(--primary)
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px
}

/* Responsive */
@media(max-width:1024px) {
  .game-details {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .header-inner {
    height: 60px
  }

  .nav-links,
  .user-actions,
  .search-bar,
  .hidden-mobile {
    display: none !important
  }

  .menu-toggle {
    display: block
  }

  #main-content {
    padding-top: 80px
  }

  .page-layout {
    flex-direction: column;
    padding: 0 20px
  }

  .sidebar {
    display: none
  }

  .continue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .main-content {
    width: 100%
  }
}