/* Video alignment styles for Tiptap editor */
.video-wrapper {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
}

.video-wrapper.video-center {
  display: flex;
  justify-content: center;
}

.video-wrapper.video-left {
  display: flex;
  justify-content: flex-start;
}

.video-wrapper.video-right {
  display: flex;
  justify-content: flex-end;
}

.video-wrapper video {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Ensure videos center properly in prose containers */
.prose .video-wrapper {
  max-width: 100%;
}

/* Video controls overlay */
.video-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  user-select: none;
}

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

.video-controls button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
}

.video-controls button:hover {
  background-color: #f3f4f6;
}

.video-controls button.bg-blue-100 {
  background-color: #dbeafe;
  color: #1e40af;
}