.video-wrapper {
  max-width: 960px;
  position: relative;
}

.video-wrapper.is-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .video-wrapper.is-floating {
    width: 300px;
    bottom: 160px;
    right: 10px;
  }
}

.video-wrapper.is-floating .floating-header {
  display: flex;
}

.floating-header {
  display: none;
  background: black;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  justify-content: space-between;
  align-items: center;
}

.floating-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.video-placeholder {
  display: none;
}

.video-wrapper.is-floating + .video-placeholder {
  display: block;
  max-width: 960px;
}
