.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal__container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 2000px;
  height: 90%;
  max-height: 1200px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.modal__title {
  margin: 0;
  font-size: 20px;
}

.modal__close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: #ff0000;
}

.modal__content {
  flex: 1;
  padding: 0;
  background: #fff;
  overflow: hidden;
  min-height: 0;
}

.modal__content iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .modal__container {
    width: 95%;
    height: 90%;
    margin: 30px auto;
    border-radius: 8px;
  }

  .modal__header {
    padding: 12px 15px;
  }

  .modal__title {
    font-size: 18px;
  }

  .modal__close {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .modal__container {
    width: 95%;
    height: 90%;
    margin: 20px auto;
  }

  .modal__header {
    padding: 10px 12px;
  }
}