/* Home page video: pill button, floating card, popup */
.hero {
    position: relative;
}

.nvc-btn,
.nvc-card,
.nvc-modal {
    --nvc-neon: var(--clr-neon-green, #ccff33);
    --nvc-dark: var(--clr-dark-turquoise, #014751);
}

/* ---------- Pill button ---------- */
.nvc-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 8px 28px 8px 8px;
    color: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.nvc-btn:hover,
.nvc-btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--nvc-neon);
    background: rgba(0, 0, 0, 0.35);
}

.nvc-btn__icon,
.nvc-card__play {
    position: relative;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--nvc-neon);
}

.nvc-btn__icon {
    width: 44px;
    height: 44px;
}

.nvc-btn__icon::after,
.nvc-card__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-color: transparent transparent transparent #111;
    border-width: 8px 0 8px 13px;
}

.nvc-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nvc-btn__label {
    color: var(--nvc-neon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nvc-btn__title {
    font-size: 17px;
    font-weight: 600;
}

/* ---------- Floating video card ---------- */
.nvc-card {
    position: fixed;
    right: 30px;
    bottom: 164px;
    z-index: 9999;
    width: 290px;
    overflow: hidden;
    pointer-events: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}

.nvc-card:not(.nvc-playing):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.nvc-card.nvc-card--closing {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.nvc-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--nvc-dark);
    cursor: pointer;
    overflow: hidden;
}

.nvc-card.nvc-playing .nvc-card__media {
    cursor: default;
}

.nvc-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
}

.nvc-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 10px;
    color: var(--nvc-neon);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: #0b2a2e;
    border-radius: 999px;
    transition: opacity .25s ease;
}

.nvc-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    animation: nvc-pulse 2.2s infinite;
    transition: opacity .25s ease;
}

.nvc-card__play::after {
    border-width: 11px 0 11px 18px;
}

/* Actions in top-right of media */
.nvc-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.nvc-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nvc-card__action svg {
    display: block;
}

.nvc-card__action:hover,
.nvc-card__action:focus-visible {
    background: var(--nvc-neon);
    color: #111;
    transform: scale(1.1);
    outline: none;
}

/* Small inline player inside floating card */
.nvc-card__player {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    width: 100%;
    height: 100%;
    background: #000;
}

.nvc-card.nvc-playing .nvc-card__player {
    display: block;
}

.nvc-card__player iframe,
.nvc-card__player video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hide thumbnail, badge, and big play button when video is playing in card */
.nvc-card.nvc-playing .nvc-card__media img,
.nvc-card.nvc-playing .nvc-card__badge,
.nvc-card.nvc-playing .nvc-card__play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nvc-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 14px;
    color: #111;
}

.nvc-card__title {
    font-size: 15px;
    line-height: 1.3;
}

.nvc-card__subtitle {
    font-size: 12px;
    color: #555;
}

@keyframes nvc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 51, .55);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(204, 255, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 51, 0);
    }
}

/* ---------- Modal ---------- */
.nvc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.nvc-modal.nvc-open {
    opacity: 1;
    visibility: visible;
}

.nvc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.nvc-modal__dialog {
    position: relative;
    width: min(1280px, 94vw, calc((100vh - 120px) * 16 / 9));
    transform: scale(.94);
    transition: transform .3s ease;
}

.nvc-modal.nvc-open .nvc-modal__dialog {
    transform: scale(1);
}

.nvc-modal__frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.nvc-modal__frame iframe,
.nvc-modal__frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.nvc-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.nvc-modal__close:hover,
.nvc-modal__close:focus-visible {
    color: #111;
    background: var(--nvc-neon);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nvc-card {
        width: 260px;
        right: 20px;
        bottom: 80px;
    }

    .nvc-btn__title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nvc-card {
        width: 240px;
        right: 16px;
        bottom: 70px;
    }

    .nvc-card__title {
        font-size: 13px;
    }

    .nvc-card__subtitle {
        font-size: 11px;
    }

    .nvc-btn {
        margin-top: 20px;
    }

    .nvc-modal__dialog {
        width: 95vw;
    }
}

@media (max-width: 480px) {
    .nvc-card {
        width: 210px;
        right: 12px;
        bottom: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nvc-card__play {
        animation: none;
    }

    .nvc-btn,
    .nvc-card,
    .nvc-modal,
    .nvc-modal__dialog {
        transition: none;
    }
}


@media (max-width: 767px) {
    .nvc-btn__title {
        font-size: 11px;
    }

    .nvc-btn {
        margin-top: 8px !important;
    }

    .nvc-card {
        display: none;
    }
}