/* ── Playlist: vinyl icon + Spotify embed toggle ── */
.vinyl-icon {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.35rem;
    vertical-align: -0.2em;
    display: inline-block;
    flex: none;
    animation: vinylSpin 7s linear infinite;
    transform-origin: 50% 50%;
}

.playlist-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Playlist toggle: icon-only arrow next to the heading */
.playlist-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.spotify-arrow-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.15rem;
    margin-left: 0.2rem;
    line-height: 0;
    cursor: pointer;
    color: inherit;
}

.spotify-arrow-btn:focus-visible {
    outline: 2px dashed rgba(90,110,60,0.75);
    outline-offset: 4px;
    border-radius: 10px;
}

.hand-arrow {
    width: 22px;
    height: 22px;
    flex: none;
    transition: transform 0.25s ease;
    transform-origin: 50% 50%;
    opacity: 0.9;
}

.spotify-arrow-btn[aria-expanded="true"] .hand-arrow {
    transform: rotate(180deg);
}

.spotify-embed-panel {
    width: 100%;
    max-width: 560px;
    margin: 0.55rem auto 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.spotify-embed-panel.open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
}

/* ── Music embeds (optional) ── */
.music-embeds {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
}

.music-embed {
    width: 100%;
    max-width: 560px;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(61,47,30,0.05);
}

.music-embed.spotify { height: 152px; }
.music-embed.apple { height: 175px; }