/*
 * Slider da capa (lib/site/hero-slider.ts). Medidas do carrossel de
 * destaques da Rockstar Games: respiro lateral de 13% da largura, conteúdo
 * e controles a 72px da base, botões em pílula de 54px, indicadores de 10px
 * que viram uma pílula de 80px com a barra de progresso.
 */
.dgb-hs {
  --hs-pad-x: max(24px, 13vw);
  --hs-pad-bottom: clamp(40px, 5vw, 72px);
  --hs-ease: cubic-bezier(0.65, 0, 0.15, 1);
  --hs-duration: 1000ms;
  position: relative;
  width: 100%;
  /* Tamanho por aparelho (variáveis do renderizador): altura da tela ou proporção fixa. */
  height: var(--hs-h-d, 100svh);
  aspect-ratio: var(--hs-ar-d, auto);
  max-height: 100svh;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  color: #fdfdfd;
  background: #000;
  -webkit-font-smoothing: antialiased;
}
/*
 * Tipografia: 100% do tema. Família, peso, tamanho, entrelinha e espaçamento
 * dos títulos (h1/h2), do texto (p) e dos botões vêm das regras do tema e da
 * Aparência; aqui só a cor (o slider é escuro) e o espaço entre as linhas.
 */
.dgb-hs :is(h1, h2, p, a) { color: inherit; }

.dgb-hs-viewport {
  position: absolute;
  inset: 0;
  touch-action: pan-y pinch-zoom;
}
.dgb-hs.is-dragging .dgb-hs-viewport { cursor: grabbing; user-select: none; }

.dgb-hs-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
/* Camada própria só para os slides em cena: menos memória de vídeo no celular. */
.dgb-hs-slide.is-active,
.dgb-hs-slide.is-moving { will-change: transform, opacity; }
/* Sem JavaScript, só o primeiro slide. */
.dgb-hs:not(.is-ready) .dgb-hs-slide:not(.is-active) { display: none; }
.dgb-hs.is-ready .dgb-hs-slide { visibility: hidden; }
.dgb-hs.is-ready .dgb-hs-slide.is-active,
.dgb-hs.is-ready .dgb-hs-slide.is-moving { visibility: visible; }
.dgb-hs-slide.is-active { z-index: 2; }
.dgb-hs-slide.is-moving { z-index: 1; }
.dgb-hs-slide.is-animating {
  transition: transform var(--hs-duration) var(--hs-ease), opacity var(--hs-duration) var(--hs-ease);
}

/*
 * Fundo. Enquadramento por slide (variáveis do renderizador): ponto de foco
 * no computador (--hs-pos-d) e no celular (--hs-pos-m), encaixe (--hs-fit,
 * com a cor --hs-fill em volta da imagem inteira), aproximação (--hs-zoom,
 * a partir do ponto de foco) e ajustes de cor (--hs-filter).
 */
