@import url("variables.css");
@import url("layout.css");
@import url("components.css");
@import url("home.css");
@import url("about.css");

/* =========================================================
   Global
   ========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--qfm-background);
    color: var(--qfm-text);
    font-family: Inter, "Segoe UI", sans-serif;
}

/* =========================================================
   Journey overview
   ========================================================= */

.journeys-hero {
    position: relative;
    padding: 8rem 0 3.5rem;
    overflow: hidden;
}

    .journeys-hero::before {
        position: absolute;
        inset: 0;
        content: "";
        background: radial-gradient( circle at top, rgba(197, 168, 62, 0.14), transparent 45%);
        pointer-events: none;
    }

.journeys-hero-content {
    position: relative;
    max-width: 850px;
    margin-inline: auto;
}

.journeys-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #c5a83e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.journeys-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.journeys-hero p {
    color: var(--qfm-muted, #aaa);
    font-size: 1.15rem;
    line-height: 1.8;
}

.journeys-hero-closing {
    color: #fff !important;
    font-weight: 500;
}

.journeys-section {
    padding: 1.5rem 0 7rem;
}

.journeys-container {
    max-width: 1440px;
    padding-inline: 2rem;
}

.journey-column {
    display: flex;
}

    .journey-column .journey-poster-link {
        height: 100%;
    }

/* =========================================================
   Journey poster cards
   ========================================================= */

.journey-poster-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 62, 0.26);
    border-radius: 1.25rem;
    background: #030807;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

    .journey-poster-link:hover {
        border-color: rgba(197, 168, 62, 0.55);
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5);
        transform: translateY(-7px);
    }

    .journey-poster-link:focus-visible {
        outline: 2px solid #c5a83e;
        outline-offset: 4px;
    }

.journey-poster-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-poster-link {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 62, 0.26);
    border-radius: 1.25rem;
    background: #030807;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* =========================================================
   Legacy journey cards

   These can be removed later if the Journey overview page
   only uses the portrait poster images.
   ========================================================= */

.journey-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

    .journey-card:hover {
        border-color: rgba(197, 168, 62, 0.28);
        box-shadow: 0 26px 65px rgba(0, 0, 0, 0.35);
        transform: translateY(-7px);
    }

.journey-card-image-link {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
}

.journey-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.journey-card:hover .journey-card-image {
    transform: scale(1.045);
}

.journey-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(3, 10, 8, 0.95), rgba(3, 10, 8, 0.1) 65%);
}

.journey-card-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #c5a83e;
    background: rgba(3, 10, 8, 0.75);
    backdrop-filter: blur(12px);
    font-size: 1.3rem;
}

.journey-card-content {
    padding: 2rem;
}

.journey-card-meta {
    margin-bottom: 1rem;
    color: #c5a83e;
    font-size: 0.88rem;
    font-weight: 600;
}

.journey-card-title {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

    .journey-card-title a {
        color: #fff;
        text-decoration: none;
    }

.journey-card-description {
    min-height: 6rem;
    margin-bottom: 1.75rem;
    color: var(--qfm-muted, #aaa);
    line-height: 1.75;
}

/* =========================================================
   Journey details
   ========================================================= */

.journey-details-page {
    background: #040b09;
}

.journey-details-hero {
    position: relative;
    display: flex;
    min-height: 760px;
    align-items: center;
    padding: 8.5rem 0 6rem;
    overflow: hidden;
    background: #040b09;
}

    .journey-details-hero::after {
        position: absolute;
        right: -10rem;
        bottom: -12rem;
        z-index: 1;
        width: 34rem;
        height: 34rem;
        border: 1px solid rgba(197, 168, 62, 0.06);
        border-radius: 50%;
        content: "";
        pointer-events: none;
    }

.journey-details-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.journey-details-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(3, 10, 8, 0.96) 0%, rgba(3, 10, 8, 0.83) 38%, rgba(3, 10, 8, 0.68) 68%, rgba(3, 10, 8, 0.58) 100% ), linear-gradient( 180deg, rgba(3, 10, 8, 0.36) 0%, rgba(3, 10, 8, 0.52) 72%, #040b09 100% );
}

.journey-details-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.release-back-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(3, 10, 8, 0.38);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

    .release-back-link:hover {
        border-color: rgba(197, 168, 62, 0.5);
        color: #c5a83e;
        background: rgba(3, 10, 8, 0.58);
    }

    .release-back-link:hover {
        color: #c5a83e;
    }

    .release-back-link:focus-visible {
        outline: 2px solid #c5a83e;
        outline-offset: 4px;
    }

.journey-details-poster-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 62, 0.42);
    border-radius: 1.4rem;
    background: #030807;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.68), 0 0 60px rgba(197, 168, 62, 0.1);
}

    .journey-details-poster-wrapper::after {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        content: "";
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        pointer-events: none;
    }

.journey-details-poster {
    display: block;
    width: 100%;
    height: auto;
}

