.gw-category-page--library { padding-top: 34px; background: #f7f7fb; }
.gw-category-page--library .gw-category-container { width: min(100% - 48px, 1840px); max-width: none; }
.gw-category-page--library .gw-category-header { min-height: 0; margin-bottom: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.gw-category-page--library .gw-category-header::before,
.gw-category-page--library .gw-section-label { display: none; }
.gw-category-page--library .gw-category-header h1 { margin: 0 0 7px; color: #16181f; font-size: clamp(30px, 3.2vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.18; }
.gw-category-page--library .gw-category-header__description { max-width: 1120px; color: #898d9a; font-size: 16px; line-height: 1.55; }
.gw-category-page--library .gw-category-header__description p { margin: 0; }
.gw-category-page--library .gw-category-header__count { align-self: flex-end; border: 0; background: transparent; box-shadow: none; color: #8b8e9a; }

.gw-library-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.gw-library-filter { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.gw-library-filter__trigger,
.gw-library-toolbar__view { display: inline-flex; min-height: 46px; box-sizing: border-box; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid #d9dce7; border-radius: 24px; background: rgba(255,255,255,.86); color: #4c505c; font: inherit; font-size: 14px; text-decoration: none; box-shadow: 0 2px 8px rgba(36,40,58,.025); cursor: pointer; }
.gw-library-filter__trigger b { overflow: hidden; max-width: 150px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.gw-library-filter__trigger i { color: #707481; font-style: normal; font-size: 15px; transition: transform .18s ease; }
.gw-library-filter__icon { color: #777b88; font-size: 17px; line-height: 1; }
.gw-library-filter.is-open .gw-library-filter__trigger,
.gw-library-filter__trigger:hover,
.gw-library-filter__trigger:focus-visible,
.gw-library-toolbar__view:hover,
.gw-library-toolbar__view:focus-visible { border-color: #aaaec0; outline: 0; background: #fff; color: #242730; }
.gw-library-filter.is-open .gw-library-filter__trigger i { transform: rotate(180deg); }
.gw-library-filter.has-value .gw-library-filter__trigger { padding-right: 39px; border-color: #c6bce8; background: #faf8ff; color: #674dbb; }
.gw-library-filter__clear { position: absolute; z-index: 2; right: 13px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #8a7db5; font-size: 15px; text-decoration: none; }
.gw-library-filter__clear:hover { background: #eee9fb; color: #5f43b1; }
.gw-library-filter__popover { position: fixed; z-index: 10040; width: min(320px,calc(100vw - 24px)); box-sizing: border-box; padding: 10px; border: 1px solid #d7d9e2; border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(34,37,52,.2); }
.gw-library-filter__popover[hidden] { display: none; }
.gw-library-filter__popover--search label { display: block; }
.gw-library-filter__popover--search input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 13px; border: 2px solid #b5b8c4; border-radius: 10px; outline: 0; color: #343741; font: inherit; font-size: 14px; }
.gw-library-filter__popover--search input:focus { border-color: #7d69c9; box-shadow: 0 0 0 3px rgba(125,105,201,.1); }
.gw-library-filter__popover--search p { margin: 11px 6px 5px; color: #8a8d98; font-size: 12px; }
.gw-library-filter__results { display: grid; max-height: 270px; overflow-y: auto; }
.gw-library-filter__results a,
.gw-library-filter__popover--menu a { display: flex; min-height: 40px; align-items: center; padding: 0 11px; border-radius: 8px; color: #454852; font-size: 13px; text-decoration: none; }
.gw-library-filter__results a:hover,
.gw-library-filter__results a.is-keyboard-active,
.gw-library-filter__popover--menu a:hover { background: #f4f1fc; color: #644bb5; }
.gw-library-filter__popover--menu { display: grid; width: 190px; max-height: min(360px,calc(100vh - 24px)); overflow-y: auto; }
.gw-library-filter__popover--menu a.is-active { background: #eee9fb; color: #5c43ad; font-weight: 700; }
.gw-library-toolbar__spacer { flex: 1 0 20px; min-width: 20px; }
.gw-library-toolbar__view { flex: 0 0 46px; width: 46px; padding: 0; font-size: 21px; }
.gw-library-toolbar__count { flex: 0 0 auto; padding-right: 4px; color: #858895; font-size: 14px; white-space: nowrap; }

.gw-library-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; padding-bottom: 28px; }
.gw-library-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e4e5eb; border-radius: 16px; background: #fff; box-shadow: 0 2px 9px rgba(31,35,51,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gw-library-card:hover { transform: translateY(-3px); border-color: #d2c9f2; box-shadow: 0 14px 30px rgba(46,40,78,.11); }
.gw-library-card__cover { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg,#eceaf3,#ddd9ea); aspect-ratio: 3 / 4.18; }
.gw-library-card__cover > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.gw-library-card:hover .gw-library-card__cover > img { transform: scale(1.025); }
.gw-library-card__cover > span:not(.gw-library-card__platforms) { display: grid; height: 100%; place-items: center; color: #8b8799; font-size: 13px; }
.gw-library-card__platforms { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; max-width: calc(100% - 52px); gap: 5px; }
.gw-library-card__platforms b { overflow: hidden; max-width: 84px; padding: 5px 8px; border-radius: 99px; background: rgba(248,248,250,.88); color: #333641; font-size: 10px; font-weight: 700; line-height: 1; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.gw-library-card__favorite { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(244,244,247,.83); color: #666a75; font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.gw-library-card__favorite:hover,
.gw-library-card__favorite.is-favorited { background: #fff; color: #e26083; }
.gw-library-card__body { display: flex; min-height: 132px; box-sizing: border-box; flex-direction: column; padding: 14px 12px 12px; }
.gw-library-card__body h2 { display: -webkit-box; min-height: 43px; margin: 0; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.42; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gw-library-card__body h2 a { color: #2d3038; text-decoration: none; }
.gw-library-card__body p { margin: 8px 0 10px; overflow: hidden; color: #7656c7; font-size: 12px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.gw-library-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 23px; margin-top: auto; color: #8e919c; font-size: 11px; }
.gw-library-card__meta span:first-child { padding: 4px 8px; border-radius: 99px; background: #e1efff; color: #276bb5; font-weight: 700; }

@media (max-width: 1380px) { .gw-library-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1080px) { .gw-library-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .gw-category-page--library { padding-top: 22px; }
  .gw-category-page--library .gw-category-container { width: min(100% - 24px, 1840px); }
  .gw-category-page--library .gw-category-header { align-items: flex-start; }
  .gw-category-page--library .gw-category-header__count { display: none; }
  .gw-library-toolbar { margin-right: -12px; padding-right: 12px; }
  .gw-library-toolbar__spacer { display: none; }
  .gw-library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 12px; }
}
@media (max-width: 540px) {
  .gw-category-page--library .gw-category-header { margin-bottom: 16px; }
  .gw-category-page--library .gw-category-header h1 { font-size: 29px; }
  .gw-category-page--library .gw-category-header__description { font-size: 14px; }
  .gw-library-filter__trigger,.gw-library-toolbar__view { min-height: 42px; }
  .gw-library-filter__trigger { padding-right: 14px; padding-left: 14px; font-size: 13px; }
  .gw-library-filter__trigger b { max-width: 112px; }
  .gw-library-toolbar__count { font-size: 13px; }
  .gw-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
  .gw-library-card { border-radius: 12px; }
  .gw-library-card__body { min-height: 122px; padding: 11px 10px 10px; }
  .gw-library-card__body h2 { min-height: 37px; font-size: 13px; line-height: 1.4; }
  .gw-library-card__platforms b:nth-child(n+2) { display: none; }
}
