/* Featured banners: tall rounded cards, centred, not filling the width. All cards in a row share one shape (--r) and glow in their pictures' colours.
   Three are always visible; more than three scroll sideways. The four styles are classes on the row (s-short, s-aura, s-full, s-lip). */
.tallband { position:relative; width:100vw; margin:0 0 0 calc(50% - 50vw); border-top:1px solid var(--ink); border-bottom:4px double var(--ink); padding:26px 0 0; overflow:hidden; }
.tallhd { display:flex; align-items:center; gap:16px; padding:0 max(24px, calc(50vw - 596px)); }
.tallhd h2 { flex:none; font:italic 700 26px/1 var(--serif); margin:0; }
.tallhd::after { content:""; flex:1; height:1px; background:var(--ink); order:1; }
.tallhd .sc { order:2; }
.tallband:not(:has(.tbrow.many)) .tallhd .sc { display:none; }   /* nothing to scroll with three or fewer */

/* --bh: --hv % of the window's height, but never so tall that three cards stop fitting side by side (--sum = their widths added up, per unit of height) */
.tbrow { --gap:clamp(10px, 2.4vw, 36px); --side:clamp(14px, 4vw, 56px);
  --bh:min(clamp(300px, calc(var(--hv, 78) * 1vh), 1100px), calc((100vw - 2 * var(--side) - 2 * var(--gap) - 18px) / var(--sum, 1.2)));
  display:flex; gap:var(--gap); overflow-x:auto; overflow-y:hidden; padding:48px var(--side) 60px; scrollbar-width:none; scroll-snap-type:x proximity; isolation:isolate; }
