/* Stubs — the design system.
 *
 * Written mobile-first on purpose. SIMKL builds the desktop title page and
 * squeezes it into 375px, which clips the title and every action button off the
 * right edge; the layouts here start narrow and widen at breakpoints.
 *
 * No brand colour. The whole product runs on one zinc grey ramp over pure
 * black (#000, darker than zinc-950), plus white at low alpha for anything
 * floating on artwork. Selection is inversion (solid white on black), never a
 * hue. The one bend in the pure-achromatic rule is restrained red/green for
 * genuine error and success status — a silent error has nowhere else to go.
 *
 * One radius — 8px (rounded-lg) — on every card, panel, button, and poster.
 * Shape encodes state: 16:9 = started (resume cards), 2:3 = not started
 * (posters). Tracking moves opposite to size: micro-labels are small + bold +
 * uppercase + wide; titles are large + black weight + tight + leading .9.
 */

:root {
  color-scheme: light dark;

  /* Zinc ramp (oklch, Tailwind zinc). Dark is the real identity; these defaults
   * match the OS-dark path and are overridden by [data-theme] when set. */
  --zinc-100: oklch(0.967 0.001 286.375);
  --zinc-200: oklch(0.92 0.004 286.32);
  --zinc-300: oklch(0.871 0.006 286.286);
  --zinc-400: oklch(0.705 0.015 286.067);
  --zinc-500: oklch(0.552 0.016 285.938);
  --zinc-600: oklch(0.442 0.017 285.786);
  --zinc-700: oklch(0.37 0.013 285.805);
  --zinc-800: oklch(0.274 0.006 286.033);
  --zinc-900: oklch(0.21 0.006 285.885);
  --zinc-950: oklch(0.141 0.005 285.823);

  --bg: #000;
  --surface: var(--zinc-900);
  --surface-2: var(--zinc-950);
  --border: var(--zinc-800);
  --border-strong: var(--zinc-700);
  --hover-border: var(--zinc-600);
  --text: #fff;
  --text-em: var(--zinc-300);
  --muted: var(--zinc-400);
  --muted-2: var(--zinc-500);
  --separator: var(--zinc-700);

  /* Retargeted: former amber accent tokens are now achromatic so existing
   * component rules keep working without a mass rename. */
  --accent: var(--zinc-100);          /* primary button fill, wordmark mark */
  --accent-ink: var(--zinc-300);      /* links, emphasised secondary */
  --accent-wash: var(--zinc-800);     /* selected / active wash */
  --on-accent: #000;                  /* text on primary fill */
  /* Selection = inversion. Dark: white on black. Light: near-black on white. */
  --selected-bg: #fff;
  --selected-fg: #000;
  --primary-hover: #fff;

  /* Status only — the one place colour is allowed. */
  --ok: oklch(0.72 0.14 150);
  --danger: oklch(0.68 0.16 25);

  --radius: 8px;
  --radius-sm: 8px;
  --poster-radius: 8px;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --tabbar-height: 60px;
  --measure: 68ch;
  --shell-max: 1400px;

  /* Alpha layer — white/black over artwork, not zinc. */
  --on-art-header: rgb(0 0 0 / 0.8);
  --on-art-badge: rgb(255 255 255 / 0.15);
  --on-art-badge-border: rgb(255 255 255 / 0.3);
  --on-art-hairline: rgb(255 255 255 / 0.1);
  --on-art-hairline-soft: rgb(255 255 255 / 0.05);
  --on-art-score: rgb(0 0 0 / 0.75);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-numeric: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: var(--zinc-900);
    --surface-2: var(--zinc-950);
    --border: var(--zinc-800);
    --border-strong: var(--zinc-700);
    --hover-border: var(--zinc-600);
    --text: #fff;
    --text-em: var(--zinc-300);
    --muted: var(--zinc-400);
    --muted-2: var(--zinc-500);
    --separator: var(--zinc-700);
    --accent: var(--zinc-100);
    --accent-ink: var(--zinc-300);
    --accent-wash: var(--zinc-800);
    --on-accent: #000;
    --selected-bg: #fff;
    --selected-fg: #000;
    --primary-hover: #fff;
    --ok: oklch(0.72 0.14 150);
    --danger: oklch(0.68 0.16 25);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --on-art-header: rgb(0 0 0 / 0.8);
    --on-art-badge: rgb(255 255 255 / 0.15);
    --on-art-badge-border: rgb(255 255 255 / 0.3);
    --on-art-hairline: rgb(255 255 255 / 0.1);
    --on-art-hairline-soft: rgb(255 255 255 / 0.05);
    --on-art-score: rgb(0 0 0 / 0.75);
  }
}

