section.hero.show {
  position: relative;
  z-index: 4;
  display: block;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  background: #0b1220;
  scroll-margin-top: 0;
  place-items: unset;
}

.show-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.show-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 118px;
  pointer-events: none;
}

.show.is-intro .show-frame {
  animation: showOpen 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes showOpen {
  0% {
    opacity: 0;
    transform: translateY(72px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Sombra no topo para o header transparente ler sempre bem */
.show-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.74) 0%, rgba(6, 12, 24, 0.38) 50%, transparent 100%);
}

/* Vídeo de abertura */
.show-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #06101f;
}

.show-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.show-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.04);
  transition: opacity 0.9s ease;
}

.show.video-live .show-video-poster { opacity: 0; }

.show-slide--video.is-entering .show-visual {
  animation: showVideoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes showVideoIn {
  from { opacity: 0; transform: scale(1.06); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.show-slide--video .show-veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.38) 100%);
}

.show-dot--video {
  display: grid;
  place-items: center;
  color: #365DA4;
  font-size: 0.5rem;
}

.show-dot--video i { opacity: 0; transition: opacity 0.3s ease; }
.show-dot--video.is-active i { opacity: 1; }

.show-pause {
  position: absolute;
  top: calc(var(--header-main) + 16px);
  right: 16px;
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 14, 28, 0.32);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.show-pause:hover {
  background: #365DA4;
  border-color: #365DA4;
}

.show-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1983 / 860;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
}

.show-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.show-slide.is-current,
.show-slide.is-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.show-slide.is-current { z-index: 3; }
.show-slide.is-leaving { z-index: 2; }

.show-visual {
  position: absolute;
  inset: -2%;
  overflow: hidden;
}

.show-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.show-slide.is-current:not(.is-entering) .show-visual img {
  animation: showKen 6.4s ease-out forwards;
}

.show-slide.is-entering .show-visual img {
  opacity: 0;
  animation: none;
}

@keyframes showKen {
  from { transform: scale(1.12) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.04) translate3d(0, 0, 0); }
}

.show-shutter {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.show-slide.is-entering .show-shutter {
  opacity: 1;
}

.show-slice {
  flex: 1;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 800% 100%;
  transform: translateY(110%);
  opacity: 0;
}

.show-slide.is-entering .show-slice {
  animation: showSliceIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.show-slide.is-entering .show-slice:nth-child(even) {
  animation-name: showSliceInAlt;
}

@keyframes showSliceIn {
  0% { transform: translateY(112%) scaleY(1.15); opacity: 0.4; filter: blur(6px); }
  100% { transform: none; opacity: 1; filter: blur(0); }
}

@keyframes showSliceInAlt {
  0% { transform: translateY(-112%) scaleY(1.15); opacity: 0.4; filter: blur(6px); }
  100% { transform: none; opacity: 1; filter: blur(0); }
}

.show-slide.is-leaving .show-visual {
  animation: showLeave 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes showLeave {
  to {
    transform: scale(1.08) rotate(-1.2deg);
    filter: blur(8px) saturate(0.7);
    opacity: 0;
  }
}

.show-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 38%);
}

.show-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 18%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 132, 191, 0.28), rgba(255, 255, 255, 0.2), transparent);
  mix-blend-mode: screen;
}

.show.is-swapping .show-scan {
  animation: showScan 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes showScan {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(680%); }
}

.show-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 108px;
  z-index: 8;
  padding: 56px 4.2% 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 28, 0.42) 42%, rgba(8, 14, 28, 0.62) 100%);
}

.show-rails {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.show-rail {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.show-rail i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ab4de, #fff 55%, #4F84BF);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.show-rail.is-done i { width: 100%; }

.show-rail.is-active i {
  animation: showFill var(--show-ms, 6400ms) linear forwards;
}

@keyframes showFill {
  from { width: 0; }
  to { width: 100%; }
}

.show-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.show-count {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.show-count b {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.show-count span {
  opacity: 0.7;
  margin-left: 4px;
}

.show-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.show-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.show-dot.is-active {
  width: 36px;
  background: #fff;
}

.show-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 14, 28, 0.28);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease;
}

.show-arrow:hover {
  transform: scale(1.08);
  background: #365DA4;
  border-color: #365DA4;
}

@media (max-width: 720px) {
  .show-arrow {
    width: 42px;
    height: 42px;
  }

  .show-rails { gap: 5px; }
  .show-count { display: none; }
  .show-pause { top: calc(var(--header-main) + 10px); right: 10px; }
  .show-controls { padding: 40px 4.2% 14px; }

  /* Em ecrãs estreitos a imagem é recortada para dar altura ao palco */
  .show-stage {
    aspect-ratio: auto;
    height: min(78vh, 620px);
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .show-slide.is-current .show-visual img,
  .show-slide.is-entering .show-slice,
  .show-slide.is-leaving .show-visual,
  .show.is-swapping .show-scan {
    animation: none !important;
  }

  .show-visual img { transform: none; }
}
