/* ==========================================================================
   Video Showcase: one greyscale photo, one colour (glowing luminous orange), one font (VCR OSD Mono).
   ========================================================================== */
@font-face {
  font-family: "VCR OSD Mono";
  src: url("../fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --orange: #f76631;                       /* Leuchtorange: the only colour on the site */
  --orange-glow: #ff4d06;
  --orange-soft: rgba(247, 102, 49, .55);
  --dark: #140803;                         /* text on solid orange, panel backing */
  --font: "VCR OSD Mono", ui-monospace, "Courier New", monospace;
  --bw: clamp(5px, .62vw, 11px);           /* frame thickness */
  --glow-text: 0 0 .05em rgba(255, 196, 160, .95), 0 0 .2em var(--orange), 0 0 .55em rgba(255, 77, 6, .9), 0 0 1.1em rgba(255, 77, 6, .6), 0 0 2.2em rgba(255, 77, 6, .38);
  --glow-box: 0 0 8px var(--orange), 0 0 22px rgba(255, 77, 6, .75), 0 0 48px rgba(255, 77, 6, .4), inset 0 0 8px rgba(255, 77, 6, .6), inset 0 0 22px rgba(255, 77, 6, .3);
  --glow-box-hot: 0 0 10px var(--orange), 0 0 30px rgba(255, 77, 6, .9), 0 0 70px rgba(255, 77, 6, .6), inset 0 0 10px rgba(255, 77, 6, .8), inset 0 0 30px rgba(255, 77, 6, .45);
  --vh100: 100vh;
  --top: clamp(16px, 4.2vh, 46px);         /* where the page name sits */
  color-scheme: dark;
}
@supports (height: 100dvh) { :root { --vh100: 100dvh; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  margin: 0; background: #0b0b0c; color: var(--orange); overflow: hidden;
  font: 400 16px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; filter: drop-shadow(0 0 3px rgba(255, 77, 6, .9)); }
kbd { font: inherit; font-size: .85em; padding: 0 .4em; border: 1px solid var(--orange-soft); }
:focus-visible { outline: 2px dashed var(--orange); outline-offset: 4px; }
.skip { position: fixed; left: -999px; top: 8px; z-index: 300; background: var(--orange); color: var(--dark); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- neon text ---------- */
.neon { color: var(--orange); text-shadow: var(--glow-text); }

/* ---------- background photo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0b0b0c; }
.bg__img {
  position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: 50% 50%;
  opacity: 0; transform: scale(1); filter: blur(0px);
  transition: opacity 1.1s ease, filter 1s ease, transform 1.2s ease;
  will-change: filter, transform;
}
body.bg-ready .bg__img { opacity: 1; }
body:not([data-page="home"]) .bg__img { filter: blur(clamp(9px, 1vw, 20px)) brightness(.74) contrast(1.06); transform: scale(1.08); }

/* ---------- pages ---------- */
.pages { position: fixed; inset: 0; z-index: 2; }
.page {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s .35s, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.page[data-pos="before"] { transform: translateY(-5vh); }
.page[data-pos="after"] { transform: translateY(5vh); }
.page.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .7s ease .3s, visibility 0s, transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }

/* ---------- home: title + menu ---------- */
.home {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: clamp(26px, 6vh, 74px); padding: 0 6vw; transform: translateY(clamp(0px, 7vh, 80px));
}
.neon--title { font-size: clamp(22px, 1.2vw + 18px, 52px); letter-spacing: .09em; line-height: 1.2; }
.menu { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 2.2vh, 26px); }
.neon--link {
  position: relative; display: block; text-decoration: none; padding: .5em 1.1em; font-size: clamp(17px, .8vw + 13px, 34px); letter-spacing: .1em;
  transition: text-shadow .25s, transform .25s;
}
.neon--link::before { content: ">"; position: absolute; left: -.1em; top: .5em; opacity: 0; }
.neon--link:hover, .neon--link:focus-visible {
  transform: scale(1.06); outline: none;
  text-shadow: 0 0 .05em #ffd9c4, 0 0 .2em #ff8a55, 0 0 .5em var(--orange), 0 0 1em var(--orange-glow), 0 0 2em var(--orange-glow), 0 0 3.6em rgba(255, 77, 6, .7);
}
.neon--link:hover::before, .neon--link:focus-visible::before { opacity: 1; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.neon--intro { opacity: 0; }
body.is-ready .neon--intro { animation: neon-on 1.6s linear both; animation-delay: calc(var(--i, 0) * .34s); }
body.is-ready .neon--title { animation: neon-on 1.6s linear both, buzz 9s 3s infinite; }
@keyframes neon-on {      /* a tube warming up: stutters, then holds */
  0% { opacity: 0; } 5% { opacity: .85; } 7% { opacity: .05; } 12% { opacity: 1; } 16% { opacity: .15; }
  22% { opacity: .95; } 25% { opacity: .35; } 33% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes buzz { 0%, 91%, 100% { filter: brightness(1); } 92% { filter: brightness(.62); } 93% { filter: brightness(1.15); } 95% { filter: brightness(.8); } 96% { filter: brightness(1); } }

/* ---------- start page: "scroll" cue ---------- */
.scrollcue {
  all: unset; position: absolute; left: 50%; bottom: max(clamp(16px, 4.5vh, 48px), env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .9em; padding: .8em 1.4em; cursor: pointer;
  font-family: var(--font); font-size: clamp(12px, .35vw + 9px, 17px); letter-spacing: .4em; text-transform: uppercase;
}
.scrollcue::after {
  content: ""; width: 1.1em; height: 1.1em; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(255, 77, 6, .9)); animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(7px) rotate(45deg); } }
.scrollcue:focus-visible { outline: 2px dashed var(--orange); outline-offset: 2px; }

/* ---------- page name (top centre) and bottom menu ---------- */
.pagebar { position: fixed; top: var(--top); left: 0; right: 0; z-index: 20; display: flex; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .6s ease .3s; }
body.is-ready:not([data-page="home"]) .pagebar { opacity: 1; }
.pagebar::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: calc(var(--top) + clamp(60px, 11vh, 110px)); z-index: -1; pointer-events: none; background: linear-gradient(rgba(8, 4, 2, .62), rgba(8, 4, 2, 0)); }
.pagebar__label { pointer-events: auto; font-size: clamp(16px, .9vw + 11px, 32px); letter-spacing: .14em; text-decoration: none; padding: .4em .9em; min-height: 1.4em; }
.pagebar__label:hover { filter: brightness(1.25); }

.dock {
  position: fixed; left: 0; right: 0; bottom: max(clamp(10px, 2.6vh, 30px), env(safe-area-inset-bottom)); z-index: 20; display: flex; justify-content: center; gap: clamp(8px, 3vw, 44px);
  opacity: 0; pointer-events: none; transition: opacity .6s ease .3s;
}
body.is-ready:not([data-page="home"]) .dock { opacity: 1; pointer-events: auto; }
.dock::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: clamp(70px, 13vh, 130px); z-index: -1; pointer-events: none; background: linear-gradient(rgba(8, 4, 2, 0), rgba(8, 4, 2, .7)); }
.dock a { padding: .7em .5em; font-size: clamp(11px, .35vw + 9px, 16px); text-decoration: none; opacity: .62; transition: opacity .25s; border-bottom: 2px solid transparent; }
.dock a:hover { opacity: 1; }
.dock a.is-current { opacity: 1; border-bottom-color: var(--orange); }

/* ---------- scrolling pages ---------- */
.page__scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: flex; -webkit-overflow-scrolling: touch;
  padding: calc(var(--top) + clamp(54px, 9vh, 90px)) clamp(16px, 5vw, 80px) clamp(70px, 12vh, 120px);
  scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
}
.page__scroll::-webkit-scrollbar { width: 8px; }
.page__scroll::-webkit-scrollbar-thumb { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.page__scroll > * { margin: auto; }

/* ---------- tiles: thick glowing frames, orange filter until hover ---------- */
.shelf { --tw: clamp(150px, 19vw, 360px); display: grid; grid-template-columns: repeat(3, var(--tw)); gap: clamp(18px, 4.5vw, 96px); justify-content: center; }
.tile { all: unset; display: block; box-sizing: border-box; width: 100%; cursor: pointer; text-align: center; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); }
.tile--empty { cursor: default; }
.page.is-active .tile { animation: tile-in .9s linear both; animation-delay: calc(var(--i, 0) * .14s + .5s); }
@keyframes tile-in { 0% { opacity: 0; transform: scale(.97); } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 26% { opacity: .3; } 36% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.tile__frame {
  position: relative; display: block; aspect-ratio: 1.42 / 1; border: var(--bw) solid var(--orange); box-shadow: var(--glow-box);
  transition: box-shadow .4s ease, transform .4s ease;
}
.tile:hover .tile__frame, .tile:focus-visible .tile__frame { box-shadow: var(--glow-box-hot); transform: scale(1.03); }
.tile:focus-visible { outline: none; }
.tile__media { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; background: rgba(20, 8, 3, .35); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.15) brightness(1.15); transition: filter .5s ease, transform .9s ease; }
.tile__tint { position: absolute; inset: 0; background: var(--orange); mix-blend-mode: multiply; transition: opacity .5s ease; }
.tile__media::after { content: ""; position: absolute; inset: 0; background: rgba(247, 102, 49, .42); mix-blend-mode: screen; pointer-events: none; transition: opacity .5s ease; }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { filter: none; transform: scale(1.06); }
.tile:hover .tile__tint, .tile:focus-visible .tile__tint, .tile:hover .tile__media::after, .tile:focus-visible .tile__media::after { opacity: 0; }
.tile__play {
  position: absolute; left: 50%; top: 50%; width: 3.2em; height: 3.2em; margin: -1.6em 0 0 -1.6em; display: grid; place-items: center; z-index: 2;
  color: #fff; border: 2px solid #fff; border-radius: 50%; background: rgba(20, 8, 3, .45); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
  font-size: clamp(10px, .5vw + 6px, 15px);
}
.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; transform: none; }
.tile__cap { display: block; margin-top: clamp(10px, 1.6vh, 20px); font-size: clamp(10px, .3vw + 8px, 18px); line-height: 1.4; text-shadow: 0 0 .6em rgba(255, 77, 6, .8); }
.tile__cap b { display: block; font-weight: 400; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__cap i { display: block; font-style: normal; opacity: .72; font-size: .86em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.4em; }

/* ---------- chips, sort, counts ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  all: unset; box-sizing: border-box; flex: none; cursor: pointer; padding: .38em .9em; border: 2px solid var(--orange); font-family: var(--font); color: var(--orange);
  font-size: clamp(11px, .3vw + 9px, 14px); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 .5em rgba(255, 77, 6, .8);
  box-shadow: 0 0 6px rgba(255, 77, 6, .7), inset 0 0 6px rgba(255, 77, 6, .35); transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: 0 0 12px var(--orange), 0 0 26px rgba(255, 77, 6, .6), inset 0 0 8px rgba(255, 77, 6, .5); }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--dark); text-shadow: none; box-shadow: 0 0 14px var(--orange), 0 0 32px rgba(255, 77, 6, .6); }
.chip:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
.chip--sm { padding: .25em .7em; font-size: clamp(10px, .25vw + 8px, 13px); border-width: 1.5px; }
.count { margin: 0; font-size: clamp(10px, .3vw + 8px, 13px); letter-spacing: .14em; opacity: .85; text-shadow: 0 0 .6em rgba(255, 77, 6, .8); }

.btn {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .6em; cursor: pointer; padding: .55em 1.3em; border: 2px solid var(--orange);
  font-family: var(--font); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); text-shadow: 0 0 .5em rgba(255, 77, 6, .8);
  box-shadow: 0 0 8px rgba(255, 77, 6, .8), inset 0 0 8px rgba(255, 77, 6, .4); transition: background .2s, color .2s;
}
.btn:hover { background: var(--orange); color: var(--dark); text-shadow: none; box-shadow: 0 0 16px var(--orange), 0 0 34px rgba(255, 77, 6, .6); }
.btn:hover .ico { filter: none; }
.btn:focus-visible { outline: 2px dashed var(--orange); outline-offset: 4px; }
.btn .ico { width: 1.2em; height: 1.2em; }

/* ---------- archives ---------- */
.archives { width: min(100%, 1120px); }
.controls { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: clamp(24px, 5vh, 56px); }
.sortbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.sortbar__label { font-size: clamp(10px, .3vw + 8px, 13px); letter-spacing: .2em; opacity: .75; margin-right: .4em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 5vw, 80px) clamp(18px, 4.5vw, 92px); }
.grid__empty { grid-column: 1 / -1; text-align: center; opacity: .8; }