/* OS light preference without a saved data-theme: same neutral light ramp as
 * [data-theme="light"]. Dark remains the :root default (no-preference, and the
 * product identity). The theme toggle reads prefers-color-scheme when no
 * data-theme is set, so this media query keeps paint and toggle in sync. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: oklch(0.97 0.003 286);
    --surface: #fff;
    --surface-2: oklch(0.945 0.004 286);
    --border: oklch(0.88 0.006 286);
    --border-strong: oklch(0.78 0.01 286);
    --hover-border: oklch(0.62 0.014 286);
    --text: oklch(0.18 0.01 286);
    --text-em: oklch(0.32 0.012 286);
    --muted: oklch(0.48 0.014 286);
    --muted-2: oklch(0.55 0.012 286);
    --separator: oklch(0.82 0.008 286);
    --accent: oklch(0.22 0.012 286);
    --accent-ink: oklch(0.28 0.012 286);
    --accent-wash: oklch(0.92 0.005 286);
    --on-accent: #fff;
    --selected-bg: oklch(0.18 0.01 286);
    --selected-fg: #fff;
    --primary-hover: oklch(0.18 0.01 286);
    --ok: oklch(0.42 0.12 150);
    --danger: oklch(0.48 0.16 25);
    --shadow: 0 1px 2px rgb(16 23 26 / 0.05), 0 8px 24px -12px rgb(16 23 26 / 0.18);
    --shadow-xl: 0 10px 25px -5px rgb(16 23 26 / 0.12);
    --on-art-header: rgb(255 255 255 / 0.85);
    --on-art-badge: rgb(0 0 0 / 0.12);
    --on-art-badge-border: rgb(0 0 0 / 0.18);
    --on-art-hairline: rgb(0 0 0 / 0.08);
    --on-art-hairline-soft: rgb(0 0 0 / 0.05);
    --on-art-score: rgb(255 255 255 / 0.88);
  }
}

/* The theme toggle stamps data-theme on <html>; it must win over the media
 * query in both directions, so both are spelled out rather than inherited. */
:root[data-theme="light"] {
  /* Both of these are easy to forget and both leak the OS theme through a
   * manual override: color-scheme leaves scrollbars and form chrome dark, and
   * the shadow keeps dark mode's heavy blacks on a light page. */
  color-scheme: light;

  /* Cool light grey ramp — no amber, whisper of blue-violet at hue 286. */
  --bg: oklch(0.97 0.003 286);
  --surface: #fff;
  --surface-2: oklch(0.945 0.004 286);
  --border: oklch(0.88 0.006 286);
  --border-strong: oklch(0.78 0.01 286);
  --hover-border: oklch(0.62 0.014 286);
  --text: oklch(0.18 0.01 286);
  --text-em: oklch(0.32 0.012 286);
  --muted: oklch(0.48 0.014 286);
  --muted-2: oklch(0.55 0.012 286);
  --separator: oklch(0.82 0.008 286);

  --accent: oklch(0.22 0.012 286);     /* near-black primary fill */
  --accent-ink: oklch(0.28 0.012 286); /* links */
  --accent-wash: oklch(0.92 0.005 286);
  --on-accent: #fff;
  --selected-bg: oklch(0.18 0.01 286);
  --selected-fg: #fff;
  --primary-hover: oklch(0.18 0.01 286);

  --ok: oklch(0.42 0.12 150);
  --danger: oklch(0.48 0.16 25);

  --shadow: 0 1px 2px rgb(16 23 26 / 0.05), 0 8px 24px -12px rgb(16 23 26 / 0.18);
  --shadow-xl: 0 10px 25px -5px rgb(16 23 26 / 0.12);

  /* On light, floating chrome is frosted white; badges still use dark alpha. */
  --on-art-header: rgb(255 255 255 / 0.85);
  --on-art-badge: rgb(0 0 0 / 0.12);
  --on-art-badge-border: rgb(0 0 0 / 0.18);
  --on-art-hairline: rgb(0 0 0 / 0.08);
  --on-art-hairline-soft: rgb(0 0 0 / 0.05);
  --on-art-score: rgb(255 255 255 / 0.88);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --surface: var(--zinc-900);
  --surface-2: var(--zinc-950);
  --border: var(--zinc-800);
  --border-strong: var(--zinc-700);
  --hover-border: var(--zinc-600);
  --text: #fff;
  --text-em: var(--zinc-300);
  --muted: var(--zinc-400);
  --muted-2: var(--zinc-500);
  --separator: var(--zinc-700);
  --accent: var(--zinc-100);
  --accent-ink: var(--zinc-300);
  --accent-wash: var(--zinc-800);
  --on-accent: #000;
  --selected-bg: #fff;
  --selected-fg: #000;
  --primary-hover: #fff;
  --ok: oklch(0.72 0.14 150);
  --danger: oklch(0.68 0.16 25);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --on-art-header: rgb(0 0 0 / 0.8);
  --on-art-badge: rgb(255 255 255 / 0.15);
  --on-art-badge-border: rgb(255 255 255 / 0.3);
  --on-art-hairline: rgb(255 255 255 / 0.1);
  --on-art-hairline-soft: rgb(255 255 255 / 0.05);
  --on-art-score: rgb(0 0 0 / 0.75);
}

