/*
 * Share page (/v/<slug>).
 *
 * Almost nobody sees this: a browser with JavaScript leaves within a frame or
 * two. It exists for the visitor whose script never ran, so it has to stand on
 * its own and look deliberate rather than like a page caught mid-load.
 *
 * Self-contained on purpose -- no import of style.css, because that file
 * carries the whole link page (backdrop photo, grid, channel bar) for a page
 * that is one card and a link.
 */

:root {
  color-scheme: light dark;
  --bg: #f4f4f6;
  --card: #ffffff;
  --ink: #16161a;
  --muted: #5d5d68;
  --accent: #b4232b;
  --ring: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a;
    --card: #1e1e26;
    --ink: #f2f2f5;
    --muted: #a3a3ae;
    --accent: #ff6b73;
    --ring: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-block-size: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Rubik, Arial, system-ui, sans-serif;
  line-height: 1.5;
}

.clip {
  inline-size: min(32rem, 100%);
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px var(--ring);
}

.thumb {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.65rem;
  background: var(--bg);
}

h1 {
  font-size: 1.15rem;
  margin: 0.9rem 0 0.35rem;
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.go {
  display: inline-block;
  margin-block-start: 1.1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.go:hover, .go:focus-visible { filter: brightness(1.08); }

.fallback {
  margin-block: 0.7rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* With scripting on, the redirect fires immediately and the "we're taking you
   there" line is honest. With it off nothing is happening, so the line would
   be a lie -- the button above it is the whole route out. */
@media (scripting: none) {
  .fallback { display: none; }
}
