.custom-video-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.video-preview {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.video-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  margin: 0;
  padding: 0;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 20%;
  max-width: 100px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button img.play-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 36px;
  width: 100vw;
  background: transparent;
  z-index: 9999 !important;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.video-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}

.video-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  z-index: 1;
}

.video-controls-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  padding: 18px;
  pointer-events: none;
}

.left-controls {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.toggle-play,
.toggle-mute,
.close-btn {
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.toggle-play img,
.toggle-mute img,
.close-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.video-controls-top button {
  z-index: 10;
}

.video-overlay .video-inner video {
  z-index: 1;
}

.video-caption {
  font-size: 16px;
  font-weight: 500;
}
