/* Steam-like cover shelves, with ARABVX's monochrome visual theme. */
.library-section .library-toolbar { align-items: center; gap: 24px; padding-bottom: 24px; margin-bottom: 0; }
.library-section .library-count { display: none; }
.library-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; width: 100%; }
.library-filter { display: flex; align-items: center; gap: 10px; background: #171717; border: 1px solid #ffffff13; border-radius: 999px; padding: 0 14px; color: #8f8f8f; min-height: 44px; }
.library-filter:focus-within { border-color: #ffffff60; }
.library-filter input { min-width: 0; width: 230px; height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: #f4f4f4; font-size: 12px; }
.library-filter svg { flex-shrink: 0; }
.library-sort { flex: 0 0 auto; }
.library-sort select { appearance: none; -webkit-appearance: none; width: 176px; height: 48px; min-height: 48px; max-width: 176px; border: 1px solid #ffffff18; border-radius: 999px; background-color: #171717; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 14px 14px; color: #aaa; padding: 0 16px 0 38px; font: inherit; font-size: 12px; cursor: pointer; }
.library-view { display: flex; border: 1px solid #ffffff13; border-radius: 8px; padding: 3px; gap: 2px; }
.library-section .library-view button { width: 34px; min-height: 34px; min-width: 34px; padding: 0; gap: 0; border: 0; border-radius: 5px; display: grid; place-items: center; background: transparent; color: #7f7f7f; }
.library-section .library-view button[aria-pressed='true'] { color: #f5f5f5; background: #ffffff13; }
.library-section .library-view button:hover { background: #ffffff0b; color: #fff; }
.library-layout { display: block; padding-top: 26px; padding-bottom: 20px; }
.library-sidebar { display: none; }
.library-sidebar h3 { margin: 0 10px 14px; color: #727272; font-size: 11px; font-weight: 400; }
#libraryFilters { display: grid; gap: 5px; }
.library-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; width: 100%; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #929292; font-size: 12px; text-align: start; }
.library-category[aria-pressed='true'] { background: #ffffff0b; color: #f2f2f2; }
.library-category:hover { background: #ffffff07; color: #fff; }
.category-count { color: #696969; font-size: 10px; }
.library-shelf { min-width: 0; min-height: 360px; }
.library-summary { display: none; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 28px 22px; align-items: start; }
.library-grid > article { min-width: 0; }
.library-game { display: block; min-width: 0; border-radius: 6px; transition: transform .2s ease; }
.library-cover { position: relative; width: 100%; aspect-ratio: 2 / 3; background: #171717; border-radius: 6px; overflow: hidden; box-shadow: 0 7px 16px #0005; outline: 1px solid #ffffff0a; transition: box-shadow .2s,outline-color .2s; }
.library-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.library-game:hover { transform: translateY(-3px); }.library-game:hover .library-cover { box-shadow: 0 12px 26px #0009; outline-color: #ffffff50; }.library-game:hover img { transform: scale(1.02); }
.library-game:focus-visible { outline-offset: 6px; }
.library-game-info { padding: 12px 0 0; }
.library-game-info h3 { margin: 0; color: #e7e7e7; font: 500 15px/1.5 'Space Grotesk','IBM Plex Sans Arabic',sans-serif; overflow-wrap: anywhere; }
.library-game-info p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0 0; color: #7f7f7f; font-size: 10px; }
.library-game-info .latin { font-size: 10px; color: #676767; }
.library-grid.is-list { grid-template-columns: 1fr; gap: 8px; }
.library-grid.is-list .library-game { display: flex; align-items: center; gap: 20px; padding: 12px; border: 1px solid #ffffff09; background: #151515; }
.library-grid.is-list .library-cover { width: 54px; flex: 0 0 54px; border-radius: 3px; box-shadow: none; }
.library-grid.is-list .library-game-info { flex: 1; padding: 0; }.library-grid.is-list .library-game-info p { justify-content: flex-start; gap: 20px; }
.library-no-results { padding: 72px 16px; text-align: center; color: #8c8c8c; }
.library-no-results h3 { color: #dedede; font-size: 18px; font-weight: 400; }.library-no-results p { font-size: 13px; }
.library-no-results button { border: 1px solid #ffffff30; background: #ffffff07; color: #ddd; border-radius: 999px; padding: 10px 20px; font-size: 12px; }
@media (max-width: 1100px) {
  .library-filter input { width: 190px; }
}
@media (max-width: 800px) {
  .library-section .library-toolbar { flex-wrap: wrap; gap: 18px; align-items: center; }
  .library-controls { flex: 1 0 100%; justify-content: space-between; gap: 8px; }
  .library-filter { flex: 0 1 260px; min-width: 0; }.library-filter input { width: 100%; }
  .library-sort select { width: 150px; max-width: 150px; font-size: 11px; padding-inline-start: 34px; }
  .library-layout { padding-top: 18px; padding-bottom: 0; }
  .library-grid { grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 24px 16px; }
  .library-shelf { min-height: 300px; }
}
@media (max-width: 380px) {
  .library-controls { flex-wrap: wrap; }.library-filter { flex-basis: 100%; }
  .library-grid { gap: 20px 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-sort { flex: 1; }.library-sort select { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .library-game,.library-cover,.library-cover img { transition: none; } }
