/* South Loop Digital — main stylesheet
   Palette: Lake Michigan at blue hour + sodium streetlight amber. */
:root {
	--lake: #071e2b;
	--lake-2: #0c2b3b;
	--lake-3: #14394c;
	--line: #1f4a5e;
	--teal: #1f8a92;
	--glint: #3cc6d3;
	--sodium: #f2a541;
	--sodium-2: #ffc477;
	--ice: #e4eef1;
	--mist: #9db5be;
	--display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1360px;
	--gut: clamp(16px, 4vw, 48px);
	--r: 6px;
	--head-h: 72px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
	margin: 0;
	background: var(--lake);
	color: var(--ice);
	font: 400 1rem/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sodium-2); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: 0.005em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sodium); color: var(--lake); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.site-main { min-height: 60vh; }
.sec-title { font-size: clamp(2.4rem, 5vw, 4rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1.25em; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--sodium); color: var(--lake); }
.btn--primary:hover { background: var(--sodium-2); color: var(--lake); }
.btn--ghost { border-color: var(--line); color: var(--ice); background: transparent; }
.btn--ghost:hover { border-color: var(--glint); color: var(--ice); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(7, 30, 43, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lake-3); }
.site-head.is-over { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(7,30,43,.75), rgba(7,30,43,0)); border-color: transparent; backdrop-filter: none; transition: background .25s; }
.site-head.is-over.is-scrolled { background: rgba(7, 30, 43, .94); backdrop-filter: blur(10px); border-color: var(--lake-3); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ice); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ice); }
.logo-mark { width: 42px; height: 42px; }
.brand__name { font: 800 1.45rem/1 var(--display); letter-spacing: .01em; }
.brand__name span { color: var(--glint); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { display: block; padding: 10px 14px; color: var(--ice); text-decoration: none; font-weight: 500; border: 0; background: none; border-radius: var(--r); }
.nav__link:hover, .nav__toggle[aria-expanded="true"] { color: var(--sodium-2); }
.nav__toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
.nav__link--cta { border: 1px solid var(--sodium); color: var(--sodium); margin-left: 6px; }
.nav__link--cta:hover { background: var(--sodium); color: var(--lake); }
.nav__group { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(680px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px 28px; background: var(--lake-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.mega.is-open { display: grid; }
.mega h3 { font-size: 1.25rem; color: var(--mist); margin: 0 0 10px; font-weight: 700; }
.mega h3:not(:first-child) { margin-top: 18px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--ice); text-decoration: none; font-size: .95rem; }
.mega a span { color: var(--mist); font-variant-numeric: tabular-nums; }
.mega a:hover { color: var(--sodium-2); }
.site-head__tools { display: flex; align-items: center; gap: 10px; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: rgba(12,43,59,.6); border-radius: var(--r); color: var(--mist); }
.search-trigger:hover { border-color: var(--glint); color: var(--ice); }
.search-trigger svg, .lib__search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd { font: 600 .75rem var(--body); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--mist); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ice); transition: transform .2s; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 980px) {
	.menu-btn { display: block; }
	.search-trigger span, .search-trigger kbd { display: none; }
	.site-head__tools { margin-left: auto; }
	.nav { position: fixed; inset: var(--head-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gut) 40px; background: var(--lake); overflow-y: auto; display: none; margin: 0; }
	.admin-bar .nav { top: calc(var(--head-h) + 46px); }
	.nav.is-open { display: flex; }
	.nav__link { font: 800 2rem/1.1 var(--display); padding: 14px 0; border-bottom: 1px solid var(--lake-3); border-radius: 0; text-align: left; }
	.nav__link--cta { border: 0; border-bottom: 1px solid var(--lake-3); margin: 0; color: var(--sodium); }
	.mega { position: static; transform: none; width: auto; grid-template-columns: 1fr; padding: 8px 0 16px; background: none; border: 0; box-shadow: none; }
}

/* ---------- Quick search overlay ---------- */
.qs { position: fixed; inset: 0; z-index: 90; background: rgba(4, 16, 24, .82); backdrop-filter: blur(6px); padding: 10vh var(--gut) 0; }
.qs[hidden] { display: none; }
.qs__panel { max-width: 760px; margin: 0 auto; background: var(--lake-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.qs__form { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.qs__form input { flex: 1; min-width: 0; height: 68px; padding: 0 22px; border: 0; background: none; color: var(--ice); font: 700 1.6rem var(--display); letter-spacing: .01em; }
.qs__form input:focus { outline: none; }
.qs__close { margin-right: 14px; border: 1px solid var(--line); background: none; border-radius: 4px; padding: 4px 8px; color: var(--mist); font-size: .8rem; }
.qs__results { max-height: 60vh; overflow-y: auto; }
.qs__hint { padding: 18px 22px; color: var(--mist); margin: 0; }
.qs-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px 22px; color: var(--ice); text-decoration: none; }
.qs-item img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.qs-item strong { display: block; font-weight: 600; line-height: 1.3; }
.qs-item small { color: var(--mist); }
.qs-item:hover, .qs-item.is-active { background: var(--lake-3); color: var(--ice); }
.qs__all { display: block; padding: 14px 22px; border-top: 1px solid var(--line); font-weight: 600; }
mark { background: none; color: var(--sodium-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--lake); }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.22); border: 0; }
.hero__shade { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(7,30,43,.6) 0%, rgba(7,30,43,.15) 30%, rgba(7,30,43,.25) 50%, rgba(7,30,43,.9) 80%, var(--lake) 100%),
	linear-gradient(90deg, rgba(7,30,43,.82) 0%, rgba(7,30,43,.45) 45%, rgba(7,30,43,.1) 75%),
	rgba(7,30,43,.18); }
