/* Finepedia ad loading, sticky rail, mobile sticky footer, video facade (2026-10-15). */
.fp-ad-unit { width: 100%; text-align: center; }
.fp-ad-box { margin: 0 auto; }
.fp-ad-ph { width: 100%; margin: 0 auto; }
.ad-slot__any { display: block; }
.fp-ad-frame { max-width: 100%; }
.fp-ad-inline { max-width: 100%; overflow: hidden; }

/* In-article ads */
.ad-slot--in-content,
.ad-slot--header { clear: both; margin: 18px auto; text-align: center; overflow: hidden; }
.ad-slot--header { margin: 4px auto 16px; }
.fp-ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a8f98; margin-bottom: 4px; }

/* Feed native card */
.fp-feed-native { width: 100%; margin: 0 0 20px; }

/* Desktop sticky right rail */
.fp-rail-sticky-wrap { position: relative; }
.fp-rail-sticky { position: sticky; top: 20px; }
@media (max-width: 1023.98px) {
    .fp-rail-sticky-wrap { height: auto !important; }
    .fp-rail-sticky { position: static; }
}

/* Mobile sticky footer (anchor) - same model as Elsetube mobile_anchor */
.fp-anchor-ad { display: none; }
@media (max-width: 767px) {
    .fp-anchor-ad {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        margin: 0;
        max-height: 110px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, .12);
        padding: 4px 0 env(safe-area-inset-bottom, 0);
        text-align: center;
    }
    .fp-anchor-ad .fp-ad-unit,
    .fp-anchor-ad .fp-ad-box { max-width: 320px; margin: 0 auto; }
    .fp-anchor-ad__close {
        position: absolute;
        top: -26px;
        right: 6px;
        width: 26px;
        height: 26px;
        padding: 0;
        border: 0;
        border-radius: 13px 13px 0 0;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -3px 8px rgba(15, 23, 42, .12);
        color: #333;
        font-size: 20px;
        line-height: 26px;
        cursor: pointer;
    }
    body.fp-has-anchor { padding-bottom: calc(var(--fp-anchor-h, 58px) + 4px); }
    body.fp-has-anchor #back-to-top { bottom: calc(var(--fp-anchor-h, 58px) + 16px); }
}

/* YouTube click-to-play facade */
.fp-video-facade {
    position: absolute; inset: 0; width: 100%; height: 100%;
    padding: 0; border: 0; cursor: pointer; background: #000; display: block;
}
.fp-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-video-facade__play {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
    background: rgba(255, 0, 0, .9); border-radius: 12px;
}
.fp-video-facade__play::after {
    content: ""; position: absolute; left: 27px; top: 14px;
    border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.fp-video-facade:hover .fp-video-facade__play { background: #f00; }