* { box-sizing: border-box; }

/* The UA's own [hidden] rule loses to any author `display`, so a .btn that the
 * server marked hidden renders anyway. Author origin, so it wins; !important so
 * it beats the component rules it exists to overrule. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Parked off-screen until tabbed to, which is the whole point of it. */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 50; }
.skip-link:focus { top: 0.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
a:hover { color: var(--text); text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.375rem; font-weight: 700; } /* ~22px row headings */
h3 { font-size: 1rem; font-weight: 700; }

img { max-width: 100%; display: block; }

/* Keyboard focus must stay clearly visible — the hover border step is too
 * quiet to double as a focus cue. White (dark) / near-black (light) outline. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Numbers that sit next to each other must line up. SIMKL's stat cards use
 * proportional figures and the columns come out ragged. */
.tabular { font-variant-numeric: tabular-nums; }

/* ── shell ─────────────────────────────────────────────────────────────── */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  /* The tab bar's own height already adds the safe-area inset, so anything
   * clearing it has to add the same inset or it comes up short on a notched
   * phone — which is every iPhone the household actually owns. */
  padding: 1.75rem 1rem calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 2rem);
}

@media (min-width: 768px) {
  .shell { padding: 1.75rem 1.5rem 3rem; }
}

@media (min-width: 1024px) {
  .shell { padding: 1.75rem 2rem 3rem; }
}

/* ── top bar ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top);
  /* Solid first: where color-mix/backdrop is unsupported the second declaration
   * is dropped and a bare translucent nav would let content scroll through it. */
  background: var(--bg);
  background: var(--on-art-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--on-art-hairline);
}

@media (min-width: 768px) {
  .topbar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .topbar {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.topbar__brand {
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  letter-spacing: -0.025em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.topbar__brand::before {
  content: "";
  width: 0.55rem;
  height: 1.15rem;
  border-radius: 2px;
  background: var(--accent);
  /* the torn edge of a ticket stub — monochrome mark, not a colour cue */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 85%, 45% 78%, 0 70%,
                     0 55%, 45% 48%, 0 40%, 0 25%, 45% 18%, 0 10%);
}

.topbar__links { display: none; }

@media (min-width: 768px) {
  .topbar__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
  }

  .topbar__links a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .topbar__links a:hover { color: var(--text); background: transparent; }
  /* Active = filled pill at 80% zinc-800 — inversion, never underline or hue. */
  .topbar__links a[aria-current="page"] {
    color: var(--text);
    background: color-mix(in oklab, var(--accent-wash) 80%, transparent);
  }
}

.topbar__spacer { flex: 1; }

@media (min-width: 768px) {
  /* Centre nav already flex:1; spacer only needed when links are hidden. */
  .topbar__spacer { display: none; }
}

/* Hidden on phones: it squeezes to about eight characters, and the tab bar
 * already has a Search destination one thumb away. */
.topbar__search { display: none; }

@media (min-width: 768px) {
  .topbar__search {
    width: 190px;
    flex: none;
    display: flex;
  }
}

.topbar__search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted-2);
}

