@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #141210;
  --muted: #5f5a53;
  --line: rgba(20, 18, 16, 0.09);
  --accent: #ff6a3d;
  --on-accent: #1a0905;

  --accent-rgb: 255, 106, 61;
  --accent-text: #b93d10;
  --accent-big: #ec5424;
  --accent-soft: #fff0e9;
  --faint: #6f6a62;
  --line-2: rgba(20, 18, 16, 0.15);
  --fill: rgba(20, 18, 16, 0.05);
  --fill-2: rgba(20, 18, 16, 0.09);
  --text: var(--ink);
  /* Strong buttons and selected pills. */
  --solid: #141210;
  --on-solid: #ffffff;
  /* Dark surfaces: video frames and dark panels. */
  --night: #141210;
  --card-media: #ebe6de;
  /* Hover of the strong buttons, and soft panels. */
  --solid-hover: #2c2824;
  --solid-off: rgba(20, 18, 16, 0.22);
  --panel: #efebe4;
  --panel-2: #ded8ce;
  --panel-3: #d2cbbf;
  --peach: #ffe3d6;
  --peach-2: #ffc0a3;
  --accent-soft-2: #ffe4d8;
  --track: #d6d0c7;

  --r-card: 14px;
  --r-media: 10px;
  --max: 1200px;
  --pad: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--accent-text); outline-offset: 3px; border-radius: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { flex: 1 0 auto; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
/* The feed is a wall of clips: it uses the width of big screens. */
body.app { --max: 1760px; }

/* One slim bar that stays on top: the wordmark, the sections, the search in the middle, the account on the right. */
.topbar {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px max(var(--pad), calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-weight: 650; font-size: 16.5px; letter-spacing: -0.025em; text-decoration: none;
}
.wordmark .mark { width: 21px; height: 21px; color: var(--accent); }
/* The site menu: the gap pushes the account links to the right. */
.topbar-gap { flex: 1 1 auto; }
.topbar:has(.topbar-gap) .wordmark span { display: inline; }
.topbar:has(.topbar-gap) .acct-nav .nav-link { display: inline-flex; }
/* The visitors' menu (_site_nav.html): dropdowns on a wide screen, one panel behind the menu button below 1000px. */
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.site-nav summary, .nav-top {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; list-style: none;
  color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.site-nav summary::-webkit-details-marker, .nav-burger > summary::-webkit-details-marker { display: none; }
.site-nav summary:hover, .nav-top:hover, .nav-drop[open] > summary { background: var(--fill); }
.site-nav summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s var(--ease); }
.nav-drop[open] > summary svg { transform: rotate(180deg); }
.nav-drop { position: relative; }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: 270px; display: grid; gap: 2px; padding: 8px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(20, 18, 16, 0.06), 0 30px 60px -24px rgba(20, 18, 16, 0.35); animation: acct-pop 0.2s var(--ease);
}
.nav-panel.wide { width: 580px; grid-template-columns: 1fr 1fr; }
.nav-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: background 0.15s var(--ease);
}
.nav-item:hover { background: var(--fill); }
.nav-item > span:last-child { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.nav-item b { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.nav-item b + span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.nav-ico {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text);
}
.nav-ico svg { width: 18px; height: 18px; }
.nav-badge {
  margin-left: 7px; padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.acct-nav .nav-login svg { width: 15px; height: 15px; }
.topbar:has(.topbar-gap) .acct-nav .nav-login {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 1px 2px rgba(20, 18, 16, 0.24), 0 8px 20px -10px rgba(20, 18, 16, 0.5);
}
.nav-burger { display: none; order: 1; }
.nav-burger > summary {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; list-style: none; color: var(--ink); cursor: pointer;
}
.nav-burger > summary:hover, .nav-burger[open] > summary { background: var(--fill); }
.nav-burger > summary svg { width: 22px; height: 22px; }
/* The menu button is not positioned, so the panel hangs from the sticky bar: right under it, full width. */
.nav-sheet {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: calc(100dvh - 64px); overflow-y: auto;
  display: grid; gap: 2px; padding: 4px var(--pad) 24px; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(20, 18, 16, 0.35);
}
.nav-head { margin: 14px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 1000px) {
  .site-nav, .topbar:has(.topbar-gap) .acct-nav .nav-signin { display: none; }
  .nav-burger { display: block; }
}

.search {
  position: relative; flex: 1 1 auto; max-width: 440px; margin: 0 auto; min-width: 0;
  display: flex; align-items: center;
}
.search svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 16px 0 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--fill); font-size: 14.5px; color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search input::placeholder { color: var(--faint); opacity: 1; }
.search input:hover { background: var(--fill-2); }
.search input:focus { outline: none; background: var(--surface); border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.search input::-webkit-search-cancel-button { display: none; }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s var(--ease) infinite;
}
.pulse.idle, .pulse.idle::after { background: var(--faint); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }

.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(22px, 2.6vw, 30px); text-align: center; }

