#tape-deck {
  container: music-wall / inline-size;
  min-width: 0;
  --spine-ink: #2e2330;
}
#tape-deck *, #tape-deck ::before, #tape-deck ::after { box-sizing: border-box; }
#tape-deck [hidden] { display: none !important; }
#tape-deck :focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.set-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.9rem, 2cqi, 1.3rem);
}
/* A clear case with its hinge along the left and a paper inlay under the cover. */
.set-preview {
  min-width: 0;
  padding: 6px 6px 7px 13px;
  scroll-margin-top: 1rem;
  border: 1px solid;
  border-color: #928897 #5d5462 #463c4b #a39aa7;
  border-radius: 5px 5px 6px 4px;
  background: linear-gradient(90deg, #4e4854, #a196a6 2px, #625968 3px, #37313d 7px, #776c7c 9px, #29232f 11px, #403946 14px, #312b36);
  box-shadow: inset 0 1px #d8cdd66b, inset 0 -2px #161119, 0 3px 0 #16111a, 0 5px 9px #08050c55;
}
.set-screen {
  min-width: 0;
  border: 1px solid #201923;
  background: #110e15;
  box-shadow: 0 1px #aaa1ae66;
}
.set-poster {
  position: relative;
  display: block;
  text-decoration: none;
}
.set-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.set-destination {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  max-width: calc(100% - 1.1rem);
  padding: 0.45em 0.65em;
  border: 1px solid #fff3fa88;
  border-left: 3px solid var(--pink);
  border-radius: 2px;
  background: #19151df5;
  color: #fff4fc;
  box-shadow: 0 1px 4px #08050999;
  font: 650 0.79rem/1.3 system-ui, sans-serif;
}
.set-destination span { color: var(--pink); font-size: 1.2em; line-height: 1; }
.set-poster:hover .set-destination, .set-poster:focus-visible .set-destination {
  background: var(--listing-accent, var(--pink));
  color: var(--spine-ink);
}
.set-poster:hover .set-destination span, .set-poster:focus-visible .set-destination span { color: inherit; }
.set-screen audio { display: block; width: 100%; min-width: 0; max-width: 100%; }
.set-audio-error { padding: 0 0.7rem; color: #eddde8; font: 0.8rem/1.5 system-ui, sans-serif; }
.set-inlay {
  min-width: 0;
  padding: 0.72rem clamp(0.7rem, 2cqi, 1.15rem) 0.4rem;
  border: 1px solid #aca0a8;
  border-top: 3px double #958995;
  background: linear-gradient(110deg, #f5ecec, #e5d7df 80%, #d8cbd4);
  color: var(--spine-ink);
  box-shadow: inset 1px 0 #fff8f6, inset 0 -1px #bbabb8;
}
.set-preview .set-title {
  margin: 0;
  color: #352535;
  font: italic 700 clamp(1.65rem, 4cqi, 2.25rem)/1.04 Georgia, serif;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.set-byline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  margin: 0.37rem 0 0;
  font: 600 0.85rem/1.4 system-ui, sans-serif;
}
.set-kind {
  border-right: 1px solid #aa95a5;
  padding-right: 0.55rem;
  color: #5c4256;
  font: 700 0.65rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.set-credit, .set-note { overflow-wrap: anywhere; }
.set-details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.7rem;
  margin-top: 0.45rem;
  border-top: 1px solid #c7b7c3;
  padding-top: 0.24rem;
  color: #5c4c59;
  font: 0.75rem/1.45 system-ui, sans-serif;
}
.set-details:has(.set-note:empty):has(.set-address[hidden]), .set-note:empty { display: none; }
.set-note { margin: 0; }
.set-address { display: inline-block; margin-left: auto; padding: 0.26rem 0; color: #533c50; }
.set-address:hover { color: #301b31; }
#tape-deck .set-address:focus-visible { outline-color: #543954; }

/* Recessed slots, smoked plastic spines and printed jacket edges. */
.set-wall .set-list {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 12px 10px 13px 12px;
  list-style: none;
  border: 1px solid;
  border-color: #847888 #504653 #3a323f #6e6271;
  border-radius: 5px;
  background:
    radial-gradient(circle at 6px 5px, #8b808e 1px, #211a24 1.5px 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 6px) 5px, #8b808e 1px, #211a24 1.5px 2px, transparent 2.5px),
    linear-gradient(90deg, #48404b 0, #302934 6px, #100e13 10px, #161219 calc(100% - 9px), #514755);
  box-shadow: inset 0 2px #a192a466, inset 0 -3px #241e29, 0 3px 0 #130f17, 0 6px 10px #08050c55;
}
.set-list li {
  --spine-paper: #e7dcde;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  background: #0c090f;
  box-shadow: 0 1px #594f5b;
}
.set-list li:nth-child(3n + 2) { --spine-paper: #dfd9e2; }
.set-list li:nth-child(3n) { --spine-paper: #e4ddd7; }
.set-list a {
  position: relative;
  display: block;
  padding: 3px 0.87rem 4px 4px;
  border: 1px solid;
  border-color: #a093a1 #504453 #4b404f #857987;
  border-radius: 3px;
  background: linear-gradient(#7e7280, #514857 12%, #433a48 80%, #6d606f);
  box-shadow: inset 0 -1px #38303b, 0 2px 1px #050308;
  color: var(--spine-ink);
  text-decoration: none;
}
.set-list a::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 2px;
  bottom: 6px;
  width: 7px;
  background: repeating-linear-gradient(90deg, #91849477 0 1px, #3c344200 1px 3px);
}
.set-sleeve {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 2.6rem;
  border-left: 1px solid #ece4e7;
  border-radius: 1px;
  background: linear-gradient(110deg, #fff9f630 10%, transparent 70%, #78677820), var(--spine-paper);
  box-shadow: inset 0 1px #fff8f788, inset 0 -1px #75677777, 0 0 0 1px #312a35;
}
.set-thumb {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 2.5rem;
  height: 100%;
  object-fit: cover;
  border-right: 2px solid #fff5f3a0;
}
.set-spine-title {
  grid-column: 2;
  padding: 0.3rem 0.55rem;
  font: 600 clamp(0.86rem, 1.8cqi, 1rem)/1.19 'Trebuchet MS', system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.set-list a[aria-current] {
  --spine-paper: var(--listing-accent, var(--pink));
  transform: translateX(-3px);
  border-top-color: #e9dce9;
  box-shadow: -1px 2px 0 #2e2331, 1px 3px 4px #07050b;
}
.set-list a[aria-current] .set-spine-title { font-weight: 700; }
@media (hover: hover) {
  .set-list a:hover { transform: translateX(-3px); }
  .set-list a:hover .set-spine-title { text-decoration: underline; text-underline-offset: 0.16em; }
}
@media (forced-colors: active) {
  .set-list a[aria-current] { border: 2px solid Highlight; }
}
@container music-wall (min-width: 635px) {
  .set-wall { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
