.fvc-floating-video {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    height: min(var(--fvc-video-height, 160px), 42vh);
    width: auto;
    max-width: calc(100vw - 24px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    transform-origin: left bottom;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    line-height: 0;
}

.fvc-floating-video:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.fvc-video-trigger {
    display: inline-block;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.fvc-video-element {
    display: block;
    width: auto;
    height: 100%;
    background: #000;
}

.fvc-video-modal[hidden] {
    display: none !important;
}

.fvc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.fvc-video-modal-panel {
    position: relative;
    width: auto;
    max-width: 92vw;
    max-height: 92vh;
    padding: 16px;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fvc-modal-close {
    position: absolute;
    right: 10px;
    top: 6px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.fvc-modal-video {
    display: block;
    width: auto;
    max-width: calc(92vw - 32px);
    height: min(82vh, 980px);
    background: transparent;
    border-radius: 10px;
}

.fvc-modal-actions {
    margin-top: 12px;
    width: 100%;
}

.fvc-modal-actions--left {
    text-align: left;
}

.fvc-modal-actions--center {
    text-align: center;
}

.fvc-modal-actions--right {
    text-align: right;
}

.fvc-modal-cta,
.fvc-modal-cta:focus,
.fvc-modal-cta:hover {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--fvc-button-color, #0a7d31);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.2s ease;
}

.fvc-modal-cta:hover,
.fvc-modal-cta:focus {
    filter: brightness(1.08);
}

body.fvc-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .fvc-floating-video {
        left: 12px;
        bottom: 12px;
        height: min(var(--fvc-video-height, 160px), 34vh);
    }

    .fvc-video-modal {
        padding: 12px;
    }

    .fvc-video-modal-panel {
        max-width: 100%;
        padding: 12px;
    }

    .fvc-modal-video {
        max-width: calc(100vw - 24px);
        height: min(74vh, 780px);
    }
}
