/* Compact album card for individual album pages
   - Use by adding the class `compact` to an existing `.album-card` or use
     the utility class `.album-card--compact`.
   - Keeps cover small, tight text, and minimal ornamentation for dense layouts.
*/

.album-card.compact,
.album-card--compact {
    /* vertical layout: cover on top, info below */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid #1e2028;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
    min-height: auto;
}

.album-card.compact:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.album-card.compact:focus-within,
.album-card--compact:focus-within {
    outline: 2px solid rgba(125, 211, 252, .12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.album-card.compact .album-cover,
.album-card--compact .album-cover {
    /* fixed absolute square size to ensure uniform appearance */
    width: 200px;
    height: 200px;
    min-width: 200px;
    max-width: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

.album-card.compact .album-info,
.album-card--compact .album-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.album-card.compact .album-title,
.album-card--compact .album-title {
    margin: 6px 0 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--fg, #ffffff);
    white-space: normal;
    overflow: visible;
}

.album-card.compact .album-meta,
.album-card--compact .album-meta {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: normal;
}

/* Small-screen: make the "Other releases" box horizontally scrollable
   Keep this scoped to the #related.grid container so the rest of the site
   keeps its normal grid/layout behavior on larger screens. */
@media (max-width: 1000px) {
    /* use the id+class exactly as in the markup */
    #related.grid {
        display: flex; /* row layout for horizontal scroll */
        flex-direction: row;
        gap: 12px;
        padding: 12px 8px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    /* ensure each album card stays a fixed inline item inside the scroller */
    #related.grid .album-card {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* slightly reduce cover size on very small screens to fit more items */
    #related.grid .album-cover {
        width: 160px;
        height: 160px;
        min-width: 160px;
    }

    /* optional: minimal scrollbar styling for webkit */
    #related.grid::-webkit-scrollbar {
        height: 8px;
    }
    #related.grid::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.06);
        border-radius: 999px;
    }
}