.ts-video-player {
    position: relative;
	overflow:hidden;
}

.ts-video-thumb,
.ts-video-popup-trigger {
    position: relative;
    cursor: pointer;
}
.ts-video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
	  transform: scale(0);
  transition: transform 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  z-index:99999 !important
}

.ts-video-popup.active {
transform: scale(1);
  opacity: 1;
  visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-video-popup.active .ts-video-popup-inner {background:#000;}
.ts-video-popup-inner {
    width: 80%;
    aspect-ratio: 16/9;
}

.ts-video-popup iframe {
    width: 100%;
    height: 100%;
}
.ts-video-pro {
    position: relative;
}
.ts-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.ts-video-thumb {
    position: relative;
    overflow: hidden;
}
.ts-video-thumb img {
    width: 100%;
    display: block;
}
.ts-video-thumb iframe,
.ts-video-thumb video,
.ts-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.ts-video-popup-inner iframe,
.ts-video-popup-inner video {
    width: 100%;
    height: 80vh;
}
.ts-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    will-change: transform;
}
.ts-play-btn svg,
.ts-play-btn i {
    width: 40px;
    height: 40px;
	font-size:28px
}
.ts-play-btn-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,0,0,0.4);
    animation: pulse 1.5s infinite;
}
.ts-play-btn-inner {
    background: red;
display:flex;
align-items:center;
justify-content:center;
width:100%;
height:100%;	
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.ts-preview-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ts-video-popup-inner {
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.ts-video-popup iframe {
    width: 100%;
    height: 100%;
}
.ts-video-popup-inner {position:relative;}
.ts-close {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
	background:red;
	border-radius:50%;
}
.ts-popup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ts-video-thumb:hover .ts-video-preview {
    opacity: 1;
}
.ts-inline-video{
    width:100%;
    height:100%;
    object-fit:cover;
}