.topbar__search input::placeholder { color: var(--muted-2); }

.avatar {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--text-em);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  border: 1px solid var(--border);
}

/* ── bottom tab bar (mobile) ───────────────────────────────────────────── */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  background: var(--on-art-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--on-art-hairline);
}

.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 44px;            /* thumb-sized, not pixel-perfect */
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-top: 2px solid transparent;
  transition: color 0.15s ease;
}

.tabbar a[aria-current="page"] {
  color: var(--text);
  border-top-color: transparent;
}

.tabbar svg { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .tabbar { display: none; }
  :root { --tabbar-height: 0px; }
}

/* ── buttons and inputs ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-em);
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--hover-border);
  color: var(--text);
  background: transparent;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-accent);
}

/* Pressed / selected = inversion. */
.btn--on {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--selected-fg);
  font-weight: 600;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-em);
}
.btn--ghost:hover {
  border-color: var(--hover-border);
  color: var(--text);
  background: transparent;
}
.btn--small {
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.btn--block { width: 100%; }

.btn--danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}

/* Matching on the type *attribute* misses `<input name="username">` entirely —
 * a missing attribute is not the same as the "text" default, and six fields
 * across login, join, and 2FA had no attribute to match. Excluding the types
 * that must not be full-width is the version that cannot silently miss one. */
input:not([type="checkbox"], [type="radio"], [type="file"], [type="submit"],
          [type="button"], [type="image"], [type="range"], [type="color"]),
textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease;
}

input:hover:not(:disabled),
textarea:hover:not(:disabled),
select:hover:not(:disabled) {
  border-color: var(--hover-border);
}

input::placeholder { color: var(--muted-2); }

label {
  display: block;
  font-weight: 700;
  font-size: 0.625rem; /* 10px floor — never 8px */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.35rem;
}
.field { margin-bottom: 1rem; }
.field__hint {
  /* Block, or the margin below the input is silently dropped: margin-top
   * does nothing on an inline box. */
  display: block;
  color: var(--muted-2);
  font-size: 0.8125rem;
  margin-top: 0.3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* Inside a label it is part of the sentence, not a line of its own. */
label .field__hint { display: inline; margin-top: 0; }

/* ── cards, sections, shelves ──────────────────────────────────────────── */

.card {
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: none;
}

.section { margin: 1.75rem 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section__head h2 { margin: 0; }

.section__more {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.section__more:hover { color: var(--text); }

/* Native scroll-snap rather than a JS carousel — no library, keyboard and
 * touch both work for free. */
/* These are lists in the markup so a screen reader can say how many
 * items are in them; none of them want bullets or the default indent. */
.rows,
.shelf,
.grid,
.scores,
.episodes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42vw;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  margin-inline: -1rem;
  padding-inline: 1rem;
  /* Snapping ignores the padding without this, so the shelf can settle with the
   * first card hard against the screen edge instead of lined up with the
   * heading above it. */
  scroll-padding-inline: 1rem;
}

.shelf > * { scroll-snap-align: start; }

@media (min-width: 560px) { .shelf { grid-auto-columns: 30vw; } }
@media (min-width: 768px) {
  .shelf { grid-auto-columns: 172px; margin-inline: 0; padding-inline: 0; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.875rem; }
}

/* ── poster card ───────────────────────────────────────────────────────── */

.poster {
  display: block;
  text-decoration: none;
  color: inherit;
}

.poster__frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--poster-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.poster:hover .poster__frame { border-color: var(--hover-border); }

.poster__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}
.poster:hover .poster__frame img { opacity: 1; }

.poster__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.poster__name {
  margin-top: 0.5rem;
  font-size: 0.84375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster:hover .poster__name { color: var(--text); }

.poster__meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.poster__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--on-art-score);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 4px;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Still frames are 16:9, used for "what's next" where the episode matters
 * more than the show's poster. */
.poster__frame--still { aspect-ratio: 16 / 9; }

/* ── resume card ───────────────────────────────────────────────────────── */

/* A 16:9 still with the show name burned into the frame, so the line below it
 * is free to be the episode. Everything overlaid sits on a wash rather than on
 * the image: a still can be white sky or black night and text has to survive
 * both. Two quiet hover moves fire together: border 800→600 and art 90→100. */

.resume {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resume__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--poster-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.resume:hover .resume__frame { border-color: var(--hover-border); }

.resume__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.resume:hover .resume__frame img { opacity: 1; }

.resume__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Three-stop scrim: from-black/80 via-black/20 to-transparent. */
.resume__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.8) 0%,
    rgb(0 0 0 / 0.2) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.resume__show {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.625rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
  margin-bottom: 0; /* progress line sits below in some layouts; keep title clean */
}

/* When a progress bar is present, lift the title above it. */
.resume__frame:has(.progress) .resume__show {
  bottom: 1rem;
}

.resume__tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: var(--on-art-badge);
  border: 1px solid var(--on-art-badge-border);
  color: #fff;
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5);
}

