/* Video Block Styles */
.video-block {
  position: relative;
  width: 100%;
  background-color: white;
  padding: 80px 56px;
}

.video-block__container {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.video-block__wrapper {
  position: relative;
  width: 100%;
  height: 658px;
  background-color: #edf7fc;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}

.video-block__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #edf7fc;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-block__placeholder--no-image {
  background-color: #edf7fc;
}

.video-block__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.video-block__play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.video-block__play-button:focus {
  outline: 3px solid rgba(27, 71, 89, 0.3);
  outline-offset: 4px;
}

.video-block__play-icon {
  width: 80px;
  height: 80px;
  display: block;
}

.video-block__player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.video-block__player iframe,
.video-block__player video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-block {
    padding: 40px 28px;
  }

  .video-block__wrapper {
    height: 400px;
  }

  .video-block__play-button {
    width: 60px;
    height: 60px;
  }

  .video-block__play-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .video-block {
    padding: 20px 16px;
  }

  .video-block__wrapper {
    height: 300px;
  }

  .video-block__play-button {
    width: 50px;
    height: 50px;
  }

  .video-block__play-icon {
    width: 50px;
    height: 50px;
  }
}

/* Loading state */
.video-block__wrapper.loading .video-block__placeholder {
  opacity: 0.7;
}

.video-block__wrapper.loading .video-block__play-button {
  opacity: 0.5;
  pointer-events: none;
}

/* Video playing state */
.video-block__wrapper.playing .video-block__placeholder {
  opacity: 0;
  pointer-events: none;
}

.video-block__wrapper.playing .video-block__play-button {
  display: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .video-block__wrapper,
  .video-block__play-button,
  .video-block__placeholder {
    transition: none;
  }

  .video-block__wrapper:hover {
    transform: none;
  }

  .video-block__play-button:hover {
    transform: translate(-50%, -50%);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .video-block__play-button {
    background-color: #1b4759;
    border: 2px solid white;
  }

  .video-block__play-icon {
    color: white;
  }
}