.hero__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 9vh, 96px); }
.hero__title { font-size: clamp(3.4rem, 9.2vw, 9.25rem); font-weight: 900; line-height: .86; letter-spacing: -.005em; margin: 0 0 .22em; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lede { max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #cfe0e5; margin-bottom: 28px; }
.hero__search { position: relative; display: flex; gap: 10px; max-width: 720px; }
.hero__search input { flex: 1; min-width: 0; height: 64px; padding: 0 22px; border: 1px solid rgba(157,181,190,.45); border-radius: var(--r); background: rgba(7,30,43,.72); backdrop-filter: blur(8px); color: var(--ice); font: 700 1.5rem var(--display); letter-spacing: .01em; }
.hero__search input::placeholder { color: var(--mist); }
.hero__search input:focus { outline: none; border-color: var(--sodium); }
.hero__search .btn { height: 64px; padding: 0 28px; font-size: 1.05rem; }
.hero__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; background: var(--lake-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.hero__tries { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0 0; font-size: .95rem; color: var(--mist); }
.hero__tries a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(242,165,65,.5); }
.hero__tries a:hover { color: var(--sodium-2); border-color: var(--sodium-2); }
.hero__now { position: absolute; right: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 10px 14px; border: 1px solid rgba(157,181,190,.3); border-radius: var(--r); background: rgba(7,30,43,.6); backdrop-filter: blur(6px); font-size: .85rem; text-align: left; color: var(--mist); }
.hero__now strong { color: var(--ice); font-weight: 600; }
.hero__now:hover { border-color: var(--sodium); }
.hero__now-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 0 4px rgba(242,165,65,.2); }
@media (max-width: 1100px) { .hero__now { display: none; } }
@media (max-width: 600px) { .hero__search { flex-direction: column; } .hero__search .btn { height: 52px; } .hero__search input { height: 58px; font-size: 1.3rem; } }

/* ---------- Rails ---------- */
.rail { padding: 44px 0 8px; }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.rail__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.rail__blurb { margin: 6px 0 0; color: var(--mist); max-width: 60ch; }
.rail__ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rail__all { margin-right: 8px; font-weight: 600; white-space: nowrap; }
.rail__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.4rem; line-height: 1; padding-bottom: 3px; }
.rail__btn:hover { border-color: var(--glint); }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 22vw, 320px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail__track > * { scroll-snap-align: start; }
@media (max-width: 600px) { .rail__btn { display: none; } .rail__head { align-items: baseline; } .rail__track { grid-auto-columns: 74vw; } }

