.releases-small {
    max-width: 900px;
    margin: 20px auto;
}

.release {
    position: relative;
    border-bottom: 1px solid #222;
    transition: background 0.2s ease;
}

.release:hover {
    background: rgba(79, 195, 247, 0.05);
}

.release.active {
    background: #121212;
}

.release::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: background 0.2s ease;
}

.release:hover::before,
.release.active::before {
    background: var(--accent);
}

.release-summary {
    padding: 18px 20px;
    cursor: pointer;
}

.release-title-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.release-left {
    display: flex;
    flex-direction: column;
}

.release-title {
    font-size: 16px;
    font-weight: 500;
}

.release-meta {
    font-size: 13px;
    color: var(--muted);
}

.release-right {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.release-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px; /* Match the padding of .release-summary */
    box-sizing: border-box; /* Include padding in width calculation */
}

.release.active .release-details {
    max-height: 2000px;
    padding: 20px;
}

/* For ambience recordings (single column grid) */
.details-grid.ambience-layout .meta-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-grid:not(.ambience-layout) .meta-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    width: 100%; /* Ensure it doesn’t exceed parent width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.meta-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-block span {
    background: #222;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

audio {
    width: 100%;
    margin-top: 10px;
}

.bandcamp-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
}

.meta-extra {
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    display: grid;
    gap: 6px;
}

.meta-extra strong {
    color: #ccc;
}

.audio-wrapper {
    margin-top: 10px;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-wrapper iframe {
    width: 100%;
    max-width: 500px;
    height: 120px;
    border: none;
}

@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .audio-wrapper iframe {
        max-width: 100%; /* Ensure iframe doesn’t overflow */
    }
}