/* Sample zoom (sample-zoom.js, samples-zoom-r82, David 5 Nov): a sample creation's page over the Night Shift page, in
   place. Desktop: a large card in the station's colour, the page behind dimmed and softened round it. Phone (portrait
   and landscape): the whole screen, the bar with ✕ CLOSE at the top. Touch targets at least 44 by 44 CSS px. */
.sz { --c: var(--pink, #ff3fa4); position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden; overscroll-behavior: contain; }
.sz:not([open]) { display: none; }
.sz::backdrop { background: transparent; }
.sz-back { position: absolute; inset: 0; background: rgba(5, 3, 9, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.sz-panel { position: absolute; top: 24px; bottom: 24px; left: max(24px, calc((100% - 1120px) / 2)); right: max(24px, calc((100% - 1120px) / 2));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #07040d;
  border: 1px solid color-mix(in srgb, var(--c) 60%, #2a2030);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7), 0 0 40px color-mix(in srgb, var(--c) 32%, transparent); }

/* the bar: what is open, and the way out */
.sz-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 58px; box-sizing: border-box; padding: 6px 8px 6px 18px;
  background: linear-gradient(180deg, #1c1423, #0c0911); border-bottom: 1px solid color-mix(in srgb, var(--c) 45%, #2a2030); }
.sz-h { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sz-h small { font: 700 10px/1 "Chakra Petch", sans-serif; letter-spacing: .2em; color: color-mix(in srgb, var(--c) 85%, #fff);
  text-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.sz-h b { font: 600 16px/1.15 "Chakra Petch", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz-x { flex: none; display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid #5a4a62; background: rgba(6, 5, 8, .9); color: #efe6f7; font: 700 12px/1 "Chakra Petch", sans-serif; letter-spacing: .16em;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sz-x:hover { border-color: var(--amb, #ffb347); color: var(--amb, #ffb347); }
.sz-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sz-x kbd { display: none; padding: 3px 5px; border-radius: 4px; border: 1px solid #5a4a62; font: 700 9px/1 "Chakra Petch", sans-serif; letter-spacing: .1em; color: #b9a9cc; }
@media (hover: hover) and (pointer: fine) { .sz-x kbd { display: inline-block; } }

/* the page, and the card face it zooms out of while the page loads */
.sz-body { position: relative; flex: 1; min-height: 0; }
.sz-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #07040d; opacity: 0; transition: opacity .2s; }
.sz.loaded .sz-frame { opacity: 1; }
.sz-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background: radial-gradient(70% 60% at 50% 38%, color-mix(in srgb, var(--c) 28%, #151018), #07040d); transition: opacity .25s; }
.sz.loaded .sz-cover { opacity: 0; pointer-events: none; }
.sz-cover .smp-pol { width: 96px; margin-bottom: 8px; padding: 5px 5px 18px; }
.sz-cv-stn { font: 700 13px/1.2 "Chakra Petch", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.sz-cv-t { font: 800 28px/1.05 "Inter Tight", sans-serif; color: #fff; }
.sz-cv-w { margin-top: 6px; font: 700 11px/1 "Chakra Petch", sans-serif; letter-spacing: .2em; color: var(--cy, #3df0ff); animation: sz-wait 1s ease-in-out infinite alternate; }
@keyframes sz-wait { to { opacity: .35; } }

/* phones and short screens: the whole screen */
@media (max-width: 600px), (max-height: 540px) {
  .sz-panel { inset: 0; border: 0; border-radius: 0; box-shadow: none; }
  .sz-bar { min-height: 52px; padding: calc(env(safe-area-inset-top) + 4px) calc(env(safe-area-inset-right) + 6px) 4px calc(env(safe-area-inset-left) + 14px); }
  .sz-h b { font-size: 15px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .sz-bar { min-height: 48px; padding-top: 2px; padding-bottom: 2px; }
  .sz-h { flex-direction: row; align-items: baseline; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sz-frame, .sz-cover { transition: none; } .sz-cv-w { animation: none; } }
