.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  max-width: 95%;
  width: 1000px;
  z-index: 1001;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

.modal-body {
  /* display: flex; */
  gap: 20px;
  color: #fff;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-video-container {
  flex: 0.6;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  max-width: 60%;
  position: relative;
}

#video-loading {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-info {
  flex: 0.4;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  max-width: 40%;
  margin-left: 15px;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

@media (max-width: 1024px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  
  .modal-video-container,
  .modal-info {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
    overflow-y: auto;
    max-height: 90vh;
  }

  /* تعديل ترتيب العناصر في النافذة المنبثقة لوضع الهاتف */
  .modal-body .row {
    flex-direction: column;
  }

  .modal-body .row .col:first-child {
    order: 0;
    margin-bottom: 15px;
  }

  .modal-body .row .col:last-child {
    order: 1;
  }

  /* تحسين حجم الفيديو في وضع الهاتف */
  .item-video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
}