/* ---------- Cards ---------- */
.card { min-width: 0; }
.card__link { display: block; color: var(--ice); text-decoration: none; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--lake-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s; }
.card__media.is-vertical img { object-position: 50% 35%; }
.card__time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(4,16,24,.82); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card__media.is-vertical::after { content: "Vertical"; position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(4,16,24,.82); font-size: .72rem; color: var(--mist); }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(7,30,43,.25); }
.card__play::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: var(--sodium) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23071e2b'/%3E%3C/svg%3E") center/26px no-repeat; }
.card__link:hover .card__media img, .card__link:focus-visible .card__media img { transform: scale(1.05); }
.card__link:hover .card__play, .card__link:focus-visible .card__play { opacity: 1; }
.card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-weight: 600; line-height: 1.35; }
.card__link:hover .card__title { color: var(--sodium-2); }
.card__meta { margin: 4px 0 0; font-size: .84rem; color: var(--mist); white-space: pre-wrap; }
.card--sm .card__link { display: grid; grid-template-columns: 148px 1fr; gap: 12px; align-items: start; }
.card--sm .card__title { margin-top: 0; font-size: .92rem; }
.card--sm .card__meta { margin-left: 160px; margin-top: -24px; font-size: .78rem; }
.card--sm .card__play::before { width: 34px; height: 34px; background-size: 17px; }

/* ---------- Category index ---------- */
.index-sec { margin-top: 64px; padding: 80px 0; background: var(--lake-2); border-block: 1px solid var(--lake-3); }
.index-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.index-sec__head p { color: var(--mist); max-width: 46ch; margin: 0; }
.cat-index { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cat-index__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.cat-index__list li { break-inside: avoid; }
.cat-index__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lake-3); color: var(--mist); text-decoration: none; transition: color .15s, padding .2s; }
.cat-index__name { font: 800 clamp(1.4rem, 2.2vw, 2rem)/1.05 var(--display); }
.cat-index__n { font-size: .85rem; font-variant-numeric: tabular-nums; }
.cat-index__list a:hover, .cat-index__list a:focus-visible, .cat-index__list a.is-on { color: var(--ice); padding-left: 10px; }
.cat-index__list a.is-on .cat-index__n { color: var(--sodium); }
.cat-index__preview { position: sticky; top: calc(var(--head-h) + 24px); margin: 0; }
.cat-index__preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--lake-3); }
.cat-index__preview figcaption { margin-top: 14px; color: var(--mist); max-width: 48ch; min-height: 3.2em; }
@media (max-width: 900px) {
	.index-sec__head, .cat-index { grid-template-columns: 1fr; gap: 18px; }
	.cat-index__preview { display: none; }
}
@media (max-width: 520px) { .cat-index__list { columns: 1; } }

