/* 媒体预览组件样式 */
.media-preview {
  display: inline-block;
  max-width: 100%;
}

.media-preview-card {
  margin: 4px 0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.media-preview-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.media-info {
  padding: 4px 0;
}

.media-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.media-filename {
  font-size: 12px;
  max-width: 200px;
  word-break: break-all;
}

.media-size {
  font-size: 11px;
}

.download-progress {
  margin-top: 8px;
}

/* 尺寸变体 */
.media-preview.small .media-preview-card {
  max-width: 180px;
}

.media-preview.small .media-filename {
  max-width: 120px;
}

.media-preview.default .media-preview-card {
  max-width: 250px;
}

.media-preview.large .media-preview-card {
  max-width: 350px;
}

/* 预览模态框内容 */
.media-preview-content {
  text-align: center;
  padding: 20px;
}

.image-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.non-previewable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  color: #666;
}

/* 媒体不可用状态样式 */
.media-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  color: #666;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.media-icon-large {
  font-size: 64px;
  color: #d9d9d9;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .media-preview-card {
    max-width: 100%;
  }
  
  .media-preview.small .media-preview-card {
    max-width: 160px;
  }
  
  .media-preview.default .media-preview-card {
    max-width: 200px;
  }
  
  .media-filename {
    max-width: 150px;
  }
  
  .media-preview.small .media-filename {
    max-width: 100px;
  }
}

/* 卡片操作按钮样式优化 */
.media-preview-card .ant-card-actions {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.media-preview-card .ant-card-actions > li {
  margin: 8px 0;
}

.media-preview-card .ant-card-actions .ant-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  height: auto;
  font-size: 14px;
}

.media-preview-card .ant-card-actions .ant-btn:hover {
  background: rgba(24, 144, 255, 0.1);
  color: #1890ff;
}

/* 进度条样式 */
.download-progress .ant-progress-line {
  margin-bottom: 4px;
}

/* 视频播放器样式 */
video {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 图片预览样式 */
.ant-image {
  border-radius: 6px;
  overflow: hidden;
}

.ant-image-img {
  transition: transform 0.3s ease;
}

.ant-image:hover .ant-image-img {
  transform: scale(1.02);
}