/* 视频预览样式 - 与图片预览保持一致 */

/* 视频缩略图样式 - 复用图片预览样式 */
.video-preview-image {
  position: relative;
  cursor: pointer;
}

/* 为视频缩略图添加播放指示器 */
.video-preview-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(99, 102, 241, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.video-preview-image:hover::after {
  opacity: 1;
}

/* 视频文件图标样式 - 优雅的设计 */
.video-file-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.video-file-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* 视频SVG图标 */
.video-icon-svg {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.video-file-icon:hover .video-icon-svg {
  transform: scale(1.1);
}

/* 视频标签 */
.video-badge {
  font-size: 8px;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* 不同视图模式的适配 */
.view-grid .video-file-icon {
  width: 64px;
  height: 64px;
}

.view-grid .video-icon-svg {
  width: 40px;
  height: 40px;
}

.view-grid .video-badge {
  font-size: 10px;
}

.view-list .video-file-icon {
  width: 32px;
  height: 32px;
}

.view-list .video-icon-svg {
  width: 20px;
  height: 20px;
}

.view-list .video-badge {
  font-size: 6px;
}

.view-compact .video-file-icon {
  width: 24px;
  height: 24px;
}

.view-compact .video-icon-svg {
  width: 16px;
  height: 16px;
  margin-bottom: 1px;
}

.view-compact .video-badge {
  font-size: 5px;
}

/* 暗色主题适配 */
.dark .video-file-icon {
  color: #a5b4fc;
}

.dark .video-badge {
  color: #a5b4fc;
}

.dark .video-icon-svg path[fill="#6366f1"] {
  fill: #a5b4fc;
}

.dark .video-icon-svg path[stroke="#6366f1"] {
  stroke: #a5b4fc;
}

/* 拖拽接收区域样式 */
.drag-drop-zone {
    position: relative;
    transition: all 0.3s ease;
}

.drag-drop-zone.drag-over {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1),
        rgba(59, 130, 246, 0.1)) !important;
    border: 3px dashed #22c55e !important;
    border-radius: 12px !important;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.drag-drop-zone.drag-over::before {
    content: "释放文件到此处";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-icon {
    font-size: 18px;
}

.notification-message {
    font-size: 14px;
}