.hidePlay-btn .vjs-big-play-button {
  display: none;
}

.video-js .vjs-big-play-button .vjs-icon-placeholder::before {
    z-index: 9;
    text-align: center;
    display: flex;
    justify-content: center;
    content: "\f101";
    font-family: VideoJS;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    line-height: 2em;
    border: none;
    border-radius: 50%;
    font-size: 60px;
    color: #fff;
    -webkit-transition: border-color .4s, outline .4s, background-color .4s;
    -moz-transition: border-color .4s,outline .4s,background-color .4s;
    -ms-transition: border-color .4s,outline .4s,background-color .4s;
    -o-transition: border-color .4s,outline .4s,background-color .4s;
    transition: border-color .4s, outline .4s, background-color .4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal-content iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.play-overlay,
.play-overlay::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.play-overlay {
  z-index: 5;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  box-sizing: inherit;
  font-size: inherit;
  color: #ffffff;
  line-height: inherit;
}

.play-overlay::after {
    content: "\f101";
    font-family: VideoJS;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    width: 98px;
    height:98px;
    line-height: 2em;
    border: none;
    border-radius: 50%;
    font-size: 60px;
    color: #fff;
    -webkit-transition: border-color .4s, outline .4s, background-color .4s;
    -moz-transition: border-color .4s,outline .4s,background-color .4s;
    -ms-transition: border-color .4s,outline .4s,background-color .4s;
    -o-transition: border-color .4s,outline .4s,background-color .4s;
    transition: border-color .4s, outline .4s, background-color .4s;
    background: rgba(115, 41, 140, .42);
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-overlay.block::after {
	color: transparent
}

.video-wrapper .video-js .vjs-big-play-button {
  display: none !important;
}

/* ---------- Popup modal ---------- */
.playerHide {
  display: none;
}

.playerShow {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: block;
}

.video-modal-content {
  position: fixed;
  transform: translate(-50%, -45%);
}
.video-modal-content,
.js-popup-host {
  z-index: 99999;
  width: 95%;
  max-width: 1200px;
  top: 50%;
  left: 50%;
}

.video-modal-content {
  line-height: 0;
  cursor: auto;
}

.js-popup-host {
  height: 0;
  padding-top: 56.25%;
  position: relative;
  transform: translate(-50%, 20%);
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #000;
  background: #fff;
  border:0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: background 0.3s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255);
}
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  width: 100%;
  height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.playerShow .video-js .vjs-big-play-button {
  display: block !important;
}

.playerShow .play-overlay {
  display: none !important;
}

.video-js .vjs-poster {
  display: block !important;
}

.video-js.vjs-playing .vjs-big-play-button {
  display: none !important;
}

.video-js.vjs-has-started .vjs-poster {
  display: none !important;
}
.video-js .vjs-big-play-button {
 
}
.video-modal-content {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  animation: fadeInPopup 0.4s ease-out forwards;
}

.js-popup-host {
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin: 0 auto;
}

.playerShow {
  animation: fadeInOverlay 0.3s ease-in forwards;
}

/* 3. Animation Keyframes */
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.video-modal.playerShow {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.js-popup-host {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: none !important;
  top: auto !important;
  left: auto !important;
}

.js-popup-host iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.playerShow {
  animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 1000px) and  (max-width: 1600px){
  .video-modal-content,
  .js-popup-host {
    max-width: 700px;
  }
  .js-popup-host {
    max-width: 700px;
	padding-top:50%;
  }
}
@media (min-width: 2500px) {
  .video-modal-content,
  .js-popup-host {
    max-width: 1500px;
  }
}

@media (min-width:5000px) {
  .video-modal-content,
  .js-popup-host {
    max-width: 2500px;
  }
  .video-modal-close {
    font-size: 4.2rem;
    width: 100px;
    height: 100px;
  }
}

@media (min-width:7000px) {
    .video-modal-content, .js-popup-host {
        max-width: 4000px;
    }
	.video-modal-close {
        font-size: 5.2rem;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 1280px) {
  .video-modal-content {
    width: 90%;
    max-width:800px;
  }
  
  .video-modal-close {
    top: 10px;
    right: 10px;
    scale: 0.8; 
  }
}

@media (max-width: 767px) {
  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .video-modal.playerShow {
    padding: 10px;
  }
}