/* ---------- Map ---------- */
.map-sec { padding: 88px 0 72px; }
.map-sec__in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.map-sec__copy p { color: var(--mist); }
.map-sec__list { list-style: none; margin: 20px 0 0; padding: 0; }
.map-sec__list a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--lake-3); color: var(--ice); text-decoration: none; }
.map-sec__list .is-child a { padding-left: 16px; color: var(--mist); font-size: .94rem; }
.map-sec__list a span { color: var(--mist); font-variant-numeric: tabular-nums; }
.map-sec__list a:hover, .map-sec__list a.is-on { color: var(--sodium-2); }
.map-sec__map { height: 620px; border-radius: 10px; overflow: hidden; border: 1px solid var(--lake-3); background: #0a2533; }
@media (max-width: 900px) { .map-sec__in { grid-template-columns: 1fr; } .map-sec__map { height: 440px; order: -1; } }
.leaflet-container { background: #0a2533; font-family: var(--body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--lake-2); color: var(--ice); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.leaflet-popup-content { margin: 14px; width: 280px !important; }
.leaflet-popup-content h3 { font-size: 1.5rem; margin: 0 0 8px; }
.leaflet-container .leaflet-popup-content a.pop-item { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; color: var(--ice); text-decoration: none; padding: 5px 0; font-size: .84rem; line-height: 1.3; }
.leaflet-popup-content a.pop-item img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.leaflet-container .leaflet-popup-content a.pop-item:hover { color: var(--sodium-2); }
.leaflet-container .leaflet-popup-content .pop-all { color: var(--glint); display: block; margin-top: 8px; font-weight: 600; }
.leaflet-container a.leaflet-popup-close-button { color: var(--mist); }
.leaflet-control-attribution { background: rgba(7,30,43,.8) !important; color: var(--mist) !important; }
.leaflet-control-attribution a { color: var(--glint) !important; }
.leaflet-bar a { background: var(--lake-2) !important; color: var(--ice) !important; border-color: var(--line) !important; }
.pin { display: grid; place-items: center; border-radius: 50%; background: var(--sodium); color: var(--lake); font: 800 1rem/1 var(--display); box-shadow: 0 0 0 6px rgba(242,165,65,.22), 0 6px 18px rgba(0,0,0,.4); transition: transform .15s; }
.pin:hover { transform: scale(1.12); }
.pin--child { background: var(--glint); box-shadow: 0 0 0 5px rgba(60,198,211,.2), 0 6px 18px rgba(0,0,0,.4); }

/* ---------- Hire ---------- */
.hire { padding: 88px 0 96px; background: var(--lake-2); border-top: 1px solid var(--lake-3); }
.hire__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
.hire__copy p { color: var(--mist); max-width: 52ch; }
.hire__list { list-style: none; padding: 0; margin: 28px 0 0; }
.hire__list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--mist); }
.hire__list strong { display: block; color: var(--ice); font: 800 1.45rem/1.1 var(--display); margin-bottom: 2px; }
@media (max-width: 900px) { .hire__in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Forms ---------- */
.sld-form { display: grid; gap: 16px; }
.sld-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .sld-form__row { grid-template-columns: 1fr; } }
.sld-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.sld-form label em { font-weight: 400; color: var(--mist); font-style: normal; }
.sld-form input, .sld-form select, .sld-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--lake); color: var(--ice); font: inherit; font-weight: 400; }
.sld-form input:focus, .sld-form select:focus, .sld-form textarea:focus { outline: none; border-color: var(--sodium); }
.sld-form .btn { justify-self: start; }
.sld-hp { position: absolute !important; left: -9999px; }
.sld-form-notice { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; }
.sld-form-notice.is-ok { background: rgba(31,138,146,.2); border: 1px solid var(--teal); }
.sld-form-notice.is-err { background: rgba(242,165,65,.12); border: 1px solid var(--sodium); }