.journey-details-hero-content {
    max-width: 760px;
    padding: 2rem 0;
}

    .journey-details-hero-content h1 {
        max-width: 760px;
        margin-bottom: 1.4rem;
        color: #fff;
        font-size: clamp(3rem, 6vw, 5.6rem);
        font-weight: 700;
        letter-spacing: -0.05em;
        line-height: 1;
        text-shadow: 0 5px 30px rgba(0, 0, 0, 0.55);
    }

.journey-details-description {
    max-width: 680px;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.journey-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
    color: #d8bd58;
    font-weight: 600;
}

/* =========================================================
   Journey track list
   ========================================================= */

.journey-tracklist-section {
    padding: 6rem 0 8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #040b09;
}

.journey-section-heading {
    max-width: 720px;
    margin-bottom: 3rem;
}

    .journey-section-heading h2 {
        margin-bottom: 0.9rem;
        color: #fff;
        font-size: clamp(2.2rem, 4vw, 3.7rem);
        letter-spacing: -0.035em;
    }

    .journey-section-heading p {
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.05rem;
    }

.journey-tracklist {
    display: grid;
    gap: 1rem;
}

.journey-track {
    display: grid;
    grid-template-columns: 3rem 150px minmax(0, 1fr) auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .journey-track:hover {
        border-color: rgba(197, 168, 62, 0.28);
        background: rgba(255, 255, 255, 0.045);
        transform: translateX(4px);
    }

.journey-track-number {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.journey-track-thumbnail-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.8rem;
    aspect-ratio: 16 / 9;
    background: #08110e;
}

    .journey-track-thumbnail-link:focus-visible {
        outline: 2px solid #c5a83e;
        outline-offset: 3px;
    }

.journey-track-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 160ms ease, transform 250ms ease;
}

.journey-track-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 160ms ease;
}

.journey-track:hover .journey-track-thumbnail {
    transform: scale(1.04);
}

.journey-track:hover .journey-track-play {
    opacity: 1;
}

.journey-track-content {
    min-width: 0;
}

    .journey-track-content h3 {
        margin-bottom: 0.65rem;
        font-size: 1.12rem;
        line-height: 1.4;
    }

        .journey-track-content h3 a {
            color: #fff;
            text-decoration: none;
            transition: color 160ms ease;
        }

            .journey-track-content h3 a:hover {
                color: #c5a83e;
            }

            .journey-track-content h3 a:focus-visible {
                outline: 2px solid #c5a83e;
                outline-offset: 3px;
            }

.journey-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.86rem;
}

    .journey-track-meta .bi-eye {
        color: var(--qfm-gold);
    }

    .journey-track-meta .bi-heart-fill {
        color: #ff6b6b;
    }

