/* Video Placeholder - Two-Click Solution */

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  border-radius: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.video-placeholder:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-placeholder:focus {
  outline: none;
}

.video-placeholder__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.video-placeholder:hover .video-placeholder__cover {
  filter: brightness(0.85);
}

.video-placeholder__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  z-index: 10;
}

.video-placeholder__button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.video-placeholder__button:hover {
  transform: scale(1.1);
}

.video-placeholder__button:active {
  transform: scale(1.05);
}

.video-placeholder__button:focus {
  outline: none;
}

.video-placeholder__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.video-placeholder__icon {
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.25s ease;
  margin-left: 4px;
}

.video-placeholder__button:hover .video-placeholder__icon {
  color: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.video-placeholder__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
  margin-top: 0.5rem;
}

.video-placeholder__privacy {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  max-width: 90%;
  pointer-events: none;
}

.video-placeholder__privacy a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  pointer-events: auto;
  transition: text-decoration-color 0.2s ease;
}

.video-placeholder__privacy a:hover,
.video-placeholder__privacy a:focus {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Loading state */
.video-placeholder--loading {
  cursor: wait;
  pointer-events: none;
}

.video-placeholder--loading .video-placeholder__cover {
  filter: brightness(0.5);
}

.video-placeholder--loading .video-placeholder__overlay {
  opacity: 0.5;
}

/* Loaded state */
.video-placeholder--loaded {
  cursor: default;
  background: #000;
}

.video-placeholder--loaded:hover {
  transform: none;
}

/* Light theme adjustments */
[data-theme="light"] .video-placeholder {
  background: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .video-placeholder__icon {
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

[data-theme="light"] .video-placeholder__button:hover .video-placeholder__icon {
  color: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

[data-theme="light"] .video-placeholder:focus {
  outline-color: rgba(220, 38, 38, 0.6);
}

[data-theme="light"] .video-placeholder__button:focus {
  outline-color: rgba(220, 38, 38, 0.8);
}

/* Below SM (640px) */
@media (max-width: 39.99rem) {
  .video-placeholder__button {
    width: 64px;
    height: 64px;
  }

  .video-placeholder__icon {
    width: 64px;
    height: 64px;
  }

  .video-placeholder__label {
    font-size: 0.95rem;
    bottom: 1rem;
  }

  .video-placeholder__privacy {
    font-size: 0.7rem;
    bottom: 0.5rem;
  }

  .video-placeholder__overlay {
    padding: 1.5rem;
  }
}

/* Smooth fade transition during load */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-placeholder iframe {
  animation: fadeIn 0.3s ease-in;
}
