@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/* New Social Facebook Reels Viewer — WordPress-scoped styles */
    .nsfrv {
        --nsfrv-ink: #ffffff;
        --nsfrv-muted: #c5daf8;
        --nsfrv-dim: #8fb4e8;
        --nsfrv-bg: #0b1f3d;
        --nsfrv-panel: #123056;
        --nsfrv-panel-soft: #1a3f70;
        --nsfrv-hover: #24528c;
        --nsfrv-line: rgba(24, 119, 242, 0.45);
        --nsfrv-accent: #1877f2;
        --nsfrv-accent-deep: #0d65d9;
        --nsfrv-cool: #4dabf7;
        --nsfrv-success: #42b72a;
        --nsfrv-danger: #f02849;
        --nsfrv-radius: 10px;
        --nsfrv-shadow: 0 8px 24px rgba(8, 40, 90, 0.45);
        --nsfrv-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        --nsfrv-space: 16px;
        --nsfrv-avatar: 88px;
        --nsfrv-pad: 16px;
        --nsfrv-gap: 12px;
        --nsfrv-cols: 2;
        --nsfrv-grid-min: max(150px, 46%);

        box-sizing: border-box;
        font-family: var(--nsfrv-font);
        color: var(--nsfrv-ink);
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-width: 0;
        margin: 0 auto;
        padding: clamp(8px, 2vw, 16px);
        background:
            radial-gradient(ellipse 90% 55% at 10% 0%, rgba(24, 119, 242, 0.55), transparent 55%),
            radial-gradient(ellipse 70% 45% at 100% 10%, rgba(13, 101, 217, 0.35), transparent 50%),
            linear-gradient(155deg, #07152b 0%, #0d274f 40%, #143a6e 75%, #1877f2 160%);
        border-radius: 0;
        border: 1px solid var(--nsfrv-line);
        position: relative;
        isolation: isolate;
        text-align: left;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .nsfrv *,
    .nsfrv *::before,
    .nsfrv *::after {
        box-sizing: border-box;
    }

    .nsfrv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
        margin: 0;
        padding: 0;
        border: 0;
        font-weight: inherit;
    }

    .nsfrv :where(ul, ol) {
        list-style: none;
    }

    .nsfrv img,
    .nsfrv video {
        max-width: 100%;
        height: auto;
        display: block;
        border: 0;
    }

    .nsfrv a {
        color: var(--nsfrv-cool);
        text-decoration: none;
    }

    .nsfrv button {
        font-family: inherit;
    }

    .nsfrv-shell {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: var(--nsfrv-space);
    }

    .nsfrv-hero {
        background: transparent;
        padding: 36px 0 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: center;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .nsfrv-search {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: left;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin-top: 4px;
        padding: clamp(14px, 2.5vw, 20px);
        background: var(--nsfrv-panel);
        border: 1px solid var(--nsfrv-line);
        border-radius: var(--nsfrv-radius);
        box-shadow: var(--nsfrv-shadow);
    }

    .nsfrv-hero__title {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 10px;
        color: var(--nsfrv-ink);
    }

    .nsfrv-hero__brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        max-width: 100%;
        min-width: 0;
    }

    .nsfrv .nsfrv-hero__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: #1877f2;
        color: #fff;
        font-size: 1.45rem;
        line-height: 1;
        box-shadow: 0 1px 2px rgba(24, 119, 242, 0.28);
    }

    .nsfrv .nsfrv-hero__icon i {
        display: block;
        line-height: 1;
    }

    .nsfrv-hero__title-text {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0.35em;
        min-width: 0;
        font-size: clamp(1.28rem, 2.8vw, 1.7rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.2;
        text-align: left;
    }

    .nsfrv-hero__title-mark {
        color: var(--nsfrv-cool);
        font-weight: 800;
    }

    .nsfrv-hero__lead {
        color: var(--nsfrv-muted);
        font-size: 0.95rem;
        max-width: 52ch;
        margin: 0 auto 16px;
    }

    .nsfrv-search__label {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--nsfrv-dim);
        margin-bottom: 8px;
        text-align: left;
    }

    .nsfrv-search__row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .nsfrv .nsfrv-search__field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 12px 14px !important;
        border-radius: 10px !important;
        border: 1px solid var(--nsfrv-line) !important;
        background: var(--nsfrv-panel-soft) !important;
        color: var(--nsfrv-ink) !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        outline: none !important;
        box-shadow: none !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .nsfrv .nsfrv-search__field::placeholder {
        color: var(--nsfrv-dim) !important;
        opacity: 1 !important;
    }

    .nsfrv .nsfrv-search__field:focus {
        border-color: var(--nsfrv-accent) !important;
        box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.25) !important;
    }

    .nsfrv-search__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .nsfrv .nsfrv-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px !important;
        min-width: 44px;
        padding: 12px 16px !important;
        border: 0 !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        cursor: pointer;
        appearance: none !important;
        -webkit-appearance: none !important;
        touch-action: manipulation;
        flex: 1 1 auto;
        color: #fff !important;
    }

    .nsfrv .nsfrv-btn i {
        display: inline-block;
        line-height: 1;
    }

    .nsfrv .nsfrv-btn--paste {
        background: var(--nsfrv-panel-soft) !important;
        border: 1px solid var(--nsfrv-line) !important;
        color: var(--nsfrv-muted) !important;
    }

    .nsfrv .nsfrv-btn--view {
        background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-success)) !important;
    }

    .nsfrv .nsfrv-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .nsfrv-search__hint {
        margin-top: 10px;
        font-size: 0.82rem;
        color: var(--nsfrv-dim);
    }

    /* Cloudflare Turnstile — sit above the input row, never inside it */
    .nsfrv #xrespond-tools-turnstile-host {
        display: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        flex: none;
        order: unset;
        box-sizing: border-box;
    }

    .nsfrv #xrespond-tools-turnstile-host.is-visible {
        display: block;
    }

    .nsfrv #xrespond-tools-turnstile-host .xrespond-ts-label {
        display: block;
        font-size: 0.85rem;
        color: var(--nsfrv-muted);
        margin-bottom: 0.45rem;
    }

    .nsfrv #xrespond-tools-turnstile-host .xrespond-ts-widget {
        min-height: 65px;
        max-width: 100%;
        overflow: hidden;
    }

    .nsfrv #xrespond-tools-turnstile-host .xrespond-ts-error {
        color: #ff8e8e;
    }

    .nsfrv-search__row:has(#xrespond-tools-turnstile-host),
    .nsfrv-search__actions:has(#xrespond-tools-turnstile-host) {
        flex-wrap: wrap !important;
    }

    .nsfrv-search__row>#xrespond-tools-turnstile-host,
    .nsfrv-search__actions>#xrespond-tools-turnstile-host {
        flex: 0 0 100% !important;
        width: 100% !important;
        order: -1;
    }

    .nsfrv-alert {
        display: none;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(240, 40, 73, 0.18);
        border: 1px solid rgba(240, 40, 73, 0.45);
        color: #ffd0d8;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .nsfrv-alert.is-visible {
        display: block;
    }

    .nsfrv-notice {
        display: none;
        align-items: flex-start;
        gap: 8px;
        margin: 0 0 12px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(24, 119, 242, 0.16);
        border: 1px solid rgba(24, 119, 242, 0.35);
        color: var(--nsfrv-muted);
        font-size: 0.86rem;
        font-weight: 600;
    }

    .nsfrv-notice.is-visible {
        display: flex;
    }

    .nsfrv-notice i {
        color: var(--nsfrv-cool);
        margin-top: 2px;
    }

    /* Skeleton */
    .nsfrv .nsfrv-skeleton {
        display: none;
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nsfrv .nsfrv-skeleton.is-visible {
        display: block;
    }

    .nsfrv .nsfrv-content.is-hidden {
        display: none !important;
    }

    .nsfrv .nsfrv-content.is-placeholder .nsfrv-profile__zoom {
        opacity: 0.55;
        pointer-events: none;
    }

    .nsfrv .nsfrv-content.is-placeholder .nsfrv-card__media,
    .nsfrv .nsfrv-content.is-placeholder .nsfrv-card__action {
        pointer-events: none;
    }

    .nsfrv .nsfrv-content.is-placeholder .nsfrv-card__action {
        opacity: 0.72;
    }

    .nsfrv-card__media--ghost {
        background: linear-gradient(145deg, #123056, #1a4f8c 55%, #0d65d9);
    }

    .nsfrv-card__media--ghost-b {
        background: linear-gradient(145deg, #0f2a4d, #1877f2 60%, #42b72a);
    }

    .nsfrv-card__media--ghost-c {
        background: linear-gradient(145deg, #142848, #24528c 50%, #4dabf7);
    }

    .nsfrv-card__media--ghost .nsfrv-card__img {
        display: none;
    }

    @keyframes nsfrv-shimmer {
        0% {
            background-position: -400px 0;
        }

        100% {
            background-position: 400px 0;
        }
    }

    .nsfrv .nsfrv-sk {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 100%);
        background-size: 800px 100%;
        animation: nsfrv-shimmer 1.3s linear infinite;
        border-radius: 8px;
    }

    .nsfrv-skeleton__panel {
        background: var(--nsfrv-panel);
        border: 1px solid var(--nsfrv-line);
        border-radius: var(--nsfrv-radius);
        padding: var(--nsfrv-pad);
        box-shadow: var(--nsfrv-shadow);
    }

    .nsfrv-skeleton__profile {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
    }

    .nsfrv .nsfrv-skeleton__avatar {
        width: var(--nsfrv-avatar);
        height: var(--nsfrv-avatar);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .nsfrv-skeleton__meta {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nsfrv-skeleton__line {
        height: 14px;
        width: 100%;
    }

    .nsfrv-skeleton__line--lg {
        width: 55%;
        height: 18px;
    }

    .nsfrv-skeleton__line--md {
        width: 35%;
    }

    .nsfrv-skeleton__grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
        gap: var(--nsfrv-gap);
    }

    .nsfrv-skeleton__card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nsfrv-skeleton__thumb {
        width: 100%;
        aspect-ratio: 9 / 16;
        border-radius: 10px;
    }

    .nsfrv-skeleton__foot {
        height: 14px;
        width: 70%;
    }

    .nsfrv-result {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nsfrv-panel {
        background: var(--nsfrv-panel);
        border: 1px solid var(--nsfrv-line);
        border-radius: var(--nsfrv-radius);
        box-shadow: var(--nsfrv-shadow);
        padding: var(--nsfrv-pad);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nsfrv-profile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 16px;
    }

    .nsfrv-profile__avatar-wrap {
        position: relative;
        width: var(--nsfrv-avatar);
        height: var(--nsfrv-avatar);
        flex-shrink: 0;
    }

    .nsfrv-profile__ring {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        padding: 3px;
        background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-success));
    }

    .nsfrv-profile__img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: var(--nsfrv-panel-soft);
    }

    .nsfrv .nsfrv-profile__zoom {
        position: absolute;
        right: -2px;
        bottom: -2px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border: 0 !important;
        border-radius: 50%;
        background: var(--nsfrv-accent) !important;
        color: #fff !important;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        appearance: none;
        -webkit-appearance: none;
        touch-action: manipulation;
    }

    .nsfrv-profile__meta {
        min-width: 0;
        flex: 1;
        width: 100%;
    }

    .nsfrv-profile__name {
        font-size: clamp(1.15rem, 3.5vw, 1.45rem);
        font-weight: 800;
        line-height: 1.25;
        word-break: break-word;
    }

    .nsfrv-profile__handle {
        color: var(--nsfrv-muted);
        font-size: 0.92rem;
        font-weight: 600;
        margin-top: 4px;
        word-break: break-all;
    }

    .nsfrv-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .nsfrv-stats__badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(24, 119, 242, 0.18);
        border: 1px solid rgba(24, 119, 242, 0.35);
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--nsfrv-muted);
    }

    .nsfrv-stats__badge i {
        color: var(--nsfrv-cool);
    }

    .nsfrv-pane__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .nsfrv-pane__title {
        font-size: 1rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .nsfrv-pane__title i {
        color: var(--nsfrv-cool);
        flex-shrink: 0;
    }

    .nsfrv-pane__count {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--nsfrv-dim);
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nsfrv-grid {
        display: grid;
        align-items: start;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
        gap: var(--nsfrv-gap);
        width: 100%;
        min-width: 0;
    }

    .nsfrv-card {
        background: var(--nsfrv-panel-soft);
        border: 1px solid var(--nsfrv-line);
        border-radius: 12px;
        overflow: hidden;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .nsfrv-card__media {
        position: relative;
        aspect-ratio: 9 / 16;
        background: #0a1628;
        cursor: pointer;
        overflow: hidden;
        flex: 0 0 auto;
    }

    .nsfrv .nsfrv-card__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    .nsfrv-card__play {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(7, 21, 43, 0.28);
        pointer-events: none;
    }

    .nsfrv-card__play span {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(24, 119, 242, 0.92);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    .nsfrv-card__badge {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        border-radius: 6px;
        background: rgba(8, 20, 40, 0.78);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .nsfrv-card__duration {
        position: absolute;
        right: 8px;
        bottom: 8px;
        padding: 3px 7px;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.72);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .nsfrv-card__foot {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px;
        min-width: 0;
        margin-top: auto;
    }

    .nsfrv-card__title {
        flex: 0 1 auto;
        min-width: 0;
        width: 100%;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--nsfrv-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .nsfrv-card__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .nsfrv .nsfrv-card__action {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        min-height: 36px;
        min-width: 0;
        padding: 6px 8px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: rgba(24, 119, 242, 0.28) !important;
        color: #9ec9ff !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        cursor: pointer;
        appearance: none !important;
        -webkit-appearance: none !important;
        touch-action: manipulation;
        white-space: nowrap;
        overflow: hidden;
    }

    .nsfrv .nsfrv-card__action i {
        flex-shrink: 0;
    }

    .nsfrv .nsfrv-card__action-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Multi-column grids: icon-only actions so labels never collide */
    .nsfrv.nsfrv--cols-3 .nsfrv-card__action,
    .nsfrv.nsfrv--cols-4 .nsfrv-card__action,
    .nsfrv.nsfrv--cols-5 .nsfrv-card__action {
        padding: 6px !important;
        gap: 0;
    }

    .nsfrv.nsfrv--cols-3 .nsfrv-card__action-label,
    .nsfrv.nsfrv--cols-4 .nsfrv-card__action-label,
    .nsfrv.nsfrv--cols-5 .nsfrv-card__action-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nsfrv .nsfrv-card__action--cool {
        background: linear-gradient(135deg, rgba(24, 119, 242, 0.9), rgba(66, 183, 42, 0.85)) !important;
        color: #fff !important;
    }

    .nsfrv-empty {
        text-align: center;
        padding: 28px 14px;
        color: var(--nsfrv-muted);
    }

    .nsfrv-empty i {
        display: block;
        font-size: 2rem;
        margin: 0 auto 12px;
        color: #fff;
        opacity: 0.85;
    }

    .nsfrv-empty p {
        margin: 0 auto;
        max-width: 36ch;
        font-size: 0.95rem;
    }

    .nsfrv-tab-sk {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
        gap: var(--nsfrv-gap);
    }

    .nsfrv-tab-sk__video {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nsfrv-tab-sk__thumb {
        width: 100%;
        aspect-ratio: 9 / 16;
        border-radius: 10px;
    }

    .nsfrv-tab-sk__foot {
        height: 14px;
        width: 65%;
    }

    /* Modal */
    .nsfrv-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.72);
        padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
        align-items: center;
        justify-content: center;
    }

    .nsfrv-modal.is-open {
        display: flex;
    }

    .nsfrv-modal__dialog {
        position: relative;
        width: min(420px, 100%);
        max-width: 100%;
        max-height: min(92dvh, 92vh, 900px);
        background: var(--nsfrv-panel);
        border: 1px solid var(--nsfrv-line);
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
    }

    .nsfrv .nsfrv-modal__close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border: 0 !important;
        border-radius: 50%;
        background: #1877f2 !important;
        color: #fff !important;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        appearance: none;
        -webkit-appearance: none;
        touch-action: manipulation;
    }

    .nsfrv-modal__stage {
        position: relative;
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        background: #0b1220;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: min(42dvh, 280px);
        max-height: min(72dvh, 72vh, 760px);
    }

    .nsfrv .nsfrv-modal__media {
        width: 100%;
        max-width: 100%;
        max-height: min(72dvh, 72vh, 760px);
        height: auto;
        object-fit: contain;
        background: #000;
        display: block;
    }

    .nsfrv .nsfrv-modal__media.is-hidden {
        display: none !important;
    }

    .nsfrv-modal__loading {
        position: absolute;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: rgba(8, 12, 24, 0.72);
        color: #fff;
        font-weight: 700;
        z-index: 1;
    }

    .nsfrv-modal__loading.is-visible {
        display: flex;
    }

    .nsfrv-modal__loading i {
        animation: nsfrv-spin 0.9s linear infinite;
    }

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

    .nsfrv-modal__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        flex: 0 0 auto;
    }

    .nsfrv-modal__meta {
        flex: 1 1 140px;
        margin: 0;
        color: var(--nsfrv-muted);
        font-size: 0.88rem;
        font-weight: 600;
        min-width: 0;
        word-break: break-word;
    }

    .nsfrv-modal__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .nsfrv .nsfrv-modal__action {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        flex: 1 1 auto;
        padding: 10px 14px !important;
        border-radius: 999px !important;
        border: 0 !important;
        font: inherit;
        font-weight: 700 !important;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        touch-action: manipulation;
        color: #fff !important;
        background: linear-gradient(135deg, #1877f2, #42b72a) !important;
    }

    .nsfrv .nsfrv-modal__action:disabled,
    .nsfrv .nsfrv-modal__action.is-hidden {
        display: none !important;
    }

    .nsfrv-dlprog {
        position: fixed;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        left: auto;
        z-index: 100000;
        width: min(360px, calc(100vw - 24px));
        background: rgba(18, 24, 40, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        padding: 12px 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        color: #fff;
        display: none;
    }

    .nsfrv-dlprog.is-open {
        display: block;
    }

    .nsfrv-dlprog.is-success {
        border-color: rgba(66, 183, 42, 0.55);
    }

    .nsfrv-dlprog.is-error {
        border-color: rgba(255, 107, 122, 0.55);
    }

    .nsfrv-dlprog__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    .nsfrv-dlprog__title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .nsfrv-dlprog__title i {
        color: #42b72a;
    }

    .nsfrv-dlprog__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nsfrv-dlprog__pct {
        flex: 0 0 auto;
        font-weight: 800;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .nsfrv-dlprog__track {
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        overflow: hidden;
    }

    .nsfrv-dlprog__fill {
        height: 100%;
        width: 0%;
        border-radius: inherit;
        background: linear-gradient(90deg, #1877f2, #42b72a);
        transition: width 0.2s ease;
    }

    .nsfrv-dlprog.is-indeterminate .nsfrv-dlprog__fill {
        width: 40% !important;
        animation: nsfrv-dlprog-slide 1.1s ease-in-out infinite;
    }

    @keyframes nsfrv-dlprog-slide {
        0% {
            transform: translateX(-120%);
        }

        100% {
            transform: translateX(280%);
        }
    }

    .nsfrv-dlprog__meta {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-top: 8px;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.72);
    }

    /* Responsive — same pattern as facebook/video + page compact overrides */
    @media (max-width: 479.98px) {
        .nsfrv {
            --nsfrv-grid-min: 100%;
            --nsfrv-avatar: 72px;
            --nsfrv-pad: 12px;
            --nsfrv-gap: 10px;
            padding: 8px;
        }

        .nsfrv-hero__brand {
            flex-direction: column;
            gap: 8px;
        }

        .nsfrv-hero__title-text {
            justify-content: center;
            text-align: center;
            font-size: 1.15rem;
        }

        .nsfrv-card__actions {
            grid-template-columns: 1fr;
        }
    }

    @media (min-width: 480px) and (max-width: 767.98px) {
        .nsfrv {
            --nsfrv-grid-min: max(150px, 46%);
        }
    }

    @media (min-width: 768px) {
        .nsfrv:not(.nsfrv--compact) {
            --nsfrv-grid-min: 170px;
            --nsfrv-avatar: 96px;
            --nsfrv-pad: 18px;
            --nsfrv-gap: 14px;
        }

        .nsfrv:not(.nsfrv--compact) .nsfrv-search__row {
            flex-direction: row;
            align-items: stretch;
        }

        .nsfrv:not(.nsfrv--compact) .nsfrv-search__actions {
            width: auto;
            flex: 0 0 auto;
        }

        .nsfrv:not(.nsfrv--compact) .nsfrv-btn {
            flex: 0 0 auto;
        }

        .nsfrv:not(.nsfrv--compact) .nsfrv-profile {
            flex-direction: row;
            align-items: center;
        }
    }

    @media (min-width: 1024px) {
        .nsfrv:not(.nsfrv--compact) {
            --nsfrv-grid-min: 180px;
            --nsfrv-avatar: 104px;
        }
    }

    /* WordPress / Live Server narrow container (set by ResizeObserver) */
    .nsfrv.nsfrv--compact {
        --nsfrv-avatar: 72px;
        --nsfrv-pad: 12px;
        --nsfrv-gap: 10px;
        --nsfrv-grid-min: max(150px, 46%);
    }

    .nsfrv.nsfrv--compact .nsfrv-search__row {
        flex-direction: column !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-search__actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-btn {
        flex: 1 1 calc(50% - 4px) !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-profile {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-card__foot {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-card__actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-card__action {
        width: 100% !important;
    }

    .nsfrv.nsfrv--narrow {
        --nsfrv-grid-min: 100%;
        --nsfrv-avatar: 64px;
        padding: 8px;
    }

    .nsfrv.nsfrv--narrow .nsfrv-btn {
        flex: 1 1 100% !important;
    }

    .nsfrv.nsfrv--narrow .nsfrv-search__actions {
        flex-direction: column !important;
    }

    .nsfrv.nsfrv--narrow .nsfrv-card__actions {
        grid-template-columns: 1fr !important;
    }

    .nsfrv.nsfrv--narrow .nsfrv-hero__brand {
        flex-direction: column;
        gap: 8px;
    }

    .nsfrv.nsfrv--narrow .nsfrv-hero__title-text {
        font-size: 1.12rem;
        justify-content: center;
        text-align: center;
    }

    @media (hover: none) {

        .nsfrv .nsfrv-btn:hover,
        .nsfrv .nsfrv-card__action:hover {
            transform: none;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        .nsfrv .nsfrv-sk,
        .nsfrv .nsfrv-modal__loading i,
        .nsfrv-dlprog.is-indeterminate .nsfrv-dlprog__fill {
            animation: none !important;
        }
    }

    /* Search controls: one row on large screens, wrap on narrow */
    .nsfrv .nsfrv-search,
    .nsfrv .nsfrv-search .nsfrv-search__row,
    .nsfrv .nsfrv-search .nsfrv-search__actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__field,
    .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-search__field {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__actions,
    .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-search__actions {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-btn,
    .nsfrv .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
    .nsfrv .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 110px !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row {
        flex-wrap: wrap !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__field,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__field,
    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row>.nsfrv-search__field,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row>.nsfrv-search__field {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__actions,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__actions,
    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row>.nsfrv-search__actions,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row>.nsfrv-search__actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row>.nsfrv-btn,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row>.nsfrv-btn,
    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
    .nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn,
    .nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    @media (max-width: 720px) {
        .nsfrv .nsfrv-search .nsfrv-search__row {
            flex-wrap: wrap !important;
        }

        .nsfrv .nsfrv-search .nsfrv-search__field,
        .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-search__field {
            flex: 1 1 100% !important;
            width: 100% !important;
            max-width: 100% !important;
        }

        .nsfrv .nsfrv-search .nsfrv-search__actions,
        .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-search__actions {
            flex: 1 1 100% !important;
            width: 100% !important;
            max-width: 100% !important;
        }

        .nsfrv .nsfrv-search .nsfrv-search__row>.nsfrv-btn,
        .nsfrv .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
        .nsfrv .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
            flex: 1 1 calc(50% - 4px) !important;
            min-width: 0 !important;
            max-width: 100% !important;
        }
    }

/* --- Codex CSS updates --- */
/* New Social Facebook Reels Viewer — WordPress-scoped styles */
.nsfrv {
    --nsfrv-ink: #f8fbff;
    --nsfrv-muted: #c9d6ea;
    --nsfrv-dim: #8fa3c2;
    --nsfrv-bg: #08111f;
    --nsfrv-panel: rgba(15, 25, 43, 0.82);
    --nsfrv-panel-soft: rgba(25, 39, 64, 0.86);
    --nsfrv-hover: rgba(42, 64, 102, 0.9);
    --nsfrv-line: rgba(148, 163, 184, 0.24);
    --nsfrv-accent: #6366f1;
    --nsfrv-accent-deep: #4f46e5;
    --nsfrv-cool: #38bdf8;
    --nsfrv-warm: #f97316;
    --nsfrv-success: #22c55e;
    --nsfrv-danger: #ef4444;
    --nsfrv-radius: 18px;
    --nsfrv-shadow: 0 22px 70px rgba(2, 8, 23, 0.34);
    --nsfrv-soft-shadow: 0 12px 34px rgba(2, 8, 23, 0.24);
    --nsfrv-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nsfrv-space: 18px;
    --nsfrv-avatar: 88px;
    --nsfrv-pad: 18px;
    --nsfrv-gap: 14px;
    --nsfrv-cols: 2;
    --nsfrv-grid-min: max(150px, 46%);

    box-sizing: border-box;
    font-family: var(--nsfrv-font);
    color: var(--nsfrv-ink);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(10px, 2.2vw, 22px);
    background:
        radial-gradient(circle at 14% 4%, rgba(99, 102, 241, 0.36), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.22), transparent 30%),
        radial-gradient(circle at 55% 100%, rgba(34, 197, 94, 0.16), transparent 36%),
        linear-gradient(145deg, #07111f 0%, #0f172a 46%, #111827 100%);
    border-radius: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    isolation: isolate;
    text-align: left;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.nsfrv *,
.nsfrv *::before,
.nsfrv *::after {
    box-sizing: border-box;
}

.nsfrv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
}

.nsfrv :where(ul, ol) {
    list-style: none;
}

.nsfrv img,
.nsfrv video {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

.nsfrv a {
    color: var(--nsfrv-cool);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nsfrv a:hover {
    color: #7dd3fc;
}

.nsfrv button {
    font-family: inherit;
}

.nsfrv-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--nsfrv-space);
}

.nsfrv-hero {
    background: transparent;
    padding: clamp(20px, 4vw, 38px) 0 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.nsfrv-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 6px;
    padding: clamp(16px, 2.6vw, 24px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.76));
    border: 1px solid var(--nsfrv-line);
    border-radius: var(--nsfrv-radius);
    box-shadow: var(--nsfrv-shadow);
    backdrop-filter: blur(18px);
}

.nsfrv-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    color: var(--nsfrv-ink);
    text-transform: capitalize !important;
}

.nsfrv-hero__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
}

.nsfrv .nsfrv-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-cool));
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.34);
}

.nsfrv .nsfrv-hero__icon i {
    display: block;
    line-height: 1;
}

.nsfrv-hero__title-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35em;
    min-width: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.22;
    text-align: left;
    text-transform: capitalize !important;
}

.nsfrv-hero__title-mark {
    color: #7dd3fc;
    font-weight: 800;
}

.nsfrv-hero__lead {
    color: var(--nsfrv-muted);
    font-size: clamp(0.92rem, 1.6vw, 1rem);
    line-height: 1.55;
    max-width: 58ch;
    margin: 0 auto 16px;
    text-transform: capitalize !important;
}

.nsfrv-search__label {
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
    color: #d7e3f6;
    margin-bottom: 8px;
    text-align: left;
}

.nsfrv-search__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.nsfrv .nsfrv-search__field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 58px !important;
    resize: none !important;
    overflow-y: auto !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--nsfrv-ink) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nsfrv .nsfrv-search__field::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.nsfrv .nsfrv-search__field:focus {
    border-color: rgba(56, 189, 248, 0.72) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.nsfrv-search__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.nsfrv .nsfrv-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px !important;
    height: 48px !important;
    min-width: 44px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 750 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    touch-action: manipulation;
    flex: 1 1 auto;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(2, 8, 23, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.nsfrv .nsfrv-btn i {
    display: inline-block;
    line-height: 1;
}

.nsfrv .nsfrv-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.3);
    filter: brightness(1.05);
}

.nsfrv .nsfrv-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(2, 8, 23, 0.24);
}

.nsfrv .nsfrv-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 12px 26px rgba(2, 8, 23, 0.22);
}

.nsfrv .nsfrv-btn--paste {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #dbeafe !important;
}

.nsfrv .nsfrv-btn--view {
    background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-cool) 58%, var(--nsfrv-success)) !important;
}

