#page-collections [hidden] { display: none !important; }
#page-collections .library-tab-row { overflow-x: auto; flex-wrap: nowrap; }
#page-collections .library-tab { flex-shrink: 0; }
.library-history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; color: var(--muted); font-size: 12px; }
.library-history-toolbar .quiet-btn { min-height: 40px; padding: 8px 10px; }
.library-history-list { display: grid; gap: 0; }
.library-history-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.library-history-poster { width: 56px; height: 78px; overflow: hidden; border-radius: 7px; background: var(--panel2); }
.library-history-poster .library-progress-cover { display: block; width: 100%; height: 100%; min-width: 0; border-radius: inherit; object-fit: cover; }
.library-history-copy { min-width: 0; }
.library-history-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 4px; font-size: 14px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.library-history-episode { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.library-history-time { margin-top: 5px; color: var(--soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.library-history-play { min-width: 72px; max-width: 112px; min-height: 48px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.35; white-space: normal; }
.library-history-play:hover { border-color: var(--accent); }
.library-history-play:disabled { cursor: progress; opacity: .65; }
.library-history-status, .library-history-feedback { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.library-history-feedback:empty { display: none; }
.library-history-empty { display: grid; justify-items: start; gap: 10px; padding: 24px 0; }
.library-history-empty > .ui-icon { color: var(--accent); }
.library-history-empty h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.library-history-empty p { max-width: 42ch; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.library-history-empty .secondary-btn { min-height: 44px; }
.library-history-loading { color: var(--muted); font-size: 13px; }
.library-history-skeleton { height: 102px; margin-top: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--panel2) 0 56px, transparent 56px 68px, var(--panel) 68px); }
@media (max-width: 380px) {
  .library-history-row { grid-template-columns: 48px minmax(0, 1fr) 72px; gap: 9px; padding: 10px 0; }
  .library-history-poster { width: 48px; height: 68px; }
  .library-history-play { min-width: 0; width: 72px; padding-inline: 6px; }
}
