/* The shelf: books, records, films, games — see shelf.js. The page and the
   detail card use the shared .overlay-scroll, .overlay-content and
   .detail-card styles in shared/base.css. */

#shelf{z-index:57; background:#0b0910}
#shelf-title{margin-bottom:20px}

/* one row per category, scrolling sideways, standing on a board */
.shelf-section{margin:0 0 30px}
.shelf-row{display:flex; align-items:flex-end; gap:9px; padding:20px 16px 0 2px; overflow-x:auto;
  -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  scrollbar-width:thin; scrollbar-color:#3a3448 transparent}
.shelf-row::-webkit-scrollbar{height:6px}
.shelf-row::-webkit-scrollbar-track{background:transparent}
.shelf-row::-webkit-scrollbar-thumb{background:#3a3448; border-radius:3px}
.shelf-row.records{gap:24px}          /* room for the disc peeking out of each sleeve */
.shelf-board{height:6px; border-radius:1px;
  background:linear-gradient(#8a6845,#5a4433 40%,#38291f);
  box-shadow:0 5px 14px -6px #000, 0 1px 0 #00000066}
.shelf-empty{margin:12px 0 0; color:#9a92ad; font-size:11.5px; letter-spacing:.06em}

/* each thing on the shelf is a button; it lifts when hovered or taken down */
.item{flex:0 0 auto; background:none; border:0; padding:0; margin:0; cursor:pointer;
  font:inherit; color:inherit; text-align:left; overflow-wrap:anywhere;
  transform-origin:50% 100%; transition:transform .18s ease; -webkit-tap-highlight-color:transparent}
.item:hover,.item:focus-visible{transform:translateY(-8px)}
.item:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:2px}
.item[aria-expanded="true"]{transform:translateY(-14px)}

/* a book, seen side-on */
.spine{position:relative; width:30px; border-radius:2px 2px 0 0; overflow:hidden;
  box-shadow:inset 4px 0 0 #ffffff1c, inset -8px 0 12px -8px #000c, 0 8px 16px -10px #000}
.spine b{position:absolute; top:10px; bottom:12px; left:0; right:0; writing-mode:vertical-rl;
  font-weight:400; line-height:30px; letter-spacing:.05em; text-align:center; overflow:hidden;
  white-space:nowrap; text-shadow:0 1px 0 #00000055}
.spine b.two{white-space:normal; line-height:15px}   /* two lines down the spine */
.spine i{position:absolute; left:0; right:0; height:2px; background:#ffffff26}

/* a record, facing out, disc peeking from the sleeve */
.sleeve{position:relative; width:116px; height:116px; padding:10px; border-radius:1px;
  box-shadow:0 8px 18px -10px #000, inset 0 0 0 1px #ffffff12}
.sleeve .disc{position:absolute; z-index:-1; right:-13px; top:50%; width:90px; height:90px; margin-top:-45px;
  border-radius:50%; box-shadow:0 6px 14px -8px #000;
  background:radial-gradient(circle,#e6dcc4 0 8%,#191520 9% 62%,#241f2c 63% 66%,#191520 67%)}
.sleeve .art{height:34px; margin-bottom:8px}
.sleeve b{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-weight:600; font-size:10px; line-height:1.3; letter-spacing:.03em}
.sleeve em{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-top:3px; font-style:normal; line-height:1.35; letter-spacing:.05em;
  text-transform:uppercase; opacity:.72}

/* a film, on its little case */
.case{position:relative; width:84px; height:112px; border-radius:2px; overflow:hidden;
  box-shadow:0 8px 16px -10px #000, inset 0 0 0 1px #ffffff12}
.case .strip{position:absolute; left:0; top:0; bottom:0; width:7px; background:#00000059}
.case .band{position:absolute; left:7px; right:0; bottom:0; padding:5px 5px 6px; background:#0d0b12bf}
.case .band b{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-weight:600; font-size:9px; line-height:1.3; letter-spacing:.02em; color:#efe9f5}

/* a game, on its cartridge */
.cart{position:relative; width:72px; height:104px; border-radius:4px 4px 2px 2px; overflow:hidden;
  box-shadow:0 8px 16px -10px #000, inset 0 0 0 1px #ffffff12}
.cart .lip{position:absolute; left:0; right:0; top:0; height:8px; background:#00000047}
.cart .label{position:absolute; left:6px; right:6px; top:14px; bottom:26px; padding:5px; border-radius:1px;
  display:flex; align-items:center; box-shadow:inset 0 0 0 1px #00000026}
.cart .label b{display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  font-weight:600; line-height:1.3; letter-spacing:.02em; color:#241f2c}
.cart .pins{position:absolute; left:9px; right:9px; bottom:6px; height:13px; border-radius:1px;
  background:repeating-linear-gradient(90deg,#9a9184 0 3px,#2e2836 3px 6px)}
