/* Video Spotlight Gallery - Apple-inspired design (Light Mode) */
.video-spotlight {
  --vs-primary-bg: #ffffff;
  --vs-secondary-bg: #f2f2f7;
  --vs-text-primary: #000000;
  --vs-text-secondary: #6d6d70;
  --vs-accent: #007aff;
  --vs-border: #d1d1d6;
  --vs-highlight: 0 0 0 1px rgba(0, 0, 0, 0.1);
  --vs-transition: cubic-bezier(0.22, 1, 0.36, 1);
  --vs-radius: 16px;
  
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--vs-primary-bg);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow);
  overflow: visible;
  position: relative;
  outline: none;
}

.video-spotlight__container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 16px;
  padding: 24px;
  min-height: 400px;
  overflow: visible;
}

.video-spotlight__item {
  position: relative;
  border-radius: var(--vs-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 300ms var(--vs-transition);
  transform: scale(0.95);
  filter: saturate(0.85);
  background: var(--vs-secondary-bg);
  box-shadow: var(--vs-highlight);
  z-index: 1;
}

.video-spotlight__item:hover:not(.video-spotlight__item--featured) {
  transform: scale(0.95);
  filter: saturate(0.9);
}

.video-spotlight__item--featured {
  transform: scale(1.1);
  filter: saturate(1);
  z-index: 10;
}

.video-spotlight__item--featured:hover {
  transform: scale(1.15);
}

.video-spotlight__video-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.video-spotlight__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-radius: var(--vs-radius);
  transition: all 300ms var(--vs-transition);
}

.video-spotlight__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 250ms var(--vs-transition);
}

.video-spotlight__item:hover .video-spotlight__overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-spotlight__play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  backdrop-filter: blur(10px);
  transition: all 250ms var(--vs-transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 122, 255, 0.3);
}

.video-spotlight__play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.video-spotlight__title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  opacity: 1;
  transition: opacity 250ms var(--vs-transition);
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-spotlight__controls {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  background: #f2f2f7;
  border-top: 1px solid #d1d1d6;
  justify-content: center;
}

.video-spotlight__control {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f2f2f7;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms var(--vs-transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1d1d6;
}

.video-spotlight__control:hover {
  background: var(--vs-accent);
  transform: scale(1.05);
}

.video-spotlight__control:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--vs-accent);
}

.video-spotlight__control[aria-pressed="true"] {
  background: var(--vs-accent);
}

.video-spotlight__shortcuts {
  padding: 16px 24px;
  text-align: center;
  color: #6d6d70;
  font-size: 12px;
  background: #f2f2f7;
  border-top: 1px solid #d1d1d6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-spotlight__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 16px;
  }
  
  .video-spotlight__item--featured {
    transform: scale(1.05);
  }
  
  .video-spotlight__controls {
    padding: 16px;
    gap: 8px;
  }
  
  .video-spotlight__control {
    width: 40px;
    height: 40px;
  }
  
  .video-spotlight__shortcuts {
    padding: 12px 16px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .video-spotlight__container {
    padding: 12px;
    gap: 8px;
  }
  
  .video-spotlight__controls {
    padding: 12px;
  }
  
  .video-spotlight__control {
    width: 36px;
    height: 36px;
  }
  
  .video-spotlight__play-button {
    width: 48px;
    height: 48px;
  }
}

/* Focus styles for accessibility */
.video-spotlight:focus-visible {
  box-shadow: 0 0 0 3px #007aff;
}

.video-spotlight__item:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.video-spotlight * {
  transition: all 250ms var(--vs-transition);
}

/* Fullscreen styles */
.video-spotlight:fullscreen {
  border-radius: 0;
  background: var(--vs-primary-bg);
}

.video-spotlight:fullscreen .video-spotlight__container {
  padding: 32px;
  gap: 24px;
}

/* Animation for featured video switch */
@keyframes featuredSwitch {
  0% {
    transform: scale(0.92);
    filter: saturate(0.8);
  }
  50% {
    transform: scale(1.05);
    filter: saturate(1.1);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}

.video-spotlight__item--featured {
  animation: featuredSwitch 350ms var(--vs-transition);
}

/* Hover effects for controls */
.video-spotlight__control:hover svg {
  transform: scale(1.1);
}

/* Loading state */
.video-spotlight__video:not([src]) {
  background: var(--vs-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vs-text-secondary);
  font-size: 14px;
}

.video-spotlight__video:not([src])::before {
  content: "Loading...";
}
