/* Cinema8 Interactive Video Player - Luxury 3D Styling */

/* Main luxury container with 3D perspective */
.cinema8-luxury-container {
  perspective: 2000px;
  animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  margin: 0 auto;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Frame with luxury depth */
.cinema8-3d-frame {
  position: relative;
  padding: 24px;
  background: linear-gradient(
    145deg,
    rgba(15, 15, 25, 0.95) 0%,
    rgba(25, 25, 40, 0.98) 50%,
    rgba(15, 15, 25, 0.95) 100%
  );
  border-radius: 16px;
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema8-3d-frame:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(100, 100, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* Inner glow effect */
.cinema8-inner-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: radial-gradient(
    ellipse at center,
    rgba(100, 100, 255, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.cinema8-3d-frame:hover .cinema8-inner-glow {
  opacity: 1;
}

/* Video wrapper with proper aspect ratio */
.cinema8-video-wrapper {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* 16:9 Aspect ratio container */
.cinema8-aspect-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

/* Luxury corner accents */
.cinema8-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
  opacity: 0.6;
  transition: all 0.6s ease;
}

.cinema8-corner::before,
.cinema8-corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(100, 150, 255, 0.8) 0%,
    rgba(150, 100, 255, 0.6) 100%
  );
  transition: all 0.6s ease;
}

.cinema8-corner::before {
  width: 100%;
  height: 2px;
}

.cinema8-corner::after {
  width: 2px;
  height: 100%;
}

/* Top-left corner */
.cinema8-corner-tl {
  top: 8px;
  left: 8px;
}

.cinema8-corner-tl::before {
  top: 0;
  left: 0;
}

.cinema8-corner-tl::after {
  top: 0;
  left: 0;
}

/* Top-right corner */
.cinema8-corner-tr {
  top: 8px;
  right: 8px;
}

.cinema8-corner-tr::before {
  top: 0;
  right: 0;
}

.cinema8-corner-tr::after {
  top: 0;
  right: 0;
}

/* Bottom-left corner */
.cinema8-corner-bl {
  bottom: 8px;
  left: 8px;
}

.cinema8-corner-bl::before {
  bottom: 0;
  left: 0;
}

.cinema8-corner-bl::after {
  bottom: 0;
  left: 0;
}

/* Bottom-right corner */
.cinema8-corner-br {
  bottom: 8px;
  right: 8px;
}

.cinema8-corner-br::before {
  bottom: 0;
  right: 0;
}

.cinema8-corner-br::after {
  bottom: 0;
  right: 0;
}

/* Hover effect on corners */
.cinema8-3d-frame:hover .cinema8-corner {
  opacity: 1;
}

.cinema8-3d-frame:hover .cinema8-corner::before,
.cinema8-3d-frame:hover .cinema8-corner::after {
  background: linear-gradient(
    135deg,
    rgba(150, 200, 255, 1) 0%,
    rgba(200, 150, 255, 0.9) 100%
  );
  box-shadow: 0 0 10px rgba(150, 150, 255, 0.6);
}

/* Animated glow border */
.cinema8-3d-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(100, 100, 255, 0.4),
    rgba(200, 100, 255, 0.3),
    rgba(100, 200, 255, 0.3),
    rgba(100, 100, 255, 0.4)
  );
  background-size: 300% 300%;
  border-radius: 17px;
  opacity: 0;
  z-index: 0;
  filter: blur(12px);
  animation: gradientShift 8s ease infinite;
  transition: opacity 0.8s ease;
}

.cinema8-3d-frame:hover::before {
  opacity: 1;
}

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

/* Subtle scan line effect */
.cinema8-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 50%,
    transparent 100%
  );
  background-size: 100% 3px;
  pointer-events: none;
  animation: scanline 6s linear infinite;
  opacity: 0.4;
  z-index: 10;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Cinema8 player styling */
cinema8-player {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .cinema8-3d-frame {
    padding: 20px;
  }
  
  .cinema8-corner {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .cinema8-3d-frame {
    padding: 16px;
    border-radius: 12px;
  }
  
  .cinema8-3d-frame:hover {
    transform: translateY(-4px) rotateX(1deg);
  }
  
  .cinema8-corner {
    width: 24px;
    height: 24px;
  }
  
  .cinema8-video-wrapper {
    border-radius: 6px;
  }
}

/* Premium focus state for accessibility */
cinema8-player:focus-visible {
  outline: 2px solid rgba(100, 150, 255, 0.8);
  outline-offset: 4px;
}
