.message.spotify-embed-message .message-wrapper {
    position: relative;
    gap: 0;
}

.message.spotify-embed-message .message-content {
    width: min(420px, calc(100% - 40px)) !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow: hidden;
}

.message.spotify-embed-message .reply-btn {
    position: absolute;
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
}

.message.spotify-embed-message.own .reply-btn {
    right: auto;
    left: 0;
}

.message.spotify-embed-message.other .reply-btn {
    right: 0;
    left: auto;
}

.spotify-embed-content {
    display: flex;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
}

.spotify-embed-frame {
    display: block;
    width: 100%;
    height: 152px;
    border: 0;
    border-radius: 12px;
    background: #121212;
}

.spotify-embed-frame.is-collection {
    height: 352px;
}

.cf-message.spotify-embed-message {
    width: min(350px, calc(100% - 48px));
    max-width: calc(100% - 48px);
}

.cf-message.spotify-embed-message .cf-message-stack {
    width: auto;
    flex: 1;
}

.cf-message.spotify-embed-message.mine .cf-message-stack,
.cf-message.spotify-embed-message .cf-message-body {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.cf-message.spotify-embed-message .cf-message-body > p.spotify-embed-content {
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow: hidden;
}

.cf-message.spotify-embed-message.has-reply-context .cf-message-body {
    border: 0;
    background: transparent;
    overflow: visible;
}

@media (max-width: 600px), (hover: none) {
    .message.spotify-embed-message .reply-btn {
        display: grid;
        place-items: center;
        opacity: 0.75;
    }

    .spotify-embed-frame.is-collection {
        height: 352px;
    }

}
