.video-box-block {
  position: relative;
}
.video-box-block .video-box-container {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.5rem;
  padding: 5px;
  transition: transform 0.3s ease;
}
.video-box-block .video-box-container:hover {
  transform: scale(1.01);
}
.video-box-block .video-box-container:hover .video-box-thumbnail {
  max-width: 280px;
}
.video-box-block .video-box-container .video-box-thumbnail {
  background: #000;
  border-radius: 6px;
  display: flex;
  flex: 1;
  font-size: 0;
  height: auto;
  line-height: 0;
  max-width: 200px;
  overflow: hidden;
  transition: max-width 0.3s ease;
}
.video-box-block .video-box-container .video-box-thumbnail img,
.video-box-block .video-box-container .video-box-thumbnail video {
  display: block;
  height: 100%;
  margin: 0;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}
.video-box-block .video-box-container .play-controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}
.video-box-block .video-box-container .play-controls .play-text {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.video-box-block .video-box-container .play-controls .play-button {
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  width: 48px;
}
.video-box-block .video-box-container .play-controls .play-button svg {
  height: 48px;
  transition: transform 0.3s ease;
  width: 48px;
}
.video-box-block .video-box-container .play-controls .play-button svg path {
  transition: fill 0.3s ease;
}
.video-box-block .video-box-container .play-controls .play-button:hover {
  transform: scale(1.1);
}
.video-box-block
  .video-box-container
  .play-controls
  .play-button:hover
  svg
  circle {
  fill: #222;
}
.video-box-modal-container {
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  visibility: hidden;
  z-index: 999999 !important;
}
.video-box-modal-container.modal-open {
  opacity: 1;
  visibility: visible;
}
.video-box-modal-overlay {
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.video-box-modal-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: center;
  left: 50%;
  max-width: 1040px;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(0.8);
  transition: transform 0.3s ease;
  width: 100%;
}
.modal-open .video-box-modal-content {
  transform: translateX(-50%) translateY(-50%) scale(1);
}
.video-box-modal-content .video-box-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: 700px;
  position: relative;
  width: 100%;
}
.video-box-modal-content video {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  height: auto;
  max-height: 100vh;
  -o-object-fit: contain;
  object-fit: contain;
  width: 100%;
}
.video-box-modal-close {
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4%;
  top: -60px;
  transition: all 0.2s;
  width: 32px;
  z-index: 1;
}
.video-box-modal-close:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .video-modal-content {
    max-width: none;
    width: 90%;
  }
  .video-box-block .video-box-container .play-controls {
    align-items: center;
    display: flex;
    flex-direction: row !important;
    gap: 0.5rem;
  }
}