.journey-track-button {
    min-width: 108px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {
    .journey-details-hero {
        min-height: auto;
        padding: 7.5rem 0 5.5rem;
    }

    .journey-details-hero-background {
        object-position: center;
    }

    .journey-details-hero-overlay {
        background: linear-gradient( 180deg, rgba(3, 10, 8, 0.72) 0%, rgba(3, 10, 8, 0.9) 52%, #040b09 100% );
    }

    .journey-details-poster-wrapper {
        max-width: 390px;
    }

    .journey-details-hero-content {
        max-width: 680px;
        margin-inline: auto;
        padding-top: 1rem;
        text-align: center;
    }

    .journey-details-description {
        margin-inline: auto;
    }

    .journey-details-meta {
        justify-content: center;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {
    .journeys-hero {
        padding-top: 7rem;
    }

    .journeys-container {
        padding-inline: 1rem;
    }

    .journey-card-image-link {
        height: 250px;
    }

    .journey-card-description {
        min-height: auto;
    }

    .journey-details-hero {
        padding-bottom: 4.5rem;
    }

    .journey-tracklist-section {
        padding: 4.5rem 0 6rem;
    }

    .journey-track {
        grid-template-columns: 2.3rem 105px minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.8rem;
    }

    .journey-track-button {
        display: none;
    }
}

/* =========================================================
   Small mobile
   ========================================================= */
@media (max-width: 575.98px) {

    /* Journey overview */

    .journeys-hero {
        padding: 6.5rem 0 2.5rem;
    }

        .journeys-hero h1 {
            font-size: clamp(2.5rem, 12vw, 3.5rem);
        }

        .journeys-hero p {
            font-size: 1rem;
        }

    .journeys-section {
        padding-top: 1rem;
    }

    /* Journey details */

    .journey-details-hero {
        min-height: auto;
        padding: 6.8rem 0 4.5rem;
    }

    .journey-details-hero-background {
        object-position: center;
    }

    .journey-details-hero-overlay {
        background: linear-gradient( 180deg, rgba(3,10,8,.78) 0%, rgba(3,10,8,.88) 45%, #040b09 100% );
    }

    .release-back-link {
        margin-bottom: 1.75rem;
        padding: .55rem 1rem;
        font-size: .85rem;
    }

    .journey-details-poster-wrapper {
        max-width: 300px;
        margin-inline: auto;
        border-radius: 1rem;
    }

    .journey-details-hero-content {
        padding-top: 1.5rem;
        text-align: center;
    }

        .journey-details-hero-content h1 {
            font-size: clamp(2.4rem, 11vw, 3.2rem);
            line-height: 1.05;
        }

    .journey-details-description {
        margin-inline: auto;
        font-size: 1rem;
    }

    .journey-details-meta {
        justify-content: center;
    }

    /* Track list */

    .journey-track {
        grid-template-columns: 2rem 88px minmax(0,1fr);
        gap: .7rem;
        padding: .75rem;
    }

    .journey-track-content h3 {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: .4rem;
        font-size: .93rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .journey-track-meta {
        gap: .5rem;
        font-size: .74rem;
    }
}

/* =========================================================
   Explore
   ========================================================= */

.explore-page {
    background: #040b09;
}

.explore-hero {
    position: relative;
    padding: 8rem 0 3.5rem;
    overflow: hidden;
}

    .explore-hero::before {
        position: absolute;
        inset: 0;
        content: "";
        background: radial-gradient( circle at top, rgba(197, 168, 62, 0.13), transparent 45%);
        pointer-events: none;
    }

.explore-hero-content {
    position: relative;
    max-width: 780px;
    margin-inline: auto;
}

.explore-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #c5a83e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.explore-hero h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.explore-hero p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.12rem;
    line-height: 1.8;
}

.explore-section {
    padding: 1.5rem 0 8rem;
}

.explore-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) auto auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.025);
}

.explore-search {
    position: relative;
}

    .explore-search > i {
        position: absolute;
        top: 50%;
        left: 1rem;
        z-index: 2;
        color: rgba(255, 255, 255, 0.45);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .explore-search .form-control {
        min-height: 48px;
        padding-left: 2.8rem;
        border-color: rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        color: #fff;
        background: rgba(0, 0, 0, 0.22);
    }

        .explore-search .form-control::placeholder {
            color: rgba(255, 255, 255, 0.38);
        }

        .explore-search .form-control:focus {
            border-color: rgba(197, 168, 62, 0.55);
            box-shadow: 0 0 0 0.2rem rgba(197, 168, 62, 0.1);
            background: rgba(0, 0, 0, 0.3);
        }

.explore-sort .form-select {
    min-height: 48px;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.22);
}

    .explore-sort .form-select:focus {
        border-color: rgba(197, 168, 62, 0.55);
        box-shadow: 0 0 0 0.2rem rgba(197, 168, 62, 0.1);
    }

.explore-results-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
}

.explore-results-count {
    display: block;
    margin-bottom: 0.5rem;
    color: #c5a83e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.explore-results-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.035em;
}

.explore-release-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

    .explore-release-card:hover {
        border-color: rgba(197, 168, 62, 0.28);
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
        transform: translateY(-6px);
    }

.explore-release-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #08110e;
}

.explore-release-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease, opacity 180ms ease;
}

.explore-release-card:hover .explore-release-image {
    transform: scale(1.045);
}

.explore-release-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.26);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.explore-release-card:hover .explore-release-play {
    opacity: 1;
}

.explore-release-duration {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    font-size: 0.76rem;
    font-weight: 600;
    z-index: 3;
}

.explore-release-views {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

    .explore-release-views i {
        color: var(--qfm-gold);
    }

.explore-release-likes {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

    .explore-release-likes i {
        color: #ff6b6b;
    }

.explore-release-content {
    padding: 1.2rem;
}

    .explore-release-content h3 {
        margin-bottom: 0.8rem;
        font-size: 1.05rem;
        line-height: 1.45;
    }

        .explore-release-content h3 a {
            display: -webkit-box;
            overflow: hidden;
            color: #fff;
            text-decoration: none;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

            .explore-release-content h3 a:hover {
                color: #c5a83e;
            }

.explore-release-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .explore-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
    }

        .explore-toolbar > .btn-outline-light {
            grid-column: 1 / -1;
            justify-self: start;
        }
}

@media (max-width: 767.98px) {
    .explore-hero {
        padding-top: 7rem;
    }

    .explore-toolbar {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

        .explore-toolbar .btn {
            width: 100%;
        }

        .explore-toolbar > .btn-outline-light {
            grid-column: auto;
            justify-self: stretch;
        }
}

@media (max-width: 575.98px) {
    .explore-hero {
        padding: 6.5rem 0 2.5rem;
    }

    .explore-section {
        padding-top: 1rem;
    }

    .explore-hero p {
        font-size: 1rem;
    }
}
/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .journey-poster-link,
    .journey-card,
    .journey-card-image,
    .journey-track,
    .journey-track-thumbnail,
    .journey-track-play {
        transition: none;
    }

        .journey-poster-link:hover,
        .journey-card:hover,
        .journey-track:hover {
            transform: none;
        }

            .journey-card:hover .journey-card-image,
            .journey-track:hover .journey-track-thumbnail {
                transform: none;
            }
}