.dgb-hs-media { position: absolute; inset: 0; overflow: hidden; background: var(--hs-fill, #000); }
.dgb-hs-media picture { display: contents; }
/* Seletor duplo: o tema pode ter `.lt img { height: auto }`, que venceria uma classe só. */
.dgb-hs .dgb-hs-image,
.dgb-hs .dgb-hs-video {
  --hs-pos: var(--hs-pos-d, 50% 50%);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: var(--hs-fit, cover);
  object-position: var(--hs-pos);
  display: block;
  transform-origin: var(--hs-pos);
  transform: scale(var(--hs-zoom, 1));
  filter: var(--hs-filter, none);
}
@media (max-width: 680px) {
  .dgb-hs .dgb-hs-image,
  .dgb-hs .dgb-hs-video { --hs-pos: var(--hs-pos-m, var(--hs-pos-d, 50% 50%)); }
}
.dgb-hs-motion--zoom .dgb-hs-image,
.dgb-hs-motion--zoom .dgb-hs-video { transform: scale(calc(var(--hs-zoom, 1) * 1.001)); }
/* O slide que sai segue no zoom até sumir (sem voltar de uma vez ao tamanho inicial). */
.dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-motion--zoom .dgb-hs-image,
.dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-motion--zoom .dgb-hs-video {
  animation: dgb-hs-zoom calc(var(--hs-interval, 7000ms) + 4000ms) linear forwards;
}
.dgb-hs-motion--pan .dgb-hs-image,
.dgb-hs-motion--pan .dgb-hs-video { transform: scale(calc(var(--hs-zoom, 1) * 1.12)) translateX(-3%); }
.dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-motion--pan .dgb-hs-image,
.dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-motion--pan .dgb-hs-video {
  animation: dgb-hs-pan calc(var(--hs-interval, 7000ms) + 4000ms) linear forwards;
}
@keyframes dgb-hs-zoom { from { transform: scale(calc(var(--hs-zoom, 1) * 1.001)); } to { transform: scale(calc(var(--hs-zoom, 1) * 1.09)); } }
@keyframes dgb-hs-pan { from { transform: scale(calc(var(--hs-zoom, 1) * 1.12)) translateX(-3%); } to { transform: scale(calc(var(--hs-zoom, 1) * 1.12)) translateX(3%); } }

/* Fundo próprio do celular: duas camadas, uma por tamanho de tela. */
.dgb-hs-media--mobile { display: none; }
@media (max-width: 680px) {
  .dgb-hs-media--desktop { display: none; }
  .dgb-hs-media--mobile { display: block; }
}

/* Animações de fundo desligadas: imagens paradas e cores fixas (vídeos seguem tocando). */
.dgb-hs--still .dgb-hs-media .dgb-hs-image,
.dgb-hs--still .dgb-hs-media .dgb-hs-video { animation: none !important; transform: scale(var(--hs-zoom, 1)) !important; }
.dgb-hs--still .dgb-hs-gradient { animation: none !important; }

.dgb-hs-gradient {
  background: linear-gradient(120deg, var(--hs-gradient));
  background-size: 300% 300%;
  animation: dgb-hs-gradient 16s ease-in-out infinite alternate;
}
@keyframes dgb-hs-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Escurecimento: mais forte embaixo (texto) e uma faixa no topo (cabeçalho). */
.dgb-hs-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, calc(var(--hs-overlay, 0.4) * 0.8)) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(to top, rgba(0, 0, 0, var(--hs-overlay, 0.4)) 0%, rgba(0, 0, 0, calc(var(--hs-overlay, 0.4) * 0.45)) 38%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(to right, rgba(0, 0, 0, calc(var(--hs-overlay, 0.4) * 0.5)) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Conteúdo */
.dgb-hs-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--hs-pad-bottom);
  z-index: 3;
  padding: 0 var(--hs-pad-x);
  display: grid;
  justify-content: start;
}
.dgb-hs-inner {
  display: grid;
  grid-template-areas: "heading" "ctas";
  gap: 18px 45px;
  align-items: center;
  max-width: min(880px, calc(100vw - var(--hs-pad-x) * 2 - 260px));
}
.dgb-hs-inner.has-logo {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "logo heading" "logo ctas";
}
.dgb-hs-logo { grid-area: logo; width: clamp(120px, 15vw, 216px); align-self: center; }
.dgb-hs-logo-image { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.dgb-hs-heading { grid-area: heading; align-self: end; }
.dgb-hs-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; align-self: start; }

/* A linha acima do título é o texto do tema, menor e em maiúsculas. */
.dgb-hs-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8em;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dgb-hs-title { margin: 0; text-wrap: balance; }
.dgb-hs-text { margin: 12px 0 0; max-width: 46ch; opacity: 0.88; }

.dgb-hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 27px;
  /* Escolhido no editor (Arredondamento dos botões); pílula por padrão. */
  border-radius: var(--hs-button-radius, 999px);
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, outline-color 0.25s ease-in-out;
}
.dgb-hs-button--primary { background: var(--hs-accent, #fff); color: var(--hs-accent-text, #000) !important; border: 0; }
.dgb-hs-button--primary:hover { background: #fff; color: #000 !important; }
.dgb-hs-button--outline { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.5); }
.dgb-hs-button--outline:hover { background: #fff; color: #000 !important; border-color: #fff; }
.dgb-hs-button:focus-visible,
.dgb-hs-play:focus-visible,
.dgb-hs-dot-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Entrada do texto: o do slide novo sobe 40px e aparece; o do que sai some. */
.dgb-hs.is-ready .dgb-hs-inner { transition: opacity 0.35s ease, transform 0.35s ease; }
.dgb-hs.is-ready .dgb-hs-slide:not(.is-active) .dgb-hs-inner { opacity: 0; transform: translateY(40px); }
.dgb-hs.is-ready .dgb-hs-slide.is-active .dgb-hs-inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease 0.35s, transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) 0.35s;
}
.dgb-hs.is-ready.is-instant .dgb-hs-inner { transition: none !important; }

/* Controles */
.dgb-hs-controls {
  position: absolute;
  right: var(--hs-pad-x);
  bottom: var(--hs-pad-bottom);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.dgb-hs:not(.is-ready) .dgb-hs-controls { display: none; }
.dgb-hs-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: background-color 0.25s ease-in-out;
}
.dgb-hs-play:hover { background: rgba(255, 255, 255, 0.12); }
.dgb-hs-play svg { width: 16px; height: 16px; fill: currentColor; }
.dgb-hs-play .dgb-hs-icon-play { display: none; }
.dgb-hs.is-paused .dgb-hs-play .dgb-hs-icon-play { display: block; }
.dgb-hs.is-paused .dgb-hs-play .dgb-hs-icon-pause { display: none; }

.dgb-hs-dots { display: flex; align-items: center; }
.dgb-hs-dot-button {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 1px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dgb-hs-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.45s var(--hs-ease), background-color 0.3s ease-in-out;
}
.dgb-hs-dot-button:hover .dgb-hs-dot { background: rgba(255, 255, 255, 0.45); }
.dgb-hs-dot-button[aria-current="true"] .dgb-hs-dot { width: 80px; background: rgba(255, 255, 255, 0.2); }
.dgb-hs-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 1000px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.dgb-hs-dot-button[aria-current="true"] .dgb-hs-fill.is-running {
  animation: dgb-hs-progress var(--hs-interval, 7000ms) linear forwards;
}
.dgb-hs.is-paused .dgb-hs-fill.is-running,
.dgb-hs.is-held .dgb-hs-fill.is-running { animation-play-state: paused; }
.dgb-hs:not([data-autoplay]) .dgb-hs-dot-button[aria-current="true"] .dgb-hs-fill,
.dgb-hs.is-stopped .dgb-hs-dot-button[aria-current="true"] .dgb-hs-fill { transform: scaleX(1); animation: none; }
@keyframes dgb-hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dgb-hs:not([data-autoplay]) .dgb-hs-play { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .dgb-hs {
    --hs-pad-x: 48px;
    height: var(--hs-h-t, var(--hs-h-d, 100svh));
    aspect-ratio: var(--hs-ar-t, var(--hs-ar-d, auto));
  }
  .dgb-hs-inner { max-width: calc(100vw - 96px); padding-bottom: 56px; }
  .dgb-hs-controls { left: var(--hs-pad-x); justify-content: flex-start; }
}

/* Celular: tudo embaixo, botões dividindo a linha e indicadores em faixas. */
@media (max-width: 680px) {
  /* Altura mínima: título, botões e indicadores sempre cabem, mesmo numa proporção bem larga. */
  .dgb-hs {
    --hs-pad-x: 20px;
    --hs-pad-bottom: 28px;
    height: var(--hs-h-m, 100svh);
    aspect-ratio: var(--hs-ar-m, auto);
    min-height: 400px;
  }
  .dgb-hs-inner,
  .dgb-hs-inner.has-logo {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo heading" "ctas ctas";
    gap: 18px 14px;
    max-width: none;
    padding-bottom: 44px;
  }
  .dgb-hs-inner:not(.has-logo) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "ctas"; }
  .dgb-hs-content { justify-content: stretch; }
  .dgb-hs-logo { width: 84px; }
  .dgb-hs-eyebrow { margin-bottom: 6px; }
  .dgb-hs-ctas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
  .dgb-hs-button { height: 48px; padding: 0 16px; }
  .dgb-hs-controls { left: var(--hs-pad-x); right: calc(var(--hs-pad-x) - 8px); bottom: 14px; flex-direction: row-reverse; gap: 4px; }
  .dgb-hs-dots { flex: 1; gap: 6px; }
  .dgb-hs-dot-button { flex: 1; padding: 0; height: 28px; }
  .dgb-hs-dot,
  .dgb-hs-dot-button[aria-current="true"] .dgb-hs-dot { width: 100%; height: 3px; }
}

/* Movimento reduzido: troca por esmaecimento, sem zoom nem cores em movimento. */
@media (prefers-reduced-motion: reduce) {
  .dgb-hs { --hs-duration: 1ms; }
  .dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-media .dgb-hs-image,
  .dgb-hs-slide:is(.is-active, .is-moving) .dgb-hs-media .dgb-hs-video,
  .dgb-hs-gradient { animation: none !important; }
  .dgb-hs.is-ready .dgb-hs-inner,
  .dgb-hs.is-ready .dgb-hs-slide.is-active .dgb-hs-inner { transition: opacity 0.3s ease !important; transform: none !important; }
}

/* Prévia ao vivo do editor: a capa original fica guardada enquanto o slider está ligado. */
.dgb-hero-slot[data-dgb-slider-on] > [data-dgb-slider-fallback] { display: none !important; }
.dgb-hero-slot:not([data-dgb-slider-on]) > [data-dgb-slider-host] { display: none; }
.dgb-hs[data-live] .dgb-hs-slide[data-preview-current]::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 5;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  pointer-events: none;
}