/* "Next" is a claim rather than a coordinate — inversion, not a colour. */
.resume__tag--next {
  left: auto;
  right: 0.5rem;
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--selected-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume__runtime {
  position: absolute;
  right: 0.75rem;
  bottom: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
  flex-shrink: 0;
}

/* The episode title, under the frame. Two lines then clip — episode names run
 * long and a ragged shelf is worse than a truncated one. Metadata lives
 * outside the frame in zinc so the image stays clean. */
.resume__name {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resume:hover .resume__name { color: var(--text); }

.resume__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.resume__pct { color: var(--text-em); font-weight: 600; }

/* A 16:9 card needs more width than a 2:3 poster to stay legible. */
.shelf--wide { grid-auto-columns: 66vw; }
@media (min-width: 560px) { .shelf--wide { grid-auto-columns: 46vw; } }
@media (min-width: 768px) { .shelf--wide { grid-auto-columns: 236px; } }

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgb(255 255 255 / 0.25);
  border-radius: 0;
}

.progress__fill {
  height: 100%;
  background: #fff;
  border-radius: 0;
}

/* Static progress bar used on the title page (not over artwork). Inline
 * style="position: static" is set in title.html; match it here so the zinc
 * fill still applies over that attribute. */
.progress[style*="position: static"] {
  position: static;
  height: 6px;
  border-radius: 1px;
  background: var(--border);
  overflow: hidden;
}

.progress[style*="position: static"] .progress__fill {
  background: var(--text);
  border-radius: 1px;
}

/* ── list rows ─────────────────────────────────────────────────────────── */

.rows { display: flex; flex-direction: column; }

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.row:hover { background: var(--surface-2); }

.row__thumb {
  width: 46px;
  flex: none;
  aspect-ratio: 2 / 3;
  border-radius: var(--poster-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.row:hover .row__thumb { border-color: var(--hover-border); }

.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__body { min-width: 0; flex: 1; }
.row__name { font-weight: 600; }
.row__meta { font-size: 0.82rem; color: var(--muted-2); }

.row__meta--truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── title page ────────────────────────────────────────────────────────── */

.hero { margin-bottom: 1.25rem; }

/* The hero is a single art frame with the title burned into it. On phones it
 * bleeds edge-to-edge; from 700px it becomes a rounded 280px card, matching the
 * design specimen. */
.hero__frame {
  position: relative;
  margin-inline: -1rem;
  height: 220px;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--on-art-hairline-soft);
  border-left: 0;
  border-right: 0;
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two crossed gradients — the sharpest trick on the site. Vertical wash over
 * the bottom two-thirds plus horizontal wash over the left two-thirds so the
 * white copy is legible over any artwork while the top-right stays visible. */
.hero__frame::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 66%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--zinc-950),
    color-mix(in oklab, var(--zinc-950) 40%, transparent) 55%,
    transparent
  );
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 66%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    color-mix(in oklab, var(--zinc-950) 80%, transparent),
    color-mix(in oklab, var(--zinc-950) 20%, transparent) 55%,
    transparent
  );
}

:root[data-theme="light"] .hero__frame::before {
  background: linear-gradient(
    to top,
    oklch(0.22 0.01 286),
    color-mix(in oklab, oklch(0.22 0.01 286) 40%, transparent) 55%,
    transparent
  );
}

