/* Intimy Fans - Feed PeepSo de Vendedores */
.peepso .ifpf-follow-btn,
.ifpf-follow-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #168fff 0%, #006be8 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    box-shadow: 0 8px 18px rgba(0, 110, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
    vertical-align: middle;
}

.peepso .ifpf-follow-btn:hover,
.ifpf-follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 110, 255, .32);
}

.peepso .ifpf-follow-btn:active,
.ifpf-follow-btn:active {
    transform: translateY(0);
}

.peepso .ifpf-follow-btn.is-following,
.ifpf-follow-btn.is-following {
    background: #eef7ff;
    color: #0573df !important;
    border: 1px solid rgba(5, 115, 223, .18);
    box-shadow: 0 8px 18px rgba(19, 86, 145, .08);
}

.peepso .ifpf-follow-btn.is-loading,
.ifpf-follow-btn.is-loading {
    opacity: .72;
    pointer-events: none;
}

.ifpf-follow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    line-height: 1;
}

.ifpf-follow-btn.is-following .ifpf-follow-icon {
    background: rgba(5, 115, 223, .12);
}

.peepso .ps-post__title .ifpf-follow-btn--post {
    position: relative;
    top: -1px;
}

.peepso .ifpf-hide-author-btn,
.ifpf-hide-author-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    padding: 5px 9px;
    margin-left: 5px;
    border-radius: 999px;
    background: rgba(45, 55, 72, .06);
    color: rgba(45, 55, 72, .62) !important;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    transition: transform .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
    vertical-align: middle;
}

.peepso .ifpf-hide-author-btn:hover,
.ifpf-hide-author-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 75, 125, .10);
    color: #ff4b7d !important;
}

.ifpf-hide-author-btn span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(45, 55, 72, .08);
    font-size: 12px;
    line-height: 1;
}

.ifpf-suggestions {
    position: relative;
    margin: 18px 0 22px;
    padding: 16px 0 18px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(0, 122, 255, .18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 249, 255, .96));
    border: 1px solid rgba(0, 115, 230, .10);
    box-shadow: 0 18px 44px rgba(15, 79, 140, .11);
}

.ifpf-suggestions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 132, 255, .25), transparent);
}

.ifpf-suggestions__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0 16px 13px;
}

.ifpf-suggestions__head strong {
    display: block;
    color: #10243d;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ifpf-suggestions__head span {
    display: block;
    margin-top: 3px;
    color: #66758a;
    font-size: 12px;
    line-height: 1.35;
}

.ifpf-suggestions__head em {
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 113, 227, .08);
    color: #1478d4;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ifpf-suggestions__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.ifpf-suggestions__rail::-webkit-scrollbar {
    height: 8px;
}

.ifpf-suggestions__rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 107, 232, .18);
}

.ifpf-card {
    scroll-snap-align: start;
    flex: 0 0 132px;
    min-height: 186px;
    padding: 14px 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(18, 89, 158, .09);
    box-shadow: 0 14px 28px rgba(17, 73, 126, .08);
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ifpf-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, .24);
    box-shadow: 0 18px 34px rgba(17, 73, 126, .14);
}

.ifpf-card--followed {
    background: linear-gradient(180deg, #ffffff, #f3f9ff);
}

.ifpf-card__avatar {
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #0097ff, #63d2ff 45%, #006be8);
    box-shadow: 0 10px 22px rgba(0, 125, 255, .20);
}

.ifpf-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #eef6ff;
}

.ifpf-card__name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #11243a !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}

.ifpf-card__username {
    display: block;
    max-width: 100%;
    overflow: hidden;
    margin-top: 3px;
    color: #77879c;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifpf-card .ifpf-follow-btn {
    width: 100%;
    margin: 12px 0 0;
    min-height: 32px;
}

.ifpf-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 999999;
    transform: translate(-50%, 16px);
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(14, 30, 48, .94);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    transition: opacity .2s ease, transform .2s ease;
}

.ifpf-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ifpf-suggestions--loading {
    padding: 16px;
}

.ifpf-skeleton-head {
    width: 56%;
    height: 18px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(219, 234, 249, .72), rgba(244, 249, 255, .95), rgba(219, 234, 249, .72));
    background-size: 200% 100%;
    animation: ifpf-shimmer 1.2s infinite linear;
}

.ifpf-skeleton-rail {
    display: flex;
    gap: 12px;
}

