/* Frontend Styles */
.product-video-widget {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.product-video-widget video {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 4px;
    background-color: #000;
}

.product-video-widget figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #333 !important;
    text-align: justify !important;
    direction: rtl !important;
    line-height: 1.6;
}

.product-video-widget h1,
.product-video-widget h2,
.product-video-widget h3,
.product-video-widget h4,
.product-video-widget h5,
.product-video-widget h6 {
    font-size: 1.2em !important;
    margin-bottom: 15px;
}

.maashar-video-cta-wrapper {
    text-align: center;
    margin-top: 15px;
}

a.maashar-video-cta {
    display: inline-block;
    padding: 10px 25px;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    border: 1px solid transparent;
}

a.maashar-video-cta:hover {
    opacity: 0.85;
}


/* Backend (Admin Panel) Styles */
.maashar-videos-list .maashar-video-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 4px;
}

.maashar-videos-list .maashar-video-item hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.maashar-videos-list .maashar-video-item h4 {
    margin: 10px 0;
}

.maashar-videos-list .maashar-video-item .form-field { margin-bottom: 10px; padding: 0; }
.maashar-videos-list .maashar-video-item .form-field label { display: block; margin-bottom: 5px; font-weight: bold; }
.maashar-videos-list .maashar-video-item .form-field input[type="text"],
.maashar-videos-list .maashar-video-item .form-field input[type="url"],
.maashar-videos-list .maashar-video-item .form-field textarea,
.maashar-videos-list .maashar-video-item .form-field select { width: 100%; max-width: 500px; }
.maashar-videos-list .maashar-video-item .video-preview,
.maashar-videos-list .maashar-video-item .poster-preview { display: inline-block; vertical-align: middle; margin-right: 10px; }
.maashar-videos-list .maashar-video-item .poster-preview img { border: 1px solid #ddd; border-radius: 2px; }
.maashar-videos-list .maashar-video-item .remove-video { background: #d63638; color: #fff; border-color: #b02a2c; margin-top: 20px; }
.maashar-videos-list .maashar-video-item .remove-video:hover { background: #a02426; border-color: #8b1d1f; }

.maashar-videos-list .wp-picker-container { margin-top: 5px; }