﻿.artist-hero-ripple {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    transform: translateZ(0);
    isolation: isolate;
    cursor: zoom-in;
}

    /* keep your contain behavior */
    .artist-hero-ripple .artist-hero-img {
        display: block;
        width: 100%;
        height: auto;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none; /* canvas gets events */
    }

/* canvas sits on top (but we’ll draw only subtle distortion highlights) */
.artist-hero-ripple-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* neon edge returns */
.artist-hero-ripple::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(120deg, rgba(0,210,255,0), rgba(0,210,255,.55), rgba(255,140,0,.28), rgba(155,85,255,.30), rgba(0,210,255,.55), rgba(0,210,255,0) );
    background-size: 260% 260%;
    animation: heroNeonSweep 7.5s ease-in-out infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .85;
    pointer-events: none;
}

/* subtle “alive” sheen on hover */
.artist-hero-ripple:hover {
    box-shadow: 0 22px 70px rgba(0,0,0,.35), 0 0 28px rgba(0,210,255,.16), 0 0 18px rgba(255,140,0,.10);
    filter: saturate(1.06) brightness(1.03);
}

.artist-hero-hint {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: .85rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(0,210,255,.12), rgba(255,140,0,.10));
    color: rgba(238,242,247,.92);
    text-shadow: 0 0 10px rgba(0,210,255,.18);
    opacity: .0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.artist-hero-ripple:hover .artist-hero-hint {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroNeonSweep {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}


/* =========================================================
   Artist Modal — Cyber Premium usability + fullscreen
   - Better scroll feel
   - Floating scroll nav buttons
   - Fullscreen image modal styling
   ========================================================= */

/* Make scrolling feel smooth inside modal */
#artistModal .modal-body {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px; /* room for floating buttons */
}

    /* Premium scrollbar (WebKit) */
    #artistModal .modal-body::-webkit-scrollbar {
        width: 12px;
    }

    #artistModal .modal-body::-webkit-scrollbar-track {
        background: rgba(255,255,255,.04);
        border-left: 1px solid rgba(255,255,255,.08);
    }

    #artistModal .modal-body::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 3px solid rgba(0,0,0,0); /* creates padding */
        background-clip: padding-box;
        background-image: linear-gradient(180deg, rgba(0,210,255,.65), rgba(155,85,255,.45), rgba(255,140,0,.45) );
        box-shadow: 0 0 18px rgba(0,210,255,.16);
    }

/* Floating scroll helpers */
#artistModal .artist-modal-scroll {
    position: fixed;
    right: 20px;
    z-index: 1061; /* above modal content */
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(0,210,255,.16), rgba(155,85,255,.12), rgba(255,140,0,.10));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(238,242,247,.92);
    box-shadow: 0 16px 44px rgba(0,0,0,.30), 0 0 20px rgba(0,210,255,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

    #artistModal .artist-modal-scroll:hover {
        transform: translateY(-2px);
        filter: saturate(1.12) brightness(1.05);
        box-shadow: 0 18px 50px rgba(0,0,0,.36), 0 0 28px rgba(0,210,255,.18);
    }

#artistModal .artist-modal-scroll--up {
    bottom: 92px;
}

#artistModal .artist-modal-scroll--down {
    bottom: 36px;
}

/* Only show buttons when modal is open */
#artistModal:not(.show) .artist-modal-scroll {
    display: none;
}

/* Hero expand button + hint */
#artistModal .artist-hero-wrap {
    position: relative;
}

#artistModal .artist-hero-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(0,210,255,.18), rgba(155,85,255,.14));
    color: rgba(238,242,247,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 44px rgba(0,0,0,.30), 0 0 18px rgba(0,210,255,.12);
    transition: transform .16s ease, filter .16s ease;
}

    #artistModal .artist-hero-expand-btn:hover {
        transform: translateY(-2px) scale(1.03);
        filter: saturate(1.12) brightness(1.05);
    }

#artistModal .artist-hero-hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(0,0,0,.24), rgba(255,255,255,.06));
    color: rgba(238,242,247,.86);
    font-size: .85rem;
    text-shadow: 0 0 10px rgba(0,210,255,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fullscreen image modal */
.artist-image-modal {
    background: radial-gradient(1200px circle at 30% 10%, rgba(0,210,255,.18), transparent 55%), radial-gradient(1000px circle at 85% 20%, rgba(155,85,255,.16), transparent 55%), radial-gradient(900px circle at 60% 115%, rgba(255,140,0,.10), transparent 60%), linear-gradient(180deg, rgba(6,7,12,1), rgba(4,5,10,1));
}

    .artist-image-modal .modal-header {
        border-bottom: 1px solid rgba(255,255,255,.10);
        background: rgba(255,255,255,.04);
        backdrop-filter: blur(10px);
    }

.artist-image-full {
    max-width: 100vw;
    max-height: calc(100vh - 64px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Mobile: bring scroll buttons in a bit */
@media (max-width: 576px) {
    #artistModal .artist-modal-scroll {
        right: 12px;
    }
}


/* ===============================
   Artist Modal — Hero ripple + zoom
   =============================== */
#artistModal .artist-hero-wrap {
    position: relative;
    width: 100%;
    max-height: 560px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,210,255,.06), rgba(155,85,255,.05));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 55px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
}

#artistModal .artist-hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    object-position: center top;
    border-radius: 18px;
    user-select: none;
    -webkit-user-drag: none;
}

#artistModal canvas.artist-hero-ripple-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    opacity: .95;
}

@media (prefers-reduced-motion: reduce) {
    #artistModal canvas.artist-hero-ripple-canvas {
        display: none;
    }
}
