.container {
  background-color: #0088cc;
  padding: 24px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

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

.title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  padding: 10px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.showMoreBtn {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.showMoreBtn:hover {
  background-color: #1bbc9b;
  transform: translateY(-1px);
}

.navBtn {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.navBtn:hover {
  background-color: #1bbc9b;
  transform: scale(1.1);
}

.gamesContainer {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gamesGrid {
  display: flex;
  /* gap: 20px; */
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: all 0.3s ease;
}

.singleRow {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;

}

.multiRow {
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  height: auto;
}

.gamesGrid::-webkit-scrollbar {
  display: none;
}

.gameCard {
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gameCard:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(27, 188, 155, 0.3);
}

.gameImageContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

.gameImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  /* background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(44, 62, 80, 0.9)); */
}

.spribeBadge {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  backdrop-filter: blur(10px);
}

.multiplier {
  background-color: #1bbc9b;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 8px;
}

.gameTitle {
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paginationBtn {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.paginationBtn:hover:not(:disabled) {
  background-color: #1bbc9b;
}

.paginationBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pageInfo {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {

    padding: 0;
  }

  .header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .controls {
    align-self: flex-end;
  }

  .gameCard {
    width: 100%;
    height: 190px;
  }

  .gameTitle {
    font-size: 14px;
  }

  .navBtn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }


}

@media (max-width: 480px) {
  .gamesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
    /* Disable horizontal scroll for grid */
  }

  .gameCard {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Maintain aspect ratio */
  }

  .gameTitle {
    font-size: 12px;
  }

  .spribeBadge {
    font-size: 8px;
    padding: 2px 6px;
  }

  .multiplier {
    font-size: 12px;
    padding: 4px 8px;
  }


}

/* Touch scroll improvements */
@media (hover: none) and (pointer: coarse) {
  .gamesGrid {
    scroll-snap-type: x mandatory;
  }

  .gameCard {
    scroll-snap-align: start;
  }
}

/* Animation for show more/less */
.gamesGrid {
  transition: height 0.3s ease;
}

/* Smooth hover effects */
.gameCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(27, 188, 155, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gameCard:hover::before {
  opacity: 1;
}

.desktopGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding-bottom: 10px;
}

@keyframes shiver {
  0% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(-2px);
  }

  20% {
    transform: translateX(2px);
  }

  30% {
    transform: translateX(-2px);
  }

  40% {
    transform: translateX(2px);
  }

  50% {
    transform: translateX(-2px);
  }

  60% {
    transform: translateX(2px);
  }

  70% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }

  90% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

.shiver {
  animation: shiver 0.7s linear infinite;
}

.fullscreenIframeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  margin: 0;
  padding: 0;
}

.fullscreenIframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  z-index: 10000;
  background: #000;
}

.closeButton {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.skeletonCard {
  background: #232b36;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.skeletonShimmer {
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, rgba(35, 43, 54, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(35, 43, 54, 0) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}