/**
 * File: client/css/dubbing.css
 * 角色配音组件样式 - Apple风格黑白主题
 * 作用: 定义配音页面的布局和视觉效果
 * @modification 全部改为黑白灰配色，去除所有彩色
 * @date 2025-12-09
 */

/* 配音面板基础样式 */
#dubbing-panel {
  padding: 20px;
}

/**
 * @description 配音面板头部样式
 * @date 2025-12-09
 */
#dubbing-panel .dubbing-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px;
  width: 100%;
}

#dubbing-panel .dubbing-header .panel-title {
  margin: 0;
  flex-shrink: 0;
}

/**
 * @description 开始配音按钮改为黑色
 * @date 2025-12-09
 */
#dubbing-panel .btn-danger,
#dubbing-panel #startDubbingBtn {
  background: #000000 !important;
  background-color: #000000 !important;
  border: 1px solid #000000 !important;
  border-color: #000000 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#dubbing-panel .btn-danger:hover,
#dubbing-panel #startDubbingBtn:hover {
  background: #333333 !important;
  background-color: #333333 !important;
  border-color: #333333 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#dubbing-panel .btn-danger:active,
#dubbing-panel #startDubbingBtn:active {
  transform: translateY(0);
}

#dubbing-panel .btn-danger:disabled,
#dubbing-panel #startDubbingBtn:disabled {
  background: #999999 !important;
  background-color: #999999 !important;
  border-color: #999999 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 配音状态提示 */
.dubbing-status {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-left: 4px solid #000000;
}

.dubbing-status p {
  margin: 0;
  color: #666666;
  font-size: 14px;
}

/**
 * @description 配音列表容器
 * @date 2025-12-09
 */
.dubbing-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.dubbing-list::-webkit-scrollbar {
  width: 6px;
}

.dubbing-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dubbing-list::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.dubbing-list::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/**
 * @description 单条配音项
 * @date 2025-12-09
 */
.dubbing-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.dubbing-item:hover {
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/**
 * @description 无对白镜头样式
 * @date 2025-12-09
 */
.dubbing-item-no-dialogue {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

.dubbing-item-no-dialogue:hover {
  border-color: #999999;
}

.dubbing-no-dialogue-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #eeeeee;
  border-radius: 4px;
  color: #666666;
}

.dubbing-no-dialogue-info .no-dialogue-icon {
  font-size: 18px;
}

.dubbing-no-dialogue-info .no-dialogue-text {
  font-size: 13px;
}

/**
 * @description 无对白状态标签样式
 * @date 2025-12-09
 */
.dubbing-status.status-no_dialogue {
  background: #666666;
  color: #fff;
}

/**
 * @description 配音项头部
 * @date 2025-12-09
 */
.dubbing-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/**
 * @description 镜头序号样式
 * @date 2025-12-10
 */
.dubbing-scene-number {
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  background: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/**
 * @description 角色名改为黑色渐变
 * @date 2025-12-09
 */
.dubbing-character {
  font-weight: 600;
  color: #000000;
  font-size: 13px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #000000;
  background-clip: unset;
}

.dubbing-emotion {
  font-size: 11px;
  color: #666666;
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 3px;
}

/**
 * @description 配音员名字样式
 * @date 2025-12-09
 */
.dubbing-voice-name {
  font-size: 11px;
  color: #333333;
  font-weight: 500;
}

/**
 * @description 配音项元信息行
 * @date 2025-12-09
 */
.dubbing-item-meta {
  margin-bottom: 6px;
}

/* 配音状态标签 */
.dubbing-item .dubbing-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: auto;
  background: none;
  border-left: none;
}

.status-pending {
  background: #f0f0f0 !important;
  color: #666666 !important;
}

.status-generating {
  background: #e0e0e0 !important;
  color: #333333 !important;
  animation: pulse 1.5s infinite;
}

.status-completed {
  background: #333333 !important;
  color: #ffffff !important;
}

.status-failed {
  background: #000000 !important;
  color: #ffffff !important;
}

.status-skipped {
  background: #cccccc !important;
  color: #666666 !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/**
 * @description 配音项内容
 * @date 2025-12-09
 */
.dubbing-item-content {
  margin-bottom: 8px;
  flex: 1;
}

.dubbing-dialogue {
  margin: 0;
  color: #444444;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 2px solid #000000;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.dubbing-warning {
  margin: 4px 0 0;
  color: #333333;
  font-size: 11px;
}

/**
 * @description 配音项操作按钮
 * @date 2025-12-09
 */
.dubbing-item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: auto;
}

.dubbing-item-actions .btn {
  font-size: 11px;
  padding: 3px 8px;
}

/**
 * @description 播放按钮改为黑色
 * @date 2025-12-09
 */
.dubbing-play-btn {
  background: #000000;
  color: #fff !important;
  border-color: #000000 !important;
}

.dubbing-play-btn:hover {
  background: #333333;
  border-color: #333333 !important;
}

/* 按钮小号样式 */
.btn-sm {
  font-size: 12px;
  padding: 4px 12px;
  height: auto;
}

/* 加载状态 */
#dubbing-panel .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin-bottom: 20px;
}