/* Big call-to-action button and its note, shared by the landing and the guide. */
.land-btn {
  display: inline-flex; align-items: center; height: 54px; margin-top: 28px; padding: 0 26px; border-radius: 14px;
  background: var(--solid); color: var(--on-solid); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.land-btn:hover { background: var(--solid-hover); }
.land-btn:active { transform: scale(0.98); }
.land-btn:focus-visible { border-radius: 14px; }
.land-note { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.eyebrow {
  margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0 auto; font-size: clamp(36px, 4.3vw, 64px); line-height: 1; font-weight: 650;
  letter-spacing: -0.05em; text-wrap: balance;
}
h1 span { color: var(--accent-big); }

/* Sticky filter bar: category chips with scroll arrows, time window, and Filters/Sort menu. */
.filterbar {
  position: sticky; top: 64px; z-index: 11;
  display: flex; align-items: center; gap: 12px;
  margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.cats-wrap {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px;
}
.cats-arrow {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: background 0.15s var(--ease), opacity 0.15s var(--ease);
}
.cats-arrow:hover { background: var(--fill-2); }
.cats-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.cats-arrow svg { width: 15px; height: 15px; }
.filter-end { display: flex; align-items: center; gap: 8px; flex: none; }
.fcount {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 650 11px/1 var(--mono);
}
.menu-filters .menu-panel { left: auto; right: 0; width: min(520px, calc(100vw - 24px)); }
.menu-filters .menu-title:not(:first-child) { margin-top: 18px; }
.menu-filters .auto-note { margin: 0 6px; text-align: left; }
.sort-seg { flex-wrap: wrap; }
.active-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 -8px;
}
.active-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px;
  border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent-text); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background 0.15s var(--ease);
}
.active-chip:hover { background: var(--accent-soft-2); }
.active-chip svg { width: 13px; height: 13px; opacity: 0.8; }
.active-reset {
  margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 4px 8px; border-radius: 8px; transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.active-reset:hover { color: var(--ink); background: var(--fill); }
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.fpill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 12px;
  border-radius: 10px; background: var(--fill); cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.fpill:hover, .menu[open] > .fpill { background: var(--fill-2); }
.fpill svg { width: 16px; height: 16px; color: var(--muted); }
.fpill img { width: 15px; height: 20px; border-radius: 4px; object-fit: cover; margin-left: -2px; }
.fpill-label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.fpill .chev { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.menu[open] .chev { transform: rotate(180deg); }
.fpill:focus-visible { outline-offset: 2px; border-radius: 10px; }

.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: min(700px, calc(100vw - 24px)); max-height: min(62vh, 540px); overflow: auto; overscroll-behavior: contain;
  padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(20, 18, 16, 0.06), 0 30px 60px -24px rgba(20, 18, 16, 0.35);
  animation: pop 0.22s var(--ease);
}
.menu-lang .menu-panel { width: min(560px, calc(100vw - 24px)); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.menu-title { margin: 2px 6px 12px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cats {
  flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; padding: 2px; margin: -2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--fill); color: var(--muted); font-size: 14px; font-weight: 550; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cat:has(img) { padding-left: 6px; }
.cat:hover { background: var(--fill-2); color: var(--ink); }
.cat img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--fill-2); flex: none; }
.cat-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.cat-count {
  font: 600 11.5px/1 var(--mono); color: var(--faint);
  padding-left: 2px;
}
.cat.active .cat-count { color: inherit; opacity: 0.72; }
.lng b { font: 500 12px/1 var(--mono); color: var(--faint); margin-left: auto; padding-left: 6px; }
.cat.active { background: var(--solid); color: var(--on-solid); }
.lng.active { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.lng.active b { color: var(--accent-text); }

.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
.lng {
  display: flex; align-items: center; gap: 7px; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px;
  font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background 0.15s var(--ease);
}
.lng:hover { background: var(--fill); }
.lng small { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--faint); }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); }
.seg a {
  display: block; height: 32px; line-height: 32px; padding: 0 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg a:hover { color: var(--ink); }
.seg a.on, .seg a[aria-current="page"] { background: var(--solid); color: var(--on-solid); }
.seg a:focus-visible { outline-offset: 1px; border-radius: 8px; }

h2 { margin: 0; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.1; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.sub { margin: 0; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 0;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--solid); color: var(--on-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 2px rgba(20, 18, 16, 0.2), 0 8px 20px -12px rgba(20, 18, 16, 0.5);
}
.btn.primary:hover { background: var(--solid-hover); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: #ff7b52; }
.btn.quiet { background: var(--fill); color: var(--ink); }
.btn.quiet:hover { background: var(--fill-2); }
.btn.big { height: 52px; width: 100%; border-radius: 14px; font-size: 15.5px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 12px; }

/* Sections: a bold title in the accent with one line under it, then a board of clips. */
.shelves { display: grid; gap: clamp(36px, 4vw, 56px); padding-top: clamp(20px, 2.4vw, 28px); }
.shelf { min-width: 0; scroll-margin-top: 132px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; }
.shelf-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.shelf-name img { width: 30px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.shelf-title {
  display: flex; align-items: center; gap: 12px; margin: 0; color: var(--accent-big);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; text-transform: uppercase;
}
.shelf-title .pulse { width: 10px; height: 10px; }
.shelf-sub { margin: 7px 0 0; color: var(--muted); font-size: 14.5px; }
.shelf-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.shelf-nav .btn { height: 40px; }
.quick-filter {
  position: relative; display: inline-flex; align-items: center; height: 40px; min-width: 0; width: 220px;
  border-radius: 11px; background: var(--fill); border: 1px solid var(--line);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.quick-filter:hover { background: var(--fill-2); }
.quick-filter:focus-within { background: var(--surface); border-color: rgba(var(--accent-rgb), 0.6); }
.quick-filter svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.quick-filter input {
  width: 100%; height: 100%; border: 0; background: transparent; padding: 0 12px 0 33px;
  font-size: 13.5px; color: var(--ink); outline: none;
}
.quick-filter input::placeholder { color: var(--faint); opacity: 1; }

.grid {
  display: grid; gap: 30px 16px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

/* Rising now: the five fastest clips, big, as the 9:16 videos they become, the hook on top like a caption. */
.rising { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rising > .card .body { display: none; }
.rising > .card .frame { aspect-ratio: 9 / 15; }
.rising .hook {
  top: 15%; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.1; font-weight: 800; -webkit-line-clamp: 4;
}
.rising .hook span {
  padding: 0; background: none; color: #fff;
  text-shadow: 0 2px 0 #000, 0 0 3px #000, 0 0 18px rgba(0, 0, 0, 0.55); -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
}
.rising .frame-foot { flex-wrap: wrap; row-gap: 9px; left: 14px; right: 14px; bottom: 14px; font-size: 13px; }
.frame-foot > .fwho { display: none; }
.rising .frame-foot > .fwho {
  display: inline-block; order: 10; flex: 1 0 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9); font: 600 13px/1.2 var(--sans); text-decoration: none;
}
.rising .frame-foot > .fwho:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.rising .card:hover .frame { box-shadow: 0 0 0 2px var(--accent); }

/* The boards: a true left-to-right grid of clips in 16:10 frames with readable titles, streamer links and badges. */
.board {
  display: grid; gap: 22px 16px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
}
.board > .card .hook { display: none; }
.board > .card .frame { aspect-ratio: 16 / 10; border-radius: 12px; }
.board > .card .frame::after { height: 50%; }
.board > .card .media.playing { top: 0; bottom: 0; height: 100%; aspect-ratio: auto; transform: none; box-shadow: none; }
@media (max-width: 760px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 440px) {
  .board { grid-template-columns: 1fr; gap: 18px; }
}

/* A clip card is the clip as the 9:16 video it becomes: the picture fills the card, the hook sits on top. */
.card { position: relative; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate; border-radius: var(--r-card);
  background: var(--night); color: #fff; cursor: pointer; transition: transform 0.3s var(--ease);
}
.frame::after {
  content: ""; position: absolute; inset: auto 0 0; height: 36%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}
.media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.media.playing {
  left: 0; right: 0; top: 50%; bottom: auto; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%);
  z-index: 3; box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.55);
}
.media img, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media .noimg { height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.5); }
.media .noimg svg { width: 32px; height: 32px; }
.play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.play span {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: #141210; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: scale(0.9); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.play svg { width: 18px; height: 18px; margin-left: 2px; }
.media:hover .play span, .play:focus-visible span { opacity: 1; transform: none; }
.play:focus-visible { outline-offset: -4px; outline-color: #fff; }
.play-close {
  position: absolute; top: 8px; right: 8px; z-index: 5; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(20, 18, 16, 0.82); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.play-close:hover { background: var(--accent); color: var(--on-accent); }
.play-close svg { width: 15px; height: 15px; }
.card:has(.media.playing) .frame-foot,
.card:has(.media.playing) .hook,
.card:has(.media.playing) .ribbon { opacity: 0; pointer-events: none; }
.card:has(.media.playing) .make { opacity: 0; pointer-events: none; }
.hook {
  position: absolute; left: 8%; right: 8%; top: 11%; z-index: 2; margin: 0; text-align: center;
  font-size: 13.5px; line-height: 1.6; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hook span {
  padding: 2px 7px; border-radius: 6px; background: #141210; color: #fff;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ribbon {
  position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-grid; place-items: center;
  min-width: 30px; height: 24px; padding: 0 7px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font: 700 12.5px/1 var(--mono);
}
.frame-foot {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; margin: 0;
  display: flex; align-items: center; gap: 10px; color: #fff; font: 600 12.5px/1 var(--sans);
  transition: opacity 0.2s var(--ease);
}
.frame-foot > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.frame-foot svg { width: 14px; height: 14px; }
.frame-foot .fplat svg { width: 13px; height: 13px; }
.frame-foot .moment svg, .frame-foot .fast svg { color: var(--accent); }
.frame-foot .dur { margin-left: auto; font: 500 12px/1 var(--mono); }
.make {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px;
  border: 0; border-radius: 11px; background: var(--accent); color: var(--on-accent);
  font: 650 14px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.make svg { width: 16px; height: 16px; }
.make span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card:hover .make, .card:focus-within .make, .card.rendering .make { opacity: 1; transform: none; }
.card:hover .frame-foot, .card:focus-within .frame-foot, .card.rendering .frame-foot { opacity: 0; }
@media (hover: hover) { .card:hover .frame { transform: translateY(-4px); } }

.body { position: relative; display: grid; gap: 3px; padding: 0 32px 0 2px; min-width: 0; }
.card-title {
  margin: 0 0 2px; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.who { margin: 0; display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; font-size: 13.5px; }
.who .streamer { font-weight: 600; color: var(--muted); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-decoration: none; }
.who a.streamer:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.who .lang-code { flex: none; font: 500 11px/1 var(--mono); color: var(--faint); }
.stats { margin: 0; display: flex; gap: 6px; min-width: 0; white-space: nowrap; color: var(--faint); font-size: 12.5px; }
.stats .catlink { overflow: hidden; text-overflow: ellipsis; min-width: 0; text-decoration: none; }
.stats a.catlink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stats .sep { color: var(--faint); }
.stats > span:last-child { flex: none; }
.plat-link {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; transition: background 0.2s var(--ease);
}
.plat-link:hover { background: var(--fill); }
.plat-link svg { width: 15px; height: 15px; }

.auto-note { margin: 30px 0 0; text-align: center; color: var(--faint); font-size: 13px; }
.auto-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

.tags-row { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; min-width: 0; }
.tags-title { margin: 0; flex: none; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 560;
  text-decoration: none; color: inherit; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
a.tag:hover { border-color: var(--line-2); background: var(--fill); }
.tag b { font: 500 11px/1 var(--mono); color: var(--faint); }
.tag.live { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.35); color: var(--accent-text); }
a.tag.live:hover { background: var(--accent-soft-2); }
.tag.live b { color: var(--accent-text); }

.tgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); }
.tcard {
  display: flex; flex-direction: column; min-width: 0; padding: 6px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tthumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-media); overflow: hidden; background: var(--card-media); }
.tthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tthumb .noimg {
  height: 100%; display: grid; place-items: center; color: var(--faint);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.14), transparent) 50% 40% / 120% 90% no-repeat, var(--card-media);
}
.tthumb .noimg svg { width: 36px; height: 36px; }
.plat {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 650;
  background: rgba(255, 255, 255, 0.94); color: #141210; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
}
.plat svg { width: 12px; height: 12px; }
.plat.youtube svg { color: #ff0033; }
.tcap {
  margin: 10px 6px 4px; font-size: 13.5px; line-height: 1.35; font-weight: 560; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.tmeta { margin: auto 6px 4px; display: flex; gap: 8px; color: var(--faint); font-size: 12px; min-width: 0; white-space: nowrap; }
.tpost { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.tthumb .tviews {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px 0 7px; border-radius: 999px; background: rgba(20, 18, 16, 0.78); color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
}
.tthumb .tviews svg { width: 13px; height: 13px; color: var(--accent); }
.trecreate { height: 38px; margin-top: 8px; }

.nudge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 18px; padding: 12px 16px;
  border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), 0.35); font-size: 14.5px;
}
.nudge p { margin: 0; flex: 1 1 280px; }
.nudge .btn { height: 38px; }
.nudge.first { padding: 14px 14px 14px 18px; border: 0; background: var(--surface); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 10px 24px -16px rgba(var(--accent-rgb), 0.6); }
.nudge.first .btn { height: 42px; }
.tauthor { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tage { flex: none; margin-left: auto; }

.empty {
  grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 4px;
  padding: 56px 24px; border-radius: 28px; border: 1px dashed var(--line-2);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.08), transparent) 50% 0 / 70% 100% no-repeat, var(--surface);
}
.empty h3 { margin: 12px 0 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 650; }
.empty p { margin: 6px 0 0; color: var(--muted); max-width: 460px; }
.empty-icon { width: 40px; height: 40px; color: var(--accent); }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px !important; }
.empty-actions:empty { display: none; }
.spinner {
  display: inline-block; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--fill-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card.skel .frame, .card.skel .body p, .tcard.skel .tthumb, .tcard.skel .tcap {
  background: linear-gradient(90deg, var(--fill-2) 0%, var(--fill) 50%, var(--fill-2) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.card.skel .body p { height: 14px; border-radius: 999px; margin: 0; }
.card.skel .body p.short { width: 55%; }
.tcard.skel .tcap { height: 12px; border-radius: 999px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Site footer: the brand on the left, the links in short columns, the fine print on one line under a rule. */
.foot {
  width: 100%; max-width: var(--max); margin: 80px auto 0; padding: 0 var(--pad) 36px;
  color: var(--faint); font-size: 13.5px;
}
.foot p { margin: 0; }
.foot-top {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 40px;
  padding: 44px 0 40px; border-top: 1px solid var(--line);
}
.foot-brand { display: grid; align-content: start; gap: 14px; max-width: 340px; }
.foot-brand > p { color: var(--muted); line-height: 1.55; }
.foot-mark {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -0.025em; text-decoration: none;
}
.foot-mark svg { width: 22px; height: 22px; color: var(--accent); }
.foot-src { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-src span {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: var(--fill); color: var(--muted); font-size: 12.5px; font-weight: 550;
}
.foot-src svg { width: 13px; height: 13px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.foot-social a { color: var(--muted); font-size: 13.5px; font-weight: 550; text-decoration: none; transition: color 0.15s var(--ease); }
.foot-social a:hover { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-cols h2 {
  margin: 0 0 12px; color: var(--faint);
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.foot-cols ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-cols a {
  display: inline-block; padding: 5px 0; color: var(--muted); font-weight: 520; text-decoration: none;
  transition: color 0.15s var(--ease);
}
.foot-cols a:hover { color: var(--ink); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px;
}
@media (max-width: 1000px) {
  .foot-top { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 32px; }
}
@media (max-width: 760px) {
  .foot { margin-top: 56px; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}

/* Make vertical: a wide modal, the 9:16 preview on a light stage on the left, the settings on the right. */
.sheet {
  width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 6px rgba(20, 18, 16, 0.08), 0 40px 120px -30px rgba(0, 0, 0, 0.6);
}
.sheet[open] { animation: rise 0.3s var(--ease); }
.sheet::backdrop { background: rgba(10, 9, 8, 0.6); }
.sheet[open]::backdrop { animation: fade 0.3s var(--ease); }
@keyframes rise { from { transform: translateY(16px) scale(0.98); } to { transform: none; } }  /* no opacity: a frozen first frame still shows the sheet */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: stretch;
}
.sheet-preview {
  display: grid; align-content: center; justify-items: center; padding: 36px 28px;
  background: var(--panel) radial-gradient(closest-side, rgba(var(--accent-rgb), 0.14), transparent) 50% 40% / 80% 70% no-repeat;
}
.sheet-preview .frame916 { width: min(320px, 100%, calc((100dvh - 200px) * 9 / 16)); margin: 0; }
.grab { display: none; }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--fill); display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.close:hover { background: var(--fill-2); }
.close svg { width: 18px; height: 18px; }
.close:focus-visible { border-radius: 50%; }

.frame916 {
  position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #141210;
  container-type: inline-size;  /* the text on the preview scales with the frame (cqw) */
  box-shadow: 0 0 0 6px #141210, 0 0 0 7px rgba(20, 18, 16, 0.2), 0 30px 60px -24px rgba(20, 18, 16, 0.55);
  margin: 7px;  width: calc(100% - 14px);
}
.pv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); opacity: 0.55; }
.frame916::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(20, 18, 16, 0.55), rgba(20, 18, 16, 0.35) 40%, rgba(20, 18, 16, 0.6));
}
.pv-fg { position: absolute; z-index: 2; left: 0; top: 50%; width: 100%; aspect-ratio: 16 / 9; transform: translateY(-50%); object-fit: cover; }
.pv-hook {
  position: absolute; z-index: 3; top: 12%; left: 8%; right: 8%; margin: 0; text-align: center;
  color: #fff; font-size: 5.3cqw; line-height: 1.2; font-weight: 750; letter-spacing: -0.01em;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  white-space: pre-line;
}
.pv-caps {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 22%; margin: 0; text-align: center;
  color: #fff; font-size: 6cqw; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
}
.pv-caps span { color: #ffd84a; }
.pv-footer {
  position: absolute; z-index: 3; top: 80%; left: 8%; right: 8%; margin: 0; text-align: center;
  color: #fff; font-size: 3.5cqw; line-height: 1.2; font-weight: 700;
  text-shadow: 0 0 2px #000, 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.pv-mark {
  position: absolute; z-index: 3; top: 5%; left: 8%; right: 8%; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.3em;
  color: #fff; font-size: 3.2cqw; font-weight: 700; text-shadow: 0 0 2px #000; white-space: nowrap;
}
.pv-mark span { opacity: 0.6; overflow: hidden; text-overflow: ellipsis; }
.pv-logo { display: none; width: 1.25em; height: 1.25em; }
/* The free mark is larger than a handle and starts with the logo, like on the video. */
.pv-mark.free { font-size: 4.4cqw; }
.pv-mark.free .pv-logo { display: block; }
.pv-busy { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(20, 18, 16, 0.35); }
.pv-busy .spinner { border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }
.pv-video { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity 0.3s var(--ease); }
.pv-video.ready { opacity: 1; }
.frame916.is-video:has(.pv-video.ready) :is(.pv-hook, .pv-footer, .pv-mark), .frame916.is-video :is(.pv-caps, .pv-cam) { display: none; }
.pv-cam {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 37.5%; margin: 0; display: none;
  place-content: center; color: rgba(255, 255, 255, 0.85); font-size: 4.2cqw; font-weight: 650;
}
.frame916[data-layout="stack"]:not(.is-video) .pv-cam { display: grid; }
.pv-cam.found { color: transparent; background-repeat: no-repeat; }
.frame916[data-layout="stack"] .pv-fg { top: 0; height: 62.5%; aspect-ratio: auto; transform: none; }
.frame916[data-layout="stack"] .pv-bg { top: 62.5%; height: 37.5%; transform: scale(1.6); }
.frame916[data-layout="stack"] .pv-hook { top: 9.5%; }
.frame916[data-layout="stack"] .pv-caps { bottom: auto; top: 53%; transform: translateY(-50%); }
.frame916[data-layout="stack"] .pv-mark { top: 6%; }
.frame916[data-layout="stack"] .pv-footer { top: 64%; }
/* Landscape 16:9: the clip fills the frame and the text sits on it, at the spots and sizes of the render. */
.sheet-preview .frame916[data-layout="wide"] { width: min(560px, calc(100% - 8px)); }
.frame916[data-layout="wide"] { aspect-ratio: 16 / 9; border-radius: 16px; }
.frame916[data-layout="wide"] .pv-fg { top: 0; height: 100%; aspect-ratio: auto; transform: none; }
.frame916[data-layout="wide"]::before { background: linear-gradient(rgba(20, 18, 16, 0.3), transparent 35%, transparent 65%, rgba(20, 18, 16, 0.35)); }
.frame916[data-layout="wide"] .pv-hook { top: 9%; left: 12%; right: 12%; font-size: max(3.2cqw, 6px); -webkit-line-clamp: 3; }
.frame916[data-layout="wide"] .pv-caps { bottom: auto; top: 76%; transform: translateY(-50%); font-size: max(4cqw, 7px); }
.frame916[data-layout="wide"] .pv-footer { top: 85.5%; font-size: max(1.8cqw, 4px); -webkit-line-clamp: 1; }
.frame916[data-layout="wide"] .pv-mark { top: 3%; font-size: max(1.5cqw, 4px); }
.frame916[data-layout="wide"] .pv-mark.free { font-size: max(2cqw, 5px); }
.pv-note { margin: 14px 0 0; text-align: center; color: var(--faint); font-size: 12.5px; }
.frame916.is-video + .pv-note { display: none; }

.sheet-side { display: flex; flex-direction: column; min-width: 0; padding: 30px 30px 26px; }
.sheet-side .sheet-title { padding-right: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-side .eyebrow { margin-bottom: 12px; }
.sheet-title:focus { outline: none; }
.sheet-title {
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -0.035em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.sheet-who { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 14px; }
.sheet-source {
  color: var(--accent-text); font-size: 13px; font-weight: 600; text-decoration: none;
}
.sheet-source:hover { text-decoration: underline; text-underline-offset: 3px; }
.step { display: grid; gap: 16px; margin-top: 22px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 650; }
.field :is(input, textarea, select) {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); font-size: 16px; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { display: block; height: auto; padding: 12px 16px; font-family: inherit; line-height: 1.35; resize: none; }
.field select { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; cursor: pointer; }
.pv-logo-img { position: absolute; z-index: 3; height: auto; }
.field :is(input, textarea, select):focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2); }
.hint { margin: 0; color: var(--faint); font-size: 13px; }

.switch {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: var(--fill); cursor: pointer; user-select: none;
}
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.track {
  position: relative; width: 42px; height: 26px; border-radius: 999px; background: var(--track);
  transition: background 0.2s var(--ease); flex: none;
}
.track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent-text); outline-offset: 3px; }
.switch-text { display: grid; gap: 2px; font-size: 14.5px; font-weight: 650; }
.switch-text small { font-size: 13px; font-weight: 450; color: var(--muted); }

.layouts { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.layouts legend { float: left; grid-column: 1 / -1; width: 100%; padding: 0; font-size: 14px; font-weight: 650; }
.layout-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--fill); cursor: pointer; user-select: none;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.layout-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.layout-opt:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.layout-opt:has(input:focus-visible) { outline: 2.5px solid var(--accent-text); outline-offset: 3px; }
.layout-art { flex: none; display: grid; gap: 2px; width: 27px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--track); }
.layout-art i { background: var(--ink); }
.art-stack { grid-template-rows: 5fr 3fr; }
.art-stack i:last-child { background: var(--accent); }
.art-blur { align-content: center; }
.art-blur i { height: 15px; }
.art-wide { width: 48px; height: 27px; align-self: center; }
.layout-text { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.layout-text small { font-size: 13px; font-weight: 450; color: var(--muted); }
.layout-hint { grid-column: 1 / -1; }

.step .btn.primary.big { margin-top: 2px; }
.step-form .btn.primary, .step-done .download { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), 0.9); }
.step-form .btn.primary:hover, .step-done .download:hover { background: #ff7b52; }
.fine { margin: 0; color: var(--faint); font-size: 13px; text-align: center; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stages li {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--faint); font-size: 15px; font-weight: 500;
}
.stages li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; box-sizing: border-box;
}
.stages li.done { color: var(--ink); }
.stages li.done::before {
  border: 0; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.stages li.now { color: var(--ink); font-weight: 650; background: var(--fill); }
.stages li.now::before { border-color: rgba(var(--accent-rgb), 0.25); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.stages .pct { font: 600 13px/1 var(--mono); color: var(--accent-text); }
.bar { height: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: calc(var(--p, 0.03) * 100%); border-radius: inherit;
  background: var(--accent); transition: width 0.8s var(--ease);
}
.status { margin: 0; font-size: 15px; font-weight: 600; text-align: center; }

.done-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.done-title svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.done-check { position: relative; display: grid; flex: none; }
.done-count { margin: -8px 0 0 38px; color: var(--muted); font-size: 14px; }
.celebrate .done-check svg { animation: check-pop 0.5s var(--ease) both; }
.celebrate .done-check::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none;
  animation: ring 0.9s var(--ease) both;
}
.sheet-inner:has(.step-done.celebrate) .frame916 { animation: glow 1.3s var(--ease); }
@keyframes check-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes ring { from { opacity: 0.9; } to { opacity: 0; transform: scale(2.6); } }
@keyframes glow {
  from { box-shadow: 0 0 0 6px #141210, 0 0 0 7px var(--accent), 0 0 0 7px rgba(var(--accent-rgb), 0.6); }
  to { box-shadow: 0 0 0 6px #141210, 0 0 0 7px rgba(var(--accent-rgb), 0), 0 0 0 34px rgba(var(--accent-rgb), 0); }
}
.done-offer { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.done-offer p { margin: 0; font-size: 14.5px; }
.done-offer .btn { flex-direction: column; gap: 2px; height: 58px; }
.done-offer .btn.quiet { background: var(--surface); }
.done-offer .btn small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.step-done .next { justify-content: space-between; height: 58px; text-align: left; }
.step-done .next span { display: grid; gap: 2px; min-width: 0; }
.step-done .next small { overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.error-text { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fdecea; color: #8a1c12; font-size: 14.5px; font-weight: 550; }

@media (max-width: 760px) {
  .tgrid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .tags-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; }
  .tags::-webkit-scrollbar { display: none; }
  .tag { flex: none; }
}

@media (max-width: 640px) {

  .topbar { min-height: 56px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .wordmark span { font-size: 15.5px; }
  .search input { height: 38px; font-size: 16px; padding-left: 34px; }
  .search svg { left: 12px; }

  .hero { padding: 26px 0 14px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.02; }
  .land-btn { margin-top: 22px; }

  .filterbar { top: 56px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .cats-wrap { flex-basis: 100%; }
  .cats-arrow { display: none; }
  .cats { flex-basis: 100%; gap: 6px; margin: -2px calc(-1 * var(--pad)); padding: 2px var(--pad); }
  .cat { height: 34px; font-size: 13.5px; }
  .cat img { width: 24px; height: 24px; }
  .filter-end { width: 100%; justify-content: space-between; }
  .quick-filter { width: 100%; flex: 1 1 160px; }
  .fpill { height: 36px; padding: 0 10px; gap: 6px; font-size: 13.5px; }
  .fpill-label { max-width: 120px; }
  .seg a { height: 30px; line-height: 30px; padding: 0 11px; font-size: 13px; }

  .menu-panel { left: 0; right: 0; width: auto; transform: none; max-height: 66dvh; padding: 12px; animation-name: pop-up; }
  .menu-filters .menu-panel { width: auto; }
  .langs { grid-template-columns: 1fr 1fr; }


  .sheet {
    width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0;
  }
  .sheet[open] { animation: slide 0.32s var(--ease); }
  .sheet-inner {
    grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 0 16px; align-items: start;
    padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .grab { display: block; grid-column: 1 / -1; justify-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin-bottom: 14px; }
  .close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .sheet-side { display: contents; }
  .sheet-preview { grid-column: 1; grid-row: 2 / span 3; padding: 0; background: none; }
  .sheet-preview .frame916 { border-radius: 16px; margin: 4px; width: calc(100% - 8px); box-shadow: 0 0 0 4px #141210, 0 14px 30px -14px rgba(20, 18, 16, 0.6); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .pv-hook { font-size: 9px; top: 9%; -webkit-line-clamp: 3; }
  .pv-caps { font-size: 10px; }
  .pv-footer { font-size: 6px; }
  .pv-mark { font-size: 5.5px; top: 4%; }
  .pv-mark.free { font-size: 7.5px; }
  .pv-cam { font-size: 9px; }
  .pv-note { display: none; }
  .layout-opt { gap: 10px; padding: 10px; }
  .layout-art { width: 22px; height: 40px; }
  .art-blur i { height: 12px; }
  .art-wide { width: 40px; height: 22px; }
  .layout-text small { display: none; }
  .sheet-side .eyebrow { grid-column: 2; grid-row: 2; margin: 4px 36px 8px 0; }
  .sheet-title { grid-column: 2; grid-row: 3; font-size: 19px; padding-right: 4px; -webkit-line-clamp: 4; }
  .sheet-who { grid-column: 2; grid-row: 4; align-self: start; font-size: 13px; }
  .step { grid-column: 1 / -1; margin-top: 18px; gap: 14px; }

  .sheet-inner:has(.frame916.is-video) .sheet-preview { grid-column: 1 / -1; grid-row: auto; order: 10; justify-self: center; width: min(62vw, 260px); margin-top: 18px; }
  .sheet-inner:has(.frame916.is-video[data-layout="wide"]) .sheet-preview { width: 100%; }
  /* A 16:9 preview is unreadable in the thumbnail column: it takes the full row under the title instead. */
  .sheet-inner:has(.frame916[data-layout="wide"]) .sheet-preview { grid-column: 1 / -1; grid-row: 5; width: 100%; margin-top: 14px; }
  .sheet-inner:has(.frame916[data-layout="wide"]) :is(.eyebrow, .sheet-title, .sheet-who) { grid-column: 1 / -1; }
  .sheet-inner:has(.frame916.is-video) .step-done { order: 11; }
  .sheet-inner:has(.frame916.is-video) :is(.eyebrow, .sheet-title, .sheet-who) { grid-column: 1 / -1; }
}
@keyframes slide { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 440px) {
  .wordmark span { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .play span { opacity: 1; transform: none; }
  .make { opacity: 1; transform: none; height: 36px; font-size: 13px; }
  .card .frame-foot { bottom: 52px; opacity: 1; }
  .tcard:hover { transform: none; }
}
@media (max-width: 1100px) {
  .rising { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rising { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rising .hook { font-size: 17px; }
  .rising .frame-foot { left: 10px; right: 10px; }
  .shelf-head { flex-wrap: wrap; align-items: center; }
  .shelf-nav .btn { height: 34px; padding: 0 12px; font-size: 13px; }
}

/* Phones and tablets (the side menu is hidden under 900px): the sections as an app tab bar at the bottom. */
.tabbar { display: none; }
@media (max-width: 900px) {
  body:has(.tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  }
  .tabbar a {
    flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px;
    color: var(--faint); font-size: 11px; font-weight: 550; text-decoration: none;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .pulse::after { display: none; }
  .stages li.now::before { border-color: var(--accent); }
}

:root {
  --twitch: #9146ff;
  --kick: #53fc18;
  --kick-ink: #0b1f02;
  --kick-text: #1e7a06;
}
.pbadge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 6px; border-radius: 999px;
  font: 650 11px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; flex: none;
}
.pbadge svg { width: 11px; height: 11px; }
.pbadge.twitch { background: var(--twitch); color: #fff; }
.pbadge.kick { background: var(--kick); color: var(--kick-ink); }
.sc-name .pbadge { width: 16px; height: 16px; margin-right: 5px; vertical-align: -2px; }
.sc-name .pbadge svg { width: 10px; height: 10px; }
.pbadge.icon-only { width: 18px; height: 18px; padding: 0; justify-content: center; }
.chan .pbadge { margin-right: 6px; vertical-align: -4px; }
.chan .pbadge svg { width: 11px; height: 11px; }
.plat-link[href^="https://kick.com/"] svg { color: var(--kick-text); }
.plat-link:not([href^="https://kick.com/"]) svg { color: var(--twitch); }
.plat-seg a { display: inline-flex; align-items: center; gap: 6px; }
.plat-seg a svg { width: 13px; height: 13px; }
.plat-seg a[data-platform="twitch"] svg { color: var(--twitch); }
.plat-seg a[data-platform="kick"] svg { color: var(--kick-text); }
.media video.kick-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
@media (max-width: 640px) {

  .plat-seg a { flex: 1; justify-content: center; height: 30px; line-height: 30px; padding: 0 10px; }
}

.trim { margin: 0; padding: 12px 14px 12px; border: 0; border-radius: 16px; background: var(--fill); display: grid; gap: 6px; min-width: 0; }
.trim[hidden] { display: none; }
.trim legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 14.5px; font-weight: 650; }
.trim-total { font-weight: 450; color: var(--muted); }
.trim-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 32px; }
.trim-row label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.trim-row input[type=range] { width: 100%; margin: 0; height: 28px; accent-color: var(--ink); cursor: pointer; }
.trim-row input[type=range]:focus-visible { outline: 2.5px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
.trim-out { font: 500 13px/1 var(--mono); text-align: right; color: var(--ink); }
.trim-hint b { color: var(--ink); font-weight: 600; }
