/* Poster wishlist heart — icon only, no frame, burst particles */

.movie-poster-wrap .movie-card-actions {
    top: 11px !important;
    left: 11px !important;
    right: auto !important;
    gap: 0 !important;
    z-index: 8 !important;
    pointer-events: auto !important;
}

.movie-poster-wrap .wishlist-heart {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.94) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 9 !important;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.25s ease !important;
}

.movie-poster-wrap .wishlist-heart:hover {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.08);
}

.movie-poster-wrap .wishlist-heart:active {
    transform: scale(0.94);
}

.movie-poster-wrap .wishlist-heart.active {
    color: #ff5f78 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.movie-poster-wrap .wishlist-heart .fp-icon,
.movie-poster-wrap .wishlist-heart .fp-icon-heart,
.movie-poster-wrap .wishlist-heart .fp-icon-heart-outline {
    display: none !important;
}

.fp-poster-heart-icon {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fp-poster-heart-icon .fp-poster-heart-body {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.movie-poster-wrap .wishlist-heart.active .fp-poster-heart-icon {
    filter: drop-shadow(0 3px 10px rgba(255, 77, 103, 0.45));
}

.movie-poster-wrap .wishlist-heart.is-bursting .fp-poster-heart-icon {
    animation: fp-poster-heart-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fp-poster-heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.fp-poster-heart-burst {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 9999;
}

.fp-poster-heart-particle {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--s, 10px);
    height: var(--s, 10px);
    margin-left: calc(var(--s, 10px) / -2);
    margin-top: calc(var(--s, 10px) / -2);
    color: #ff6b84;
    opacity: 0;
    will-change: transform, opacity;
    animation: fp-poster-heart-float 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.fp-poster-heart-particle svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 2px 5px rgba(255, 48, 79, 0.35));
}

@keyframes fp-poster-heart-float {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3) rotate(0deg);
    }

    15% {
        opacity: 1;
        transform: translate(calc(var(--dx, 0px) * 0.18), calc(var(--dy, 0px) * 0.14)) scale(1) rotate(-8deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.5) rotate(14deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-poster-heart-particle,
    .movie-poster-wrap .wishlist-heart.is-bursting .fp-poster-heart-icon {
        animation: none !important;
    }
}

/* ============================================================================
   GLOBAL unified poster heart — applies on EVERY page and in ANY wrapper.
   Higher specificity (.wishlist-heart.js-wishlist-toggle) so it wins over the
   boxed hearts in home.css / movie.css / icons.css regardless of load order.
   VISUAL ONLY (never sets position) so it can't break a card's own layout.
   Fixes: huge unstyled hearts on /profile/wishlist, leftover boxes, and the
   multi-file duplication. One clean, no-background, animated heart everywhere.
   ========================================================================== */
.wishlist-heart.js-wishlist-toggle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.94) !important;
}
.wishlist-heart.js-wishlist-toggle:hover { background: transparent !important; box-shadow: none !important; border: 0 !important; transform: scale(1.08); }
.wishlist-heart.js-wishlist-toggle:active { transform: scale(0.94); }
.wishlist-heart.js-wishlist-toggle.active { color: #ff5f78 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.wishlist-heart.js-wishlist-toggle .fp-poster-heart-icon { width: 24px !important; height: 24px !important; flex: 0 0 24px !important; }
