/* SoundButtonsPro 3.3.7: fixed right-side Recently Viewed UI. */
.sbp-with-recent-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 270px);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
  min-width: 0;
  margin-top: 28px;
}
.sbp-main-column { min-width: 0; max-width: 100%; }
.sbp-main-column > .sbp-section:first-child { margin-top: 0; }
.sbp-recent-sidebar {
  position: sticky;
  top: 94px;
  min-width: 0;
  padding: 20px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r, 17px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(3, 8, 24, .12);
  isolation: isolate;
  overflow-wrap: anywhere;
}
.sbp-recent-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.sbp-recent-head h2 { color: var(--text); font-size: 1.16rem; line-height: 1.3; letter-spacing: -.02em; margin: 4px 0 0; }
.sbp-recent-clear { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 5px 8px; border-radius: 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sbp-recent-clear:hover { color: var(--text); border-color: var(--purple); }
.sbp-recent-list { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.sbp-recent-item { min-width: 0; padding: 0; border-top: 1px solid var(--border); }
.sbp-recent-link { display: flex; align-items: flex-start; gap: 11px; border-radius: 11px; padding: 12px 4px; min-width: 0; width: 100%; color: var(--text); }
.sbp-recent-link:hover { background: var(--surface2); }
.sbp-recent-link:focus-visible { outline-offset: -2px; }
.sbp-recent-mark { display: grid; flex: 0 0 35px; height: 35px; place-items: center; border-radius: 11px; background: hsla(var(--sbp-recent-hue), 85%, 55%, .15); color: hsl(var(--sbp-recent-hue), 90%, 65%); border: 1px solid hsla(var(--sbp-recent-hue), 85%, 65%, .38); font-size: 11px; font-weight: 900; }
.sbp-recent-content { display: block; min-width: 0; flex: 1; }
.sbp-recent-title { display: block; font-size: 12px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; word-break: normal; }
.sbp-recent-meta { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.sbp-recent-item.is-current .sbp-recent-meta { color: var(--cyan); }
.sbp-recent-empty { border-top: 1px solid var(--border); padding: 16px 2px 8px; }
.sbp-recent-empty p { margin: 0 0 9px; font-size: 12px; line-height: 1.6; }
.sbp-recent-empty a { color: var(--cyan); font-size: 12px; font-weight: 800; }
.sbp-recent-footnote { font-size: 10px; line-height: 1.4; margin: 12px 0 0; color: var(--muted); }
.sbp-recent-empty[hidden], .sbp-recent-clear[hidden] { display: none !important; }
/* If side-by-side list cards become narrow, show two columns rather than cramming three. */
@media (min-width: 991px) {
  .sbp-main-column .sbp-sound-grid:not([data-view="list"]):not([data-view="tree"]):not([data-view="horizontal"]):not([data-view="masonry"]):not(.sbp-sound-grid--row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 990px) {
  .sbp-with-recent-sidebar { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .sbp-recent-sidebar { position: static; width: 100%; }
}
@media (max-width: 600px) {
  .sbp-with-recent-sidebar { margin-top: 18px; }
  .sbp-recent-sidebar { padding: 16px 13px 12px; }
  .sbp-recent-list { grid-template-columns: 1fr; }
}
