/* 🎬 Horror Streaming App - Video.js Horror Skin
 * Mobile-First Design - NO HOVER EFFECTS
 * Created: January 2025
 * Version: 1.0
 */

/* ========================================
   BASE HORROR SKIN CONTAINER
   ======================================== */
.vjs-horror-skin {
  /* Aspect ratio for 1176×1764 video dimensions */
  aspect-ratio: 1176/1764 !important;
  
  /* Zero all spacing for tight fit */
  margin: 0 !important;
  padding: 0 !important;
  
  /* Horror theme color variables */
  --horror-red: #ff0000;
  --horror-dark-red: #cc0000;
  --horror-dark: #1a1a1a;
  --horror-darker: #000000;
  --horror-gray: #cccccc;
  
  /* Container positioning */
  position: relative !important;
  overflow: hidden !important;
  background: var(--horror-darker) !important;
  
  /* Mobile-first: No hover effects */
  /* Ensure smooth performance on mobile */
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ========================================
   VIDEO ELEMENT STYLING
   ======================================== */
.vjs-horror-skin .vjs-tech {
  /* Video fills container exactly */
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  background: var(--horror-darker) !important;
}

/* ========================================
   BIG PLAY BUTTON - HORROR THEMED
   ======================================== */
.vjs-horror-skin .vjs-big-play-button {
  /* Horror theme styling */
  background: radial-gradient(circle, var(--horror-red) 0%, var(--horror-dark) 100%) !important;
  border: 3px solid var(--horror-red) !important;
  border-radius: 50% !important;
  
  /* Size and positioning */
  width: 80px !important;
  height: 80px !important;
  font-size: 40px !important;
  line-height: 80px !important;
  
  /* Center positioning */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  
  /* Typography */
  color: white !important;
  text-align: center !important;
  
  /* Mobile-first: No hover effects */
  /* Touch feedback only */
  transition: transform 0.1s ease !important;
}

.vjs-horror-skin .vjs-big-play-button:active {
  /* Touch feedback - scale down slightly */
  transform: translate(-50%, -50%) scale(0.95) !important;
  background: radial-gradient(circle, #ff3333 0%, var(--horror-dark-red) 100%) !important;
}

.vjs-horror-skin .vjs-big-play-button:focus {
  /* Focus for accessibility */
  outline: 2px solid var(--horror-red) !important;
  outline-offset: 4px !important;
}

/* ========================================
   CONTROL BAR - HORROR OVERLAY
   ======================================== */
.vjs-horror-skin .vjs-control-bar {
  /* Absolute positioned overlay */
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  
  /* Horror theme background */
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent) !important;
  
  /* Spacing and layout */
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  
  /* Typography */
  color: var(--horror-gray) !important;
  font-size: 16px !important;
  
  /* Mobile optimization */
  min-height: 44px !important; /* Touch target size */
}

/* ========================================
   PROGRESS BAR - HORROR STYLED
   ======================================== */
.vjs-horror-skin .vjs-progress-control {
  /* Progress bar container */
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  height: 8px !important;
  margin: 0 8px !important;
  
  /* Mobile-first: No hover effects */
  /* Larger touch target */
  cursor: pointer !important;
  padding: 4px 0 !important;
}

.vjs-horror-skin .vjs-progress-holder {
  /* Progress track */
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  height: 8px !important;
}

.vjs-horror-skin .vjs-play-progress {
  /* Played portion - horror red gradient */
  background: linear-gradient(90deg, var(--horror-red), #ff3333) !important;
  border-radius: 8px !important;
  height: 8px !important;
}

.vjs-horror-skin .vjs-load-progress {
  /* Loaded portion */
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  height: 8px !important;
}

.vjs-horror-skin .vjs-progress-control:active .vjs-progress-holder {
  /* Touch feedback */
  transform: scaleY(1.5) !important;
  transition: transform 0.1s ease !important;
}

/* ========================================
   CONTROL BUTTONS - HORROR THEMED
   ======================================== */
.vjs-horror-skin .vjs-control-bar .vjs-button {
  /* Button base styling */
  background: transparent !important;
  border: none !important;
  color: var(--horror-gray) !important;
  font-size: 18px !important;
  padding: 8px !important;
  margin: 0 4px !important;
  
  /* Mobile touch targets */
  min-width: 44px !important;
  min-height: 44px !important;
  
  /* Mobile-first: No hover effects */
  transition: color 0.1s ease !important;
}

.vjs-horror-skin .vjs-control-bar .vjs-button:active {
  /* Touch feedback */
  color: var(--horror-red) !important;
  transform: scale(0.95) !important;
}

.vjs-horror-skin .vjs-control-bar .vjs-button:focus {
  /* Focus for accessibility */
  outline: 2px solid var(--horror-red) !important;
  outline-offset: 2px !important;
}

/* ========================================
   VOLUME CONTROL - HORROR STYLED
   ======================================== */
.vjs-horror-skin .vjs-volume-control {
  /* Volume slider container */
  background: transparent !important;
}

.vjs-horror-skin .vjs-volume-bar {
  /* Volume track */
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  height: 6px !important;
}

.vjs-horror-skin .vjs-volume-level {
  /* Volume level - horror red */
  background: linear-gradient(90deg, var(--horror-red), #ff3333) !important;
  border-radius: 4px !important;
  height: 6px !important;
}

/* ========================================
   LOADING SPINNER - HORROR THEMED
   ======================================== */
.vjs-horror-skin .vjs-loading-spinner {
  /* Custom horror-themed spinner */
  border: 4px solid transparent !important;
  border-top: 4px solid var(--horror-red) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  
  /* Center positioning */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  
  /* Animation */
  animation: horror-spin 1s linear infinite !important;
}

@keyframes horror-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   ERROR DISPLAY - HORROR THEMED
   ======================================== */
.vjs-horror-skin .vjs-error-display {
  /* Error message styling */
  background: linear-gradient(135deg, #1a0000, #330000) !important;
  color: white !important;
  border: 2px solid var(--horror-red) !important;
  border-radius: 12px !important;
  text-align: center !important;
  padding: 24px !important;
  
  /* Center positioning */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  
  /* Typography */
  font-size: 16px !important;
  line-height: 1.5 !important;
  
  /* Mobile optimization */
  max-width: 280px !important;
  width: 90% !important;
}

.vjs-horror-skin .vjs-error-display .vjs-modal-dialog-content {
  color: white !important;
}

/* ========================================
   FULLSCREEN OPTIMIZATIONS
   ======================================== */
.vjs-horror-skin.vjs-fullscreen {
  /* Fullscreen mode adjustments */
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: unset !important;
  
  /* Ensure proper video scaling */
  object-fit: contain !important;
}

.vjs-horror-skin.vjs-fullscreen .vjs-tech {
  /* Video in fullscreen */
  object-fit: contain !important;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */
@media screen and (max-width: 768px) {
  .vjs-horror-skin {
    /* Mobile-specific adjustments */
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .vjs-horror-skin .vjs-control-bar {
    /* Smaller padding on mobile */
    padding: 8px 12px !important;
  }
  
  .vjs-horror-skin .vjs-big-play-button {
    /* Smaller play button on mobile */
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
    line-height: 60px !important;
  }
  
  .vjs-horror-skin .vjs-control-bar .vjs-button {
    /* Smaller buttons on mobile */
    font-size: 16px !important;
    padding: 6px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}

@media screen and (max-width: 480px) {
  .vjs-horror-skin .vjs-control-bar {
    /* Even smaller padding on small screens */
    padding: 6px 8px !important;
  }
  
  .vjs-horror-skin .vjs-progress-control {
    /* Simpler progress bar on small screens */
    height: 6px !important;
    margin: 0 4px !important;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.vjs-horror-skin .vjs-control-bar .vjs-button:focus-visible {
  /* Enhanced focus for keyboard navigation */
  outline: 3px solid var(--horror-red) !important;
  outline-offset: 3px !important;
  background: rgba(255, 0, 0, 0.1) !important;
}

.vjs-horror-skin .vjs-progress-control:focus-within {
  /* Focus for progress bar */
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.3) !important;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.vjs-horror-skin * {
  /* Hardware acceleration for smooth performance */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.vjs-horror-skin .vjs-control-bar {
  /* Optimize control bar rendering */
  will-change: transform, opacity;
}

/* ========================================
   MOBILE-FIRST COMMENTS
   ======================================== */
/* ========================================
   POST-VIDEO COMPLETION OVERLAY
   ======================================== */
.vjs-horror-skin .vjs-completion-overlay {
  /* Transparent overlay covering entire video */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  /* No background - just for button positioning */
  
  /* Initially hidden */
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  
  /* Ensure it's on top */
  z-index: 1000 !important;
}

.vjs-horror-skin .vjs-completion-overlay-visible {
  /* Show overlay with fade-in */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Exact carousel button styling copied from main.css */
.vjs-horror-skin .carousel-scroll-btn {
  position: absolute !important;
  top: 50% !important;
  background: rgba(64, 64, 64, 0.9) !important;
  border: 1px solid rgba(128, 128, 128, 0.5) !important;
  color: #ff0000 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  
  /* Mobile-first: No hover effects */
  /* Touch interaction only */
  transition: transform 0.1s ease !important;
}

.vjs-horror-skin .carousel-scroll-btn:active {
  /* Touch feedback */
  transform: scale(0.95) !important;
}

.vjs-horror-skin .carousel-scroll-btn:focus {
  /* Focus for accessibility */
  outline: 2px solid #ff0000 !important;
  outline-offset: 2px !important;
}

/* Left button (back) - standard positioning */
.vjs-horror-skin .carousel-scroll-left {
  left: 8px !important;
  transform: translateY(-50%) !important;
}

/* Like button - positioned at 25% from left */
.carousel-scroll-btn.like-button {
  position: absolute !important;
  top: 50% !important;
  left: 25% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(64, 64, 64, 0.9) !important;
  border: 2px solid #ff0000 !important;
  color: white !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  /* Mobile-first: No hover effects */
  transition: transform 0.1s ease !important;
}

/* Like button when liked - red color */
.carousel-scroll-btn.like-button.liked {
  color: #ff0000 !important;
}

/* Share button - positioned at 80% from left */
.vjs-horror-skin .carousel-scroll-btn.share-button {
  left: 80% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 16px !important;
  border: 2px solid #ff0000 !important;
  z-index: 1000 !important;
}

/* Right button (next) - standard positioning */
.vjs-horror-skin .carousel-scroll-right {
  right: 8px !important;
  transform: translateY(-50%) !important;
}

/* ========================================
   LIKE & SHARE BUTTON STYLING
   ======================================== */

/* Like button specific styling */
.vjs-horror-skin .carousel-scroll-btn.like-button {
  transition: all 0.2s ease !important;
}

.vjs-horror-skin .carousel-scroll-btn.like-button.liked {
  color: #ff4444 !important;
  animation: heartBeat 0.6s ease !important;
}

.vjs-horror-skin .carousel-scroll-btn.like-button:active {
  transform: translate(-50%, -50%) scale(0.9) !important;
}

/* Share button specific styling */
.vjs-horror-skin .carousel-scroll-btn.share-button {
  transition: all 0.2s ease !important;
}

.vjs-horror-skin .carousel-scroll-btn.share-button:active {
  transform: translate(-50%, -50%) scale(0.9) !important;
}

/* Heart beat animation for like button */
@keyframes heartBeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.25);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Toast animation keyframes */
@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
}

/* ========================================
   SHARE POPUP MODAL
   ======================================== */
.share-popup-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.share-popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.share-popup {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
  border: 2px solid #ff0000 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  max-width: 400px !important;
  width: 90% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  position: relative !important;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3) !important;
}

.share-popup-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

.share-popup-title {
  color: white !important;
  font-size: 20px !important;
  font-weight: bold !important;
  margin: 0 !important;
}

.share-popup-close {
  background: transparent !important;
  border: none !important;
  color: #ff0000 !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 5px !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.share-popup-close:active {
  transform: scale(0.95) !important;
}

.share-section {
  margin-bottom: 20px !important;
}

.share-section-title {
  color: #ff0000 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  margin-bottom: 10px !important;
}

.share-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.share-option {
  background: rgba(64, 64, 64, 0.9) !important;
  border: 1px solid #ff0000 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: white !important;
  text-decoration: none !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: transform 0.1s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.share-option:active {
  transform: scale(0.95) !important;
  background: rgba(255, 0, 0, 0.1) !important;
}

.friends-list {
  max-height: 200px !important;
  overflow-y: auto !important;
}

.friend-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px !important;
  border-bottom: 1px solid rgba(255, 0, 0, 0.2) !important;
}

.friend-item:last-child {
  border-bottom: none !important;
}

.friend-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #ff0000 !important;
  margin-right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-weight: bold !important;
}

.friend-name {
  color: white !important;
  flex-grow: 1 !important;
}

.friend-share-btn {
  background: #ff0000 !important;
  border: none !important;
  color: white !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 12px !important;
}

.friend-share-btn:active {
  transform: scale(0.95) !important;
}

/* Mobile-first: No hover effects throughout this file */
/* All interactions are touch-based using :active and :focus */
/* Optimized for mobile performance and touch targets */
/* Follows WCAG 2.1 AA accessibility guidelines */