/* =========================================
   MONSIUN — OPENING
   BACKGROUND & IMAGE INTEGRATION
========================================= */

/* BASE */

:root {
    color: #F8F5E9;
    font-family: "Montserrat", sans-serif;
}

html {
    min-height: 100%;
    background: #090909;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 3rem 1.5rem;

    color: #F8F5E9;
    font-family: "Montserrat", sans-serif;

    background: transparent;

    isolation: isolate;
    position: relative;
}

/* =========================================
   FONDO CINEMATOGRÁFICO
========================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:

        /* Luz dorada superior */
        radial-gradient(
            ellipse 650px 520px at 50% 22%,
            rgba(184, 125, 30, .19),
            transparent 75%
        ),

        /* Luz naranja central */
        radial-gradient(
            ellipse 500px 420px at 50% 43%,
            rgba(117, 65, 20, .13),
            transparent 75%
        ),

        /* Luz azul inferior */
        radial-gradient(
            ellipse 600px 600px at 50% 83%,
            rgba(9, 105, 157, .23),
            transparent 75%
        ),

        /* Fondo base */
        #090909;
}

/* =========================================
   CONTENEDOR
========================================= */

.album-page {
    display: grid;
    place-items: center;
    overflow-x: hidden;
}

.album-profile {
    width: min(100%, 27rem);
    position: relative;
    isolation: isolate;
    text-align: center;

    animation: reveal .9s ease-out both;
}

/* =========================================
   ILUMINACIÓN DETRÁS DE LA PORTADA
========================================= */

.album-profile::before {
    content: "";

    position: absolute;

    width: 145%;
    height: 48%;

    top: 0;
    left: -22.5%;

    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            rgba(224, 151, 37, .17),
            rgba(153, 83, 22, .07) 45%,
            transparent 75%
        );

    filter: blur(55px);
}

/* =========================================
   PORTADA INTEGRADA
========================================= */

.album-cover {

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    display: block;

    object-fit: contain;

    border: none;
    border-radius: 0;
    box-shadow: none;

    /* Integra los tonos oscuros */
    mix-blend-mode: screen;

    filter:
        brightness(1.12)
        saturate(1.12)
        contrast(1.04);

    /* Difuminación de los cuatro extremos */
    -webkit-mask-image:
        radial-gradient(
            ellipse 78% 88% at 50% 50%,
            #000 35%,
            rgba(0,0,0,.94) 53%,
            rgba(0,0,0,.65) 72%,
            transparent 100%
        );

    mask-image:
        radial-gradient(
            ellipse 78% 88% at 50% 50%,
            #000 35%,
            rgba(0,0,0,.94) 53%,
            rgba(0,0,0,.65) 72%,
            transparent 100%
        );
}

/* =========================================
   TEXTOS
========================================= */

.album-profile .eyebrow {

    margin: 1.3rem 0 .65rem;

    color: #F5D65B;

    font-family: "Montserrat", sans-serif;
    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .3em;
    text-transform: uppercase;
}

.album-artist {

    margin: 0 0 .5rem;

    color: rgba(248,245,233,.75);

    font-family: "Montserrat", sans-serif;
    font-size: .85rem;
    font-weight: 500;

    letter-spacing: .18em;
    text-transform: uppercase;
}

.album-profile h1 {

    margin: 0;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(2.8rem, 10vw, 4rem);
    font-weight: 700;

    letter-spacing: -.065em;
    line-height: 1.1;
}

.album-profile h1 em {
    color: #F5D65B;
    font-style: normal;
}

/* =========================================
   ENLACES
========================================= */

.listening-links {

    display: grid;
    gap: .8rem;

    margin-top: 2.2rem;

    text-align: left;
}

.listening-links a {

    min-height: 3.7rem;

    display: grid;

    grid-template-columns: 2.15rem 1fr auto;

    align-items: center;
    gap: .7rem;

    padding: .65rem 1rem;

    color: #F8F5E9;

    font-family: "Montserrat", sans-serif;
    font-size: .88rem;
    font-weight: 600;

    text-decoration: none;

    border: 1px solid rgba(248,245,233,.19);
    border-radius: .7rem;

    background: rgba(248,245,233,.035);

    backdrop-filter: blur(12px);

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.listening-links a:hover,
.listening-links a:focus-visible {

    background: rgba(245,214,91,.09);

    border-color: rgba(245,214,91,.65);

    transform: translateY(-3px);

    outline: none;
}

/* ICONOS */

.platform-icon {

    width: 2rem;
    height: 2rem;

    display: grid;
    place-items: center;

    color: #F5D65B;

    border: 1px solid rgba(245,214,91,.45);
    border-radius: 50%;
}

.platform-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.platform-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.platform-icon .play {
    fill: #090909;
}

.platform-icon .spotify-line {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.apple-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.link-arrow {
    color: #F5D65B;
    font-size: 1.05rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (min-width: 768px) {

    body {
        padding: 4rem 2rem;
    }

    .album-profile {
        width: min(100%, 28rem);
    }

    .album-profile .eyebrow {
        margin-top: 1.1rem;
    }

    .listening-links {
        gap: .85rem;
    }
}

@media (max-width: 480px) {

    body {
        padding: 2.5rem 1.25rem;
    }

    .album-profile {
        width: 100%;
    }

    .album-cover {
        aspect-ratio: 16 / 9;
    }

    .album-profile .eyebrow {
        margin-top: 1rem;
    }

    .listening-links {
        margin-top: 1.8rem;
    }
}

/* ANIMACIÓN */

@keyframes reveal {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}