.pwd {
  --pwd-blue: #398BBD;
  --pwd-dark: #222222;
  --pwd-red: #d9432b;
  --pwd-pill: #b3b3b3;
  --pwd-line: rgba(0, 0, 0, 0.4);
  --pwd-font-title: inherit;
  --pwd-font-num: "Big Shoulders Display", Sans-serif;
  --pwd-max: 100%;

  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Ruang untuk sticky header: isi dari control "Offset Header" */
  padding-top: var(--pwd-offset, 0px);
}
.pwd, .pwd *, .pwd *::before, .pwd *::after { box-sizing: border-box; }

.pwd__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--pwd-max);
  margin: 0 auto;
}

/* ---------- Tabs ---------- */
.pwd__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--pwd-count, 8), minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  padding-top: 16px;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.pwd-tab {
  appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  background: var(--pwd-dark) !important;
  color: #fff !important;
  padding: 14px 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  font: inherit !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease !important;
}
.pwd-tab:hover { background: #333; }
.pwd-tab__day {
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pwd-tab__num {
  font-family: var(--pwd-font-num);
  font-size: clamp(22px, 2.6vw, 38px);
  text-transform: uppercase;
  white-space: nowrap;
}
.pwd-tab.is-active,
.pwd-tab.is-active:hover {
  background: var(--pwd-blue) !important;
  transform: translateY(-14px);
}
.pwd-tab:focus-visible { outline: 2px solid var(--pwd-blue); outline-offset: 3px; }

/* ---------- Track ---------- */
.pwd__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.pwd__track {
  display: flex;
  gap: var(--pwd-gap, clamp(24px, 4vw, 72px));
  will-change: transform;
}
.pwd-panel {
  flex: 0 0 100%;
  width: 100%;
}

/* ---------- Panel ---------- */
.pwd-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.pwd-panel__title {
  margin: 0;
  color: var(--pwd-blue);
  font-family: var(--pwd-font-title);
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.pwd-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000000;
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.pwd-pill__icon {
    width: 2em;
    height: 2em;
    color: black;
    display: grid;
    place-items: center;
}
.pwd-pill__icon svg { width: 55%; height: 55%; }

.pwd-panel__body {
  display: grid;
  grid-template-columns: auto clamp(40px, 6vw, 104px) minmax(0, 1fr);
  height: clamp(260px, 52vh, 520px);
  /* padding: 0 clamp(0px, 1.5vw, 24px); */
}
.pwd-poster {
  margin: 0;
  height: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.pwd-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Garis vertikal dengan lingkaran di tengah (garis putus di sekitar lingkaran) */
.pwd-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwd-divider::before {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--pwd-line) calc(50% - 22px),
    transparent calc(50% - 22px),
    transparent calc(50% + 22px),
    var(--pwd-line) calc(50% + 22px)
  );
}
.pwd-divider span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--pwd-line);
}

.pwd-video {
  --pwd-play: clamp(56px, 6vw, 84px);
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #111;
}
.pwd-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pwd-video.is-locked .pwd-video__thumb {
  filter: blur(8px);
  transform: scale(1.08);
}
.pwd-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: var(--pwd-play);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.pwd-video__play svg { width: 36%; margin-left: 8%; fill: #222; }
.pwd-video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.pwd-video.is-locked .pwd-video__play { cursor: not-allowed; }
.pwd-video.is-locked .pwd-video__play:hover { transform: translate(-50%, -50%); }
.pwd-video.is-playing .pwd-video__play { display: none; }
/* Label locked: tepat di bawah tombol play */
.pwd-video__locked {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--pwd-play) / 2 + 12px);
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.pwd-video__locked .pwd-pill__icon { color: inherit; }
.pwd-video.is-playing .pwd-video__locked { display: none; }
.pwd-video__player {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.pwd-panel__note {
  margin: clamp(14px, 2.5vh, 28px) 0 0;
  text-align: center;
  color: var(--pwd-red);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 20px);
}

.pwd__decor {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(120px, 14vw, 220px);
  pointer-events: none;
}

/* ---------- Fallback (tanpa GSAP / editor Elementor) ---------- */
.pwd--static .pwd__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pwd--static .pwd__viewport::-webkit-scrollbar { display: none; }
.pwd--static .pwd-panel { scroll-snap-align: start; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .pwd__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px clamp(20px, 3vh, 32px);
    padding: 16px 20px 10px;
  }
  .pwd__tabs::-webkit-scrollbar { display: none; }
  .pwd-tab { flex: 0 0 88px; }
  .pwd-tab.is-active,
  .pwd-tab.is-active:hover { transform: translateY(-8px); }

  /* Mobile: video di atas (16/9), poster di bawah */
  .pwd-panel__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: auto;
    padding: 0;
  }
  .pwd-video {
    order: -1;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .pwd-poster { width: 60%; height: auto; margin: 0 auto !important; }
  .pwd-divider { display: none; }
}
