/* =========================================================
   SONG PAGE
========================================================= */

.song-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(201, 170, 106, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 30%,
            rgba(104, 119, 157, 0.09),
            transparent 32%
        ),
        #090a0d;
    color: #f4f2ec;
}


/* =========================================================
   HERO
========================================================= */

.song-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 8vw 6rem;
    isolation: isolate;
}

.song-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 15rem;
    background:
        linear-gradient(
            to bottom,
            transparent,
            #090a0d
        );
}

.song-hero-glow {
    position: absolute;
    top: 48%;
    left: -8rem;
    z-index: -2;
    width: min(50rem, 68vw);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    background:
        radial-gradient(
            circle,
            rgba(201, 170, 106, 0.13),
            rgba(108, 118, 154, 0.06) 36%,
            transparent 68%
        );
    filter: blur(22px);
}

.song-hero-layout {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(300px, 440px)
        minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}


/* =========================================================
   ARTWORK
========================================================= */

.song-artwork {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.song-artwork::before {
    content: "";
    position: absolute;
    inset: 8% -5% -9%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(36px);
}

.song-artwork img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow:
        0 36px 85px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.07);
}


/* =========================================================
   SONG INTRODUCTION
========================================================= */

.song-introduction {
    width: 100%;
    min-width: 0;
    max-width: 720px;
}

.song-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.2rem;
    color: #81817c;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.song-breadcrumbs a {
    color: #a8a69f;
    text-decoration: none;
    transition: color 220ms ease;
}

.song-breadcrumbs a:hover {
    color: #c9aa6a;
}

.song-breadcrumbs a:focus-visible {
    outline: 2px solid #c9aa6a;
    outline-offset: 4px;
}

