/* Top 5: o primeiro colocado ganha destaque; cada posição tem uma fita de laço. */
.t5 {
  --t5-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t5-gold: #f2c14e;
  padding-top: 44px;
  padding-bottom: 8px;
}

.t5-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.t5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--t5-gold);
  font: 700 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t5-title {
  font-family: 'Plus Jakarta Sans', Manrope, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}

.t5-sub { margin-top: 8px; color: rgb(var(--fg2)); font-size: 0.92rem; font-weight: 600; }

.t5-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.14);
  color: #ece4ff;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background-color 0.2s ease, transform 0.25s var(--t5-ease);
}
.t5-all:hover { background: hsl(var(--primary) / 0.28); color: #fff; transform: translateY(-2px); }
.t5-all svg { transition: transform 0.25s ease; }
.t5-all:hover svg { transform: translateX(3px); }
.t5-all:focus-visible,
.t5-card:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }

/* ---------- Lista: 1º maior, os demais alinhados pela base ---------- */
.t5-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}

.t5-card {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(137 90 246 / 0.24);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 0% 110%, rgb(137 90 246 / 0.2), transparent 50%),
    linear-gradient(180deg, #191030 0%, #0f0a20 100%);
  transition: transform 0.4s var(--t5-ease), border-color 0.3s ease, box-shadow 0.4s ease;
}

.t5-card:hover {
  transform: translateY(-8px);
  border-color: rgb(137 90 246 / 0.6);
  box-shadow: 0 26px 50px -26px rgb(137 90 246 / 0.55);
}