/* ---------- Library ---------- */
.lib { padding: 40px 0 80px; }
.lib__head { margin-bottom: 28px; }
.lib__crumb { margin: 0 0 10px; color: var(--mist); font-size: .92rem; }
.lib__crumb a { color: var(--mist); }
.lib__crumb a:hover { color: var(--ice); }
.lib__title { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; margin: 0 0 .15em; }
.lib__intro { max-width: 62ch; color: var(--mist); font-size: 1.08rem; }
.lib__search { position: relative; max-width: 760px; margin-top: 22px; color: var(--mist); }
.lib__search svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); pointer-events: none; }
.lib__search input { width: 100%; height: 62px; padding: 0 20px 0 56px; border: 1px solid var(--line); border-radius: var(--r); background: var(--lake-2); color: var(--ice); font: 700 1.45rem var(--display); letter-spacing: .01em; }
.lib__search input:focus { outline: none; border-color: var(--sodium); }
.lib__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.facets { position: sticky; top: calc(var(--head-h) + 20px); max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.admin-bar .facets { top: calc(var(--head-h) + 52px); }
.facets__top { display: flex; justify-content: space-between; align-items: center; }
.facets__top h2 { font-size: 1.6rem; margin: 0; }
.facets__close { display: none; }
.facets__loading { color: var(--mist); }
.facet { border-top: 1px solid var(--lake-3); padding: 14px 0; }
.facet__h { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; border: 0; background: none; font: 700 1.15rem var(--display); letter-spacing: .02em; color: var(--ice); text-align: left; }
.facet__h::after { content: ""; width: 7px; height: 7px; border: solid var(--mist); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.facet__h[aria-expanded="false"]::after { transform: rotate(-45deg); }
.facet__opts { list-style: none; margin: 10px 0 0; padding: 0; }
.facet__opts[hidden] { display: none; }
.facet__opt label { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: .93rem; color: var(--ice); }
.facet__opt.is-child label { padding-left: 22px; }
.facet__opt input { appearance: none; width: 16px; height: 16px; flex: 0 0 16px; margin: 0; border: 1.5px solid var(--mist); border-radius: 3px; display: grid; place-items: center; }
.facet__opt input[type="radio"] { border-radius: 50%; }
.facet__opt input:checked { background: var(--sodium); border-color: var(--sodium); }
.facet__opt input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--lake); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.facet__opt input[type="radio"]:checked::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--lake); transform: none; }
.facet__opt .n { margin-left: auto; color: var(--mist); font-size: .8rem; font-variant-numeric: tabular-nums; }
.facet__opt.is-zero label { color: #5f7d88; }
.facet__more { margin-top: 6px; border: 0; background: none; padding: 0; color: var(--glint); font-size: .88rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--lake-3); }
.toolbar__filters { display: none; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: none; font-weight: 600; }
.toolbar__filters span:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 10px; background: var(--sodium); color: var(--lake); font-size: .75rem; }
.toolbar__count { margin: 0; font: 800 1.4rem var(--display); }
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.toolbar__chips button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--lake-2); font-size: .82rem; }
.toolbar__chips button::after { content: "×"; color: var(--mist); font-size: 1rem; }
.toolbar__chips button:hover { border-color: var(--sodium); }
.toolbar__chips .clear { border: 0; background: none; color: var(--glint); }
.toolbar__chips .clear::after { content: none; }
.toolbar__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9rem; color: var(--mist); }
.toolbar__sort select { height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--lake-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239db5be' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 11px center/11px no-repeat; color: var(--ice); font: inherit; appearance: none; }
.toolbar__view { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.toolbar__view button { width: 40px; height: 38px; border: 0; background: none; color: var(--mist); display: grid; place-items: center; }
.toolbar__view button[aria-pressed="true"] { background: var(--lake-3); color: var(--ice); }
.toolbar__view svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 22px; }
@media (max-width: 600px) { .grid:not(.is-list) { grid-template-columns: 1fr 1fr; gap: 22px 12px; } .grid:not(.is-list) .card__title { font-size: .9rem; } .grid:not(.is-list) .card__meta { font-size: .76rem; } }
.grid.is-list { grid-template-columns: 1fr; gap: 0; }
.grid.is-list .card { display: grid; grid-template-columns: 220px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--lake-3); }
.grid.is-list .card__link { display: contents; }
.grid.is-list .card__media { grid-row: span 3; }
.grid.is-list .card__title { margin-top: 2px; font-size: 1.05rem; }
.grid.is-list .card__desc { display: block; color: var(--mist); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__desc { display: none; }
@media (max-width: 600px) { .grid.is-list .card { grid-template-columns: 130px 1fr; } .grid.is-list .card__desc { display: none; } }
.lib__empty { padding: 60px 0; text-align: center; }
.lib__empty h2 { font-size: 2.4rem; }
.lib__empty p { color: var(--mist); }
.lib__more { text-align: center; margin-top: 40px; }
.facets-scrim { display: none; }
@media (max-width: 980px) {
	.lib__body { grid-template-columns: 1fr; }
	.toolbar__filters { display: inline-flex; align-items: center; }
	.facets { position: fixed; z-index: 80; top: 0 !important; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; padding: 20px; background: var(--lake-2); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .25s; }
	.facets.is-open { transform: none; }
	.facets__close { display: block; border: 1px solid var(--line); border-radius: var(--r); background: none; padding: 6px 14px; font-weight: 600; }
	.facets-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(4,16,24,.6); }
	.toolbar__sort { margin-left: 0; }
	.toolbar__chips { order: 5; flex-basis: 100%; }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 3vh 3vw; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(3, 12, 18, .92); }