.nsfrv .nsfrv-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.nsfrv-search__hint {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--nsfrv-dim);
}

/* Cloudflare Turnstile — sit above the input row, never inside it */
.nsfrv #xrespond-tools-turnstile-host {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex: none;
    order: unset;
    box-sizing: border-box;
}

.nsfrv #xrespond-tools-turnstile-host.is-visible {
    display: block;
}

.nsfrv #xrespond-tools-turnstile-host .xrespond-ts-label {
    display: block;
    font-size: 0.85rem;
    color: var(--nsfrv-muted);
    margin-bottom: 0.45rem;
}

.nsfrv #xrespond-tools-turnstile-host .xrespond-ts-widget {
    min-height: 65px;
    max-width: 100%;
    overflow: hidden;
}

.nsfrv #xrespond-tools-turnstile-host .xrespond-ts-error {
    color: #fecaca;
}

.nsfrv-search__row:has(#xrespond-tools-turnstile-host),
.nsfrv-search__actions:has(#xrespond-tools-turnstile-host) {
    flex-wrap: wrap !important;
}

.nsfrv-search__row > #xrespond-tools-turnstile-host,
.nsfrv-search__actions > #xrespond-tools-turnstile-host {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: -1;
}

.nsfrv-alert {
    display: none;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.42);
    color: #fecaca;
    font-size: 0.88rem;
    font-weight: 650;
}

