/* The Media page — rows style themselves (engine shelf.js); this is the page
   around them: the search, the chips, the results, the articles grid, the
   overlay. The ground beneath is the site's own (core's ground.php), so the
   page paints nothing behind itself. */
/* THE GLASS. Peter, 2026-09-04: "give that a dark glass background like we've
   got throughout the site, semi-transparent, container." The pane is built
   from the skin's own axes — tint, opacity, blur, gold hairline — so it is the
   same glass the member pages wear and follows the flavour when it changes.
   Composed HERE, not from --mysk-glass, for the reason skin.css gives: a
   composed var freezes the opacity where it was declared. */
.mm-shelves {
  box-sizing: border-box; width: min(1440px, 94vw); margin: 2.5rem auto 4rem; padding: 2rem 0 2.5rem;
  color: #efeaf6; font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  background: rgba(var(--mysk-tint, 12,15,34), var(--mysk-a, .52));
  backdrop-filter: blur(var(--mysk-blur, 12px)) saturate(var(--mysk-sat, 1.12));
  -webkit-backdrop-filter: blur(var(--mysk-blur, 12px)) saturate(var(--mysk-sat, 1.12));
  border: 1px solid var(--mysk-edge, rgba(232,196,122,.28)); border-radius: 16px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.mm-shelves .mshelf-head, .mm-shelves .mm-search, .mm-shelves .mm-chips, .mm-shelves .mm-results-line, .mm-shelves .mm-articles, .mm-shelves .mm-shelves-title { padding-left: 2rem; padding-right: 2rem; margin-left: 0; margin-right: 0; }
.mm-shelves .mshelf-track { padding-left: 2rem; padding-right: 2rem; scroll-padding: 0 2rem; }
.mm-shelves .mshelf-nav { width: 3rem; }
.mm-shelves .mm-results-grid .mshelf-track { padding-left: 2rem; padding-right: 2rem; }

/* THE GOLD RIM. Peter, 2026-09-04: "put the various categories in a gold rim
   visually — the big ones. Podcast, Films, etc." Each row (Films, Podcast,
   Photographs, and the Articles beneath) sits in its own gold-rimmed frame
   inside the glass, an inch in from the pane's edge. The search results,
   which stand in for the rows, go without. */
.mm-shelves .mshelf:not(.is-results), .mm-shelves .mm-articles {
  margin: 0 2rem 1.6rem; padding: 1.1rem 0 .2rem; border-radius: 12px;
  border: 1px solid var(--gold-bright, #f0c674);
  box-shadow: 0 0 0 1px rgba(240,198,116,.16) inset, 0 0 0 3px rgba(240,198,116,.06), 0 0 24px -6px rgba(240,198,116,.22);
  background: rgba(240,198,116,.025); }
.mm-shelves .mshelf:not(.is-results) .mshelf-head { padding-left: 1.4rem; padding-right: 1.4rem; }
.mm-shelves .mshelf:not(.is-results) .mshelf-track { padding-left: 1.4rem; padding-right: 1.4rem; scroll-padding: 0 1.4rem; }
.mm-shelves .mshelf:not(.is-results) .mshelf-nav.l { left: 0; border-radius: 12px 0 0 12px; }
.mm-shelves .mshelf:not(.is-results) .mshelf-nav.r { right: 0; border-radius: 0 12px 12px 0; }
.mm-shelves .mm-articles { padding: 1.1rem 1.4rem 1.4rem; }
@media (max-width: 700px) { .mm-shelves { width: 100%; border-radius: 0; margin-top: 0; } .mm-shelves .mshelf-head, .mm-shelves .mm-search, .mm-shelves .mm-chips, .mm-shelves .mm-results-line, .mm-shelves .mm-articles, .mm-shelves .mshelf-track { padding-left: 1rem; padding-right: 1rem; }
  .mm-shelves .mshelf:not(.is-results), .mm-shelves .mm-articles { margin: 0 .6rem 1.2rem; border-radius: 8px; }
  .mm-shelves .mshelf:not(.is-results) .mshelf-head, .mm-shelves .mshelf:not(.is-results) .mshelf-track { padding-left: .9rem; padding-right: .9rem; } .mm-shelves .mm-articles { padding: .9rem; } }
.mm-shelves-title { font-family: inherit; font-weight: 400; font-size: clamp(28px, 3vw, 44px); letter-spacing: .08em; margin: 0 4vw 1.2rem; color: #efeaf6; }

/* the search across everything */
.mm-search { position: relative; margin: 0 4vw 1rem; }
.mm-search-input { width: 100%; box-sizing: border-box; padding: .9rem 3rem .9rem 1.2rem; font: inherit; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: .02em; color: #efeaf6;
  background: rgba(8, 10, 24, .55); border: 1px solid rgba(240,198,116,.3); border-radius: 999px; backdrop-filter: blur(8px); outline: none; }
.mm-search-input::placeholder { color: rgba(239,234,246,.45); font-style: italic; }
.mm-search-input:focus { border-color: rgba(240,198,116,.7); box-shadow: 0 0 0 3px rgba(240,198,116,.12); }
.mm-search-clear { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(240,198,116,.4); background: rgba(8,8,16,.6); color: var(--gold-bright, #f0c674); cursor: pointer; }
.mm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 4vw 1.8rem; }
.mm-chips-label { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(239,234,246,.45); margin: 0 .3rem 0 .6rem; }
.mm-chips-label:first-child { margin-left: 0; }
.mm-chip { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,234,246,.7);
  background: rgba(8,10,24,.45); border: 1px solid rgba(240,198,116,.22); border-radius: 999px; padding: .45em 1em; cursor: pointer; }
.mm-chip:hover { color: #efeaf6; border-color: rgba(240,198,116,.5); }
.mm-chip.is-on { color: #0a0912; background: var(--gold-bright, #f0c674); border-color: var(--gold-bright, #f0c674); }

/* results replace the shelves while a search stands */
.mm-results[hidden], .mm-shelves-rows[hidden], .mm-articles[hidden] { display: none; }
.mm-results-line { font-style: italic; color: rgba(239,234,246,.6); margin: 0 4vw 1rem; }
.mm-results-grid .mshelf-head { display: none; }
.mm-results-grid .mshelf-track { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; gap: 1rem; padding: 0 4vw; }
.mm-results-grid .mshelf-card[data-aspect] { width: clamp(180px, 18vw, 300px); }
.mm-results-grid .mshelf-nav { display: none; }

/* the articles beneath */
.mm-articles { padding: 1rem 4vw 0; }
.mm-articles-head h2 { font-family: inherit; font-weight: 400; font-size: clamp(20px, 2vw, 28px); letter-spacing: .06em; margin: 0 0 1rem; color: #efeaf6; }
.mm-articles-head h2 small { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: .55em; letter-spacing: .2em; text-transform: uppercase; color: rgba(239,234,246,.5); margin-left: .9em; }
.mm-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem 1.2rem; }
.mm-article { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(240,198,116,.14); border-radius: 6px; overflow: hidden; background: rgba(12,12,24,.75);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease; }
.mm-article:hover { transform: translateY(-4px); border-color: rgba(240,198,116,.55); }
.mm-article-art { display: block; aspect-ratio: 16 / 9; background: #141426 center / cover no-repeat; }
.mm-article-art.no-art { background: linear-gradient(160deg, rgba(143,214,207,.25), rgba(60,48,110,.6) 55%, rgba(224,137,90,.25)); }
.mm-article-text { display: block; padding: .8rem .95rem 1rem; }
.mm-article-date { display: block; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright, #f0c674); margin-bottom: .35rem; }
.mm-article-title { display: block; font-size: 1.15rem; line-height: 1.2; color: #efeaf6; }
.mm-article-blurb { display: block; font-size: .92rem; line-height: 1.45; color: rgba(239,234,246,.65); margin-top: .4rem; font-style: italic; }

/* the overlay: a film plays, a photograph is seen whole */
.mm-film { position: fixed; inset: 0; z-index: 99990; background: rgba(4,4,10,.92); display: none; align-items: center; justify-content: center; padding: 3vh 3vw; }
.mm-film.is-open { display: flex; }
body.mm-film-open { overflow: hidden; }
.mm-film-frame { position: relative; width: min(1400px, 94vw); }
.mm-film-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 100px -30px #000; }
.mm-film-stage.is-photo { aspect-ratio: auto; max-height: 80vh; display: flex; justify-content: center; background: transparent; box-shadow: none; }
.mm-film-stage iframe, .mm-film-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mm-film-stage img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 40px 100px -30px #000; }
.mm-film-cap { margin-top: .9rem; text-align: center; display: flex; flex-direction: column; gap: .3rem; align-items: center; }
.mm-film-title { font-family: var(--serif, "Cormorant Garamond", Georgia, serif); font-size: clamp(16px, 1.6vw, 24px); letter-spacing: .06em; color: #efeaf6; }
.mm-film-meta { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239,234,246,.6); }
.mm-film-link { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright, #f0c674); text-decoration: none; margin-top: .2rem; }
.mm-film-close { position: absolute; top: -2.6rem; right: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid rgba(240,198,116,.6); background: rgba(8,8,16,.6); color: var(--gold-bright, #f0c674); cursor: pointer; font-size: 14px; }
