/* FapSwipe Core 0.10.1 — lean feed presentation layered around the media player. */
.fapswipe-feed,
.fapswipe-swiper,
.fapswipe-slide {
    width: 100%;
    height: 100dvh;
}

.fapswipe-feed {
    position: relative;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.fapswipe-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.fapswipe-player-wrap {
    position: relative;
    width: min(100%, 720px);
    max-height: 100dvh;
}

.fapswipe-player-wrap video,
.fapswipe-player-wrap .freedomplayer,
.fapswipe-player-wrap .flowplayer,
.fapswipe-native-video {
    max-width: 100%;
    max-height: 100dvh;
}

.fapswipe-overlay {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: 76px;
    z-index: 20;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.fapswipe-title {
    margin: 4px 0;
    font-size: 1.1rem;
}

.fapswipe-title a,
.fapswipe-taxonomy a {
    color: inherit;
    pointer-events: auto;
}

.fapswipe-description {
    margin: 4px 0;
    max-width: 680px;
}

.fapswipe-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.fapswipe-actions {
    position: absolute;
    right: 16px;
    bottom: 84px;
    z-index: 21;
    display: grid;
    gap: 12px;
}

.fapswipe-actions a,
.fapswipe-actions button,
.fapswipe-prev,
.fapswipe-next {
    color: #fff;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
}

.fapswipe-prev,
.fapswipe-next {
    position: absolute;
    z-index: 30;
    right: 14px;
}

.fapswipe-prev { top: 14px; }
.fapswipe-next { top: 64px; }

.fapswipe-player-missing,
.fapswipe-empty {
    padding: 24px;
    text-align: center;
}


/*
 * Feed information visibility
 * ---------------------------
 * Visible mode is responsive: desktop keeps editorial context; phones keep only
 * the title so the player controls remain the primary bottom-layer interaction.
 * Clean View is browser-session UI state and never changes server/cache output.
 */
.fapswipe-info-toggle {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(0,0,0,.34);
    color: #fff;
    font: 600 16px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    opacity: .78;
    transition: opacity 140ms ease, background 140ms ease;
}

.fapswipe-info-toggle:hover,
.fapswipe-info-toggle:focus-visible,
.fapswipe-feed[data-fapswipe-info-hidden="1"] .fapswipe-info-toggle {
    opacity: 1;
    background: rgba(0,0,0,.62);
}

.fapswipe-info-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.fapswipe-feed[data-fapswipe-info-hidden="1"] .fapswipe-overlay,
.fapswipe-feed[data-fapswipe-info-hidden="1"] .fapswipe-actions,
.fapswipe-feed[data-fapswipe-info-hidden="1"] .fapswipe-prev,
.fapswipe-feed[data-fapswipe-info-hidden="1"] .fapswipe-next {
    display: none;
}

@media (max-width: 767px) {
    /* Mobile visible mode intentionally means title only. */
    .fapswipe-creator,
    .fapswipe-description,
    .fapswipe-duration,
    .fapswipe-taxonomy {
        display: none;
    }

    .fapswipe-overlay {
        left: 14px;
        right: 64px;
        bottom: 72px;
    }

    .fapswipe-title {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        font-size: 1rem;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    /* Keep comments/share away from the bottom control bar. */
    .fapswipe-actions {
        right: 8px;
        top: 50%;
        bottom: auto;
        gap: 10px;
        transform: translateY(-50%);
    }

    .fapswipe-info-toggle {
        top: max(10px, env(safe-area-inset-top, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fapswipe-info-toggle {
        transition: none;
    }
}