.nsfrv-alert.is-visible {
    display: block;
}

.nsfrv-notice {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 650;
}

.nsfrv-notice.is-visible {
    display: flex;
}

.nsfrv-notice i {
    color: var(--nsfrv-cool);
    margin-top: 2px;
}

/* Skeleton */
.nsfrv .nsfrv-skeleton {
    display: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nsfrv .nsfrv-skeleton.is-visible {
    display: block;
}

.nsfrv .nsfrv-content.is-hidden {
    display: none !important;
}

.nsfrv .nsfrv-content.is-placeholder .nsfrv-profile__zoom {
    opacity: 0.55;
    pointer-events: none;
}

.nsfrv .nsfrv-content.is-placeholder .nsfrv-card__media,
.nsfrv .nsfrv-content.is-placeholder .nsfrv-card__action {
    pointer-events: none;
}

.nsfrv .nsfrv-content.is-placeholder .nsfrv-card__action {
    opacity: 0.72;
}

.nsfrv-card__media--ghost {
    background: linear-gradient(145deg, #111827, #312e81 55%, #0284c7);
}

.nsfrv-card__media--ghost-b {
    background: linear-gradient(145deg, #0f172a, #0e7490 60%, #16a34a);
}

.nsfrv-card__media--ghost-c {
    background: linear-gradient(145deg, #111827, #4338ca 50%, #f97316);
}

.nsfrv-card__media--ghost .nsfrv-card__img {
    display: none;
}

@keyframes nsfrv-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.nsfrv .nsfrv-sk {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 100%);
    background-size: 800px 100%;
    animation: nsfrv-shimmer 1.25s linear infinite;
    border-radius: 12px;
}

.nsfrv-skeleton__panel {
    background: var(--nsfrv-panel);
    border: 1px solid var(--nsfrv-line);
    border-radius: var(--nsfrv-radius);
    padding: var(--nsfrv-pad);
    box-shadow: var(--nsfrv-shadow);
    backdrop-filter: blur(18px);
}

.nsfrv-skeleton__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.nsfrv .nsfrv-skeleton__avatar {
    width: var(--nsfrv-avatar);
    height: var(--nsfrv-avatar);
    border-radius: 50%;
    flex-shrink: 0;
}

.nsfrv-skeleton__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nsfrv-skeleton__line {
    height: 14px;
    width: 100%;
}

.nsfrv-skeleton__line--lg {
    width: 55%;
    height: 18px;
}

.nsfrv-skeleton__line--md {
    width: 35%;
}

.nsfrv-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
    gap: var(--nsfrv-gap);
}

.nsfrv-skeleton__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nsfrv-skeleton__thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
}

.nsfrv-skeleton__foot {
    height: 14px;
    width: 70%;
}

.nsfrv-result {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nsfrv-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.78));
    border: 1px solid var(--nsfrv-line);
    border-radius: var(--nsfrv-radius);
    box-shadow: var(--nsfrv-shadow);
    padding: var(--nsfrv-pad);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    backdrop-filter: blur(18px);
}

