/* ========================================= */
/* PREMIUM CUSTOM MODAL (GLOBAL)             */
/* ========================================= */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { display: flex; opacity: 1; }
.custom-modal-box {
    background: rgba(15, 20, 28, 0.95); border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 40px; max-width: 420px; width: 90%; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.active .custom-modal-box { transform: scale(1); }
.custom-modal-icon { font-size: 3.5rem; margin-bottom: 20px; }
.custom-modal-icon.danger { color: #ff4d4d; filter: drop-shadow(0 0 15px rgba(255, 77, 77, 0.4)); }
.custom-modal-title { color: #fff; font-size: 1.5rem; font-weight: 900; margin: 0 0 10px 0; letter-spacing: -0.5px; }
.custom-modal-text { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; margin-bottom: 30px; }
.custom-modal-actions { display: flex; justify-content: center; gap: 15px; }

.btn-modal-cancel { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: #fff; padding: 12px 25px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; flex: 1; }
.btn-modal-cancel:hover { background: rgba(255, 255, 255, 0.1); }
.btn-modal-danger { background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.5); color: #ff4d4d; padding: 12px 25px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; flex: 1; }
.btn-modal-danger:hover { background: #ff4d4d; color: #000; box-shadow: 0 0 15px rgba(255, 77, 77, 0.4); }

.marvel-scroll::-webkit-scrollbar { width: 6px; }
.marvel-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.marvel-scroll::-webkit-scrollbar-thumb { background: rgba(231, 76, 60, 0.5); border-radius: 10px; }
.marvel-scroll::-webkit-scrollbar-thumb:hover { background: #e74c3c; }

/* ========================================= */
/* ACTOR HOVER PROFILE POPUP                 */
/* ========================================= */
#actor-tooltip {
    position: absolute; z-index: 10000; pointer-events: none; background: #0b0e14;
    border: 1px solid var(--primary); border-radius: 12px; padding: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(0, 210, 255, 0.2);
    width: 140px; height: 200px; opacity: 0; visibility: hidden;
    transform: translateY(10px) translateX(-50%); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; justify-content: center;
}
#actor-tooltip.show { opacity: 1; visibility: visible; transform: translateY(0) translateX(-50%); }
#actor-tooltip img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #111; }
#actor-tooltip .no-pic {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #1a1f2b; border-radius: 8px; color: var(--text-dim); font-size: 0.8rem; font-weight: 700; text-align: center;
}
#actor-tooltip .no-pic i { font-size: 2rem; margin-bottom: 8px; color: rgba(255,255,255,0.1); }