#dubbing-panel .loading-indicator .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#dubbing-panel .loading-indicator p {
  margin: 0;
  color: #666666;
  font-size: 14px;
}

/* 占位文本 */
.dubbing-list .placeholder-text {
  text-align: center;
  color: #999999;
  padding: 40px;
  font-size: 14px;
}

/* 面板操作按钮组 */
#dubbing-panel .panel-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#dubbing-panel .panel-actions .btn {
  min-width: 120px;
}

/**
 * @description 响应式调整
 * @date 2025-12-09
 */
@media (max-width: 1400px) {
  .dubbing-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .dubbing-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dubbing-list {
    grid-template-columns: 1fr;
  }

  .dubbing-item-header {
    flex-wrap: wrap;
  }

  .dubbing-item .dubbing-status {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .dubbing-item-actions {
    flex-wrap: wrap;
  }

  #dubbing-panel .panel-actions {
    flex-wrap: wrap;
  }

  #dubbing-panel .panel-actions .btn {
    flex: 1;
    min-width: auto;
  }

  .dubbing-header {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/**
 * ======================================
 * 音效生成板块样式
 * @modification 改为黑白灰配色
 * @date 2025-12-09
 * ======================================
 */

/* 音效板块容器 */
.sound-effect-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eeeeee;
}

/* 音效头部 */
.sound-effect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sound-effect-header .section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

/**
 * @description 音效按钮改为灰色
 * @date 2025-12-09
 */
#dubbing-panel .btn-warning,
#dubbing-panel #startSoundEffectBtn {
  background: #666666 !important;
  background-color: #666666 !important;
  border: 1px solid #666666 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#dubbing-panel .btn-warning:hover,
#dubbing-panel #startSoundEffectBtn:hover {
  background: #555555 !important;
  background-color: #555555 !important;
  border-color: #555555 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#dubbing-panel .btn-warning:disabled,
#dubbing-panel #startSoundEffectBtn:disabled,
#dubbing-panel #startSoundEffectBtn.btn-disabled {
  background: #999999 !important;
  background-color: #999999 !important;
  border-color: #999999 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

#dubbing-panel #startSoundEffectBtn:disabled:hover,
#dubbing-panel #startSoundEffectBtn.btn-disabled:hover {
  background: #999999 !important;
  background-color: #999999 !important;
  border-color: #999999 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 音效状态提示 */
.sound-effect-status {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 15px;
  border-left: 4px solid #666666;
}

.sound-effect-status p {
  margin: 0;
  color: #555555;
  font-size: 13px;
}

/**
 * @description 音效列表容器
 * @date 2025-12-09
 */
.sound-effect-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.sound-effect-list::-webkit-scrollbar {
  width: 6px;
}

.sound-effect-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sound-effect-list::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

/**
 * @description 音效卡片样式
 * @date 2025-12-09
 */