.nsfrv-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.nsfrv-profile__avatar-wrap {
    position: relative;
    width: var(--nsfrv-avatar);
    height: var(--nsfrv-avatar);
    flex-shrink: 0;
}

.nsfrv-profile__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 160deg, var(--nsfrv-accent), var(--nsfrv-cool), var(--nsfrv-success), var(--nsfrv-warm), var(--nsfrv-accent));
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.28);
}

.nsfrv-profile__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nsfrv-panel-soft);
    border: 3px solid rgba(15, 23, 42, 0.95);
}

.nsfrv .nsfrv-profile__zoom {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 0 !important;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-cool)) !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    box-shadow: 0 10px 22px rgba(2, 8, 23, 0.34);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.nsfrv .nsfrv-profile__zoom:hover {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.06);
}

.nsfrv-profile__meta {
    min-width: 0;
    flex: 1;
    width: 100%;
}

.nsfrv-profile__name {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.nsfrv-profile__handle {
    color: var(--nsfrv-muted);
    font-size: 0.92rem;
    font-weight: 650;
    margin-top: 4px;
    word-break: break-all;
}

.nsfrv-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nsfrv-stats__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.78rem;
    font-weight: 750;
    color: #dbeafe;
}

.nsfrv-stats__badge i {
    color: var(--nsfrv-cool);
}