.t5-item--1 .t5-card {
  border-color: rgb(242 193 78 / 0.5);
  background:
    radial-gradient(120% 90% at 0% 110%, rgb(242 193 78 / 0.16), transparent 50%),
    linear-gradient(180deg, #1d1230 0%, #110a22 100%);
  box-shadow: 0 0 0 1px rgb(242 193 78 / 0.1), 0 24px 60px -30px rgb(242 193 78 / 0.5);
}
.t5-item--1 .t5-card:hover { border-color: rgb(242 193 78 / 0.85); box-shadow: 0 0 0 1px rgb(242 193 78 / 0.2), 0 30px 64px -26px rgb(242 193 78 / 0.6); }

/* ---------- Fita de ranking ---------- */
.t5-rank {
  position: absolute;
  top: -12px;
  left: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 60px;
  padding-bottom: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  background: linear-gradient(180deg, #8a5cf6, #5a2fc7);
  color: #fff;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.5));
}
.t5-rank b { font: 800 22px/1 'Plus Jakarta Sans', Manrope, sans-serif; letter-spacing: -0.04em; }

.t5-item--1 .t5-rank { background: linear-gradient(180deg, #ffe08a, #d9a21f); color: #3a2503; }
.t5-item--2 .t5-rank { background: linear-gradient(180deg, #eef0f6, #aab0c2); color: #202436; }
.t5-item--3 .t5-rank { background: linear-gradient(180deg, #f0b98a, #b8733a); color: #3a1e08; }

/* ---------- Capa ---------- */
.t5-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: #0a0614;
}

.t5-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--t5-ease);
}
.t5-card:hover .t5-cover img { transform: scale(1.07); }

.t5-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.2) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
.t5-card:hover .t5-cover::after { transform: translateX(130%); transition: transform 0.9s var(--t5-ease); }

.t5-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe08a, #d9a21f);
  color: #3a2503;
  font: 800 10px/1 'Plus Jakarta Sans', Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t5-off {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ff5a5f;
  color: #fff;
  font: 800 12px/1 'Plus Jakarta Sans', Manrope, sans-serif;
  box-shadow: 0 6px 14px -4px rgb(255 90 95 / 0.6);
}

.t5-go {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 12px 14px;
  background: linear-gradient(0deg, rgb(10 6 20 / 0.92), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--t5-ease), opacity 0.3s ease;
}
.t5-card:hover .t5-go,
.t5-card:focus-visible .t5-go { opacity: 1; transform: none; }
.t5-card:hover .t5-off { opacity: 0; }
.t5-off { transition: opacity 0.2s ease; }

/* ---------- Corpo ---------- */
.t5-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 16px;
}

.t5-name {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t5-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.t5-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.t5-price s { color: rgb(255 255 255 / 0.42); font-size: 0.78rem; font-weight: 600; }
.t5-price b {
  color: #ece4ff;
  font: 800 1.35rem/1 'Plus Jakarta Sans', Manrope, sans-serif;
  letter-spacing: -0.03em;
}
.t5-item--1 .t5-price b { color: var(--t5-gold); }

.t5-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.74rem;
  font-weight: 700;
}
.t5-meta svg:first-child { color: hsl(var(--primary)); }
.t5-steam { width: 18px; height: 18px; margin-left: auto; color: rgb(255 255 255 / 0.55); }

/* ---------- Entrada ---------- */
.t5.is-armed:not(.is-in) .t5-item { opacity: 0; }
.t5.is-in .t5-item { animation: t5-rise 0.75s var(--t5-ease) calc(var(--i) * 90ms) both; }

@keyframes t5-rise {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1099px) {
  .t5-list { gap: 14px; }
  .t5-body { padding: 14px; }
  .t5-price b { font-size: 1.2rem; }
}

@media (max-width: 899px) {
  .t5-head { align-items: flex-start; }
  .t5-list {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-inline: -16px;
    padding: 20px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .t5-list::-webkit-scrollbar { display: none; }
  .t5-item { flex: 0 0 min(64%, 240px); scroll-snap-align: start; }
  .t5-card { height: 100%; }
  .t5-go { display: none; }
}

@media (max-width: 559px) {
  .t5-all { min-height: 40px; padding: 0 14px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .t5.is-armed:not(.is-in) .t5-item { opacity: 1; }
  .t5.is-in .t5-item { animation: none; }
  .t5-card,
  .t5-cover img { transition: none; }
}

/* ---------- Versão compacta ---------- */
@media (min-width: 900px) {
  .t5-cover { aspect-ratio: 4 / 5; }
  .t5-list { gap: 16px; padding-top: 14px; }
}
.t5-card:hover { transform: translateY(-6px); }
.t5-rank { top: -10px; left: 12px; width: 36px; height: 50px; padding-bottom: 7px; }
.t5-rank b { font-size: 18px; }
.t5-top { top: 10px; right: 10px; padding: 5px 8px; font-size: 9px; }
.t5-off { left: 10px; bottom: 10px; padding: 5px 8px; font-size: 11px; }
.t5-go { padding: 22px 10px 12px; font-size: 12px; }
.t5-body { gap: 10px; padding: 12px; }
.t5-name { font-size: 0.9rem; }
.t5-foot { gap: 6px; padding-top: 10px; }
.t5-price s { font-size: 0.72rem; }
.t5-price b { font-size: 1.15rem; }
.t5-meta { gap: 5px; font-size: 0.68rem; }
.t5-steam { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .t5-item { flex-basis: min(52%, 200px); }
}

/* Destaque do momento: trailer oficial do GTA VI acima do Top 5. Rosa de pôr do sol só aqui, para o bloco se destacar. */
.gta {
  --gta-pink: #ff5d8f;
  --gta-amber: #ffb35c;
  --gta-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: 44px;
}

.gta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  background:
    radial-gradient(70% 90% at 100% 0%, #ff5d8f2e, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #ffb35c1f, transparent 65%),
    #140e20;
  box-shadow: 0 24px 60px -28px #000c;
}

.gta-stage {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b0714;
  cursor: pointer;
}

.gta-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gta-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--gta-ease), filter 400ms ease;
}

.gta-stage:hover .gta-poster {
  transform: scale(1.07);
  filter: saturate(1.1);
}

.gta-stage__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, #140e20 100%),
    linear-gradient(0deg, #0b0714b3, transparent 45%);
  pointer-events: none;
}

.gta-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gta-pink), var(--gta-amber));
  box-shadow: 0 10px 34px -6px #ff5d8f99;
  color: #1a0d1f;
  transform: translate(-50%, -50%);
  transition: transform 320ms var(--gta-ease);
}