.sound-effect-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.sound-effect-item:hover {
  border-color: #666666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 空卡片样式 */
.sound-effect-item.empty-card {
  background: #f9fafb;
  border-style: dashed;
  border-color: #d1d5db;
}

.sound-effect-item.empty-card:hover {
  border-color: #999999;
  box-shadow: none;
}

/* 音效卡片头部 */
.sound-effect-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

/**
 * @description 音效序号改为黑色
 * @date 2025-12-09
 */
.sound-effect-index {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  background: #000000;
  padding: 2px 8px;
  border-radius: 4px;
}

.sound-effect-duration {
  font-size: 11px;
  color: #666666;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
}

/* 音效卡片内容 */
.sound-effect-item-content {
  flex: 1;
  margin-bottom: 8px;
}

.sound-effect-prompt {
  margin: 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  border-left: 2px solid #666666;
  max-height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 空卡片内容 */
.sound-effect-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999999;
  text-align: center;
}

.sound-effect-empty-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sound-effect-empty-text {
  font-size: 12px;
}

/* 音效卡片状态 */
.sound-effect-item .effect-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 音效卡片操作按钮 */
.sound-effect-item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: auto;
}

.sound-effect-item-actions .btn {
  font-size: 11px;
  padding: 3px 8px;
}

/**
 * @description 音效播放按钮改为黑色
 * @date 2025-12-09
 */
.sound-effect-play-btn {
  background: #333333 !important;
  color: #fff !important;
  border-color: #333333 !important;
}

.sound-effect-play-btn:hover {
  background: #444444 !important;
  border-color: #444444 !important;
}

/* 音效加载状态 */
.sound-effect-section .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin-bottom: 15px;
}

.sound-effect-section .loading-indicator .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eeeeee;
  border-top: 3px solid #666666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.sound-effect-section .loading-indicator p {
  margin: 0;
  color: #555555;
  font-size: 13px;
}

/* 占位文本 */
.sound-effect-list .placeholder-text {
  grid-column: 1 / -1;
  text-align: center;
  color: #999999;
  padding: 40px;
  font-size: 14px;
}

/**
 * @description 音效板块响应式调整
 * @date 2025-12-09
 */
@media (max-width: 1200px) {
  .sound-effect-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sound-effect-list {
    grid-template-columns: 1fr;
  }

  .sound-effect-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .sound-effect-item-header {
    flex-wrap: wrap;
  }
}

/* ===== 配音播放器样式 ===== */
.dubbing-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-radius: 8px;
  border: 1px solid #e1e5eb;
  flex: 1;
  min-width: 200px;
}

/**
 * @description 播放按钮改为黑色
 * @date 2025-12-09
 */
.dubbing-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #000000;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.dubbing-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dubbing-play-btn:active {
  transform: scale(0.95);
}

.dubbing-play-btn.playing {
  background: #333333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dubbing-play-btn .play-icon {
  font-size: 12px;
  margin-left: 2px;
}

.dubbing-progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dubbing-progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.dubbing-progress-bar:hover {
  height: 8px;
}

/**
 * @description 进度条改为黑色
 * @date 2025-12-09
 */
.dubbing-progress-fill {
  height: 100%;
  background: #000000;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.dubbing-time-display {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #666666;
  font-family: -apple-system, BlinkMacSystemFont, "SF Mono", monospace;
}

.dubbing-time-sep {
  color: #999999;
}

.dubbing-current-time {
  color: #333333;
  font-weight: 500;
}

.dubbing-total-time {
  color: #666666;
}

/* 调整操作区域布局 */
.dubbing-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dubbing-item-actions .dubbing-single-btn {
  flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .dubbing-player {
    min-width: 100%;
    flex-direction: row;
  }

  .dubbing-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dubbing-item-actions .dubbing-single-btn {
    width: 100%;
  }
}

/* ===== 音效播放器样式 ===== */
.sound-effect-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  flex: 1;
  min-width: 180px;
}