.nsfrv-pane__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.nsfrv-pane__title {
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.nsfrv-pane__title i {
    color: var(--nsfrv-cool);
    flex-shrink: 0;
}

.nsfrv-pane__count {
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--nsfrv-dim);
    flex: 0 0 auto;
    white-space: nowrap;
}

.nsfrv-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
    gap: var(--nsfrv-gap);
    width: 100%;
    min-width: 0;
}

.nsfrv-card {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--nsfrv-soft-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nsfrv-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 22px 48px rgba(2, 8, 23, 0.34);
}

.nsfrv-card__media {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #020617;
    cursor: pointer;
    overflow: hidden;
    flex: 0 0 auto;
}

.nsfrv .nsfrv-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s ease;
}

.nsfrv-card:hover .nsfrv-card__img {
    transform: scale(1.035);
}

.nsfrv-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.35));
    pointer-events: none;
}

.nsfrv-card__play span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.nsfrv-card__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.nsfrv-card__duration {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.nsfrv-card__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    min-width: 0;
    margin-top: auto;
}

.nsfrv-card__title {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
    font-size: 0.84rem;
    font-weight: 700;
    color: #dbeafe;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.nsfrv-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

.nsfrv .nsfrv-card__action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 38px;
    min-width: 0;
    padding: 7px 9px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #dbeafe !important;
    font-size: 0.75rem !important;
    font-weight: 750 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    touch-action: manipulation;
    white-space: nowrap;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nsfrv .nsfrv-card__action:hover {
    transform: translateY(-1px);
    background: rgba(56, 189, 248, 0.14) !important;
    box-shadow: 0 10px 20px rgba(2, 8, 23, 0.22);
}

.nsfrv .nsfrv-card__action i {
    flex-shrink: 0;
}

.nsfrv .nsfrv-card__action-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Multi-column grids: icon-only actions so labels never collide */
.nsfrv.nsfrv--cols-3 .nsfrv-card__action,
.nsfrv.nsfrv--cols-4 .nsfrv-card__action,
.nsfrv.nsfrv--cols-5 .nsfrv-card__action {
    padding: 6px !important;
    gap: 0;
}

.nsfrv.nsfrv--cols-3 .nsfrv-card__action-label,
.nsfrv.nsfrv--cols-4 .nsfrv-card__action-label,
.nsfrv.nsfrv--cols-5 .nsfrv-card__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nsfrv .nsfrv-card__action--cool {
    background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-cool)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.nsfrv-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--nsfrv-muted);
}

