.gx-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
}

.gx-card[hidden] {
  display: none;
}

.gx-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
}

.gx-title::before {
  content: '';
  width: 0.1875rem;
  height: 1.125rem;
  border-radius: 999px;
  background: var(--brand);
}

/* ---------- galeria de trailer e imagens ---------- */

#gx-gallery {
  position: relative;
}

#gx-gallery > #package-image {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#gx-gallery:not(.is-ready)::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(90deg, #08090c 20%, #161922 50%, #08090c 80%);
  background-size: 200% 100%;
  animation: gx-shimmer 1.05s ease-in-out infinite;
}

.gx-stage {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  aspect-ratio: 16 / 9;
}

.gx-stage--pending {
  background:
    linear-gradient(90deg, #08090c 20%, #161922 50%, #08090c 80%);
  background-size: 200% 100%;
  animation: gx-shimmer 1.05s ease-in-out infinite;
}

@keyframes gx-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.gx-stage__item {
  position: absolute;
  inset: 0;
  display: none;
}

.gx-stage__item.is-active {
  display: block;
}

.gx-stage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gx-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.gx-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.gx-player__bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.72);
  color: #ffffff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.gx-player__bigplay:hover {
  background: rgba(var(--brand-rgb), 0.85);
  border-color: rgba(var(--brand-rgb), 0.95);
}

.gx-player__bigplay svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
}

.gx-player.is-playing .gx-player__bigplay {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

.gx-player__bar {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gx-player.is-playing.is-idle .gx-player__bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.gx-player__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #f4f6fb;
  cursor: pointer;
}

.gx-player__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.gx-player__btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.gx-player__time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  min-width: 4.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.gx-player__sep {
  color: rgba(255, 255, 255, 0.35);
}

.gx-player__seek {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.gx-player__seek input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.28rem;
  border-radius: 999px;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 / var(--gx-played, 0%) 100% no-repeat,
    rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}

.gx-player__seek input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}

.gx-player__seek input[type='range']::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: var(--brand);
}

.gx-player:fullscreen,
.gx-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.gx-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gx-nav:hover {
  background: rgba(var(--brand-rgb), 0.7);
  border-color: rgba(var(--brand-rgb), 0.9);
}

.gx-nav--prev {
  left: 0.625rem;
}

.gx-nav--next {
  right: 0.625rem;
}

.gx-nav svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

.gx-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
  /* Folga para o hover levantar a miniatura sem que o overflow corte a borda. */
  padding: 0.25rem 0.125rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gx-thumbs::-webkit-scrollbar {
  display: none;
}

.gx-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 4.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gx-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.gx-thumb.is-active {
  opacity: 1;
  border-color: var(--brand);
}

.gx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gx-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.gx-thumb__play svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- requisitos do sistema ---------- */

.gx-req {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

@media (min-width: 768px) {
  .gx-req {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gx-req__col {
  padding: 0.875rem 1rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.gx-req__col[hidden] {
  display: none;
}

.gx-req__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.gx-req__col--recommended .gx-req__head {
  color: var(--brand-light);
}

.gx-req__head svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

.gx-req__row + .gx-req__row {
  margin-top: 0.75rem;
}

.gx-req__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.gx-req__col--recommended .gx-req__label {
  color: rgba(127, 176, 255, 0.75);
}

.gx-req__value {
  margin-top: 0.1875rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #ffffff;
}
