/* Section video beranda Template 6 + popup-nya. (T-233) */
.tt1-video-area {
  position: relative;
  padding: 56px 0 24px;
}

.tt1-video-heading {
  max-width: 720px;
  margin: 0 auto 28px;
}

.tt1-video-desc {
  margin-top: 10px;
  color: var(--tp-grey-1);
}

.tt1-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .tt1-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt1-video-grid.is-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
}

@media (min-width: 1200px) {
  .tt1-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tt1-video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #0e2a33;
  box-shadow: var(--tt1-card-shadow, 0 10px 28px rgba(7, 21, 22, 0.12));
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tt1-video-card:hover,
.tt1-video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--tt1-card-shadow-hover, 0 20px 42px rgba(7, 21, 22, 0.18));
}

.tt1-video-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt1-video-play,
.tt1-video-popup-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tp-theme-1);
  font-size: 22px;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(7, 21, 22, 0.25);
}

.tt1-video-card-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 16px 14px;
  color: #fff;
  font-weight: 600;
  text-align: left;
  background: linear-gradient(to top, rgba(7, 21, 22, 0.75), rgba(7, 21, 22, 0));
}

.tt1-video-popup[hidden] { display: none !important; }
.tt1-video-popup {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tt1-video-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 22, 0.8);
}
.tt1-video-popup-dialog {
  position: relative;
  width: min(960px, 100%);
}
.tt1-video-popup-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.tt1-video-popup-poster,
.tt1-video-popup-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.tt1-video-popup-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  background: none;
}
.tt1-video-popup-title {
  margin: 10px 0 0;
  color: #fff;
}
body.tt1-video-popup-open { overflow: hidden; }
