* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(170deg, #0a0a14 0%, #0f0f1a 40%, #12121f 100%);
}

.gradient-line {
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #ff477e, #ff6b35);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glass-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.drop-zone {
  border: 2px dashed rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff477e);
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #ff6b35, #ff477e);
  transition: width 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.4); }
}

input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #24243a;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff477e);
  cursor: pointer;
  border: 2px solid #0a0a14;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff477e);
  cursor: pointer;
  border: 2px solid #0a0a14;
}

select {
  background-color: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  color: #e5e7eb;
}

select:focus {
  outline: none;
  border-color: #ff6b35;
}

video::-webkit-media-controls-panel {
  background: rgba(10, 10, 20, 0.8);
}

.confetti-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.thumbnail-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: #12121f;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 2px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 10px;
  cursor: help;
  color: rgba(255,255,255,0.4);
  position: relative;
}

.tooltip-icon:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #24243a;
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'DM Sans', sans-serif;
}

.live-frame-preview {
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 4px;
}