
/* ===== Video Player code css ========= */
.ptf-video-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.ptf-video-placeholder {
    width: 100%;
    padding-bottom: 56.25%;
}

.ptf-video-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    z-index: 1;
}

.ptf-video-inner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    /* overflow: hidden; */
}

.ptf-video-inner iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}

.ptf-close-btn {
    position: absolute;
    top: -11px;
    right: -11px; 
    background: var(--ast-global-color-4);
    border-radius: 50%;
    font-size: 16px;
    width: 25px;
    height: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
    z-index: 10000;
    transition: all 0.7s;
}

.ptf-close-btn svg{
    fill: var(--ast-global-color-2);
    font-size: 15px;
    transition: all 0.7s;
}
.ptf-close-btn:hover{
    background: #1671ad;
    transition: all 0.7s;
}
.ptf-close-btn:hover svg{
    fill: #fff;
    transition: all 0.7s;
}

.ptf-video-container.ptf-sticky {
    position: fixed !important;
    bottom: 20px;
    right: -400px;
    width: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    padding-bottom: 0 !important;
    background: #000;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    opacity: 0;
    transition: right 0.3s ease-out, opacity 0.3s ease-out;
}

.ptf-video-container.ptf-sticky.ptf-sticky-show {
    right: 20px !important;
    opacity: 1 !important;
}

.ptf-video-container.ptf-sticky.ptf-sticky-show .ptf-close-btn {
    display: block !important;
}

.ptf-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ptf-play-icon {
    width: 60px;
    height: 60px;
}

@media (max-width: 768px) {
    .ptf-video-container.ptf-sticky,
    .ptf-video-container.ptf-sticky.ptf-sticky-show {
        position: static !important;
        width: 100% !important;
        padding-bottom: 56.25% !important;
        right: auto !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    .ptf-close-btn { 
        display: none !important;
    }

    .ptf-player-overlay {
        display: none !important;
    }
}


/* Download page css code  */
.ptf-download-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    margin: 2em 0;
}
.ptf-download-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-align: center;
}
.ptf-download-desc {
    margin-bottom: 1.3em;
    text-align: center;
}
.ptf-circular-progress {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 1.2em;
}
.ptf-circular-progress svg {
    transform: rotate(-90deg);
}
.ptf-circular-bg {
    stroke: var(--e-global-color-b82d438);
    stroke-width: 8;
}
.ptf-circular-bar {
    stroke: var(--e-global-color-ff06b48);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.4s;
}
.ptf-circular-text {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    user-select: none;
    letter-spacing: -1px;
}

.ptf-popup-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 2em 2.5em;
    max-width: 94vw;
    width: 340px;
    text-align: center;
    font-size: 1.1rem;
}
.ptf-popup-inner h3 {
    margin-top: 0;
    color: #d35400;
    font-size: 1.3em;
}
@media (max-width: 480px) {
    .ptf-circular-progress { width:70px;height:70px; }
    .ptf-download-wrap { min-height: 260px; }
    .ptf-circular-text { font-size:1.1rem; }
    .ptf-popup-inner { padding: 1.3em 0.4em; width:98vw; }
}