/**
 * @description 音效播放按钮改为灰色
 * @date 2025-12-09
 */
.sound-effect-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #666666;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.sound-effect-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sound-effect-play-btn:active {
  transform: scale(0.95);
}

.sound-effect-play-btn.playing {
  background: #333333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sound-effect-play-btn .play-icon {
  font-size: 11px;
  margin-left: 1px;
}

.sound-effect-progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sound-effect-progress-bar {
  width: 100%;
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.sound-effect-progress-bar:hover {
  height: 7px;
}

/**
 * @description 音效进度条改为灰色
 * @date 2025-12-09
 */
.sound-effect-progress-fill {
  height: 100%;
  background: #666666;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.sound-effect-time-display {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #555555;
  font-family: -apple-system, BlinkMacSystemFont, "SF Mono", monospace;
}

.sound-effect-time-sep {
  color: #888888;
}

.sound-effect-current-time {
  color: #333333;
  font-weight: 500;
}

.sound-effect-total-time {
  color: #555555;
}

/* 调整音效操作区域布局 */
.sound-effect-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sound-effect-item-actions .sound-effect-single-btn {
  flex-shrink: 0;
}

/* 音效响应式调整 */
@media (max-width: 768px) {
  .sound-effect-player {
    min-width: 100%;
    flex-direction: row;
  }

  .sound-effect-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sound-effect-item-actions .sound-effect-single-btn {
    width: 100%;
  }
}

/**
 * @description 可编辑对白文本框样式
 * @date 2025-12-09
 */
.dubbing-dialogue-input {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background: #fafafa;
  color: #333333;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dubbing-dialogue-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.dubbing-dialogue-input:hover {
  border-color: #aaaaaa;
}

/**
 * @description 停顿工具栏样式
 * @date 2025-12-09
 */
.dubbing-break-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}

/**
 * @description 停顿按钮改为黑色
 * @date 2025-12-09
 */
.btn-break {
  background: #333333;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-break:hover {
  background: #444444;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-break:active {
  transform: translateY(0);
}

.break-time-select {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #fff;
  color: #333333;
  cursor: pointer;
  min-width: 70px;
}

.break-time-select:focus {
  outline: none;
  border-color: #000000;
}

.break-time-select:hover {
  border-color: #aaaaaa;
}

/**
 * @description 自动停顿按钮样式
 * @date 2025-12-09
 */
.btn-auto-pause {
  background: #666666;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-auto-pause:hover {
  background: #555555;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-auto-pause:active {
  transform: translateY(0);
}

.btn-auto-pause:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/**
 * @description 下载音频按钮样式
 * @date 2025-12-09
 */
.dubbing-download-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #000000 !important;
  color: white !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  font-size: 14px;
  padding: 0 !important;
  line-height: 1;
}

.dubbing-download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: #333333 !important;
}

.dubbing-download-btn:active {
  transform: scale(0.95);
}

/**
 * @description 尾音空白设置样式
 * @date 2025-12-09
 */
.dubbing-tail-silence-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 15px;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Toggle开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cccccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/**
 * @description 开关改为黑色
 * @date 2025-12-09
 */
.toggle-switch input:checked + .toggle-slider {
  background: #000000;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* 开关标签文字 */
.toggle-label {
  font-size: 13px;
  color: #555555;
  font-weight: 500;
  white-space: nowrap;
}

/* 尾音时长输入框 */
.tail-silence-input {
  width: 60px;
  padding: 5px 8px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  background: #fff;
  color: #333333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tail-silence-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.tail-silence-input:hover {
  border-color: #aaaaaa;
}

/* 去掉数字输入框的上下箭头(部分浏览器) */
.tail-silence-input::-webkit-outer-spin-button,
.tail-silence-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tail-silence-input[type=number] {
  -moz-appearance: textfield;
}

/* 单位后缀 */
.input-suffix {
  font-size: 13px;
  color: #666666;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .dubbing-tail-silence-settings {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }

  #dubbing-panel .dubbing-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}
