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

body {
  background: #0a0a14;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a14;
}
::-webkit-scrollbar-thumb {
  background: #2a2a3f;
  border-radius: 3px;
}

.glass {
  background: rgba(18, 18, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-bright {
  background: rgba(25, 25, 45, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-webkit-slider-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  margin-top: -7px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border: none;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

input[type="range"].volume-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

input[type="range"].volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Video glow */
.video-glow {
  box-shadow: 
    0 0 40px rgba(168, 85, 247, 0.1),
    0 0 80px rgba(59, 130, 246, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Drop zone animation */
.drop-zone-border {
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23a855f780' stroke-width='3' stroke-dasharray='12%2c 8' stroke-dashoffset='0' stroke-linecap='round'/%3e%3c/svg%3e");
}

.drop-zone-border.drag-over {
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23a855f7' stroke-width='3' stroke-dasharray='12%2c 8' stroke-dashoffset='0' stroke-linecap='round'/%3e%3c/svg%3e");
}

@keyframes dashMove {
  to { stroke-dashoffset: -40; }
}

@keyframes floatEmoji {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-120px) scale(1.3) rotate(15deg); opacity: 0.8; }
  100% { transform: translateY(-250px) scale(0.5) rotate(-10deg); opacity: 0; }
}

.emoji-float {
  animation: floatEmoji 1.5s ease-out forwards;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  font-size: 2.5rem;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

/* Toggle switch */
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-track.active {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
}

.toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-track.active .toggle-knob {
  transform: translateX(20px);
}

/* Seek bar custom */
input[type="range"].seek-bar::-webkit-slider-track {
  height: 4px;
}

input[type="range"].seek-bar::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

input[type="range"].seek-bar::-moz-range-track {
  height: 4px;
}

input[type="range"].seek-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #ccc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}