:root[data-theme="light"] .hero__frame::after {
  background: linear-gradient(
    to right,
    color-mix(in oklab, oklch(0.22 0.01 286) 80%, transparent),
    color-mix(in oklab, oklch(0.22 0.01 286) 20%, transparent) 55%,
    transparent
  );
}

/* Copy sits over the wash, anchored bottom-left where the gradients pool. */
.hero__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__copy h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  overflow-wrap: anywhere;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.35));
  margin: 0;
}

/* Meta rides on the artwork, so it is white at low alpha, not a zinc token. */
.hero__meta {
  color: rgb(255 255 255 / 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.25rem;
  margin-bottom: 0.625rem;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero__actions .btn--primary { grid-column: 1 / -1; }
.hero__actions .btn:last-child:nth-child(2) { grid-column: 1 / -1; }

@media (min-width: 700px) {
  .hero__frame {
    margin-inline: 0;
    border-radius: var(--radius);
    border: 1px solid var(--on-art-hairline-soft);
    /* Fixed height rather than an aspect ratio so the hero never dominates a
     * laptop viewport — matches the design specimen at 280px. */
    height: 280px;
    box-shadow: var(--shadow-xl);
  }
  .hero__copy { padding: 1.75rem; }
  .hero__copy h1 {
    font-size: clamp(2rem, 4vw, 3.25rem); /* 32–52px */
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero__actions .btn--primary,
  .hero__actions .btn:last-child:nth-child(2) {
    grid-column: auto;
    flex: 0 0 auto;
  }
}

.overview {
  max-width: var(--measure);
  color: var(--text-em);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Displayed score and "rate it yourself" are deliberately different controls.
 * SIMKL runs them together and it is never obvious which number is yours. */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin: 1rem 0;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding: 0.875rem;
  min-width: 5.5rem;
}

.stat__value {
  font-size: 1.75rem; /* ~28px */
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat__label {
  font-size: 0.625rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 0.35rem;
}
/* "Yours" is selected state — inversion border, not a hue. */
.stat--mine {
  border-color: var(--text);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}

/* The comparison row. The meter is drawn from the /100 normalisation while the
 * printed figure stays on each source's own scale — a column of percentages
 * would be uniform and unreadable, because nobody thinks of IMDb in percent.
 * Five hand-built 4×8px segments, zinc-400 filled on zinc-800 empty, matching
 * the specimen exactly. */
.scores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 560px) {
  .scores { grid-template-columns: 1fr 1fr; }
}

.score {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 0.75rem;
  row-gap: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}

.score__label {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-em);
  text-transform: uppercase;
}

.score__votes {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.625rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  align-self: center;
}

.score__value {
  grid-column: 1;
  grid-row: 2;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  justify-self: start;
  align-self: end;
}

.score__meter {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  align-self: end;
  justify-self: end;
}

.score__meter i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 1px;
  background: var(--border); /* zinc-800 — empty segment */
}

.score__meter i.on {
  background: var(--muted); /* zinc-400 — filled segment */
}

.section__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: right;
}

/* Narrow screens drop the vote counts — the score is the point. */
@media (max-width: 560px) {
  .score__votes { display: none; }
}

.rating-picker { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.rating-picker button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.rating-picker button:hover {
  border-color: var(--hover-border);
  color: var(--text);
}

/* Touch only. A finger needs 44px; a mouse does not, and forcing it there
 * makes every small control look like a mistake. The rating row is the case
 * that earns it — ten targets in a line is where a mis-tap costs you a wrong
 * score you then have to notice and undo. It wraps to two rows on a phone,
 * which is the better shape for a thumb anyway. */
@media (pointer: coarse) {
  .rating-picker button { width: 2.75rem; height: 2.75rem; }
  .btn--small { min-height: 44px; }
  .avatar { width: 2.75rem; height: 2.75rem; }
}

/* Selection = inversion. */
.rating-picker button[aria-pressed="true"] {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--selected-fg);
  font-weight: 600;
}

/* ── "where am I" widget ───────────────────────────────────────────────── */

.upnext {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (min-width: 620px) { .upnext { grid-template-columns: 1fr 1fr; } }

.upnext__box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  padding: 0.875rem 1rem;
}

