.clickable-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.clickable-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.clickable-video video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clickable-video .thumbnail {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.clickable-video .thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}

.clickable-video:hover .thumbnail::before {
  background: rgba(0, 0, 0, 0.1);
}

.clickable-video .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(251, 176, 64, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.clickable-video .play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid #ffffff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.clickable-video:hover .play-button {
  background: rgba(251, 176, 64, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(251, 176, 64, 0.4);
}

.card-header .clickable-video {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 12px;
}

.card-header .thumbnail,
.card-header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video loading states */
.clickable-video.loading .play-button {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Responsive video container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-container .clickable-video {
  width: 100%;
}

/* Video controls styling */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.clickable-video:hover .video-controls {
  opacity: 1;
}

.video-controls button {
  background: rgba(251, 176, 64, 0.8);
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-controls button:hover {
  background: rgba(251, 176, 64, 1);
  transform: translateY(-1px);
}
