
.modal-video{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
/* @media screen and (max-width: 768px) {
  .modal-video {
    padding: 10px;
    box-sizing: border-box;
  }
} */

.modal-content{
  width: 100%;
  max-width: 820px;
  height: auto !important;
  aspect-ratio: 16/9;
  border: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
}
@media screen and (max-width: 768px) {
  .modal-content {
    width: calc(100% - 20px);
  }
}


/* iframe (YouTube / jStream) */
.modal-content iframe{
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: 16/9;
  position: relative;
  z-index: 1;
  background:#000;
}
@media screen and (max-width: 768px) {
  .modal-content iframe{
    
  }
}

/* loader */
.modal-content .loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px; /* 中央補正 */
  border: 4px solid rgba(255,255,255,0.25);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: modal-loader-spin 1s linear infinite;
  box-sizing: border-box;
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  .modal-content .loader {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px; /* 中央補正 */
  }
}

@keyframes modal-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.modal-video .close{
  width: 32px;
  height: 32px;

  position: absolute;
  right: 0;
  top: 0;
  z-index: 10000;
  transform: translate(0, -150%);
  cursor: pointer;
}

.modal-video .bg{
  width: 100%;
  height: 100%;

  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.8);
}

.modal-video .close::before{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #fff;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-video .close::after{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #fff;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}