/* merit_contest.css v4. Light browsing page with a dark hero, dark immersive modal and entry page.
   The site navbar is position:fixed (64px) and adds its own 64px spacer, so every sticky/fixed element here offsets by --nav-h. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --nav-h: 64px;
  --bg: #fff; --stone: #f4f4f2; --stone-2: #e9e9e6; --line: #e3e3df; --line-2: #c9c9c3;
  --ink: #151514; --ink-2: #3c3c39; --ink-3: #66665f; --ink-4: #86867f;
  --gold: #7a5500; --gold-bg: #f5e8c3; --silver: #46505a; --silver-bg: #e3e7eb; --bronze: #6b4220; --bronze-bg: #f0dcc9; --warn: #b3401f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --r: 6px;
}
/* dark scope: the modal's info panel and the whole standalone entry page */
.mm-body, .sa-body {
  --bg: #121211; --stone: #1c1c1a; --stone-2: #262624; --line: #2a2a28; --line-2: #3d3d3a;
  --ink: #f1f1ee; --ink-2: #d4d4cf; --ink-3: #a3a39c; --ink-4: #7d7d77;
  --gold: #f0c35a; --gold-bg: #3a2e0e; --silver: #b9c3cd; --silver-bg: #2a3036; --bronze: #e3ab7c; --bronze-bg: #3b2a1c; --warn: #ff8a66;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { background: var(--bg); color: var(--ink-2); font-family: var(--sans); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a, a:hover, a:focus, button { text-decoration: none !important; }
a { color: inherit; } img { display: block; max-width: 100%; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; } ul { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.verif { font-size: .8em; }

/* rank labels */
.rk { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 650; line-height: 1; padding: 6px 9px; border-radius: 4px; background: var(--stone-2); color: var(--ink-2); white-space: nowrap; }
.rk-1, .rk-h { background: var(--gold-bg); color: var(--gold); } .rk-2 { background: var(--silver-bg); color: var(--silver); } .rk-3 { background: var(--bronze-bg); color: var(--bronze); }

/* ───────── contest page: hero ───────── */
.mc-hero { position: relative; background: #0c0c0b; color: #fff; overflow: hidden; }
.mc-hero-bg { position: absolute; inset: 0; }
.mc-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mc-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,11,.35) 0%, rgba(12,12,11,.92) 100%); }
.mc-hero-in { position: relative; max-width: 1480px; margin: 0 auto; padding: clamp(56px, 9vw, 130px) clamp(20px, 4vw, 64px) clamp(36px, 5vw, 64px); }
.mc-eyebrow { font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.mc-hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; margin-bottom: 20px; }
.mc-hero-desc { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 64ch; line-height: 1.65; margin-bottom: 32px; }
.mc-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; }
.mc-facts dt { font-size: .82rem; color: rgba(255,255,255,.6); }
.mc-facts dd { font-size: 1.25rem; font-weight: 650; color: #fff; }

.mc-body { max-width: 1480px; margin: 0 auto; padding: 36px clamp(16px, 3.4vw, 56px) 96px; }
.mc-sec-h { font-size: 1rem; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.mc-sec-h-big { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin: 28px 0 30px; }

/* jury */
.mc-jury { margin-bottom: 36px; }
.mc-jurors { display: flex; flex-wrap: wrap; gap: 10px; }
.mc-juror { display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 1px solid var(--line); border-radius: 100px; transition: border-color .15s, background .15s; }
a.mc-juror:hover { border-color: var(--ink-4); background: var(--stone); }
.mc-juror-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--stone); flex-shrink: 0; }
.mc-juror strong { display: block; font-size: .92rem; color: var(--ink); line-height: 1.2; }
.mc-juror small { display: block; font-size: .8rem; color: var(--ink-4); }

/* toolbar: sticks BELOW the fixed site navbar */
.mc-bar { position: sticky; top: var(--nav-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0 0; margin-bottom: 34px; }
.mc-bar-in { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.mc-search { flex: 1; max-width: 680px; display: flex; align-items: center; gap: 10px; background: var(--stone); border: 1px solid transparent; border-radius: 8px; padding: 0 10px 0 14px; transition: border-color .15s, background .15s; }
.mc-search:focus-within { background: #fff; border-color: var(--ink); }
.mc-search i { color: var(--ink-4); font-size: .9rem; }
.mc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 0; appearance: none; }
.mc-search input::-webkit-search-cancel-button { display: none; }
.mc-x { display: none; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); align-items: center; justify-content: center; }
.mc-x.show { display: flex; } .mc-x:hover { background: var(--stone-2); }
.mc-kbd { font: inherit; font-size: .75rem; color: var(--ink-4); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 7px; }
.mc-search:focus-within .mc-kbd, .mc-x.show ~ .mc-kbd { display: none; }
.mc-count { font-size: .88rem; color: var(--ink-3); white-space: nowrap; }
.mc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 10px; }
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab { padding: 8px 16px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: background .15s, color .15s; }
.mc-tab:hover { background: var(--stone); color: var(--ink); }
.mc-tab.act { background: var(--ink); color: #fff; }
.mc-empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }
.mc-empty i { font-size: 1.8rem; margin-bottom: 12px; color: var(--line-2); display: block; }
.mc-empty button { margin-top: 14px; padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 600; }
.mc-empty button:hover { background: var(--stone); }

