.ocp-icon-video {}

.ocp-icon-video::before {
  position: absolute;
  color: #fff;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-block;
  font: normal normal normal 14px / 1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 25px;
  content: "\f01d";
}

.ocp-icon-video img {
  border: solid 1px #ddd;
  border-radius: 3px
}

.imageSwiperMain .swiper-slide.video-bg {
  background: #000
}

.swiper-button-next,
.swiper-button-prev {
  background: transparent !important;
}

.imageSwiperThumb {
  margin: 15px 0;
}

.swiper-slide {
  text-align: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px
}

.video-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  /* nếu muốn ngang giữa luôn */
  transform: translate(0%, -50%);
  width: 100%;
  border: none;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* không chặn swipe */
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s;
}

.video-btn {
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/*fasdfafd*/
.youtube-wrapper,
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

/* Tắt bắt sự kiện chuột/gesture mặc định */
.youtube-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: none;
}

/* Khi đang chạy thì mới bật */
.youtube-wrapper.playing iframe,
.video-wrapper.playing video {
  pointer-events: auto;
}

.youtube-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: rgba(0,0,0,0.5);*/
  cursor: pointer;
  z-index: 2;
  height: 70%;
  top: 15%;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  height: 100%;
  top: 0;
}

.youtube-play-btn,
.video-play-btn {
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  width: 70px;
  height: 70px;
  cursor: pointer;
}

/* Icon play mặc định */
.youtube-wrapper .youtube-play-btn::before {
  display: inline-block;
  font: normal normal normal 14px / 1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 25px;
  content:"\f04b";
}

/* Khi đang phát thì đổi thành pause */
.youtube-wrapper.playing .youtube-play-btn {

}

.youtube-wrapper.playing .youtube-play-btn::before {
  content: "\f04c";
}
@media (min-width: 768px) {
  .youtube-wrapper:hover .youtube-play-btn {
    display: block !important;
  }

  .video-wrapper:hover .video-overlay {
    opacity: 1 !important;
  }
}
