/* Audio Speed Changer - Consistent with TriTool Nexus design */

:root{
  --bg:#0b0b0f;
  --card-bg:linear-gradient(180deg,rgba(20,14,28,0.48),rgba(12,8,18,0.6));
  --card-border:rgba(255,255,255,0.03);
  --accent-cyan:#39d9ff;
  --accent-purple:#7c3aed;
  --accent-magenta:#ff4ecf;
  --accent-mid:linear-gradient(90deg,var(--accent-cyan),var(--accent-purple),var(--accent-magenta));
  --text:#e6e6ee;
  --muted:#cfcbe1;
}

*{box-sizing:border-box;font-family:'Inter', Arial, sans-serif}
body{background:var(--bg);margin:0;padding:28px;color:var(--text)}
.container{max-width:820px;margin:18px auto;padding:20px;background:var(--card-bg);border-radius:12px;border:1px solid var(--card-border);box-shadow:0 18px 48px rgba(2,6,23,0.55);}
.hero-inner{padding:8px 0 18px}
.hero-inner h2{margin:0 0 6px;font-size:18px}
.lead{color:var(--muted);margin:0}

/* Upload Section Styling */
.upload-section {
  margin-bottom: 28px;
}

.upload-label {
  display: block;
  cursor: pointer;
}

.upload-label input {
  display: none;
}

.upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  border: 2px dashed rgba(57, 217, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(57, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  transition: all 0.3s ease;
}

.upload-placeholder:hover {
  border-color: rgba(57, 217, 255, 0.6);
  background: linear-gradient(135deg, rgba(57, 217, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.upload-placeholder .icon {
  font-size: 36px;
}

.upload-text {
  text-align: left;
}

.upload-text .main-text {
  margin: 0;
  color: #e6e6ee;
  font-weight: 600;
  font-size: 15px;
}

.upload-text .sub-text {
  margin: 4px 0 0 0;
  color: #cfcbe1;
  font-size: 13px;
}

/* Speed Control Section */
.speed-control-section {
  margin-bottom: 28px;
}

.speeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

.speed-btn {
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  color: #e6e6ee;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.speed-btn:hover:not(.active) {
  border-color: rgba(57, 217, 255, 0.4);
  background: linear-gradient(180deg, rgba(57, 217, 255, 0.08), rgba(57, 217, 255, 0.04));
}

.speed-btn.active {
  background: linear-gradient(90deg, #39d9ff, #7c3aed, #ff4ecf);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 36px rgba(124, 58, 237, 0.25);
}

.speed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Preview Section */
.preview-section {
  margin-bottom: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20, 14, 28, 0.48), rgba(12, 8, 18, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* Actions Section */
.actions-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action.primary {
  background: linear-gradient(90deg, #39d9ff, #7c3aed, #ff4ecf);
  color: #fff;
  box-shadow: 0 10px 36px rgba(124, 58, 237, 0.2);
}

.btn-action.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 48px rgba(124, 58, 237, 0.3);
}

.btn-action.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #e6e6ee;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-action.secondary:hover:not(:disabled) {
  border-color: rgba(57, 217, 255, 0.4);
  background: linear-gradient(180deg, rgba(57, 217, 255, 0.08), rgba(57, 217, 255, 0.04));
}

.btn-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Status Message */
.status-message {
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(57, 217, 255, 0.1), rgba(124, 58, 237, 0.08));
  border-left: 3px solid #39d9ff;
  border-radius: 6px;
  color: #cfcbe1;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .speeds-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
    
  .upload-placeholder {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
    
  .upload-text {
    text-align: center;
  }
    
  .actions-section {
    flex-direction: column;
  }
    
  .btn-action {
    width: 100%;
  }
}

/* Ensure brand header matches global site style (gradient clipped text) */
header nav .brand h1,
header .brand h1 {
  background: var(--accent-mid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 1.05rem;
}