/* categories */
.mc-category { margin-bottom: 76px; scroll-margin-top: calc(var(--nav-h) + 124px); content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.mc-cat-h { display: flex; align-items: baseline; gap: 16px; border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 24px; }
.mc-cat-title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.mc-cat-count { margin-left: auto; font-size: .9rem; color: var(--ink-4); }
.mc-cat-desc { font-size: 1rem; color: var(--ink-3); max-width: 70ch; margin: -8px 0 24px; }
.mc-category.mc-hide, .mc-card.mc-hide { display: none !important; }

/* podium (top 3) */
.mc-podium { display: grid; gap: clamp(16px, 2.4vw, 32px); margin-bottom: clamp(30px, 4vw, 52px); align-items: start; }
.mc-podium[data-n="3"] { grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); }
.mc-podium[data-n="2"] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.mc-podium[data-n="1"] { grid-template-columns: minmax(0, 760px); }
.mc-podium .mc-photo { aspect-ratio: var(--r, 1.5); max-height: clamp(320px, 62vh, 680px); width: 100%; }
@media (max-width: 860px) { .mc-podium[data-n] { grid-template-columns: 1fr; } .mc-podium .mc-photo { max-height: 70vh; } }

/* the rest: justified rows, every photo keeps its real aspect ratio */
.mc-just { display: flex; flex-wrap: wrap; gap: 38px 18px; }
.mc-just::after { content: ''; flex-grow: 1000000; }
.mc-just .mc-card { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 250px); min-width: 0; }
@media (max-width: 700px) { .mc-just { gap: 28px 10px; } .mc-just .mc-card { flex-basis: calc(var(--r, 1.5) * 150px); } }

