.ysv-single-video {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

.ysv-single-video .ysv-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);
    background: #000;
}

.ysv-single-video .ysv-video-frame::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.ysv-single-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ysv-floating-close {
    display: none;
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: #111827;
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.ysv-single-video.ysv-is-sticky {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: var(--ysv-sticky-width, 380px);
    max-width: calc(100vw - 40px);
    margin: 0;
    z-index: 99999;
    animation: ysvSlideIn 0.25s ease-out;
}

.ysv-single-video.ysv-is-sticky .ysv-video-frame {
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
}

.ysv-single-video.ysv-is-sticky .ysv-floating-close {
    display: block;
}

.ysv-single-video.ysv-closed {
    display: none !important;
}

.ysv-admin-notice {
    padding: 12px 14px;
    border-left: 4px solid #d63638;
    background: #fff5f5;
    color: #7f1d1d;
}

@keyframes ysvSlideIn {
    from {
        opacity: 0;
        transform: translate(20px, 20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@media (max-width: 767px) {
    .ysv-single-video {
        margin: 16px auto;
    }

    .ysv-single-video .ysv-video-frame {
        border-radius: 12px;
    }

    .ysv-single-video.ysv-is-sticky {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .ysv-floating-close {
        top: -10px;
        right: -8px;
    }
}