.ifpf-skeleton-rail span {
    flex: 0 0 132px;
    height: 150px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(219, 234, 249, .72), rgba(244, 249, 255, .95), rgba(219, 234, 249, .72));
    background-size: 200% 100%;
    animation: ifpf-shimmer 1.2s infinite linear;
}

@keyframes ifpf-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 680px) {
    .peepso .ifpf-follow-btn--post {
        min-height: 26px;
        padding: 5px 9px;
        margin-left: 5px;
        font-size: 11px;
    }

    .peepso .ifpf-hide-author-btn {
        min-height: 24px;
        padding: 5px 7px;
        margin-left: 3px;
        font-size: 10px;
    }

    .peepso .ifpf-hide-author-label {
        display: none;
    }

    .ifpf-suggestions {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 18px;
    }

    .ifpf-suggestions__head {
        padding-left: 13px;
        padding-right: 13px;
    }

    .ifpf-suggestions__head em {
        display: none;
    }

    .ifpf-suggestions__rail {
        padding-left: 13px;
        padding-right: 13px;
    }

    .ifpf-card {
        flex-basis: 122px;
        min-height: 178px;
    }
}

.ifpf-hidden-post {
    display: none !important;
}

.ifpf-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 133, 255, .10), rgba(99, 210, 255, .16));
    color: #0b72d9;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
}

.peepso .ps-post__content:empty,
.peepso .ps-js-activity-content:empty {
    display: none !important;
}

.peepso .ps-post__body .pwp-removed-card {
    display: none !important;
}

@media (max-width: 680px) {
    .ifpf-card__badge {
        font-size: 9px;
        padding: 4px 7px;
    }
}

/* Fresh visual: remove a impressão de feed velho sem falsificar datas. */
body.ifpf-hide-timestamps #peepso-wrap .ps-post__date,
body.ifpf-hide-timestamps #peepso-wrap .ps-js-timestamp,
body.ifpf-hide-timestamps #peepso-wrap .activity-post-age,
body.ifpf-hide-timestamps #peepso-wrap .activity-post-age-link,
body.ifpf-hide-timestamps #peepso-wrap .activity-post-age-text-only,
body.ifpf-hide-timestamps .peepso .ps-post__date,
body.ifpf-hide-timestamps .peepso .ps-js-timestamp,
body.ifpf-hide-timestamps .peepso .activity-post-age,
body.ifpf-hide-timestamps .peepso .activity-post-age-link,
body.ifpf-hide-timestamps .peepso .activity-post-age-text-only {
    display: none !important;
}

body.ifpf-hide-timestamps #peepso-wrap .ps-post__info,
body.ifpf-hide-timestamps .peepso .ps-post__info {
    min-height: 18px;
}

.ifpf-hidden-post {
    display: none !important;
}

/* Deixa os filtros do PeepSo com aparência mais limpa no feed de descoberta. */
#peepso-wrap .ps-posts__filter,
.peepso .ps-posts__filter {
    border-color: rgba(18, 89, 158, .08);
}

#peepso-wrap .ps-posts__filter-toggle,
.peepso .ps-posts__filter-toggle {
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

#peepso-wrap .ps-posts__filter-toggle:hover,
.peepso .ps-posts__filter-toggle:hover {
    background: rgba(0, 113, 227, .06);
    color: #155fa8;
}

/* Filtros Intimy: barra discreta, bonita e acima do stream. */
.ifpf-filterbar {
    position: relative;
    z-index: 3;
    margin: 10px 0 14px;
    padding: 0;
}

.ifpf-filterbar__rail {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ifpf-filterbar__rail::-webkit-scrollbar {
    display: none;
}

.ifpf-filterbar__button {
    appearance: none;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(20, 92, 160, .10);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .72);
    color: rgba(46, 58, 74, .66);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.01em;
    box-shadow: 0 8px 22px rgba(18, 52, 88, .045);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ifpf-filterbar__button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 113, 227, .22);
    background: rgba(255, 255, 255, .92);
    color: #1769bb;
    box-shadow: 0 12px 28px rgba(18, 87, 150, .08);
}

.ifpf-filterbar__button.is-active {
    border-color: rgba(0, 113, 227, .26);
    background: linear-gradient(135deg, rgba(0, 133, 255, .12), rgba(255, 255, 255, .95));
    color: #086ed7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62), 0 12px 28px rgba(0, 113, 227, .10);
}

.ifpf-filterbar__button.is-active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .10);
}

