.bsky-video-container {
  position: relative;
  width: fit-content;
  max-width: 100%;
  max-height: 80vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  margin-top: 12px;
}

.bsky-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bsky-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease;
}

.bsky-video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}

.bsky-video-play-button {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.bsky-video-play-overlay:hover .bsky-video-play-button {
  transform: scale(1.1);
}

.bsky-video-buffering {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.bsky-video-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bsky-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), transparent);
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.bsky-video-controls.visible {
  opacity: 1;
  pointer-events: all;
}

.bsky-video-seek-container {
  padding: 8px 0;
}

.bsky-video-seek-bar {
  width: 100%;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.bsky-video-seek-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.bsky-video-seek-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.bsky-video-controls-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsky-video-control-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.bsky-video-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bsky-video-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsky-video-volume-slider {
  width: 60px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.bsky-video-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.bsky-video-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.bsky-video-time {
  color: white;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bsky-video-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.bsky-video-error-text {
  color: white;
  padding: 20px;
  text-align: center;
}

/* Compact mode */
.bsky-video-compact {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.bsky-video-compact-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsky-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

/* Fullscreen adjustments */
.bsky-video-container:fullscreen {
  border-radius: 0;
}

.bsky-video-container:fullscreen .bsky-video-controls {
  padding: 20px;
}