.lb__frame { position: relative; width: min(1180px, 100%); max-height: 94vh; overflow-y: auto; background: var(--lake-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lb__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(4,16,24,.75); font-size: 1.6rem; line-height: 1; }
.lb__x:hover { background: var(--sodium); color: var(--lake); }
.lb__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lb__player.is-vertical { aspect-ratio: auto; height: min(72vh, 820px); }
.lb__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 22px 26px 26px; }
.lb__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 6px; }
.lb__meta { color: var(--mist); font-size: .9rem; margin: 0 0 10px; }
.lb__desc { color: #c6d7dc; max-width: 70ch; font-size: .95rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lb__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb__side { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.lb__nav { display: flex; gap: 8px; }
.lb__step { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: var(--r); background: none; font-weight: 600; }
.lb__step:hover:not(:disabled) { border-color: var(--glint); }
.lb__step:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) { .lb { padding: 0; } .lb__frame { max-height: 100vh; height: 100%; border-radius: 0; border: 0; } .lb__info { grid-template-columns: 1fr; padding: 18px; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ice); text-decoration: none; font-size: .85rem; }
.chip:hover { border-color: var(--sodium); color: var(--sodium-2); }

/* ---------- Watch page ---------- */
.watch__stage { background: #02090d; }
.watch__player { position: relative; max-width: 1280px; margin: 0 auto; aspect-ratio: 16 / 9; max-height: 78vh; }
.watch__player.is-vertical { aspect-ratio: 9 / 16; height: 78vh; }
.watch__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 32px; padding-bottom: 40px; }
.watch__title { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin: 0 0 18px; text-wrap: balance; }
.watch__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 24px; padding: 14px 0; border-block: 1px solid var(--lake-3); }
.watch__facts dt { font-size: .8rem; color: var(--mist); }
.watch__facts dd { margin: 0; font-weight: 600; }
.watch__desc { max-width: 68ch; color: #c6d7dc; }
.watch__ext { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.side-title { font-size: 1.6rem; }
.stack { display: grid; gap: 16px; }
.watch__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 72px; }
.pager { display: block; padding: 18px 20px; border: 1px solid var(--lake-3); border-radius: var(--r); color: var(--ice); text-decoration: none; font-weight: 600; }
.pager span { display: block; color: var(--mist); font-size: .82rem; font-weight: 400; }
.pager--next { text-align: right; grid-column: 2; }
.pager:hover { border-color: var(--glint); color: var(--ice); }
@media (max-width: 980px) { .watch__body { grid-template-columns: 1fr; } .watch__player.is-vertical { height: 70vh; margin: 0 auto; } }

/* ---------- Pages ---------- */
.page { padding-top: 56px; padding-bottom: 72px; }
.page__title { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; }
.page__grid { display: grid; grid-template-columns: minmax(0, 720px); gap: 56px; }
.page__grid.is-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .page__grid.is-contact { grid-template-columns: 1fr; } }
.prose { font-size: 1.08rem; color: #cbdbe0; }
.prose h2 { font-size: 2.2rem; color: var(--ice); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ice); }
.lost { text-align: left; max-width: 760px; }
.lost .hero__search { margin: 28px 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--lake-3); padding: 64px 0 28px; background: #05161f; }
.site-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 40px; }
.site-foot__brand p { color: var(--mist); max-width: 46ch; margin-top: 16px; }
.site-foot__nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot__nav h2 { font-size: 1.3rem; color: var(--mist); margin-bottom: 6px; }
.site-foot__nav a { color: var(--ice); text-decoration: none; }
.site-foot__nav a:hover { color: var(--sodium-2); }
.site-foot__legal { max-width: var(--wrap); margin: 48px auto 0; padding: 20px var(--gut) 0; border-top: 1px solid var(--lake-3); color: #6f8b95; font-size: .85rem; }
@media (max-width: 760px) { .site-foot__in { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Clean player (YouTube chrome hidden, site controls) ---------- */
.cp { position: absolute; inset: 0; overflow: hidden; background: #000; color: var(--ice); }
.cp:focus-within { outline: none; }
.cp__frame { position: absolute; inset: 0; overflow: hidden; }
/* Taller than the visible area: YouTube letterboxes the video inside it and pins its
   title bar, logo and "More videos" to the frame edges, which fall in the hidden 64px strips. */
.cp__frame iframe, .cp__frame > div { position: absolute; left: 0; top: -64px; width: 100%; height: calc(100% + 128px); border: 0; }
.cp.is-fallback .cp__frame iframe { top: 0; height: 100%; }
.cp__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .5s ease; }
.cp.has-played .cp__poster { opacity: 0; }
.cp.is-ended .cp__poster { opacity: 1; }
.cp__shield { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; transition: background .25s; }
.cp__shield:focus-visible { outline: 2px solid var(--sodium); outline-offset: -4px; }
.cp.is-paused.has-played .cp__shield, .cp.is-ended .cp__shield { background: rgba(3, 12, 18, .55); }
.cp__big { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--sodium); color: var(--lake); box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .2s, opacity .2s; }
.cp__big svg { width: 34px; height: 34px; fill: currentColor; }
.cp__shield:hover .cp__big { transform: scale(1.06); }
.cp.is-playing .cp__big { opacity: 0; transform: scale(.85); }
.cp.is-loading:not(.is-idle) .cp__big, .cp.is-buffering .cp__big { opacity: 1; animation: cp-pulse 1.1s ease-in-out infinite; }
@keyframes cp-pulse { 50% { transform: scale(.9); opacity: .6; } }
.cp__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 28px 14px 12px; background: linear-gradient(rgba(3,12,18,0), rgba(3,12,18,.85)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.cp.is-awake .cp__bar, .cp.is-paused.has-played .cp__bar, .cp:focus-within .cp__bar { opacity: 1; transform: none; }
.cp.is-idle .cp__bar, .cp.is-ended .cp__bar { opacity: 0; pointer-events: none; }
.cp.is-playing:not(.is-awake):not(:focus-within) { cursor: none; }
.cp.is-playing:not(.is-awake):not(:focus-within) .cp__shield { cursor: none; }
.cp__btn { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ice); }
.cp__btn:hover { background: rgba(228, 238, 241, .12); }
.cp__btn svg { width: 22px; height: 22px; fill: currentColor; }
.cp__time { flex: 0 0 auto; font-size: .82rem; font-variant-numeric: tabular-nums; color: #cfe0e5; min-width: 92px; }
.cp__seek { --p: 0%; flex: 1; min-width: 60px; height: 18px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.cp__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sodium) var(--p), rgba(228,238,241,.28) var(--p)); }
.cp__seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sodium) var(--p), rgba(228,238,241,.28) var(--p)); }
.cp__seek::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--sodium); border: 0; }
.cp__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sodium); border: 0; }
.cp.is-full { background: #000; }
.cp.is-fallback .cp__shield, .cp.is-fallback .cp__bar, .cp.is-fallback .cp__poster { display: none; }
.lb__player > iframe, .watch__player > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .cp__time { min-width: 0; font-size: .74rem; } .cp__big { width: 62px; height: 62px; } }
