/* Home: the favorieten band, a row of sleeves, and the dialog that lists the pieces of one favoriet. */
.home-favorieten .band-head h2 { flex: 1 1 auto; }
.home-favorieten .band-head p { flex: 1 1 24ch; }
.fav-sleeves {
  display: flex; gap: clamp(12px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0 0 12px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.fav-sleeves li { flex: 0 0 clamp(150px, 16vw, 232px); scroll-snap-align: start; }
.fav-sleeve { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-top: 1px solid var(--hair-strong); padding-top: 12px; }
.fav-sleeve-figure { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; background: var(--black-2); overflow: hidden; }
.fav-sleeve-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .4s var(--ease); }
.fav-sleeve-title {
  margin-top: 12px; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 15px; line-height: 1.2; min-height: 2.4em;
}
.fav-sleeve-count { margin-top: 6px; color: var(--ink-2); font-size: 12px; }
.fav-sleeve-count .num { font-size: 16px; color: var(--ink); }
.fav-sleeve:hover { border-top-color: var(--ink); }
.fav-sleeve:hover .fav-sleeve-title { text-decoration: underline; text-underline-offset: 3px; }
.fav-sleeve:hover img, .fav-sleeve:focus-visible img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .fav-sleeve-figure img { transition: none; } .fav-sleeve:hover img, .fav-sleeve:focus-visible img { transform: none; } }

.fav-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; margin: auto; overflow: hidden;
  background: var(--black-2); color: var(--ink); border: 1px solid var(--hair-strong); border-radius: 0;
}
.fav-dialog[open] { display: flex; }
.fav-dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.fav-dialog-body { display: flex; flex-direction: column; gap: 20px; width: 100%; min-height: 0; padding: clamp(20px, 3vw, 32px); }
.fav-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fav-dialog-head h2 {
  margin: 0; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1;
}
.fav-dialog-head form { flex: none; margin: 0; }
.fav-close { min-height: 44px; padding: 0 18px; }
.fav-pieces { list-style: none; margin: 0; padding: 0; counter-reset: piece; overflow-y: auto; min-height: 0; border-bottom: 1px solid var(--hair); }
.fav-pieces li { counter-increment: piece; display: grid; grid-template-columns: 3ch 1fr; gap: 12px; align-items: center; min-height: 48px; border-top: 1px solid var(--hair); }
.fav-pieces li::before { content: counter(piece); font-family: var(--f-num); font-stretch: 62%; font-weight: 800; font-size: 22px; color: var(--ink-2); }
.fav-pieces li a, .fav-pieces li span { display: block; padding: 10px 0; }
.fav-pieces li a { text-decoration: none; }
.fav-pieces li a:hover { text-decoration: underline; }
.fav-dialog .btn { align-self: flex-start; }
html:has(.fav-dialog[open]) { overflow: hidden; }
