/* =========================================
   SONARÉ ARCHIVE
========================================= */

:root {
    --red: #ad0000;
    --black: #0a0a0a;
    --white: #ffffff;
    --off-white: #f4f2ec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--off-white);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
}

body.player-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 24px 30px;

    border: none;
}

/* =========================================
   ARCHIVE INTRO
========================================= */

.archive-intro {
    padding: 55px 30px 55px;
}

.archive-intro h1 {
    margin: 0;

    font-size: clamp(70px, 7vw, 115px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.archive-period {
    color: var(--red);
}

.archive-intro p {
    margin: 22px 0 0;

    font-size: 15px;
    line-height: 1.5;
    opacity: 0.6;
}

.archive-logo {
    display: inline-flex;
    align-items: center;
}

.archive-logo img {
    display: block;
    width: 30px;
    height: 42px;
    object-fit: contain;

    transition: transform 0.3s ease;
}

.archive-logo:hover img {
    transform: scale(1.08);
}

/* =========================================
   ARCHIVE CONTENT
========================================= */

.archive-content {
    padding: 0 30px 90px;
}


/* =========================================
   RED FILTER PANEL
========================================= */

.archive-controls {
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    align-items: center;
    gap: 35px;

    padding: 22px 30px;

    background: var(--red);
    color: var(--white);

    border: 0;
}


/* ---------- FILTERS ---------- */

.archive-filter,
.archive-search {
    display: flex;
    align-items: center;
    
    min-width: 0;
}

/* ---------- INPUTS ---------- */

.archive-filter select,
.archive-search input {
    width: 100%;

    padding: 5px 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--white);

    font-size: 13px;
    outline-offset: 5px;
}

.archive-filter select {
    cursor: pointer;
}

.archive-filter select option {
    color: var(--black);
    background: var(--off-white);
}

.archive-search {
    width: 100%;
}

.archive-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.archive-search input::-webkit-search-cancel-button {
    filter: grayscale(1) brightness(0) invert(1);
}


/* ---------- SESSION COUNT ---------- */

.archive-results {
    padding: 0;

    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;

    opacity: 0.7;
}

/* GRID */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px 22px;

    margin-top: 45px;
}

/* Center the archive card when there is only one session */

.archive-grid:has(.archive-card:only-child) {
    display: flex;
    justify-content: center;
}

.archive-grid:has(.archive-card:only-child) .archive-card {
    width: 38%;
}

.archive-card {
    min-width: 0;
}

.archive-thumbnail {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    padding: 0;
    border: 0;

    overflow: hidden;
    background: var(--black);

    cursor: pointer;
}

.archive-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.archive-thumbnail:hover img {
    transform: scale(1.04);
}

.archive-play {
    position: absolute;
    top: 50%;
    left: 50%;

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

    width: 65px;
    height: 65px;

    border-radius: 50%;
    background: var(--red);
    color: var(--white);

    font-size: 18px;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);

    transition: opacity 0.3s ease, transform 0.3s ease;
}

.archive-thumbnail:hover .archive-play,
.archive-thumbnail:focus-visible .archive-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.archive-card-info {
    padding-top: 20px;
}

.archive-card-info span {
    display: block;
    margin-bottom: 12px;

    font-size: 10px;
    opacity: 0.5;
}

.archive-card-info h2 {
    margin: 0;

    font-size: clamp(25px, 2.5vw, 42px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.archive-empty {
    padding: 80px 0;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}

/* =========================================
   ARCHIVE FOOTER
========================================= */

.archive-footer {
    display: flex;
    flex-direction: column;

    padding: 35px 30px 25px;

    background: var(--red);
    color: var(--white);
}

.archive-footer-logo {
    display: block;
    width: fit-content;

    color: var(--white);
    font-size: clamp(65px, 9vw, 145px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.09em;
    text-decoration: none;
}

.archive-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;

    margin-top: 25px;
}

.archive-footer-links a {
    color: var(--white);
    font-size: 12px;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.archive-footer-links a:hover {
    opacity: 0.6;
}

.archive-footer-bottom {
    display: flex;
    justify-content: flex-end;

    margin-top: 25px;

    font-size: 11px;
    opacity: 0.65;
}

/* VIDEO PLAYER */

.archive-player {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    padding: 70px 30px;
    background: rgba(0, 0, 0, 0.97);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.archive-player.active {
    opacity: 1;
    visibility: visible;
}

.archive-player video {
    display: block;
    width: min(100%, 1200px);
    max-height: 80vh;
}

.archive-player-close {
    position: absolute;
    top: 25px;
    right: 30px;

    border: 0;
    background: transparent;
    color: var(--white);

    font-size: 26px;
    cursor: pointer;
}

/* RESPONSIVE FOUNDATION */

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .archive-header,
    .archive-content,
    .archive-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .archive-intro {
        padding: 65px 20px 80px;
    }

    .archive-intro h1 {
        font-size: clamp(55px, 12vw, 90px);
    }

    .archive-controls {
        flex-direction: column;
        gap: 25px;
    }

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

    .archive-footer span {
        font-size: 65px;
    }
}

/* =========================================
   ARCHIVE ARTIST & MUSIC LINKS
========================================= */

.archive-artist-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.archive-artist-link:hover,
.archive-artist-link:focus-visible {
    color: var(--red);
}

.archive-music-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;

    margin-top: 22px;
}

.archive-music-links a {
    color: var(--black);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;

    transition: color 0.25s ease;
}

.archive-music-links a:hover,
.archive-music-links a:focus-visible {
    color: var(--red);
}

/* =========================================
   YOUTUBE ARCHIVE PLAYER
========================================= */

.archive-player iframe {
    display: block;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
    border: 0;
    background: #0a0a0a;
}