/* =========================================================
   ALBUM SINGLE PAGE
========================================================= */

.album-single-page {
    width: 100%;
    padding: 34px 0 70px;
    background: #f5f5f6;
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.album-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: start;
}

.album-single-main {
    min-width: 0;
}


/* =========================================================
   CONNECTED ALBUM CONTENT
========================================================= */

/*
|--------------------------------------------------------------------------
| The Hero, Details, Description and Tracklist are visually connected.
|--------------------------------------------------------------------------
|
| We do NOT give every section its own card anymore.
|
| Only the outside of the complete content area has a border.
|--------------------------------------------------------------------------
*/


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

.album-hero {
    position: relative;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);

    gap: 30px;

    align-items: center;

    padding: 28px 30px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e3e8;
    border-bottom: 0;

    border-radius: 14px 14px 0 0;
}


/*
|--------------------------------------------------------------------------
| Decorative Background
|--------------------------------------------------------------------------
*/

.album-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    bottom: -135px;

    border: 48px solid rgba(113, 0, 226, 0.025);

    border-radius: 50%;

    pointer-events: none;
}


.album-hero-cover-wrap,
.album-hero-content {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ALBUM COVER
========================================================= */

.album-hero-cover {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 10px;

    background: #ececee;
}


.album-hero-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   ALBUM TYPE BADGE
========================================================= */

.album-hero-type {
    position: absolute;

    top: 12px;
    left: 12px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 27px;

    padding: 0 10px;

    border-radius: 5px;

    background: var(--primary);

    color: #ffffff;

    font-size: 9px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   ALBUM HERO CONTENT
========================================================= */

.album-hero-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.album-hero h1 {
    max-width: 720px;

    margin: 0;

    color: #16171b;

    font-size: clamp(
        30px,
        4vw,
        46px
    );

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -1.3px;
}


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

.album-hero-artist {
    display: inline-block;

    margin-top: 10px;

    color: #4d4f55;

    font-size: 17px;
    font-weight: 750;

    line-height: 1.3;

    text-decoration: none;
}


.album-hero-artist:hover {
    color: var(--primary);
}


/* =========================================================
   META
========================================================= */

.album-hero-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0;

    margin-top: 14px;

    color: #777a81;

    font-size: 11px;
    font-weight: 650;

    line-height: 1.4;
}


.album-hero-meta span {
    display: inline-flex;
    align-items: center;
}


.album-hero-meta span + span::before {
    content: "•";

    margin: 0 8px;

    color: #b5b7bb;
}


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

.album-hero-excerpt {
    max-width: 650px;

    margin: 16px 0 0;

    color: #666970;

    font-size: 13px;

    line-height: 1.75;
}


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

.album-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}


.album-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 41px;

    padding: 0 16px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none !important;

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


.album-button:hover {
    transform: translateY(-1px);
}


.album-button-primary {
    border: 1px solid var(--primary);

    background: var(--primary);

    color: #ffffff !important;
}


.album-button-primary:hover {
    opacity: 0.92;
}


.album-button-secondary {
    border: 1px solid #dedfe3;

    background: #ffffff;

    color: #28292d !important;
}


.album-button-secondary:hover {
    border-color: #c7c8ce;

    background: #fafafa;
}


/* =========================================================
   CONNECTED PANELS
========================================================= */