.nsfrv-empty i {
    display: block;
    font-size: 2rem;
    margin: 0 auto 12px;
    color: #fff;
    opacity: 0.9;
}

.nsfrv-empty p {
    margin: 0 auto;
    max-width: 36ch;
    font-size: 0.95rem;
}

.nsfrv-tab-sk {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nsfrv-grid-min)), 1fr));
    gap: var(--nsfrv-gap);
}

.nsfrv-tab-sk__video {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nsfrv-tab-sk__thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
}

.nsfrv-tab-sk__foot {
    height: 14px;
    width: 65%;
}

/* Modal */
.nsfrv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 6, 23, 0.78);
    padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.nsfrv-modal.is-open {
    display: flex;
}

.nsfrv-modal__dialog {
    position: relative;
    width: min(430px, 100%);
    max-width: 100%;
    max-height: min(92dvh, 92vh, 900px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.nsfrv .nsfrv-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0 !important;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78) !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, background 0.18s ease;
}

.nsfrv .nsfrv-modal__close:hover {
    transform: scale(1.04);
    background: rgba(239, 68, 68, 0.9) !important;
}

.nsfrv-modal__stage {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(42dvh, 280px);
    max-height: min(72dvh, 72vh, 760px);
}

.nsfrv .nsfrv-modal__media {
    width: 100%;
    max-width: 100%;
    max-height: min(72dvh, 72vh, 760px);
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
}

