.hma-album-gallery {
    width: min(1120px, 100%);
    max-width: 100%;
    margin: 0 auto;
    color: #fff;
    overflow-x: hidden;
}

.hma-gallery-head {
    min-height: 176px;
    display: grid;
    align-content: end;
    margin-bottom: 28px;
}

.hma-gallery-head span {
    color: #c8aa6a;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.hma-gallery-head h1 {
    margin: 8px 0 0;
    color: #c8aa6a;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 0.96;
    text-transform: uppercase;
}

.hma-gallery-head p {
    max-width: 560px;
    margin: 12px 0 0;
    color: #b9b9b9;
    line-height: 1.45;
}

.hma-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hma-album-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.hma-cover {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #070707;
    border: 0;
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.72),
        0 12px 28px rgba(20, 20, 20, 0.58);
    transform: scale(1);
    transform-origin: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.hma-cover img,
.hma-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hma-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.46)),
        rgba(0, 0, 0, 0);
    opacity: 0.65;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    transition: opacity 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hma-play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 180ms ease, transform 180ms ease;
}

.hma-play-mark::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.hma-album-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0 2px;
}

.hma-album-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hma-album-copy span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b9b9b9;
    font-size: 12px;
    font-weight: 700;
}

.hma-album-copy i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 106, 0.85);
}

.hma-album-card:hover .hma-cover,
.hma-album-card:focus-visible .hma-cover,
.hma-album-card.is-previewing .hma-cover,
.hma-album-card.is-preview-loading .hma-cover {
    border: 0;
    outline: 0;
    box-shadow:
        0 34px 88px rgba(0, 0, 0, 0.86),
        0 18px 40px rgba(24, 24, 24, 0.72);
    transform: scale(1.045);
}

.hma-album-card:hover .hma-cover::after,
.hma-album-card:focus-visible .hma-cover::after,
.hma-album-card.is-previewing .hma-cover::after,
.hma-album-card.is-preview-loading .hma-cover::after {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.34) 100%),
        rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 58px rgba(0, 0, 0, 0.74);
    opacity: 1;
}

.hma-album-card:hover .hma-play-mark,
.hma-album-card:focus-visible .hma-play-mark,
.hma-album-card.is-previewing .hma-play-mark,
.hma-album-card.is-preview-loading .hma-play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hma-cover-fallback {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background:
        radial-gradient(circle at 30% 18%, rgba(226, 27, 45, 0.26), transparent 36%),
        linear-gradient(135deg, #101010, #202020);
}

.hma-cover-fallback strong {
    max-width: 90%;
    font-size: 22px;
    line-height: 1.05;
}

.hma-cover-fallback small {
    color: #c8aa6a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hma-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #141414;
    color: #b9b9b9;
}

@media (max-width: 1020px) {
    .hma-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hma-gallery-head {
        min-height: 132px;
    }

    .hma-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .hma-album-card {
        gap: 7px;
    }

    .hma-cover {
        border-radius: 4px;
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.74),
            0 9px 22px rgba(20, 20, 20, 0.58);
    }

    .hma-album-copy strong {
        font-size: 12px;
    }

    .hma-album-copy span {
        display: block;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hma-album-copy i {
        display: none;
    }
}

@media (max-width: 480px) {
    .hma-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hma-gallery-head {
        margin-bottom: 22px;
    }

    .hma-gallery-head h1 {
        font-size: 40px;
    }
}