/* cards */
.mc-card { display: block; color: inherit; scroll-margin-top: calc(var(--nav-h) + 140px); }
.mc-photo { position: relative; aspect-ratio: var(--r, 1.5); background: var(--stone); border-radius: var(--r); overflow: hidden; }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .4s ease; }
.mc-photo img.loaded { opacity: 1; }
.mc-card:hover .mc-photo img.loaded { transform: scale(1.03); }
.mc-photo img.mc-broke { display: none; }
.mc-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--line-2); }
.mc-photo .rk { position: absolute; top: 12px; left: 12px; background: rgba(21,21,20,.84); color: #fff; }
.mc-photo .rk-1, .mc-photo .rk-h { background: #7a5500; } .mc-photo .rk-2 { background: #46505a; } .mc-photo .rk-3 { background: #6b4220; }
.mc-views { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(21,21,20,.66); padding: 5px 9px; border-radius: 4px; }
.mc-info { padding: 14px 2px 0; }
.mc-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; }
.mc-podium .mc-card[data-rank="1"] .mc-name { font-size: 1.55rem; }
.mc-country { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-4); letter-spacing: 0; }
.mc-ttl { font-size: .98rem; color: var(--ink-2); margin-top: 3px; }
.mc-vis { font-size: .9rem; color: var(--ink-3); line-height: 1.55; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-meta { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: .82rem; color: var(--ink-4); margin-top: 9px; }
.mc-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mc-meta i { font-size: .72rem; }

/* ───────── modal (dark, immersive) ───────── */
.mm-overlay { position: fixed; inset: 0; z-index: 9200; background: rgba(4,4,4,.92); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .15s linear, visibility .15s; }
.mm-overlay.open { opacity: 1; visibility: visible; }
.mm-modal { --mh: min(92vh, 920px); position: relative; width: 100%; max-width: 1460px; height: var(--mh); display: grid; grid-template-columns: minmax(0, 1fr) clamp(390px, 32vw, 480px); background: #0b0b0a; border: 1px solid #232321; border-radius: 14px; overflow: hidden; }
.mm-stage { --sh: calc(var(--mh) - 64px); position: relative; min-width: 0; min-height: 0; background: #070707; display: flex; align-items: center; justify-content: center; padding: 32px; }
.mm-stage-in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* the frame has the photo's real aspect ratio from the first paint, so the watermark overlay is positioned correctly immediately */
.mm-frame { position: relative; aspect-ratio: var(--ar, 1.5); width: min(100%, calc(var(--sh) * var(--ar, 1.5))); max-height: 100%; background: #121211; border-radius: 2px; overflow: hidden; }
.mm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
/* instant watermark: same placement/size rule as the upload pipeline (fractions are set per photo by JS) */
.mm-wm { position: absolute; inset: 0; container-type: size; pointer-events: none; overflow: hidden; }
.mm-wm-in { position: absolute; right: 3%; bottom: 3%; width: 20%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; opacity: .88; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.mm-wm-in img { width: 100%; height: auto; display: block; }
.mm-wm-in span { font-weight: 600; font-size: 12px; line-height: 1.3; color: #fff; white-space: nowrap; }
@supports (width: 1cqw) {
  .mm-wm-in { right: calc(var(--m) * 100cqw); bottom: calc(var(--m) * 100cqw); width: calc(var(--lw) * 100cqw); gap: calc(var(--gap) * 100cqw); }
  .mm-wm-in span { font-size: calc(var(--fs) * 100cqw); }
}
.mm-wm-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38%; height: auto; opacity: .12; }
@supports (width: 1cqw) { .mm-wm-c { width: calc(var(--cw) * 100cqw); } }
.mm-frame.is-full .mm-wm { display: none; }   /* the real watermark is baked into the full image */

.mm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.mm-nav:hover:not(:disabled) { background: rgba(255,255,255,.22); } .mm-nav:disabled { opacity: .2; cursor: default; }
.mm-prev { left: 14px; } .mm-next { right: 14px; }
.mm-expand { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: .88rem; font-weight: 600; transition: background .15s; }
.mm-expand:hover { background: rgba(255,255,255,.22); }
.mm-count { position: absolute; left: 18px; bottom: 16px; font-size: .85rem; color: rgba(255,255,255,.55); }
.mm-close { position: absolute; top: 14px; right: 14px; z-index: 7; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background .15s; }
.mm-close:hover { background: rgba(255,255,255,.22); }
.mm-body { overflow-y: auto; overscroll-behavior: contain; padding: 30px 30px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; background: var(--bg); color: var(--ink-2); }
.mm-err { color: var(--warn); }
.mm-skel { background: linear-gradient(100deg, #1d1d1b 30%, #292927 50%, #1d1d1b 70%); background-size: 200% 100%; animation: mmsh 1.3s ease-in-out infinite; border-radius: 6px; }
@keyframes mmsh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.mm-skel-title { height: 34px; width: 70%; } .mm-skel-line { height: 15px; } .mm-skel-line.short { width: 55%; } .mm-skel-block { height: 130px; }

@media (max-width: 900px) {
  .mm-overlay { padding: 0; }
  .mm-modal { --mh: 100dvh; max-width: none; border: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 46dvh) minmax(0, 1fr); }
  .mm-stage { --sh: calc(46dvh - 32px); padding: 16px; }
  .mm-body { padding: 22px 18px 34px; }
  .mm-nav { width: 38px; height: 38px; } .mm-prev { left: 8px; } .mm-next { right: 8px; }
  .mm-close { background: rgba(0,0,0,.55); top: 10px; right: 10px; }
  .mm-expand { top: 10px; left: 10px; padding: 7px 11px; } .mm-count { left: 12px; bottom: 10px; }
}

/* ───────── detail content (modal body + entry page) ───────── */
.dt-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9rem; color: var(--ink-3); padding-right: 48px; }
.dt-sl { color: var(--line-2); }
.mm-title { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-top: -6px; text-wrap: balance; }
.mm-subtitle { font-size: 1rem; color: var(--ink-3); margin-top: -14px; }
.dt-person { display: flex; align-items: center; gap: 14px; }
.dt-av { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: var(--stone-2); display: flex; align-items: center; justify-content: center; color: var(--ink-4); flex-shrink: 0; }
.dt-av img { width: 100%; height: 100%; object-fit: cover; }
.dt-pn strong { display: block; font-family: var(--serif); font-size: 1.18rem; color: var(--ink); line-height: 1.2; }
.dt-pn small { font-size: .88rem; color: var(--ink-4); }
.dt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 100px; font-size: .85rem; font-weight: 550; color: var(--ink-2); transition: border-color .15s, background .15s; }
.dt-link:hover { border-color: var(--ink-4); background: var(--stone); }
.dt-lede { font-size: .98rem; line-height: 1.7; color: var(--ink-3); }

.dt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dt-stats > div { padding: 14px 12px 14px 0; }
.dt-stats dt { font-size: .8rem; color: var(--ink-4); }
.dt-stats dd { font-size: 1.25rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.dt-stats dd small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-4); }
.dt-stats time { font-size: 1rem; }

.dt-sec { display: flex; flex-direction: column; gap: 14px; }
.dt-h { font-size: 1rem; font-weight: 650; color: var(--ink); }
.dt-summary { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.dt-facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; font-size: .98rem; font-weight: 600; color: var(--ink); }
.dt-facets span { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-4); }
.dt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dt-chips li { padding: 5px 12px; border-radius: 100px; background: var(--stone-2); font-size: .85rem; color: var(--ink-2); }

/* Read more: the full text stays in the DOM (crawlers read it); it is only clipped until the visitor expands it */
.dt-rm-body { font-size: 1rem; line-height: 1.8; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; max-width: 70ch; }
.dt-rm:not(.is-open) .dt-rm-body { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.dt-rm-btn { align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); transition: background .15s; }
.dt-rm-btn:hover { background: var(--stone); } .dt-rm-btn i { font-size: .75rem; transition: transform .2s; }
.dt-rm.is-open .dt-rm-btn i { transform: rotate(180deg); }

.dt-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.dt-specs dt { font-size: .8rem; color: var(--ink-4); } .dt-specs dd { font-size: .98rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.dt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.dt-btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s; }
.dt-btn:hover { background: var(--stone); border-color: var(--ink-4); }
.dt-btn-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); } .dt-btn-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.dt-share { display: inline-flex; gap: 7px; margin-left: auto; }
.dt-share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.dt-share button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.dt-jury-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dt-jchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border-radius: 100px; background: var(--stone-2); font-size: .85rem; font-weight: 550; color: var(--ink-2); }
.dt-jchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* recommendations */
.mm-suggest { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 26px; }
.mm-suggest:empty { display: none; }
.rg-h { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.rg-h i { font-size: .85rem; color: var(--ink-4); }
.rg-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.rc { flex: 0 0 158px; display: flex; flex-direction: column; gap: 7px; scroll-snap-align: start; color: inherit; }
.rc-ph { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--stone-2); }
.rc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; } .rc:hover .rc-ph img { transform: scale(1.05); }
.rc-ph img.rc-broke { display: none; }
.rc-name { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-4); min-width: 0; }
.rc-sub .rk { padding: 4px 7px; font-size: .7rem; }