.nsfrv .nsfrv-modal__media--img,
.nsfrv .nsfrv-modal__media--video {
    width: 100%;
    max-width: 100%;
    max-height: min(72dvh, 72vh, 760px);
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: 12px;
}

.nsfrv .nsfrv-modal__media.is-hidden {
    display: none !important;
}

.nsfrv-modal__loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(8, 12, 24, 0.78);
    color: #fff;
    font-weight: 750;
    z-index: 1;
}

.nsfrv-modal__loading.is-visible {
    display: flex;
}

.nsfrv-modal__loading i {
    animation: nsfrv-spin 0.9s linear infinite;
}

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

.nsfrv-modal__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    flex: 0 0 auto;
}

.nsfrv-modal__meta {
    flex: 1 1 140px;
    margin: 0;
    color: var(--nsfrv-muted);
    font-size: 0.88rem;
    font-weight: 650;
    min-width: 0;
    word-break: break-word;
}

.nsfrv-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.nsfrv .nsfrv-modal__action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    height: 44px;
    flex: 1 1 auto;
    padding: 0 15px !important;
    border-radius: 999px !important;
    border: 0 !important;
    font: inherit;
    font-size: 0.92rem !important;
    font-weight: 750 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    color: #fff !important;
    background: linear-gradient(135deg, var(--nsfrv-accent), var(--nsfrv-cool)) !important;
    box-shadow: 0 12px 24px rgba(2, 8, 23, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nsfrv .nsfrv-modal__action:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.34);
}

.nsfrv .nsfrv-modal__action:disabled,
.nsfrv .nsfrv-modal__action.is-hidden {
    display: none !important;
}

.nsfrv-dlprog {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: auto;
    z-index: 100000;
    width: min(360px, calc(100vw - 24px));
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
    color: #fff;
    display: none;
    backdrop-filter: blur(16px);
}

.nsfrv-dlprog.is-open {
    display: block;
}

.nsfrv-dlprog.is-success {
    border-color: rgba(34, 197, 94, 0.58);
}

.nsfrv-dlprog.is-error {
    border-color: rgba(248, 113, 113, 0.58);
}

.nsfrv-dlprog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.nsfrv-dlprog__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 750;
    font-size: 0.9rem;
}

.nsfrv-dlprog__title i {
    color: var(--nsfrv-success);
}

.nsfrv-dlprog__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsfrv-dlprog__pct {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.86);
}

.nsfrv-dlprog__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.nsfrv-dlprog__fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nsfrv-accent), var(--nsfrv-cool), var(--nsfrv-success));
    transition: width 0.2s ease;
}

.nsfrv-dlprog.is-indeterminate .nsfrv-dlprog__fill {
    width: 40% !important;
    animation: nsfrv-dlprog-slide 1.1s ease-in-out infinite;
}

@keyframes nsfrv-dlprog-slide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(280%);
    }
}

.nsfrv-dlprog__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.nsfrv .fa-solid,
.nsfrv .fa-circle-info,
.nsfrv .fa-download,
.nsfrv .fa-expand,
.nsfrv .fa-film,
.nsfrv .fa-paste,
.nsfrv .fa-spinner,
.nsfrv .fa-xmark {
    display: inline-block;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    line-height: 1;
    text-rendering: auto;
    speak: never;
}

.nsfrv .fa-circle-info::before {
    content: "\f05a";
}

.nsfrv .fa-download::before {
    content: "\f019";
}