/* Quando ativo, a barra nativa do PeepSo continua funcional no DOM, mas fica invisível para o usuário. */
body.ifpf-hide-native-filters #peepso-wrap .ps-posts__filters,
body.ifpf-hide-native-filters .peepso .ps-posts__filters,
body.ifpf-hide-native-filters #peepso-wrap .ps-posts__filters--compact-mobile,
body.ifpf-hide-native-filters .peepso .ps-posts__filters--compact-mobile {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.ifpf-hide-native-filters #ps-stream__filters-warning {
    display: none !important;
}

@media (max-width: 680px) {
    .ifpf-filterbar {
        margin: 8px -1px 12px;
    }

    .ifpf-filterbar__rail {
        gap: 7px;
        padding-left: 1px;
        padding-right: 1px;
    }

    .ifpf-filterbar__button {
        min-height: 32px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Advanced Ads: não deixa anúncio ocupar a primeira postagem do /activity/. */
.ifpf-advanced-ad--waiting {
    display: none !important;
}

#peepso-wrap .ifpf-advanced-ad--relocated,
.peepso .ifpf-advanced-ad--relocated {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

#peepso-wrap .ifpf-advanced-ad--relocated:first-child,
.peepso .ifpf-advanced-ad--relocated:first-child,
#ps-activitystream > .ps-advads__post:first-child {
    display: none !important;
}


/* v1.7 - trava anti-topo para Advanced Ads no PeepSo, mesmo antes do JS terminar. */
html body #ps-activitystream > .ps-advads__post:first-child,
html body #ps-activitystream > .ps-post--empty.ps-advads__post:first-child,
html body #ps-activitystream > .ps-js-activity.ps-advads__post:first-child,
html body #ps-activitystream > [class*="advads"]:first-child,
html body #ps-activitystream > .ps-post:first-child:has(.advads-edit-bar),
html body #ps-activitystream > .ps-post:first-child:has([class*="advads"]),
html body #ps-activitystream > .ps-post:first-child:has([id*="advads"]),
html body #ps-activitystream > .ifpf-advanced-ad--waiting,
html body #ps-activitystream > [data-ifpf-ad="waiting"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* v2.7 - Filtro Vídeos: experiência vertical estilo TikTok, sem puxar fotos. */
body.ifpf-video-feed-mode .ifpf-suggestions,
body.ifpf-video-feed-mode #peepso-wrap .ifpf-advanced-ad,
body.ifpf-video-feed-mode .peepso .ifpf-advanced-ad {
    display: none !important;
}

body.ifpf-video-feed-mode .ifpf-filterbar {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 10px;
    padding: 8px 0 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.ifpf-video-feed-mode .ifpf-filterbar__button[data-ifpf-filter="video"].is-active {
    color: #fff;
    border-color: rgba(0, 98, 255, .34);
    background: linear-gradient(135deg, #008cff, #0067e8 52%, #004dbd);
    box-shadow: 0 14px 34px rgba(0, 96, 220, .22);
}

body.ifpf-video-feed-mode #ps-activitystream,
body.ifpf-video-feed-mode .ps-posts {
    display: block;
    scroll-snap-type: y proximity;
    overscroll-behavior-y: contain;
}

body.ifpf-video-feed-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode .ps-posts > .ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: min(82svh, 780px);
    max-width: 540px;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 28px !important;
    background: #05070b !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-post__header,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__meta,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__title,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__footer,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__actions,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__info,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__options,
body.ifpf-video-feed-mode .ifpf-video-card .ps-js-activity-actions,
body.ifpf-video-feed-mode .ifpf-video-card .ifpf-follow-btn--post,
body.ifpf-video-feed-mode .ifpf-video-card .ifpf-hide-author-btn:not(.ifpf-hide-author-btn--video) {
    display: none !important;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-post__body,
body.ifpf-video-feed-mode .ifpf-video-card .ps-js-post-body,
body.ifpf-video-feed-mode .ifpf-video-card .ps-js-activity-content,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__content,
body.ifpf-video-feed-mode .ifpf-video-card .ps-stream-attachments,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__attachments,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__wrapper,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__player {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit;
    background: transparent !important;
}

body.ifpf-video-feed-mode .ifpf-video-card video,
body.ifpf-video-feed-mode .ifpf-video-card iframe,
body.ifpf-video-feed-mode .ifpf-video-card object,
body.ifpf-video-feed-mode .ifpf-video-card embed {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: min(82svh, 780px);
    border: 0 !important;
    border-radius: inherit;
    object-fit: cover;
    background: #05070b;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-media__thumbnail,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__thumbnail,
body.ifpf-video-feed-mode .ifpf-video-card img {
    max-width: 100%;
    object-fit: cover;
}

body.ifpf-video-feed-mode .ifpf-video-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
    z-index: 4;
}

.ifpf-video-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.ifpf-video-overlay__profile {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    pointer-events: auto;
}

.ifpf-video-overlay__profile img,
.ifpf-video-overlay__avatar-fallback {
    grid-row: 1 / span 2;
    display: flex;
    width: 46px !important;
    height: 46px !important;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: linear-gradient(135deg, #008cff, #68d8ff);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.ifpf-video-overlay__profile strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifpf-video-overlay__profile span:not(.ifpf-video-overlay__avatar-fallback) {
    margin-top: 3px;
    color: rgba(255,255,255,.80);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.ifpf-video-overlay__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: auto;
}

.ifpf-video-overlay__actions .ifpf-follow-btn,
.ifpf-video-overlay__actions .ifpf-hide-author-btn {
    margin: 0 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.ifpf-video-overlay__actions .ifpf-hide-author-btn {
    background: rgba(255,255,255,.18);
    color: #fff !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.ifpf-video-feed-mode .ps-no-posts,
body.ifpf-video-feed-mode .ps-alert:has(+ #ps-activitystream) {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 680px) {
    body.ifpf-video-feed-mode .ifpf-filterbar {
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    body.ifpf-video-feed-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode .ps-posts > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
        min-height: calc(100svh - 104px);
        width: calc(100vw - 18px);
        max-width: none;
        margin: 0 auto 10px !important;
        border-radius: 22px !important;
    }

    body.ifpf-video-feed-mode .ifpf-video-card video,
    body.ifpf-video-feed-mode .ifpf-video-card iframe,
    body.ifpf-video-feed-mode .ifpf-video-card object,
    body.ifpf-video-feed-mode .ifpf-video-card embed {
        min-height: calc(100svh - 104px);
    }

    .ifpf-video-overlay {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    .ifpf-video-overlay__profile {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 9px;
    }

    .ifpf-video-overlay__profile img,
    .ifpf-video-overlay__avatar-fallback {
        width: 42px !important;
        height: 42px !important;
    }

    .ifpf-video-overlay__profile strong {
        font-size: 14px;
    }
}

/* v2.8 - Correção do modo Vídeos: elimina espaços gigantes acima/abaixo do player. */
body.ifpf-video-feed-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode .ps-posts > .ps-js-activity.ifpf-video-card,
body.ifpf-video-feed-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
    height: min(82svh, 780px) !important;
    min-height: 0 !important;
    max-height: min(82svh, 780px) !important;
    isolation: isolate;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-post__body,
body.ifpf-video-feed-mode .ifpf-video-card .ps-js-post-body,
body.ifpf-video-feed-mode .ifpf-video-card .ps-js-activity-content,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__content,
body.ifpf-video-feed-mode .ifpf-video-card .ps-stream-attachments,
body.ifpf-video-feed-mode .ifpf-video-card .ps-post__attachments {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    background: #05070b !important;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-media,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media--video,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media-video,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media--iframe,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media-iframe,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__wrapper,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__player {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    background: #05070b !important;
}

body.ifpf-video-feed-mode .ifpf-video-card .ifpf-hidden-video-media {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.ifpf-video-feed-mode .ifpf-video-card .ifpf-primary-video-media,
body.ifpf-video-feed-mode .ifpf-video-card .ifpf-primary-video-media .ps-video,
body.ifpf-video-feed-mode .ifpf-video-card .ifpf-primary-video-media .ps-video__wrapper,
body.ifpf-video-feed-mode .ifpf-video-card .ifpf-primary-video-media .ps-video__player {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.ifpf-video-feed-mode .ifpf-video-card video,
body.ifpf-video-feed-mode .ifpf-video-card iframe,
body.ifpf-video-feed-mode .ifpf-video-card object,
body.ifpf-video-feed-mode .ifpf-video-card embed {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #05070b !important;
}

body.ifpf-video-feed-mode .ifpf-video-card .ps-media__thumbnail,
body.ifpf-video-feed-mode .ifpf-video-card .ps-video__thumbnail,
body.ifpf-video-feed-mode .ifpf-video-card .ps-media__cover {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 680px) {
    body.ifpf-video-feed-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode .ps-posts > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-feed-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
        height: calc(100svh - 96px) !important;
        max-height: calc(100svh - 96px) !important;
        min-height: 0 !important;
        margin-bottom: 10px !important;
    }
}

/* v2.9 - Modo Vídeos leve: modal/reels carrega só 1 vídeo por vez. */


/* v3.0: reserva espaço real para a navbar mobile fixa no modo reels. */
:root,
body {
    --ifpf-bottom-nav-height: 0px;
    --ifpf-video-profile-bottom: max(24px, calc(var(--ifpf-bottom-nav-height, 0px) + env(safe-area-inset-bottom) + 18px));
    --ifpf-video-nav-bottom: max(92px, calc(var(--ifpf-bottom-nav-height, 0px) + env(safe-area-inset-bottom) + 24px));
}

/* Fallback CSS para navegadores modernos caso o JS ainda não tenha medido a navbar. */
body:has(#imf-bottom-nav) {
    --ifpf-bottom-nav-height: 74px;
}

html.ifpf-video-lightbox-lock,
body.ifpf-video-lightbox-lock {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.ifpf-video-lightbox-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
body.ifpf-video-lightbox-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
body.ifpf-video-lightbox-mode .ps-posts > .ps-js-activity.ifpf-video-card,
body.ifpf-video-lightbox-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
    height: 228px !important;
    min-height: 228px !important;
    max-height: 228px !important;
    cursor: pointer;
}

body.ifpf-video-lightbox-mode .ifpf-video-card::before {
    content: "Modo vídeo";
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 7;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.52);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.ifpf-video-lightbox-mode .ifpf-video-card video,
body.ifpf-video-lightbox-mode .ifpf-video-card iframe,
body.ifpf-video-lightbox-mode .ifpf-video-card object,
body.ifpf-video-lightbox-mode .ifpf-video-card embed {
    opacity: .52 !important;
    pointer-events: none !important;
}

.ifpf-video-open-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 8;
    transform: translate(-50%, -50%);
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    color: #fff;
    background: linear-gradient(135deg, #ff4f86, #a71bd2);
    box-shadow: 0 18px 38px rgba(196, 32, 132, .28);
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.ifpf-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    background: radial-gradient(circle at 50% 20%, rgba(255,79,134,.16), transparent 32%), #050509;
    color: #fff;
    touch-action: none;
}

.ifpf-video-lightbox.is-open {
    display: block;
}

.ifpf-video-lightbox__chrome {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.ifpf-video-lightbox__close,
.ifpf-video-lightbox__prev,
.ifpf-video-lightbox__next {
    appearance: none;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.48);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ifpf-video-lightbox__close {
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 26px;
    line-height: 38px;
    pointer-events: auto;
}

.ifpf-video-lightbox__counter {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    color: rgba(255,255,255,.84);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.ifpf-video-lightbox__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050509;
}

.ifpf-video-lightbox__stage::before {
    content: "";
    position: absolute;
    inset: auto auto 24px 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid rgba(255,255,255,.16);
    border-top-color: rgba(255,255,255,.82);
    border-radius: 50%;
    opacity: 0;
    animation: ifpfSpin .8s linear infinite;
    pointer-events: none;
}

.ifpf-video-lightbox__stage.is-loading::before {
    opacity: 1;
}

.ifpf-video-lightbox__stage video,
.ifpf-video-lightbox__stage iframe,
.ifpf-video-lightbox__stage object,
.ifpf-video-lightbox__stage embed {
    display: block;
    width: min(100vw, 540px);
    height: 100svh;
    max-height: 100svh;
    border: 0;
    background: #000;
    object-fit: contain;
}

.ifpf-video-lightbox__stage video {
    object-fit: contain;
}

.ifpf-video-lightbox__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.70));
}

.ifpf-video-lightbox__profile {
    position: absolute;
    left: max(16px, env(safe-area-inset-left));
    right: 110px;
    bottom: var(--ifpf-video-profile-bottom);
    z-index: 5;
}

.ifpf-video-lightbox__profile-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 10px;
    align-items: center;
    max-width: 380px;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 0 3px 18px rgba(0,0,0,.65);
}

.ifpf-video-lightbox__profile-link img,
.ifpf-video-lightbox__avatar-fallback {
    grid-row: 1 / span 2;
    display: flex;
    width: 52px !important;
    height: 52px !important;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4f86, #a71bd2);
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    object-fit: cover;
}

.ifpf-video-lightbox__profile-link strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifpf-video-lightbox__profile-link span:not(.ifpf-video-lightbox__avatar-fallback) {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 800;
}

.ifpf-video-lightbox__nav {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    top: 50%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.ifpf-video-lightbox__prev,
.ifpf-video-lightbox__next {
    min-width: 92px;
    padding: 11px 13px;
    font-size: 12px;
}

.ifpf-video-lightbox__hint {
    position: absolute;
    left: 50%;
    bottom: calc(var(--ifpf-video-profile-bottom) - 6px);
    z-index: 5;
    transform: translateX(-50%);
    max-width: 280px;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(255,255,255,.76);
    background: rgba(0,0,0,.28);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}

.ifpf-video-codec-warning {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    display: flex;
    width: min(86vw, 420px);
    flex-direction: column;
    gap: 8px;
    transform: translate(-50%, -50%);
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(8,8,12,.82);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ifpf-video-codec-warning strong {
    font-size: 16px;
    font-weight: 950;
}

.ifpf-video-codec-warning span {
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.35;
}

.ifpf-video-codec-warning a {
    display: inline-flex;
    align-self: center;
    margin-top: 4px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff4f86, #a71bd2);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

@keyframes ifpfSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    body.ifpf-video-lightbox-mode #ps-activitystream > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-lightbox-mode #ps-activitystream > .ps-post.ps-js-activity.ifpf-video-card,
    body.ifpf-video-lightbox-mode .ps-posts > .ps-js-activity.ifpf-video-card,
    body.ifpf-video-lightbox-mode .ps-posts > .ps-post.ps-js-activity.ifpf-video-card {
        height: 176px !important;
        min-height: 176px !important;
        max-height: 176px !important;
    }

    .ifpf-video-lightbox__stage video,
    .ifpf-video-lightbox__stage iframe,
    .ifpf-video-lightbox__stage object,
    .ifpf-video-lightbox__stage embed {
        width: 100vw;
        height: 100svh;
    }

    .ifpf-video-lightbox__nav {
        right: 12px;
        top: auto;
        bottom: var(--ifpf-video-nav-bottom);
        transform: none;
    }

    .ifpf-video-lightbox__prev,
    .ifpf-video-lightbox__next {
        min-width: 46px;
        width: 46px;
        height: 46px;
        padding: 0;
        overflow: hidden;
        white-space: nowrap;
        font-size: 0;
    }

    .ifpf-video-lightbox__prev::before { content: "↑"; font-size: 18px; }
    .ifpf-video-lightbox__next::before { content: "↓"; font-size: 18px; }

    .ifpf-video-lightbox__profile {
        right: 72px;
        bottom: var(--ifpf-video-profile-bottom);
    }



    .ifpf-video-lightbox__profile-link {
        max-width: min(330px, calc(100vw - 104px));
        padding: 6px 8px 6px 6px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(0,0,0,.56), rgba(0,0,0,.22));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .ifpf-video-lightbox__hint {
        display: none;
    }
}

/* v3.1: reels sem repetição e fallback mais elegante para codec incompatível. */
.ifpf-video-lightbox__message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    display: flex;
    width: min(86vw, 420px);
    flex-direction: column;
    gap: 8px;
    transform: translate(-50%, -50%);
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(8,8,12,.82);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ifpf-video-lightbox__message strong {
    font-size: 16px;
    font-weight: 950;
}

.ifpf-video-lightbox__message span {
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.35;
}

.ifpf-video-codec-warning__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.ifpf-video-codec-warning__actions a,
.ifpf-video-codec-warning__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff4f86, #a71bd2);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}

.ifpf-video-codec-warning__actions button {
    background: rgba(255,255,255,.16);
}

/* v3.2: ações no modo reels: curtir, seguir e ocultar uploader. */
.ifpf-video-lightbox__actions {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(var(--ifpf-video-profile-bottom) + 2px);
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: auto;
}

.ifpf-video-lightbox__actions button {
    appearance: none;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(0,0,0,.44);
    box-shadow: 0 12px 36px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.ifpf-video-lightbox__actions button:hover {
    transform: translateY(-1px);
    background: rgba(0,0,0,.58);
    border-color: rgba(255,255,255,.28);
}

.ifpf-video-lightbox__actions button.is-loading {
    opacity: .62;
    pointer-events: none;
}

.ifpf-video-like-btn,
.ifpf-video-sound-btn,
.ifpf-video-lightbox__actions .ifpf-follow-btn,
.ifpf-video-lightbox__actions .ifpf-hide-author-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.ifpf-video-like-btn.is-liked,
.ifpf-video-sound-btn.is-on {
    border-color: rgba(255,79,134,.46);
    background: linear-gradient(135deg, rgba(255,79,134,.92), rgba(167,27,210,.88));
}

.ifpf-video-like-icon,
.ifpf-video-sound-icon {
    font-size: 17px;
    line-height: 1;
}

.ifpf-video-like-count:not(:empty) {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 5px;
    color: #fff;
    background: rgba(255,255,255,.18);
    font-size: 10px;
    font-weight: 950;
}

.ifpf-video-lightbox__actions .ifpf-follow-btn.is-following {
    background: rgba(255,255,255,.18);
}

.ifpf-video-lightbox__actions .ifpf-hide-author-btn {
    background: rgba(0,0,0,.36);
}

.ifpf-video-lightbox__actions .ifpf-hide-author-btn > span:first-child {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    font-size: 13px;
}

@media (max-width: 680px) {
    .ifpf-video-lightbox__actions {
        right: 12px;
        bottom: calc(var(--ifpf-video-nav-bottom) + 106px);
        gap: 9px;
    }

    .ifpf-video-like-btn,
    .ifpf-video-sound-btn,
    .ifpf-video-lightbox__actions .ifpf-follow-btn,
    .ifpf-video-lightbox__actions .ifpf-hide-author-btn {
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 50%;
        flex-direction: column;
        gap: 1px;
        font-size: 0;
    }

    .ifpf-video-like-icon,
    .ifpf-video-sound-icon,
    .ifpf-video-lightbox__actions .ifpf-follow-icon,
    .ifpf-video-lightbox__actions .ifpf-hide-author-btn > span:first-child {
        font-size: 20px;
    }

    .ifpf-video-lightbox__actions .ifpf-follow-label,
    .ifpf-video-lightbox__actions .ifpf-hide-author-label,
    .ifpf-video-like-label,
    .ifpf-video-sound-label {
        display: none;
    }

    .ifpf-video-like-count:not(:empty) {
        position: absolute;
        right: -3px;
        top: -3px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        background: #ff4f86;
    }
}

/* Advanced Ads gate inside /activity/ > Vídeos */
html.ifpf-ad-gate-scroll-lock {
    overflow: hidden !important;
}

body.ifpf-ad-gate-scroll-lock {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
}

.ifpf-ad-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 8, 14, .78);
    backdrop-filter: blur(10px);
}

.ifpf-ad-gate-overlay.is-active {
    display: flex;
}

.ifpf-video-gate-ad {
    width: min(92vw, 560px);
    max-height: min(86vh, 720px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    background: rgba(16, 16, 24, .94);
    box-shadow: 0 24px 70px rgba(0,0,0,.42);
    color: #fff;
    text-align: center;
}

.ifpf-video-lightbox .ifpf-video-gate-ad {
    max-width: min(92vw, 520px);
    margin: auto;
}

.ifpf-video-gate-ad__label {
    align-self: center;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ifpf-video-gate-ad__creative-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.ifpf-video-gate-ad__creative-wrap > * {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ifpf-video-gate-ad__creative {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.ifpf-video-gate-ad__countdown {
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.ifpf-video-gate-ad.is-ready .ifpf-video-gate-ad__countdown,
.ifpf-video-lightbox.is-ad-gate-ready .ifpf-video-gate-ad__countdown {
    background: rgba(255,255,255,.16);
}

.ifpf-video-lightbox.is-ad-gate .ifpf-video-lightbox__profile,
.ifpf-video-lightbox.is-ad-gate .ifpf-video-lightbox__actions {
    display: none !important;
}

.ifpf-video-lightbox.is-ad-gate:not(.is-ad-gate-ready) .ifpf-video-lightbox__next,
.ifpf-video-lightbox.is-ad-gate:not(.is-ad-gate-ready) .ifpf-video-lightbox__prev {
    opacity: .42;
    pointer-events: none;
}

.ifpf-video-lightbox.is-ad-gate .ifpf-video-lightbox__hint {
    display: none;
}
