/* Votre Vibe extends the existing player; it does not change its dimensions. */
body.vibe-site .vibe-player-library {
    --library-accent: #5267cc;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(420px, calc(100vw - 28px));
    max-height: min(580px, calc(100dvh - 142px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9dff0;
    border-radius: 24px;
    background: #f8faff;
    color: #202738;
    box-shadow: 0 22px 70px #101c4d40;
    text-align: left;
    animation: vibe-library-enter .18s ease-out;
}
body.vibe-site .vibe-player-library[hidden],
body.vibe-site .vibe-library-pane[hidden] { display: none !important; }
.vibe-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px 16px; background: linear-gradient(120deg, #ebf0ff, #f3efff); }
.vibe-library-heading > div { display: grid; gap: 4px; }
.vibe-library-heading strong { font: 750 21px/1.2 system-ui, sans-serif; letter-spacing: -.035em; color: #202738; }
.vibe-library-heading span { font: 400 13px/1.4 system-ui, sans-serif; color: #657087; }
.vibe-library-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: none; color: #61708d; cursor: pointer; }
.vibe-library-close svg { width: 20px; height: 20px; }
.vibe-library-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 16px; padding: 10px 0; border-bottom: 1px solid #e0e5f0; }
.vibe-library-tabs button { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 42px; padding: 7px 3px; border: 0; border-radius: 11px; background: transparent; color: #657087; font: 600 14px/1.2 system-ui, sans-serif; cursor: pointer; }
.vibe-library-tabs button[aria-selected="true"] { color: #3f50aa; background: #e7edfc; }
.vibe-library-tabs button > span { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .75; }
.vibe-library-pane { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; scrollbar-width: thin; }
.vibe-library-save-track { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d8e0f5; border-radius: 12px; background: #edf2fe; color: #465bb9; font: 600 14px/1.4 system-ui, sans-serif; cursor: pointer; }
.vibe-library-save-track svg { width: 19px; height: 19px; flex-shrink: 0; }
.vibe-library-save-track:disabled { opacity: .48; cursor: default; }
body.vibe-site .vibe-player-library .vibe-player-favorites-section { margin: 17px 0 0; padding: 0; border: 0; }
body.vibe-site .vibe-player-library .vibe-player-favorites-heading { margin: 0 0 8px; }
.vibe-player-library .vibe-player-favorites-heading strong { font-size: 14px; font-weight: 650; }
.vibe-player-library .vibe-player-favorites-count { font-size: 12px; color: #717b8e; }
body.vibe-site .vibe-player-library .vibe-player-favorites-list { display: grid; gap: 0; max-height: none; overflow: visible; }
body.vibe-site .vibe-player-library .vibe-player-favorite-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #e6eaf2; background: none; border-radius: 0; }
.vibe-player-library .vibe-player-favorite-item:last-child { border-bottom: 0; }
body.vibe-site .vibe-player-library .vibe-player-favorite-item img { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; background: #e5eaf4; }
.vibe-library-track-link { min-width: 0; display: grid; gap: 3px; text-decoration: none; color: inherit; }
.vibe-player-library .vibe-library-track-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #293247; }
.vibe-player-library .vibe-library-track-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #647086; }
.vibe-library-track-link time { font-size: 11px; color: #8a93a4; }
body.vibe-site .vibe-player-library .vibe-player-favorite-item > button { width: 40px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #8690a3; cursor: pointer; }
.vibe-library-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; text-align: center; }
.vibe-library-empty svg { width: 28px; height: 28px; color: #8c9ad2; }
.vibe-library-empty strong { font: 650 15px/1.3 system-ui, sans-serif; color: #37415a; }
.vibe-library-empty span { max-width: 270px; font: 400 14px/1.5 system-ui, sans-serif; color: #768097; }
.vibe-library-hint { margin: 0 0 13px; font: 400 13px/1.5 system-ui, sans-serif; color: #6b758b; }
.vibe-library-radio-list { display: grid; gap: 9px; }
.vibe-library-radio { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 2px; padding: 7px; border: 1px solid #e2e7f2; border-radius: 16px; background: #fff; }
.vibe-library-radio.is-preferred { border-color: #c9d3f3; background: #f3f6ff; }
.vibe-library-radio-play { display: grid; grid-template-columns: 40px minmax(0, 1fr) 19px; align-items: center; gap: 10px; min-width: 0; min-height: 54px; padding: 4px; border: 0; text-align: left; background: none; color: #4f65cb; cursor: pointer; }
.vibe-library-radio-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: linear-gradient(140deg, #436bc7, #6750c4); border-radius: 11px; color: #fff; }
.vibe-library-radio-symbol svg { width: 24px; height: 24px; }
.vibe-library-radio-play > span:not(.vibe-library-radio-symbol) { min-width: 0; display: grid; gap: 4px; }
.vibe-library-radio-play strong { font: 650 14px/1.3 system-ui, sans-serif; color: #293247; }
.vibe-library-radio-play small { font: 400 12px/1.4 system-ui, sans-serif; color: #7a849a; }
.vibe-library-radio-play > svg { width: 19px; height: 19px; fill: currentColor; }
.vibe-library-radio-save { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #9ba6bc; cursor: pointer; }
.vibe-library-radio-save[aria-pressed="true"] { color: #5267cc; }
.vibe-library-radio-save svg { width: 20px; height: 20px; }
.vibe-player-library .vibe-stroke-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vibe-player-library .vibe-filled-icon { fill: currentColor; }
.vibe-library-storage-note { margin: 0; padding: 11px 16px; border-top: 1px solid #e3e8f2; font: 400 11px/1.4 system-ui, sans-serif; color: #7b8599; text-align: center; }
body.vibe-site .vibe-player-library :is(button, a, [tabindex]):focus-visible { outline: 2px solid #5c75d6 !important; outline-offset: 2px; }
.vibe-player-library button:not(:disabled):hover { filter: brightness(.94); }
@keyframes vibe-library-enter { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    body.vibe-site .vibe-floating-player:not(.is-mobile-expanded) .vibe-player-library-toggle { display: flex !important; }
    body.vibe-site .vibe-floating-player:not(.is-mobile-expanded) .vibe-player-favorite { display: none !important; }
    body.vibe-site .vibe-floating-player .vibe-player-library { left: 0; right: 0; width: auto; bottom: calc(100% + 10px); max-height: calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    body.vibe-site .vibe-floating-player.is-mobile-expanded .vibe-player-library { position: absolute; top: auto; left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 174px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: hidden; z-index: 20; }
    .vibe-library-heading { padding: 15px 16px 12px; }
    .vibe-library-heading strong { font-size: 20px; }
    .vibe-library-pane { padding: 12px; }
    .vibe-library-tabs { margin-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { body.vibe-site .vibe-player-library { animation: none; } }
