/* sv-vsl-embed — player VSL embutido na secção #videos (homepage) */
.sv-vsl-embed {
  --sv-vsl-bg-deep: #04142f;
  --sv-vsl-bg-panel: #061f49;
  --sv-vsl-blue: #1558e8;
  --sv-vsl-orange: #ff8200;
  --sv-vsl-orange-light: #ff9a00;
  --sv-vsl-white: #ffffff;
  --sv-vsl-muted: rgba(255, 255, 255, 0.72);
  --sv-vsl-line: rgba(255, 255, 255, 0.14);

  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-vsl-embed__intro {
  text-align: center;
  padding: 0 8px;
}

.sv-vsl-embed__title {
  margin: 0;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sv-vsl-white);
  line-height: 1.25;
}

.sv-vsl-embed__desc {
  margin: 8px auto 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--sv-vsl-muted);
}

.sv-vsl-embed__player {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-vsl-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 55% 70% at 18% 45%, rgba(21, 88, 232, 0.32), transparent 62%),
    radial-gradient(ellipse 50% 65% at 82% 55%, rgba(255, 130, 0, 0.18), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1.5px),
    linear-gradient(155deg, #071a38 0%, #04142f 42%, #0a2250 100%);
  background-size: auto, auto, 28px 28px, auto;
}

.sv-vsl-embed__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(126, 182, 255, 0.12), transparent 50%),
    radial-gradient(90% 70% at 50% 120%, rgba(255, 130, 0, 0.08), transparent 45%);
  z-index: 0;
}

.sv-vsl-embed__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  vertical-align: middle;
}

.sv-vsl-embed__progress-wrap {
  width: 100%;
  padding: 0 2px;
}

.sv-vsl-embed__progress-track {
  display: flex;
  gap: 5px;
  width: 100%;
  height: 3px;
  margin-bottom: 10px;
}

.sv-vsl-embed__progress-seg {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sv-vsl-embed__progress-seg:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sv-vsl-embed__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sv-vsl-orange-light), var(--sv-vsl-orange));
  box-shadow: 0 0 8px rgba(255, 130, 0, 0.45);
  transition: width 0.12s linear;
}

.sv-vsl-embed__slides {
  display: none; /* ocultos; progresso + sequência activos */
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.sv-vsl-embed--single .sv-vsl-embed__slides {
  display: none;
}

.sv-vsl-embed__slide {
  flex: 1;
  max-width: 136px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sv-vsl-embed__slide:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.sv-vsl-embed__slide.is-active {
  background: rgba(255, 130, 0, 0.14);
  border-color: rgba(255, 154, 0, 0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 130, 0, 0.2), 0 6px 18px rgba(255, 130, 0, 0.12);
}

.sv-vsl-embed__slide:focus-visible {
  outline: 2px solid var(--sv-vsl-orange-light);
  outline-offset: 2px;
}

.sv-vsl-embed__slide-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  flex: 0 0 auto;
}

.sv-vsl-embed__slide.is-active .sv-vsl-embed__slide-num {
  background: linear-gradient(135deg, var(--sv-vsl-orange-light), var(--sv-vsl-orange));
  color: #fff;
}

.sv-vsl-embed__slide-label {
  letter-spacing: 0.01em;
}

.sv-vsl-embed__footer {
  display: none !important;
}

.sv-vsl-embed__btn {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  color: var(--sv-vsl-white);
  background: linear-gradient(135deg, var(--sv-vsl-orange-light) 0%, var(--sv-vsl-orange) 55%, #e86f00 100%);
  box-shadow: 0 10px 24px rgba(255, 130, 0, 0.3);
  width: 100%;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sv-vsl-embed__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 130, 0, 0.38);
  color: var(--sv-vsl-white);
}

.sv-vsl-embed__btn:focus-visible {
  outline: 2px solid var(--sv-vsl-orange-light);
  outline-offset: 2px;
}

.sv-vsl-embed__btn-ico-circle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sv-vsl-embed__btn-ico {
  display: block;
}

@media (max-width: 768px) {
  #videos.video-showcase-section {
    padding: 0;
  }

  #videos .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .sv-vsl-embed {
    max-width: none;
    gap: 0;
  }

  .sv-vsl-embed__intro {
    display: none;
  }

  .sv-vsl-embed__desc {
    display: none;
  }

  .sv-vsl-embed__player {
    gap: 0;
  }

  .sv-vsl-embed__frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  /* contain: não corta o 1.º vídeo (filmado em telemóvel) */
  .sv-vsl-embed__video {
    object-fit: contain;
  }

  .sv-vsl-embed__progress-wrap {
    padding: 12px 16px 16px;
    background: var(--sv-vsl-bg-deep, #04142f);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-vsl-embed__btn:hover {
    transform: none;
  }
}
