.ws-player-library[hidden], [data-library-action][hidden], .ws-library-manual[hidden], .ws-library-empty[hidden] { display: none !important; }
.ws-player-library { margin-block: 22px 28px; color: #51372d; }
.ws-directory-preview + .ws-player-library { margin-top: -8px; }
.ws-player-library > details { border: 1px solid #e4d5c2; border-radius: 10px; background: #fffaf0; }
.ws-player-library > details > summary { cursor: pointer; min-height: 48px; padding: 13px 18px; font-size: 16px; font-weight: 750; line-height: 1.5; }
.ws-player-library summary [data-library-count] { margin-left: 10px; color: #806b59; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ws-library-inner { padding: 0 18px 15px; }
.ws-library-note, .ws-library-empty { font-size: 13px; color: #756457; line-height: 1.8; margin: 0 0 15px; }
.ws-library-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ws-library-columns > section { min-width: 0; }
.ws-library-columns h2 { font-size: 16px; line-height: 1.5; margin: 0; color: #563a2d; }
.ws-library-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.ws-library-columns > section > h2 { min-height: 44px; display: flex; align-items: center; }
.ws-library-list { padding: 0 !important; margin: 0 !important; list-style: none; }
.ws-library-list li { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid #eadfd1; padding-block: 8px; }
.ws-library-list li > a { min-width: 0; display: block; padding-block: 4px; text-decoration: none; }
.ws-library-list li > a strong { display: block; color: #8e3227; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.ws-library-list li > a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ws-library-list li > a small { display: block; color: #79695c; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.ws-library-list .ws-library-text-button { flex: 0 0 auto; }
.ws-library-button, .ws-library-text-button { font: inherit; cursor: pointer; touch-action: manipulation; min-height: 44px; }
.ws-library-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid #ddc5ae; border-radius: 7px; color: #853e2d; background: #fffaf3; font-size: 13px; font-weight: 650; line-height: 1.5; }
.ws-library-button:hover { background: #f9e9da; border-color: #bc8565; }
.ws-library-button[aria-pressed="true"] { background: #fae5d8; border-color: #ba7560; color: #913525; }
.ws-library-text-button { background: transparent; color: #8e4a39; font-size: 12px; padding: 7px 8px; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.ws-library-button:disabled, .ws-library-text-button:disabled { cursor: default; opacity: .5; }
.ws-library-button:focus-visible, .ws-library-text-button:focus-visible, .ws-player-library summary:focus-visible, .ws-library-list a:focus-visible { outline: 2px solid #9c3023; outline-offset: 3px; }
.ws-library-action-wrap { display: flex; flex-direction: column; min-width: 0; }
.ws-row-actions .ws-library-button { width: 100%; }
.ws-library-feedback { display: block; color: #74523d; font-size: 12px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.ws-library-feedback:empty { display: none; }
.ws-library-feedback:not(:empty) { margin-block: 5px 0; }
.ws-library-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid #eadfd1; margin-top: 13px; padding-top: 9px; font-size: 12px; color: #756457; }
.ws-library-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.ws-library-options input { width: 18px; height: 18px; accent-color: #9c3023; }
.ws-library-options a { display: inline-flex; align-items: center; min-height: 44px; color: #8e4a39; text-decoration: underline; text-underline-offset: 3px; }
.ws-library-detail-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 16px; }
.ws-library-detail-actions > .ws-library-action-wrap { flex: 0 1 auto; }
.ws-library-manual { flex-basis: 100%; max-width: 620px; min-width: 0; padding: 12px; border: 1px solid #e2cbb7; border-radius: 7px; background: #fffaf0; }
.ws-library-manual label { display: block; color: #6e4e3e; font-size: 13px; margin-bottom: 8px; }
.ws-library-manual textarea { display: block; box-sizing: border-box; width: 100%; padding: 10px; min-height: 116px; color: #4b352c; background: white; border: 1px solid #ceaf98; border-radius: 4px; font-size: 16px; line-height: 1.6; resize: vertical; }
@media (max-width: 680px) {
  .ws-row-actions .ws-library-action-wrap { flex: 0 0 auto; }
  .ws-row-actions .ws-library-button { min-width: 68px; padding-inline: 8px; }
  .ws-library-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ws-player-library > details > summary { padding: 13px; font-size: 15px; }
  .ws-library-inner { padding-inline: 13px; }
  .ws-player-library summary [data-library-count] { display: inline-block; margin-left: 5px; font-size: 11px; }
  .ws-library-detail-actions { gap: 8px; }
}