.album-panel {
    /*
    |--------------------------------------------------------------------------
    | IMPORTANT
    |--------------------------------------------------------------------------
    |
    | No margins.
    | No individual card borders.
    | No individual border radius.
    |
    | This is what makes all sections appear connected.
    |--------------------------------------------------------------------------
    */

    margin: 0;

    padding: 28px 30px;

    background: #ffffff;

    border: 0;

    border-left: 1px solid #e1e3e8;
    border-right: 1px solid #e1e3e8;

    border-radius: 0;

    box-shadow: none;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.album-section-heading {
    margin-bottom: 19px;
}


.album-section-heading > span,
.album-section-heading > div > span {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.album-section-heading h2 {
    margin: 0;

    color: #191a1e;

    font-size: 23px;
    font-weight: 850;

    line-height: 1.2;

    letter-spacing: -0.6px;
}


.album-section-heading-row {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}


.album-track-count {
    flex: 0 0 auto;

    color: #96989f;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1px;
}


/* =========================================================
   ALBUM INFORMATION
========================================================= */

.album-info-panel {
    padding-top: 26px;
    padding-bottom: 24px;
}


/* =========================================================
   ALBUM FACTS
========================================================= */

.album-facts {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    margin: 0;

    border: 0;
}


.album-facts > div {
    display: grid;

    grid-template-columns:
        120px
        minmax(0, 1fr);

    gap: 16px;

    align-items: start;

    padding: 12px 0;

    border: 0;
}


.album-facts > div:nth-child(odd) {
    padding-right: 24px;
}


.album-facts > div:nth-child(even) {
    padding-left: 24px;
}


/*
|--------------------------------------------------------------------------
| No divider lines between the album information rows.
|--------------------------------------------------------------------------
*/

.album-facts dt {
    color: #777a80;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.5;
}


.album-facts dd {
    min-width: 0;

    margin: 0;

    color: #25262a;

    font-size: 14px;
    font-weight: 650;

    line-height: 1.5;
}


.album-facts dd a {
    color: var(--primary);

    font-weight: 750;

    text-decoration: none;
}


.album-facts dd a:hover {
    text-decoration: underline;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.album-description-panel {
    padding-top: 24px;
    padding-bottom: 28px;
}


/*
|--------------------------------------------------------------------------
| No line between Details and Description
|--------------------------------------------------------------------------
*/

.album-info-panel + .album-description-panel {
    border-top: 0;
}


.album-description-content {
    color: #292a2e;

    font-size: 16px;

    line-height: 1.85;
}


.album-description-content > :first-child {
    margin-top: 0;
}


.album-description-content > :last-child {
    margin-bottom: 0;
}


.album-description-content p {
    margin: 0 0 20px;
}


.album-description-content h2,
.album-description-content h3,
.album-description-content h4 {
    margin: 28px 0 12px;

    color: #202126;

    font-weight: 850;

    line-height: 1.3;
}


.album-description-content h2 {
    font-size: 23px;
}


.album-description-content h3 {
    font-size: 20px;
}


.album-description-content h4 {
    font-size: 17px;
}


.album-description-content ul,
.album-description-content ol {
    margin: 16px 0 20px 22px;
}


.album-description-content li + li {
    margin-top: 7px;
}


.album-description-content a {
    color: var(--primary);

    font-weight: 650;

    text-decoration: underline;

    text-underline-offset: 2px;
}


.album-description-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 22px 0;

    border-radius: 9px;
}


.album-description-content blockquote {
    margin: 22px 0;

    padding: 15px 18px;

    border-left: 3px solid var(--primary);

    background: #f8f5fd;

    color: #55575d;
}


/* =========================================================
   TRACKLIST PANEL
========================================================= */

.album-tracklist-panel {
    /*
    |--------------------------------------------------------------------------
    | Last part of connected Album card.
    |--------------------------------------------------------------------------
    */

    padding-top: 26px;
    padding-bottom: 24px;

    border-bottom: 1px solid #e1e3e8;

    border-radius: 0 0 14px 14px;
}


/*
|--------------------------------------------------------------------------
| No divider between Description and Tracklist
|--------------------------------------------------------------------------
*/

.album-description-panel + .album-tracklist-panel,
.album-info-panel + .album-tracklist-panel {
    border-top: 0;
}


/* =========================================================
   TRACKLIST
========================================================= */

.album-tracklist {
    margin: 0;

    border: 0;
}


/* =========================================================
   TRACK ROW
========================================================= */

.album-track-row {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr)
        55px
        32px;

    gap: 12px;

    align-items: center;

    min-height: 64px;

    padding: 6px 0;

    border: 0;

    color: inherit;

    text-decoration: none;

    transition:
        background 0.18s ease,
        padding 0.18s ease,
        margin 0.18s ease;
}


/*
|--------------------------------------------------------------------------
| Track Hover
|--------------------------------------------------------------------------
*/

.album-track-row:hover {
    margin-left: -12px;
    margin-right: -12px;

    padding-left: 12px;
    padding-right: 12px;

    border-radius: 8px;

    background: #f8f5fd;
}


/* =========================================================
   TRACK NUMBER
========================================================= */

.album-track-number {
    color: #aaaab2;

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 0.4px;
}


/* =========================================================
   TRACK MAIN CONTENT
========================================================= */

.album-track-main {
    min-width: 0;
}


.album-track-main strong {
    display: block;

    overflow: hidden;

    color: #202126;

    font-size: 14px;
    font-weight: 750;

    line-height: 1.4;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.album-track-main small {
    display: block;

    overflow: hidden;

    margin-top: 3px;

    color: #85888f;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.4;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   TRACK DURATION
========================================================= */

.album-track-duration {
    color: #90939a;

    font-size: 11px;
    font-weight: 650;

    text-align: right;
}


/* =========================================================
   TRACK ARROW
========================================================= */

.album-track-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #f1f1f4;

    color: var(--primary);

    font-size: 14px;
    font-weight: 850;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


.album-track-row:hover
.album-track-arrow {
    background: var(--primary);

    color: #ffffff;
}


/* =========================================================
   EMPTY TRACKLIST
========================================================= */

.album-empty-tracklist {
    padding: 24px 10px;

    border: 0;

    background: transparent;

    text-align: center;
}


.album-empty-tracklist strong {
    display: block;

    color: #292a2e;

    font-size: 14px;
    font-weight: 800;
}


.album-empty-tracklist p {
    margin: 7px 0 0;

    color: #85888f;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   MORE RELEASES
========================================================= */

.album-more-section {
    margin-top: 30px;
}


/*
|--------------------------------------------------------------------------
| More Releases is intentionally separate.
|--------------------------------------------------------------------------
|
| The Music single page also keeps related content separate
| from the main connected post content.
|--------------------------------------------------------------------------
*/

.album-more-section .album-section-heading {
    margin-bottom: 18px;
}


.album-more-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 25px 18px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.album-single-layout
> .archive-sidebar {
    position: sticky;

    top: 94px;
}


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

@media (
    max-width: 1100px
) {

    .album-single-layout {
        grid-template-columns:
            minmax(0, 1fr)
            285px;

        gap: 28px;
    }


    .album-hero {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        gap: 26px;

        padding: 26px;
    }


    .album-facts {
        grid-template-columns: 1fr;
    }


    .album-facts > div:nth-child(odd),
    .album-facts > div:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
    }
}


/* =========================================================
   SIDEBAR MOVES BELOW
========================================================= */

@media (
    max-width: 850px
) {

    .album-single-page {
        padding-top: 28px;
    }


    .album-single-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .album-single-layout
    > .archive-sidebar {
        position: static;
    }


    .album-hero {
        grid-template-columns:
            230px
            minmax(0, 1fr);
    }


    .album-more-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}


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

@media (
    max-width: 650px
) {

    .album-single-page {
        padding: 20px 0 50px;
    }


    /*
    |--------------------------------------------------------------------------
    | HERO
    |--------------------------------------------------------------------------
    */

    .album-hero {
        grid-template-columns: 1fr;

        gap: 22px;

        padding: 18px;

        border-radius: 11px 11px 0 0;
    }


    .album-hero-cover-wrap {
        display: flex;

        justify-content: center;
    }


    .album-hero-cover {
        width: min(
            100%,
            360px
        );

        border-radius: 9px;
    }


    .album-hero h1 {
        font-size: 31px;

        line-height: 1.08;

        letter-spacing: -1px;
    }


    .album-hero-artist {
        font-size: 16px;
    }


    .album-hero-excerpt {
        font-size: 13px;

        line-height: 1.7;
    }


    /*
    |--------------------------------------------------------------------------
    | CONNECTED SECTIONS
    |--------------------------------------------------------------------------
    */

    .album-panel {
        margin: 0;

        padding: 23px 18px;

        border-radius: 0;
    }


    .album-tracklist-panel {
        border-radius: 0 0 11px 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | HEADINGS
    |--------------------------------------------------------------------------
    */

    .album-section-heading {
        margin-bottom: 17px;
    }


    .album-section-heading h2 {
        font-size: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | FACTS
    |--------------------------------------------------------------------------
    */

    .album-facts > div {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        gap: 12px;

        padding: 9px 0;
    }


    .album-facts dt {
        font-size: 12px;
    }


    .album-facts dd {
        font-size: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | DESCRIPTION
    |--------------------------------------------------------------------------
    */

    .album-description-content {
        font-size: 15px;

        line-height: 1.8;
    }


    /*
    |--------------------------------------------------------------------------
    | TRACKLIST
    |--------------------------------------------------------------------------
    */

    .album-track-row {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            30px;

        gap: 9px;

        min-height: 59px;
    }


    .album-track-duration {
        display: none;
    }


    .album-track-main strong {
        font-size: 13px;
    }


    .album-track-main small {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | MORE RELEASES
    |--------------------------------------------------------------------------
    */

    .album-more-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 22px 14px;
    }
}


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

@media (
    max-width: 420px
) {

    .album-hero h1 {
        font-size: 28px;
    }


    .album-button {
        flex: 1 1 auto;
    }


    .album-section-heading-row {
        align-items: flex-start;
    }


    .album-track-count {
        padding-top: 3px;
    }


    .album-facts > div {
        grid-template-columns:
            88px
            minmax(0, 1fr);
    }
}