/*
 * Section video profil beranda.
 */

.video-profile {
  background: var(--marun-50);
}

.video-profile .section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.video-profile-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 93, .45);
  border-radius: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--marun-950);
  box-shadow: 0 28px 70px -32px rgba(42, 14, 20, .55);
}

.video-profile-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-profile-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--marun-950), var(--marun-800));
}

.video-profile-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  filter: saturate(.85);
}

.video-profile-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 14, 20, .15), rgba(42, 14, 20, .78));
}

.video-profile-placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  color: var(--putih);
}

.video-profile-play {
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 8vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--jingga-500);
  color: var(--marun-950);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.video-profile-play svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
}

.video-profile-placeholder-title {
  margin: 0;
  color: var(--putih);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
}

.video-profile-placeholder-note {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: .92rem;
  line-height: 1.6;
}

.video-profile-placeholder .btn {
  margin-top: .35rem;
}

@media (max-width: 640px) {
  .video-profile-frame {
    border-radius: 1rem;
  }

  .video-profile-placeholder-content {
    gap: .65rem;
  }

  .video-profile-placeholder-note {
    font-size: .85rem;
  }
}

/* YouTube facade: iframe baru dimuat setelah tombol play diklik. */
.video-profile-youtube {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--marun-950);
  text-decoration: none;
}

.video-profile-youtube img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .2s ease, transform .4s ease;
}

.video-profile-youtube:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.video-profile-youtube::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 14, 20, .08), rgba(42, 14, 20, .68));
}

.video-profile-youtube .video-profile-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.video-profile-youtube-note {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  transform: translateX(-50%);
  color: var(--putih);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}

.video-profile-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
