body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header,
#archiveControls {
    max-width: 1100px;
    margin: 20px auto;
    text-align: center;
}

#archiveReleases {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.genre-title {
    text-align: center;
    margin: 45px 0 20px;
    font-size: 2rem;
}

.archive-grid {
    display: grid !important;
    grid-template-columns:
        repeat(auto-fit, 280px) !important;
    justify-content: center !important;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.archive-grid .release-card {
    width: 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
}

.archive-grid .release-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.archive-grid .release-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.archive-grid .no-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#archiveSearch {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 700px) {

    body {
        padding: 10px;
    }

    .archive-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .genre-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 450px) {

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

.archive-header {
    max-width: 1100px;
    margin: 20px auto;
    text-align: center;
}

#archiveReleases > .submission-box {
    max-width: 1100px;
    margin: 30px auto;
    text-align: center;
}

/* =========================================
   OSSVARIUM ARCHIVE — MOBILE POLISH
   ========================================= */

@media (max-width: 700px) {

    .archive-header,
    #archiveControls,
    #archiveReleases {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #archiveSearch {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .genre-title {
        max-width: 100%;
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .archive-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .archive-grid .release-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .archive-grid .release-cover,
    .archive-grid .no-cover {
        max-width: 100%;
        box-sizing: border-box;
    }

}

@media (max-width: 450px) {

    .archive-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }

}

/* =========================================
   OSSVARIUM ARCHIVE — LONG RELEASE TITLES
   ========================================= */

@media (max-width: 450px) {

    .archive-grid .release-title {
        max-width: 100%;
        font-size: clamp(24px, 9vw, 36px);
        line-height: 1.1;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: center;
    }

}