/* ========= TYPO ========= */
body{
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.font-head{
    font-family: "Saira Semi Condensed", system-ui, sans-serif;
    letter-spacing: .10em;
    text-transform: uppercase;
}

/* ========= THEME ========= */
:root{
    --bg-0: #05060a;
    --text: #e9ecf3;
    --muted: #8a90a8;

    --stroke: rgba(255,255,255,.10);
    --stroke-2: rgba(255,255,255,.14);

    --surface-1: rgba(11,16,32,.35);
    --surface-2: rgba(14,21,48,.42);

    --cyan: #1ef0ff;
    --blue: #5b6cff;
    --violet: #9b4dff;
    --pink: #ff2fa4;

    --btn-grad: linear-gradient(120deg,
    var(--cyan) 0%,
    var(--blue) 35%,
    var(--violet) 65%,
    var(--pink) 100%
    );
}

html,
body{
    background: var(--bg-0);
    color: var(--text);
}

.text-secondary,
.link-secondary,
small{
    color: var(--muted) !important;
}

a.link-secondary:hover{
    color: var(--text) !important;
}

.border-top,
.border-bottom,
hr{
    border-color: var(--stroke) !important;
}

footer{
    background: rgba(5,6,10,.65);
}

/* ========= ACCESSIBILITY ========= */
:focus-visible{
    outline: 2px solid rgba(30,240,255,.75);
    outline-offset: 3px;
}

/* ========= NAVBAR ========= */
header{
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar{
    background: rgba(5,6,10,.58) !important;
    backdrop-filter: blur(12px);
    border-bottom: none;
    padding-top: .35rem;
    padding-bottom: .35rem;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

@supports not (backdrop-filter: blur(12px)){
    .navbar{
        background: rgba(5,6,10,.90) !important;
    }
}

.nav-link{
    color: var(--text) !important;
}

.nav-link:hover{
    color: rgba(30,240,255,.95) !important;
}

.navbar-toggler{
    border-color: var(--stroke-2) !important;
}

.navbar-toggler:focus{
    box-shadow: 0 0 0 .15rem rgba(123,77,255,.25);
}

.navbar .navbar-toggler-icon{
    background-image: var(--bs-navbar-toggler-icon-bg) !important;
    filter: none !important;
    opacity: 1 !important;
}

.navbar.navbar-dark{
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28233,236,243,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-logo{
    height: 48px;
    width: auto;
    display: block;
    opacity: .95;
    filter: drop-shadow(0 0 4px rgba(30,240,255,.18));
}

/* ========= HERO BASE ========= */
.hero,
.release-hero{
    position: relative;
    overflow: hidden;
    background: var(--bg-0);
}

.hero .container,
.release-hero .container{
    position: relative;
    z-index: 3;
}

.hero-kicker{
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(233,236,243,.78);
}

.display-4{
    line-height: .95;
    letter-spacing: .16em;
    text-shadow: 0 0 18px rgba(123,77,255,.10);
}

/* ========= HERO FULL ========= */
.hero::before{
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background:
            radial-gradient(1100px 750px at 18% 12%, rgba(123,77,255,.16), transparent 58%),
            radial-gradient(900px 650px at 82% 34%, rgba(30,240,255,.12), transparent 60%),
            radial-gradient(900px 650px at 72% 78%, rgba(255,47,164,.12), transparent 62%),
            radial-gradient(700px 520px at 48% 52%, rgba(91,108,255,.08), transparent 60%),
            conic-gradient(
                    from 210deg at 52% 44%,
                    rgba(123,77,255,.06),
                    rgba(30,240,255,.04),
                    rgba(255,47,164,.05),
                    rgba(123,77,255,.06)
            );
    opacity: .78;
    filter: saturate(1.07) contrast(1.02);
    transform: translateZ(0);
    will-change: opacity;
}

.hero::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
            radial-gradient(900px 700px at 20% 30%, rgba(0,0,0,.35), transparent 60%),
            linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.35) 100%);
    opacity: .9;
}

.hero-starfield{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .52;
    mix-blend-mode: screen;
    transform: translateZ(0);
}

.hero-starfield canvas{
    width: 100%;
    height: 100%;
    display: block;
}

/* ========= HERO LIGHT / RELEASE ========= */
.release-hero::before{
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
            radial-gradient(900px 650px at 18% 22%, rgba(123,77,255,.12), transparent 60%),
            radial-gradient(900px 650px at 82% 34%, rgba(30,240,255,.10), transparent 60%),
            radial-gradient(900px 650px at 72% 78%, rgba(255,47,164,.10), transparent 62%);
    opacity: .75;
}

/* ========= GENERIC PAGE HERO ========= */
.page-hero{
    background: rgba(14,21,48,.22);
}

/* ========= FRAMES / MEDIA ========= */
.cover-frame{
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(11,16,32,.55), rgba(11,16,32,.20));
    box-shadow:
            0 0 0 1px rgba(255,255,255,.05) inset,
            0 30px 90px rgba(0,0,0,.65),
            0 0 60px rgba(123,77,255,.18);
}

