/* Reset & Custom Styles */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Safe Area Insets for Mobile / PWA Notch */
.app-header {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hide scrollbars but keep scrolling functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Progress Bar Range Input */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #FF003F;
  box-shadow: 0 0 10px rgba(255, 0, 63, 0.8);
  cursor: pointer;
  margin-top: -4px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
}

/* Smooth pop animations */
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-scaleIn {
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card hover glow & glassy look */
.video-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}
.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 28px -6px rgba(0, 229, 255, 0.25);
}
.video-card:active {
  transform: scale(0.98);
}

/* Suggestion dropdown item */
.suggestion-item {
  transition: background 0.15s ease, color 0.15s ease;
}
.suggestion-item:hover, .suggestion-item.active {
  background: rgba(0, 229, 255, 0.15);
  color: #00E5FF;
}

/* Active ambient theme option */
.ambient-opt-btn.active {
  border-color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}