/* --- Card & Thumbnail --- */
.mvcp-card-adv{
    position:relative;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 6px 20px rgba(0,0,0,.1);
}
.mvcp-thumb-adv{
    width:100%;
    height:300px;
    object-fit:cover;
    transition: transform 0.3s ease;
}
.mvcp-card-adv:hover .mvcp-thumb-adv {
    transform: scale(1.05);
}

/* --- Card Title Overlay (Dynamic Display) --- */
.mvcp-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Default Gradient Style */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    padding: 15px 10px 10px 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    z-index: 5; 
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
	text-align:center;
	text-transform:capitalize;
    text-overflow: ellipsis;
}


/* --- Swiper Navigation Arrows (PRO STYLE) --- */
.mvcp-adv-wrapper .swiper-button-next,
.mvcp-adv-wrapper .swiper-button-prev {
    /* Base style, overwritten by Elementor controls where applicable */
    width: 44px; 
    height: 44px; 
    background-color: rgba(0,0,0,0.5); /* Default BG */
    color: #fff; /* Default icon color (used for SVG fill) */
    border-radius: 50%;
    
    /* Center the icon */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Positioning and removing default Swiper margin */
    top: 50%; 
    margin-top: 0;
    transform: translateY(-50%);

    /* Smooth transition for hover effects defined in Elementor */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.mvcp-adv-wrapper .swiper-button-next:after,
.mvcp-adv-wrapper .swiper-button-prev:after {
    /* Remove default Swiper content */
    content: '';
    display: none;
}

/* Style for Custom Image or Default SVG */
.mvcp-adv-wrapper .mvcp-custom-arrow-img,
.mvcp-adv-wrapper .swiper-button-next svg,
.mvcp-adv-wrapper .swiper-button-prev svg {
    /* Set size to 1em which inherits the font-size/size from the Elementor control */
    width: 1em; 
    height: 1em;
    object-fit: contain;
    /* Optional: Invert color for custom images if background is dark */
    filter: brightness(0) invert(1); 
    transition: filter 0.3s;
}
/* Ensure the SVG uses the color set by the Elementor control */
.mvcp-adv-wrapper .swiper-button-next svg,
.mvcp-adv-wrapper .swiper-button-prev svg {
    fill: currentColor;
    filter: none; /* Remove filter for default SVG as it uses currentColor */
}


/* Disabled state */
.mvcp-adv-wrapper .swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* --- Play Button (Custom or Default) --- */
.mvcp-play-adv{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:65px;
    height:65px;
    border-radius:10%;
    background:rgba(55, 55, 55, 0.50);
    border:none;
    color:#fff;
    font-size:26px;
    cursor:pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
    z-index: 10;
}
.mvcp-play-adv:hover{
    background:rgba(0,0,0,.8);
}

/* Default Play Icon (used when no custom icon is uploaded) */
.mvcp-play-adv:empty:before{
    content:'▶';
    font-size: 26px;
    line-height: 1; 
    color: #fff;
    padding-left: 5px; 
}

/* Custom Play Icon Image/SVG */
.mvcp-play-icon-custom {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
}

/* --- Modal/Lightbox --- */
.mvcp-modal-adv{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none; 
    background:rgba(0,0,0,.85); 
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding: 20px;
    box-sizing: border-box;
}
.mvcp-modal-adv[aria-hidden="false"]{
    display:flex;
}
.mvcp-modal-inner{
    background:#000;
    width:100%;
    max-width:1000px; 
    border-radius:10px;
    position:relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
/* Close button positioned outside the video container */
.mvcp-close-adv{
    position:absolute;
    top: -30px; 
    right: 0px; 
    color:#fff;
    width: 30px;
    height: 30px;
    font-size:20px;
    border:none;
    background:transparent;
    cursor:pointer;
    z-index: 100000;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mvcp-close-adv:hover {
    transform: rotate(90deg);
}

.mvcp-modal-body{
    position:relative;
    padding-top:56.25%; /* 16:9 Aspect Ratio */
    height:0;
}
.mvcp-modal-body iframe,
.mvcp-modal-body video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}
.mvcp-modal-body video {
    background-color: #000;
}

/* --- Video Quality Selector (Self-Hosted) --- */
.mvcp-quality-selector-wrapper {
    position: absolute;
    bottom: -35px; /* Position below the video player */
    left: 0;
    z-index: 10;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 14px;
}
.mvcp-quality-select {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}
.mvcp-quality-select option {
    /* Ensure options are readable on system default background for the dropdown menu */
    color: #000; 
}