.iplaytab-single-game {
  min-height: 100vh;
  padding: 24px;
  color: #ffffff;
  background: #0f1220;
  font-family: inherit;
	/* Light theme override (no variables) */
	&[data-theme="light"] {
	  background: #f5f6fb;
	  color: #111827;
	}

	/* Topbar */
	.topbar {
	  max-width: 1280px;
	  margin: 0 auto 16px;
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 16px;
	}

	.game-title {
	  margin: 0;
	  font-size: 26px;
	  line-height: 1.2;
	}

	.topbar-actions {
	  display: flex;
	  gap: 10px;
	}

	/* Buttons */
	.btn {
	  cursor: pointer;
	  border: 0;
	  border-radius: 10px;
	  padding: 10px 14px;
	  font-weight: 700;
	  background: #7c7cff;
	  color: #ffffff;
	}

	.btn:hover {
	  filter: brightness(1.05);
	}

	.btn-ghost {
	  background: rgba(255,255,255,.10);
	}

	&[data-theme="light"] .btn-ghost {
	  background: rgba(17,24,39,.08);
	  color: #111827;
	}


	/* Player */
	.game-player {
	  position: relative;
	  background: #171a2f;
	  border-radius: 14px;
	  padding: 16px;
	}

	&[data-theme="light"] .game-player {
	  background: #ffffff;
	  border: 1px solid rgba(17,24,39,.08);
	}

	.game-iframe {
	  position: relative;
	  padding-top: 56.25%;
	  overflow: hidden;
	  border-radius: 10px;
	  background: rgba(0,0,0,.25);
	}

	&[data-theme="light"] .game-iframe {
	  background: rgba(17,24,39,.05);
	}

	.game-iframe iframe {
	  position: absolute;
	  inset: 0;
	  width: 100%;
	  height: 100%;
	  border: 0;
	}

	/* Sticky sidebar (CrazyGames-ish) */
	.game-info {
	  background: #1d2140;
	  border-radius: 14px;
	  padding: 24px;
	  top: 16px;
	}

	&[data-theme="light"] .game-info {
	  background: #ffffff;
	  border: 1px solid rgba(17,24,39,.08);
	}

	.info-item {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  padding: 10px 0;
	  border-bottom: 1px solid rgba(255,255,255,.06);
	}

	&[data-theme="light"] .info-item {
	  border-bottom: 1px solid rgba(17,24,39,.08);
	}

	.info-item:last-child {
	  border-bottom: none;
	}

	.label {
	  font-size: 14px;
	  color: #9aa0d1;
	}

	&[data-theme="light"] .label {
	  color: #6b7280;
	}

	.value {
	  font-weight: 700;
	  text-align: right;
	}

	.value.rating {
	  color: #ffd166;
	}

	&[data-theme="light"] .value.rating {
	  color: #b45309;
	}

	.value a {
	  color: #7c7cff;
	  text-decoration: none;
	}

	/* Description */
	.game-description {
	  margin-top: 24px;
	  background: #171a2f;
	  border-radius: 14px;
	  padding: 24px;
	}

	&[data-theme="light"] .game-description {
	  background: #ffffff;
	  border: 1px solid rgba(17,24,39,.08);
	}

	/* Loading overlay + spinner */
	.game-overlay {
	  position: absolute;
	  inset: 16px;
	  border-radius: 10px;
	  display: none;
	  align-items: center;
	  justify-content: center;
	  background: rgba(15,18,32,.72);
	  backdrop-filter: blur(6px);
	  z-index: 5;
	}

	&[data-theme="light"] .game-overlay {
	  background: rgba(255,255,255,.78);
	}

	.game-overlay.is-active {
	  display: flex;
	}

	.spinner {
	  width: 44px;
	  height: 44px;
	  border-radius: 50%;
	  border: 4px solid rgba(255,255,255,.22);
	  border-top-color: rgba(255,255,255,.95);
	  animation: iplaytab-spin 0.9s linear infinite;
	}

	&[data-theme="light"] .spinner {
	  border: 4px solid rgba(17,24,39,.18);
	  border-top-color: rgba(17,24,39,.85);
	}

	@keyframes iplaytab-spin {
	  to { transform: rotate(360deg); }
	}

	/* Fullscreen state */
	.game-player.is-fullscreen {
	  position: fixed;
	  inset: 0;
	  padding: 12px;
	  border-radius: 0;
	  z-index: 999999;
	  background: #0b0d18;
	}

	&[data-theme="light"] .game-player.is-fullscreen {
	  background: #ffffff;
	}

	.game-player.is-fullscreen .game-iframe {
	  padding-top: 0;
	  height: calc(100vh - 24px);
	  border-radius: 12px;
	}

	.game-player.is-fullscreen .game-iframe iframe {
	  position: absolute;
	  inset: 0;
	}

	/* Lock body scroll when fullscreen */
	body.iplaytab-no-scroll {
	  overflow: hidden !important;
	}

	/* Responsive */
	@media (max-width: 1024px) {
	  .game-container {
		grid-template-columns: 1fr;
	  }
	  .game-info {
		order: -1;
		position: static;
	  }
	}
	.game-trailer-player {
	  position: relative;
	  width: 100%;
	  margin-top: 24px;
        border-radius: 14px;
        padding: 24px;
	  background: #0b0d18;
	  border-radius: 14px;
	  overflow: hidden;
	  aspect-ratio: 16 / 9;
	}

	/* iframe & video dùng chung */
	.game-trailer-player iframe,
	.game-trailer-player video {
	  position: absolute;
	  inset: 0;
	  width: 100%;
	  height: 100%;
	  border: 0;
	  display: block;
	  background: #000000;
	}

	/* Video riêng: UX tốt hơn */
	.game-trailer-player video {
	  object-fit: cover;
	}

	/* Optional: hover nhẹ cho desktop */
	@media (hover: hover) {
	  .game-trailer-player:hover {
		box-shadow: 0 12px 32px rgba(0,0,0,.45);
		transform: translateY(-1px);
		transition: box-shadow .2s ease, transform .2s ease;
	  }
	}

}
.left-side-game {
	.side-item {
		margin-bottom: 16px;
	}
}



.iplaytab-game-archive {
  background: #0f1220;
  color: #ffffff;
  min-height: 100vh;
  font-family: inherit;

  /* ---------- HERO ---------- */
  .archive-hero {
    padding: 48px 24px 56px;
    background: linear-gradient(180deg, #3a237a 0%, #0f1220 70%);
  }

  .archive-inner {
    max-width: 1280px;
    margin: 0 auto;
  }

  .archive-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
  }

  .archive-desc {
    max-width: 720px;
    color: #cfd3ff;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* ---------- FILTER PILLS ---------- */
  .filter-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 0;

    &.is-active {
      background: #ffffff;
      color: #2b1c5a;
    }
  }

  /* ---------- TOOLBAR ---------- */
  .archive-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .sort-select {
    background: #121530;
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .game-count {
    color: #b9bddc;
    font-weight: 600;
  }

  /* ---------- GAME GRID ---------- */
  .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 48px;
  }
  .card-title, .card-meta {
      display: block;
  }

  .game-card {
    background: #171a2f;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
  }

  .card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0b0d18;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd166;
    color: #000000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
  }

  .card-meta {
    font-size: 13px;
    color: #9aa0d1;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 768px) {
    .archive-title {
      font-size: 28px;
    }

    .game-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
  }
}