.song-label,
.song-section-label {
    margin: 0 0 1rem;
    color: #c9aa6a;
    font-size: 0.74rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.song-introduction h1 {
    max-width: 100%;
    margin: 0;
    color: #f4f2ec;
    font-size: clamp(3.2rem, 6vw, 6.2rem);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
    hyphens: auto;
}

.song-artist {
    margin: 1.2rem 0 2.2rem;
    color: #c8c6c0;
    font-size: 0.95rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.song-intro {
    max-width: 650px;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(201, 170, 106, 0.6);
    color: #cbc8c0;
    font-size: clamp(1.12rem, 1.8vw, 1.35rem);
    line-height: 1.8;
}


/* =========================================================
   STREAMING LINKS
========================================================= */

.song-listen-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.song-button {
    min-height: 3.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    font-size: 0.74rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        transform 220ms ease,
        color 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
}

.song-button:hover {
    transform: translateY(-2px);
}

.song-button:focus-visible {
    outline: 2px solid #dfc487;
    outline-offset: 4px;
}

.song-button-primary {
    border-color: #c9aa6a;
    background: #c9aa6a;
    color: #090a0d;
}

.song-button-primary:hover {
    border-color: #dfc487;
    background: #dfc487;
}

.song-button-secondary {
    border-color: rgba(244, 242, 236, 0.22);
    background: rgba(255, 255, 255, 0.025);
    color: #f4f2ec;
}

.song-button-secondary:hover {
    border-color: rgba(201, 170, 106, 0.7);
    color: #dfc487;
}


/* =========================================================
   SONG DETAILS
========================================================= */

.song-details {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.song-details div {
    min-width: 0;
}

.song-details dt {
    margin-bottom: 0.4rem;
    color: #797a76;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.song-details dd {
    margin: 0;
    color: #dedbd3;
    font-size: 0.9rem;
    overflow-wrap: break-word;
}


/* =========================================================
   GENERAL SONG SECTIONS
========================================================= */

.song-section {
    width: min(1120px, calc(100% - 16vw));
    margin: 0 auto;
    padding: 7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.song-reflection-section,
.song-story-section {
    display: grid;
    grid-template-columns:
        minmax(250px, 0.8fr)
        minmax(320px, 1.2fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.song-section-heading {
    max-width: 520px;
}

.song-section-heading h2 {
    margin: 0;
    color: #f4f2ec;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.song-prose {
    max-width: 720px;
    color: #c4c1ba;
    font-size: clamp(1.04rem, 1.45vw, 1.18rem);
    line-height: 1.95;
}

.song-prose p {
    margin: 0 0 1.5rem;
}

.song-prose p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARTIST NOTE
========================================================= */

.song-author-panel {
    padding: clamp(2.2rem, 6vw, 5rem);
    border: 1px solid rgba(201, 170, 106, 0.2);
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(201, 170, 106, 0.09),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.012)
        );
}

.song-author-panel blockquote {
    max-width: 850px;
    margin: 0;
    color: #f0ede5;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.55;
    font-style: italic;
}

.song-signature {
    margin: 2rem 0 0;
    color: #c9aa6a;
    font-style: italic;
}


/* =========================================================
   SYMBOLS
========================================================= */

.symbols-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.symbol-card {
    min-height: 200px;
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
    transition:
        transform 250ms ease,
        border-color 250ms ease,
        background 250ms ease;
}

.symbol-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 170, 106, 0.3);
    background: rgba(201, 170, 106, 0.035);
}

.symbol-card h3 {
    margin: 0 0 0.8rem;
    color: #f4f2ec;
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 400;
}

.symbol-card p {
    margin: 0;
    color: #aaa8a1;
    font-size: 0.94rem;
    line-height: 1.7;
}


/* =========================================================
   LAST ECHO
========================================================= */

.last-echo-section {
    text-align: center;
}

.last-echo-section blockquote {
    max-width: 850px;
    margin: 0 auto;
    color: #f4f2ec;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1.3;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.025em;
}


/* =========================================================
   PREVIOUS / NEXT SONG NAVIGATION
========================================================= */

.song-navigation {
    width: min(1120px, calc(100% - 16vw));
    margin: 0 auto;
    padding: 0 0 8rem;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.song-navigation-link {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
    color: inherit;
    text-decoration: none;
    transition:
        border-color 250ms ease,
        background 250ms ease,
        transform 250ms ease;
}

.song-navigation-link:hover {
    border-color: rgba(201, 170, 106, 0.38);
    background: rgba(201, 170, 106, 0.045);
    transform: translateY(-4px);
}

.song-navigation-link:focus-visible {
    outline: 2px solid #c9aa6a;
    outline-offset: 4px;
}

.song-navigation-next {
    text-align: right;
    align-items: flex-end;
}

.song-navigation-label {
    margin-bottom: 0.55rem;
    color: #868680;
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.song-navigation-title {
    color: #f4f2ec;
    font-size: clamp(1.2rem, 2.1vw, 1.8rem);
    line-height: 1.25;
    overflow-wrap: break-word;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .song-hero {
        min-height: auto;
        padding:
            8.5rem 1.5rem
            5rem;
    }

    .song-hero-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .song-artwork {
        max-width: 500px;
    }

    .song-introduction {
        max-width: 760px;
        margin: 0 auto;
    }

    .song-section {
        width: calc(100% - 3rem);
        padding: 5.5rem 0;
    }

    .song-reflection-section,
    .song-story-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .song-navigation {
        width: calc(100% - 3rem);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {
    .song-hero {
        padding-top: 7.5rem;
    }

    .song-breadcrumbs {
        margin-bottom: 1.7rem;
    }

    .song-introduction h1 {
        font-size: clamp(2.8rem, 14vw, 4.7rem);
        line-height: 1;
    }

    .song-intro {
        padding-left: 1.1rem;
        font-size: 1.05rem;
    }

    .song-details {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .song-section-heading h2 {
        font-size: clamp(2.2rem, 11vw, 3.8rem);
    }

    .song-author-panel blockquote {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
    }

    .symbols-grid {
        grid-template-columns: 1fr;
    }

    .symbol-card {
        min-height: auto;
    }

    .song-navigation {
        grid-template-columns: 1fr;
        padding-bottom: 5rem;
    }

    .song-navigation-next {
        text-align: left;
        align-items: flex-start;
    }

    .song-navigation-title {
        font-size: 1.3rem;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .song-hero {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .song-hero-layout {
        gap: 3rem;
    }

    .song-section,
    .song-navigation {
        width: calc(100% - 2rem);
    }

    .song-section {
        padding: 4.5rem 0;
    }

    .song-listen-links {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .song-button {
        width: 100%;
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }

    .song-author-panel {
        padding: 2rem 1.4rem;
    }

    .symbol-card {
        padding: 1.5rem;
    }

    .symbol-card h3 {
        font-size: 1.1rem;
    }

    .symbol-card p {
        font-size: 0.9rem;
    }

    .song-navigation-link {
        min-height: 130px;
        padding: 1.5rem;
    }

    .song-navigation-title {
        font-size: 1.2rem;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
    .song-listen-links {
        grid-template-columns: 1fr;
    }

    .song-button {
        min-height: 2.9rem;
    }

    .song-navigation-link {
        min-height: 120px;
        padding: 1.3rem;
    }

    .song-navigation-title {
        font-size: 1.1rem;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .song-button,
    .song-navigation-link,
    .song-breadcrumbs a,
    .symbol-card {
        transition: none;
    }

    .song-button:hover,
    .song-navigation-link:hover,
    .symbol-card:hover {
        transform: none;
    }
}