/* Video Modal - TikTok Style */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.98);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.modal-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.modal-video-player {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.modal-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 20px);
  right: calc(env(safe-area-inset-right) + 16px);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: all;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-video-info {
  padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px);
  color: white;
  pointer-events: all;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.modal-video-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.modal-video-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Mobile modal - full screen already handled in base styles */
  .modal-video-info {
    padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
  }

  .modal-close {
    top: calc(env(safe-area-inset-top) + 12px);
    right: calc(env(safe-area-inset-right) + 12px);
    width: 40px;
    height: 40px;
  }

  .modal-close svg {
    width: 20px;
    height: 20px;
  }
}