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

body, html {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: url('https://i.ibb.co/HT1Q2yK7/file-000000009b50722f80233828827cbafe.png') no-repeat center center fixed;
  background-size: cover;
  color: #1a1a2e;
  overflow-x: hidden;
}

.game-page {
  display: flex;
  min-height: 100vh;
  padding: 10px;
  gap: 10px;
}

/* Left Sidebar */
.left-sidebar {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  margin-bottom: 5px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: transparent;
  border-radius: 12px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-icon:hover,
.sidebar-icon.active {
  background: #e8f4fc;
  color: #0ea5e9;
}

.related-games {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.related-game {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.related-game:hover {
  transform: scale(1.05);
}

.related-game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Game Container */
.game-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

/* Back Button */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #e8f4fc;
  border-radius: 12px;
  color: #0ea5e9;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.back-btn:hover {
  background: #d1ecf9;
  transform: scale(1.05);
}

/* Game Info Bar */
.game-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.game-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.game-details {
  flex: 1;
}

.game-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.game-author {
  font-size: 13px;
  color: #718096;
}

.fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.fullscreen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

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

/* Bottom Games Row */
.bottom-games {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.bottom-game {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.bottom-game:hover {
  transform: scale(1.08);
}

.bottom-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Sidebar */
.right-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-placeholder {
  flex: 1;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: 600;
}

.ad-size {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Fullscreen Styles */
.game-container:fullscreen,
.game-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  aspect-ratio: auto;
}

.game-container:fullscreen .game-top-bar,
.game-container:-webkit-full-screen .game-top-bar,
.game-container:fullscreen .game-controls,
.game-container:-webkit-full-screen .game-controls,
.game-container:fullscreen .nav-arrow,
.game-container:-webkit-full-screen .nav-arrow,
.game-container:fullscreen .help-btn,
.game-container:-webkit-full-screen .help-btn {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .game-page {
    padding: 8px;
  }
  
  .left-sidebar {
    width: 60px;
    padding: 6px;
  }
  
  .logo-img {
    width: 44px;
    height: 44px;
  }
  
  .game-info-bar {
    flex-wrap: wrap;
  }
  
  .game-stats {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .bottom-games {
    padding: 10px;
  }
  
  .bottom-game {
    width: 65px;
    height: 65px;
  }
}