.gta-play svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.2rem;
}

.gta-stage:hover .gta-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.gta-stage:active .gta-play {
  transform: translate(-50%, -50%) scale(0.95);
}

.gta-stage__tag {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  color: #f3e9ff;
  font: 700 0.7rem/1 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gta-stage:focus-visible,
.gta-cta:focus-visible {
  outline: 2px solid var(--gta-amber);
  outline-offset: -3px;
}

.gta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.gta-eyebrow {
  color: var(--gta-amber);
  font: 700 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gta-title {
  margin: 0;
  color: #fff;
  font-family: 'Plus Jakarta Sans', Manrope, system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.gta-title b {
  background: linear-gradient(120deg, var(--gta-pink), var(--gta-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gta-sub {
  margin: 0;
  color: rgb(var(--fg2));
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.gta-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.4rem;
}

.gta-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.gta-price s {
  color: #9a8bb0;
  font-size: 0.9rem;
}

.gta-price b {
  color: #f7d287;
  font-size: 1.6rem;
  font-weight: 800;
}

.gta-note {
  flex-basis: 100%;
  order: 3;
  margin: 0;
  color: #9a8bb0;
  font-size: 0.74rem;
  font-weight: 600;
}

.gta-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f3e9ff;
  font-size: 0.85rem;
  font-weight: 700;
}

.gta-soon i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gta-amber);
}

.gta-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 3.3rem;
  padding: 0 3.6rem 0 1.15rem;
  overflow: hidden;
  border: 1.1px solid #6b1f3d;
  border-radius: 11px;
  background: radial-gradient(110% 130% at 47% 0, #ff8fb1 38%, #ff5d8f 66%, #ffb35c);
  box-shadow: 0 14px 22px -10px #000b;
  color: #2a0a1a;
  font: 900 0.95rem/1 Manrope, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter 200ms ease, scale 250ms var(--gta-ease);
}

/* brilho que cruza o botão, igual ao da hero */
.gta-cta::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 28%;
  background: linear-gradient(100deg, transparent, #fff8, transparent);
  pointer-events: none;
  transform: translateX(-160%) skewX(-18deg);
  animation: gta-brilho 4.2s cubic-bezier(0.45, 0, 0.2, 1) 1.2s infinite;
}

.gta-cta__ic {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: grid;
  width: 2.2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #2a0a1a;
  translate: 0 -50%;
}

.gta-cta__ic svg {
  width: 1rem;
  height: 0.75rem;
  fill: #ff8fb1;
  transition: transform 250ms var(--gta-ease);
}

@media (hover: hover) and (pointer: fine) {
  .gta-cta:hover {
    filter: brightness(1.08);
  }

  .gta-cta:hover .gta-cta__ic svg {
    transform: translateX(2px);
  }

  .gta-cta:active {
    scale: 0.98;
  }
}

@keyframes gta-brilho {
  0% {
    transform: translateX(-160%) skewX(-18deg);
  }

  45%,
  100% {
    transform: translateX(520%) skewX(-18deg);
  }
}

@media (max-width: 860px) {
  .gta {
    padding-top: 32px;
  }

  .gta-card {
    grid-template-columns: 1fr;
  }

  .gta-stage__shade {
    background: linear-gradient(0deg, #140e20, transparent 55%);
  }

  .gta-play {
    width: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gta-poster,
  .gta-play,
  .gta-cta {
    transition: none;
  }

  .gta-cta::after {
    animation: none;
  }
}
