/**
 * استایل‌های پلیر ویدیو در front-end - نسخه نهایی با لوگو و عدم دانلود
 */

.vmp-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.vmp-video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

.vmp-video-player {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    object-fit: contain;
    /* جلوگیری از دانلود ویدیو با کلیک راست */
    pointer-events: auto;
}

/* جلوگیری از دانلود ویدیو - حذف دکمه دانلود از کنترل‌ها */
.vmp-video-player::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.vmp-video-player::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

/* مخفی کردن دکمه دانلود در مرورگرهای مختلف */
.vmp-video-player::-webkit-media-controls-download-button {
    display: none !important;
}

.vmp-video-player::-webkit-media-controls-fullscreen-button {
    display: flex !important;
}

/* مخفی کردن دکمه دانلود در Firefox */
.vmp-video-player::-moz-media-download-button {
    display: none !important;
}

/* جلوگیری از کلیک راست و ذخیره ویدیو */
.vmp-video-player {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* حذف نوار سفید اطلاعات ویدیو */
.vmp-video-info {
    display: none !important;
}

/* مخفی کردن کنترل‌های سفارشی پلیر - استفاده از کنترل‌های پیش‌فرض مرورگر */
.vmp-video-controls {
    display: none !important;
}

/* نمایش کنترل‌های پیش‌فرض مرورگر */
.vmp-video-player::-webkit-media-controls {
    display: flex !important;
}

/* ============================================ */
/* اضافه کردن ۴ لوگو در ۴ گوشه ویدیو */
/* ============================================ */

/* لوگو 1 - گوشه بالا راست */
.vmp-video-wrapper::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    background-image: url('https://liaman.com/wp-content/uploads/logoliaman28.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    pointer-events: none;
    opacity: 0.85;
}

/* لوگو 2 - گوشه بالا چپ */
.vmp-video-wrapper::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 70px;
    height: 70px;
    background-image: url('https://liaman.com/wp-content/uploads/logoliaman27.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    pointer-events: none;
    opacity: 0.85;
}

/* لوگو 3 - گوشه پایین راست (با استفاده از عنصر جدید) */
.vmp-video-wrapper .vmp-logo-bottom-right {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    background-image: url('https://liaman.com/wp-content/uploads/logoliaman27.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    pointer-events: none;
    opacity: 0.85;
}

/* لوگو 4 - گوشه پایین چپ (با استفاده از عنصر جدید) */
.vmp-video-wrapper .vmp-logo-bottom-left {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 70px;
    height: 70px;
    background-image: url('https://liaman.com/wp-content/uploads/logoliaman28.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    pointer-events: none;
    opacity: 0.85;
}

/* ============================================ */
/* حالت تمام صفحه برای لوگوها */
/* ============================================ */

.vmp-video-container:fullscreen .vmp-video-wrapper::before {
    width: 90px;
    height: 90px;
    top: 25px;
    right: 25px;
}

.vmp-video-container:fullscreen .vmp-video-wrapper::after {
    width: 90px;
    height: 90px;
    top: 25px;
    left: 25px;
}

.vmp-video-container:fullscreen .vmp-video-wrapper .vmp-logo-bottom-right {
    width: 90px;
    height: 90px;
    bottom: 25px;
    right: 25px;
}

.vmp-video-container:fullscreen .vmp-video-wrapper .vmp-logo-bottom-left {
    width: 90px;
    height: 90px;
    bottom: 25px;
    left: 25px;
}

/* ============================================ */
/* ریسپانسیو برای موبایل */
/* ============================================ */

@media (max-width: 768px) {
    .vmp-video-wrapper::before {
        width: 45px;
        height: 45px;
        top: 8px;
        right: 8px;
    }
    
    .vmp-video-wrapper::after {
        width: 45px;
        height: 45px;
        top: 8px;
        left: 8px;
    }
    
    .vmp-video-wrapper .vmp-logo-bottom-right {
        width: 45px;
        height: 45px;
        bottom: 8px;
        right: 8px;
    }
    
    .vmp-video-wrapper .vmp-logo-bottom-left {
        width: 45px;
        height: 45px;
        bottom: 8px;
        left: 8px;
    }
}

/* ============================================ */
/* رفع مشکل پلیر در المنتور و وودمارت */
/* ============================================ */

.elementor-widget-container .vmp-video-container,
.wd-accordion-content .vmp-video-container,
.wd-single-tabs .vmp-video-container {
    width: 100%;
    max-width: 100%;
}

/* لود تنبل */
.vmp-video-player[data-src] {
    background: #111;
}