/* ---------- global ---------- */
.globebar {
  position: absolute; z-index: 6; top: calc(var(--top) + clamp(46px, 6.4vh, 66px)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 clamp(12px, 4vw, 60px); pointer-events: none;
}
.globebar > * { pointer-events: auto; }
.globebar .chips { max-width: min(100%, 980px); flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 8px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.globebar .chips::-webkit-scrollbar { display: none; }
.globe { position: absolute; inset: 0; z-index: 1; touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
.globe:active { cursor: grabbing; }
.globe__svg { position: absolute; inset: 0; }
.globe__el { display: block; }
.g-sphere { fill: rgba(70, 26, 10, .36); stroke: none; }
.g-country { fill: rgba(214, 218, 222, .17); stroke: rgba(255, 255, 255, .26); stroke-width: .5; }
.g-statelines { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: .5; pointer-events: none; }
.g-hot { filter: drop-shadow(0 0 5px rgba(255, 77, 6, .95)) drop-shadow(0 0 16px rgba(255, 77, 6, .65)); pointer-events: none; }
.g-visited { fill: #ff6a2c; stroke: #ffd9c4; stroke-width: .9; }
.g-rim { fill: none; stroke: var(--orange); stroke-width: 2; opacity: .5; filter: drop-shadow(0 0 6px rgba(255, 77, 6, .9)); pointer-events: none; }

.pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pinwrap { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.pin { all: unset; box-sizing: border-box; display: block; position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; pointer-events: auto; }
.pin__disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate; border: 3px solid var(--orange); background: #1a0a04;
  box-shadow: 0 0 8px var(--orange), 0 0 22px rgba(255, 77, 6, .75), inset 0 0 8px rgba(255, 77, 6, .6); transition: transform .25s, box-shadow .25s;
}
.pin__img { position: absolute; inset: 0; background: var(--cover) center / cover; filter: grayscale(1) contrast(1.05) brightness(1.55); transition: filter .4s; }
.pin__tint { position: absolute; inset: 0; background: var(--orange); mix-blend-mode: multiply; transition: opacity .4s; }
.pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: ping 2.6s ease-out infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.pin:hover .pin__disc, .pin:focus-visible .pin__disc { transform: scale(1.25); box-shadow: 0 0 12px var(--orange), 0 0 36px rgba(255, 77, 6, .9), inset 0 0 8px rgba(255, 77, 6, .8); }
.pin:hover .pin__img, .pin:focus-visible .pin__img { filter: none; }
.pin__disc::after { content: ""; position: absolute; inset: 0; background: rgba(247, 102, 49, .5); mix-blend-mode: screen; pointer-events: none; transition: opacity .4s; }
.pin:hover .pin__tint, .pin:focus-visible .pin__tint, .pin:hover .pin__disc::after, .pin:focus-visible .pin__disc::after { opacity: 0; }
.pin:focus-visible { outline: none; }
.pin--cluster .pin__disc { box-shadow: 6px -6px 0 -1px rgba(20, 8, 3, .85), 6px -6px 0 1px var(--orange), 0 0 22px rgba(255, 77, 6, .75); }
.pin__count {
  position: absolute; right: -10px; top: -10px; min-width: 22px; height: 22px; padding: 0 5px; z-index: 2; background: var(--orange); color: var(--dark);
  font-size: 12px; line-height: 22px; text-align: center; box-shadow: 0 0 10px var(--orange);
}
.pin__label {
  position: absolute; left: 50%; top: 100%; margin-top: 12px; transform: translateX(-50%) translateY(-4px); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .3em .8em; background: rgba(20, 8, 3, .88); border: 1.5px solid var(--orange); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 3;
  text-shadow: 0 0 .5em rgba(255, 77, 6, .8);
}
.pin:hover .pin__label, .pin:focus-visible .pin__label { opacity: 1; transform: translateX(-50%); }
.pinwrap:hover { z-index: 5; }

.page:not(.is-live) .pin--drop { opacity: 0; }
.page.is-live .pin--drop { animation: drop .8s cubic-bezier(.2, 1.5, .35, 1) both; animation-delay: calc(var(--i, 0) * 120ms + 550ms); }
@keyframes drop { 0% { opacity: 0; transform: translateY(-50px) scale(.2); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.pin--pop { animation: pop .25s ease-out both; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

.zoomctl { position: absolute; z-index: 6; right: clamp(12px, 3vw, 40px); bottom: clamp(56px, 10vh, 96px); display: flex; flex-direction: column; gap: 10px; }
.zoomctl button {
  all: unset; box-sizing: border-box; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; border: 2px solid var(--orange); background: rgba(20, 8, 3, .35);
  font-family: var(--font); font-size: 22px; line-height: 1; color: var(--orange); text-shadow: 0 0 .5em rgba(255, 77, 6, .8); box-shadow: 0 0 8px rgba(255, 77, 6, .8), inset 0 0 8px rgba(255, 77, 6, .4);
}
.zoomctl button:hover { background: var(--orange); color: var(--dark); text-shadow: none; }
.zoomctl button:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
.hint { position: absolute; z-index: 6; left: clamp(12px, 3vw, 40px); bottom: clamp(56px, 10vh, 96px); margin: 0; max-width: 36ch; font-size: 11px; line-height: 1.5; opacity: .8; text-shadow: 0 0 .6em rgba(255, 77, 6, .8); }

.card {
  position: absolute; z-index: 9; width: min(330px, calc(100% - 20px)); background: rgba(14, 6, 2, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: var(--bw) solid var(--orange); box-shadow: var(--glow-box);
}
.card.is-in { animation: cardIn .25s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.card__media { all: unset; display: block; position: relative; width: calc(100% - 24px); margin: 12px 12px 0; aspect-ratio: 16 / 10; cursor: pointer; overflow: hidden; isolation: isolate; border: 2px solid var(--orange); box-shadow: 0 0 10px rgba(255, 77, 6, .7); }
.card__img { position: absolute; inset: 0; background: #1a0a04 var(--cover) center / cover; filter: grayscale(1) contrast(1.15) brightness(1.15); transition: filter .5s, transform .8s; }
.card__media .tile__tint { transition: opacity .5s; }
.card__media:hover .card__img, .card__media:focus-visible .card__img { filter: none; transform: scale(1.05); }
.card__media:hover .tile__tint, .card__media:focus-visible .tile__tint { opacity: 0; }
.card__play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: rgba(20, 8, 3, .45); z-index: 2; }
.card__body { padding: 14px 16px 18px; }
.card__body h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: .08em; text-shadow: 0 0 .5em rgba(255, 77, 6, .8); }
.card__loc { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; opacity: .85; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card__close { all: unset; position: absolute; top: 18px; right: 18px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; border: 2px solid #fff; background: rgba(20, 8, 3, .55); color: #fff; }
.card__close .ico { width: 16px; height: 16px; filter: none; }
.card__close:hover { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.card__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.card__list button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 6px; cursor: pointer; border: 1.5px solid transparent; font-family: var(--font); }
.card__list button:hover, .card__list button:focus-visible { border-color: var(--orange); box-shadow: 0 0 10px rgba(255, 77, 6, .6); }
.card__thumb { aspect-ratio: 16 / 10; background: #1a0a04 var(--cover) center / cover; filter: grayscale(1) contrast(1.1) brightness(1.1) sepia(1) hue-rotate(-28deg) saturate(6); border: 1.5px solid var(--orange); }
.card__list button:hover .card__thumb { filter: none; }
.card__lt b { display: block; font-weight: 400; font-size: 13px; line-height: 1.3; }
.card__lt i { display: block; font-style: normal; font-size: 11px; opacity: .75; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.player__backdrop { position: absolute; inset: 0; background: rgba(8, 3, 1, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.player__panel {
  position: relative; width: min(1340px, 96vw); max-height: 96vh; overflow-y: auto; overflow-x: hidden; padding: clamp(14px, 1.6vw, 26px);
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; background: rgba(12, 5, 2, .9);
  border: var(--bw) solid var(--orange); box-shadow: var(--glow-box); animation: rise .4s ease; outline: none; scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.player__panel.is-theater { grid-template-columns: minmax(0, 1fr); width: 100vw; max-height: 100vh; border-width: 0; box-shadow: none; }
.player__panel.is-theater .player__side { grid-column: 1; grid-row: auto; padding: 0 20px; }
.player__panel.is-theater .player__info { padding: 16px 20px 4px; }
.player__close { all: unset; position: absolute; top: 12px; right: 12px; z-index: 8; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border: 2px solid var(--orange); background: rgba(12, 5, 2, .8); color: var(--orange); box-shadow: 0 0 8px rgba(255, 77, 6, .8); }
.player__close:hover { background: var(--orange); color: var(--dark); }
.player__close:hover .ico { filter: none; }
.player__close:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
.player__close .ico { width: 20px; height: 20px; }

.pv { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(96vh - 200px); width: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; border: var(--bw) solid var(--orange); box-shadow: var(--glow-box); }
.player__panel.is-theater .pv { max-height: calc(100vh - 160px); margin: 0 auto; }
.pv video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.pv:fullscreen { max-height: none; aspect-ratio: auto; width: 100%; height: 100%; border: 0; box-shadow: none; }
.pv:-webkit-full-screen { max-height: none; aspect-ratio: auto; width: 100%; height: 100%; border: 0; box-shadow: none; }
.pv.is-idle { cursor: none; }
.pv__spinner { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 4px solid rgba(247, 102, 49, .25); border-top-color: var(--orange); animation: spin .8s linear infinite; pointer-events: none; z-index: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.pv__msg { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 28px; background: rgba(8, 3, 1, .85); font-size: 13px; line-height: 1.6; }
.pv__toast { position: absolute; z-index: 5; top: 14px; left: 50%; transform: translateX(-50%); padding: .35em 1em; background: rgba(8, 3, 1, .85); border: 1.5px solid var(--orange); font-size: 12px; white-space: nowrap; }
.pv__bigplay { all: unset; position: absolute; z-index: 2; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; display: grid; place-items: center; cursor: pointer; border: 3px solid var(--orange); background: rgba(12, 5, 2, .5); color: var(--orange); box-shadow: var(--glow-box); transition: opacity .2s, transform .2s; }
.pv__bigplay .ico { width: 40px; height: 40px; }
.pv__bigplay:hover { background: var(--orange); color: var(--dark); }
.pv__bigplay:hover .ico { filter: none; }
.pv:not(.is-paused) .pv__bigplay { opacity: 0; transform: scale(1.35); pointer-events: none; }
.pv__bigplay:focus-visible { outline: 2px dashed var(--orange); outline-offset: 4px; }

.pv__controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 36px 12px 8px; background: linear-gradient(to top, rgba(8, 3, 1, .9), transparent); transition: opacity .25s; }
.pv.is-idle .pv__controls { opacity: 0; pointer-events: none; }
.pv__seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.pv__track { position: relative; width: 100%; height: 4px; background: rgba(247, 102, 49, .28); transition: height .12s; }
.pv__seek:hover .pv__track, .pv__seek:focus-visible .pv__track, .pv.is-scrubbing .pv__track { height: 7px; }
.pv__buf, .pv__prog { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); }
.pv__buf { background: rgba(247, 102, 49, .42); }
.pv__prog { background: var(--orange); box-shadow: 0 0 10px var(--orange), 0 0 22px rgba(255, 77, 6, .7); }
.pv__knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; box-shadow: 0 0 10px var(--orange), 0 0 20px var(--orange); transform: scale(0); transition: transform .12s; pointer-events: none; }
.pv__seek:hover .pv__knob, .pv__seek:focus-visible .pv__knob, .pv.is-scrubbing .pv__knob { transform: scale(1); }
.pv__seek:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
.pv__tip { position: absolute; bottom: 24px; transform: translateX(-50%); padding: .2em .6em; background: rgba(8, 3, 1, .92); border: 1px solid var(--orange); font-size: 12px; pointer-events: none; }
.pv__row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.pv__spacer { flex: 1; }
.pv__btn { all: unset; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--orange); }
.pv__btn:hover { background: var(--orange); color: var(--dark); }
.pv__btn:hover .ico { filter: none; }
.pv__btn:focus-visible { outline: 2px dashed var(--orange); outline-offset: -4px; }
.pv__btn .ico { width: 24px; height: 24px; }
.pv__btn--text { width: auto; min-width: 44px; padding: 0 10px; font-family: var(--font); font-size: 14px; }
.pv__btn[aria-pressed="true"] { text-shadow: var(--glow-text); }
.pv__vol { display: flex; align-items: center; }
.pv__vol input { width: 0; opacity: 0; margin: 0; accent-color: var(--orange); transition: width .2s, opacity .2s, margin .2s; height: 4px; }
.pv__vol:hover input, .pv__vol:focus-within input { width: 82px; opacity: 1; margin: 0 8px 0 2px; }
.pv__time { margin-left: 8px; font-size: 13px; white-space: nowrap; text-shadow: 0 0 .5em rgba(255, 77, 6, .8); }
.pv__speed { position: relative; }
.pv__menu { position: absolute; right: 0; bottom: 46px; margin: 0; padding: 6px; list-style: none; min-width: 112px; background: rgba(8, 3, 1, .96); border: 2px solid var(--orange); box-shadow: 0 0 16px rgba(255, 77, 6, .6); }
.pv__menu button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .45em .8em; font-family: var(--font); font-size: 13px; cursor: pointer; }
.pv__menu button:hover, .pv__menu button:focus-visible { background: var(--orange); color: var(--dark); }
.pv__menu button[aria-checked="true"] { text-shadow: var(--glow-text); }
.pv__menu button[aria-checked="true"]:hover { text-shadow: none; }

.player__info { padding: 18px 4px 4px; }
.player__info h2 { margin: 0 0 10px; padding-right: 46px; font-size: clamp(18px, 1.6vw + 8px, 32px); line-height: 1.25; letter-spacing: .08em; text-shadow: var(--glow-text); }
.player__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin: 0 0 14px; font-size: 13px; opacity: .92; }
.linkbtn { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-family: var(--font); letter-spacing: inherit; text-transform: uppercase; }
.linkbtn:hover:not(:disabled) { text-shadow: var(--glow-text); text-decoration: underline; }
.linkbtn:disabled { cursor: default; }
.linkbtn:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }
.linkbtn .ico { width: 16px; height: 16px; }
.player__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.player__keys { margin: 22px 0 0; padding-top: 14px; border-top: 1.5px solid var(--orange-soft); font-size: 11px; line-height: 2.1; opacity: .75; }

.player__side { grid-column: 2; grid-row: 1; padding-top: 4px; }
.player__side h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .2em; text-shadow: var(--glow-text); }
.rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rel button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 6px; cursor: pointer; border: 1.5px solid transparent; font-family: var(--font); }
.rel button:hover, .rel button:focus-visible { border-color: var(--orange); box-shadow: 0 0 12px rgba(255, 77, 6, .6); }
.rel__thumb { position: relative; aspect-ratio: 16 / 10; isolation: isolate; border: 2px solid var(--orange); background: #1a0a04; overflow: hidden; }
.rel__thumb::before { content: ""; position: absolute; inset: 0; background: var(--cover) center / cover; filter: grayscale(1) contrast(1.1) brightness(1.35); transition: filter .4s; }
.rel__thumb::after { content: ""; position: absolute; inset: 0; background: var(--orange); mix-blend-mode: multiply; transition: opacity .4s; }
.rel button:hover .rel__thumb::before, .rel button:focus-visible .rel__thumb::before { filter: none; }
.rel button:hover .rel__thumb::after, .rel button:focus-visible .rel__thumb::after { opacity: 0; }
.rel__text b { display: block; font-weight: 400; font-size: 13px; line-height: 1.3; letter-spacing: .08em; }
.rel__text i { display: block; margin-top: 3px; font-style: normal; font-size: 11px; opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .player__panel { grid-template-columns: minmax(0, 1fr); width: 100vw; max-height: 100vh; border-width: 0; box-shadow: none; padding: 0 0 28px; gap: 0; }
  .player__side { grid-column: 1; grid-row: auto; padding: 8px 16px 0; }
  .pv, .player__panel.is-theater .pv { max-height: 58vh; }
  .player__info { padding: 16px 16px 4px; }
  .player__close { top: 8px; right: 8px; }
  .rel button { grid-template-columns: 112px 1fr; }
}
@media (max-width: 760px) {
  .shelf { grid-template-columns: min(78vw, 380px); gap: clamp(22px, 5vh, 40px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .page__scroll { padding-left: 14px; padding-right: 14px; }
  .tile__cap { font-size: 10px; }
  .archives .chips, .sortbar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; padding: 8px 14px; margin: 0 -14px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .archives .chips::-webkit-scrollbar, .sortbar::-webkit-scrollbar { display: none; }
  .controls { width: 100%; gap: 6px; }  .pv__time { font-size: 11px; margin-left: 2px; }
  .pv__vol input { display: none; }
  .pv__btn { width: 36px; }
  .pv__btn--text { width: auto; }
  .hint { display: none; }
  .zoomctl { bottom: clamp(60px, 11vh, 100px); }
  .zoomctl button { width: 38px; height: 38px; }
}
@media (hover: none) {
  .player__keys { display: none; }
  .tile__tint { opacity: .6; }                                 /* no hover on touch: let some colour through */
  .tile__media::after { opacity: .6; }
  .pin__tint { opacity: .6; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .shelf { --tw: clamp(120px, 17vw, 240px); }
  .home { gap: 16px; transform: none; }
  .neon--link { padding: .25em 1em; }
}

@media (prefers-reduced-motion: reduce) {
  .bg__img, .page, .page.is-active, .tile__frame, .tile__media img { transition-duration: .01s; transition-delay: 0s; }
  body.is-ready .neon--intro, body.is-ready .neon--title, .page.is-active .tile, .page.is-live .pin--drop, .pin--pop, .card.is-in, .player__panel, .player__backdrop { animation: none; }
  .neon--intro { opacity: 1; }
  .pin::before { animation: none; }
  .neon--link::before { animation: none; }
  .page, .page[data-pos], .page.is-active { transform: none; }
  .scrollcue::after { animation: none; }
}
