/* RexBande — one shared visual system for every visitor route. */
:root {
  color-scheme: dark;
  --bg: #0d111a;
  --panel: #161d29;
  --panel-raised: #1d2635;
  --field: #101722;
  --text: #f1f4f7;
  --muted: #adb8c8;
  --quiet: #8391a5;
  --line: #2b3546;
  --line-soft: #222b39;
  --mint: #a6efd0;
  --mint-ink: #102c22;
  --lilac: #c7b6f3;
  --red: #ffb4ba;
  --radius: 14px;
  --content: 1288px;
  --header: 76px;
  --bottom-nav: 0px;
  --plyr-color-main: #a6efd0;
  --plyr-video-control-color: #ffffff;
  --plyr-video-control-color-hover: #102c22;
  --plyr-video-control-background-hover: #a6efd0;
  --plyr-range-fill-background: #a6efd0;
  --plyr-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; }
button svg, a svg { flex-shrink: 0; }
svg { width: 22px; height: 22px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 760; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.12rem; }
p { color: var(--muted); }
strong { font-weight: 680; }
::selection { background: #a6efd044; color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 110; padding: 12px 18px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); transform: translateY(-150%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
#content { min-height: 60vh; padding-block: 28px 76px; }
#content:focus { outline: none; }
.ambient { display: none; }
.eyebrow, .section-kicker { display: block; color: var(--mint); font-size: .75rem; line-height: 1.45; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { margin-bottom: 16px; }
.section-kicker { margin-bottom: 8px; }
.button, .icon-button, .view-choice, .player-tool, .filter-toggle { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-raised); color: var(--text); font-size: .875rem; font-weight: 700; line-height: 1.35; text-align: center; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button { padding: 12px 18px; }
.button:hover, .icon-button:hover, .view-choice:hover, .filter-toggle:hover { border-color: #61717c; background: #263143; }
.button-primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.button-primary:hover { background: #c2f8e1; border-color: #c2f8e1; }
.button-primary svg { width: 19px; height: 19px; }
.button-subtle { background: transparent; }
.button-sm { min-height: 44px; padding: 10px 15px; }
.icon-button { width: 44px; padding: 10px; flex: 0 0 44px; }
.text-link, .section-action, .hero-profile, .contribute-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mint); font-size: .875rem; font-weight: 700; text-underline-offset: 5px; }
.text-link:hover, .section-action:hover, .hero-profile:hover, .contribute-text-link:hover { text-decoration: underline; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.danger-button { color: var(--red); border-color: #67424d; background: #281e28; }
.danger-button:hover { background: #3a2630; border-color: #97606d; }

/* Navigation */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--header); border-bottom: 1px solid #c6e7dc1a; background: #0d111ab8; -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 4px 24px #03070b12; }
.topbar-inner { width: min(var(--content), calc(100% - 64px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 44px; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 12px #a6efd018); }
.brand-text { white-space: nowrap; font-size: 1.375rem; font-weight: 830; letter-spacing: -.055em; }
.brand-text > span { color: var(--mint); }
.brand-text small { color: var(--lilac); margin-left: 1px; font-size: .75rem; font-weight: 650; letter-spacing: -.02em; }
.topnav { display: flex; flex: 1 1 auto; min-width: 0; justify-content: center; align-items: center; gap: 3px; margin-inline: auto; height: 100%; }
.topnav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 999px; color: #bec9da; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.topnav a:hover { background: #cbe5ff0b; border-color: #cbe5ff10; color: var(--text); }
.topnav a.active, .topnav a[aria-current="page"] { color: var(--mint); background: #a6efd012; border-color: #a6efd027; }
.topnav svg { display: block; width: 17px; height: 17px; opacity: .85; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-actions .icon-button { border-color: #c8d3ea21; background: #1b243273; border-radius: 12px; }
.header-actions .icon-button:hover { border-color: #a6efd04a; background: #263345c9; }
.header-search { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 10px; color: #d5dfec; }
.header-search span { display: none; }
.bookmark-header { position: relative; }
.saved-count { position: absolute; top: -5px; right: -4px; min-width: 19px; padding: 1px 4px; border-radius: 20px; border: 2px solid var(--bg); background: var(--mint); color: var(--mint-ink); font-size: .75rem; line-height: 1.35; font-weight: 800; }
.mobile-drawer { position: fixed; z-index: 65; top: calc(var(--header) + 10px); right: max(32px, calc((100vw - var(--content))/2)); width: min(350px, calc(100% - 32px)); max-height: calc(100dvh - var(--header) - var(--bottom-nav) - 32px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 20px 70px #0009; }
.drawer-group + .drawer-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.drawer-primary { display: none; }
.drawer-primary + .drawer-secondary { border-top: 0; margin-top: 0; padding-top: 0; }
.drawer-label { display: block; padding: 8px 12px; color: var(--quiet); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.drawer-group a { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 10px 12px; font-size: .9375rem; border-radius: 7px; }
.drawer-group a svg { width: 19px; height: 19px; color: var(--quiet); }
.drawer-group a:hover { background: var(--panel-raised); color: var(--mint); }
.bottom-nav { display: none; }
.connectivity-note { max-width: 920px; margin: 16px auto 0; padding: 12px 18px; border: 1px solid #625b42; background: #27261e; color: #e4d8b1; border-radius: 8px; font-size: .875rem; }

/* A compact, character-led opening */
.hero { position: relative; isolation: isolate; height: 390px; overflow: hidden; border: 1px solid #303c4c; border-radius: 19px; background: #151e2c; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 63%; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 43%; opacity: 1; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #151e2c 0%, #151e2ccc 12%, #151e2c20 35%, transparent 64%); pointer-events: none; }
.hero-copy { position: relative; display: flex; justify-content: center; flex-direction: column; height: 100%; width: 63%; padding: 36px 42px; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.6rem, 4.1vw, 3.5rem); line-height: 1.05; letter-spacing: -.05em; text-wrap: initial; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-copy > p { margin-top: 21px; color: #c1cbd8; line-height: 1.65; font-size: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.hero-profile { color: #e5eaf2; font-weight: 600; }
.section { margin-top: 64px; }
.first-section, .resume-section { margin-top: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.section-title { font-size: 1.65rem; letter-spacing: -.04em; }
.section-action { flex-shrink: 0; min-height: 34px; margin-bottom: -3px; }

/* Videos share one card everywhere: image first, metadata below. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.media-card { position: relative; min-width: 0; }
.media-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; isolation: isolate; background: var(--panel-raised); }
.media-cover > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-cover:hover > img { transform: scale(1.035); }
.cover-fallback { position: absolute; z-index: 0; display: none; align-items: center; justify-content: center; inset: 0; padding: 22px; color: var(--muted); font-size: .875rem; text-align: center; }
.cover-unavailable > .cover-fallback { display: flex; }
.cover-unavailable > img[hidden] { display: none; }
.cover-play { position: absolute; z-index: 2; display: grid; place-items: center; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%; background: #a6efd0f0; box-shadow: 0 4px 22px #0006; color: var(--mint-ink); opacity: 0; transform: translate(-50%, -43%) scale(.92); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.cover-play svg { width: 25px; height: 25px; margin-left: 2px; fill: currentColor; stroke-width: 1px; }
.media-cover:hover .cover-play, .media-cover:focus-visible .cover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cover-duration { position: absolute; z-index: 2; bottom: 10px; right: 10px; border-radius: 4px; padding: 2px 6px; background: #090e17e8; font-size: .75rem; line-height: 1.4; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.cover-progress { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 4px; background: #05090fc9; }
.cover-progress > span { display: block; height: 100%; background: var(--mint); }
.media-body { min-width: 0; padding: 13px 1px 0; }
.media-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .75rem; line-height: 1.45; color: var(--quiet); margin-bottom: 6px; }
.media-meta > * + *::before { content: "·"; margin-right: 8px; color: #657286; }
.media-type { color: var(--mint); font-weight: 650; }
.media-body h3 { font-size: 1rem; font-weight: 720; letter-spacing: -.02em; line-height: 1.4; text-wrap: initial; }
.media-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.media-title:hover { color: var(--mint); }
.media-description, .media-collection { display: none; }
.media-description, .media-collection span, .media-credit a { overflow-wrap: anywhere; }
.media-bottom { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-top: 2px; }
.media-credit { flex: 1; min-width: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.media-credit a { text-underline-offset: 3px; }
.media-credit a:hover { color: var(--mint); text-decoration: underline; }
.cover-save { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; margin: -3px -8px -5px 0; padding: 11px; border: 0; border-radius: 8px; color: var(--quiet); background: transparent; }
.cover-save:hover { background: var(--panel-raised); color: var(--text); }
.cover-save.active { color: var(--mint); }
.cover-save.active svg { fill: #a6efd025; }
.resume-label { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--mint); font-size: .75rem; }
.resume-label svg { width: 14px; height: 14px; }

/* Collections are clearly selectable stacks of actual videos. */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.collection { --collection-accent: var(--mint); display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #131b27; transition: border-color .18s, background .18s; }
.collection--lilac { --collection-accent: var(--lilac); }
.collection--sky { --collection-accent: #9bdaf2; }
.collection:hover { border-color: var(--collection-accent); background: #192332; }
.collection-covers { position: relative; aspect-ratio: 1.85; margin: 0 0 18px; isolation: isolate; }
.collection-covers img { position: absolute; width: 83%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; border: 2px solid #172231; box-shadow: 0 8px 22px #0006; }
.collection-covers img:nth-child(1) { z-index: 3; left: 0; top: 10%; }
.collection-covers img:nth-child(2) { z-index: 2; right: 5%; top: 5%; opacity: .8; }
.collection-covers img:nth-child(3) { z-index: 1; right: 0; top: 0; opacity: .55; }
.collection-count { position: absolute; z-index: 4; right: 5px; bottom: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #506378; border-radius: 6px; padding: 6px 9px; background: #111a28ee; color: #e5edf7; font-size: .75rem; font-weight: 650; }
.collection-count svg { width: 15px; height: 15px; }
.collection-content { padding-inline: 9px; display: flex; flex: 1; flex-direction: column; }
.collection-content h3 { font-size: 1.18rem; line-height: 1.3; overflow-wrap: anywhere; }
.collection-content p { margin-top: 9px; margin-bottom: 16px; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.collection-open { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; font-size: .8125rem; font-weight: 750; color: var(--collection-accent, var(--mint)); border-bottom: 1px solid #a6efd04d; }
.collection-open:hover { border-bottom-color: currentColor; }
.rexy-intro { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 56px; margin-top: 72px; padding: 36px 48px; border-radius: 18px; background: #161e2b; }
.rexy-intro-art { aspect-ratio: 1; display: block; overflow: hidden; border-radius: 16px; }
.rexy-intro-art img { width: 100%; height: 100%; object-fit: cover; }
.rexy-intro-copy { max-width: 620px; }
.rexy-intro-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
.rexy-intro-copy p { margin-top: 19px; }
.rexy-intro-copy .inline-actions, .rexy-intro-copy > .button { margin-top: 24px; }
.topic-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.topic-strip a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 12px 16px; border-radius: 9px; border: 1px solid var(--line); background: #151c28; font-size: .875rem; font-weight: 650; }
.topic-strip a:hover { color: var(--mint); border-color: #679480; background: #192b2a; }
.topic-strip a span { min-width: 0; overflow-wrap: anywhere; }
.topic-count { color: var(--quiet); font-size: .75rem; font-variant-numeric: tabular-nums; }
.keep-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 64px; padding: 32px 0; border-block: 1px solid var(--line); }
.keep-banner > div { display: flex; align-items: flex-start; gap: 19px; }
.keep-banner > div > svg { width: 28px; height: 28px; margin-top: 4px; color: var(--mint); }
.keep-banner h2 { font-size: 1.4rem; }
.keep-banner p { margin-top: 9px; font-size: 1rem; max-width: 700px; }
.keep-banner > .button { flex-shrink: 0; }

/* Archive */
.archive-banner {
 position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
 min-height: clamp(180px, 18vw, 224px); margin: 0 0 22px; padding: clamp(22px, 3.5vw, 50px);
 border: 1px solid #394053; border-radius: 16px; background: #171e30;
}
.archive-banner-art {
 position: absolute; z-index: -1; inset: 0 0 0 auto; height: 100%; width: 57%;
 object-fit: cover; object-position: 50% 54%;
 mask-image: linear-gradient(90deg, transparent, #000 31%);
}
.archive-banner > div { width: 49%; }
.archive-banner h1 { font-size: clamp(2.25rem, 4.3vw, 3.65rem); letter-spacing: -.045em; }
.archive-banner p { max-width: 34ch; margin-top: 10px; color: #ced6e5; line-height: 1.5; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 22px 32px; }
.page-header h1 { max-width: 900px; }
.page-header p { max-width: 720px; margin-top: 16px; }
.page-header .eyebrow { margin-bottom: 12px; }
.archive-toolbar { display: flex; align-items: center; gap: 10px; }
.archive-search { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid #39465a; border-radius: 10px; background: var(--field); color: var(--quiet); }
.archive-search:focus-within { border-color: var(--mint); outline: 1px solid var(--mint); }
.archive-search > svg { width: 21px; height: 21px; flex: 0 0 auto; }
.archive-search input { width: 100%; min-width: 0; height: 50px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .9375rem; }
input::placeholder { color: #8d99aa; opacity: 1; }
.filter-toggle { min-height: 52px; padding: 11px 15px; }
.filter-toggle svg { width: 19px; height: 19px; }
.filter-toggle.is-active { color: var(--mint); border-color: #679480; background: #1b2a2a; }
#filter-mobile-state:empty { display: none; }
#filter-mobile-state { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-size: .75rem; }
.share-archive { min-height: 52px; width: 52px; flex-basis: 52px; }
.facet-panel {
 display: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start;
 gap: 18px 32px; margin-top: 12px; padding: clamp(16px, 2vw, 26px);
 border: 1px solid #3b4958; border-radius: 13px; background: var(--panel);
}
.facet-panel.is-open { display: grid; }
.facet-help { grid-column: 1 / -1; font-size: .875rem; }
.facet-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.facet-group legend { margin: 0 0 9px; padding: 0; font-size: 1rem; font-weight: 700; }
.facet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.facet-option {
 display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 10px;
 border: 1px solid #384454; border-radius: 8px; background: var(--field); cursor: pointer;
 font-size: .875rem; color: var(--text); line-height: 1.3;
}
.facet-option:hover { background: #1b2833; border-color: #677687; }
.facet-option:has(input:checked) { border-color: #75b39b; background: #203832; color: #c5f8e1; }
.facet-option:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.facet-option input { width: 17px; height: 17px; margin: 0; flex: none; cursor: pointer; accent-color: var(--mint); }
.facet-option > span { overflow-wrap: anywhere; }
.facet-count { margin-left: auto; color: #b4c0d1; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.facet-footer {
 grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between;
 gap: 10px 20px; padding-top: 15px; border-top: 1px solid var(--line);
}
.facet-sort, .facet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.facet-panel .facet-sort label { margin-bottom: 0; }
.facet-sort select { width: auto; max-width: 100%; }
.field { min-width: 0; }
.field label, .settings-card form > label, .field-label { display: block; margin-bottom: 8px; color: #d1d9e4; font-size: .875rem; font-weight: 650; }
select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 38px 11px 13px; border: 1px solid #3c485a; border-radius: 8px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aebacb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--text); font-size: .875rem; appearance: none; cursor: pointer; }
select option { background: var(--panel); }
.clear-btn { min-height: 46px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 600; }
.clear-btn:hover { border-color: var(--line); background: var(--panel-raised); color: var(--text); }
.archive-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.quicktypes, .person-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 15px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 650; }
.chip:hover { color: var(--text); background: #192231; }
.chip.active, .chip[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }
.view-switch { display: inline-flex; gap: 2px; margin-bottom: 5px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.view-choice { min-height: 44px; width: 44px; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--quiet); }
.view-choice svg { width: 18px; height: 18px; }
.view-choice.active { background: #a6efd024; color: var(--mint); }
.archive-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; min-height: 57px; padding-block: 8px; }
#archive-result-subcount { margin-right: auto; font-size: .875rem; color: #c7d2df; }
#active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#active-filters:empty { display: none; }
.active-filter { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; min-height: 44px; border: 1px solid #4d655f; border-radius: 6px; background: #172b28; color: var(--mint); font-size: .8125rem; }
.active-filter[data-remove-filter="person"] { color: #e1d7ff; background: #2a263b; border-color: #5d536f; }
.active-filter:hover { border-color: currentColor; }
.active-filter svg { width: 14px; height: 14px; }
.catalog-note { color: var(--quiet); font-size: .8125rem; line-height: 1.6; }
.archive-content > .catalog-note { margin: -5px 0 24px; }
.archive-list-mode .cards { grid-template-columns: 1fr; gap: 0; }
.archive-list-mode .media-card { display: grid; grid-template-columns: minmax(220px, 29%) minmax(0, 1fr); align-items: center; gap: 27px; padding: 23px 0; border-bottom: 1px solid var(--line-soft); }
.archive-list-mode .media-card:first-child { padding-top: 0; }
.archive-list-mode .media-body { padding: 0; }
.archive-list-mode .media-body h3 { font-size: 1.15rem; }
.archive-list-mode .media-title { display: block; overflow: visible; }
.archive-list-mode .media-description { display: block; max-width: 76ch; margin-top: 10px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.archive-list-mode .media-collection { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 3px; color: var(--mint); font-size: .8125rem; font-weight: 650; text-underline-offset: 4px; }
.archive-list-mode .media-collection svg { width: 16px; height: 16px; }
.archive-list-mode .media-collection:hover { text-decoration: underline; }
.archive-list-mode .media-bottom { justify-content: space-between; max-width: 620px; margin-top: 8px; }
.empty { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 16px; padding: 64px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #131a25; }
.empty > svg { width: 36px; height: 36px; color: var(--mint); }
.empty h2, .empty h1 { font-size: 1.65rem; }
.empty p { max-width: 490px; }
.empty .button { margin-top: 8px; }
.loading { padding: 60px 24px; text-align: center; color: var(--muted); }

/* People and detail pages */
.avatar { display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center; width: 54px; height: 54px; overflow: hidden; border: 1px solid #526477; border-radius: 50%; background: #263444; font-size: 1.1rem; color: var(--mint); font-weight: 750; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.micro-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--panel-raised); font-size: .75rem; }
.micro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.person-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.person-mini:hover { border-color: #718a82; background: #1a2532; }
.person-mini .avatar { width: 88px; height: 88px; font-size: 1.6rem; }
.person-mini strong { display: block; font-size: 1.25rem; letter-spacing: -.025em; }
.person-mini small { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.person-count { display: block; margin-top: 13px; font-size: .8125rem; color: var(--quiet); }
.person-open { margin-top: auto; min-height: 32px; padding-top: 6px; color: var(--mint); font-size: .875rem; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 14px; font-size: .875rem; color: var(--muted); text-underline-offset: 5px; }
.back-link::before { content: ""; width: 7px; height: 7px; margin: 0 12px 0 3px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--mint); text-decoration: underline; }
.profile-header { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 54px; padding: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 17px; }
.profile-identity { display: flex; align-items: center; gap: 24px; }
.profile-identity .avatar { width: 132px; height: 132px; border-radius: 17px; font-size: 2.5rem; }
.profile-identity h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); overflow-wrap: anywhere; }
.profile-identity .eyebrow { margin-bottom: 10px; }
.profile-identity p { margin-top: 13px; font-size: .9375rem; }
.profile-bio p + p { margin-top: 17px; }
.profile-bio p { line-height: 1.75; }
.profile-interests { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.profile-interests span { padding: 5px 10px; color: #c8d1de; border: 1px solid var(--line); border-radius: 6px; font-size: .8125rem; }
.person-tabs { margin: -3px 0 25px; border-bottom: 1px solid var(--line); }
.tab-count { color: var(--quiet); font-size: .75rem; font-weight: 500; }
.collection-header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 44px; min-height: 310px; padding: 34px 40px; border-radius: 17px; background: var(--panel); border: 1px solid var(--line); }
.collection-header h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); overflow-wrap: anywhere; }
.collection-header p { margin-top: 17px; }
.collection-header .button { margin-top: 23px; }
.collection-header-images { position: relative; width: 100%; max-width: 490px; aspect-ratio: 1.6; min-width: 0; justify-self: end; isolation: isolate; }
.collection-header-images img { position: absolute; width: 88%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 2px solid var(--panel); box-shadow: 0 12px 28px #0006; }
.collection-header-images img:nth-child(1) { z-index: 3; top: 10%; left: 0; }
.collection-header-images img:nth-child(2) { z-index: 2; top: 5%; right: 6%; opacity: .8; }
.collection-header-images img:nth-child(3) { z-index: 1; top: 0; right: 0; opacity: .55; }
.about-page .page-header p { max-width: 650px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 70px); margin-top: 10px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, #172433, #161c29); }
.about-editorial { max-width: 640px; }
.about-editorial h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-editorial p { margin-top: 18px; line-height: 1.8; }
.about-editorial .button, .about-editorial .inline-actions { margin-top: 25px; }
.about-art { margin: 0; min-width: 0; width: 100%; overflow: hidden; border-radius: 14px; }
.about-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-art figcaption { margin-top: 12px; color: var(--quiet); font-size: .875rem; }
.about-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-block: 27px; border-block: 1px solid var(--line); }
.about-features > * { min-width: 0; }
.about-features svg { width: 24px; height: 24px; margin-bottom: 14px; color: var(--mint); }
.about-features h2, .about-features h3 { font-size: 1.08rem; }
.about-features p { margin-top: 10px; font-size: 1rem; line-height: 1.7; }
.about-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 32px; }
.about-links > a, .about-link-card { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 13px; background: #151e2a; transition: background .18s, border-color .18s; }
.about-links a:hover, .about-link-card:hover { border-color: #658c7e; background: #1b2a34; }
.about-links a > svg, .about-link-card > svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--mint); }
.about-links h2, .about-links h3 { color: var(--text); font-size: 1.3rem; line-height: 1.3; }
.about-links p { font-size: 1rem; line-height: 1.7; }
.about-links .text-link, .about-link-card .text-link { margin-top: auto; color: var(--mint); }

/* Watch page and player: keep both utility buttons inside the player. */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 30px; }
.watch-page { min-width: 0; }
.watch-stage { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 13px; background: #03070c; }
.watch-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #03070c; border-radius: 13px; container-type: inline-size; --plyr-control-radius: 6px; }
.watch-player > video, .watch-player .plyr { display: block; width: 100%; height: 100%; max-height: none; border-radius: inherit; }
.watch-player video { width: 100%; height: 100%; object-fit: contain; background: #03070c; }
.watch-player .plyr--video { overflow: hidden; background: #03070c; }
.watch-player .plyr__poster { background-size: cover; }
.watch-player .plyr__control--overlaid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; margin: 0; padding: 0; border: 1px solid #b8f8db; border-radius: 50%; background: #b0f2d8; color: #102c22; box-shadow: 0 0 0 2px #12271e99, 0 3px 15px #0006; }
.watch-player .plyr--full-ui.plyr--video .plyr__control--overlaid { display: grid; place-items: center; }
.watch-player .plyr__control--overlaid svg { position: static; width: 24px; height: 24px; margin: 0; transform: none; }
.watch-player .plyr__control--overlaid:hover { background: #caf8e4; color: #102c22; }
.watch-player .plyr__controls { gap: 2px; padding-inline: 9px; }
.watch-player .plyr__controls > .plyr__control,
.watch-player .plyr__controls > .plyr__menu > .plyr__control,
.watch-player .plyr__volume > .plyr__control {
 display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0;
}
.watch-stage:has(.has-plyr:not(.is-floating)), .watch-player.has-plyr { aspect-ratio: auto; }
.watch-player.has-plyr > .plyr:not(:fullscreen):not(.plyr--fullscreen-fallback) { height: auto; aspect-ratio: 16 / 9; }
.watch-player .plyr__progress__container { min-width: 50px; }
.watch-player .plyr__time { font-size: .75rem; font-variant-numeric: tabular-nums; }
.watch-player .plyr__volume { max-width: 110px; min-width: 38px; }
.watch-player .plyr__menu__container { background: #e9eff6; color: #101c2d; border-radius: 8px; }
.watch-player .plyr__tooltip { font-size: .75rem; white-space: nowrap; }
.player-tools { display: flex; position: absolute; top: 12px; right: 12px; z-index: 7; gap: 6px; }
.player-tool { width: 44px; height: 44px; padding: 10px; background: #0c1524e8; border-color: #607086; box-shadow: 0 2px 8px #0004; }
.player-tool:hover { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.player-tool.is-active { background: var(--mint); color: var(--mint-ink); }
.player-return { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #526276; border-radius: 7px; background: #0c1524e8; color: #fff; z-index: 9; }
.player-return:hover { background: #334559; }
.player-return svg { width: 19px; height: 19px; }
.watch-player.is-floating { position: fixed; z-index: 55; width: min(440px, calc(100vw - 32px)); height: auto; aspect-ratio: 16/9; right: 24px; bottom: calc(24px + var(--bottom-nav)); border: 1px solid #7c8da2; border-radius: 12px; box-shadow: 0 16px 70px #000b, 0 0 0 4px #0d111a; }
.watch-player.is-floating .player-tools { right: 55px; top: 8px; }
.watch-player.is-loading::after { content: ""; pointer-events: none; position: absolute; top: 50%; left: 50%; z-index: 6; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid #ffffff35; border-top-color: var(--mint); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch-topline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; color: var(--quiet); font-size: .8125rem; line-height: 1.5; }
.watch-topline > * + *::before { content: "·"; margin-right: 8px; }
.watch-topline > :first-child { color: var(--mint); }
.watch-page > h1 { margin-top: 9px; font-size: clamp(1.8rem, 2.5vw, 2.3rem); line-height: 1.2; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.watch-actions .button { font-size: .8125rem; }
.watch-actions button[aria-pressed="true"] { border-color: #628f7b; color: var(--mint); background: #1d302c; }
.watch-actions .source-link { margin-left: auto; }
.watch-desc { margin-top: 24px; padding-block: 22px; border-block: 1px solid var(--line); }
.watch-desc p { line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-pill { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 10px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.tag-pill:hover { border-color: #728b85; color: var(--mint); }
.credits-panel { display: flex; flex-wrap: wrap; gap: 17px 28px; margin-top: 29px; }
.credits-panel h2 { width: 100%; margin-bottom: 1px; font-size: 1.125rem; }
.credit-link { display: flex; align-items: center; gap: 12px; }
.credit-link .avatar { width: 43px; height: 43px; font-size: .875rem; }
.credit-link strong { display: block; color: var(--text); font-size: .875rem; }
.credit-link small { display: block; color: var(--quiet); font-size: .75rem; }
.credit-link:hover strong { color: var(--mint); }
.watch-side { min-width: 0; }
.collection-journey { padding: 19px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.journey-top { display: flex; align-items: flex-start; gap: 10px; padding: 0 5px 16px; border-bottom: 1px solid var(--line); }
.journey-top > svg { margin-top: 3px; width: 20px; height: 20px; color: var(--mint); }
.journey-top > div { flex: 1; }
.journey-top .section-kicker { font-size: .75rem; letter-spacing: .1em; margin-bottom: 5px; }
.journey-top h2 { font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; }
.journey-top h2 a:hover { color: var(--mint); }
.journey-top > span { flex-shrink: 0; color: var(--quiet); font-size: .75rem; }
.journey-list { margin-top: 7px; }
.journey-item { display: flex; gap: 10px; align-items: center; padding: 10px 5px; border-radius: 7px; }
.journey-item > img { width: 98px; height: auto; aspect-ratio: 16/9; flex-shrink: 0; border-radius: 5px; object-fit: cover; }
.journey-item > span { flex: 1; min-width: 0; }
.journey-item small { display: block; margin-bottom: 3px; color: var(--quiet); font-size: .75rem; }
.journey-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8125rem; line-height: 1.4; font-weight: 650; }
.journey-item > svg { width: 13px; height: 13px; color: var(--mint); }
.journey-item.is-current { background: #a6efd012; }
.journey-item.is-current small { color: var(--mint); }
.journey-item:hover { background: #233042; }
.collection-journey > .collection-open { margin: 10px 5px 0; }
.related-section { margin-top: 28px; }
.related-section h2 { font-size: 1.1rem; margin-bottom: 16px; }
.related { display: flex; align-items: center; gap: 13px; min-width: 0; margin-bottom: 17px; }
.related img { width: 120px; aspect-ratio: 16/9; height: auto; flex-shrink: 0; border-radius: 7px; object-fit: cover; }
.related > span, .related > div { min-width: 0; }
.related strong { display: block; font-size: .8125rem; line-height: 1.45; font-weight: 650; }
.related small { display: block; color: var(--quiet); font-size: .75rem; margin-top: 5px; }
.related:hover strong { color: var(--mint); }
.player-error { margin-top: 15px; padding: 22px; border: 1px solid #745c48; border-radius: 10px; background: #27221e; }
.player-error strong { display: block; color: #f8d9b7; }
.player-error p { margin-block: 9px 16px; font-size: .9375rem; }
.external-player { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; min-height: 220px; overflow: hidden; border-radius: 13px; }
.external-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.external-player > div { position: relative; text-align: center; padding: 24px; }
.external-player h2 { margin-bottom: 20px; }

/* Helping is a clear choice between files and name, not a stack of accordions. */
.contribute-header { padding-bottom: 34px; }
.contribute-header p { max-width: 760px; }
.contribute-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.contribute-option { display: flex; flex-direction: column; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.contribute-option-ipfs { border-top: 3px solid #9fe4c7; }
.contribute-option-ens { border-top: 3px solid var(--lilac); }
.contribute-option-ens .eyebrow { color: var(--lilac); }
.contribute-option h2 { font-size: 1.65rem; max-width: 380px; }
.contribute-option p { margin-top: 19px; line-height: 1.75; }
.contribute-instructions { list-style: decimal; margin: 22px 0 24px; padding-left: 22px; color: var(--muted); font-size: 1rem; }
.contribute-instructions li { padding-left: 5px; }
.contribute-instructions li + li { margin-top: 12px; }
.contribute-instructions li::marker { color: var(--mint); font-weight: 700; }
.contribute-cid { margin: 0 0 22px; padding: 18px; border: 1px solid #3d5c55; border-radius: 9px; background: #10201f; }
.contribute-cid code { display: block; margin: 8px 0 14px; overflow-wrap: anywhere; color: #d1e7dc; font-size: .8125rem; line-height: 1.8; }
.contribute-cid p { margin-top: 12px; font-size: .875rem; line-height: 1.65; }
.contribute-cid p code { display: inline; margin: 0; font-size: .8125rem; }
.contribute-domain-lookup .button { margin-top: 15px; }
.domain-cid-result:not(:empty) { margin-top: 20px; padding-top: 18px; border-top: 1px solid #3d5c55; }
.contribute-lookup-source { color: #a8bbb5; font-size: .8125rem; }
.contribute-lookup-source a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.contribute-copy-cid { background: #132122; }
.contribute-option .contribute-cid-note { margin: 0 0 24px; font-size: .8125rem; color: var(--quiet); }
.contribute-option > .button { margin-top: auto; align-self: flex-start; }
.contribute-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.contribute-domain { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 34px; margin-top: 22px; border-block: 1px solid var(--line); }
.contribute-domain > div { max-width: 820px; }
.contribute-domain .eyebrow { margin-bottom: 10px; }
.contribute-domain h2 { font-size: 1.4rem; }
.contribute-domain p { margin-top: 13px; font-size: 1rem; }
.contribute-domain .button { flex-shrink: 0; }
.contribute-thanks { max-width: 800px; padding-top: 27px; color: var(--muted); font-size: 1rem; }

/* Preferences */
.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.settings-card { min-width: 0; padding: 29px; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; }
.settings-card:last-child { grid-column: 1 / -1; }
.settings-card h2 { font-size: 1.35rem; }
.settings-card > p { margin-top: 15px; }
.settings-card .inline-actions, .settings-card form { margin-top: 23px; }
.settings-card .field-note { font-size: .8125rem; color: var(--quiet); line-height: 1.65; }
.settings-form-row { display: flex; flex-wrap: wrap; gap: 9px; }
.settings-form-row input { flex: 1 0 100%; min-width: 0; width: 100%; height: 48px; padding: 11px 13px; border: 1px solid #435066; border-radius: 8px; background: var(--field); color: var(--text); font-size: .9375rem; }
.settings-card:last-child > p { max-width: 960px; }

/* Search dialog */
body.is-searching::after { content: ""; position: fixed; z-index: 60; inset: 0; background: #030812bd; backdrop-filter: blur(7px); }
.search-panel { position: fixed; z-index: 70; top: 100px; left: 50%; transform: translateX(-50%); width: min(750px, calc(100% - 32px)); max-height: calc(100dvh - 132px - var(--bottom-nav)); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid #526279; border-radius: 16px; background: #151e2b; box-shadow: 0 25px 100px #000a; }
.search-shell { display: flex; align-items: center; gap: 12px; padding: 0 4px 10px 9px; border-bottom: 1px solid var(--line); }
.search-shell > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--mint); }
#global-search { min-width: 0; width: 100%; height: 48px; padding: 7px 0; background: transparent; border: 0; outline: 0; font-size: 1.125rem; color: var(--text); }
#search-close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--panel-raised); font-size: 1.2rem; color: var(--muted); }
#search-close:hover { color: var(--text); background: #2c3b50; }
.search-hint { padding: 12px 9px 10px; color: var(--quiet); font-size: .75rem; }
.search-hint span { margin-inline: 6px; }
.search-results { display: flex; flex-direction: column; gap: 5px; }
.suggestion { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 10px; border-radius: 9px; }
.suggestion:hover, .suggestion:focus-visible, .suggestion.selected { background: #263446; }
.suggestion > img { width: 102px; aspect-ratio: 16/9; height: auto; object-fit: cover; border-radius: 6px; }
.suggestion > div { min-width: 0; flex: 1; }
.suggestion p { color: var(--text); font-size: .9375rem; font-weight: 650; line-height: 1.45; }
.suggestion small { color: var(--quiet); font-size: .75rem; }
.suggestion > .pill { display: none; }
.search-all { display: flex; justify-content: center; align-items: center; min-height: 47px; padding: 10px; margin-top: 7px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; font-weight: 650; color: var(--mint); }
.search-all:hover { background: #20362f; }
.search-empty { padding: 22px 10px; font-size: .9375rem; }
.toast { position: fixed; z-index: 100; bottom: calc(26px + var(--bottom-nav)); left: 50%; transform: translateX(-50%); max-width: min(550px, calc(100% - 32px)); padding: 13px 20px; border: 1px solid #608675; border-radius: 9px; background: #18302a; color: #e5faef; box-shadow: 0 10px 50px #0009; font-size: .875rem; text-align: center; }

/* Footer */
.footer { position: relative; border-top: 1px solid #c7deee1f; background: linear-gradient(180deg, #111a2a, #0c111d); }
.footer::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(450px, 65%); height: 1px; background: linear-gradient(90deg, transparent, #a6efd09a, transparent); }
.footer-inner { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; padding: 48px 0 25px; }
.footer > .footer-top, .footer > .footer-bottom { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.footer > .footer-top { padding-top: 48px; }
.footer > .footer-bottom { padding-bottom: 25px; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 35px; text-align: center; }
.footer-identity { display: flex; flex-direction: column; align-items: center; max-width: 600px; }
.footer-wordmark { display: inline-flex; align-items: baseline; justify-content: center; gap: 0; min-height: 44px; font-size: 1.7rem; line-height: 1.25; font-weight: 820; letter-spacing: -.055em; }
.footer-wordmark > span { color: var(--mint); }
.footer-wordmark > small, .footer-wordmark .domain { font-size: .8em; font-weight: 650; color: var(--lilac); letter-spacing: -.025em; }
.footer-wordmark strong { font-weight: inherit; }
.footer-wordmark strong > span { color: var(--mint); }
.footer-wordmark > img { width: 40px; height: 40px; align-self: center; margin-right: 12px; }
.footer-identity p { margin-top: 8px; font-size: .875rem; color: #c0cbdc; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 4px 25px; max-width: 760px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--muted); }
.footer-links a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #c7deee1a; margin-top: 36px; padding-top: 20px; color: #98a7bc; font-size: .8125rem; }
.footer-bottom p { font-size: inherit; color: inherit; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 65px; width: min(850px, 100%); text-align: left; }
.footer-columns > div, .footer-columns > section { min-width: 0; }
.footer-columns h2 { color: var(--mint); font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.footer-columns a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 7px; color: #b9c6d9; font-size: .875rem; line-height: 1.5; }
.footer-columns a svg { width: 17px; height: 17px; color: #8b9db5; }
.footer-columns a:hover { color: #e8fff5; text-decoration: underline; text-underline-offset: 4px; }
.footer-quiet { display: block; color: #98a7bc; font-size: .8125rem; }

/* Tablet */
@media (max-width: 1100px) {
  .topbar-inner { gap: 12px; }
  .topnav { gap: 0; }
  .topnav a { padding-inline: 8px; gap: 6px; font-size: .8125rem; }
  .hero-copy { width: 68%; padding-left: 32px; }
  .hero h1 { font-size: 3rem; }
  .rexy-intro { grid-template-columns: 245px 1fr; gap: 36px; padding: 30px; }
  .topic-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .journey-item > img { width: 85px; }
  .watch-player .plyr__volume input[type="range"] { display: none; }
  .watch-player .plyr__volume { max-width: 44px; }
  .profile-header { grid-template-columns: 1fr; gap: 27px; }
  .profile-identity .avatar { width: 120px; height: 120px; }
  .profile-bio { max-width: 830px; }
}
@media (max-width: 1000px) {
  .topbar-inner { justify-content: space-between; }
  .topnav { display: none; }
  .drawer-primary { display: block; }
  .drawer-primary + .drawer-secondary { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
}
@media (max-width: 949px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .collections { gap: 18px; }
  .collection-content h3 { font-size: 1.05rem; }
  .collection-content { padding-inline: 3px; }
  .collection-content p { font-size: 1rem; }
  .collection-count { font-size: .75rem; gap: 5px; padding: 5px 7px; }
  .collection-covers { aspect-ratio: 1.7; }
  .facet-panel { grid-template-columns: minmax(0, 1fr); }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .person-mini { padding: 22px; }
  .person-mini .avatar { width: 72px; height: 72px; }
  .person-mini strong { font-size: 1.1rem; }
  .keep-banner { gap: 24px; }
  .keep-banner > div > svg { display: none; }
  .keep-banner h2 { font-size: 1.25rem; }
  .contribute-option { padding: 25px; }
  .contribute-option h2 { font-size: 1.4rem; }
  .contribute-domain { gap: 24px; align-items: flex-start; }
  .contribute-domain > .button { max-width: 210px; }
}
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .watch-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-top: 6px; }
  .related-section { margin-top: 2px; }
  .collection-journey { height: 100%; }
  .watch-player .plyr__volume input[type="range"] { display: block; }
  .watch-player .plyr__volume { max-width: 110px; }
}
@media (max-width: 820px) {
  :root { --header: 68px; --bottom-nav: calc(68px + env(safe-area-inset-bottom)); }
  .container, .topbar-inner, .footer-inner, .footer > .footer-top, .footer > .footer-bottom { width: calc(100% - 40px); }
  #content { padding-top: 22px; padding-bottom: 54px; }
  .topbar-inner { justify-content: space-between; }
  .topnav { display: none; }
  .brand img { width: 38px; height: 38px; }
  .header-actions { gap: 7px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 50; inset: auto 0 0; height: calc(68px + env(safe-area-inset-bottom)); padding: 4px 8px env(safe-area-inset-bottom); border-top: 1px solid #354252; background: #111925f7; backdrop-filter: blur(20px); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: #99a8bc; font-size: .75rem; font-weight: 650; letter-spacing: -.02em; }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav a.active, .bottom-nav a[aria-current="page"] { color: var(--mint); }
  .bottom-nav a.active::before, .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; height: 2px; width: 30px; background: var(--mint); }
  .footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-drawer { right: 20px; }
  .hero { height: 360px; }
  .hero-copy { width: 72%; padding: 30px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-art { width: 69%; }
  .hero-art::after { background: linear-gradient(90deg, #151e2c 0%, #151e2cce 17%, #151e2c23 68%); }
  .hero-actions { gap: 13px; margin-top: 22px; }
  .hero-profile { font-size: .8125rem; }
  .section { margin-top: 50px; }
  .first-section, .resume-section { margin-top: 32px; }
  .rexy-intro { grid-template-columns: 210px 1fr; gap: 26px; padding: 26px; margin-top: 52px; }
  .rexy-intro-copy h2 { font-size: 1.65rem; }
  .rexy-intro-copy p { font-size: 1rem; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .collection-covers { aspect-ratio: 1.85; }
  .collection-content h3 { font-size: 1.18rem; }
  .collection-content p { font-size: 1rem; }
  .collection:last-child:nth-child(odd) { grid-column: auto; }
  .keep-banner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .collection-header { gap: 26px; padding: 28px; }
  .collection-header h1 { font-size: 2rem; }
  .collection-header-images { aspect-ratio: 1.6; }
  .about-grid { gap: 28px; padding: 28px; }
  .about-editorial h2 { font-size: 1.8rem; }
  .about-features { gap: 20px; }
  .about-features p { font-size: 1rem; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-card:last-child { grid-column: auto; }
  .settings-form-row input { flex: 1 1 230px; }
  .contribute-main { gap: 20px; }
  .contribute-option { padding: 25px; }
  .contribute-actions .button { width: 100%; }
  .contribute-domain { flex-direction: column; }
  .contribute-domain > .button { max-width: none; }
  .footer-top { gap: 28px; }
  .footer-links { justify-content: center; gap: 3px 24px; }
  .footer-columns { gap: 24px 32px; }
  .search-panel { top: 86px; max-height: calc(100dvh - 108px - var(--bottom-nav)); }
  .watch-player.is-floating { bottom: calc(86px + env(safe-area-inset-bottom)); right: 18px; }
}

/* Phone: readable covers and a shorter route to the videos. */
@media (max-width: 600px) {
  .container, .topbar-inner, .footer-inner, .footer > .footer-top, .footer > .footer-bottom { width: calc(100% - 32px); }
  :root { --header: 64px; }
  #content { padding-top: 18px; padding-bottom: 43px; }
  .brand { gap: 7px; }
  .brand img { width: 35px; height: 35px; }
  .brand-text { font-size: 1.16rem; }
  .brand-text small { font-size: .75rem; }
  .header-actions { gap: 5px; }
  .header-actions .icon-button { width: 44px; flex-basis: 44px; min-height: 44px; padding: 9px; background: transparent; border-color: transparent; }
  .header-actions .icon-button:hover { background: var(--panel-raised); }
  .header-search span { display: none; }
  .header-search { width: 44px; }
  .header-actions svg { width: 21px; height: 21px; }
  .mobile-drawer { right: 16px; }
  .hero { display: flex; flex-direction: column; height: auto; border-radius: 14px; }
  .hero-art { position: relative; z-index: 0; inset: auto; width: 100%; height: clamp(150px, 40vw, 190px); opacity: 1; }
  .hero-art img { object-position: 78% 12%; }
  .hero-art::after { display: none; }
  .hero-copy { width: 100%; height: auto; padding: 22px 23px; justify-content: flex-start; }
  .hero-copy .eyebrow { margin-bottom: 9px; font-size: .75rem; }
  .hero h1 { font-size: clamp(1.8rem, 7.8vw, 2.25rem); line-height: 1.08; letter-spacing: -.047em; }
  .hero-copy > p { max-width: 440px; margin-top: 14px; font-size: 1rem; line-height: 1.6; color: #c9d4e1; }
  .hero-actions { gap: 9px 15px; margin-top: 18px; }
  .hero-actions .button { padding: 11px 14px; font-size: .8125rem; }
  .hero-profile { font-size: .875rem; }
  .desktop-break { display: none; }
  .section { margin-top: 43px; }
  .first-section, .resume-section { margin-top: 29px; }
  .section-head { gap: 13px; margin-bottom: 18px; }
  .section-title { font-size: 1.42rem; line-height: 1.25; }
  .section-kicker { font-size: .75rem; letter-spacing: .12em; }
  .section-action { font-size: .75rem; min-height: 34px; max-width: 110px; text-align: right; justify-content: flex-end; line-height: 1.4; }
  .cards { gap: 26px 17px; }
  .media-body { padding-top: 12px; }
  .media-body h3 { font-size: 1rem; line-height: 1.45; }
  .media-meta { font-size: .75rem; }
  .cover-save { margin-right: 0; }
  .collections { gap: 19px; }
  .rexy-intro { grid-template-columns: 1fr; gap: 26px; padding: 25px; margin-top: 45px; }
  .rexy-intro-art { width: min(230px, 100%); justify-self: center; border-radius: 13px; }
  .rexy-intro-copy h2 { font-size: 1.75rem; }
  .rexy-intro-copy p { margin-top: 16px; }
  .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-strip a { padding-inline: 13px; }
  .keep-banner { margin-top: 42px; padding-block: 26px; }
  .keep-banner h2 { font-size: 1.4rem; }
  .keep-banner p { font-size: 1rem; }
  .page-header { padding-block: 14px 26px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-header h1 { font-size: 2.1rem; line-height: 1.13; }
  .page-header p { margin-top: 15px; font-size: 1rem; }
  .page-header .eyebrow { font-size: .75rem; margin-bottom: 12px; }
  .archive-toolbar { flex-wrap: wrap; gap: 9px; }
  .archive-search { flex-basis: 100%; min-height: 49px; padding-inline: 13px; gap: 10px; }
  .archive-search input { height: 48px; font-size: 1rem; }
  .filter-toggle { min-height: 44px; flex: 1; justify-content: flex-start; padding: 9px 13px; }
  .share-archive { width: 45px; flex-basis: 45px; min-height: 44px; }
  .facet-panel { grid-template-columns: 1fr; gap: 16px; padding: 19px; }
  .archive-banner { min-height: 152px; margin-bottom: 16px; padding: 18px; border-radius: 12px; }
  .archive-banner-art { width: 48%; object-position: 39% 56%; mask-image: linear-gradient(90deg, transparent, #000 42%); }
  .archive-banner > div { width: 61%; }
  .archive-banner h1 { font-size: clamp(1.85rem, 7vw, 2.3rem); }
  .archive-banner p { font-size: .9375rem; }
  .facet-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facet-footer { align-items: stretch; }
  .facet-sort, .facet-actions { width: 100%; justify-content: space-between; }
  .facet-sort select { flex: 1; max-width: 14rem; }
  .facet-actions { padding-top: 3px; }
  .facet-actions > button { flex: 1 1 auto; }
  .archive-controls { gap: 5px; margin-top: 18px; }
  .quicktypes { gap: 0; flex-wrap: nowrap; }
  .chip { min-height: 46px; padding-inline: 10px; font-size: .8125rem; }
  .view-switch { padding: 2px; gap: 0; }
  .view-choice { width: 44px; min-height: 44px; padding: 8px; }
  .view-choice svg { width: 16px; height: 16px; }
  .archive-heading { min-height: 54px; gap: 9px; }
  .archive-content > .catalog-note { margin: -3px 0 20px; font-size: .75rem; }
  .active-filter { font-size: .8125rem; padding: 5px 8px; }
  .archive-list-mode .media-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding-block: 20px; align-items: start; }
  .archive-list-mode .media-body h3 { font-size: .875rem; }
  .archive-list-mode .media-meta { font-size: .75rem; margin-bottom: 5px; gap: 5px; }
  .archive-list-mode .media-meta > * + *::before { margin-right: 5px; }
  .archive-list-mode .media-description { font-size: 1rem; line-height: 1.6; margin-top: 9px; }
  .archive-list-mode .media-collection { font-size: .8125rem; line-height: 1.5; margin-top: 2px; align-items: flex-start; padding-block: 9px; }
  .archive-list-mode .media-collection svg { margin-top: 3px; }
  .archive-list-mode .media-bottom { margin-top: 4px; gap: 2px; align-items: flex-start; }
  .archive-list-mode .media-credit { font-size: .75rem; padding-top: 8px; }
  .archive-list-mode .cover-save { flex-basis: 44px; width: 44px; margin-right: -5px; padding-inline: 8px; }
  .archive-list-mode .cover-save svg { width: 18px; height: 18px; }
  .archive-list-mode .resume-label { font-size: .75rem; }
  .empty { padding: 38px 19px; }
  .empty h2, .empty h1 { font-size: 1.45rem; }
  .empty p { font-size: 1rem; }
  .people-grid { grid-template-columns: 1fr; gap: 15px; }
  .person-mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 21px; align-items: center; }
  .person-mini .avatar { width: 72px; height: 72px; }
  .person-mini .person-open { grid-column: 2; margin-top: -2px; padding: 0; min-height: 28px; }
  .person-count { margin-top: 6px; }
  .profile-header { padding: 24px 21px; gap: 25px; }
  .profile-identity { gap: 19px; flex-direction: column; align-items: flex-start; }
  .profile-identity .avatar { width: 104px; height: 104px; }
  .profile-identity h1 { font-size: 2.2rem; }
  .profile-bio p { font-size: 1rem; }
  .profile-interests { gap: 6px; }
  .profile-interests span { font-size: .75rem; }
  .person-tabs { gap: 0; margin-bottom: 22px; }
  .person-tabs .chip { gap: 6px; padding-inline: 11px; }
  .collection-header { grid-template-columns: 1fr; gap: 29px; padding: 27px 23px; }
  .collection-header h1 { font-size: 2.05rem; }
  .collection-header-images { width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 1.6; }
  .collection-header .button { font-size: .8125rem; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .about-art { max-width: 260px; justify-self: center; }
  .about-editorial h2 { font-size: 1.8rem; }
  .about-editorial p { font-size: 1rem; }
  .about-features { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; padding-block: 25px; }
  .about-features > * + * { border-top: 1px solid var(--line-soft); padding-top: 24px; }
  .about-features svg { margin-bottom: 10px; }
  .about-features p { font-size: 1rem; }
  .about-links { grid-template-columns: 1fr; gap: 17px; margin-block: 25px; }
  .about-links > a, .about-link-card { padding: 24px; }
  .about-links h2, .about-links h3 { font-size: 1.25rem; }
  .back-link { font-size: .8125rem; margin-bottom: 9px; }
  .watch-layout { gap: 27px; }
  .watch-topline { margin-top: 20px; font-size: .75rem; }
  .watch-page > h1 { font-size: 1.7rem; }
  .watch-actions { gap: 8px; margin-top: 19px; }
  .watch-actions .button { padding: 10px 13px; }
  .watch-actions .source-link { margin-left: 0; }
  .watch-desc { margin-top: 21px; padding-block: 20px; }
  .watch-desc p { font-size: 1rem; }
  .watch-side { grid-template-columns: 1fr; gap: 28px; }
  .journey-item > img { width: 106px; }
  .journey-item strong { font-size: .875rem; }
  .journey-top .section-kicker { font-size: .75rem; }
  .journey-top h2 { font-size: 1.125rem; }
  .related img { width: 135px; }
  .related strong { font-size: .875rem; }
  .related small { font-size: .75rem; }
  .credits-panel { gap: 18px; }
  .watch-player .plyr__controls { padding: 26px 6px 6px; gap: 1px; }
  .watch-player .plyr__volume { max-width: 44px; min-width: 44px; }
  .watch-player .plyr__volume input[type="range"] { display: none; }
  .watch-player .plyr__controls > .plyr__control, .watch-player .plyr__controls > .plyr__menu > .plyr__control, .watch-player .plyr__volume > .plyr__control { min-width: 44px; padding: 9px; }
  .watch-player .plyr__controls .plyr__time { display: none; }
  .watch-player .plyr__progress__container { min-width: 32px; margin-left: 3px; margin-right: 3px; }
  .player-tools { top: 9px; right: 9px; }
  .watch-player.is-floating { width: min(390px, calc(100vw - 24px)); right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .player-error { padding: 19px; }
  .contribute-main { grid-template-columns: 1fr; gap: 20px; }
  .contribute-option { padding: 27px 24px; }
  .contribute-option h2 { font-size: 1.65rem; }
  .contribute-option .eyebrow { margin-bottom: 12px; font-size: .75rem; }
  .contribute-option p { font-size: 1rem; }
  .contribute-instructions { font-size: 1rem; }
  .contribute-actions { align-items: flex-start; gap: 6px; padding-top: 26px; }
  .contribute-actions .button { width: auto; }
  .contribute-domain { margin-top: 11px; padding-block: 29px; gap: 22px; }
  .contribute-domain h2 { font-size: 1.4rem; }
  .contribute-thanks { font-size: 1rem; }
  .settings-card { padding: 24px 22px; }
  .settings-card > p { font-size: 1rem; }
  .settings-card .inline-actions { align-items: stretch; }
  .settings-card .inline-actions .button { width: 100%; }
  .settings-form-row input { flex-basis: 100%; }
  .search-panel { top: 79px; padding: 12px; border-radius: 12px; max-height: calc(100dvh - 99px - var(--bottom-nav)); }
  .search-shell { gap: 9px; padding-left: 5px; }
  #global-search { font-size: 1rem; }
  .search-hint { font-size: .75rem; line-height: 1.65; }
  .suggestion { gap: 12px; padding: 9px 6px; }
  .suggestion > img { width: 82px; }
  .suggestion p { font-size: .875rem; }
  .suggestion small { font-size: .75rem; }
  .footer-inner, .footer > .footer-top { padding-top: 35px; }
  .footer-top { gap: 29px; }
  .footer-wordmark { font-size: 1.6rem; }
  .footer-identity p { font-size: .875rem; max-width: 320px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 18px; }
  .footer-columns > :last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; column-gap: 18px; }
  .footer-columns > :last-child h2 { grid-column: 1 / -1; }
  .footer-columns a { font-size: .875rem; }
  .footer-links { gap: 2px 20px; }
  .footer-links a { font-size: .8125rem; }
  .footer-bottom { display: block; margin-top: 27px; line-height: 1.8; text-align: center; }
  .footer-bottom > * + * { display: block; margin-top: 5px; }
  .connectivity-note { margin-inline: 16px; font-size: .8125rem; }
}
@media (max-width: 587px) {
  .cards, .collections { grid-template-columns: minmax(0, 1fr); }
  .collection { padding: 15px 15px 23px; }
  .collection-covers { aspect-ratio: 1.85; margin-bottom: 20px; }
  .collection-content { padding-inline: 6px; }
  .collection-content h3 { font-size: 1.3rem; }
  .collection-count { font-size: .75rem; padding: 6px 9px; }
}
@media (max-width: 360px) {
  .container, .topbar-inner, .footer-inner, .footer > .footer-top, .footer > .footer-bottom { width: calc(100% - 24px); }
  .brand img { width: 29px; height: 29px; }
  .brand-text { font-size: 1rem; }
  .brand-text small { display: none; }
  .topbar-inner { gap: 8px; }
  .header-actions { gap: 0; }
  .header-actions .icon-button { width: 44px; flex-basis: 44px; padding: 10px; }
  .brand { gap: 6px; }
  .footer-columns a { gap: 6px; font-size: .8125rem; }
  .footer-columns a svg { width: 14px; height: 14px; }
  .hero-copy { padding: 21px 18px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { gap: 3px 14px; margin-top: 16px; }
  .hero-profile { min-height: 44px; }
  .section-title { font-size: 1.3rem; }
  .section-action { font-size: .75rem; max-width: 82px; }
  .section-head { gap: 8px; }
  .page-header h1 { font-size: 1.85rem; }
  .archive-controls { flex-wrap: wrap; gap: 7px; padding-bottom: 5px; }
  .quicktypes { flex: 1 0 100%; }
  .quicktypes .chip { flex: 1; padding-inline: 6px; }
  .view-switch { margin-left: auto; margin-bottom: 0; }
  .archive-list-mode .media-card { grid-template-columns: 98px minmax(0, 1fr); gap: 11px; }
  .archive-list-mode .media-meta { flex-wrap: wrap; }
  .archive-list-mode .media-meta > * + *::before { content: none; }

  .archive-list-mode .media-bottom { flex-wrap: wrap; }
  .archive-list-mode .media-credit { flex-basis: 100%; }
  .archive-list-mode .cover-save { margin-top: -5px; }
  .archive-list-mode .cover-duration { bottom: 5px; right: 5px; font-size: .75rem; }
  .person-mini { grid-template-columns: 58px minmax(0, 1fr); padding: 18px; gap: 12px; }
  .person-mini .avatar { width: 58px; height: 58px; }
  .person-mini small { font-size: .8125rem; }
  .person-tabs .chip { padding-inline: 8px; gap: 4px; font-size: .75rem; }
  .profile-header, .collection-header, .contribute-option, .settings-card { padding-inline: 20px; }
  .profile-identity h1 { font-size: 1.9rem; }
  .journey-item > img { width: 82px; }
  .journey-item strong { font-size: .8125rem; }
  .related img { width: 104px; }
  .related strong { font-size: .8125rem; }
  .contribute-option h2 { font-size: 1.45rem; }
  .contribute-cid { padding: 14px; }
  .suggestion > img { width: 68px; }
  .suggestion { gap: 9px; }
  .toast { font-size: .8125rem; }
}
@media (max-width: 359px) {
  .archive-banner { padding: 16px; }
  .archive-banner > div { width: 78%; }
  .archive-banner-art { opacity: .58; mask-image: linear-gradient(90deg, transparent 12%, #000); }
  .facet-panel { padding: 12px; }
  .facet-option { gap: 5px; padding-inline: 5px; }
}
@media (max-width: 339px) {
  .bottom-nav { padding-inline: 4px; }
  .bottom-nav a { font-size: .6875rem; }
}
/* Size controls against the player, including its floating form. Plyr loads
   after this sheet; these selectors must outrank its flex and item margins. */
@container (max-width: 440px) {
  .watch-player .plyr--video .plyr__control--overlaid { width: 52px; height: 52px; }
  .watch-player .plyr--video .plyr__controls { flex-wrap: wrap; gap: 0; padding: 16px 6px 6px; }
  .watch-player .plyr--video .plyr__controls > .plyr__controls__item { margin: 0; }
  .watch-player .plyr--video .plyr__controls .plyr__progress__container { flex: 0 0 100%; width: 100%; min-width: 0; order: -1; margin: 0 0 2px; padding: 0; }
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume, .watch-player .plyr--video .plyr__controls > .plyr__menu { flex: 1 0 44px; min-width: 44px; max-width: none; margin: 0; }
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__menu > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume > .plyr__control { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px; }
  .watch-player .plyr--video .plyr__controls .plyr__volume input[type="range"], .watch-player .plyr--video .plyr__controls .plyr__time { display: none; }
  .watch-player .plyr--video .plyr__controls > .plyr__menu > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume > .plyr__control { width: 100%; }
  /* Keep native Plyr menus, but anchor the compact panel to the viewport. */
  .watch-player .plyr--video .plyr__menu__container {
    --plyr-menu-color: #f1f4f7;
    --plyr-menu-arrow-color: #a6efd0;
    --plyr-menu-back-border-color: #344359;
    --plyr-menu-back-border-shadow-color: transparent;
    position: fixed; inset: auto 12px calc(var(--bottom-nav) + 16px + env(safe-area-inset-bottom)) auto;
    width: min(320px, calc(100% - 24px)); max-width: calc(100% - 24px);
    max-height: min(420px, calc(100vh - var(--header) - var(--bottom-nav) - 40px - env(safe-area-inset-bottom)));
    max-height: min(420px, calc(100dvh - var(--header) - var(--bottom-nav) - 40px - env(safe-area-inset-bottom)));
    margin: 0; padding: 4px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    background: #161d29; color: #f1f4f7; border: 1px solid #526279; border-radius: 14px;
    box-shadow: 0 18px 60px #0009; white-space: normal; z-index: 80;
  }
  .watch-player .plyr--video .plyr__menu__container::after { display: none; }
  .watch-player .plyr--video .plyr__menu__container > div { min-width: 100%; max-width: 100%; overflow: visible; }
  .watch-player .plyr--video .plyr__menu__container .plyr__control { min-height: 44px; padding-block: 10px; font-size: .875rem; line-height: 1.4; white-space: normal; }
  .watch-player .plyr--video .plyr__menu__container .plyr__menu__value { padding-left: 12px; white-space: nowrap; }
  .watch-player .plyr--video .plyr__menu__container .plyr__control[role="menuitemradio"]::before { border: 1px solid #77869a; }
}
@media (max-width: 440px) {
  .watch-player .plyr--video .plyr__control--overlaid { width: 52px; height: 52px; }
  .watch-player .plyr--video .plyr__controls { flex-wrap: wrap; gap: 0; padding: 16px 6px 6px; }
  .watch-player .plyr--video .plyr__controls > .plyr__controls__item { margin: 0; }
  .watch-player .plyr--video .plyr__controls .plyr__progress__container { flex: 0 0 100%; width: 100%; min-width: 0; order: -1; margin: 0 0 2px; padding: 0; }
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume, .watch-player .plyr--video .plyr__controls > .plyr__menu { flex: 1 0 44px; min-width: 44px; max-width: none; margin: 0; }
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__menu > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume > .plyr__control { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px; }
  .watch-player .plyr--video .plyr__controls .plyr__volume input[type="range"], .watch-player .plyr--video .plyr__controls .plyr__time { display: none; }
  .watch-player .plyr--video .plyr__controls > .plyr__menu > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume > .plyr__control { width: 100%; }
  .watch-player .plyr--video .plyr__menu__container {
    --plyr-menu-color: #f1f4f7;
    --plyr-menu-arrow-color: #a6efd0;
    --plyr-menu-back-border-color: #344359;
    --plyr-menu-back-border-shadow-color: transparent;
    position: fixed; inset: auto 12px calc(var(--bottom-nav) + 16px + env(safe-area-inset-bottom)) auto;
    width: min(320px, calc(100% - 24px)); max-width: calc(100% - 24px);
    max-height: min(420px, calc(100vh - var(--header) - var(--bottom-nav) - 40px - env(safe-area-inset-bottom)));
    max-height: min(420px, calc(100dvh - var(--header) - var(--bottom-nav) - 40px - env(safe-area-inset-bottom)));
    margin: 0; padding: 4px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    background: #161d29; color: #f1f4f7; border: 1px solid #526279; border-radius: 14px;
    box-shadow: 0 18px 60px #0009; white-space: normal; z-index: 80;
  }
  .watch-player .plyr--video .plyr__menu__container::after { display: none; }
  .watch-player .plyr--video .plyr__menu__container > div { min-width: 100%; max-width: 100%; overflow: visible; }
  .watch-player .plyr--video .plyr__menu__container .plyr__control { min-height: 44px; padding-block: 10px; font-size: .875rem; line-height: 1.4; white-space: normal; }
  .watch-player .plyr--video .plyr__menu__container .plyr__menu__value { padding-left: 12px; white-space: nowrap; }
  .watch-player .plyr--video .plyr__menu__container .plyr__control[role="menuitemradio"]::before { border: 1px solid #77869a; }
}
/* A separate transport row leaves the center of a narrow video free for Play.
   Grid placement keeps the original Plyr elements, keyboard order and event bindings. */
@container (max-width: 440px) {
 .watch-player.has-plyr > .plyr:not(:fullscreen):not(.plyr--fullscreen-fallback) {
  display: grid; grid-template: "picture" auto "transport" auto / minmax(0, 1fr); aspect-ratio: auto;
 }
 .watch-player .plyr:not(:fullscreen):not(.plyr--fullscreen-fallback) > .plyr__video-wrapper {
  grid-area: picture; width: 100%; height: auto; aspect-ratio: 16 / 9;
 }
 .watch-player .plyr:not(:fullscreen):not(.plyr--fullscreen-fallback) > .plyr__control--overlaid {
  grid-area: picture; place-self: center; position: relative; inset: auto; transform: none;
 }
 .watch-player .plyr:not(:fullscreen):not(.plyr--fullscreen-fallback) > .plyr__controls {
  grid-area: transport; position: relative; inset: auto; width: 100%; padding: 3px 6px 4px;
  border-top: 1px solid #3a4856; background: #141d28; opacity: 1; transform: none; pointer-events: auto;
 }
}
/* Six 44px targets plus the controls' 12px padding need 276px. */
@media (max-width: 299px) {
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume, .watch-player .plyr--video .plyr__controls > .plyr__menu { flex: 1 0 calc(100% / 3); }
}
@container (max-width: 275px) {
  .watch-player .plyr--video .plyr__controls > .plyr__control, .watch-player .plyr--video .plyr__controls > .plyr__volume, .watch-player .plyr--video .plyr__controls > .plyr__menu { flex: 1 0 calc(100% / 3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* A studio cover and a compact playable programme share the first screen. */
.studio-front { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(270px,.85fr); gap:18px; }
.studio-hero { position:relative; isolation:isolate; overflow:hidden; min-height:380px; display:flex; align-items:flex-end; border:1px solid #41504f; border-radius:18px; background:#15222b; }
.studio-hero > img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:70% 35%; }
.studio-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#101b25f7 0%,#101b25c4 32%,#101b2500 76%),linear-gradient(0deg,#101b2588,transparent 65%); }
.studio-hero > div { padding:clamp(22px,3.3vw,48px); max-width:min(100%,440px); }
.studio-hero h1 { font-size:clamp(3.4rem,6.7vw,6.5rem); letter-spacing:-.065em; line-height:.94; }
.studio-hero em { color:var(--mint); font-family:Georgia,serif; font-weight:400; }
.studio-hero p { color:#eef3f5; max-width:29ch; margin:18px 0 20px; }
.studio-profile { display:inline-flex; align-items:center; min-height:44px; font-weight:650; text-decoration:underline; text-underline-offset:5px; }
.program-shelf { min-width:0; display:flex; flex-direction:column; padding:clamp(16px,2vw,28px); border-radius:16px; background:linear-gradient(145deg,#222334,#151c28 70%); border:1px solid #3d4056; }
.program-shelf h2 { margin-bottom:16px; font-size:clamp(1.4rem,2vw,1.85rem); }
.program-shelf > .text-link { align-self:flex-start; margin-top:auto; padding-top:14px; }
.program-link { display:grid; align-items:center; grid-template-columns:minmax(54px,26%) minmax(0,1fr) auto; gap:12px; padding-block:12px; min-height:62px; border-top:1px solid #ffffff1c; }
.program-link img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:5px; }
.program-link strong,.cast-strip strong { display:block; line-height:1.35; overflow-wrap:anywhere; }
.program-link small,.program-duration,.cast-strip small,.next-episode small { display:block; font-size:.8125rem; color:var(--muted); }
.program-link small { margin-bottom:4px; color:var(--lilac); }
.program-duration { font-variant-numeric:tabular-nums; }
.program-link:hover strong,.series-copy a:hover,.cast-strip a:hover strong { color:var(--mint); }
.cast-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); border-block:1px solid var(--line); gap:10px 24px; }
.cast-strip a { display:flex; align-items:center; gap:14px; min-height:82px; }
.series-list { display:grid; gap:24px; }
.series-row { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); border:1px solid var(--line); background:var(--panel); border-radius:16px; overflow:hidden; }
.series-art { display:grid; place-items:center; background:#111925; padding:clamp(12px,2vw,24px); }
.series-art img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:9px; }
.series-copy { min-width:0; padding:clamp(18px,2.5vw,36px); }
.series-copy > p { margin:8px 0 15px; }
.series-copy ul { list-style:none; margin:0; padding:0; }
.series-copy li a { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-block:8px; border-top:1px solid var(--line); }
.series-copy li small { color:var(--collection-accent,var(--mint)); }
.profile-interests a,.search-topics a { min-height:44px; display:inline-flex; align-items:center; padding:7px 12px; border:1px solid #445164; border-radius:22px; font-size:.875rem; color:var(--text); }
.profile-interests a:hover,.search-topics a:hover { color:var(--mint); border-color:var(--mint); }
.search-topics { display:flex; flex-wrap:wrap; gap:8px; padding:10px; }
.suggestion--person img,.search-avatar { width:48px; height:48px; border-radius:50%; }
.search-avatar { display:grid; place-items:center; background:#302e41; color:var(--lilac); }
.next-episode,.storage-links { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.next-episode { justify-content:space-between; padding:16px; background:#182c28; border:1px solid #3d5d52; border-radius:10px; margin-top:12px; }
.next-episode strong { display:block; }
.storage-links { margin-top:14px; }
.storage-links a { min-height:44px; display:inline-flex; align-items:center; gap:9px; padding:8px 12px; border:1px solid var(--line); border-radius:7px; }
.storage-links svg { width:17px; } .storage-links strong { color:var(--mint); }
.resume-line { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.forget-progress { min-height:44px; border:0; background:transparent; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.help-details { margin-top:14px; border-top:1px solid var(--line); }
.help-details summary { cursor:pointer; min-height:44px; padding:12px 0; color:var(--mint); font-weight:650; }
.profile-header { border-top:3px solid var(--mint); background:linear-gradient(110deg,#1d2b30,#191c2b 78%); }
@media(max-width:850px) {
 .studio-front { grid-template-columns:1fr; } .program-shelf { padding:18px; }
 .program-shelf > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
 .program-link { grid-template-columns:1fr; align-content:start; gap:8px; border:0; }
 .program-duration { display:none; }
}
@media(max-width:600px) {
 .studio-front { gap:12px; } .studio-hero { min-height:340px; }
 .studio-hero > div { padding:20px; } .studio-hero h1 { font-size:clamp(3rem,12vw,4.5rem); }
 .studio-hero::before { background:linear-gradient(0deg,#0e1924 1%,#101b25d9 28%,#101b2500 82%),linear-gradient(90deg,#101b2540,transparent); }
 .studio-hero p { margin:12px 0; max-width:28ch; }
 .program-shelf > div { display:block; }
 .program-link { grid-template-columns:76px minmax(0,1fr) auto; align-items:center; border-top:1px solid var(--line); }
 .program-duration { display:block; }
 .series-row { grid-template-columns:1fr; } .series-art { padding:0; } .series-art img { border-radius:0; }
 .cast-strip { gap:0; }
}

/* Give each collection one legible cover, including on narrow displays. */
.collection-poster { --poster-accent:var(--collection-accent,var(--mint)); display:flex; flex-direction:column; min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.poster-art { overflow:hidden; aspect-ratio:2 / 1; background:#1b2433; }
.poster-art img { display:block; width:100%; height:100%; object-fit:cover; }
.poster-caption { flex:1; padding:18px clamp(16px,2vw,26px) 24px; border-top:2px solid var(--poster-accent); }
.poster-caption small { display:flex; align-items:center; gap:7px; color:var(--poster-accent); font-size:.875rem; font-weight:650; }
.poster-caption svg { width:16px; height:16px; }
.poster-caption h3 { margin:9px 0 6px; font-size:clamp(1.25rem,2vw,1.75rem); line-height:1.15; }
.poster-caption p { margin:0; line-height:1.5; }
.collection-poster:is(:hover,:focus-visible) { border-color:var(--poster-accent); }
.collection-poster:is(:hover,:focus-visible) h3 { color:var(--poster-accent); }
@media(max-width:600px) {
 .home-page .collections { grid-template-columns:1fr; gap:12px; }
 .collection-poster { display:grid; grid-template-columns:minmax(80px,32%) minmax(0,1fr); }
 .poster-art { aspect-ratio:auto; min-height:125px; }
 .poster-caption { padding:13px; border-top:0; border-left:2px solid var(--poster-accent); }
 .poster-caption small { font-size:.8125rem; }
 .poster-caption h3 { margin:7px 0 5px; }
 .poster-caption p { font-size:.875rem; }
}

.watch-player .plyr__progress { --plyr-range-thumb-height:16px; --plyr-range-track-height:6px; }
.watch-player .plyr__progress input[data-plyr="seek"] { height:44px; cursor:pointer; touch-action:pan-y; }
.watch-player .plyr__progress input[data-plyr="seek"]:focus-visible { outline:2px solid var(--mint); outline-offset:-2px; }

.watch-player .player-tools .player-tool svg { width:18px; height:18px; fill:currentColor; stroke:none; }
.watch-player .plyr__controls #detach-video[aria-pressed="true"] { background:var(--plyr-video-control-background-hover,var(--plyr-color-main)); color:var(--mint-ink); }
.watch-player .plyr__controls .plyr__progress__container { display:flex; align-items:center; gap:8px; }
.watch-player .plyr__progress__container .plyr__progress { flex:1; min-width:0; }
.player-clock { display:flex; align-items:center; flex:none; font-variant-numeric:tabular-nums; }
.watch-player .plyr--video .plyr__controls .player-clock .plyr__time { display:block; margin:0; padding:0; font-size:.8125rem; }
.player-clock .plyr__time--duration::before { content:'/'; margin-inline:3px; opacity:.7; }
@container (min-width:441px) and (max-width:620px) {
 .watch-player .plyr--video .plyr__controls { flex-wrap:wrap; }
 .watch-player .plyr--video .plyr__controls .plyr__progress__container { order:-1; flex:0 0 100%; margin:0; }
}

.pin-guide { max-width: 60rem; margin: 2.5rem auto; padding-block: 1rem; scroll-margin-block-start: 6rem; }
.pin-guide h2 { margin-bottom: 1rem; }
.address-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.address-types dt { font-weight: 750; color: var(--mint); margin-bottom: .25rem; }
.address-types dd { margin: 0; color: var(--muted); }
.address-row + .address-row { margin-top: 1.25rem; }
.pin-guide pre { padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; margin: .75rem 0 1rem; }
@media (max-width: 600px) {
 .address-types { grid-template-columns: 1fr; gap: 1rem; }
}

.archive-heading .facet-sort { margin-left: auto; }
.archive-heading .facet-sort label { margin: 0; }
.post-date { font-size: .8125rem; line-height: 1.45; font-variant-numeric: tabular-nums; color: var(--muted); }
.media-meta .post-date { flex-basis: 100%; }
.media-meta .post-date::before { content: none; }
.program-link .post-date, .series-copy .post-date, .related .post-date, .journey-list .post-date { display: block; margin-top: .2rem; }
@media (max-width: 600px) {
 .archive-heading .facet-sort { justify-content: flex-start; margin: 0; }
}

.stream-clips { margin-block: 1.5rem; }
.stream-clips h2 { margin-bottom: .5rem; }
.stream-clips .program-link { grid-template-columns: minmax(64px, 108px) minmax(0, 1fr) auto; align-items: center; }

.format-count { font-size: .85em; font-variant-numeric: tabular-nums; }
@media(max-width: 400px){ .quicktypes .chip { gap: 4px; padding-inline: 5px; } }

.bookmark-notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem; padding:.75rem 1rem; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
