/* Custom animations and effects */
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* TV-style scanlines effect */
.tv-scanlines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 255, 0, 0.03) 50%, 
    transparent 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced TV bezel styling */
.tv-bezel {
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-radius: 20px;
  box-shadow: 
    inset 0 0 0 3px #333,
    inset 0 0 0 6px #222,
    0 20px 40px rgba(0,0,0,0.4),
    0 40px 80px rgba(0,0,0,0.2);
}

/* Glow effects for focused items */
.focus-glow {
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3),
    0 0 60px rgba(59, 130, 246, 0.1);
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: transform, box-shadow, opacity, background-color;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

/* Hide scrollbars while keeping functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Enhanced button hover states */
button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Starfield background animation */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.star {
  animation: twinkle 2s infinite;
}

/* Loading spinner customization */
@keyframes spin-smooth {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin-smooth 1s linear infinite;
}

/* Movie poster hover effects */
.movie-poster {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.movie-poster:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 130, 246, 0.2);
}

/* App icon pulse animation */
@keyframes app-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.app-focused {
  animation: app-pulse 2s infinite;
}

/* Volume bar animation */
.volume-bar {
  transition: width 0.3s ease-out;
}

/* Backdrop blur enhancement for modals */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhanced gradient text effects */
.gradient-text {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

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

/* Screen reflection effect */
.tv-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 10;
}