/* ========= BUTTONS ========= */
.btn{
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@keyframes neonPulse{
    0%{
        box-shadow:
                0 0 10px rgba(30,240,255,.25),
                0 0 22px rgba(123,77,255,.18),
                0 0 38px rgba(255,47,164,.10);
    }
    50%{
        box-shadow:
                0 0 16px rgba(30,240,255,.45),
                0 0 36px rgba(123,77,255,.30),
                0 0 70px rgba(255,47,164,.22);
    }
    100%{
        box-shadow:
                0 0 10px rgba(30,240,255,.25),
                0 0 22px rgba(123,77,255,.18),
                0 0 38px rgba(255,47,164,.10);
    }
}

@keyframes gradientShift{
    0%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}

.btn-primary{
    color: #071018;
    border: none;
    background: var(--btn-grad);
    background-size: 200% 200%;
    animation: neonPulse 3s ease-in-out infinite, gradientShift 5.5s linear infinite;
}

.btn-primary:hover{
    filter: brightness(1.12) saturate(1.1);
    box-shadow:
            0 0 22px rgba(30,240,255,.55),
            0 0 48px rgba(123,77,255,.45),
            0 0 90px rgba(255,47,164,.35),
            0 12px 32px rgba(0,0,0,.45);
}

.btn-primary:focus{
    box-shadow:
            0 0 0 .2rem rgba(123,77,255,.22),
            0 10px 30px rgba(123,77,255,.18);
}

.btn-outline-primary{
    color: var(--text);
    border-color: rgba(30,240,255,.45);
    background: rgba(30,240,255,.03);
}

.btn-outline-primary:hover{
    color: #071018;
    background: rgba(30,240,255,.9);
    border-color: rgba(30,240,255,.9);
}

.btn-outline-secondary{
    color: rgba(233,236,243,.85);
    border-color: var(--stroke-2);
    background: rgba(255,255,255,.02);
}

.btn-outline-secondary:hover{
    color: var(--text);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.22);
}

/* ========= LINKS ========= */
.support-link{
    color: rgba(30,240,255,.88);
    letter-spacing: .14em;
}

.support-link:hover{
    color: var(--text);
    text-shadow: 0 0 10px rgba(123,77,255,.35);
}

/* ========= CARDS ========= */
.album-card{
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 0 !important;
    background: rgba(11,16,32,.55);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.album-card:hover{
    transform: translateY(-4px);
    border-color: rgba(123,77,255,.35);
    box-shadow: 0 26px 70px rgba(0,0,0,.55);
}

.album-cover{
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--stroke);
    background: rgba(0,0,0,.12);
}

.album-cover img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.album-card .album-meta{
    padding: 1rem 1rem 1.1rem;
}

.album-card .album-sub{
    margin: 0 0 .75rem;
    color: var(--muted);
}

/* variante più leggera per pagine elenco */
.page-releases .album-card{
    box-shadow: 0 14px 40px rgba(0,0,0,.32);
}

.page-releases .album-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 22px 58px rgba(0,0,0,.48);
}

/* ========= PRIVACY / NOTES ========= */
.privacy-note{
    font-size: .875rem;
    color: rgba(138,144,168,.95);
}

.privacy-note a{
    color: rgba(30,240,255,.85);
    text-decoration: none;
}

.privacy-note a:hover{
    color: var(--text);
    text-decoration: underline;
}

/* ========= SPOTIFY EMBED ========= */
.spotify-embed{
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(11,16,32,.40);
    box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.spotify-embed iframe{
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

.spotify-embed::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: opacity .35s ease;
}

.spotify-embed.ready iframe{
    opacity: 1;
    transform: none;
}

.spotify-embed.ready::before{
    opacity: 0;
}

/* ========= FADE IN ========= */
.fade-up{
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .8s cubic-bezier(.22,.61,.36,1) forwards;
}

.fade-delay-1{ animation-delay: .20s; }
.fade-delay-2{ animation-delay: .60s; }

.cover-frame.fade-up{
    transform: translateY(24px) scale(.95);
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px){
    .hero-starfield{ opacity: .40; }
    .hero::before{ opacity: .66; }
}

@media (max-width: 576px){
    .container{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ========= REDUCED MOTION ========= */
@media (prefers-reduced-motion: reduce){
    .btn-primary{
        animation: none;
    }

    .hero-starfield{
        display: none;
    }

    .fade-up{
        opacity: 1;
        transform: none;
        animation: none;
    }

    .album-card,
    .album-card:hover{
        transform: none;
        transition: none;
    }

    .spotify-embed iframe,
    .spotify-embed::before{
        transition: none;
    }
}