.fox-public-library { border-color: rgba(96, 165, 250, .22); background: #121923; }
.fox-library-heading { align-items: flex-end; }
.fox-library-heading p { margin: 0 0 5px; color: #60a5fa; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.fox-library-heading h2 { margin-bottom: 4px; }
.fox-library-heading > a { color: #9fb4cc; font-size: 12px; text-decoration: none; }
.fox-library-heading > a:hover { color: #fff; }
.fox-library-filters { display: flex; gap: 7px; margin: 17px 0; overflow-x: auto; scrollbar-width: none; }
.fox-library-filters::-webkit-scrollbar { display: none; }
.fox-library-filters button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid rgba(148, 163, 184, .19); border-radius: 6px; background: #0d131c; color: #93a4b8; font-size: 12px; cursor: pointer; }
.fox-library-filters button:hover { border-color: rgba(96, 165, 250, .55); color: #fff; }
.fox-library-filters button.is-active { border-color: #3b82f6; background: #17243a; color: #dbeafe; }
.fox-library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.fox-library-card { min-width: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .15); border-radius: 7px; background: #0b111a; transition: border-color .18s ease, transform .18s ease; }
.fox-library-card:hover { transform: translateY(-2px); border-color: rgba(96, 165, 250, .42); }
.fox-library-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #060a10; }
.fox-library-preview video { width: 100%; height: 100%; display: block; object-fit: cover; }
.fox-library-duration { position: absolute; right: 7px; bottom: 7px; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .74); color: #fff; font-size: 10px; pointer-events: none; }
.fox-library-copy { display: flex; flex-direction: column; min-height: 126px; padding: 11px; }
.fox-library-type { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.fox-library-type span { overflow: hidden; color: #72a7ee; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fox-library-type i { padding: 2px 5px; border: 1px solid rgba(52, 211, 153, .24); border-radius: 4px; color: #6ee7b7; font-size: 9px; font-style: normal; }
.fox-library-copy strong { overflow: hidden; color: #eef4fb; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.fox-library-copy small { margin-top: 4px; overflow: hidden; color: #718298; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fox-library-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: auto; padding-top: 11px; }
.fox-library-actions button, .fox-library-actions a { min-width: 0; padding: 6px 7px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 5px; background: #111a26; color: #a9b7c8; font: inherit; font-size: 10px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.fox-library-actions button:hover, .fox-library-actions a:hover { border-color: rgba(96, 165, 250, .5); color: #fff; }
.fox-library-actions button.is-success { border-color: rgba(52, 211, 153, .55); color: #6ee7b7; }
.fox-library-empty { display: grid; place-items: center; min-height: 180px; color: #8091a6; text-align: center; }
.fox-library-empty strong { color: #dce5ef; }
.fox-library-empty span { margin-top: 5px; font-size: 12px; }
.fox-library-empty button { margin-top: 12px; padding: 7px 13px; border: 1px solid rgba(96, 165, 250, .45); border-radius: 6px; background: #17243a; color: #dbeafe; cursor: pointer; }

@media (max-width: 1350px) {
  .fox-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .fox-library-heading { align-items: flex-start; }
  .fox-library-heading > a { margin-top: 8px; }
  .fox-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .fox-library-copy { min-height: 134px; padding: 9px; }
  .fox-library-actions { grid-template-columns: 1fr 1fr; }
  .fox-library-actions a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .fox-library-grid { grid-template-columns: minmax(0, 1fr); }
  .fox-library-copy { min-height: 118px; }
}
