/* The media page (5.10.2026): a living archive. A projector-room night: shelves of photos you stroll through,
   year chips and kind chips that stay at hand, songs on the record player, videos as posters until tapped. */
.md { position: relative; }
.md-top { padding: calc(var(--header-h, 80px) + clamp(18px, 3vw, 40px)) 0 clamp(14px, 2vw, 24px); text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(255, 210, 63, .16), transparent 70%); }
.md-k { margin: 0; font-family: var(--font-hand); font-weight: 700; color: var(--gold, #ffd700); }
.md-h1 { margin: 2px 0 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; background: linear-gradient(180deg, #fff, #ffe9a8 45%, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.md-lead { margin: 8px auto 0; max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-hero, #efe9ff); }
.md-stats { list-style: none; margin: 16px auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.md-stats li { display: grid; } .md-stats b { font-family: var(--font-hand); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; font-variant-numeric: tabular-nums; } .md-stats span { font-size: .85rem; color: var(--text-soft); }
/* the filters: stay under the header while scrolling */
.md-bar { position: sticky; top: calc(var(--header-h, 76px) + 4px); z-index: 30; padding: 8px 0; }
.md-bar .wrap { display: grid; gap: 6px; }
.md-types, .md-years { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.md-types::-webkit-scrollbar, .md-years::-webkit-scrollbar { display: none; }
.md-types { background: rgba(14, 6, 41, .82); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 30px -18px #000; justify-content: center; }
.md-types button, .md-years button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text-soft, #cfc6e8); font: 700 .92rem inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.md-types button[aria-pressed="true"] { background: var(--gold, #ffd700); color: #2a1400; }
.md-years { justify-content: center; }
.md-years button { min-height: 34px; padding: 0 12px; font-size: .86rem; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.md-years button[aria-pressed="true"] { background: rgba(255, 215, 0, .18); color: #fff; box-shadow: inset 0 0 0 1.5px var(--gold, #ffd700); }
.md-years[hidden] { display: none; }
.md-body { display: grid; gap: clamp(30px, 5vw, 64px); padding-top: clamp(14px, 2vw, 26px); padding-bottom: clamp(30px, 5vw, 70px); }
.md-block[hidden], .md-shelf[hidden] { display: none; }
.md-bh { margin-bottom: 14px; } .md-bh h2 { margin: 2px 0 4px; font-family: var(--font-hand); font-size: clamp(1.8rem, 4vw, 2.8rem); } .md-bh p:not(.md-k) { margin: 0; color: var(--text-soft); }
/* a shelf of photos: one event, one strip that scrolls sideways */
.md-shelf { margin-top: 18px; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.md-sh-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 10px; }
.md-year { display: grid; place-items: center; min-width: 58px; height: 34px; padding: 0 8px; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; color: #1a0d00; background: var(--c); }
.md-sh-head h3 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); } .md-sh-head p { margin: 0; font-size: .88rem; color: var(--text-soft); }
.md-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: .92rem; color: var(--c, var(--gold)); text-decoration: none; white-space: nowrap; }
.md-more svg { width: 16px; height: 16px; }
.md-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
.md-ph { flex: none; height: clamp(150px, 22vw, 230px); aspect-ratio: var(--ar, 1.5); max-width: 82vw; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06); cursor: zoom-in; scroll-snap-align: start; }
.md-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.md-ph:hover img { transform: scale(1.04); }
.md-empty { color: var(--text-soft); text-align: center; }
/* videos: posters only until tapped */
.md-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.md-vid { margin: 0; } .md-vid .video { border-radius: 18px; } .md-vid figcaption { margin-top: 6px; font-size: .92rem; color: var(--text-soft); }
.md-yt { margin: 16px 0 0; text-align: center; }
.md-loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 10px; }
.md-loop { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #000; }
.md-loop video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.md-loop figcaption { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; font-size: .86rem; font-weight: 700; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.md-songs { margin-top: clamp(14px, 2vw, 26px); }
@media (max-width: 800px) {
  .md-types { justify-content: flex-start; } .md-years { justify-content: flex-start; }
  .md-sh-head { grid-template-columns: auto minmax(0, 1fr); } .md-more { grid-column: 1 / -1; justify-self: start; min-height: 32px; }
  .md-ph { height: 150px; }
}