/* ───────── full-size viewer (above the navbar and the chat bubble) ───────── */
.fv { position: fixed; inset: 0; z-index: 2147483000; background: #050505; display: flex; align-items: center; justify-content: center; }
.fv-close { position: fixed; top: 16px; right: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.fv-close:hover { background: rgba(255,255,255,.3); }
.fv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.fv-img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; cursor: zoom-in; opacity: 0; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.fv.ready .fv-img { opacity: 1; }
.fv.zoom .fv-stage { display: block; }
.fv.zoom .fv-img { max-width: none; max-height: none; cursor: zoom-out; margin: auto; }
.fv-hint { position: fixed; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); pointer-events: none; }
.fv.zoom .fv-hint { display: none; }

/* ───────── standalone entry page (dark; starts below the fixed navbar) ───────── */
.sa-body { background: var(--bg); min-height: 100vh; }
.sa-wrap { max-width: 1520px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 48px) 90px; }
.sa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-4); margin-bottom: 20px; }
.sa-crumbs a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); } .sa-crumbs a:hover { color: var(--ink); }
.sa-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(390px, 34vw, 500px); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
/* sticky media sits UNDER the navbar, never behind it */
.sa-media { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; align-items: center; justify-content: center; min-height: 320px; max-height: calc(100vh - var(--nav-h) - 40px); border-radius: 10px; overflow: hidden; background: #070707; }
.sa-media > img { width: 100%; height: auto; max-height: calc(100vh - var(--nav-h) - 40px); object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.sa-media .mm-expand { top: auto; bottom: 14px; left: 14px; }
.sa-info { overflow: visible; padding: 0; background: transparent; }
.sa-recs { margin: 56px 0 44px; }
.sa-recs .mm-suggest { border-top: 1px solid var(--line); padding-top: 28px; }
.sa-recs .rc { flex-basis: 200px; }
.sa-body .mc-jury { margin-top: 10px; }
@media (max-width: 960px) { .sa-grid { grid-template-columns: 1fr; } .sa-media { position: relative; top: 0; max-height: none; } .sa-media > img { max-height: 75vh; } }
@media (max-width: 520px) { .dt-facets, .dt-specs { grid-template-columns: 1fr; } .dt-share { margin-left: 0; } }

/* no visible scrollbars inside the modal; scrolling and swiping still work */
.mm-body, .rg-row, .fv-stage { scrollbar-width: none; -ms-overflow-style: none; }
.mm-body::-webkit-scrollbar, .rg-row::-webkit-scrollbar, .fv-stage::-webkit-scrollbar { display: none; width: 0; height: 0; }
