.library { max-width: 1160px; }
.library-hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(24px,5vw,76px); padding: clamp(28px,5vw,72px) 0; }
.library h1, .library h2, .library h3 { letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.library h1 { font-size: clamp(3.2rem,6.4vw,6rem); font-weight: 850; }
.library h1 em { color: var(--orange); font-style: normal; }
.library p { color: #b8b8b8; }
.library-hero p { font-size: clamp(1rem,1.5vw,1.2rem); max-width: 42ch; margin: 22px 0 24px; }
.feature { isolation: isolate; position: relative; height: clamp(275px,32vw,395px); background: #161616; border-radius: 18px; overflow: hidden; }
.feature img, .feature::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature img { object-fit: cover; object-position: 50% 24%; }
.feature::after { content: ''; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent 57%); }
.feature-actions { position: absolute; z-index: 1; bottom: 24px; left: 26px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feature-actions h2 { font-size: clamp(2.2rem,4vw,3.4rem); }
.photo-credit { position: absolute; z-index: 1; top: 10px; right: 10px; background: rgba(10,10,10,.8); border-radius: 5px; color: #fff; font-size: .72rem; padding: 3px 7px; }
.library-section { border-top: 1px solid var(--line); padding: 32px 0; }
.library-section h2 { font-size: clamp(1.8rem,3.2vw,2.5rem); scroll-margin-top: 90px; }
.section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.section-heading a { white-space: nowrap; }
.section-heading p { margin: 10px 0 0; }
.game-library { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.shelf-game { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: clamp(18px,2.8vw,32px); }
.shelf-game h3 { font-size: clamp(1.45rem,2.3vw,2rem); }
.shelf-game p { flex-grow: 1; margin: 10px 0 20px; }
.shelf-game .row { gap: 8px; }
.upcoming p { margin-bottom: 0; }
@media (max-width: 700px) {
  .library-hero { grid-template-columns: 1fr; }
  .feature { height: 245px; }
  .feature img { object-position: 50% 27%; }
  .section-heading { flex-wrap: wrap; }
  .game-library { grid-template-columns: 1fr; }
}