.nsfrv .fa-expand::before {
    content: "\f065";
}

.nsfrv .fa-film::before {
    content: "\f008";
}

.nsfrv .fa-paste::before {
    content: "\f0ea";
}

.nsfrv .fa-spinner::before {
    content: "\f110";
}

.nsfrv .fa-xmark::before {
    content: "\f00d";
}

/* Responsive — same pattern as facebook/video + page compact overrides */
@media (max-width: 479.98px) {
    .nsfrv {
        --nsfrv-grid-min: 100%;
        --nsfrv-avatar: 72px;
        --nsfrv-pad: 13px;
        --nsfrv-gap: 11px;
        padding: 8px;
    }

    .nsfrv-hero {
        padding-top: 18px;
    }

    .nsfrv-hero__brand {
        flex-direction: column;
        gap: 8px;
    }

    .nsfrv-hero__title-text {
        justify-content: center;
        text-align: center;
        font-size: 1.25rem;
    }

    .nsfrv-card__actions {
        grid-template-columns: 1fr;
    }

    .nsfrv-search {
        padding: 14px;
    }
}

@media (min-width: 480px) and (max-width: 767.98px) {
    .nsfrv {
        --nsfrv-grid-min: max(150px, 46%);
    }
}

@media (min-width: 768px) {
    .nsfrv:not(.nsfrv--compact) {
        --nsfrv-grid-min: 170px;
        --nsfrv-avatar: 96px;
        --nsfrv-pad: 20px;
        --nsfrv-gap: 16px;
    }

    .nsfrv:not(.nsfrv--compact) .nsfrv-search__row {
        flex-direction: row;
        align-items: stretch;
    }

    .nsfrv:not(.nsfrv--compact) .nsfrv-search__actions {
        width: auto;
        flex: 0 0 auto;
    }

    .nsfrv:not(.nsfrv--compact) .nsfrv-btn {
        flex: 0 0 auto;
    }

    .nsfrv:not(.nsfrv--compact) .nsfrv-profile {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .nsfrv:not(.nsfrv--compact) {
        --nsfrv-grid-min: 180px;
        --nsfrv-avatar: 104px;
    }
}

/* WordPress / Live Server narrow container (set by ResizeObserver) */
.nsfrv.nsfrv--compact {
    --nsfrv-avatar: 72px;
    --nsfrv-pad: 13px;
    --nsfrv-gap: 11px;
    --nsfrv-grid-min: max(150px, 46%);
}

.nsfrv.nsfrv--compact .nsfrv-search__row {
    flex-direction: column !important;
}

.nsfrv.nsfrv--compact .nsfrv-search__actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.nsfrv.nsfrv--compact .nsfrv-btn {
    flex: 1 1 calc(50% - 5px) !important;
}

.nsfrv.nsfrv--compact .nsfrv-profile {
    flex-direction: column !important;
    align-items: flex-start !important;
}

.nsfrv.nsfrv--compact .nsfrv-card__foot {
    flex-direction: column !important;
    align-items: stretch !important;
}

.nsfrv.nsfrv--compact .nsfrv-card__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
}

.nsfrv.nsfrv--compact .nsfrv-card__action {
    width: 100% !important;
}

.nsfrv.nsfrv--narrow {
    --nsfrv-grid-min: 100%;
    --nsfrv-avatar: 64px;
    padding: 8px;
}

.nsfrv.nsfrv--narrow .nsfrv-btn {
    flex: 1 1 100% !important;
}

.nsfrv.nsfrv--narrow .nsfrv-search__actions {
    flex-direction: column !important;
}

.nsfrv.nsfrv--narrow .nsfrv-card__actions {
    grid-template-columns: 1fr !important;
}

.nsfrv.nsfrv--narrow .nsfrv-hero__brand {
    flex-direction: column;
    gap: 8px;
}

.nsfrv.nsfrv--narrow .nsfrv-hero__title-text {
    font-size: 1.18rem;
    justify-content: center;
    text-align: center;
}

/* Search controls: one row on large screens, stacked on small and medium screens */
.nsfrv .nsfrv-search,
.nsfrv .nsfrv-search .nsfrv-search__row,
.nsfrv .nsfrv-search .nsfrv-search__actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.nsfrv .nsfrv-search .nsfrv-search__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.nsfrv .nsfrv-search .nsfrv-search__field,
.nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-search__field {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.nsfrv .nsfrv-search .nsfrv-search__actions,
.nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-search__actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-btn,
.nsfrv .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
.nsfrv .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 112px !important;
}

.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__field,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__field,
.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row > .nsfrv-search__field,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row > .nsfrv-search__field {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 58px !important;
}

.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__actions,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__actions,
.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row > .nsfrv-search__actions,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row > .nsfrv-search__actions {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row > .nsfrv-btn,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row > .nsfrv-btn,
.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
.nsfrv.nsfrv--compact .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn,
.nsfrv.nsfrv--narrow .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .nsfrv .nsfrv-search .nsfrv-search__row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__field,
    .nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-search__field {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 58px !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__actions,
    .nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-search__actions {
        flex: 0 0 auto !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    .nsfrv .nsfrv-search .nsfrv-search__row > .nsfrv-btn,
    .nsfrv .nsfrv-search .nsfrv-search__actions .nsfrv-btn,
    .nsfrv .nsfrv-search .nsfrv-search__row .nsfrv-search__actions .nsfrv-btn {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .nsfrv .nsfrv-btn {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .nsfrv-modal__dialog {
        width: min(420px, calc(100vw - 16px));
        border-radius: 18px;
    }
}

@media (hover: none) {
    .nsfrv .nsfrv-btn:hover,
    .nsfrv .nsfrv-card__action:hover,
    .nsfrv-card:hover,
    .nsfrv .nsfrv-profile__zoom:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nsfrv *,
    .nsfrv *::before,
    .nsfrv *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .nsfrv .nsfrv-sk,
    .nsfrv .nsfrv-modal__loading i,
    .nsfrv-dlprog.is-indeterminate .nsfrv-dlprog__fill {
        animation: none !important;
    }
}