/* ==========================================================================
   Video Modal
   ========================================================================== */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.video-modal[hidden] {
  display: none;
}

/* Backdrop */
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(67, 84, 100, 0.8);
}

/* Content card */
.video-modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Close button */
.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth),
              border-color var(--duration-fast) var(--ease-smooth);
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

.video-modal__close svg {
  width: 18px;
  height: 18px;
}

/* Player area */
.video-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.video-modal__player video,
.video-modal__player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Placeholder */
.video-modal__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  height: 100%;
  background: var(--light-gray);
}

.video-modal__placeholder svg {
  opacity: 0.5;
}

.video-modal__placeholder p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--medium-gray);
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .video-modal {
    padding: var(--space-md);
  }

  .video-modal__close {
    top: -48px;
    width: 44px;
    height: 44px;
  }

  .video-modal__close svg {
    width: 16px;
    height: 16px;
  }
}
