/* استایل پاپ‌آپ ویدئو */
.pvp-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.pvp-popup.active {
    display: flex;
}

.pvp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
    cursor: pointer;
}

.pvp-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    z-index: 2;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: pvp-popup-show 0.3s ease;
}

@keyframes pvp-popup-show {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pvp-popup-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.pvp-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pvp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pvp-popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.pvp-popup-close img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.pvp-popup-body {
    width: 100%;
    height: 100%;
}

.pvp-video-player {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    background: #000;
}

/* استایل تامنیل ویدئو */
.pvp-video-container {
    display: inline-block;
    max-width: 100%;
}

.pvp-video-thumbnail {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pvp-video-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pvp-video-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.pvp-video-thumbnail:hover img {
    transform: scale(1.1);
}

.pvp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pvp-video-thumbnail:hover .pvp-play-button {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.pvp-play-button img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* حالت ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .pvp-popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .pvp-popup-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .pvp-play-button {
        width: 60px;
        height: 60px;
    }
    
    .pvp-play-button img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .pvp-play-button {
        width: 50px;
        height: 50px;
    }
    
    .pvp-play-button img {
        width: 30px;
        height: 30px;
    }
}

/* دسترسی‌پذیری */
.pvp-video-thumbnail:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* پشتیبانی از RTL */
.rtl .pvp-popup-header {
    right: auto;
    left: 15px;
}

.rtl .pvp-popup-close {
    margin-right: 0;
    margin-left: auto;
}