
/**
 * TikTok 下载按钮全局样式
 * 
 * 注意：
 * 1. 使用统一的类名前缀 `tt-download-` 避免样式冲突
 * 2. 不使用 scoped，因为按钮是动态注入到页面中的
 */

/* ========== 按钮样式 ========== */
.tt-download-button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s ease;
  
  /* ✅ 统一的视觉样式（与 Douyin 一致） */
  background: rgba(84, 84, 84, 0.5);
  border-radius: 11px;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-download-button:hover {
  background: rgba(84, 84, 84, 0.8);  /* 背景加深 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.tt-download-button:active {
  background: rgba(84, 84, 84, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.tt-download-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tt-download-button-inner svg,
.tt-download-button-inner img {
  width: 25px;
  height: 25px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ========== Wrapper 样式 ========== */
.tt-download-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  pointer-events: auto;
}

/* ========== Panel 样式 ========== */
.tt-download-panel {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}
.tt-download-panel * {
  box-sizing: border-box;
}
.tt-download-panel::-webkit-scrollbar {
  width: 6px;
}
.tt-download-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.tt-download-panel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
.tt-download-panel::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.tt-download-panel-item {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== Toast 样式 ========== */
.tt-download-toast {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== 状态加载动画 ========== */
@keyframes tt-loading-spin {
0% {
    transform: rotate(0deg);
}
100% {
    transform: rotate(360deg);
}
}
.status-loading svg {
  animation: tt-loading-spin 1s linear infinite;
}

/* ========== Toast 淡入淡出 ========== */
@keyframes tt-toast-fade-in {
from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}
to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
}
@keyframes tt-toast-fade-out {
from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}
}

