/* === embed player === */
.embed__container {
  position: relative;
  padding-bottom: 35%;
  margin-bottom: 25px;
  width: 100%;
  text-align: left;
  background-color: #000;
  border-left: 4px solid #c0392b;
  box-shadow:
    -4px 0 0 #c0392b,
    4px 4px 24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .embed__container {
    padding-bottom: 56.25%;
  }
}

.embed__container iframe {
  width: 100%;
  position: absolute;
  height: 100%;
  overflow: hidden;
}

#player {
  width: 100%;
}

/* === owl nav buttons === */
.owl-nav > div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 28px;
  height: 48px;
  background: #c0392b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    width 0.2s ease;
  border-radius: 0;
}

.owl-nav > div:hover {
  background: #96281b;
  width: 32px;
}

.owl-nav > div.disabled {
  background: transparent;
  color: transparent;
  pointer-events: none;
}

.owl-nav i {
  font-size: 13px;
  margin: 0;
}

.owl-nav .owl-prev {
  left: -28px;
}
.owl-nav .owl-next {
  right: -28px;
}

/* === carousel wrap === */
.carousel__wrap {
  margin-top: 0;
  padding: 4px 0;
  background: #111;
}

/* === thumbnail items === */
.owl-carousel .owl-item .video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  aspect-ratio: 16/9;
}

.owl-carousel .owl-item .video-thumb.active {
  opacity: 1;
  border-bottom: 3px solid #c0392b;
}

/* active — เอา overlay ออก สว่างเต็ม */
.owl-carousel .owl-item .video-thumb.active:before {
  content: none;
}

/* hover ที่ไม่ active */
.owl-carousel .owl-item .video-thumb:not(.active):hover {
  opacity: 0.85;
}

.owl-carousel .owl-item .video-thumb:not(.active):hover:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(192, 57, 43, 0.2);
  z-index: 1;
  transition: all 0.25s ease-out;
  cursor: pointer;
}

/* play icon */
.video-thumb:after {
  content: "\f04b";
  font-family: "Font Awesome 5 Pro";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: transparent;
  font-size: 1.2em;
  line-height: 1;
  font-weight: 900;
  transition: all 250ms ease-out;
  z-index: 2;
}

.video-thumb.active:after {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 12px rgba(192, 57, 43, 0.8);
}

.owl-carousel .owl-item img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === playerWrap replay === */
#playerWrap {
  display: inline-block;
  position: relative;
}

#playerWrap.shown::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px 64px;
  background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgNTEwIDUxMCI+PHBhdGggZD0iTTI1NSAxMDJWMEwxMjcuNSAxMjcuNSAyNTUgMjU1VjE1M2M4NC4xNSAwIDE1MyA2OC44NSAxNTMgMTUzcy02OC44NSAxNTMtMTUzIDE1My0xNTMtNjguODUtMTUzLTE1M0g1MWMwIDExMi4yIDkxLjggMjA0IDIwNCAyMDRzMjA0LTkxLjggMjA0LTIwNC05MS44LTIwNC0yMDQtMjA0eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==);
}
