.pvd-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px; /* Mobile first padding */
    background: linear-gradient(135deg, #fce4e4 0%, #ffebec 100%);
    border-radius: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .pvd-wrapper {
        padding: 50px 20px;
        margin: 30px 0;
    }
}

.pvd-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(230, 0, 35, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pvd-container:hover {
    transform: translateY(-5px);
}


.pvd-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

#pvd-url {
    width: 100%;
    padding: 18px 22px;
    font-size: 16px;
    color: #333;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#pvd-url::placeholder {
    color: #a0a0a0;
}

#pvd-url:focus {
    background: #fff;
    border-color: #e60023;
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.1);
}

#pvd-btn {
    background: #e60023;
    color: white;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(230, 0, 35, 0.3);
}

#pvd-btn:hover {
    background: #cc001f;
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
    transform: translateY(-2px);
}

#pvd-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(230, 0, 35, 0.3);
}

#pvd-btn:disabled {
    background: #f08080;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner Animation */
.pvd-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pvd-spin 1s ease-in-out infinite;
}

@keyframes pvd-spin {
    to { transform: rotate(360deg); }
}

/* Result Area */
#pvd-result {
    margin-top: 25px;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pvd-alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: pvd-fade-in 0.4s ease forwards;
}

@keyframes pvd-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pvd-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.pvd-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.pvd-video-preview {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.pvd-video-preview video {
    width: 100%;
    display: block;
    max-height: 60vh;
    object-fit: contain;
}

.pvd-download-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.pvd-download-link:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.pvd-download-link:active {
    transform: scale(0.98);
}

/* CLS / Performance Skeleton */
@keyframes pvd-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.pvd-skeleton {
    max-height: 60vh;
}

/* Reviews Styling for [pvd_reviews] */
.pvd-reviews-wrapper {
    display: grid;
    gap: 20px;
    margin: 30px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pvd-review-box {
    background: #fff;
    border: 1px solid rgba(230, 0, 35, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pvd-review-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.08);
}

.pvd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pvd-review-author {
    font-size: 16px;
    color: #222;
}

.pvd-review-date {
    font-size: 13px;
    color: #888;
}

.pvd-review-rating {
    margin-bottom: 12px;
}

.pvd-star {
    color: #e0e0e0;
    font-size: 18px;
}

.pvd-star.filled {
    color: #ffb400;
}

.pvd-review-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.pvd-admin-reply {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fdf2f3;
    border-left: 4px solid #e60023;
    border-radius: 6px;
    font-size: 14px;
}

.pvd-admin-reply strong {
    color: #e60023;
    display: block;
    margin-bottom: 6px;
}

.pvd-admin-reply-content {
    color: #333;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .pvd-reviews-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
