/* Adapted from LinkSnap LandingPage.tsx: fixed cinema palette, 720px column,
   16px rounded video card and full-width blue CTA. No external fonts/assets. */
:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #030712;
  --accent: #2563eb;
  --muted: #a9b5c9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: linear-gradient(180deg, #030712 0%, #080f25 100%);
}
a { color: #a5c7ff; text-underline-offset: 4px; }
a:hover { color: #fff; }
a, button, video { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 5px; }
button { font: inherit; }
.page { width: min(100% - 32px, 720px); margin: 0 auto; padding: 24px 0 32px; }
.entry-only { min-height: 100vh; display: grid; align-content: center; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  background: #1e40af;
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); font-size: 19px; }
.header-note, .back-link { font-size: 13px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow { margin: 0 0 10px; color: #8db7ff; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 0 0 10px; font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.2; }
.intro { margin: 0; color: var(--muted); line-height: 1.6; }
.metadata { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; list-style: none; }
.metadata li { border: 1px solid #263349; border-radius: 6px; padding: 4px 9px; color: #c3cfe0; font-size: 12px; }
.metadata li:first-child { border-color: #29467a; background: #142344; color: #b6d3ff; }
.video-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgb(0 0 0 / 60%), 0 0 0 1px rgb(255 255 255 / 8%);
}
.video-card img, .video-card video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-card video:focus-visible { outline-offset: -4px; }
.preview { text-decoration: none; }
.preview-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 6%), rgb(0 0 0 / 12%) 40%, rgb(0 0 0 / 75%)); }
.play-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding-left: 4px;
  border-radius: 50%;
  background: rgb(37 99 235 / 95%);
  box-shadow: 0 0 0 10px rgb(37 99 235 / 25%), 0 0 40px rgb(37 99 235 / 40%);
  color: #fff;
  font-size: 28px;
}
.preview:hover .play-disc { background: #1d4ed8; }
.preview-caption { position: absolute; bottom: 18px; left: 20px; color: #fff; font-size: 14px; font-weight: 650; }
.duration { position: absolute; right: 16px; bottom: 16px; border-radius: 5px; padding: 4px 7px; background: rgb(0 0 0 / 70%); color: #fff; font-size: 12px; }
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 18px;
  border: 0;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.primary { color: #fff; background: var(--accent); box-shadow: 0 10px 30px rgb(37 99 235 / 25%); }
.primary:hover { background: #1d4ed8; }
.button + .button { margin-top: 12px; }
.player-status { min-height: 24px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.player-status.is-loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #395179; border-top-color: #bfdbfe; border-radius: 50%; animation: spin 1s linear infinite; }
.player-status.is-error { color: #fecaca; }
.hint { margin: 16px 0 28px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
.note { border: 1px solid #22304a; border-radius: 12px; padding: 18px 20px; background: rgb(15 23 42 / 65%); color: var(--muted); font-size: 13px; line-height: 1.7; }
.note h2 { color: #e2e8f0; font-size: 14px; margin: 0 0 6px; }
.note p { margin: 0 0 10px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .page { width: calc(100% - 24px); padding-top: 16px; }
  .site-header { margin-bottom: 28px; }
  .play-disc { width: 56px; height: 56px; font-size: 23px; }
  .preview-caption { bottom: 14px; left: 14px; font-size: 12px; }
  .duration { bottom: 12px; right: 12px; }
  .note { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .player-status.is-loading::before { animation: none; }
}