.tbrow.many { cursor:grab; -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 var(--side), #000 calc(100% - var(--side)), transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 var(--side), #000 calc(100% - var(--side)), transparent 100%); }
.tbrow.drag { cursor:grabbing; scroll-snap-type:none; }
.tbrow::-webkit-scrollbar { display:none; }
.tbrow:not(.many) { overflow:visible; }   /* three or fewer always fit, so the glow is free to spread without a hard edge */
.tbrow > .tb:first-child { margin-left:auto; } .tbrow > .tb:last-child { margin-right:auto; }

.tb { --rad:26px; --stripe:linear-gradient(90deg, #5a6bff, #c86bff, #ff9a76);   /* replaced by the picture's own colours (see tall.js) */
  position:relative; flex:none; width:calc(var(--bh) * var(--r, .4)); height:var(--bh); color:#fff; text-decoration:none; scroll-snap-align:center; user-select:none; -webkit-user-drag:none;
  transition:transform .35s; animation:tbRise .7s backwards cubic-bezier(.2,.8,.2,1); animation-delay:calc(var(--i, 0) * 90ms); }
.tb:hover, .tb:focus-visible { transform:translateY(-10px); }
.tb::after { content:""; position:absolute; left:0; right:0; top:100%; height:12px; }   /* when the card lifts, the mouse near its lower edge still counts, so it does not flicker */
.tb:focus-visible { outline:3px solid var(--accent); outline-offset:6px; border-radius:var(--rad); }

/* the picture's frame is called "tcard": "card" belongs to the home page's plates, whose styles would push the picture down and leave a dark strip on top */
/* the aura: a soft, brighter copy of the picture behind the card */
.tb .halo { position:absolute; inset:0; z-index:-1; border-radius:var(--rad); background:#6a62c9 center / cover no-repeat; filter:blur(34px) saturate(1.7); opacity:.65; transform:scale(1.04); transition:opacity .4s, transform .4s; pointer-events:none; }
.tb:hover .halo, .tb:focus-visible .halo { opacity:1; transform:scale(1.12); }

.tb .tcard { position:absolute; inset:0; border-radius:var(--rad); overflow:hidden; background:#0c0d11; }
.tb .tcard::before { content:""; position:absolute; inset:8px; z-index:3; border:1px solid rgba(255,255,255,.6); border-radius:calc(var(--rad) - 7px); pointer-events:none; }   /* the thin inner line */
.tb .art { position:absolute; inset:0; overflow:hidden; }
.tb .art img, .tb .art .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 12%; display:block; transform-origin:0 0; will-change:transform; aspect-ratio:auto !important; }   /* the hover zoom sets the transform (see tall.js) */
.tb .art .ph { font-size:0; color:transparent; }   /* a banner without a picture yet is plain colour, with no stand-in number */
.tb .art::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(transparent 70%, rgba(5,6,10,.82)); }

/* the stripe along the bottom edge, with its own soft glow */
.tb .stripe, .tb .back { display:none; background:var(--stripe); pointer-events:none; }
.tb .stripe { position:absolute; left:0; right:0; bottom:0; height:9px; z-index:2; }
.tb .stripe::before { content:""; position:absolute; left:0; right:0; top:-7px; height:14px; background:inherit; filter:blur(9px); opacity:.85; }
.s-short .tb .stripe, .s-full .tb .stripe { display:block; }
.s-short .tb .stripe { left:31%; right:31%; height:8px; border-radius:8px 8px 0 0; transition:left .45s cubic-bezier(.2,.8,.2,1), right .45s cubic-bezier(.2,.8,.2,1); }
.s-short .tb:hover .stripe, .s-short .tb:focus-visible .stripe { left:17%; right:17%; }   /* hovering stretches it out a bit */
/* the lip: a second card in the same colours, pushed down */
.s-lip .tb .back { display:block; position:absolute; left:0; right:0; top:11px; height:100%; border-radius:var(--rad); }
.s-lip .tb .tcard { box-shadow:0 3px 10px rgba(0,0,0,.3); }
.s-short .tb .tcard::before, .s-full .tb .tcard::before, .s-lip .tb .tcard::before { bottom:16px; }

.tb .tag { position:absolute; top:18px; right:18px; z-index:4; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.5); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font:700 10px var(--sans); letter-spacing:.12em; text-transform:uppercase; padding:3px 9px; border-radius:99px; text-shadow:0 1px 6px rgba(0,0,0,.6); pointer-events:none; }

/* the caption on the picture: title, stars, kind and year */
.tb .info { position:absolute; left:16px; right:16px; bottom:5%; z-index:4; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; text-shadow:0 2px 10px rgba(0,0,0,.85); }
.s-short .tb .info, .s-full .tb .info, .s-lip .tb .info { bottom:6%; }
.tb .info .nm { font:800 clamp(11px, 1.35vw, 19px)/1.15 var(--sans); font-style:normal; letter-spacing:.01em; overflow-wrap:anywhere; }
.tb .info u { text-decoration:none; letter-spacing:3px; font-size:12px; color:#ffd45a; } .tb .info u s { text-decoration:none; color:rgba(255,255,255,.3); }
.tb .info b { font:600 10px var(--mono, var(--sans)); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.75); }

@keyframes tbRise { from { opacity:0; transform:translateY(34px) scale(.96); } }
@media (hover:none) { .tb:hover { transform:none; } }
@media (prefers-reduced-motion: reduce) { .tb { animation:none; } .tb, .tb .halo, .tb .stripe { transition:none !important; } .tb:hover { transform:none; } }
@media (max-width:700px) { .tbrow { padding-top:30px; padding-bottom:36px; } .tb { --rad:16px; } .tb .tcard::before { inset:4px; border-radius:12px; } .s-short .tb .tcard::before, .s-full .tb .tcard::before, .s-lip .tb .tcard::before { bottom:9px; }
  .tb .stripe, .s-short .tb .stripe { height:5px; } .s-lip .tb .back { top:7px; } .tb .info { left:7px; right:7px; gap:3px; } .tb .info u { font-size:8px; letter-spacing:1px; } .tb .info b { display:none; } .tb .tag { top:9px; right:8px; font-size:8px; padding:2px 6px; } }