/* Next is the active slot — border step up, not a hue wash. */
.upnext__box--next {
  border-color: var(--hover-border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.upnext__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 700;
}

.upnext__title { font-weight: 600; margin-top: 0.2rem; color: var(--text); }
.upnext__meta { font-size: 0.83rem; color: var(--muted); }

/* ── seasons and episodes ──────────────────────────────────────────────── */

.season-tabs,
.filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-inline: -1rem;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .season-tabs,
  .filter-row { margin-inline: 0; padding-inline: 0; }
}

.filter-row > * { flex: none; }

.season-tabs a {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.season-tabs a:hover {
  border-color: var(--hover-border);
  color: var(--text);
}

.season-tabs a[aria-current="true"] {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--selected-fg);
  font-weight: 700;
}

.episode {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.episode__tick {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.episode__tick:hover {
  border-color: var(--hover-border);
  color: var(--text);
}

/* Backfilling a season is dozens of consecutive taps, so the hit area gets the
 * full 44px even though the circle stays 35px — growing the circle instead
 * would wreck the episode row's rhythm. */
.episode__tick::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
}

/* Watched is a genuine status — green is allowed here. */
.episode__tick[aria-pressed="true"] {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.episode__body { min-width: 0; flex: 1; }
.episode__name { font-weight: 600; font-size: 0.93rem; }
.episode__meta { font-size: 0.78rem; color: var(--muted-2); }
.episode--unaired { opacity: 0.55; }

.bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0;
}

.bulk__label { font-size: 0.8125rem; color: var(--muted-2); margin-right: 0.15rem; }

/* ── activity feed ─────────────────────────────────────────────────────── */

.activity { display: flex; flex-direction: column; }

.activity__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.activity__who {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-em);
}

.activity__text { font-size: 0.9rem; min-width: 0; }
.activity__when { font-size: 0.78rem; color: var(--muted-2); }

/* ── misc ──────────────────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty h3 { color: var(--text); }

.notice {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.notice--error {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}
.notice--ok {
  border-color: var(--ok);
  color: var(--ok);
  background: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.625rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.center-page { max-width: 26rem; margin: 3rem auto; }

/* The QR is the one thing on the page whose contrast is not negotiable by
 * theme — a scanner needs black on white whatever the reader prefers. */
#totp-qr svg {
  width: min(220px, 100%);
  height: auto;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
}

/* A join URL and a base32 secret have no break opportunity a browser will
 * take on its own, and either one is wider than a 320px card. */
#invite-result, #totp-secret, #oauth-client-result { overflow-wrap: anywhere; white-space: pre-wrap; }

/* Settings list rows (passkeys, connected apps, OAuth clients). */
.list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.list li.muted { display: block; border-bottom: none; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.small { font-size: 0.85rem; }
.wide { max-width: 40rem; }
.card.wide { max-width: 40rem; }
.codes { font-family: var(--font-numeric); }
.secret { font-family: var(--font-numeric); }
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  margin: 1rem 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.wordmark {
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--accent);
}
#totp-secret {
  display: inline-block;
  font-family: var(--font-numeric);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 1rem);
  /* The toast is the only feedback the write actions have. Unbounded, a server
   * error string grows past both edges of a phone and gets clipped at exactly
   * the moment it matters most. */
  max-width: calc(100vw - 2rem);
  width: max-content;
  text-align: center;
  z-index: 40;
  background: var(--selected-bg);
  color: var(--selected-fg);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.toast--shown { opacity: 1; }

/* Error toast keeps the danger channel so a failure is not silent. */
#toast-error.toast {
  background: var(--danger);
  color: #fff;
}

/* Skeleton waiting state — holds exact ratio, quiet sweep. */
@keyframes stubs-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.poster__frame:empty,
.resume__frame:empty,
.skel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skel::after,
.poster__frame:empty::after,
.resume__frame:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.04),
    transparent
  );
  animation: stubs-sweep 1.8s linear infinite;
}

:root[data-theme="light"] .skel::after,
:root[data-theme="light"] .poster__frame:empty::after,
:root[data-theme="light"] .resume__frame:empty::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(0 0 0 / 0.04),
    transparent
  );
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
