.vseti-post-music {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 11px;
    align-items: center;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid #252525;
    border-radius: 12px;
    background: #0a0a0a;
}
.vseti-post-music__cover,
.vseti-music-row__cover {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #292929;
    color: #aeb3b7;
    object-fit: cover;
}
.vseti-post-music__cover img,
.vseti-music-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.vseti-post-music__copy,
.vseti-music-row__copy { min-width: 0; }
.vseti-post-music__title,
.vseti-music-row__title { display: block; overflow: hidden; color: #f3f3f3; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.vseti-post-music__artist,
.vseti-music-row__artist { display: block; margin-top: 2px; overflow: hidden; color: #8f9499; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
[data-vseti-music-toggle].is-playing { color: #1d9bf0 !important; }
.vseti-post-music__toggle {
    width: 38px; height: 38px; display: grid; place-items: center; border: 0;
    border-radius: 50%; background: #202327; color: #f2f2f2; cursor: pointer;
}

.vseti-music-library { position: relative; min-width: 0; min-height: 220px; padding: 0; }
.vseti-music-library__head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 16px; border-bottom: 1px solid #252525; background: #000; }
.vseti-music-library__head strong { font-size: 18px; }
.vseti-music-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #30343a;
    border-radius: 999px;
    background: transparent;
    color: #f2f2f2;
    font: inherit;
    font-weight: 720;
    line-height: 1;
    cursor: pointer;
}
.vseti-music-add.compact { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; font-size: 22px; }
.vseti-music-list { display: grid; }
.vseti-music-row {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 38px 38px;
    gap: 11px;
    align-items: center;
    min-height: 68px;
    padding: 9px 14px;
    border: 0;
    border-bottom: 1px solid #202327;
    border-radius: 0;
    background: #000;
    color: inherit;
    text-align: left;
}
button.vseti-music-row { cursor: pointer; }
button.vseti-music-row:hover, .vseti-music-row:hover { background: #101010; }
.vseti-music-row.selected { box-shadow: inset 3px 0 0 #1d9bf0; background: rgba(29,155,240,.08); }
.vseti-music-row__play { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #222; color: #fff; cursor: pointer; }
.vseti-music-row__delete { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #f45d68; cursor: pointer; }
.vseti-music-empty { display: grid; justify-items: center; gap: 14px; padding: 52px 18px; color: #8f9499; text-align: center; }
.vseti-music-empty i { font-size: 34px; }

.vseti-compose__music { grid-column: 2; margin-bottom: 13px; }
.vseti-compose__music[hidden] { display: none; }
.vseti-music-picker { position: fixed; z-index: 21500; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,.72); }
.vseti-music-picker.open { display: flex; }
.vseti-music-picker__card { width: min(540px, 100%); max-height: min(720px, 88dvh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #2f3336; border-radius: 23px; background: #000; color: #f2f2f2; }
.vseti-music-picker__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 16px 18px; border-bottom: 1px solid #252525; background: #000; font-size: 19px; font-weight: 800; }
.vseti-music-picker__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #181818; color: #fff; font-size: 21px; cursor: pointer; }
.vseti-music-picker .vseti-music-library { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vseti-music-picker .vseti-music-library__head { position: sticky; top: 0; z-index: 2; }

.vseti-music-mini {
    position: fixed; z-index: 20500; top: max(58px, env(safe-area-inset-top)); left: 50%;
    width: min(520px, calc(100vw - 24px)); min-height: 50px; display: flex; align-items: center;
    gap: 8px; padding: 6px 7px 6px 8px; border: 1px solid #34383c; border-radius: 14px;
    background: rgba(17,17,18,.96); color: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.42);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translateX(-50%);
}
.vseti-music-mini__body { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.vseti-music-mini__body:disabled { cursor: default; }
.vseti-music-mini__cover { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: #2a2a2a; color: #aeb3b7; }
.vseti-music-mini__cover img { width: 100%; height: 100%; object-fit: cover; }
.vseti-music-mini__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 750; }
.vseti-music-mini__toggle { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: #292929; color: #fff; cursor: pointer; }
.vseti-music-mini__close { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; color: #8f9499; cursor: pointer; }
.vseti-music-mini__close:hover { background: #292929; color: #fff; }
.vseti-music-drawer { position: fixed; z-index: 22000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.7); }
.vseti-music-drawer__card { width: min(500px, 100%); max-height: min(680px, 82dvh); overflow: auto; border: 1px solid #30343a; border-radius: 20px; background: #000; color: #fff; }
.vseti-music-drawer__head { position: sticky; z-index: 2; top: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 8px 17px; border-bottom: 1px solid #252525; background: rgba(0,0,0,.96); }
.vseti-music-drawer__head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #202327; color: #fff; cursor: pointer; }
.vseti-music-drawer .vseti-music-row,
.vseti-music-picker .vseti-music-row { grid-template-columns: 48px minmax(0, 1fr) 38px; }

@media (max-width: 700px) {
    .vseti-music-picker { align-items: flex-end; padding: 0; }
    .vseti-music-picker__card { width: 100%; max-height: 82dvh; border-width: 1px 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .vseti-music-mini { top: max(57px, env(safe-area-inset-top)); width: calc(100vw - 18px); }
    .vseti-music-drawer { align-items: end; padding: 0; }
    .vseti-music-drawer__card { width: 100%; max-height: 78dvh; border-width: 1px 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .vseti-music-library__head { padding-inline: 14px; }
}
