/* ClipHype.ai: mobile-first. Base styles are the phone layout; min-width queries add tablet and
   desktop. The editor wears the player's three team colors. */
:root {
  --chalk: #090909;
  --paper: rgba(20, 20, 20, 0.84);
  --solid: #161616;
  --field: rgba(0, 0, 0, 0.38);
  --ink: #f3f3f3;
  --muted: #afafaf;
  --line: rgba(255, 255, 255, 0.16);
  --turf: rgba(255, 255, 255, 0.08);
  --danger: #ff8a80;
  --team: #df051b;
  --team2: #ffffff;
  --team3: #0d0d0d;
  --on-team: #ffffff;
  --night: #0d0d0d;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --r-sm: 8px;
  --r-lg: 14px;
  --tap: 46px;
  --dock-h: 0px;
  --gutter: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
/* The stadium photo sits fixed behind everything, under a dark wash so text stays readable.
   (A fixed layer instead of background-attachment: fixed, which phones ignore.) */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body::before { background: #090909 url("/bg.webp") center / cover no-repeat; }
body::after { z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 7, 0.78) 0%, rgba(7, 7, 7, 0.86) 55%, rgba(7, 7, 7, 0.94) 100%); }
body.auth-mode::after { background: linear-gradient(180deg, rgba(7, 7, 7, 0.35) 0%, rgba(7, 7, 7, 0.7) 45%, rgba(7, 7, 7, 0.9) 100%); }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 16px/1.5 var(--body); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); overflow-x: hidden; }
body.has-dock { --dock-h: 80px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: 0.01em; line-height: 1; margin: 0; }
h1 { font-size: clamp(2.4rem, 11vw, 4.2rem); }
h2 { font-size: 1.6rem; }
:focus-visible { outline: 3px solid var(--team); outline-offset: 2px; }
.note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.empty { color: var(--muted); grid-column: 1 / -1; margin: 0; padding: 18px; border: 2px dashed var(--line); border-radius: var(--r-lg); text-align: center; }

/* ---------- controls (16px+ so phones don't zoom) ---------- */
input, select, button { font: inherit; color: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]) {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--field); color: var(--ink); font-size: 16px;
}
input:focus { border-color: var(--team2); outline: none; }
input::placeholder { color: rgba(243, 243, 243, 0.42); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--team); width: 22px; height: 22px; margin: 0; flex: none; }
label { display: block; font-size: 0.875rem; color: var(--muted); }
label > input { margin-top: 4px; color: var(--ink); }
button { cursor: pointer; touch-action: manipulation; }
.primary { min-height: var(--tap); background: var(--team); color: var(--on-team); border: 0; border-radius: var(--r-sm); padding: 11px 20px; font-weight: 700; }
.primary:active { filter: brightness(0.94); }
.primary:disabled { opacity: 0.6; cursor: progress; }
.primary.big { width: 100%; padding: 14px; font-family: var(--display); font-size: 1.6rem; font-weight: 900; letter-spacing: 0.02em; }
.ghost { min-height: var(--tap); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px; font-weight: 700; }
.ghost.wide { width: 100%; }
.link { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; font-size: 0.9rem; }
.link.danger { color: var(--danger); }
.filebtn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 9px 16px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.filebtn:focus-within { outline: 3px solid var(--team); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); font-size: 0.95rem; }
.error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 82, 82, 0.14); border: 1px solid rgba(255, 138, 128, 0.4); color: #ffd6d2; font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.mouse-only { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mouse-only { display: inline; }
  .primary:hover { filter: brightness(1.06); }
  .ghost:hover, .filebtn:hover { border-color: var(--ink); }
}

/* ---------- top bar ---------- */
.bar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top)); background: rgba(9, 9, 9, 0.82); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; z-index: 10; min-height: 56px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.navlink { color: var(--muted); text-decoration: none; font-weight: 700; padding: 9px 12px; border-radius: var(--r-sm); }
.navlink.on { color: var(--ink); background: var(--turf); }

.page { padding: 18px var(--gutter) 32px; max-width: 1200px; margin: 0 auto; }
.page.narrow { max-width: 640px; display: grid; gap: 16px; }
.card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.form { display: grid; gap: 12px; }
.card code { display: block; font: 700 1.05rem var(--body); color: var(--ink); background: var(--turf); padding: 8px 10px; border-radius: 6px; margin-top: 8px; word-break: break-all; }

/* ---------- sign in ---------- */
/* Sign-in: the logo and tagline on the stadium photo, one simple card below. No top bar. */
.auth { min-height: 100svh; max-width: 440px; margin: 0 auto; padding: max(40px, 9svh) var(--gutter) max(28px, env(safe-area-inset-bottom)); display: grid; align-content: center; gap: 28px; }
.auth-brand { display: grid; justify-items: center; gap: 14px; text-align: center; }
.auth h1.hero { margin: 0; line-height: 0; width: 100%; }
.hero img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.7)); }
.tagline { margin: 0; font: 700 clamp(1.25rem, 5.4vw, 1.6rem)/1.15 var(--display); letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.signin { display: grid; gap: 14px; }
.sso { display: grid; gap: 10px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; font-size: 1rem; }
.sso-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dcdcdc; }
.sso-btn.facebook { background: #1877f2; color: #fff; }
.sso-btn:active { filter: brightness(0.94); }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- library ---------- */
.lib-head { display: grid; gap: 14px; margin-bottom: 22px; }
.sect { margin: 22px 0 10px; font-size: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tile img, .tile .blank { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; display: grid; place-items: center; background: var(--night); color: #fff; font: 900 2.6rem var(--display); }
.tile .t1 { padding: 8px 10px 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .t2 { padding: 0 10px 10px; color: var(--muted); font-size: 0.85rem; }
.grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ctile { margin: 0; position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--turf); }
.ctile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ctile figcaption, .ctile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(13, 13, 13, 0.85)); color: #fff; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctile figcaption span, .ctile .cap span { float: right; margin-left: 4px; }

/* ---------- sheets (dialogs) ---------- */
.sheet { border: 0; padding: 0; border-radius: 18px 18px 0 0; width: 100%; max-width: 640px; max-height: 88vh; margin: auto auto 0; background: var(--solid); color: var(--ink); border-top: 1.5px solid var(--line); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.65); }
.sheet form { padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.choices { display: grid; gap: 8px; }
.choice { display: grid; text-align: left; gap: 2px; padding: 12px 14px; min-height: 60px; background: var(--paper); border: 1.5px solid var(--line); border-left: 8px solid var(--c, var(--line)); border-radius: var(--r-sm); }
.choice b { font-size: 1.05rem; }
.choice span { color: var(--muted); font-size: 0.88rem; }
.choice.add { border-left-color: var(--line); border-style: dashed; }
.pick { max-height: 52vh; overflow: auto; }
.pickable { cursor: pointer; }
.pickable input { position: absolute; top: 6px; left: 6px; z-index: 1; }
.pickable:has(input:checked) { outline: 4px solid var(--team); outline-offset: -4px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- player panel: the title card is the summary ---------- */
.panel { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; }
.panel-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.panel-body.pad-top { padding-top: 16px; }
details.panel > summary { list-style: none; cursor: pointer; }
details.panel > summary::-webkit-details-marker { display: none; }
#musicPanel > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; min-height: 60px; }
#musicPanel > summary::after, .player-sum::after { content: "▾"; color: var(--muted); font-size: 1.1rem; transition: rotate 0.2s; }
details[open] > summary::after, details[open] .player-sum::after { rotate: 180deg; }
.sum { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
details[open] .sum { visibility: hidden; }
.player > summary { padding: 8px 8px 0; }
.player-sum { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 8px 12px; }
.player-sum .save { color: var(--muted); font-size: 0.85rem; text-align: right; }
.tc { position: relative; overflow: hidden; border-radius: 10px; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--team) 35%, transparent) 0%, var(--night) 64%); aspect-ratio: 16 / 8; display: grid; place-items: center; isolation: isolate; }
.tc-s { position: absolute; top: -30%; height: 160%; width: 17%; transform: skewX(-18deg); z-index: -1; }
.tc .s1 { left: 6%; background: var(--team); opacity: 0.8; }
.tc .s2 { left: 34%; background: var(--team2); opacity: 0.9; }
.tc .s3 { left: 62%; background: var(--team3); opacity: 0.85; outline: 2px solid color-mix(in srgb, #fff 18%, transparent); }
.tc-stack { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 0 12px; max-width: 100%; }
.tc-kicker, .tc-sub { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(13, 13, 13, 0.82); color: #fff; padding: 2px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-kicker:empty, .tc-sub:empty { display: none; }
.tc-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 11vw, 5.4rem); line-height: 0.88; color: #fff; text-transform: uppercase; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); text-wrap: balance; overflow-wrap: anywhere; }
.tc-rule { width: 26%; height: 4px; background: var(--team2); }
@media (prefers-reduced-motion: no-preference) {
  .tc-s { animation: sweep 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .tc .s2 { animation-delay: 0.06s; }
  .tc .s3 { animation-delay: 0.12s; }
  @keyframes sweep { from { translate: -140vw 0; } }
}
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
legend { font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
.colors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.colors legend { grid-column: 1 / -1; }
.swatch { display: grid; justify-items: center; gap: 4px; color: var(--ink); font-size: 0.85rem; text-align: center; }
.swatch input { width: 100%; height: 52px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: none; margin: 0; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-row img { height: 52px; width: auto; max-width: 120px; object-fit: contain; }

/* ---------- clips ---------- */
.clipsect { margin: 22px 0 18px; }
.clipsect h2 { margin-bottom: 10px; }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ghost.tall { min-height: 84px; }
.drop { display: flex; align-items: center; gap: 14px; min-height: 84px; border: 2px dashed color-mix(in srgb, var(--team) 55%, var(--line)); border-radius: var(--r-lg); padding: 12px 14px; background: var(--paper); color: var(--muted); cursor: pointer; }
.drop .plus { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--team); color: var(--on-team); font: 900 2rem/1 var(--display); }
.drop strong { display: block; color: var(--ink); font-size: 1.1rem; }
.drop .hint { font-size: 0.85rem; }
#clipInput:focus-visible + .drop { outline: 3px solid var(--team); outline-offset: 2px; }
.drop.over { border-style: solid; border-color: var(--team); }
.clips { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.clip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-left: 6px solid var(--team); border-radius: var(--r-sm); padding: 8px; }
.clip .num { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; text-align: center; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--turf); border-radius: 6px; overflow: hidden; max-width: 220px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(13, 13, 13, 0.8); color: #fff; font-size: 0.75rem; padding: 1px 6px; border-radius: 3px; }
.order { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.icon { height: 44px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 6px; font-size: 0.8rem; color: var(--muted); }
.icon.del:active, .icon.del:hover { border-color: var(--danger); color: var(--danger); }
.clip.uploading { grid-template-columns: 30px 1fr; border-left-color: var(--line); }
.up-name { color: var(--muted); overflow-wrap: anywhere; font-size: 0.9rem; }
.upbar { height: 8px; background: var(--turf); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.upbar div { height: 100%; width: 0; background: var(--team); transition: width 0.2s; }

/* ---------- music & make ---------- */
.music { display: grid; gap: 6px; }
.track-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.track-opt:has(input:checked) { border-color: var(--team2); background: color-mix(in srgb, var(--team) 22%, var(--paper)); }
.track-opt .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.track-opt small { display: block; color: var(--muted); font-size: 0.8rem; white-space: normal; }
.track-opt .warn { color: #ffc861; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 0.75rem; }
.formats label { display: flex; align-items: center; gap: 12px; min-height: var(--tap); color: var(--ink); font-size: 0.98rem; cursor: pointer; }
.shape { display: inline-block; flex: none; border: 2px solid var(--ink); border-radius: 2px; }
.r169 { width: 26px; height: 15px; }
.r916 { width: 12px; height: 21px; margin: 0 7px; }
.r11 { width: 17px; height: 17px; margin: 0 4.5px; }
.track { height: 12px; background: var(--turf); border-radius: 6px; overflow: hidden; }
.fill { height: 100%; width: 0; background: repeating-linear-gradient(-60deg, var(--team) 0 14px, color-mix(in srgb, var(--team) 80%, #fff) 14px 28px); transition: width 0.6s ease; }
.progress p { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.panel-render, .make .progress { display: none; }

/* ---------- dock: phone action bar ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom)); background: rgba(9, 9, 9, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1.5px solid var(--line); }
.dock .primary { font-family: var(--display); font-size: 1.35rem; font-weight: 900; padding: 10px 18px; min-height: 54px; }
.dock-info { min-width: 0; display: grid; gap: 6px; }
.dock-stage { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- results ---------- */
.results { margin-top: 22px; }
.results h2 { font-size: 2rem; margin-bottom: 12px; }
.result-grid { display: grid; gap: 16px; }
.result { margin: 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 10px; }
.result video { display: block; background: #000; border-radius: 8px; width: 100%; max-height: 78vh; }
.result .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result .meta span { font-weight: 700; }
.result .meta small { color: var(--muted); font-weight: 400; display: block; }
.result a.primary { text-decoration: none; display: inline-flex; align-items: center; flex: none; }

/* ---------- family ---------- */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.members small { display: block; color: var(--muted); }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  .two { grid-template-columns: 1fr; }
  .order { grid-template-columns: 44px; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .lib-head { grid-template-columns: 1fr auto; align-items: end; }
  .lib-head .primary.big { width: auto; padding: 14px 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .tc { aspect-ratio: 32 / 9; }
  .tc-kicker, .tc-sub { font-size: 1rem; }
  .sheet { border-radius: 18px; margin: auto; }
  .result-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
}

/* ---------- desktop: editor in two columns, no dock ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  body.has-dock { --dock-h: 0px; }
  .dock { display: none !important; }
  .panel-render { display: block; }
  .make .progress:not([hidden]) { display: block; }
  #editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 28px; align-items: start; }
  #editor > .player, #editor > .results { grid-column: 1 / -1; }
  #editor > .clipsect { grid-column: 1; grid-row: 2 / span 2; margin-top: 0; }
  #editor > #musicPanel, #editor > .make { grid-column: 2; }
  #musicPanel > summary { cursor: default; }
  #musicPanel > summary::after { display: none; }
  .tc { aspect-ratio: 32 / 7; }
  .result-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
  .result video { height: min(420px, 60vh); width: auto; max-width: 100%; }
}

/* ---------- Get Started steps ---------- */
.steps { display: grid; }
.step { display: grid; gap: 14px; }
.start-btn { min-height: 60px; font-size: 1.9rem; letter-spacing: 0.03em; box-shadow: 0 14px 40px rgba(223, 5, 27, 0.35); }
.step h2 { font-size: 1.7rem; }
.step .back { justify-self: start; padding: 4px 0; text-decoration: none; font-weight: 700; color: var(--muted); }
.sso-btn.email { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font: inherit; font-weight: 700; cursor: pointer; }
.sso-btn.email span { font-size: 1.1rem; }
.link.inline { padding: 0; font-size: inherit; }
.pw { position: relative; display: block; margin-top: 4px; }
.pw input { padding-right: 76px !important; }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--turf); color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.member-actions { display: flex; gap: 14px; flex: none; }

/* ---------- Get Started background video (over the stadium photo, under the dark wash) ---------- */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; background: #090909; }
body.auth-mode::after { background: linear-gradient(180deg, rgba(7, 7, 7, 0.25) 0%, rgba(7, 7, 7, 0.45) 40%, rgba(7, 7, 7, 0.88) 100%); }

/* ---------- Sign-in proportions: one compact column on an 8px spacing scale ---------- */
.auth { max-width: 360px; gap: 24px; padding: 32px 16px calc(32px + 8svh); }
.auth-brand { gap: 10px; }
.hero img { max-width: 232px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65)); }
.tagline { font-size: 1.05rem; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.92); }
.auth .card { padding: 16px; border-radius: 14px; }
.auth .step { gap: 12px; }
.auth .sso { gap: 10px; }
.auth .sso-btn { min-height: 44px; border-radius: 10px; font-size: 0.95rem; gap: 10px; }
.auth .sso-btn svg { width: 18px; height: 18px; }
.auth .step h2 { font-size: 1.3rem; }
.auth .step .back { font-size: 0.85rem; padding: 0; }
.auth .form { gap: 12px; }
.auth label { font-size: 0.82rem; }
.auth input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; padding: 9px 12px; border-radius: 10px; }
.auth .primary { min-height: 44px; border-radius: 10px; font-size: 0.95rem; padding: 10px 16px; }
.auth .note { font-size: 0.85rem; }
.auth .error { font-size: 0.85rem; padding: 8px 10px; }
.auth .peek { min-height: 32px; font-size: 0.8rem; }
@media (min-width: 640px) {
  .auth { max-width: 380px; }
  .hero img { max-width: 260px; }
}

/* Bigger logo on the sign-in screen. */
.hero img { max-width: min(310px, 100%); }
@media (min-width: 640px) { .hero img { max-width: 360px; } .auth { max-width: 400px; } }

/* Sign-in buttons: one matching dark style (Google's official dark button); only the logos
   carry color. Logos sit in the same spot on the left, text centred. */
.auth .sso-btn,
.auth .sso-btn.google,
.auth .sso-btn.facebook,
.auth .sso-btn.email {
  position: relative;
  background: #131314;
  color: #e3e3e3;
  border: 1px solid #909090;
  padding: 0 44px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.15s, border-color 0.15s;
}
.auth .sso-btn svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
@media (hover: hover) { .auth .sso-btn:hover { background: #1d1d1d; border-color: var(--team); } }
.auth .sso-btn:active { background: #1d1d1d; border-color: var(--team); filter: none; }
.auth .sso-btn:focus-visible { outline: 2px solid var(--team); outline-offset: 2px; }

/* Sign-in card: very dark frosted glass (the video shows through, blurred); the buttons on it
   are the only solid surfaces. */
.auth .card {
  background: rgba(5, 5, 5, 0.52);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.auth .sso-btn { background: #131314; }

/* Email sign-in: small switch link between Sign in and Create an account. */
.auth .switch { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
.auth .switch .link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Password eye: open eye = show, crossed eye = hide. */
.peek, .auth .peek { display: grid; place-items: center; width: 40px; min-height: 36px; padding: 0; background: transparent; color: var(--muted); }
.peek:hover { color: var(--ink); }
.peek .eye-shut, .peek[aria-pressed="true"] .eye-open { display: none; }
.peek[aria-pressed="true"] .eye-shut { display: block; }
.pw input { padding-right: 52px !important; }

/* Log out in the top bar: icon + word; on narrow phones just the icon. */
.navlink.logout { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.navlink.logout:hover { color: var(--ink); }
@media (max-width: 379px) { .navlink.logout span { display: none; } }

/* Logo: only the outline and letters are solid; the panel inside is the same dark frosted
   glass as the sign-in card, cut to the outline's exact shape. */
.logo-glass { position: relative; display: block; width: min(310px, 100%); margin: 0 auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6)); }
.logo-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(7.38% 0.99%, 6.77% 3.94%, 6.15% 6.90%, 5.64% 9.85%, 5.13% 12.81%, 4.92% 15.76%, 4.72% 18.72%, 4.62% 21.67%, 4.41% 24.63%, 4.21% 27.59%, 4.10% 30.54%, 3.90% 33.50%, 3.69% 36.45%, 3.59% 39.41%, 3.38% 42.36%, 3.18% 45.32%, 3.08% 48.28%, 2.87% 51.23%, 2.67% 54.19%, 2.56% 57.14%, 2.36% 60.10%, 2.26% 63.05%, 2.05% 66.01%, 1.85% 68.97%, 1.74% 71.92%, 1.54% 74.88%, 1.33% 77.83%, 1.23% 80.79%, 1.03% 83.74%, 0.82% 86.70%, 0.72% 89.66%, 0.51% 92.61%, 0.41% 95.57%, 0.21% 98.52%, 92.82% 98.52%, 93.33% 95.57%, 93.95% 92.61%, 94.46% 89.66%, 94.77% 86.70%, 94.97% 83.74%, 95.08% 80.79%, 95.28% 77.83%, 95.49% 74.88%, 95.59% 71.92%, 95.79% 68.97%, 96.00% 66.01%, 96.10% 63.05%, 96.31% 60.10%, 96.51% 57.14%, 96.62% 54.19%, 96.82% 51.23%, 97.03% 48.28%, 97.13% 45.32%, 97.33% 42.36%, 97.54% 39.41%, 97.64% 36.45%, 97.85% 33.50%, 98.05% 30.54%, 98.26% 27.59%, 98.36% 24.63%, 98.56% 21.67%, 98.77% 18.72%, 98.87% 15.76%, 99.08% 12.81%, 99.28% 9.85%, 99.38% 6.90%, 99.59% 3.94%, 99.79% 0.99%);
  background: rgba(5, 5, 5, 0.52);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.logo-glass img, .hero .logo-glass img { position: relative; width: 100%; max-width: none; height: auto; filter: none; }
@media (min-width: 640px) { .logo-glass { width: 360px; } }

/* ================= Signed-in shell ================= */
/* Solid black behind every signed-in screen; the stadium photo and video are for sign-in only. */
body.signed-in { background: #000; }
body.signed-in::before, body.signed-in::after { display: none; }

/* Top bar: menu left, logo centred, Log out right, over a dark black-and-white filmstrip of the
   homepage video. */
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 10px;
  padding-top: max(6px, env(safe-area-inset-top));
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%),
    url("/nav-strip.jpg") left center / auto 100% repeat-x,
    #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bar .brand { grid-column: 2; justify-self: center; }
.bar .brand img { height: 28px; }
#menuBtn { grid-column: 1; justify-self: start; }
#navLogout { grid-column: 3; justify-self: end; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.iconbtn:hover, .navlink.logout:hover { background: rgba(255, 255, 255, 0.08); }
.navlink.logout { color: var(--ink); padding: 10px 12px; border-radius: 10px; }
.navlink.logout svg { flex: none; }

/* Slide-out menu */
.drawer-back { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.2s; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 41;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom));
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
  transform: translateX(-102%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-back { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 8px; }
.drawer-family { color: var(--muted); font-size: 0.85rem; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font: 900 1.6rem/1 var(--display);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.drawer-link:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-link.on { border-left-color: var(--team); background: rgba(255, 255, 255, 0.04); }
.drawer-link.logout-link { margin-top: auto; font: 700 1rem/1 var(--body); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-back { transition: none; } }

/* Signed-in top bar: one large, blurred frame from the homepage video as texture. */
.bar {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("/nav-texture.jpg") center / cover no-repeat,
    #000;
}

/* Phones and tablets: menu button + centred logo. Desktop: logo left, nav links right. */
.desknav { display: none; }
@media (min-width: 1000px) {
  #menuBtn { display: none !important; }
  .bar { grid-template-columns: auto 1fr; padding: 8px 40px; }
  .bar .brand { grid-column: 1; justify-self: start; }
  .bar .brand img { height: 30px; }
  .desknav:not([hidden]) { grid-column: 2; justify-self: end; display: flex; align-items: center; gap: 4px; }
  .desk-link { position: relative; padding: 10px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 700 0.95rem/1 var(--body); text-decoration: none; cursor: pointer; }
  .desk-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
  .desk-link.on { color: var(--ink); }
  .desk-link.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--team); border-radius: 1px; }
  #deskLogout { margin-left: 10px; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.2); }
  #deskLogout:hover { border-color: var(--team); }
}

/* ================= Typeface: Manrope for everything on the page ================= */
/* (The title-card preview keeps the condensed lettering the videos use.) */
:root { --body: "Manrope", system-ui, sans-serif; --display: "Manrope", system-ui, sans-serif; }
body { font-family: var(--body); font-feature-settings: "ss01" off; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 8.5vw, 3.2rem); }
h2 { font-size: 1.35rem; }
.sect { font-size: 1.25rem; }
.results h2 { font-size: 1.6rem; }
.auth .step h2 { font-size: 1.2rem; }
.primary { font-weight: 700; }
.primary.big { font-size: 1.1rem; font-weight: 800; letter-spacing: 0; }
.dock .primary { font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.tagline { font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.drawer-link { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.drawer-link.logout-link { font-weight: 700; font-size: 1rem; }
.clip .num { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.tile .blank { font-weight: 800; letter-spacing: -0.02em; }
.drop .plus { font-family: var(--body); font-weight: 700; }
label { font-weight: 500; }
.tc-kicker, .tc-sub, .tc-title { font-family: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif; }

/* ================= Typeface: Inter (replaces Manrope) ================= */
:root { --body: "Inter", system-ui, sans-serif; --display: "Inter", system-ui, sans-serif; }
body { font-feature-settings: "cv11", "ss01"; }
h1, h2 { letter-spacing: -0.025em; }
.drawer-link { letter-spacing: -0.015em; }

/* Library on phones and tablets: no family-name heading; "+ Create New Highlight" as a white
   outline box on black. Computers keep the heading and the red button. */
.nh-plus, .nh-long { display: none; }
@media (max-width: 999px) {
  #library #hello { display: none; }
  #library .lib-head { margin-bottom: 8px; }
  #newHighlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    border-radius: 12px;
    font: 700 1.05rem/1 var(--body);
    letter-spacing: 0;
    box-shadow: none;
  }
  #newHighlight:active { background: rgba(255, 255, 255, 0.08); filter: none; }
  #newHighlight .nh-plus { display: inline; font-size: 1.5rem; font-weight: 500; line-height: 1; margin-top: -2px; }
  #newHighlight .nh-long { display: inline; }
  #newHighlight .nh-short { display: none; }
}

/* Library: same on every screen size: no family-name heading, white outline
   "+ Create New Highlight" box on black. */
#library #hello { display: none; }
#library .lib-head { display: block; margin-bottom: 8px; }
#newHighlight,
.lib-head #newHighlight.primary.big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 12px;
  font: 700 1.05rem/1 var(--body);
  letter-spacing: 0;
  box-shadow: none;
}
#newHighlight:hover { background: rgba(255, 255, 255, 0.06); filter: none; }
#newHighlight:active { background: rgba(255, 255, 255, 0.1); filter: none; }
#newHighlight .nh-plus { display: inline; font-size: 1.5rem; font-weight: 500; line-height: 1; margin-top: -2px; }
#newHighlight .nh-long { display: inline; }
#newHighlight .nh-short { display: none; }

/* Thinner outline; double the space above (18 → 36px) and below (30 → 60px) the box. */
#newHighlight,
.lib-head #newHighlight.primary.big { border-width: 1px; }
#library.page { padding-top: 36px; }
#library .lib-head { margin-bottom: 38px; }
#library .lib-head { margin-bottom: 60px; } /* the gap below merges with the heading gap, so set the full 60px here */

/* Highlight cards: delete (top-left) and share (top-right) over the picture; event name below. */
.tile { position: relative; display: block; }
.tile-link { display: grid; color: var(--ink); text-decoration: none; }
.tile .t1 { padding: 10px 12px 12px; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.tile .t1.untitled { color: var(--muted); font-weight: 600; }
.tile .t2 { display: none; }
.tile-btn {
  position: absolute;
  top: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
}
.tile-btn.del { left: 8px; }
.tile-btn.share { right: 8px; }
.tile-btn:hover { background: rgba(0, 0, 0, 0.75); border-color: rgba(255, 255, 255, 0.4); }
.tile-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.tile-btn[aria-disabled="true"] { opacity: 0.4; }
.tile-btn:disabled { opacity: 0.6; cursor: progress; }

/* Small message that pops up at the bottom. */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Event name at the top of the editor. */
.event-field { display: block; margin: 0 0 14px; font-size: 0.85rem; color: var(--muted); }
.event-field input { margin-top: 6px; font-size: 1.15rem !important; font-weight: 700; }
@media (min-width: 1000px) { #editor > .event-field { grid-column: 1 / -1; } }

/* Menu text: smaller and lighter. */
.drawer-link { font: 500 1.05rem/1.2 var(--body); letter-spacing: 0; padding: 13px 20px; }
.drawer-link.on { font-weight: 600; }
.drawer-link.logout-link { font: 500 0.95rem/1.2 var(--body); }
.drawer-family { font-size: 0.8rem; font-weight: 500; }

/* Create New Highlight box: twice as tall (60 → 120px). */
#newHighlight,
.lib-head #newHighlight.primary.big { min-height: 120px; }

/* Create New Highlight: the homepage loop plays inside it under a dark wash; softer outline. */
#newHighlight,
.lib-head #newHighlight.primary.big {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: #000;
}
#newHighlight .nh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
#newHighlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.62)); transition: background-color 0.2s; }
#newHighlight .nh-label { display: inline-flex; align-items: center; gap: 10px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
#newHighlight:hover { border-color: rgba(255, 255, 255, 0.7); background: #000; }
#newHighlight:hover::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); }
#newHighlight:active { background: #000; }

/* Create New Highlight: 50% taller (120 → 180px). */
#newHighlight,
.lib-head #newHighlight.primary.big { min-height: 180px; }

/* Video inside Create New Highlight: 50% darker. */
#newHighlight .nh-video { filter: brightness(0.5); }
#newHighlight .nh-video { filter: brightness(0.25); } /* another 50% darker */

/* ================= My Highlights: swipe carousel ================= */
.sect-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.sect-row .sect { margin: 0; }
.car-nav { display: flex; gap: 6px; }
.car-nav[hidden] { display: none; }
.car-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--ink); cursor: pointer; }
.car-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
/* Phones swipe, so the arrows only show where there's a mouse. */
@media (hover: none) { .car-nav { display: none !important; } }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  /* run edge to edge on phones so the next card peeks in from the side */
  margin-inline: calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > .tile { scroll-snap-align: start; }
.carousel:focus-visible { outline: 2px solid var(--team); outline-offset: 4px; }
.carousel.is-empty { display: block; margin-inline: 0; padding-inline: 0; }
@media (min-width: 640px) { .carousel { grid-auto-columns: 220px; } }
@media (min-width: 1000px) { .carousel { grid-auto-columns: 240px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }

/* Phones: exactly three highlight cards across the screen; swipe for more. */
@media (max-width: 639px) {
  .carousel { grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * 10px) / 3); gap: 10px; }
  .carousel .tile { border-radius: 12px; }
  .carousel .tile .blank { font-size: 1.5rem; }
  .carousel .tile .t1 { padding: 8px 8px 9px; font-size: 0.78rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .carousel .tile-btn { top: 6px; width: 28px; height: 28px; }
  .carousel .tile-btn svg { width: 14px; height: 14px; }
  .carousel .tile-btn.del { left: 6px; }
  .carousel .tile-btn.share { right: 6px; }
}
@media (max-width: 639px) { .carousel { grid-auto-columns: calc((100% - 2 * 10px) / 3); } } /* 100% already excludes the side padding */

/* My Highlights dots: right-aligned on the heading row, current page is a wider white pill. */
.sect-row .sect { margin-right: auto; }
.car-dots { display: flex; align-items: center; gap: 2px; }
.car-dots[hidden] { display: none; }
.car-dot { display: grid; place-items: center; width: 18px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.car-dot::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); transition: width 0.2s, background-color 0.2s; }
.car-dot.on { width: 26px; }
.car-dot.on::before { width: 16px; background: #fff; }
.car-dot:hover:not(.on)::before { background: rgba(255, 255, 255, 0.6); }
.car-dot:focus-visible { outline: 2px solid var(--team); outline-offset: 0; border-radius: 6px; }
.car-dots + .car-nav { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .car-dot::before { transition: none; } }
#library .lib-head { margin-bottom: 28px; } /* tighter gap above My Highlights */

/* Clips row: "+ Add Clip" card first (same soft outline as Create New Highlight), then clip cards. */
.carousel .tile img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; display: block; background: #0a0a0a; }
.clip-tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: #0a0a0a; border: 1px solid var(--line); }
.clip-tile .dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.72rem; font-weight: 600; }
.add-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 12;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: #000;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.add-tile:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.04); }
.add-tile:focus-within, #libClipInput:focus-visible + .carousel .add-tile { outline: 2px solid var(--team); outline-offset: 2px; }
.add-inner { display: grid; justify-items: center; gap: 6px; padding: 8px; }
.add-plus { font-size: 1.8rem; font-weight: 400; line-height: 1; }
.add-tile .t1 { padding: 0; font-weight: 700; font-size: 0.85rem; color: #fff; }
@media (max-width: 639px) {
  .clip-tile, .add-tile { border-radius: 12px; }
  .add-plus { font-size: 1.5rem; }
  .add-tile .t1 { font-size: 0.78rem; white-space: normal; }
}

/* Clip cards: delete in the top-right corner. */
.clip-tile .clip-del { left: auto; right: 8px; }
.clip-tile .clip-del:hover { border-color: var(--danger); color: var(--danger); }
.carousel .clip-tile .clip-del { left: auto; right: 6px; }

/* ================= Player (finished highlights, clip previews) ================= */
.player {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom));
  border: 0;
  background: #000;
  color: #fff;
}
.player[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.player::backdrop { background: #000; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 8px 16px; }
.pl-title { font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#plVideo { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
.pl-actions { display: flex; justify-content: center; gap: 10px; padding: 14px 16px 0; }
.pl-actions[hidden] { display: none; }
.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.pl-btn:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.pl-btn:disabled { opacity: 0.6; cursor: progress; }
.clip-tile { cursor: pointer; }
.clip-tile:focus-visible { outline: 2px solid var(--team); outline-offset: 2px; }
@media (min-width: 1000px) {
  .player { padding-inline: 40px; }
  .pl-head { padding-inline: 0; }
}

/* ================= On-page confirmation ================= */
.confirm-box {
  width: min(360px, calc(100vw - 32px));
  padding: 22px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #121212;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.confirm-box::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.confirm-box h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.confirm-box p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.cb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-btn { min-height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font: 600 0.95rem/1 var(--body); cursor: pointer; }
.cb-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.cb-btn.danger { background: var(--team); border-color: var(--team); }
.cb-btn.danger:hover { filter: brightness(1.08); }
.cb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .confirm-box[open] { animation: cb-in 0.16s ease-out; }
  @keyframes cb-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
}

/* ================= Progress ring on a highlight card while its video is being made ================= */
.tile-link { position: relative; }
.tile-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: 9 / 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  pointer-events: none;
}
.tile-progress svg { width: 56px; height: 56px; transform: rotate(-90deg); grid-area: 1 / 1; }
.tile-progress .ring-track { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 4; }
.tile-progress .ring-bar { fill: none; stroke: var(--team); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.tile-progress .ring-pct { grid-area: 1 / 1; font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tile-progress .ring-label { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.tile.making .tile-btn.del { opacity: 0.35; pointer-events: none; }
.tile.making .tile-btn.share { visibility: hidden; }
@media (min-width: 640px) {
  .tile-progress svg { width: 72px; height: 72px; }
  .tile-progress .ring-pct { font-size: 0.95rem; }
  .tile-progress .ring-label { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .tile-progress .ring-bar { transition: none; } }

/* ================= No red lines on selection, focus or hover =================
   Keyboard focus is a soft white ring; "current" and "selected" markers are white or grey.
   Red stays for actions (buttons, the progress ring, Delete), never for outlines. */
:root { --focus-ring: rgba(255, 255, 255, 0.75); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 255, 255, 0.55); outline: none; }
.filebtn:focus-within,
#clipInput:focus-visible + .drop,
.auth .sso-btn:focus-visible,
.carousel:focus-visible,
.clip-tile:focus-visible,
.add-tile:focus-within,
#libClipInput:focus-visible + .carousel .add-tile { outline: 2px solid var(--focus-ring); }
.car-dot:focus-visible { outline: 2px solid var(--focus-ring); }
.carousel:focus:not(:focus-visible) { outline: none; }
.pickable:has(input:checked) { outline: 3px solid #fff; outline-offset: -3px; }
.drop.over { border-color: rgba(255, 255, 255, 0.7); }
.track-opt:has(input:checked) { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.07); }
@media (hover: hover) { .auth .sso-btn:hover { border-color: rgba(255, 255, 255, 0.75); } }
.auth .sso-btn:active { border-color: rgba(255, 255, 255, 0.75); }
.drawer-link.on { border-left-color: #fff; }
.desk-link.on::after { background: #fff; }
#deskLogout:hover { border-color: rgba(255, 255, 255, 0.7); }
.tile-btn.del:hover, .clip-tile .clip-del:hover, .icon.del:hover, .icon.del:active { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: #fff; }

/* ================= Clips organized by game =================
   "+ Add Clips" (soft outline, like Create New Highlight), then one collapsed row per game:
   first clip's thumbnail, "vs Tigers", tournament and date, clip count. Open a row to see its clips. */
.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: #000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.add-row .add-plus { font-size: 1.4rem; font-weight: 400; line-height: 1; }
.add-row:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.04); }
.add-row:disabled { cursor: progress; opacity: 0.85; }
.clip-groups { display: grid; gap: 10px; margin-top: 12px; }
.cg-empty { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.cgroup { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.cgroup summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}
.cgroup summary::-webkit-details-marker { display: none; }
.cgroup summary:hover { background: rgba(255, 255, 255, 0.03); }
.cg-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block; background: #0a0a0a; }
.cg-text { display: grid; gap: 2px; min-width: 0; }
.cg-title { color: #fff; font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-meta { display: flex; gap: 10px; color: var(--muted); font-size: 0.78rem; overflow: hidden; white-space: nowrap; }
.cg-meta span { overflow: hidden; text-overflow: ellipsis; }
.cg-count { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.cg-chev { color: rgba(255, 255, 255, 0.55); transition: transform 0.2s; }
.cgroup[open] .cg-chev { transform: rotate(180deg); }
.cg-body { padding: 2px 12px 12px; }
.cg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cg-grid .tile img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; display: block; background: #0a0a0a; }
.cg-grid .clip-tile { border-radius: 12px; }
.cg-grid .clip-tile .clip-del { top: 6px; left: auto; right: 6px; width: 28px; height: 28px; }
.cg-grid .clip-tile .clip-del svg { width: 14px; height: 14px; }
.cg-edit {
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.cg-edit:hover { border-color: rgba(255, 255, 255, 0.6); }
@media (min-width: 640px) {
  .cg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .cgroup summary { padding: 12px 16px; }
  .cg-body { padding: 2px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .cg-chev { transition: none; } }

/* Add clips dialog: pick the game (recent ones or a new one), then where the clips come from. */
.game-choices { display: grid; gap: 8px; }
.game-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.game-opt:has(input:checked) { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.game-opt > span { display: grid; gap: 1px; min-width: 0; }
.game-opt b { color: #fff; font-weight: 700; font-size: 0.95rem; }
.game-opt small { color: var(--muted); font-size: 0.78rem; }
.new-game { display: grid; gap: 12px; }
.new-game[hidden], .up-opt[hidden], .game-choices[hidden] { display: none; }
.up-opts { display: grid; gap: 10px; margin-top: 4px; }
.up-opt { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 1rem; font-weight: 700; cursor: pointer; }
.primary.up-opt { color: var(--on-team); }
.ghost.up-opt { color: var(--ink); }
.up-opts .up-hint { margin: 0; text-align: center; color: var(--muted); font-size: 0.8rem; }
#addClips.over { outline: 2px dashed rgba(255, 255, 255, 0.6); outline-offset: -10px; }

/* Clip picker in the editor: the same game-day groups, as headings across the grid. */
.pick .pick-day { grid-column: 1 / -1; margin: 12px 0 0; font-size: 0.9rem; font-weight: 700; color: #fff; }
.pick .pick-day:first-child { margin-top: 0; }
.pick .pick-day span { margin-left: 6px; font-weight: 500; color: var(--muted); }
.up-note { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; text-align: center; }
.up-note[hidden] { display: none; }

/* Create New Highlight: background video 25% lighter than before (brightness 0.25 -> 0.3125). */
#newHighlight .nh-video { filter: brightness(0.3125); }

/* ================= Upload progress panel =================
   A bottom sheet over a dimmed page (not a modal <dialog>, so the phone's picker isn't blocked). */
.up-panel { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.65); }
.up-panel[hidden] { display: none; }
body.up-open { overflow: hidden; }
.up-card {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  border-top: 1.5px solid var(--line);
  background: var(--solid);
  color: var(--ink);
}
@media (min-width: 640px) { .up-panel { align-items: center; } .up-card { border-radius: 18px; border: 1px solid var(--line); padding: 24px; } }
.up-card h2 { font-family: var(--body); font-size: 1.25rem; font-weight: 800; }
.up-sub { margin: -6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.up-sub[hidden], .up-total[hidden] { display: none; }
.up-total { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.up-total span { display: block; height: 100%; width: 0; background: var(--team); transition: width 0.3s ease; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.up-list:empty { display: none; }
.up-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 0.85rem; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
.up-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.up-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.85); transition: width 0.3s ease; }
.up-state { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.up-item[data-state="done"] .up-state { color: #fff; }
.up-item[data-state="fail"] .up-state { color: var(--danger); }
.up-item[data-state="fail"] .up-bar span { background: var(--danger); }
#upActions.one { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .up-total span, .up-bar span { transition: none; } }

/* ================= Players page =================
   One row per player: a badge in the team's main color with the jersey number (or initials),
   name, "#12 · Forward · Hawks", the logo. The form reuses the editor's fields. */
.pl-view[hidden] { display: none; }
.pl-view { display: grid; gap: 14px; }
.player-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.player-list .empty { color: var(--muted); padding: 4px 0 6px; line-height: 1.5; }
.pl-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  background: #000;
  color: #fff;
  text-decoration: none;
}
.pl-row:hover { border-color: rgba(255, 255, 255, 0.5); }
.pl-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.pl-text { display: grid; gap: 2px; min-width: 0; }
.pl-text b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-text span { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-logo { height: 36px; width: auto; max-width: 64px; object-fit: contain; }
.pl-chev { color: var(--muted); }
#players .add-row { text-decoration: none; }
/* Number is short, so it gets the narrow column. */
.two.num-row { grid-template-columns: minmax(84px, 0.6fr) 1.4fr; }
@media (max-width: 359px) { .two.num-row { grid-template-columns: 1fr; } }
.pf-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }
.pf-delete { justify-self: center; color: var(--muted); margin-top: 4px; }
.pf-delete:hover { color: #fff; }
#playerForm h1 { overflow-wrap: anywhere; }

/* ================= Player form: Player info, then Teams =================
   Each team is a card (sport, team name, number, position, colors, logo); "+ Add another team" adds one. */
.pf-sect { display: grid; gap: 12px; }
.pf-sect + .pf-sect { margin-top: 10px; }
.pf-sect h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.team-cards { display: grid; gap: 12px; }
.team-card { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-lg); background: #000; }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.team-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.team-remove { color: var(--muted); }
.team-remove:hover { color: #fff; }
.team-card select {
  width: 100%;
  min-height: var(--tap);
  margin-top: 4px;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23bdbdbd%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
#pfAddTeam[hidden] { display: none; }

/* ================= Team cards collapse once saved =================
   Closed: one row like the Players list (badge, "Basketball · Falcons", "#4 · Point guard", logo, Edit).
   Open: the row stays on top and the fields show below it. */
.team-card { padding: 0; gap: 0; }
.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 68px;
  cursor: pointer;
  list-style: none;
}
.team-row::-webkit-details-marker { display: none; }
.team-row::marker { content: ""; }
.team-sum { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.team-edit { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.team-edit svg { transition: rotate 0.2s ease; }
.team-card[open] .team-edit svg { rotate: 180deg; }
.team-card:not([open]) .te-close, .team-card[open] .te-open { display: none; }
.team-row:hover .team-edit { color: #fff; }
.team-card:has(.team-row:hover):not([open]) { border-color: rgba(255, 255, 255, 0.45); }
.team-body { display: grid; gap: 12px; padding: 4px 14px 14px; }
.team-card[open] .team-row { border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 10px; }
.team-remove { justify-self: start; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .team-edit svg { transition: none; } }

/* ================= Neutral player badge =================
   A player can be on several teams with different colors, so their own badge on the Players list is
   neutral grey with initials. Team rows and team choices keep each team's color. */
.pl-badge-neutral { background: #2a2a2a; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); font-size: 1rem; letter-spacing: 0.02em; }

/* ================= Whose screen: the player's name on top of the home screen =================
   Tap the name (with its chevron) to switch player or add one. The current player is marked white. */
.ps-title { margin: 0 0 18px; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.1; }
.player-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.player-switch #psName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-switch svg { flex: none; color: var(--muted); transition: color 0.15s ease; }
.player-switch:hover svg { color: #fff; }
.choice.current { border-left-color: #fff; }
@media (min-width: 1000px) { .ps-title { margin-bottom: 24px; } }

/* ================= One-tap choice sheet (Switch player, Who is this for, Which team) =================
   A plain list: no boxes or color bars, thin dividers between rows. The current player gets a white
   check; a team shows a small dot in its color. "Add a player" is a quiet row; Cancel is plain text. */
#playerPick form { gap: 6px; }
#playerPick h2 { margin-bottom: 6px; }
#playerPick:focus { outline: none; }
#playerPick .choices { gap: 0; }
#playerPick .choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
#playerPick .choice:hover, #playerPick .choice:active { background: rgba(255, 255, 255, 0.04); }
#playerPick .choice:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; border-radius: 8px; }
#playerPick .ch-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
#playerPick .ch-text b { font-size: 1.05rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playerPick .ch-text span { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playerPick .ch-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
#playerPick .ch-check { flex: none; color: #fff; }
#playerPick .choice.add { border-bottom: 0; color: var(--muted); }
#playerPick .choice.add .ch-text b { font-weight: 600; color: inherit; }
#playerPick .choice.add .ch-text b::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 400; }
#playerPick .choice.add:hover b { color: #fff; }
#playerPick button[value="cancel"] { border: 0; background: none; color: var(--muted); min-height: 48px; margin-top: 4px; font-weight: 600; }
#playerPick button[value="cancel"]:hover { color: #fff; }

/* ================= Plan page and upgrade prompt =================
   What the family is on, usage meters (white bars), a Season pass / Yearly / Monthly toggle
   (the chosen one is solid white) and the Solo and Family cards. Red only on the main button. */
.plan-now { display: grid; gap: 6px; justify-items: start; }
.pn-name { margin: 0; font-size: 1.5rem; font-weight: 800; }
.pn-line { margin: 0; color: var(--muted); line-height: 1.45; }
.plan-now .ghost { margin-top: 8px; }
.plan-use { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 14px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 0.92rem; }
.m-label { color: #fff; font-weight: 600; }
.m-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.m-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.m-bar span { display: block; height: 100%; background: rgba(255, 255, 255, 0.85); }
.meter.full .m-val { color: #fff; }
.plan-pick { display: grid; gap: 12px; }
.plan-pick[hidden] { display: none; }
.plan-pick h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.bill-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.bill-toggle button { min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.bill-toggle button.on { background: #fff; color: #000; }
#billNote { margin: 0; }
.plan-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .plan-cards { grid-template-columns: 1fr 1fr; } }
.plan-card { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-lg); background: #000; }
.plan-card.lead { border-color: rgba(255, 255, 255, 0.42); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.pc-save { font-size: 0.78rem; font-weight: 700; color: #000; background: #fff; border-radius: 999px; padding: 3px 9px; }
.pc-price { margin: 0; }
.pc-price b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.pc-price span { color: var(--muted); }
.pc-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 7px; color: #ddd; font-size: 0.92rem; line-height: 1.35; }
.pc-list li { padding-left: 18px; position: relative; }
.pc-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
.plan-card .wide { width: 100%; }
#planMsg { margin-top: 4px; }
#planTestEnd { color: var(--muted); }
#paywall .sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
#paywall:focus { outline: none; }

/* ================= Sign-in page: sample reel + one email box =================
   Phone: logo, the sample highlight (muted loop), "You catch the moment. We cut the film.", the
   offer, the email box and "Make my highlight". Desktop (1000px+): the reel inside a phone outline on
   the left; a bigger logo, the tagline and the form on the right. Solid black, no montage behind. */
body.auth-mode::before { background: #000; }
body.auth-mode::after { background: none; }
.auth { max-width: 420px; min-height: 100svh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) var(--gutter) max(26px, env(safe-area-inset-bottom)); display: grid; align-content: center; gap: 18px; }
.auth-logo .logo-glass { width: 172px; }
.auth-reel { display: flex; justify-content: center; }
.reel-device { position: relative; width: min(100%, calc(48svh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #111 url("/demo-tall.jpg") center / cover; }
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.reel-tag { position: absolute; bottom: 10px; right: 10px; font-size: 0.72rem; font-weight: 600; color: #ddd; background: rgba(0, 0, 0, 0.6); padding: 3px 9px; border-radius: 999px; }
.auth-copy { display: grid; gap: 10px; text-align: center; }
.auth-tagline { margin: 0; font: 800 clamp(1.45rem, 6.4vw, 1.75rem)/1.15 var(--body); letter-spacing: -0.01em; color: #fff; }
.auth-offer { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; text-wrap: balance; }
.auth .auth-form { gap: 10px; }
.auth .auth-form .primary { min-height: 50px; font-size: 1.02rem; font-weight: 700; border-radius: 12px; }
.auth .auth-form input:not([type="checkbox"]):not([type="radio"]) { min-height: 50px; border-radius: 12px; font-size: 16px; }
.auth .auth-form label { text-align: left; }
.auth .auth-form label > span.sr + input { margin-top: 0; }
.auth .switch { font-size: 0.85rem; color: var(--muted); text-wrap: balance; }
.auth-who { margin: 0; font-size: 0.92rem; color: #fff; }
.auth-who .link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; margin-left: 6px; }
.auth .note { margin: -4px 0 0; text-align: left; }
@media (min-width: 1000px) {
  .auth {
    max-width: 1180px;
    padding: 48px 64px;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "reel logo" "reel copy";
    column-gap: clamp(56px, 8vw, 110px);
    row-gap: 26px;
    align-content: center;
  }
  .auth-logo { grid-area: logo; align-self: end; }
  .auth-logo .logo-glass { width: 290px; margin: 0; }
  .auth-reel { grid-area: reel; }
  .reel-device { --pw: 340px; width: var(--pw); height: calc((var(--pw) - 28px) * 16 / 9 + 28px); padding: 12px; box-sizing: border-box; border-radius: 52px; border: 2px solid #3a3a3a; background: #0b0b0b; aspect-ratio: auto; }
  .reel-device .reel-video { border-radius: 40px; background: #111 url("/demo-tall.jpg") center / cover; }
  .reel-device::before { content: ""; position: absolute; top: 24px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 2; }
  .reel-tag { bottom: 28px; right: 26px; }
  .auth-copy { grid-area: copy; align-self: start; text-align: left; gap: 14px; }
  .auth-tagline { font-size: clamp(2.2rem, 3vw, 2.65rem); white-space: nowrap; }
  .auth-offer { font-size: 1.12rem; margin-bottom: 10px; text-wrap: initial; }
  .auth .switch, .auth-who { text-align: left; }
}
@media (min-width: 1000px) and (max-height: 820px) { .reel-device { --pw: 290px; } }

/* ================= Sign-in: gradient background and a realistic phone =================
   The page fades from dark gray to black (pure neutral greys). On desktop the sample plays inside a
   phone: graphite edge, thin black bezel, side buttons, Dynamic Island, status bar, home bar, and the
   9:16 reel centred on a taller 19.5:9 screen the way a Reel plays on a real iPhone. On phones it's
   just the video. */
body.auth-mode::before { background: radial-gradient(ellipse 120% 70% at 50% 28%, #262626 0%, #121212 48%, #000 100%); }
.dev-btn, .dev-status, .dev-island, .dev-home { display: none; }
.dev-screen { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
@media (min-width: 1000px) {
  body.auth-mode::before { background: radial-gradient(ellipse 55% 80% at 28% 50%, #2b2b2b 0%, #151515 46%, #000 100%); }
  .reel-device {
    --s: 290px;
    width: calc(var(--s) + 28px);
    height: calc(var(--s) * 19.5 / 9 + 28px);
    padding: 4px;
    border: 0;
    border-radius: 60px;
    aspect-ratio: auto;
    overflow: visible;
    background: linear-gradient(140deg, #6a6a6a 0%, #2c2c2c 16%, #1b1b1b 48%, #2e2e2e 80%, #707070 100%);
    box-shadow: 0 0 0 1px #050505, inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 70px 110px -40px rgba(0, 0, 0, 0.95), 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  }
  .reel-device::before { display: none; }
  .dev-screen { width: auto; height: 100%; border: 10px solid #050505; border-radius: 56px; background: #000; box-sizing: border-box; }
  .reel-device .reel-video { position: absolute; left: 0; top: calc(var(--s) * 3.5 / 18); width: 100%; height: calc(var(--s) * 16 / 9); border-radius: 0; object-fit: cover; background: #111 url("/demo-tall.jpg") center / cover; }
  .dev-status { display: flex; position: absolute; top: 0; left: 0; right: 0; height: calc(var(--s) * 3.5 / 18); align-items: center; justify-content: space-between; padding: 0 26px 0 30px; color: #fff; font: 600 15px/1 var(--body); letter-spacing: 0.01em; }
  .dev-icons { display: flex; align-items: center; gap: 5px; }
  .dev-icons svg { fill: currentColor; color: #fff; display: block; }
  .dev-island { display: block; position: absolute; top: 11px; left: 50%; width: 94px; height: 28px; margin-left: -47px; border-radius: 16px; background: #000; box-shadow: inset 0 0 0 1px #141414; z-index: 2; }
  .dev-island::after { content: ""; position: absolute; right: 12px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c2c2c, #0a0a0a 70%); }
  .dev-home { display: block; position: absolute; bottom: 9px; left: 50%; width: 108px; height: 5px; margin-left: -54px; border-radius: 3px; background: rgba(255, 255, 255, 0.88); }
  .reel-device .reel-tag { bottom: calc(var(--s) * 3.5 / 18 + 10px); right: 12px; }
  .dev-btn { display: block; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2a2a, #5c5c5c 60%, #3a3a3a); }
  .dev-action { left: -3px; top: 104px; height: 30px; }
  .dev-vup { left: -3px; top: 154px; height: 56px; }
  .dev-vdown { left: -3px; top: 222px; height: 56px; }
  .dev-power { right: -3px; left: auto; top: 186px; height: 90px; background: linear-gradient(270deg, #2a2a2a, #5c5c5c 60%, #3a3a3a); }
}
@media (min-width: 1000px) and (max-height: 820px) { .reel-device { --s: 250px; } }
/* The phone and the text sit together as one centred group on desktop. */
@media (min-width: 1000px) { .auth { grid-template-columns: auto 440px; justify-content: center; column-gap: 72px; } }

/* ================= Sign-in on phones: full-screen clean edit =================
   Under 1000px the black-and-white montage (bg-tall.mp4, footage only, no player graphics) fills the
   screen like a Reel: story bars and Sign in on top, the logo under them, and the headline, offer,
   email box and button at the bottom over a fade to black. Desktop keeps the sample inside the phone. */
.auth-top { display: none; }
@media (max-width: 999px) {
  .auth { position: relative; max-width: none; min-height: 100svh; padding: 0 22px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
  .auth-reel { position: fixed; inset: 0; z-index: 0; display: block; }
  .reel-device { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; background: #000 url("/bg-tall.jpg") center 20% / cover; }
  .dev-screen { border-radius: 0; }
  .reel-video { object-fit: cover; object-position: 50% 20%; }
  .reel-tag { display: none; }
  .auth-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 14%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.78) 60%, #000 80%); }
  .auth-top { display: block; position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: 16px; right: 16px; }
  .story-bars { display: flex; gap: 4px; }
  .story-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
  .story-bar span { display: block; height: 100%; width: 0; background: #fff; }
  .auth-signin { position: absolute; right: 0; top: 14px; min-height: 40px; padding: 8px 4px; border: 0; background: none; color: #fff; font: 600 0.98rem var(--body); cursor: pointer; }
  .auth-logo { position: absolute; z-index: 2; top: calc(max(10px, env(safe-area-inset-top)) + 22px); left: 16px; }
  .auth-logo .logo-glass { width: 132px; margin: 0; }
  .auth-copy { position: relative; z-index: 1; text-align: left; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; }
  .auth-tagline { font-size: clamp(1.45rem, 7.3vw, 2.15rem); line-height: 1.08; letter-spacing: -0.02em; }
  .auth-offer { text-wrap: initial; color: #bdbdbd; }
  .auth .auth-form input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
  #startForm .switch { display: none; }
  #startForm.show-hint .switch { display: block; }
  .auth .switch, .auth-who { text-align: left; }
}

/* ================= Terms agreement checkbox (sign-up and the agree sheet) ================= */
.check.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.88rem; line-height: 1.45; color: #cfcfcf; text-align: left; cursor: pointer; }
.check.agree input { margin-top: 1px; }
.check.agree a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#termsSheet form { gap: 14px; }
#termsSheet:focus { outline: none; }

/* ================= No focus rings from taps on touch screens =================
   iPhone Safari shows the keyboard focus ring after a plain tap (the My Highlights carousel spans the
   screen, so it showed as two full-width lines). On touch screens only text fields keep a focus cue
   (their own border); everything else drops the ring. Keyboards and mice still get it. */
@media (hover: none) and (pointer: coarse) {
  :focus, :focus-visible { outline: none !important; }
  .carousel:focus, .carousel:focus-visible, summary:focus, summary:focus-visible, .tile-link:focus-visible, .clip-tile:focus-visible, .choice:focus-visible { outline: none !important; box-shadow: none; }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ================= "+ Add Clips" beside the Clips heading on phones =================
   Phones: a compact outlined pill at the right of the heading. 640px and up: it drops below the
   heading as the full-width row it was before. */
.clips-head { flex-wrap: wrap; }
.clips-head #addClipsBtn { width: auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: 0.95rem; gap: 6px; white-space: nowrap; max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.clips-head #addClipsBtn .add-plus { font-size: 1.15rem; }
@media (min-width: 640px) {
  .clips-head #addClipsBtn { flex: 1 0 100%; width: 100%; max-width: none; min-height: 56px; border-radius: var(--r-lg); font-size: 1rem; }
  .clips-head #addClipsBtn .add-plus { font-size: 1.4rem; }
}
/* Phones: "+ Add Clips" is a small square-cornered dark gray button with no border. */
@media (max-width: 639px) {
  .clips-head #addClipsBtn { border: 0; border-radius: 0; background: #262626; color: #fff; min-height: 34px; padding: 7px 12px; font-size: 0.82rem; font-weight: 600; gap: 5px; }
  .clips-head #addClipsBtn .add-plus { font-size: 1rem; }
  .clips-head #addClipsBtn:hover:not(:disabled), .clips-head #addClipsBtn:active { background: #303030; }
}

/* ================= Home screen (approved comps) =================
   Under the logo bar: a full-width player bar (initials, name, down arrow). Then "My Highlights" with a
   red square "+ Create Highlight" and "My Clips" with a gray square "+ Add Clips". The carousel lets the
   next card peek; cards show the date; clips are a plain list with hairline dividers. A player with no
   highlights sees "Get started": two numbered steps instead. */
@media (max-width: 639px) {
  .bar { min-height: 48px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .bar .brand img { height: 24px; }
}
#library .player-bar {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% + 2 * var(--gutter)); margin: -18px calc(-1 * var(--gutter)) 22px;
  min-height: 56px; padding: 10px var(--gutter); box-sizing: border-box;
  background: #141414; border: 0; border-top: 1px solid #1f1f1f; border-bottom: 1px solid #1f1f1f;
  color: #fff; font: inherit; text-align: left; cursor: pointer;
}
#library .player-bar:hover { background: #181818; }
.pb-ini { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2e2e2e; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.pb-name { flex: 1; min-width: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#library .player-bar svg { flex: none; }
#library .lib-sect { margin: 0 0 12px; }
#library .lib-sect .sect { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
#libClips { margin-top: 6px; }
#libClips[hidden], #libMain[hidden] { display: none; }
/* The two small square buttons. */
.sq-btn, #library .clips-head #addClipsBtn {
  flex: none; width: auto; max-width: none; height: 44px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 0;
  font-size: 0.9rem; font-weight: 700; white-space: nowrap; letter-spacing: 0;
}
.sq-btn .sq-plus, #library .clips-head #addClipsBtn .add-plus { font-size: 1.15rem; font-weight: 400; line-height: 1; }
#library .clips-head #addClipsBtn { background: #2a2a2a; color: #fff; }
#library .clips-head #addClipsBtn:hover:not(:disabled) { background: #333; }
@media (min-width: 640px) { #library .clips-head #addClipsBtn { flex: none; width: auto; border-radius: 0; font-size: 0.9rem; } }
/* Highlights carousel: the next card peeks; dates under titles; small corners, light outlines. */
@media (max-width: 639px) { #library .carousel { grid-auto-columns: calc((100% - var(--gutter) - 2 * 10px) / 2.6); } }
#library .carousel .tile { border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
#library .tile .t1 { font-weight: 600; padding-bottom: 0; }
#library .tile .t2 { display: block; padding: 2px 10px 9px; font-size: 0.72rem; color: var(--muted); }
@media (max-width: 639px) { #library .carousel .tile .t1 { padding: 8px 8px 0; } #library .tile .t2 { padding: 2px 8px 8px; } }
.car-foot { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 12px 0 26px; min-height: 8px; }
.car-foot .car-dots { margin: 0; }
/* Clips: one list with hairline dividers, no box around each game. */
#library .clip-groups { gap: 0; margin-top: 0; border-top: 1px solid #1d1d1d; }
#library .cgroup { border: 0; border-radius: 0; background: none; border-bottom: 1px solid #1d1d1d; }
#library .cgroup summary { padding-left: 0; padding-right: 0; }
#library .cgroup summary:hover { background: none; }
#library .cg-title { font-weight: 600; }
#library .cg-thumb { border-radius: 6px; }
#library .cg-body { padding-left: 0; padding-right: 0; }
#library .cg-empty { padding: 14px 0; }
/* Get started: two steps in order. */
.get-started[hidden] { display: none; }
.gs-title { margin: 6px 0 4px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.gs-lead { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.gs-link { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gs-link.inline { display: inline; margin: 0 0 0 4px; }
.gs-link[hidden] { display: none; }
.gs-steps { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #1d1d1d; }
.gs-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid #1d1d1d; }
.gs-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; font-weight: 800; background: #fff; color: #000; }
#gsStep2:not(.ready) .gs-num { background: #262626; color: #9a9a9a; }
.gs-body { display: grid; justify-items: start; gap: 4px; }
.gs-body b { font-size: 1.08rem; font-weight: 700; margin-top: 3px; }
.gs-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.gs-body .sq-btn { margin-top: 10px; }
.gs-body .sq-btn[hidden], .gs-free[hidden] { display: none; }
.gs-free { margin-top: 6px; font-size: 0.82rem; color: #cfcfcf; }
/* The old big Create box rules (#newHighlight) no longer apply: it's the small red square button now. */
#library.page { padding-top: 0; }
#library .player-bar { margin-top: 0; }
#library #newHighlight.sq-btn {
  position: static; overflow: visible; min-height: 44px; height: 44px; width: auto; padding: 0 14px;
  border: 0; border-radius: 0; background: var(--team); color: #fff; font-size: 0.9rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-shadow: none; filter: none;
}
#library #newHighlight.sq-btn::before { content: none; }
#library #newHighlight.sq-btn:hover, #library #newHighlight.sq-btn:active { background: #c40418; }
#getStarted .sq-btn.primary { background: var(--team); color: #fff; border-radius: 0; min-height: 44px; }
#getStarted .sq-btn.primary:hover { background: #c40418; }

/* ================= Sign-in desktop: the phone angled toward the viewer =================
   A gentle 3D turn (the video turns with the screen, so it warps like a real display), with the
   shadow pushed to the far side. Reduced motion doesn't matter here: it's a still pose. */
@media (min-width: 1000px) {
  .auth-reel { perspective: 1700px; perspective-origin: 60% 45%; }
  .reel-device {
    transform: rotateY(20deg) rotateX(5deg) rotateZ(-2deg);
    transform-origin: 50% 50%;
    box-shadow: 0 0 0 1px #050505, inset 0 0 0 1px rgba(255, 255, 255, 0.2), -36px 60px 90px -30px rgba(0, 0, 0, 0.95), -12px 26px 50px -24px rgba(0, 0, 0, 0.7);
  }
}
/* Desktop sign-in phone: 15% bigger, turned toward the viewer only (no tilt or lean). */
@media (min-width: 1000px) {
  .reel-device { --s: 334px; transform: rotateY(20deg); }
}
@media (min-width: 1000px) and (max-height: 900px) { .reel-device { --s: min(334px, calc((100svh - 120px - 28px) * 9 / 19.5)); } }

/* ================= Trim (clip viewer) =================
   Two handles on one track under the video; the kept part is the light band. Never cuts the file. */
.pl-trim { display: grid; gap: 10px; padding: 14px 16px 16px; }
.pl-trim[hidden] { display: none; }
.trim-label { margin: 0; font-size: 0.88rem; color: #cfcfcf; }
.trim-track { position: relative; height: 44px; border-radius: 6px; background: #1c1c1c; }
.trim-fill { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); border-radius: 4px; pointer-events: none; }
.trim-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0; background: none; border: 0; -webkit-appearance: none; appearance: none; pointer-events: none; }
.trim-track input[type="range"]::-webkit-slider-runnable-track { background: none; height: 44px; }
.trim-track input[type="range"]::-moz-range-track { background: none; height: 44px; }
.trim-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 44px; border-radius: 4px; background: #fff; cursor: ew-resize; box-shadow: 0 0 0 1px #000; }
.trim-track input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 44px; border-radius: 4px; background: #fff; border: 0; cursor: ew-resize; }
.trim-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.85rem; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.trim-reset { border: 0; background: none; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
.trim-reset[hidden] { display: none; }
.trim-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.trim-actions .sq-btn { justify-content: center; width: 100%; background: var(--team); color: #fff; }
.trim-actions .ghost { min-height: 44px; border-radius: 0; }
.clip-tile .dur.trimmed { background: rgba(0, 0, 0, 0.78); color: #fff; }
.clip .icon.trim { font-size: 0.95rem; }
/* Editor clip rows now have four buttons (up, down, trim, remove): two by two on phones. */
.order { grid-template-columns: repeat(4, 44px); }
@media (max-width: 480px) { .order { grid-template-columns: repeat(2, 40px); gap: 5px; } .order .icon { width: 40px; height: 40px; min-height: 40px; } }

/* ================= Desktop home screen (approved comp) =================
   One top bar: logo, the player switch, then the nav. Below it, two columns: My Highlights as a grid
   (button beside the heading) and My Clips as a narrow list on the right. Phones are unchanged. */
html { background: #000; }
.desk-player { display: none; }
@media (min-width: 1000px) {
  .bar { grid-template-columns: auto auto 1fr; gap: 26px; }
  .desk-player:not([hidden]) {
    grid-column: 2; position: relative; display: flex; align-items: center; gap: 10px; max-width: 360px;
    padding: 6px 12px 6px 6px; border: 0; background: rgba(22, 22, 22, 0.9); color: #fff; font: inherit; cursor: pointer;
  }
  .desk-player::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 1px; background: #2a2a2a; }
  .desk-player:hover { background: #1f1f1f; }
  .dp-name { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desknav:not([hidden]) { grid-column: 3; }
  #library .player-bar { display: none; }
  #library.page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; align-items: start; padding-top: 34px; }
  #getStarted, #libMain { grid-column: 1; grid-row: 1; }
  #libClips { grid-column: 2; grid-row: 1; margin-top: 0; padding-left: 32px; border-left: 1px solid #1a1a1a; min-height: 100%; }
  #libMain .lib-sect { justify-content: flex-start; gap: 18px; }
  #libMain .lib-sect .sect { margin-right: 0; }
  #libClips .lib-sect { justify-content: space-between; }
  #library .lib-sect .sect { font-size: 1.5rem; }
  /* Highlights: a grid of cards instead of a carousel. */
  #library .carousel {
    display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-columns: initial;
    gap: 14px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none;
  }
  #library .car-foot { display: none; }
  #library .tile .t1 { font-size: 0.92rem; padding: 10px 12px 0; }
  #library .tile .t2 { padding: 2px 12px 12px; font-size: 0.78rem; }
  /* Clips in the narrow column. */
  #library .cg-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ================= Top bar: a quiet gradient instead of the video texture =================
   Dark gray at the top fading to near-black, pure neutral greys, with a hairline under it. */
.bar {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
  border-bottom: 1px solid #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
/* Top bar: darker, and no line under it. */
.bar { background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%) !important; border-bottom: 0 !important; box-shadow: none !important; }

/* ================= Desktop home, round 2 (approved comp) =================
   The top bar shares the page's 1200px grid, so the logo lines up with "My Highlights" and the nav
   ends where My Clips ends. No column divider; both section buttons sit beside their heading.
   Highlight cards get a play badge and the video's length; delete moves into a ⋯ menu.
   A "Next highlight" card offers the newest game that has clips but no highlight yet. */
.cg-meta { gap: 6px; }
.cg-meta span + span::before { content: "/"; margin-right: 6px; color: #555; }
.tile-play, .tile-len, .tile-btn.more, .next-tile { display: none; }
@media (min-width: 1000px) {
  .bar { padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); }
  .desknav:not([hidden]) { margin-right: -14px; }
  #deskLogout, #deskLogout:hover { margin-left: 0; border: 0; color: var(--muted); }
  #deskLogout:hover { color: var(--ink); }
  #library.page { column-gap: 72px; }
  #libClips { padding-left: 0; border-left: 0; }
  #libClips .lib-sect { justify-content: flex-start; gap: 18px; }
  #library .lib-sect .sect { font-size: 1.62rem; }
  #library .carousel { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

  /* Highlight card: picture, then title and date, with ⋯ beside them. */
  #library .tile .tile-link > img, #library .tile .tile-link > .blank { grid-area: 1 / 1; aspect-ratio: 9 / 14; }
  #library .tile .t1 { grid-row: 2; grid-column: 1; padding-right: 44px; }
  #library .tile .t2 { grid-row: 3; grid-column: 1; padding-right: 44px; }
  #library .tile .tile-progress { grid-area: 1 / 1; }
  .tile-play {
    display: grid; place-items: center; grid-area: 1 / 1; align-self: end; justify-self: start; margin: 10px;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); color: #fff;
  }
  .tile-play svg { margin-left: 2px; }
  .tile-len {
    display: block; grid-area: 1 / 1; align-self: end; justify-self: end; margin: 10px;
    padding: 3px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
  }
  .tile.making .tile-play, .tile.making .tile-len { display: none; }
  #library .tile-btn.del { display: none; }
  #library .tile-btn.more {
    display: grid; top: auto; bottom: 9px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 8px;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #9a9a9a;
  }
  #library .tile-btn.more:hover, #library .tile-btn.more[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); color: #fff; }

  /* Next highlight: the game's first clip in black and white, darkened, with the red button. */
  .next-tile { display: grid; position: relative; border-radius: 8px; overflow: hidden; background: #0c0c0c; border: 1px solid rgba(255, 255, 255, 0.08); }
  .nt-pic { position: relative; }
  .nt-pic img { display: block; width: 100%; aspect-ratio: 9 / 14; object-fit: cover; filter: grayscale(1) brightness(0.38); }
  .nt-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px 14px; }
  .nt-kick { font-size: 0.78rem; font-weight: 600; color: #bdbdbd; }
  .nt-title { margin: 4px 0 2px; font-size: 1.12rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
  .nt-sub { margin-bottom: 14px; font-size: 0.8rem; color: #9a9a9a; }
  .nt-make { min-height: 40px; padding: 0 14px; font-size: 0.85rem; }
  .nt-foot { display: grid; padding: 10px 12px 12px; }
  .nt-foot b { font-size: 0.92rem; font-weight: 600; color: #9a9a9a; }
  .nt-foot span { font-size: 0.78rem; color: #6f6f6f; padding-top: 2px; }
}

/* The ⋯ menu on a highlight card. */
.card-menu {
  position: fixed; z-index: 60; min-width: 180px; padding: 6px; border-radius: 10px; background: #161616;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 36px rgba(0, 0, 0, 0.6);
}
.card-menu[hidden] { display: none; }
.card-menu > * { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: #fff; font: 600 0.9rem/1.2 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.card-menu > *:hover { background: #232323; }
.card-menu .cm-del { color: var(--danger); }

/* ================= Desktop: the player's name is the page title (option A) =================
   The top bar is only the logo and the nav. On the home screen, "Tucker Hogancamp ⌄" sits big at the
   top of the page with the player's teams under it; tapping it switches player. Phones keep their bar. */
.desk-title { display: none; }
@media (min-width: 1000px) {
  .desk-player:not([hidden]) { display: none; }
  .desk-title { display: block; grid-column: 1 / -1; grid-row: 1; margin: 0 0 30px; }
  #getStarted, #libMain { grid-row: 2; }
  #libClips { grid-row: 2; }
  #dtSwitch {
    display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
    font: 800 2.5rem/1.1 var(--body); letter-spacing: -0.02em; text-align: left; max-width: 100%;
  }
  #dtName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #dtSwitch svg { flex: none; color: #8d8d8d; margin-top: 4px; }
  #dtSwitch:hover svg { color: #fff; }
  #dtSub { margin: 6px 0 0; color: #8d8d8d; font-size: 0.9rem; white-space: pre; }
  #dtSub:empty { display: none; }
  #library .lib-sect .sect { font-size: 1.3rem; }
}

/* ================= Get started: no lines =================
   The numbered steps are separated by space alone, no hairlines above, between or under them. */
.gs-steps { border-top: 0; display: grid; gap: 30px; margin-top: 26px; }
.gs-step { border-bottom: 0; padding: 0; }

/* ================= Get started: the heading as a notification box =================
   Only the title and the line under it sit in a dark grey panel with soft corners and a faint edge.
   The steps below stay as they were. */
.gs-note { background: #111; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 18px 20px; }
.gs-note .gs-title { margin: 0 0 4px; }
.gs-note .gs-lead { margin: 0; }
@media (min-width: 1000px) { .gs-note { max-width: 620px; padding: 22px 26px; } }

/* ================= Get started: the clips added so far, as thumbnails under "Clips added" ================= */
.gs-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; width: 100%; margin-top: 12px; }
.gs-thumbs[hidden] { display: none; }
.gs-thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #111; cursor: pointer; }
.gs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-thumb .dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.68rem; font-weight: 700; }
@media (min-width: 1000px) { .gs-thumbs { grid-template-columns: repeat(auto-fill, 88px); max-width: 560px; } }

/* ================= Get started: a finished step is a white check on a green circle ================= */
.gs-step.done .gs-num { background: #1fa34a; color: #fff; }

/* ================= Get started: the clip thumbnails are one row =================
   As many as fit, then a "+N" tile (layoutThumbs() in app.js), so step 2 never moves down. */
.gs-thumbs:not([hidden]) { display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.gs-thumb { flex: none; width: 56px; height: 56px; aspect-ratio: auto; }
.gs-more { display: grid; place-items: center; padding: 0; border: 0; background: #1c1c1c; color: #e6e6e6; font: 700 0.92rem var(--body); cursor: pointer; }
.gs-more:hover { background: #262626; }
@media (min-width: 1000px) { .gs-thumb { width: 64px; height: 64px; } }
#libClips { scroll-margin-top: 76px; }

/* ================= Get started side panel (approved comp) =================
   Tapping a clip opens the trimmer; "Make my highlight" opens the quick builder. Desktop: a panel in the
   right column. Phones: a sheet that slides up from the bottom over a dark backdrop. */
.gs-panel { background: #0d0d0d; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 18px 20px 20px; }
.gs-panel[hidden], .gs-back[hidden], #gpTrim[hidden], #gpBuild[hidden] { display: none; }
.gp-grab { display: none; }
.gp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gp-head h3 { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.gp-x, .gp-ar { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #1c1c1c; color: #cfcfcf; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gp-x { margin-left: auto; }
.gp-x:hover, .gp-ar:hover { background: #262626; color: #fff; }
.gp-ar[hidden] { display: none; }
.gp-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; object-fit: contain; }
.gp-track { margin-top: 14px; }
#gpTrim .trim-info { margin-top: 8px; }
.gp-acts { display: flex; gap: 10px; margin-top: 14px; }
.gp-acts .sq-btn { background: var(--team); color: #fff; border-radius: 0; min-height: 44px; padding: 0 18px; justify-content: center; }
.gp-acts .ghost { min-height: 44px; border-radius: 0; }
.gp-acts .ghost[hidden] { display: none; }
.gp-hint { margin: 12px 0 0; color: #8d8d8d; font-size: 0.82rem; line-height: 1.45; }

.gp-field { display: grid; gap: 6px; margin: 0 0 16px; }
.gp-field > span { font-size: 0.78rem; font-weight: 600; color: #9a9a9a; }
#gpName { height: 42px; box-sizing: border-box; padding: 0 12px; border-radius: 8px; background: #161616; border: 1px solid #2a2a2a; color: #fff; font: 500 0.95rem var(--body); }
#gpName:focus { border-color: rgba(255, 255, 255, 0.5); outline: none; }
.gp-clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.gp-clip { display: grid; grid-template-columns: 26px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.gp-clip img { width: 52px; height: 34px; border-radius: 5px; object-fit: cover; display: block; background: #161616; }
.gp-on { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: #fff; color: #000; font: 800 0.7rem var(--body); cursor: pointer; }
.gp-on[aria-pressed="false"] { background: none; box-shadow: inset 0 0 0 1.5px #555; }
.gp-clip.off img { opacity: 0.35; }
.gp-cname { font-size: 0.86rem; color: #e6e6e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-clip.off .gp-cname { color: #6f6f6f; }
.gp-cut { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: #cfcfcf; font: 600 0.8rem var(--body); font-variant-numeric: tabular-nums; cursor: pointer; }
.gp-cut:hover { background: #1c1c1c; color: #fff; }
.gp-cut:disabled { opacity: 0.35; cursor: default; background: none; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip { height: 36px; padding: 0 12px; border-radius: 18px; border: 0; background: #161616; color: #cfcfcf; display: inline-flex; align-items: center; gap: 8px; font: 600 0.84rem var(--body); cursor: pointer; }
.gp-chip:hover { background: #1f1f1f; }
.gp-chip.on { background: #fff; color: #000; }
.gp-play { width: 20px; height: 20px; border-radius: 50%; background: #2a2a2a; color: #fff; display: grid; place-items: center; font-size: 0.55rem; }
.gp-chip.on .gp-play { background: #000; }
.gp-runtime { margin: 2px 0 12px; color: #9a9a9a; font-size: 0.82rem; }
.gp-make { width: 100%; justify-content: center; min-height: 46px; background: var(--team); color: #fff; border-radius: 0; }
.gp-make:disabled { opacity: 0.5; }
.gp-more { display: block; width: 100%; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: #bdbdbd; font: 500 0.84rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gp-more:hover { color: #fff; }
.gs-thumb.sel { box-shadow: 0 0 0 2px #fff; }

/* Phones and tablets: a sheet from the bottom. */
@media (max-width: 999px) {
  .gs-back:not([hidden]) { position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, 0.6); }
  .gs-panel:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 90dvh; overflow: auto;
    border-radius: 18px 18px 0 0; border: 0; background: #111; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); animation: gpUp 0.22s ease-out;
  }
  .gp-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #3a3a3a; margin: 0 auto 12px; }
  .gp-video { max-height: 40dvh; }
  body.gp-open { overflow: hidden; }
}
@keyframes gpUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gs-panel { animation: none !important; } }

/* Desktop: the right column, beside Get started, staying in view while the page scrolls. */
@media (min-width: 1000px) {
  #library.page:has(#getStarted:not([hidden])) { grid-template-columns: minmax(0, 1fr) 440px; }
  .gs-panel:not([hidden]) { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 84px; }
}

/* ================= Get started trimmer, option B (like iPhone Photos) =================
   No panel box: the video keeps its own shape (tall clips stand up to 600px on desktop), "Clip 3 of 5"
   and ✕ float on it, a round play button sits in the middle, and the trim bar made of the clip's own
   frames sits on the bottom of the video. Under it: the kept length, Reset, a red Done, and dots.
   Switching clips, or opening the builder, fades out and back in. */
.gs-panel { border: 0; }
@media (min-width: 1000px) {
  .gs-panel.is-trim { background: none; padding: 0; border-radius: 0; }
  .gs-panel { transition: opacity 0.14s ease; }
  .gs-panel.gp-fading { opacity: 0; }
}
@media (max-width: 999px) {
  .gs-panel .gp-body { transition: opacity 0.14s ease; }
  .gs-panel.gp-fading .gp-body { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .gs-panel, .gs-panel .gp-body { transition: none !important; } }

.gp-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; }
.gp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.gp-pill {
  position: absolute; top: 12px; z-index: 3; height: 32px; padding: 0 12px; border: 0; border-radius: 16px;
  display: inline-flex; align-items: center; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font: 600 0.8rem var(--body);
}
.gp-count { left: 12px; pointer-events: none; }
.gp-close { right: 12px; width: 32px; padding: 0; justify-content: center; cursor: pointer; }
.gp-close:hover { background: rgba(0, 0, 0, 0.75); }
.gp-playbtn {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 58px; height: 58px; margin: -38px 0 0 -29px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; transition: opacity 0.2s ease;
}
.gp-playbtn svg { margin-left: 3px; }
.gp-stage.playing .gp-playbtn { opacity: 0; pointer-events: none; }

/* The trim bar: the dimmed filmstrip, with the kept part shown bright inside a white frame. */
.gp-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; height: 46px; border-radius: 8px; overflow: hidden; background: #161616 0 0 / 100% 100% no-repeat; }
.gp-bar::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.gp-win { position: absolute; top: 0; bottom: 0; z-index: 1; border-radius: 7px; box-shadow: inset 0 0 0 3px #fff; background-repeat: no-repeat; pointer-events: none; }
.gp-win::before, .gp-win::after { content: ""; position: absolute; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: #fff; }
.gp-win::before { left: 7px; }
.gp-win::after { right: 7px; }
.gp-bar input[type="range"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 46px; margin: 0; padding: 0; background: none; border: 0; -webkit-appearance: none; appearance: none; pointer-events: none; }
.gp-bar input[type="range"]::-webkit-slider-runnable-track { background: none; height: 46px; }
.gp-bar input[type="range"]::-moz-range-track { background: none; height: 46px; }
.gp-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 24px; height: 46px; background: transparent; cursor: ew-resize; }
.gp-bar input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 24px; height: 46px; background: transparent; border: 0; cursor: ew-resize; }

.gp-meta { display: flex; align-items: center; gap: 14px; width: var(--sw, 100%); max-width: 100%; margin: 14px auto 0; }
#gpTimes { font-size: 0.9rem; color: #bdbdbd; font-variant-numeric: tabular-nums; }
.gp-reset { padding: 4px 0; border: 0; background: none; color: #fff; font: 600 0.85rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gp-reset[hidden] { display: none; }
.gp-done { margin-left: auto; height: 40px; padding: 0 22px; border: 0; background: var(--team); color: #fff; font: 700 0.9rem var(--body); cursor: pointer; }
.gp-done:hover { background: #c40418; }
.gp-done:disabled { opacity: 0.6; }
.gp-dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.gp-dots[hidden] { display: none; }
.gp-dot { width: 10px; height: 18px; padding: 6px 2px; border: 0; background: #3a3a3a; background-clip: content-box; border-radius: 3px; cursor: pointer; transition: width 0.2s ease; }
.gp-dot.on { width: 22px; background-color: #fff; }

@media (max-width: 999px) {
  .gs-panel.is-trim { padding-top: 10px; }
  .gp-stage { border-radius: 12px; }
}

/* ================= Quick builder, round 2 =================
   No title: it starts with the name (✕ beside it). Music is a dropdown with "Play sample". The clips
   have a ⋮⋮ handle to drag them into order. No shape question (all three are made). The clip list
   scrolls inside the panel, so "Create video" stays pinned at the bottom, always on screen. */
#gpBuild:not([hidden]) { display: flex; flex-direction: column; max-height: calc(100dvh - 150px); }
@media (max-width: 999px) { #gpBuild:not([hidden]) { max-height: calc(90dvh - 40px); } }
.gp-namebar { display: flex; align-items: flex-end; gap: 10px; }
.gp-namebar .gp-field { flex: 1; }
.gp-namebar .gp-x { margin: 0 0 21px; }
.gp-music { display: flex; gap: 8px; }
#gpMusicSel {
  flex: 1; min-width: 0; height: 42px; padding: 0 36px 0 12px; border: 1px solid #2a2a2a; border-radius: 8px; background: #161616; color: #fff;
  font: 500 0.95rem var(--body); -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
#gpMusicSel:focus { border-color: rgba(255, 255, 255, 0.5); outline: none; }
.gp-sample { flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: #1f1f1f; color: #fff; font: 600 0.85rem var(--body); cursor: pointer; }
.gp-sample:hover { background: #2a2a2a; }
.gp-sample.on { background: #fff; color: #000; }
.gp-sample:disabled { opacity: 0.4; cursor: default; }
.gp-clipsfield { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.gp-clipsfield .gp-clips { flex: 1; min-height: 0; max-height: none; overflow: auto; padding-right: 2px; }
.gp-clip { grid-template-columns: 22px 26px 52px minmax(0, 1fr) auto; gap: 8px; padding: 3px 4px; border-radius: 8px; position: relative; background: transparent; }
.gp-clip.dragging { z-index: 2; background: #1c1c1c; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.gp-grip { width: 22px; height: 32px; padding: 0; border: 0; background: none; color: #6f6f6f; display: grid; place-items: center; cursor: grab; touch-action: none; }
.gp-grip:hover { color: #fff; }
.gp-clip.dragging .gp-grip { cursor: grabbing; color: #fff; }
.gp-foot { flex: none; padding-top: 14px; }
.gp-foot .gp-runtime { margin-top: 0; }
/* Desktop: while the panel is open it starts at the top of the page, beside the player's name, so the
   whole builder (and its Create video button) fits on screen. */
@media (min-width: 1000px) {
  #library.page:has(#gsPanel:not([hidden])) .desk-title { grid-column: 1; }
  .gs-panel:not([hidden]) { grid-row: 1 / span 2; }
  #gpBuild:not([hidden]) { max-height: calc(100dvh - 160px); }
}
@media (min-width: 1000px) { #library.page:has(#gsPanel:not([hidden])) { grid-template-rows: auto 1fr; } }
/* No order number beside the clip thumbnail: handle, thumbnail, name, length and trim. */
.gp-clip { grid-template-columns: 22px 52px minmax(0, 1fr) auto; }
/* Desktop: the builder always fills the right column while Get started shows, so it has no ✕. */
@media (min-width: 1000px) { #gpBuild .gp-namebar .gp-x { display: none; } }

/* ================= Phone sheets close with ✕ only =================
   The grab bar suggested swiping down, which the sheets don't do (and which would fight the clip list
   scrolling and the trim bar). One way to close: the ✕ (tapping the dimmed page behind also works). */
@media (max-width: 999px) {
  .gp-grab { display: none !important; }
  .gs-panel:not([hidden]) { padding-top: 18px; }
  .gs-panel.is-trim { padding-top: 14px; }
}
/* The builder's ✕ sits in the sheet's top-right corner, like the trimmer's. */
@media (max-width: 999px) {
  #gpBuild .gp-namebar { position: relative; }
  #gpBuild .gp-namebar .gp-field > span { padding-right: 44px; }
  #gpBuild .gp-namebar .gp-x { position: absolute; top: -6px; right: 0; margin: 0; }
}

/* ================= Quieter trimmer and wrapping thumbnails =================
   The trimmer is just the video, its play button, the trim bar, ✕ and Done: no clip counter, no length
   line, no Reset, no dots (the thumbnail row already shows which clip is open). The clip thumbnails
   under "Clips added" wrap onto more rows instead of ending in a "+N" tile. */
.gs-thumbs:not([hidden]) { flex-wrap: wrap; overflow: visible; }
.gp-meta { justify-content: flex-end; }
.gp-done { margin-left: 0; }
/* Wide (16:9) clips: the trim bar sits just below the video, the same width, so it covers nothing. */
.gp-bar.below { position: relative; left: auto; right: auto; bottom: auto; width: var(--sw, 100%); max-width: 100%; margin: 10px auto 0; }

/* The builder's ✕ sits in its top-right corner on desktop too (no "More options" link any more). */
#gpBuild .gp-namebar .gp-x { display: grid !important; position: absolute; top: -6px; right: 0; margin: 0; }
#gpBuild .gp-namebar { position: relative; }
#gpBuild .gp-namebar .gp-field > span { padding-right: 44px; }

/* The builder's ✕: centred on the "Name" label line, clear of the name box below it. */
#gpBuild .gp-namebar .gp-field { gap: 8px; }
#gpBuild .gp-namebar .gp-field > span { display: flex; align-items: center; height: 32px; padding-right: 44px; }
#gpBuild .gp-namebar .gp-x { top: 0; right: 0; width: 32px; height: 32px; }
/* Every builder label sits the same distance above its box; the ✕ floats beside the Name label
   without making that row taller. */
#gpBuild .gp-field { gap: 8px; }
#gpBuild .gp-namebar .gp-field > span { display: block; height: auto; padding-right: 40px; }
#gpBuild .gp-namebar .gp-x { top: -9px; right: 0; width: 28px; height: 28px; }
#gpName { margin-top: 0; }

/* ================= Signed-in pages: solid black top bar over a very dark gradient =================
   The bar is pure black, so it runs straight into the top of the page; the page then eases from black
   to a near-black grey at the bottom of the screen. The gradient stays put while the page scrolls.
   Pure neutral greys only. */
.bar { background: #000 !important; }
body.signed-in { background: #000; }
body.signed-in::before { display: block; z-index: -2; background: linear-gradient(180deg, #000 0%, #050505 35%, #0e0e0e 75%, #151515 100%); }
body.signed-in::after { display: none; }
body.signed-in { background: transparent; }

/* ================= Surfaces, option B ("lifted") =================
   On the dark gradient, every box sits one step lighter than the page, everywhere: cards #1a1a1a with
   no edge line, and the fields, buttons and menus inside them one step lighter again (#242424).
   Signed-in pages only; the sign-in page keeps its own look. */
body.signed-in { --paper: #1a1a1a; --solid: #1f1f1f; --surface: #1a1a1a; --surface-2: #242424; }
body.signed-in #library .tile,
body.signed-in #library .carousel .tile,
body.signed-in .next-tile,
body.signed-in .gs-note { background: var(--surface) !important; border-color: transparent !important; }
@media (min-width: 1000px) { body.signed-in .gs-panel:not(.is-trim) { background: var(--surface); border: 0; } }
@media (max-width: 999px) { body.signed-in .gs-panel:not([hidden]) { background: var(--surface); } }
body.signed-in #gpName, body.signed-in #gpMusicSel { background-color: var(--surface-2); border-color: transparent; }
body.signed-in .gp-sample, body.signed-in .gp-x { background: var(--surface-2); }
body.signed-in .gp-sample:hover, body.signed-in .gp-x:hover { background: #2c2c2c; }
body.signed-in .gp-clip.dragging { background: var(--surface-2); }
body.signed-in .card-menu { background: #222; }
body.signed-in .card-menu > *:hover { background: #2c2c2c; }
body.signed-in .pl-row { background: var(--surface); border-color: transparent; }
body.signed-in #players .add-row { background: #2a2a2a; border-color: transparent; }
/* B on every signed-in page: cards are the lifted grey with no outline; fields, file buttons and ghost
   buttons inside them are one step lighter, also without an outline (text fields still show their
   focus border). */
body.signed-in .card,
body.signed-in .plan-card,
body.signed-in .team-card,
body.signed-in .panel,
body.signed-in #family li { background: var(--surface); border-color: transparent; }
body.signed-in input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
body.signed-in select,
body.signed-in textarea { background-color: var(--surface-2); border-color: transparent; }
body.signed-in input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):focus,
body.signed-in select:focus,
body.signed-in textarea:focus { border-color: rgba(255, 255, 255, 0.5); }
body.signed-in .filebtn,
body.signed-in .ghost { background: var(--surface-2); border-color: transparent; }
body.signed-in .filebtn:hover,
body.signed-in .ghost:hover { background: #2c2c2c; }
body.signed-in .add-row { background: #2a2a2a; border-color: transparent; }
/* While the page loads (before it knows whether you're signed in), show the same dark gradient instead
   of the old stadium photo, so nothing flashes. The sign-in page sets its own background. */
body:not(.auth-mode):not(.signed-in)::before { background: linear-gradient(180deg, #000 0%, #050505 35%, #0e0e0e 75%, #151515 100%); }
body:not(.auth-mode):not(.signed-in)::after { display: none; }

/* ================= Editor: no red outlines =================
   "Add clips" is a plain lifted box (no dashed red border); the red + stays as its action. Dragging
   clips over it lifts it a shade with a light dashed edge. Clip rows lose their red left edge and
   outline and sit on the lifted grey like every other box. */
body.signed-in .drop { border: 0; background: var(--surface-2); }
body.signed-in .drop:hover { background: #2c2c2c; }
body.signed-in .drop.over { background: #2c2c2c; outline: 2px dashed rgba(255, 255, 255, 0.55); outline-offset: -6px; border: 0; }
body.signed-in .clip { border: 0; background: var(--surface-2); }
body.signed-in .clip.uploading { border: 0; }

/* Players page, Player info: Name and Age on one line; Height, Weight and Grade on the next; Town under them. */
.pf-row { display: grid; gap: 10px; }
.pf-name-age { grid-template-columns: minmax(0, 1fr) 96px; }
.pf-hwg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-row > label { min-width: 0; }

/* A team's logo sits where the number circle was, at the left of the card's title; tap it to replace. */
.pl-badge-logo { background: transparent !important; padding: 0; overflow: hidden; cursor: pointer; border-radius: 8px; }
.pl-badge-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pl-badge-logo:hover { background: rgba(255, 255, 255, 0.06) !important; }
.pl-badge-logo.busy { opacity: 0.45; }
.pf-sect .team-body > label { display: grid; gap: 6px; }
.team-body .two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* "+ Highlight Setup" fades in and out as the builder closes and opens (fadeShow() in app.js). */
#gs2Btn { transition: opacity 0.18s ease; }
#gs2Btn.faded { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #gs2Btn { transition: none; } }

/* ================= Guest (guided first highlight) =================
   Only the logo and a quiet "Sign in" in the top bar; no player switching (one player). */
.guest-signin { margin-left: auto; padding: 10px 4px; border: 0; background: none; color: var(--muted); font: 700 0.95rem/1 var(--body); cursor: pointer; }
.guest-signin:hover { color: var(--ink); }
.guest-signin[hidden] { display: none; }
body.guest #playerSwitch svg, body.guest #dtSwitch svg { display: none; }
body.guest #playerSwitch, body.guest #dtSwitch { cursor: default; }
.pf-agree { margin: 6px 0 4px; }
.pf-agree[hidden] { display: none; }
#accountForm { display: grid; gap: 12px; }
#accountForm label:not(.check) { display: grid; gap: 6px; font-size: 0.85rem; color: #9a9a9a; font-weight: 600; }
/* The guest's "Sign in" sits at the right end of the top bar (the bar is a grid on every size). */
.bar .guest-signin { grid-column: 3; justify-self: end; grid-row: 1; }
@media (min-width: 1000px) { .bar .guest-signin { grid-column: -1; } }

/* ================= Shapes on a finished highlight =================
   Tall is made first. Under the video: Tall / Wide / Square to switch, or "+ Make wide" for one that
   isn't made yet. The card's ⋯ menu offers the same. */
.pl-shapes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.pl-shapes[hidden] { display: none; }
.pl-shape { height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: var(--surface-2, #242424); color: #cfcfcf; font: 600 0.85rem var(--body); cursor: pointer; }
.pl-shape:hover { background: #2c2c2c; color: #fff; }
.pl-shape.on { background: #fff; color: #000; }
.pl-shape.make { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: #cfcfcf; }
.pl-shape.make:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); color: #fff; }
.pl-shape:disabled { opacity: 0.45; cursor: default; }
.card-menu .cm-sep { border: 0; border-top: 1px solid #2c2c2c; margin: 6px 4px; }
.card-menu button:disabled { opacity: 0.45; cursor: default; }
.pl-shapes { justify-content: center; }

/* ================= Library clip trimming: the first-highlight trimmer as a pop-up =================
   Desktop: centred over a dimmed page. Phones: the same slide-up sheet as Get started. */
@media (min-width: 1000px) {
  .gs-back:not([hidden]) { position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, 0.6); }
  .gs-panel.as-modal:not([hidden]) {
    position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(520px, 92vw); max-height: 92dvh; overflow: auto; grid-column: auto; grid-row: auto;
    background: var(--surface, #1a1a1a); padding: 16px; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

/* ================= Signed-out homepage: a bolder spotlight =================
   Neutral greys only (red stays for buttons). Desktop: a bright soft light behind the phone that falls
   off to black, with a faint second light from the top right and a dark vignette at the edges.
   Phones: a strong light from the top centre behind the logo and reel, falling to black at the bottom. */
body.auth-mode::before {
  background:
    radial-gradient(ellipse 110% 60% at 50% 18%, #474747 0%, #232323 34%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, #0c0c0c 0%, #000 100%);
}
@media (min-width: 1000px) {
  body.auth-mode::before {
    background:
      radial-gradient(ellipse 36% 62% at 27% 50%, #5a5a5a 0%, #2e2e2e 32%, rgba(0, 0, 0, 0) 70%),
      radial-gradient(ellipse 55% 45% at 92% -5%, #262626 0%, rgba(0, 0, 0, 0) 70%),
      radial-gradient(ellipse 120% 120% at 50% 50%, #0e0e0e 40%, #000 100%);
  }
}
body.auth-mode { background: transparent; }
/* Desktop: the brightest part of the light is always directly behind the phone (the glow belongs to the
   phone's own area, so it follows it at every window size). The page keeps the soft top-right light and
   the dark edges. */
@media (min-width: 1000px) {
  body.auth-mode::before {
    background:
      radial-gradient(ellipse 55% 45% at 92% -5%, #262626 0%, rgba(0, 0, 0, 0) 70%),
      radial-gradient(ellipse 120% 120% at 50% 50%, #0e0e0e 40%, #000 100%);
  }
  .auth-reel { position: relative; isolation: isolate; }
  .auth-reel::before {
    content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
    width: 1100px; height: 1300px; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, #5c5c5c 0%, #3a3a3a 22%, #1f1f1f 50%, rgba(0, 0, 0, 0) 100%);
  }
}
@media (min-width: 1000px) { .auth-copy { position: relative; z-index: 1; } }
@media (min-width: 1000px) { .auth-logo, .auth-top { position: relative; z-index: 1; } }
@media (min-width: 1000px) { .auth-reel::before { background: radial-gradient(closest-side, #707070 0%, #4a4a4a 34%, #242424 62%, rgba(0, 0, 0, 0) 100%); } }
@media (min-width: 1000px) { .auth-reel::before { background: radial-gradient(closest-side, #5a5a5a 0%, #3b3b3b 34%, #1d1d1d 62%, rgba(0, 0, 0, 0) 100%); } }
/* Dramatic: the page is pure black everywhere, and one tight, darker light sits just behind the phone,
   dropping off to black quickly. */
@media (min-width: 1000px) {
  body.auth-mode::before { background: #000; }
  .auth-reel::before {
    width: 900px; height: 1150px;
    background: radial-gradient(closest-side, #424242 0%, #262626 26%, #0d0d0d 52%, rgba(0, 0, 0, 0) 74%);
  }
}

/* ================= Sport picker on team cards: always opens downward ================= */
.pick-field { position: relative; display: grid; gap: 6px; }
.pick-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pick-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; box-sizing: border-box;
  padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2, #242424); color: var(--ink);
  font: 500 1rem var(--body); text-align: left; cursor: pointer;
}
.pick:hover { background: #2c2c2c; }
.pick[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.5); }
.pick[aria-expanded="true"] svg { transform: rotate(180deg); }
.pick-list {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 20; max-height: 288px; overflow: auto;
  padding: 6px; border-radius: 10px; background: #222; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 36px rgba(0, 0, 0, 0.6);
}
.pick-list[hidden] { display: none; }
.pick-list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: #e6e6e6; font: 500 0.95rem var(--body); text-align: left; cursor: pointer; }
.pick-list button:hover, .pick-list button:focus { background: #2c2c2c; color: #fff; outline: none; }
.pick-list button.on { color: #fff; font-weight: 700; }

/* ================= Get started uploads: tiles with a progress ring =================
   Each picked clip is a tile right away. A thin white ring fills as it uploads; when it's in, the
   clip's thumbnail fades up and the ring fades away. "Preparing" spins while a phone converts. */
.up-tile, .up-prep { display: grid; place-items: center; background: var(--surface-2, #242424); overflow: hidden; }
.up-tile > *, .up-prep > * { grid-area: 1 / 1; }
.up-ring { width: 34px; height: 34px; transform: rotate(-90deg); transition: opacity 0.35s ease; }
.up-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; }
.up-bar { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.3s ease; }
.up-pct { align-self: end; margin-bottom: 5px; font-size: 0.62rem; font-weight: 700; color: #cfcfcf; font-variant-numeric: tabular-nums; transition: opacity 0.35s ease; }
.up-tile[data-state="wait"] .up-ring { opacity: 0.45; }
.up-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: upIn 0.45s ease forwards; }
.up-tile[data-state="done"] .up-ring, .up-tile[data-state="done"] .up-pct { opacity: 0; }
.up-tile[data-state="fail"] { cursor: pointer; }
.up-tile[data-state="fail"] .up-bar { stroke: #8a8a8a; }
.up-tile[data-state="fail"] .up-pct { color: #fff; }
.up-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.16); border-top-color: #fff; animation: upSpin 0.9s linear infinite; }
@keyframes upIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes upSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .up-img { animation: none; opacity: 1; } .up-spin { animation-duration: 2.4s; } }

/* ================= A highlight being made: the card develops like a photo =================
   The first clip's frame fills the card from the start, dark and grey, and brightens and gains color
   as the video renders (--p, 0 to 1), with a slow push-in. Progress is a red line on the bottom edge
   of the picture with a small % in the corner, and the step ("Cutting clips", "Adding graphics"…)
   sits bottom left. No ring over the picture. A new shape for a finished video keeps its picture. */
.tile { --p: 0; }
.tile.making:not(.extra) .tile-link > img {
  filter: grayscale(calc(1 - var(--p))) brightness(calc(0.32 + 0.68 * var(--p)));
  transform: scale(calc(1.1 - 0.1 * var(--p))); transition: filter 0.9s ease, transform 0.9s ease;
}
.tile.making .t1 { position: relative; z-index: 2; background: inherit; }
.tile.making .tile-link { overflow: hidden; }
.tile-progress.dev { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; display: block; z-index: 1; }
.dev-stage { position: absolute; left: 10px; bottom: 14px; right: 52px; display: grid; gap: 1px; text-align: left; }
.dev-stage b { font-size: 0.82rem; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.dev-stage small { font-size: 0.68rem; color: #cfcfcf; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.dev-stage small:empty { display: none; }
.dev-pct { position: absolute; right: 8px; bottom: 12px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dev-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.dev-line { display: block; height: 100%; width: 0; background: var(--team); transition: width 0.8s ease; }
@media (min-width: 1000px) {
  #library .tile-progress.dev { aspect-ratio: 9 / 14; }
  .dev-stage b { font-size: 0.9rem; }
  .dev-stage small { font-size: 0.74rem; }
  #library .tile.making .tile-play, #library .tile.making .tile-len { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tile.making .tile-link > img { transition: none; transform: none; } .dev-line { transition: none; } }

/* ================= Nav: Film Room, Roster, Upgrades, and the account icon =================
   Desktop: a round account button at the end of the nav opens a small menu. Phones: the same pages
   sit in the drawer under a thin line. */
.acct-btn { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2, #242424); color: var(--muted); cursor: pointer; }
.acct-btn:hover, .acct-btn[aria-expanded="true"], .acct-btn.on { color: #fff; background: #2e2e2e; }
.acct-menu { min-width: 230px; }
.acct-menu .am-head { display: grid; gap: 3px; padding: 10px 12px 6px; cursor: default; }
.acct-menu .am-head:hover { background: none; }
.acct-menu .am-head b { font-size: 0.95rem; }
.acct-menu .am-head small { color: var(--muted); font-size: 0.8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.drawer-sep { border: 0; border-top: 1px solid #2a2a2a; margin: 8px 20px; }
.drawer-link.small { font-size: 0.95rem; color: var(--muted); padding-top: 11px; padding-bottom: 11px; }
.drawer-link.small.on { color: #fff; }
#profileForm input[readonly] { color: var(--muted); cursor: default; }
#profileForm input[readonly]:focus { border-color: transparent; }

/* ================= Test checkout =================
   Looks like a real card checkout. A plain grey "Test checkout" strip says nothing is charged. */
.checkout { max-width: 460px; }
.co-head { display: flex; align-items: center; justify-content: space-between; }
.co-head h2 { margin: 0; }
.co-x { margin-right: -8px; }
.co-test { margin: 0; padding: 9px 12px; border-radius: 8px; background: #2a2a2a; color: #d6d6d6; font-size: 0.85rem; font-weight: 600; }
.co-sum { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 10px; background: var(--surface-2, #242424); }
.co-sum span { display: grid; gap: 3px; }
.co-sum small { color: var(--muted); font-size: 0.82rem; }
.co-price { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#coCard { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.co-tip { margin: 0; text-align: center; font-size: 0.8rem; }
#coPay { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.co-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: upSpin 0.8s linear infinite; }
#coDone { justify-items: center; text-align: center; padding-top: 32px; }
#coDone h2 { margin: 4px 0 0; }
#coDone .note { margin: 0 0 8px; }
.co-check { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #1fa34a; }
.acct-menu #deskLogout { color: #fff; }

/* ================= Account button: on the grid, initials, even spacing =================
   The nav no longer pulls 14px past the grid (that was for a text link's padding; the round button
   has none), so the button's edge lines up with the page content. It sits 36px from the last link's
   text, a little more than the 32px between links, and shows the person's initials. */
@media (min-width: 1000px) {
  .desknav:not([hidden]) { margin-right: 0; }
  .acct-btn { width: 36px; height: 36px; margin-left: 18px; }
}
.acct-ini { font: 700 0.8rem/1 var(--body); letter-spacing: 0.02em; color: #d6d6d6; }
.acct-btn:hover .acct-ini, .acct-btn[aria-expanded="true"] .acct-ini, .acct-btn.on .acct-ini { color: #fff; }

/* ================= Sign-in on phones: square video (option A, user-picked) =================
   Pure black page. A big centred logo on top, then the black-and-white montage as a square
   (bg-square.mp4) running the full width and fading into the headline, offer, email box and button.
   No story bars and no "Sign in" at the top: "Have an account? Enter your email to sign in." under
   the button always shows. On short phones the square shrinks so the button stays on screen. */
.switch b { font-weight: inherit; color: inherit; }
@media (max-width: 999px) {
  body.auth-mode::before { background: #000; }
  .auth { padding: 0 0 max(24px, env(safe-area-inset-bottom)); justify-content: flex-start; }
  .auth-logo { position: static; padding: max(30px, calc(env(safe-area-inset-top) + 18px)) 22px 26px; }
  .auth-logo .logo-glass { width: min(250px, 66vw); margin: 0 auto; }
  .auth-reel { position: relative; inset: auto; z-index: 0; width: min(100%, max(240px, calc(100svh - 440px))); margin: 0 auto; aspect-ratio: 1; }
  .reel-device { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 0; background: #000 url("/bg-square.jpg") center / cover; }
  .reel-video { object-position: 50% 50%; }
  .auth-reel::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 85%, #000 100%); }
  .auth-copy { margin-top: 14px; padding: 0 22px; box-sizing: border-box; }
  #startForm .switch { display: block; text-align: center; color: #8d8d8d; }
  #startForm .switch b { font-weight: 600; color: #fff; }
}

/* ================= A team being set up: just its fields on a card =================
   No header row until the team is saved (then it gets the collapsible summary). */
.team-card.plain .team-body { padding: 16px 14px 14px; }
.team-card.plain .logo-row img { height: 44px; border-radius: 6px; }

/* ================= Film Room uploads on a computer: tiles in the game's row =================
   Same tile as the clips around it (rounded, 9:12), with the white progress ring and %. */
.cg-grid .up-tile { margin: 0; width: 100%; aspect-ratio: 9 / 12; border-radius: 12px; background: #242424; }
.cg-grid .up-tile .up-img { aspect-ratio: auto; height: 100%; }
.cg-grid .up-tile .up-pct { margin-bottom: 8px; font-size: 0.72rem; }
.up-gthumb { display: block; background: var(--surface-2, #242424); }

/* ================= Next highlight card on phones and tablets =================
   The same card as on desktop, sized like the highlight cards in the swipe row: the game's first clip
   darkened in black and white, the game, the clip count and a red "Make highlight" button. */
@media (max-width: 999px) {
  .carousel > .next-tile { display: grid; align-content: start; position: relative; border-radius: 12px; overflow: hidden; background: var(--surface, #1a1a1a); scroll-snap-align: start; }
  .nt-pic { position: relative; }
  .nt-pic img { display: block; width: 100%; aspect-ratio: 9 / 12; object-fit: cover; filter: grayscale(1) brightness(0.38); }
  .nt-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 8px; }
  .nt-kick { display: none; }
  .nt-title { font-size: 0.8rem; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nt-sub { margin: 2px 0 8px; font-size: 0.68rem; color: #a6a6a6; }
  .nt-make { min-height: 32px; padding: 0 6px; font-size: 0.72rem; width: 100%; }
  .nt-foot { display: grid; padding: 8px 8px 9px; }
  .nt-foot b { font-size: 0.78rem; font-weight: 600; color: #a6a6a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nt-foot span { font-size: 0.7rem; color: #6f6f6f; padding-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .nt-title { font-size: 0.95rem; }
  .nt-make { min-height: 38px; font-size: 0.82rem; }
}

/* ================= The highlight page (option A, user-picked) =================
   The highlight's name is the page title (editable, the game's name to start). Phones: one column, with
   Create video in the dock. Desktop: the clips, Title card and Transitions on the left; Music, running
   time and Create video in a panel on the right that stays in view. Lifted surfaces, red for actions only,
   the chosen option marked white. */
.ed { display: block; max-width: 1200px; margin: 0 auto; padding-bottom: calc(var(--dock-h, 0px) + 40px); }
.ed-back { display: inline-block; margin: 18px 0 6px; color: #a6a6a6; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.ed-back:hover { color: #fff; }
.ed-head { margin-bottom: 18px; }
.ed-title-wrap { display: block; }
.ed-title { width: 100%; box-sizing: border-box; margin: 0 0 0 -8px; padding: 2px 8px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #fff; font: 800 clamp(1.7rem, 6vw, 2.5rem)/1.15 var(--body); letter-spacing: -0.02em; }
.ed-title:hover { background: rgba(255, 255, 255, 0.04) !important; }
.ed-title:focus { background: var(--surface-2, #242424) !important; outline: none; box-shadow: var(--focus-ring); }
.ed-title::placeholder { color: #6f6f6f; }
.ed-who { margin: 6px 0 0; color: #bdbdbd; font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ed-who b { color: #fff; }
.ed-who .link { font-weight: 600; }
.ed-who .save { color: #6f6f6f; font-size: 0.8rem; }
.ed-cols { display: grid; gap: 16px; }
.ed-main { display: grid; gap: 16px; min-width: 0; }
.ed-card { background: var(--surface, #1a1a1a); border-radius: 14px; padding: 16px; }
.ed-card h2 { margin: 0; font-size: 1.15rem; }
.ed-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.ed-count { color: #8d8d8d; font-size: 0.85rem; }
.ed-add { display: flex; gap: 8px; margin-left: auto; }
.ed-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--surface-2, #242424); color: #fff; font: 700 0.88rem/1 var(--body); cursor: pointer; }
.ed-btn:hover { background: #2e2e2e; }
.ed-clipsect.over { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.ed-clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ed-clip { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2, #242424); touch-action: pan-y; }
.ed-clip.dragging { position: relative; z-index: 2; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); background: #2c2c2c; }
.ed-grip { display: grid; place-items: center; width: 28px; height: 40px; margin: 0 -4px; padding: 0; border: 0; background: none; color: #8d8d8d; cursor: grab; touch-action: none; }
.ed-clip.dragging .ed-grip { cursor: grabbing; }
.ed-th { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; flex: none; background: #111; }
.ed-ct { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ed-ct b { font-size: 0.92rem; }
.ed-ct small { color: #8d8d8d; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-len { color: #cfcfcf; font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-ico { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: #cfcfcf; cursor: pointer; }
.ed-ico:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ed-clips li.uploading { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2, #242424); }
.ed-clips li.uploading .num { display: none; }
.ed-clips .up-name { flex: 1; font-size: 0.85rem; color: #cfcfcf; }
.ed-clips .upbar { height: 3px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ed-clips .upbar div { height: 100%; width: 0; background: #fff; transition: width 0.3s ease; }
.ed-empty { margin: 0; padding: 22px 12px; border-radius: 10px; background: var(--surface-2, #242424); color: #a6a6a6; text-align: center; font-size: 0.9rem; }
.ed-opts { display: grid; gap: 10px; margin-top: 12px; }
.ed-opts.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-opts.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-opt { display: grid; gap: 0; padding: 0; border: 0; border-radius: 12px; background: var(--surface-2, #242424); color: #fff; text-align: left; cursor: pointer; overflow: hidden; font: inherit; box-shadow: inset 0 0 0 2px transparent; position: relative; }
.ed-opt:hover { background: #2a2a2a; }
.ed-opt.on { box-shadow: inset 0 0 0 2px #fff; }
.ed-opt.on::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.ed-pic { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; }
.ed-pic .tc { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.ed-pic .tc-title { font-size: clamp(1.1rem, 3.2vw, 1.9rem); }
.ed-pic .tc-kicker, .ed-pic .tc-sub { font-size: 0.6rem; padding: 1px 6px; }
.ed-pic .tc-rule { height: 3px; }
.ed-ol { display: grid; gap: 3px; padding: 10px 12px 12px; }
.ed-ol b { font-size: 0.92rem; }
.ed-ol small { color: #8d8d8d; font-size: 0.78rem; line-height: 1.35; }
.prem-pic { background: #000 url("/bg-square.jpg") center 30% / cover; }
.prem-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7)); }
.prem-tag { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: #fff; color: #000; font-size: 0.72rem; font-weight: 800; }
.tr-wipe i { position: absolute; top: -20%; height: 140%; width: 34%; transform: skewX(-18deg); }
.tr-wipe i:first-child { left: 18%; background: var(--team3, #333); }
.tr-wipe i:last-child { left: 44%; background: var(--team, #df051b); }
.tr-flash { background: radial-gradient(circle at 50% 50%, #fff 0%, #cfcfcf 18%, #3a3a3a 52%, #0d0d0d 80%); }
.tr-cut { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #0d0d0d; }
.tr-cut i { display: block; background: #3a3a3a; }
.tr-cut i:last-child { background: #5a5a5a; }
.ed-panel { display: grid; gap: 14px; }
.ed-field { display: grid; gap: 7px; }
.ed-field > span { font-size: 0.82rem; font-weight: 600; color: #a6a6a6; }
.ed-music { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ed-music select { min-height: 46px; }
.ed-sample { min-height: 46px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--surface-2, #242424); color: #fff; font: 700 0.85rem/1 var(--body); cursor: pointer; }
.ed-sample:disabled { opacity: 0.45; cursor: default; }
.ed-sample.on { background: #fff; color: #000; }
.ed-upsong { justify-self: start; margin-top: -4px; color: #cfcfcf; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ed-total { display: flex; justify-content: space-between; font-size: 0.9rem; color: #bdbdbd; }
.ed-total b { color: #fff; font-variant-numeric: tabular-nums; }
.ed-details { gap: 14px; }
@media (max-width: 639px) {
  .ed-opts.three-up { grid-template-columns: 1fr; }
  .ed-opts.three-up .ed-opt { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .ed-opts.three-up .ed-pic { height: 100%; aspect-ratio: auto; min-height: 64px; }
  .ed-opts.two-up { grid-template-columns: 1fr 1fr; }
  .ed-add { margin-left: 0; width: 100%; }
  .ed-add .ed-btn { flex: 1; justify-content: center; }
}
@media (min-width: 1000px) {
  .ed-cols { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .ed-side { position: sticky; top: 84px; }
  .ed-card { padding: 20px; }
  .ed-title { font-size: 2.5rem; }
}
/* the highlight page replaces the old two-column editor grid */
@media (min-width: 1000px) { #editor.ed { display: block; } }
#editor .ed-title { height: auto; min-height: 0; padding: 2px 8px; font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.15; }
@media (min-width: 1000px) { #editor .ed-title { font-size: 2.5rem; } }

/* ================= A video waiting in line =================
   Same card as one being made, dark and grey, with "Waiting" and how many are ahead; no % yet. */
.tile.waiting .dev-pct, .tile.waiting .dev-track { display: none; }

/* ================= Top bar logo 30% larger, page content closer under it (desktop) =================
   The logo goes from 30px to 39px tall in the same 60px bar; every signed-in page starts closer to it. */
@media (min-width: 1000px) {
  body.signed-in .bar .brand img { height: 39px; width: auto; }
  body.signed-in .page { padding-top: 4px; }
  body.signed-in #library { padding-top: 12px; }
  body.signed-in .ed-back { margin-top: 4px; }
}

/* ================= Desktop Film Room: fixed header, the two panes scroll (user-asked) =================
   Logo 45px tall in a 64px bar. On Film Room (once there are highlights, i.e. not Get started) the bar
   and the player's name stay put: the page fits the window, and My Highlights and My Clips each scroll
   on their own under their headings. Short windows (under 560px tall) scroll as one page as before. */
@media (min-width: 1000px) {
  body.signed-in .bar { height: 64px; min-height: 64px; padding-top: 0; padding-bottom: 0; }
  body.signed-in .bar .brand img { height: 45px; width: auto; }
  body.signed-in #library { padding-top: 34px; }
}
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in:has(#library:not([hidden]) > #getStarted[hidden]) { height: 100vh; overflow: hidden; }
  body.signed-in #library:has(> #getStarted[hidden]) {
    height: calc(100vh - 64px); box-sizing: border-box; padding-bottom: 0; overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr); align-items: stretch;
  }
  body.signed-in #library:has(> #getStarted[hidden]) > #libMain,
  body.signed-in #library:has(> #getStarted[hidden]) > #libClips { display: flex; flex-direction: column; min-height: 0; }
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays {
    flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; align-content: start;
    padding-bottom: 28px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent;
  }
}
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid { grid-auto-rows: max-content; }
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid > * { min-height: max-content; }
}
@media (min-width: 1000px) and (min-height: 560px) {
  html:has(body.signed-in #library:not([hidden]) > #getStarted[hidden]) { overflow: hidden; }
}
/* My Clips scrolls the same way: open games keep their full height instead of squeezing to fit. */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays { grid-auto-rows: max-content; }
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays > * { min-height: max-content; }
}
/* The scroll bars sit 16px out from the panes' content (which stays lined up with its heading). */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #library:has(> #getStarted[hidden]) { overflow: visible; }
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays { margin-right: -16px; padding-right: 16px; }
}

/* ================= The highlight pop-up (option A, user-picked) =================
   A card over the dimmed page, not full screen: the video on the left, where it's being shared on the
   right. The picked place is marked white; a shape being made spins on its tile. Phones: the card fills
   the width, the video on top. */
.hl-pop { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; border: 0; border-radius: 18px; background: var(--surface, #1a1a1a); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: auto; }
.hl-pop[open] { display: flex; gap: 26px; }
.hl-pop::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hp-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2, #242424); color: #d6d6d6; cursor: pointer; }
.hp-x:hover { color: #fff; background: #2e2e2e; }
.hp-vid { flex: none; width: 340px; aspect-ratio: 9 / 16; max-height: calc(100vh - 80px); border-radius: 12px; overflow: hidden; background: #000; display: grid; place-items: center; }
.hp-vid video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.hp-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 6px 4px 0 0; }
.hp-side h2 { margin: 0; padding-right: 46px; font-size: 1.5rem; letter-spacing: -0.01em; }
.hp-meta { margin: 5px 0 0; color: #a6a6a6; font-size: 0.9rem; }
.hp-lbl { margin: 0 0 8px; color: #a6a6a6; font-size: 0.82rem; font-weight: 600; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hp-dest { display: grid; justify-items: start; gap: 8px; padding: 12px; border: 0; border-radius: 11px; background: var(--surface-2, #242424); color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.hp-dest:hover:not(:disabled) { background: #2a2a2a; }
.hp-dest.on { box-shadow: inset 0 0 0 2px #fff; }
.hp-dest:disabled { opacity: 0.45; cursor: default; }
.hp-dest b { font-size: 0.9rem; }
.hp-dest small { color: #8d8d8d; font-size: 0.74rem; font-weight: 600; }
.hp-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #2e2e2e; color: #fff; }
.hp-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: upSpin 0.8s linear infinite; }
.hp-hint { margin: 10px 0 0; color: #8d8d8d; font-size: 0.8rem; min-height: 1.2em; }
.hp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-acts button { min-height: 46px; }
.hp-acts button:disabled { opacity: 0.35; cursor: default; }
.hp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: #8d8d8d; font-size: 0.8rem; }
.hp-del { padding: 0; border: 0; background: none; color: #8d8d8d; font: 600 0.82rem/1 var(--body); cursor: pointer; }
.hp-del:hover { color: #fff; }
@media (max-width: 760px) {
  .hl-pop[open] { flex-direction: column; gap: 16px; padding: 16px; }
  .hp-vid { width: 100%; max-height: 52vh; aspect-ratio: auto; height: 52vh; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-foot { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .hp-spin { animation-duration: 2.4s; } }

/* ================= Highlight page on desktop: only the left side scrolls (user-asked) =================
   The bar, "‹ Film Room", the highlight's name, the player line and the Music / Create video panel stay
   put; the Clips, Title card and Transitions column scrolls under them, with its scroll bar set off
   16px from the content. Short windows (under 560px tall) scroll as one page. */
@media (min-width: 1000px) and (min-height: 560px) {
  html:has(body.signed-in #editor.ed:not([hidden])) { overflow: hidden; }
  body.signed-in:has(#editor.ed:not([hidden])) { height: 100vh; overflow: hidden; }
  body.signed-in #editor.ed { display: flex; flex-direction: column; height: calc(100vh - 64px); box-sizing: border-box; padding-bottom: 0; }
  body.signed-in #editor.ed > .ed-back, body.signed-in #editor.ed > .ed-head { flex: none; align-self: flex-start; }
  body.signed-in #editor.ed > .ed-cols { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  body.signed-in #editor .ed-main {
    min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: max-content; align-content: start;
    margin-right: -16px; padding: 0 16px 28px 0; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent;
  }
  body.signed-in #editor .ed-side { position: static; align-self: start; }
}
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #editor.ed > .ed-cols { align-items: stretch; }
}

/* ================= Scrolling panes fade out at the top (user-asked) =================
   Once a pane is scrolled, its content fades out over the top 36px instead of being cut off sharply:
   the highlight page's left column, and Film Room's My Highlights and My Clips. */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #editor .ed-main.scrolled,
  body.signed-in #library #highlightGrid.scrolled,
  body.signed-in #library #clipDays.scrolled {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
  }
}

/* ================= "Add from your library" picker =================
   Wider sheet; one section per game with its clips as square thumbnails. A picked clip gets a white
   check; clips already in this video say "In video" and can't be picked. The list scrolls; the
   buttons stay in view. */
.lib-picker { max-width: 720px; }
.lib-picker form { gap: 16px; }
.lib-pick { max-height: min(60vh, 560px); overflow-y: auto; display: grid; gap: 18px; padding-right: 4px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lp-head span { display: grid; gap: 2px; min-width: 0; }
.lp-head b { font-size: 0.98rem; }
.lp-head small { color: #8d8d8d; font-size: 0.8rem; }
.lp-all { flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--surface-2, #242424); color: #fff; font: 700 0.82rem/1 var(--body); cursor: pointer; }
.lp-all:hover { background: #2e2e2e; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.lp-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; }
.lp-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.lp-ck { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); }
.lp-tile input:checked ~ .lp-ck { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.lp-tile:has(input:checked) { box-shadow: inset 0 0 0 2px #fff; }
.lp-tile:has(input:checked) img { opacity: 0.85; }
.lp-tile:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.lp-len { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); font-size: 0.7rem; font-weight: 700; }
.lp-tile.has { cursor: default; }
.lp-tile.has img { opacity: 0.35; }
.lp-tile.has .lp-ck { display: none; }
#pickAdd:disabled { opacity: 0.4; cursor: default; }
/* Smoother: the fade grows with the scroll (0 to 64px over the first 64px scrolled) and eases out. */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #editor .ed-main,
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays {
    --fade: 0px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.25) calc(var(--fade) * 0.3), rgba(0, 0, 0, 0.7) calc(var(--fade) * 0.65), #000 var(--fade));
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.25) calc(var(--fade) * 0.3), rgba(0, 0, 0, 0.7) calc(var(--fade) * 0.65), #000 var(--fade));
  }
}

/* ================= Scroll fade, take 3: a buffer strip at the top of each scrolling pane =================
   Each pane starts with an empty strip (24px on the highlight page, 20px in Film Room) and is pulled up
   by the gap that was above it, so nothing moves at rest. The fade covers only that strip: at rest it
   fades empty space, and content scrolling up passes through a steady, eased fade instead of being
   cut by the pane's edge. (Replaces the fade that grew with the scroll.) */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #editor .ed-main,
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.12) calc(var(--buf) * 0.25), rgba(0, 0, 0, 0.45) calc(var(--buf) * 0.55), rgba(0, 0, 0, 0.85) calc(var(--buf) * 0.82), #000 var(--buf));
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.12) calc(var(--buf) * 0.25), rgba(0, 0, 0, 0.45) calc(var(--buf) * 0.55), rgba(0, 0, 0, 0.85) calc(var(--buf) * 0.82), #000 var(--buf));
  }
  body.signed-in #editor .ed-main { --buf: 24px; margin-top: -18px; padding-top: var(--buf); }
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays { --buf: 20px; margin-top: -12px; padding-top: var(--buf); }
}
@media (min-width: 1000px) and (min-height: 560px) { body.signed-in #editor .ed-side { margin-top: 6px; } }
/* Buffer strips 30px (highlight page) and 25px (Film Room), user-set; the fade spans each strip, and the
   highlight page's side panel moves down with its first card. */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #editor .ed-main { --buf: 30px; }
  body.signed-in #editor .ed-side { margin-top: 12px; }
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays { --buf: 25px; }
}

/* ================= Scroll bars start below the fade (user-asked) =================
   The fade is a mask on the whole pane, so it would blend the top of the scroll bar too. In browsers
   that style scroll bars this way (Chrome, Edge, Safari), the bar's track starts below the buffer
   strip, so the bar is never faded; it's a thin, rounded grey bar. Firefox keeps its thin bar. */
@media (min-width: 1000px) and (min-height: 560px) {
  @supports selector(::-webkit-scrollbar) {
    body.signed-in #editor .ed-main,
    body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
    body.signed-in #library:has(> #getStarted[hidden]) #clipDays { scrollbar-width: auto; scrollbar-color: auto; }
    body.signed-in #editor .ed-main::-webkit-scrollbar,
    body.signed-in #highlightGrid::-webkit-scrollbar,
    body.signed-in #clipDays::-webkit-scrollbar { display: block; width: 8px; height: 8px; }
    body.signed-in #editor .ed-main::-webkit-scrollbar-track,
    body.signed-in #highlightGrid::-webkit-scrollbar-track,
    body.signed-in #clipDays::-webkit-scrollbar-track { background: transparent; margin-top: calc(var(--buf, 0px) + 4px); margin-bottom: 8px; }
    body.signed-in #editor .ed-main::-webkit-scrollbar-thumb,
    body.signed-in #highlightGrid::-webkit-scrollbar-thumb,
    body.signed-in #clipDays::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
    body.signed-in #editor .ed-main::-webkit-scrollbar-thumb:hover,
    body.signed-in #highlightGrid::-webkit-scrollbar-thumb:hover,
    body.signed-in #clipDays::-webkit-scrollbar-thumb:hover { background: #555; }
  }
}

/* ================= Desktop: every page left-aligned like Film Room (user-asked) =================
   Roster, Upgrades, User Profile, Family, Subscription and Login and Security sit on Film Room's grid:
   the page title is on the same left edge as the logo and the player's name, in the same style (40px,
   800, starting 34px under the bar), and the content runs from that edge in a 720px reading column
   instead of a narrow column centred in the window. Phones are unchanged. */
@media (min-width: 1000px) {
  body.signed-in .page.narrow { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 34px 40px 64px; }
  body.signed-in .page.narrow > *, body.signed-in .page.narrow .pl-view > * { max-width: 720px; }
  body.signed-in .page.narrow h1 { margin: 0 0 20px; font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-align: left; }
  body.signed-in .page.narrow h1 + .note { margin-top: -12px; }
}
/* The page's scroll bar space is always kept on desktop, so the logo and titles don't shift 7px between
   pages that scroll and pages that don't. */
@media (min-width: 1000px) { html:has(body.signed-in) { scrollbar-gutter: stable; } }

/* ================= Subscription page (option C, user-picked) =================
   One clear offer: on the left a pill, the reason and what changes (before → after); on the right the
   three ways to pay (the picked one ringed white) with the red button right under them. Usage runs
   across the bottom with a small grey Cancel plan at its right. Red only on the button; the "full"
   bars are white. Phones stack the two sides. */
#plan.plan-c > * { max-width: none; }
.pc-lead { margin: -14px 0 22px; color: #a6a6a6; font-size: 0.95rem; }
.pc-hero { display: grid; border-radius: 14px; overflow: hidden; background: var(--surface, #1a1a1a); margin-bottom: 16px; }
.pc-left { padding: 26px 24px; }
.pc-pill { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #000; font-size: 0.72rem; font-weight: 800; }
.pc-left h2 { margin: 0 0 8px; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.15; }
.pc-left p { margin: 0 0 20px; color: #bdbdbd; font-size: 0.95rem; max-width: 460px; }
.pc-ba { display: grid; gap: 10px; max-width: 460px; }
.pc-ba div { display: grid; grid-template-columns: 150px 80px 24px 1fr; align-items: center; font-size: 0.92rem; }
.pc-ba .k { color: #a6a6a6; }
.pc-ba .o { color: #8d8d8d; text-decoration: line-through; }
.pc-ba .ar { color: #8d8d8d; }
.pc-ba .n { font-weight: 800; }
.pc-right { padding: 24px; background: var(--surface-2, #242424); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pc-right[hidden] { display: none; }
.pc-opts { display: grid; gap: 10px; }
.pc-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px; border: 0; border-radius: 12px; background: var(--surface, #1a1a1a); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.pc-opt:hover { background: #202020; }
.pc-opt.on { box-shadow: inset 0 0 0 2px #fff; }
.pc-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #6f6f6f; }
.pc-opt.on .pc-dot { box-shadow: inset 0 0 0 5px #fff; }
.pc-ot { flex: 1; display: grid; gap: 3px; }
.pc-ot b { font-size: 1rem; }
.pc-ot small { color: #8d8d8d; font-size: 0.8rem; }
.pc-cur { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #d6d6d6; color: #000; font-size: 0.68rem; font-style: normal; font-weight: 800; vertical-align: 2px; }
.pc-pr { font-weight: 800; font-size: 1.2rem; text-align: right; white-space: nowrap; }
.pc-pr small { font-size: 0.8rem; font-weight: 600; color: #a6a6a6; }
.pc-buy { width: 100%; min-height: 48px; margin-top: 4px; }
.pc-buy:disabled { opacity: 0.4; cursor: default; }
.pc-fine { margin: 0; text-align: center; color: #8d8d8d; font-size: 0.8rem; }
.pc-alt { color: #d6d6d6; }
.pc-use { display: grid; gap: 16px; padding: 18px 22px; border-radius: 14px; background: var(--surface, #1a1a1a); }
.pc-ut b { display: block; font-size: 0.98rem; }
.pc-ut small { color: #8d8d8d; font-size: 0.82rem; }
.pc-test { display: block; margin-top: 4px; font-size: 0.75rem; color: #8d8d8d; }
.pc-m { font-size: 0.82rem; color: #bdbdbd; }
.pc-m > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pc-m b { color: #fff; font-weight: 600; white-space: nowrap; }
.pc-bar { display: block; height: 6px; border-radius: 3px; background: #2a2a2a; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 3px; background: #fff; }
.pc-end { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.pc-end:empty { display: none; }
.pc-ends { color: #8d8d8d; font-size: 0.82rem; white-space: nowrap; }
.pc-cancel { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--surface-2, #242424); color: #a6a6a6; font: 600 0.8rem/1 var(--body); cursor: pointer; white-space: nowrap; }
.pc-cancel:hover { color: #fff; background: #2e2e2e; }
@media (min-width: 1000px) {
  .pc-hero { grid-template-columns: 1.25fr 1fr; }
  .pc-left { padding: 30px 32px; }
  .pc-left h2 { font-size: 2rem; }
  .pc-right { padding: 28px; }
  .pc-use { grid-template-columns: 210px repeat(4, minmax(0, 1fr)) auto; gap: 26px; align-items: center; }
  .pc-end { justify-content: flex-end; }
}
.pc-ut .pc-test { font-size: 0.75rem; font-weight: 500; }
.pc-buy.ghost:disabled { opacity: 1; color: #8d8d8d; }

/* ================= My Clips in a card (desktop) and game rows that wrap (user-picked) =================
   Desktop Film Room: My Clips sits in one lifted card (heading, Add Clips lifted a step to #2e2e2e, and
   the games), running to the bottom of the window. Everywhere: a game's name wraps onto a second line
   (and only then trims), and its row shows the tournament without the date. */
#clipDays .cg-title { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
#clipDays .cg-meta { display: flex; min-width: 0; }
#clipDays .cg-meta:empty { display: none; }
#clipDays .cg-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#clipDays .cgroup summary { align-items: center; }
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #library:has(> #getStarted[hidden]) > #libClips { background: var(--surface, #1a1a1a); border-radius: 14px; padding: 18px 20px 0; margin-bottom: 24px; align-self: stretch; }
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays { margin-right: -12px; padding-right: 12px; }
  body.signed-in #libClips .cgroup { border-color: #262626; }
  body.signed-in #libClips #addClipsBtn { background: #2e2e2e; }
  body.signed-in #libClips #addClipsBtn:hover { background: #383838; }
}
/* The scrolling panes always keep room for their scroll bar, so nothing in them resizes when one
   appears (an empty strip at the right when there's nothing to scroll). */
@media (min-width: 1000px) and (min-height: 560px) {
  body.signed-in #library:has(> #getStarted[hidden]) #clipDays,
  body.signed-in #library:has(> #getStarted[hidden]) #highlightGrid,
  body.signed-in #editor .ed-main { scrollbar-gutter: stable; }
}

/* A game row's small EDIT box (in place of the clip count): a very light outline, no fill. */
#clipDays .cg-mini { align-self: center; min-height: 0; height: 24px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; background: none; color: #bdbdbd; font: 600 0.66rem/1 var(--body); letter-spacing: 0.06em; cursor: pointer; white-space: nowrap; }
#clipDays .cg-mini:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }

/* ================= My Clips grouped by tournament (user-picked) =================
   Each league or tournament is a section heading (just its name and a chevron) that folds its games
   away; "Other games" is last. The game rows under it no longer repeat the tournament. */
.cg-sec + .cg-sec { margin-top: 6px; border-top: 1px solid #262626; }
.cg-sec-h { display: flex; align-items: center; gap: 10px; padding: 12px 0 8px; color: #d6d6d6; font-size: 0.85rem; font-weight: 700; cursor: pointer; list-style: none; }
.cg-sec-h::-webkit-details-marker { display: none; }
.cg-sec-h .cg-chev { margin-left: auto; width: 16px; height: 16px; color: #8d8d8d; transition: transform 0.2s ease; }
.cg-sec[open] > .cg-sec-h .cg-chev { transform: rotate(180deg); }
.cg-sec-h:hover { color: #fff; }
.cg-sec > .cgroup:first-of-type { border-top-color: #262626; }
@media (prefers-reduced-motion: reduce) { .cg-sec-h .cg-chev { transition: none; } }
/* One line between sections, not two: the last game in a section has no line under it (the next
   section's own line separates them). */
#clipDays .cg-sec > .cgroup:last-child { border-bottom: 0; }

/* "+ Create Highlight" in the library clip pop-up: fills the space left of Done, a secondary button
   (Done stays the red one). */
.gp-make-hl { flex: 1; height: 40px; padding: 0 16px; border: 0; border-radius: 0; background: #2a2a2a; color: #fff; font: 700 0.9rem var(--body); cursor: pointer; }
.gp-make-hl:hover { background: #333; }
.gp-make-hl:disabled { opacity: 0.6; cursor: default; }
.gp-make-hl[hidden] { display: none; }

/* ================= Library clip pop-up, desktop: floating player (option A, user-picked) =================
   No box: the page behind is dimmed and blurred and the clip floats on it with rounded corners. Above it
   just the game's name and ✕; under it the trim strip; then "+ Create Highlight" (grey) and "Trim and
   Save" (red), square like the site's other buttons. Arrows either side step through the game's clips. */
.gp-head, .gp-step { display: none; }
@media (min-width: 1000px) {
  .gs-back:not([hidden]) { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .gs-panel.as-modal:not([hidden]) { width: auto; background: none; padding: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .gs-panel.as-modal #gpTrim { position: relative; width: var(--sw, 380px); }
  .gs-panel.as-modal .gp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .gs-panel.as-modal .gp-head b { font-size: 1.1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gp-x2 { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
  .gp-x2:hover { background: rgba(255, 255, 255, 0.16); }
  .gs-panel.as-modal .gp-stage { border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
  .gs-panel.as-modal .gp-stage .gp-close { display: none; }
  .gs-panel.as-modal .gp-bar.below { margin-top: 16px; border-radius: 10px; }
  .gs-panel.as-modal .gp-win { border-radius: 9px; }
  .gs-panel.as-modal .gp-step:not([hidden]) { display: grid; place-items: center; position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #d6d6d6; cursor: pointer; }
  .gs-panel.as-modal .gp-step:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
  .gs-panel.as-modal .gp-step.prev { left: -74px; }
  .gs-panel.as-modal .gp-step.next { right: -74px; }
  .gs-panel.as-modal .gp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .gs-panel.as-modal .gp-make-hl, .gs-panel.as-modal .gp-done { height: 44px; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 0.9rem/1 var(--body); }
  .gs-panel.as-modal .gp-make-hl { background: #2a2a2a; color: #fff; }
  .gs-panel.as-modal .gp-make-hl:hover { background: #333; }
  .gs-panel.as-modal .gp-make-hl .sq-plus { font-size: 1.15rem; font-weight: 400; line-height: 1; }
  .gs-panel.as-modal .gp-dots { display: none; }
}
@media (min-width: 1000px) {
  .gs-panel.as-modal .gp-make-hl, .gs-panel.as-modal .gp-done { white-space: nowrap; padding: 0 10px; }
  .gs-panel.as-modal #gpTrim { min-width: 340px; }
}

/* ================= Highlight page: look tiles from the Look Lab =================
   A preset made in the Look Lab shows its own preview clip in the tile's picture. */
.ed-pic.look-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Get started: delete on each clip thumbnail (top-right) */
.gs-thumb .gs-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.72); color: #fff; cursor: pointer; }
.gs-thumb .gs-del svg { width: 12px; height: 12px; }
.gs-thumb .gs-del:hover { background: #000; }

/* ---------- Add Music Later: plain small text on the page below the card, only while it's chosen */
.music-note { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 180ms ease, opacity 180ms ease; }
.music-note.open { grid-template-rows: 1fr; opacity: 1; }
.music-note-in { min-height: 0; overflow: hidden; }
.music-note p { margin: 0; padding-top: 12px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; text-align: center; }
.dock .music-note { grid-column: 1 / -1; margin-top: -6px; }
.dock .music-note p { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .music-note { transition: none; } }

/* ---------- Play sample: a transport icon that keeps its size, so the song menu beside it doesn't move */
.gp-sample, .ed-sample { flex: none; display: grid; place-items: center; padding: 0; }
.gp-sample { width: 42px; }
.ed-sample { width: 46px; }
.gp-music select { flex: 1; min-width: 0; }

/* ---------- Music dropdown: its arrow sits as far from the edge as the play icon does in the button beside it, and is the same kind of solid shape */
#edMusicSel, #gpMusicSel { appearance: none; -webkit-appearance: none; padding: 0 46px 0 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8'%3E%3Cpath fill='%23fff' d='M.6.4h11.8L6.5 7.6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 13px 8px; background-position: right 16.5px center; text-overflow: ellipsis; }
#gpMusicSel { background-position: right 14.5px center; padding-right: 42px; }

/* ---------- The selected ring sits above the tile's picture or video, which used to cover it */
.ed-opt.on::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 2px #fff; pointer-events: none; }
.ed-opt.on::after { z-index: 4; }

/* ---------- Player profile: social handles */
.pf-social { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Title card and Transitions: bigger pictures, two across, the name on the picture (user-picked comp A) */
.ed-opts.pic-tiles .ed-ol { position: absolute; left: 7px; top: 7px; z-index: 2; display: flex; align-items: baseline; gap: 6px; max-width: calc(100% - 44px); padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.6); pointer-events: none; }
.ed-opts.pic-tiles .ed-ol b { min-width: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-opts.pic-tiles .ed-ol small { flex: none; font-size: 0.68rem; color: #d0d0d0; }
.ed-opts.pic-tiles .ed-ol small:empty { display: none; }
/* The two columns fill the page: the names on the tiles no longer hold the left column open */
@media (min-width: 1000px) { .ed-cols { width: 100%; } }
@media (max-width: 640px) {
  .ed-opts.pic-tiles .ed-ol { left: 5px; top: 5px; padding: 2px 5px; border-radius: 4px; }
  .ed-opts.pic-tiles .ed-ol b { font-size: 0.62rem; }
}

/* ================================================================== team colors as named swatches
   (user-asked 2026-11-09): each slot shows its color and name; a tap opens the standard athletic
   colors, Custom last. Selected is a white ring, never red. */
.colors .tc-row { grid-column: 1 / -1; }
.tc-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-btn { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.tc-btn i { display: block; height: 52px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.tc-btn span { display: grid; gap: 1px; min-width: 0; }
.tc-btn b { font-size: 0.85rem; font-weight: 600; }
.tc-btn small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-btn:hover i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
/* The color window: a 6 × 6 grid of swatches; the selected one has a white ring. */
.color-sheet { max-width: 440px; }
.color-sheet form { display: grid; gap: 14px; }
.color-sheet h2 { margin: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-height: 640px) { .color-sheet { max-width: 380px; } .color-sheet form { gap: 10px; } }
.cs-sw { aspect-ratio: 1; width: 100%; padding: 0; border: 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.cs-sw:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.cs-sw.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 2px var(--solid, #111), 0 0 0 4px #fff; }
.cs-name { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 22px; font-weight: 600; }
.cs-name i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.cs-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cs-custom { position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 700; }
.cs-custom.on { box-shadow: inset 0 0 0 1.5px #fff; }
.cs-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
/* The window's Custom key is a label (it holds the color input): give it the buttons' type, over the form label rule. */
#colorSheet .cs-custom { color: #f3f3f3; font-size: 1rem; font-weight: 700; margin: 0; }

/* An empty team color slot (user-asked 2026-11-09): a tile the colour of the fields with a thin outline
   and a +, so it reads as not picked yet. */
.tc-btn.tc-empty i { display: grid; place-items: center; background: var(--surface-2, #242424); box-shadow: inset 0 0 0 1.5px #4a4a4a; color: #8a8a8a; font-size: 1.5rem; font-style: normal; font-weight: 400; }
.tc-btn.tc-empty:hover i { box-shadow: inset 0 0 0 1.5px #6a6a6a; color: #bdbdbd; }
.cs-none { color: var(--muted); font-weight: 500; }

/* Team colors, add as you go (user-picked comp C, 2026-11-09): the picked colors as swatches, then a
   dashed + key for the next; "+ Add a color" when there are none. No labels. */
.tc-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-sw { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.tc-sw:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.tc-add { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px; border: 1.5px dashed #4a4a4a; border-radius: 12px; background: none; color: #bdbdbd; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.tc-add b { font-size: 1.3rem; font-weight: 400; color: #8a8a8a; line-height: 1; }
.tc-add.sq { width: 56px; padding: 0; justify-content: center; font-size: 1.3rem; font-weight: 400; color: #8a8a8a; }
.tc-add:hover { border-color: #6a6a6a; color: #fff; }

/* ================= UX fixes, Batch A (2026-11-10, reports/UX fix plan.md) =================
   U1 drafts, U14 narrow making cards, U3 phone pop-up, U8/U7 Player Profile, U10 Create Video with
   no clips, U12 one music note on phones, U6 Family with no logins left, U18 Upgrades hidden. */

/* U1: a draft (no video made yet) has a quieter, grey picture until the video exists. */
.tile.draft:not(.making) .tile-link > img { filter: grayscale(1) brightness(0.5); }
.tile.draft:not(.making) .tile-link > .blank { color: #5c5c5c; }
.tile.draft:not(.making) .t2 { color: var(--muted); }

/* U14: on a narrow card the step and % stay, the second line goes, and the step keeps one line. */
.tile-progress.dev { container-type: inline-size; }
@container (max-width: 200px) {
  .dev-stage small { display: none; }
  .dev-stage { right: 8px; left: 8px; bottom: 34px; }
  .dev-stage b { font-size: 0.76rem; line-height: 1.2; }
}

/* U3: on phones the video takes about half the window, so the six places and Download fit on one
   screen; the place tiles go compact (icon beside the name). */
@media (max-width: 760px) {
  .hl-pop[open] { gap: 12px; }
  .hp-vid { height: min(50vh, max(180px, calc(100vh - 450px))); max-height: none; }
  @supports (height: 100dvh) { .hp-vid { height: min(50dvh, max(180px, calc(100dvh - 450px))); } }
  .hp-side { gap: 12px; padding-top: 0; }
  .hp-side h2 { font-size: 1.25rem; }
  .hp-meta { margin-top: 3px; font-size: 0.85rem; }
  .hp-lbl { margin-bottom: 6px; }
  .hp-dest { grid-template-columns: 20px minmax(0, 1fr); column-gap: 7px; row-gap: 1px; align-items: center; padding: 8px 9px; }
  .hp-dest .hp-ico { grid-row: span 2; width: 20px; height: 20px; background: none; }
  .hp-dest .hp-ico svg { width: 18px; height: 18px; }
  .hp-dest b { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hp-dest small { font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hp-hint { margin-top: 6px; }
}
.hp-short { display: none; }
@media (max-width: 760px) { .hp-long { display: none; } .hp-short { display: inline; } }

/* U7: the Player Profile's name message, right under Name (the same look as other form errors). */
.pf-name-err { margin: -4px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(255, 82, 82, 0.14); border: 1px solid rgba(255, 138, 128, 0.4); color: #ffd6d2; font-size: 0.88rem; }
.pf-name-err[hidden] { display: none; }

/* U8: height, weight, grade and social come after the team. For guests they fold into one lifted
   "More about the player" row; everyone else sees them open with no row. */
.pf-more { display: grid; gap: 0; margin-top: 10px; }
.pf-more > .pf-sect + .pf-sect { margin-top: 10px; }
#playerForm:not(.pf-guest) .pf-more > summary { display: none; }
.pf-more-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--surface, #1a1a1a); color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.pf-more-row::-webkit-details-marker { display: none; }
.pf-more-row svg { color: var(--muted); transition: transform 160ms ease; }
.pf-more[open] > .pf-more-row { margin-bottom: 14px; }
.pf-more[open] > .pf-more-row svg { transform: rotate(180deg); }
.pf-more-row:hover { background: #202020; }
@media (prefers-reduced-motion: reduce) { .pf-more-row svg { transition: none; } }

/* U10: Create Video is dimmed while the highlight has no clips (a tap opens Add clips). */
.js-render[aria-disabled="true"] { opacity: 0.4; }

/* U12: on phones the music note shows once, in the dock; the page copy is for desktop. */
@media (max-width: 999.98px) { .ed-side > .music-note { display: none; } }

/* U6: no logins left on the plan: one line and See plans. */
.fam-full { display: grid; gap: 14px; justify-items: start; }
.fam-full p { margin: 0; }
.fam-full[hidden] { display: none; }

/* U18: Upgrades stays out of the nav until there's an add-on (the page and its route stay). */
.desk-link[data-screen="upgrades"], .drawer-link[data-screen="upgrades"] { display: none !important; }

/* ================= The stepped Player Profile (comp C, user-picked 2026-11-10) =================
   A new player is made in three steps: progress dots, earlier answers as chips, a question as the title,
   and the red button at the bottom. The form's own sections and the team card's parts are shown per
   step (.pf-s1 / .pf-s2 / .pf-s3). The title card preview is Big Shoulders (the one place it's used):
   desktop keeps it beside the form on every step, phones show it on step 3 only. Editing a player on
   Roster keeps the single page. */
#playerForm:not(.pf-steps) .pf-dots, #playerForm:not(.pf-steps) .pf-chips, #playerForm:not(.pf-steps) #pfNext, #playerForm:not(.pf-steps) .pf-side { display: none; }
.pf-steps:not([data-step="1"]) .pf-s1, .pf-steps:not([data-step="2"]) .pf-s2, .pf-steps:not([data-step="3"]) .pf-s3 { display: none !important; }
.pf-steps[data-step="1"] .pf-sect[aria-labelledby="pfTeamsH"] { display: none; }
.pf-steps #pfTeamsH, .pf-steps #pfAddTeam, .pf-steps #pfMore, .pf-steps #pfDelete, .pf-steps .team-remove { display: none !important; }
.pf-steps:not([data-step="3"]) #pfAgree, .pf-steps:not([data-step="3"]) .pf-actions button[type="submit"], .pf-steps[data-step="3"] #pfNext { display: none; }
.pf-steps .pf-sect + .pf-sect { margin-top: 0; }

.pf-dots { display: flex; gap: 6px; justify-content: center; }
.pf-dots i { width: 6px; height: 6px; border-radius: 3px; background: #3a3a3a; transition: width 0.2s ease, background 0.2s ease; }
.pf-dots i.done { background: #f3f3f3; }
.pf-dots i.on { width: 18px; background: #f3f3f3; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips[hidden] { display: none; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 12px; border: 0; border-radius: 17px; background: var(--surface, #1a1a1a); color: #e6e6e6; font: 600 0.875rem/1 var(--body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chip svg { flex: none; color: #8d8d8d; }
.pf-chip:hover { background: #222; }
.pf-chip:hover svg { color: #cfcfcf; }
#playerForm.pf-steps #pfTitle { margin: 0; font-size: 1.875rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
#playerForm.pf-steps #pfNote { margin: -4px 0 0; color: var(--muted); font-size: 1rem; }
/* The team's fields sit straight on the page, not in a card. */
body #playerForm.pf-steps .team-card.plain { background: none; border: 0; padding: 0; box-shadow: none; }
#playerForm.pf-steps .team-card.plain .team-body { padding: 0; }
/* One red button; Cancel / Skip for now is a quiet word under it. */
.pf-steps .pf-actions { grid-template-columns: 1fr; gap: 4px; margin-top: 8px; }
.pf-steps .pf-actions .primary { min-height: 52px; font-size: 1.05rem; font-weight: 800; }
.pf-steps #pfCancel { order: 2; min-height: 40px; background: none; border: 0; color: var(--muted); font-weight: 600; }
.pf-steps #pfCancel:hover { color: #fff; }

/* The title card preview. */
.pf-tc { position: relative; flex: none; width: 150px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); container-type: inline-size; font-family: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; text-align: left; }
.pf-tc i { position: absolute; left: -30%; width: 160%; transform: rotate(-14deg); }
.ptc-band { top: 56%; height: 15%; background: var(--c1, #3a3a3a); transition: background 0.2s ease; }
.ptc-stripe { top: 71%; height: 2.5%; background: var(--c2, transparent); display: none; }
.pf-tc.has-c2 .ptc-stripe { display: block; }
.ptc-t { position: absolute; left: 9%; right: 9%; top: 30%; display: grid; justify-items: start; }
.ptc-first { color: #fff; font-weight: 700; font-size: 9cqw; line-height: 1.1; letter-spacing: 0.04em; }
.ptc-last { color: #fff; font-weight: 900; font-size: 24cqw; line-height: 0.9; white-space: nowrap; }
.ptc-last.ptc-none { color: #4a4a4a; }
.ptc-num { color: var(--num, #bbbbbb); font-weight: 900; font-size: 14cqw; line-height: 1; margin-top: 2cqw; }
.ptc-team { position: absolute; left: 9%; right: 9%; top: 79%; color: #fff; opacity: 0.9; font-weight: 700; font-size: 7cqw; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .ptc-band, .pf-dots i { transition: none; } }

/* Phones: the button sits at the bottom of the screen; the card shows on step 3, above the colors,
   sized so step 3 and its button fit without scrolling. */
@media (max-width: 999.98px) {
  #playerForm.pf-steps { display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - var(--pf-top, 80px)); }
  @supports (height: 100dvh) { #playerForm.pf-steps { min-height: calc(100dvh - var(--pf-top, 80px)); } }
  #playerForm.pf-steps .pf-actions { margin-top: auto; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .pf-steps .pf-side { display: none; }
  .pf-tc-slot { display: flex; justify-content: center; }
  .pf-tc-slot .pf-tc { width: auto; height: clamp(150px, calc(100vh - 560px), 267px); }
  @supports (height: 100dvh) { .pf-tc-slot .pf-tc { height: clamp(150px, calc(100dvh - 560px), 267px); } }
}
/* Desktop: the form in a 560px column on the page grid, the card beside it on every step. */
@media (min-width: 1000px) {
  body.signed-in #players.page.narrow > #playerForm.pf-steps { max-width: none; }
  #playerForm.pf-steps { grid-template-columns: 560px 250px; column-gap: 80px; row-gap: 16px; align-content: start; }
  #playerForm.pf-steps > * { grid-column: 1; max-width: 560px; }
  #playerForm.pf-steps > .pf-side { grid-column: 2; grid-row: 1 / span 20; align-self: start; position: sticky; top: 96px; max-width: none; text-align: center; }
  .pf-side .pf-tc { width: 250px; }
  .pf-side p { margin: 12px 0 0; color: #8d8d8d; font-size: 0.875rem; font-weight: 600; }
  .pf-steps .pf-tc-slot { display: none !important; }
  .pf-steps .pf-dots { justify-content: flex-start; }
  #playerForm.pf-steps #pfTitle { font-size: 2.5rem; }
  .pf-steps .pf-actions { justify-items: start; margin-top: 14px; }
  .pf-steps .pf-actions .primary { width: 240px; }
  .pf-steps #pfCancel { justify-self: start; padding: 0 2px; }
}

/* Film Room: the quiet "add details" card (height, grade, socials), one line where it fits. */
.more-card { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--surface, #1a1a1a); }
.more-card[hidden] { display: none; }
.more-card p { flex: 1; min-width: 0; margin: 0; color: #cfcfcf; font-size: 0.875rem; line-height: 1.35; }
.more-add { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: #2a2a2a; color: #fff; font: 700 0.85rem/1 var(--body); cursor: pointer; }
.more-add:hover { background: #333; }
.more-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: #8d8d8d; cursor: pointer; }
.more-x:hover { color: #fff; }
#libMain .car-foot + .more-card { margin-top: 10px; }
@media (min-width: 1000px) { #libMain .lib-sect + .more-card { margin: 0 0 16px; max-width: 760px; } }

/* ---- Player profile: one social account with the name and age (user-asked 2026-11-10) ---- */
.pf-social1 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); margin-top: 10px; }
.pf-social1 select { width: 100%; }
.pf-social1 select { appearance: none; -webkit-appearance: none; height: 46px; padding: 10px 34px 10px 12px; border: 1px solid transparent; border-radius: 8px; background: #242424 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a6a6a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; color: #f3f3f3; font: inherit; font-size: 16px; cursor: pointer; }
.pf-social1 select:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ================= Highlight page: the look shelf (user-picked comp C, 2026-11-12) =================
   One column. The clips are one slim row (thumbnails, how many and how long, + Add clips, From library, and
   Order and trim, which opens the full list under it). Then "Pick a look": the title cards as a shelf that
   scrolls sideways (Show filters once there's a pack, arrows with a mouse). Then one row: Transitions (and
   Name tag, Game caption, Ending once they have choices) as menus with pictures, Music, and Create Video.
   On desktop the row stays at the bottom while the rest scrolls; phones keep Create Video in the dock. */
.ed-clipsect .ed-ch { margin-bottom: 0; }
.ed-clipsect:not(.open) .ed-clips { display: none; }
.ed-clipsect.open .ed-clips { margin-top: 14px; }
.ed-clipsect .ed-empty { margin-top: 14px; }
.ed-clipsect h2 { min-width: 60px; }
.ed-strip { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.ed-strip:empty { display: none; }
.ed-strip img { flex: none; width: 44px; height: 44px; border-radius: 7px; object-fit: cover; background: #111; }
.ed-more-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; background: var(--surface-2, #242424); color: #cfcfcf; font-size: 0.82rem; font-weight: 700; }
.ed-clipsect.open #clipsOpen { background: #fff; color: #000; }

.ed-lh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ed-lh h2 { margin: 0 auto 0 0; font-size: 1.15rem; }
.ed-filt { display: flex; gap: 6px; }
.ed-filt:empty { display: none; }
.ed-chip { min-height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--surface-2, #242424); color: #cfcfcf; font: 600 0.84rem/1 var(--body); cursor: pointer; }
.ed-chip:hover { color: #fff; }
.ed-chip.on { background: #fff; color: #000; }
.ed-arrows { display: flex; gap: 6px; margin-left: 6px; }
.ed-arrows.none { display: none; }
.ed-arw { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 0 2px; border: 0; border-radius: 50%; background: var(--surface-2, #242424); color: #fff; font: 700 1.2rem/1 var(--body); cursor: pointer; }
.ed-arw:hover:not(:disabled) { background: #2e2e2e; }
.ed-arw:disabled { opacity: 0.35; cursor: default; }
.ed-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px; margin: -3px; }
.ed-shelf::-webkit-scrollbar { display: none; }
.ed-shelf .ed-opt { background: none; border-radius: 0; overflow: visible; scroll-snap-align: start; align-content: start; }
.ed-shelf .ed-opt[hidden] { display: none; }
.ed-shelf .ed-opt:hover { background: none; }
.ed-shelf .ed-pic { border-radius: 12px; }
.ed-shelf .ed-opt.on::before { inset: 0 0 auto 0; aspect-ratio: 16 / 9; border-radius: 12px; }
.ed-shelf .ed-opt:focus-visible { outline: none; }
.ed-shelf .ed-opt:focus-visible .ed-pic { box-shadow: var(--focus-ring); }
.ed-shelf .ed-ol { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 2px 0; }
.ed-shelf .ed-ol b { font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; }
.ed-shelf .ed-ol small { flex: none; font-size: 0.8rem; }
.ed-shelf .ed-opt:not([data-pack=""]) .ed-ol small { color: #fff; font-weight: 700; }

.ed-make { display: grid; gap: 14px; }
.ed-more { display: contents; }
.ed-dd { position: relative; min-width: 0; display: grid; gap: 7px; }
.ed-dd[hidden] { display: none; }
.ed-ddl { font-size: 0.82rem; font-weight: 600; color: #a6a6a6; }
.ed-ddbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px 0 7px; border: 0; border-radius: 8px; background: var(--surface-2, #242424); color: #fff; font: 700 0.92rem/1.2 var(--body); text-align: left; cursor: pointer; }
.ed-ddbtn:hover { background: #2a2a2a; }
.ed-ddpic { position: relative; flex: none; width: 68px; height: 38px; border-radius: 5px; overflow: hidden; background: #0d0d0d; }
.ed-ddpic video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-ddpic .ed-pic { position: absolute; inset: 0; aspect-ratio: auto; }
.ed-ddname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-ddarr { flex: none; color: #a6a6a6; transition: transform 150ms ease; }
.ed-dd.open .ed-ddarr { transform: rotate(180deg); }
.ed-ddmenu { display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: var(--surface-2, #242424); max-height: min(62vh, 520px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.ed-ddmenu[hidden] { display: none; }
.ed-ddmenu .ed-opt { grid-template-columns: 96px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; background: none; overflow: visible; }
.ed-ddmenu .ed-opt:hover, .ed-ddmenu .ed-opt:focus-visible, .ed-ddmenu .ed-opt.on { background: #303030; outline: none; }
.ed-ddmenu .ed-opt.on::before { display: none; }
.ed-ddmenu .ed-opt.on::after { position: static; width: auto; height: auto; background: none; color: #fff; font-size: 0.95rem; }
.ed-ddmenu .ed-pic { width: 96px; border-radius: 5px; }
.ed-ddmenu .ed-ol { padding: 0; gap: 2px; }
.ed-ddmenu .ed-ol b { font-size: 0.9rem; font-weight: 700; }
.ed-ddmenu .ed-ol small:empty { display: none; }
.ed-music select, .ed-sample { min-height: 52px; }
.ed-go .ed-total { display: none; }
@media (max-width: 999.98px) {
  .ed-go { display: none; }
  .ed-main { gap: 22px; }
  #editor .ed-side { margin-top: 22px; }
  .ed-ddmenu { margin-top: 2px; }
}
@media (min-width: 640px) and (max-width: 999.98px) { .ed-shelf { grid-auto-columns: calc((100% - 14px) / 2.2); } }
@media (min-width: 1000px) {
  #editor .ed-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0; }
  #editor .ed-main { gap: 24px; }
  #editor .ed-side { position: static; margin-top: 0; padding-top: 18px; }
  .ed-clipsect .ed-ch { flex-wrap: nowrap; gap: 14px; }
  .ed-clipsect .ed-count { white-space: nowrap; }
  .ed-shelf { grid-auto-columns: calc((100% - 3 * 16px) / 3.35); gap: 16px; }
  .ed-make { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
  .ed-make > .ed-dd, .ed-more > .ed-dd, .ed-musicf { flex: 1 1 0; min-width: 0; }
  .ed-go { flex: none; width: 280px; }
  .ed-go .primary { width: 100%; min-height: 52px; }
  .ed-make #renderError { flex-basis: 100%; margin: 0; }
  .ed-ddmenu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: max(100%, 340px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); }
  .ed-side > .music-note p { text-align: right; padding-top: 8px; }
}
/* the fixed desktop layout (only the top part scrolls) keeps the make row under it */
@media (min-width: 1000px) {
  body.signed-in #editor.ed > .ed-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  body.signed-in #editor .ed-side { margin-top: 0; padding-top: 18px; }
}
/* Bigger looks (about 2.6 across) and the make row right under the shelf; the top part scrolls only once the
   clip list is open and it runs out of room. */
@media (min-width: 1000px) {
  .ed-shelf { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); }
  body.signed-in #editor.ed > .ed-cols { grid-template-rows: minmax(0, max-content) auto; align-content: start; }
}
.ed-shelf .ed-opt.on, .ed-ddmenu .ed-opt.on { box-shadow: none; }
.ed-clipsect.open .ed-strip { visibility: hidden; }
/* The shelf scrolls inside its column instead of widening the page. */
#editor .ed-cols, #editor .ed-main { grid-template-columns: minmax(0, 1fr); }
.ed-looks, .ed-side { min-width: 0; }
.ed-clipsect .ed-strip { flex: 1 1 0; }
@media (min-width: 1000px) { .ed-clipsect .ed-strip { flex: 0 1 auto; } }
@media (max-width: 999.98px) {
  .ed-arrows { display: none; }
  .ed-lh { flex-wrap: wrap; }
  .ed-lh h2 { flex-basis: 100%; }
  .ed-filt { overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .ed-filt::-webkit-scrollbar { display: none; }
  .ed-chip { flex: none; white-space: nowrap; }
  .ed-clipsect .ed-add .ed-btn { padding: 0 6px; white-space: nowrap; font-size: 0.82rem; }
}
.ed-ddmenu { scroll-margin-bottom: calc(var(--dock-h, 0px) + 16px); position: relative; }
@media (min-width: 1000px) { .ed-ddmenu { position: absolute; } }
@media (max-width: 999.98px) { .ed-ddmenu { scroll-margin-bottom: 140px; } }
/* Short windows: the looks shrink so the shelf and the make row fit without scrolling. */
@media (min-width: 1000px) and (min-height: 560px) {
  .ed-shelf { grid-auto-columns: max(200px, min(calc((100% - 2 * 16px) / 2.6), calc((100vh - 580px) * 16 / 9))); }
}

/* ================= Landing page phone: a full screen (user-asked 2026-11-12) =================
   The black bands above and below the 9:16 reel looked like an old phone. The reel now fills the screen's
   width (a little over, 106%, so the graphics near its edges still show), sits in the middle with its top and
   bottom edges feathered, and a blurred copy of the same reel fills the whole screen behind it, so the status
   bar, the Dynamic Island and the home bar float over the picture as on a current iPhone. */
.reel-fill { display: none; }
@media (min-width: 1000px) {
  .reel-device .reel-fill { display: block; position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(22px) brightness(0.62); z-index: 0; pointer-events: none; }
  .reel-device .reel-video { z-index: 1; left: -3%; width: 106%; top: 50%; height: calc(var(--s) * 1.06 * 16 / 9); transform: translateY(-50%); background: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
  .dev-status, .dev-island, .dev-home, .reel-device .reel-tag { z-index: 3; }
  .dev-status { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
  .reel-device .reel-tag { bottom: calc((100% - var(--s) * 1.06 * 16 / 9) / 2 + 14px); right: 16px; }
}

/* ---- From library picker: the check is a white ring that fills solid white when picked (user-asked 2026-11-12).
   It sits on the clip's picture, so it's white in light mode too (light-fixes.css keeps it). */
.lp-ck { background: transparent; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 5px rgba(0, 0, 0, 0.45); }
.lp-tile input:checked ~ .lp-ck { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 5px rgba(0, 0, 0, 0.45); }

/* ================= Highlight page: three tiles, one button (user-picked 2026-11-13) =================
   reports/Simple highlight page recommended.png. Clips, Look and Song as three tiles, each showing what is in
   it with a green tick once it is set; under them one wide Create Video and a line saying what happens next.
   Each tile opens its own window. Phones: three rows, Create Video in the dock. The page scrolls as one again
   (the fixed two-pane layout above is for the old page). */
@media (min-width: 1000px) and (min-height: 560px) {
  html:has(body.signed-in #editor.ed:not([hidden])) { overflow: auto; }
  body.signed-in:has(#editor.ed:not([hidden])) { height: auto; overflow: visible; }
  body.signed-in #editor.ed { display: block; height: auto; padding-bottom: 48px; }
}
.ed3 { display: grid; gap: 10px; margin-top: 6px; }
.ed3-tile { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-areas: "pic top" "pic name" "pic sub"; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; padding: 12px; border: 0; border-radius: 14px; background: var(--surface, #1a1a1a); color: var(--ink); text-align: left; font: inherit; cursor: pointer; position: relative; }
.ed3-tile:hover { background: #202020; }
.ed3-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ed3-tile.over { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.ed3-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ed3-step { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8f8f8f; }
.ed3-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px #4a4a4a; display: grid; place-items: center; color: #fff; }
.ed3-tile.set .ed3-tick { background: #1fa34a; box-shadow: none; }
.ed3-pic { grid-area: pic; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #242424; align-self: center; }
.ed3-pic video, .ed3-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ed3-name { grid-area: name; margin-top: 4px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed3-sub { grid-area: sub; margin-top: 2px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.ed3-mosaic { position: absolute; inset: 0; display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.ed3-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0; min-height: 0; }
.ed3-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ed3-mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.ed3-mosaic.n3 { grid-template-rows: 1fr; }
.ed3-mosaic.n4 { grid-template-columns: 1fr 1fr; }
.ed3-mosaic.n5 img:first-child { grid-row: span 2; }
.ed3-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; color: var(--ink); }
.ed3-empty b { font-size: 0.82rem; }
.ed3-empty small { display: none; font-size: 0.78rem; color: var(--muted); line-height: 1.35; max-width: 260px; }
.ed3-plus { width: 38px; height: 38px; border-radius: 50%; background: var(--team, #df051b); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; font-weight: 500; }
.ed3-dash b { display: none; }
.ed3-note { font-size: 26px; line-height: 1; color: var(--ink); }
.ed3-later b { display: none; }
.ed3-wave { position: absolute; inset: 0; background: #0d0d0d; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 12%; }
.ed3-wave i { flex: 1; max-width: 6px; max-height: 64%; border-radius: 3px; background: #8a8a8a; }
.ed3-wave i.hi { background: #fff; }
.ed3-change { position: absolute; right: 8px; top: 8px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; font-weight: 700; display: none; align-items: center; }
.ed3-go { margin-top: 18px; }
.ed3-go .primary.big { width: 100%; min-height: 64px; font-size: 1.25rem; font-weight: 800; border-radius: 12px; }
.ed3-go .primary[aria-disabled="true"] { opacity: 0.35; }
.ed3-next { margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.ed3-next.need { color: var(--ink); font-weight: 600; }
@media (max-width: 999px) {
  .ed3-go .ed3-next { display: none; }
}
@media (min-width: 760px) {
  .ed3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
  .ed3-tile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "pic" "name" "sub"; grid-template-rows: auto auto auto 1fr; padding: 16px 16px 18px; border-radius: 16px; }
  .ed3-top { margin-bottom: 12px; }
  .ed3-pic { border-radius: 12px; }
  .ed3-name { margin-top: 14px; font-size: 1.4rem; }
  .ed3-sub { font-size: 0.9rem; }
  .ed3-empty b, .ed3-dash b, .ed3-later b { display: block; font-size: 1rem; }
  .ed3-empty small { display: block; }
  .ed3-plus { width: 52px; height: 52px; font-size: 32px; margin-bottom: 6px; }
  .ed3-note { font-size: 34px; margin-bottom: 4px; }
  .ed3-wave { gap: 5px; }
  .ed3-wave i { max-width: 7px; }
  .ed3-change { display: flex; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 0.8rem; right: 12px; top: 12px; }
  .ed3-go { margin-top: 26px; }
  .ed3-go .primary.big { min-height: 76px; font-size: 1.45rem; }
}
/* The windows: the clips list, the looks, the songs. */
.ed3-win { padding: 0; }
.ed3-win[open] { display: flex; flex-direction: column; }
.ed3-wh { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.ed3-wh .grow { flex: 1; }
.ed3-x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.ed3-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.ed3-wt { margin: 2px 20px 12px; font-size: 1.35rem; font-weight: 800; }
.ed3-wf { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); display: grid; }
.ed3-win .ed-clipsect { background: none; padding: 0 20px; overflow: auto; min-height: 0; flex: 1; }
.ed3-win .ed-clipsect .ed-strip, .ed3-win #clipsOpen { display: none !important; }
.ed3-win .ed-clipsect .ed-ch h2 { font-size: 1.35rem; font-weight: 800; margin: 2px 0 0; }
.ed3-win .ed-clipsect .ed-clips { display: grid; margin-top: 14px; }
.ed3-lookwin .ed-looks { padding: 0 20px 20px; overflow: auto; min-height: 0; flex: 1; }
.ed3-lookwin .ed-lh { margin-bottom: 14px; }
.ed3-lookwin .ed-lh h2 { font-size: 1.35rem; font-weight: 800; margin: 2px 0 0; }
.ed3-lookwin .ed-arrows { display: none !important; }
.ed3-lookwin .ed-shelf { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; gap: 14px 12px; }
.ed3-musicwin .ed3-songs { display: grid; gap: 4px; padding: 0 12px; overflow: auto; min-height: 0; }
.ed3-musicwin .music-note { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); }
.ed3-song { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px; border-radius: 12px; cursor: pointer; }
.ed3-song:hover { background: #222; }
.ed3-song:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ed3-song.on { background: #262626; }
.ed3-sp { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; }
.ed3-sp-none { background: #2e2e2e; color: var(--ink); font-size: 18px; cursor: inherit; }
.ed3-sn { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ed3-sn b { font-size: 1rem; }
.ed3-sn small { color: var(--muted); font-size: 0.8rem; }
.ed3-ck { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.ed3-song.on .ed3-ck { background: #fff; color: #000; display: grid; place-items: center; }
.ed3-song.on .ed3-ck::after { content: "✓"; font-size: 13px; font-weight: 900; }
@media (min-width: 640px) {
  .ed3-win { width: min(1040px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 80px); }
  .ed3-musicwin { width: min(560px, calc(100vw - 48px)); }
  #clipsWin { width: min(720px, calc(100vw - 48px)); }
  .ed3-wh { padding: 22px 28px 0; }
  .ed3-wt { margin: 2px 28px 14px; }
  .ed3-win .ed-clipsect { padding: 0 28px; }
  .ed3-wf { padding: 16px 28px 24px; justify-items: end; }
  .ed3-wf .primary { min-width: 160px; }
  .ed3-lookwin .ed-looks { padding: 0 28px 28px; }
  .ed3-lookwin .ed-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .ed3-musicwin .ed3-songs { padding: 0 20px; }
  .ed3-musicwin .music-note { padding: 14px 28px 24px; }
}

/* ================= A highlight being made: the ClipHype C fills with red (user-asked 2026-11-13) =================
   The picture stays darkened the whole time; over it the white C badge, which fills with red from the bottom
   as the video is made (--p, 0 to 1). No step words, no bar, no %. Every card shows only its title. */
.tile .t2 { display: none !important; }
.tile.making:not(.extra) .tile-link > img { filter: brightness(0.42) saturate(0.7); transform: none; }
.dev-stage, .dev-pct, .dev-track { display: none !important; }
.tile-progress.dev { display: grid !important; place-items: center; }
.dev-c { position: relative; display: block; width: 38%; max-width: 120px; aspect-ratio: 452 / 392; color: #fff; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)); }
.dev-c svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: none; }
.dev-c-fill { position: absolute; inset: 0; color: var(--team, #df051b); clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); transition: clip-path 0.8s ease; }
.tile.waiting .dev-c { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .dev-c-fill { transition: none; } }

/* ================= Highlight cards: the whole tall picture, a title on up to two lines (user-asked 2026-11-13) =================
   The picture is the video's own shape, 9:16, so nothing is cropped (the making overlay and the Next highlight
   card match it). The title wraps onto a second line when it needs to and room for two lines is kept on every
   card, so a row of cards stays even, with the same space under the title on each. */
#library .tile .tile-link > img, #library .tile .tile-link > .blank, #library .carousel .tile img,
#library .tile .tile-progress, #library .tile-progress.dev, #library .nt-pic img { aspect-ratio: 9 / 16; }
#library .tile .t1 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow: hidden; text-overflow: clip; overflow-wrap: anywhere;
  line-height: 1.25; min-height: calc(2 * 1.25em + 10px); max-height: calc(2 * 1.25em + 10px); box-sizing: border-box;
  padding: 10px 44px 0 12px; margin-bottom: 14px; /* the space under it is a margin, so a clamped third line never shows in it */
}
@media (max-width: 639px) {
  #library .carousel .tile .t1 { padding: 8px 32px 0 8px; margin-bottom: 12px; min-height: calc(2 * 1.25em + 8px); max-height: calc(2 * 1.25em + 8px); }
}
@media (min-width: 1000px) {
  #library .tile .t1 { padding: 10px 44px 0 12px; margin-bottom: 16px; }
  #library .tile-btn.more { bottom: calc(16px + 1.25 * 0.92rem - 9px); } /* level with the second line, the ⋯ sitting in the title block */
}

/* No play button on the cards (user-asked 2026-11-13): the picture gets slightly brighter with the mouse over it,
   and a click on the card or its share button opens the highlight pop-up. */
#library .tile .tile-link > img { transition: filter 0.15s ease; }
@media (hover: hover) {
  #library .tile:not(.making):not(.draft):hover .tile-link > img { filter: brightness(1.3); }
}
#library .tile .tile-link > img, #library .tile .tile-link > .blank { grid-area: 1 / 1; } /* the play ring shares the picture cell on phones too */
#library .tile .tile-link > .t1 { grid-row: 2; grid-column: 1; }
#library .tile .tile-len { position: relative; z-index: 2; } /* stays above the picture when the hover brighten puts it on its own layer */

/* The line under the C (2026-11-13): a phrase, then dots one a second; centred as if all three dots were there so
   it never shifts as they come in. */
.tile-progress.dev .dev-in { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tile-progress.dev .dev-c { width: 38%; }
.dev-st { color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); white-space: nowrap; line-height: 1.2; min-height: 1.2em; max-width: 92%; overflow: hidden; }
.dev-st .pad, .dev-st .dots { display: inline-block; width: 1.2em; text-align: left; }
@media (max-width: 639px) { .dev-st { font-size: 0.68rem; } .tile-progress.dev .dev-in { gap: 8px; } }

/* The song tile's waveform (2026-11-13): the song's own wave, mirrored, in the team's Light and Accent over its Dark. */
.ed3-wave svg { position: absolute; left: 6%; right: 6%; top: 14%; bottom: 14%; width: 88%; height: 72%; }
.ed3-wave i { display: none; }

/* Comp B refined (user-picked 2026-11-13): empty tiles are a faint cross-hatch and a plus, the button always red
   and saying what's next, the song marked Optional, and the highlight's name with a small Rename after it. */
.ed3-hatch { position: absolute; inset: 0; display: grid; place-items: center; background-color: #222;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 1.5px, transparent 1.5px 12px); }
.ed3-plus2 { font-size: 30px; font-weight: 300; line-height: 1; color: #8a8a8a; }
@media (min-width: 760px) { .ed3-plus2 { font-size: 44px; } }
.ed3-opt { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: #2a2a2a; color: var(--muted); font-size: 0.6em; font-weight: 700; letter-spacing: 0; vertical-align: 0.2em; }
.ed3-tile.opt-off .ed3-tick { box-shadow: none; }
.ed3-go .primary.big, .ed3-go .primary[aria-disabled] { opacity: 1; }
.ed-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ed-title-row .ed-title-wrap { min-width: 0; max-width: 100%; }
.ed-title-row .ed-title { width: auto; max-width: 100%; }
.ed-rename { border: 0; background: none; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); border-bottom: 1px dashed currentColor; cursor: pointer; }
.ed-rename:hover { color: var(--ink); }

/* Empty tiles (2026-11-13): diagonal shading, one way, and a plus; the name sheet asked on Create Highlight. */
.ed3-hatch { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px) !important; background-color: #222; }
.name-sheet form { gap: 14px; }
.name-sheet input { width: 100%; box-sizing: border-box; font-size: 1.15rem; font-weight: 700; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chips:empty { display: none; }
.ns-chip { border: 0; border-radius: 16px; padding: 7px 12px; background: var(--surface-2, #242424); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.ns-chip:hover { background: #2e2e2e; }
@media (min-width: 640px) { .name-sheet { max-width: 480px; } }
.name-sheet .primary:disabled { opacity: 1; background: #2e2e2e; color: #8a8a8a; cursor: default; } /* waiting for a name: neutral, not a faded red */
.ed-title-row.stack { flex-direction: column; align-items: flex-start; gap: 2px; } /* a long name: Rename under it */

/* The highlight header, tidied (2026-11-13): the name as text with a small pencil after it (a click on either
   edits it), the player line right under it with its own pencil for Edit details, no "Saved". */
.ed-title-row { display: block; }
.ed-name { margin: 0; font: 800 clamp(1.7rem, 6vw, 2.5rem)/1.15 var(--body); letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ed-name[hidden] { display: none; }
.ed-name-txt { cursor: text; }
.ed-pen { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; vertical-align: 0.12em; border: 0; border-radius: 8px; background: none; color: #8a8a8a; cursor: pointer; padding: 0; }
.ed-pen:hover, .ed-name:hover .ed-pen { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.ed-pen.sm { width: 28px; height: 28px; margin-left: 2px; vertical-align: middle; }
.ed-who { margin-top: 4px; align-items: center; gap: 4px 6px; }
.ed-title-row .ed-title-wrap[hidden] { display: none; }
.ed-title-row .ed-title { width: 100%; max-width: 760px; margin-left: -10px; padding: 2px 10px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); background: var(--surface, #1a1a1a) !important; }
#saveState:empty { display: none; }

/* ===== Clips window (user-asked 2026-11-13): titled Clip Order, with no count or running time beside it. */
#clipsWin #runtime { display: none; }

/* ===== Team line (comp B, user-picked 2026-11-13): a player on more than one team picks one under their name.
   Desktop: under the name in the page title. Phones: under the player bar. The menu drops under it. */
.team-line {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin: 0; padding: 4px 10px 4px 4px; border: 0; border-radius: 18px;
  background: none; color: #bdbdbd; font: 600 0.92rem/1.2 var(--body); cursor: pointer; text-align: left;
}
.team-line[hidden] { display: none; }
.team-line:hover, .team-line[aria-expanded="true"] { background: #1f1f1f; color: #fff; }
.team-line svg:last-child { flex: none; color: #8d8d8d; }
.tl-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-badge {
  flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 900; font-size: calc(var(--s) * 0.42); line-height: 1; overflow: hidden; font-variant-numeric: tabular-nums;
}
.tl-badge.logo { background: #fff; }
.tl-badge.logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-badge.all { background: #2e2e2e; color: #d0d0d0; }
#library .ps-team { display: flex; margin: -12px 0 16px; }
@media (min-width: 1000px) {
  #library .ps-team { display: none; }
  .desk-title .team-line:not([hidden]) { display: flex; width: fit-content; margin: 8px 0 0 -4px; }
}
.team-menu {
  position: fixed; z-index: 60; box-sizing: border-box; padding: 6px;
  background: #1f1f1f; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - 120px); overflow-y: auto;
}
.team-menu[hidden] { display: none; }
.tm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: none; color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.tm-row:hover, .tm-row:focus-visible, .tm-row.on { background: #2a2a2a; }
.tm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-text b { font-size: 0.92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-text small { color: #8d8d8d; font-size: 0.8rem; }
.tm-row .ch-check { flex: none; }
.tm-row.add { margin-top: 4px; border-top: 1px solid #2a2a2a; border-radius: 0 0 10px 10px; color: #d0d0d0; }
.tm-plus { width: 32px; text-align: center; font-size: 1.2rem; font-weight: 700; }

/* ===== Share window, comp D (user-picked 2026-11-13, reports/Share window comp D.png): just the name, the
   six places and the two buttons. Each place is its icon (no backing) over its name, centred; the shape
   and "made when you pick it" lines are for screen readers only. The column sits in the middle of the video. */
.hp-side { justify-content: center; gap: 22px; padding: 0 4px 20px 0; }
.hp-lbl { margin-bottom: 10px; }
.hp-dest { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px 8px; text-align: center; }
.hp-dest b { font-size: 0.95rem; line-height: 1.2; }
.hp-ico { width: auto; height: auto; background: none; border-radius: 0; }
.hp-ico svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .hp-side { gap: 12px; padding: 0; justify-content: flex-start; }
  .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-dest { min-height: 72px; display: flex; gap: 6px; padding: 6px 2px; }
  .hp-dest .hp-ico { width: auto; height: auto; }
  .hp-dest .hp-ico svg { width: 22px; height: 22px; }
  .hp-dest b { font-size: 0.72rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* ===== Pick a song: genre (user-asked 2026-11-13). The song's genre as a small tag before its tick, and a row of
   genre filters above the songs (All first), like the looks window's chips. */
.ed3-sfilter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.ed3-sfilter[hidden] { display: none; }
.ed3-sf { height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: #242424; color: #bdbdbd; font: 600 0.82rem/1 var(--body); cursor: pointer; }
.ed3-sf:hover { color: #fff; }
.ed3-sf.on { background: #fff; color: #000; }
.ed3-genre { flex: none; padding: 4px 9px; border-radius: 10px; background: #2a2a2a; color: #bdbdbd; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
@media (min-width: 640px) { .ed3-sfilter { padding: 0 20px 12px; } }

/* Genre and mood (2026-11-13): two filter rows, each led by its name, and both flags on a song's row. */
.ed3-sfilters { display: grid; gap: 8px; padding: 0 12px 12px; }
.ed3-sfilters[hidden], .ed3-sfilters .ed3-sfilter[hidden] { display: none; }
.ed3-sfilters .ed3-sfilter { padding: 0; align-items: center; }
.ed3-sfl { width: 46px; color: #8d8d8d; font-size: 0.78rem; font-weight: 600; }
.ed3-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ed3-snone { margin: 6px 12px; color: #8d8d8d; font-size: 0.88rem; }
@media (min-width: 640px) { .ed3-sfilters { padding: 0 20px 14px; } }

/* Pick a song holds still (user-asked 2026-11-13): one fixed height whatever the filters leave, the songs scrolling
   inside it, and each filter row on one line (it scrolls sideways on a phone instead of wrapping). */
.ed3-musicwin[open] { height: min(680px, 88dvh); }
.ed3-musicwin .ed3-songs { flex: 1; align-content: start; }
.ed3-sfilters .ed3-sfilter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ed3-sfilters .ed3-sfilter::-webkit-scrollbar { display: none; }
.ed3-sfilters .ed3-sf, .ed3-sfl { flex: none; }
@media (min-width: 640px) { .ed3-musicwin[open] { height: min(680px, calc(100vh - 80px)); } }
.ed3-sfilters .ed3-sfilter { margin-right: -12px; padding-right: 12px; }
@media (min-width: 640px) { .ed3-sfilters .ed3-sfilter { margin-right: -20px; padding-right: 20px; } }
/* Only the chips scroll; the row's name stays put. */
.ed3-sfilters .ed3-sfilter { overflow: visible; margin-right: 0; padding-right: 0; }
.ed3-sfs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-right: -12px; padding-right: 12px; }
.ed3-sfs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .ed3-sfs { margin-right: -20px; padding-right: 20px; } }
.ed3-musicwin[open] { overflow-x: hidden; }
.ed3-sfilters { grid-template-columns: minmax(0, 1fr); } .ed3-sfilters .ed3-sfilter { display: flex; min-width: 0; }

/* ===== Pick a song, comp B (user-picked 2026-11-13): a No music | Add a song switch; No music shows an icon and a line,
   with the music note under it; Add a song shows the filters and the songs (genre and mood a grey line). */
.ed3-mseg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 20px 14px; padding: 3px; border-radius: 10px; background: #242424; }
.ed3-mseg button { height: 40px; border: 0; border-radius: 8px; background: none; color: #a6a6a6; font: 700 0.9rem/1 var(--body); cursor: pointer; }
.ed3-mseg button:hover { color: #fff; }
.ed3-mseg button.on { background: #3a3a3a; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.ed3-mnone { display: grid; justify-items: center; gap: 12px; margin: 28px 20px 0; text-align: center; }
.ed3-mnone[hidden] { display: none; }
.ed3-mnone-ic { width: 68px; height: 68px; border-radius: 50%; background: #242424; display: grid; place-items: center; color: #fff; }
.ed3-mnone p { margin: 0; color: #a6a6a6; font-size: 0.95rem; }
.ed3-musicwin .ed3-songs[hidden] { display: none; }
.ed3-musicwin .music-note { margin-top: auto; }
@media (min-width: 640px) { .ed3-mseg { margin: 0 28px 16px; } }

/* ===== Step 3, comp C (user-picked 2026-11-13): the red button's Pick Music asks "Music for this video?" with two
   choices and the rights line. A small sheet, the same family as the clips, looks and songs windows. */
.ed3-ask[open] { display: flex; flex-direction: column; gap: 8px; padding: 0 20px max(20px, env(safe-area-inset-bottom)); }
.ed3-ask .ed3-wh { padding: 14px 0 0; margin: 0 -6px 0 0; }
.ed3-ask h2 { margin: -6px 0 0; font-size: 1.35rem; font-weight: 800; }
.ed3-ask-lead { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.ed3-ask-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #242424; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.ed3-ask-opt:hover { background: #2a2a2a; }
.ed3-ask-opt b { display: block; font-size: 1rem; }
.ed3-ask-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; }
.ed3-ask-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #333; display: grid; place-items: center; }
.ed3-ask-rights { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; text-align: center; }
@media (min-width: 640px) { .ed3-ask { width: min(420px, calc(100vw - 48px)); } .ed3-ask[open] { padding: 0 24px 24px; } }

/* ===== The music window (2026-11-13 review, fixes 1-5): No music first, then the songs. A row plays its preview,
   its Use key picks it; the picked row has the tick instead. No music is outlined as the suggestion until it's
   confirmed. The playing row is lit. */
.ed3-use { flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: #2e2e2e; color: #fff; font: 700 0.85rem/1 var(--body); cursor: pointer; }
.ed3-use:hover { background: #3a3a3a; }
.ed3-song.sugg { box-shadow: inset 0 0 0 1.5px #3a3a3a; }
.ed3-song.playing { background: #222; }
.ed3-song.playing .ed3-sn b { color: #fff; }
.ed3-song .ed3-sn small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }
.ed3-song-none { margin-bottom: 6px; }

/* ===== Music window menus, comp A (user-picked 2026-11-13): Mood and Genre as two menus over the songs, black while
   filtering, each value with its count; a count of songs left under them. */
.ed3-mbar { display: flex; gap: 8px; padding: 0 20px 12px; }
.ed3-mbar[hidden] { display: none; }
.ed3-mn { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #242424; color: #fff; font: 700 0.86rem/1 var(--body); display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.ed3-mn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed3-mn small { margin-right: 6px; color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.ed3-mn.on { background: #fff; color: #000; }
.ed3-mn.on small { color: #555; }
.ed3-mcount { margin: -4px 20px 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.ed3-mcount[hidden] { display: none; }
.ed3-mnu { position: absolute; z-index: 5; max-height: 320px; overflow: auto; padding: 6px; border-radius: 12px; background: #1f1f1f; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.ed3-mnu[hidden] { display: none; }
.ed3-mi { display: flex; justify-content: space-between; gap: 18px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: 600 0.9rem/1.2 var(--body); text-align: left; cursor: pointer; }
.ed3-mi:hover, .ed3-mi:focus-visible, .ed3-mi.on { background: #2a2a2a; outline: none; }
.ed3-mi small { color: var(--muted); font-weight: 600; }
.ed3-mi:disabled { opacity: 0.4; cursor: default; }
@media (min-width: 640px) { .ed3-mbar { padding: 0 28px 14px; } .ed3-mcount { margin: -6px 28px 6px; } }

/* Player Profile step 1 (user-asked 2026-11-14): one "Player Social Media" label over the network and the handle,
   which have none of their own, so the two boxes line up. */
.pf-lbl { margin: 2px 0 -8px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.pf-lbl + .pf-social1 { margin-top: 0; }
.pf-social1 > label > input, .pf-social1 > label > select { margin-top: 0; }

/* Player Profile steps (user-asked 2026-11-14, comp A of "Profile Back balance comps.png"): "‹ Back" on the left and
   the step dots on the right, under Sign in, so the row is balanced; Back looks like Sign in. Nothing on the left on
   step 1. */
.pf-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.pf-top .pf-chips { flex: none; }
.pf-top .pf-dots { margin-left: auto; }
.pf-back { height: 34px; padding: 0; background: none !important; color: var(--muted); font: 700 0.95rem/1 var(--body); }
.pf-back:hover { color: var(--ink); }

/* Player Profile's colors step (user-picked comp A, 2026-11-14; a color's name centred, one word a line, reports/Team colors squares comps.png): no title card
   preview on phones; "Team Colors" as three squares and "Team Logo" (Optional) as one, in the highlight page's shaded
   empty-tile style with a small +; a picked color fills its square with its name along the bottom. */
.pf-sqset legend, .pf-sqh { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.pf-sqh span { margin-left: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.pf-sqset.colors { display: block; margin-top: 8px; }
.pf-logo-sq { margin-top: 14px; }
.tc-squares { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 12px; align-items: center; }
.tsq { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; padding: 0; border: 0 !important; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; }
.tsq .ed3-hatch { position: absolute; inset: 0; border-radius: inherit; }
.tsq .ed3-plus2 { font-size: 28px; }
.tc-sw.tsq { width: 100%; height: auto; }
.tc-sw.tsq span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min-content; max-width: calc(100% - 8px); text-align: center; color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; }
.tc-sw.tsq span.dk { color: #111; }
.lsq input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lsq.has { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.lsq.has img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.lsq-t { position: absolute; left: 4px; right: 4px; bottom: 8px; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
/* the logo's trash can: a small dark circle in the square's top-right corner, like a clip thumbnail's (2026-11-14) */
.lsq-wrap { position: relative; }
.lsq-rm { position: absolute; top: 5px; right: 5px; z-index: 2; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.72); color: #fff; cursor: pointer; }
.lsq-rm svg { width: 14px; height: 14px; }
.lsq-rm:hover { background: #000; }
.pf-steps .pf-tc-slot { display: none !important; }
/* More room above the Terms box on the Team Identity step (user-asked 2026-11-14). */
.pf-steps .pf-agree { margin-top: 28px; }

/* ================= Landing page on phones: a reel full screen (user-asked 2026-11-14) =================
   hero-tall.mp4, a 10 s tall reel of game footage and transitions only (no title card, no lower thirds, since the
   words and form cover its bottom third), fills the whole screen behind Safari's bars; the white logo on top and
   the headline, offer, email box and button at the bottom over a dark fade. Always drawn dark (syncTheme()). */
@media (max-width: 999px) {
  body.auth-mode::before { background: #000; }
  .auth { position: relative; min-height: 100svh; padding: 0 22px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; }
  .auth-reel { position: fixed; inset: 0; z-index: 0; width: auto; margin: 0; aspect-ratio: auto; }
  .reel-device { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #000 url("/hero-tall.jpg") 50% 40% / cover; }
  .reel-video { object-fit: cover; object-position: 50% 40%; }
  .auth-reel::after { display: block !important; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.92) 80%); }
  .auth-top { display: none; }
  .auth-logo { position: absolute; z-index: 2; top: max(30px, calc(env(safe-area-inset-top) + 18px)); left: 0; right: 0; padding: 0 22px; }
  .auth-logo .logo-glass { position: relative; display: block; width: min(220px, 58vw); margin: 0 auto; }
  /* the logo's inside on a black plate at 80%, so it reads on any footage (comp of 2026-11-14) */
  .auth-logo .logo-glass::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); clip-path: polygon(7.6% 2.5%, 98.6% 2.5%, 93% 97.5%, 1.4% 97.5%); }
  .auth-logo .logo-glass img { position: relative; display: block; width: 100%; height: auto; }
  .auth-copy { position: relative; z-index: 1; margin: 0; padding: 0; }
  .auth input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .auth input::placeholder { color: #bdbdbd; }
  .auth-offer { color: #d8d8d8; }
}

/* ================= Clip tiles on Get started: 9:16, the filling C (user-asked 2026-11-14) =================
   The clip thumbnails and the tiles of clips still uploading are tall like the clips themselves; an upload's
   progress is the ClipHype C filling with red from the bottom (as a video being made does), with no ring or %;
   "Preparing" (a phone still converting) is the empty C, pulsing. */
.gs-thumb { width: 72px; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; }
@media (min-width: 1000px) { .gs-thumb { width: 84px; } }
.up-tile, .up-prep { background: #1c1c1c; }
.up-c { width: 58%; max-width: none; transition: opacity 0.35s ease; }
.up-tile[data-state="wait"] .up-c { opacity: 0.6; }
.up-tile[data-state="done"] .up-c { opacity: 0; }
.up-tile .up-pct { margin-bottom: 8px; }
.up-prep .up-c { animation: upPulse 1.4s ease-in-out infinite; }
@keyframes upPulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .up-prep .up-c { animation: none; } }

/* Add clips: the one hint about picking, a small grey note with a bolt above the button (user-picked comp C, 2026-11-14). */
.up-tip { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 9px; background: #242424; color: #d6d6d6; font-size: 0.875rem; line-height: 1.35; }
.up-tip svg { flex: none; color: #fff; }

/* The making card's line on narrow cards (user-asked 2026-11-14: "Cranking The Bass." ran off a phone card): its type
   shrinks with the card, never under 10px, and a long phrase wraps onto a second line, centred, instead of being cut. */
.tile-progress.dev .dev-st { font-size: clamp(10px, 7.4cqw, 0.8rem); white-space: normal; text-align: center; max-width: 88%; overflow: visible; text-wrap: balance; }

/* The share window (2026-11-14: on an iPhone the video showed only an empty box, and the buttons wrapped): the video's
   picture under the player while it loads, the player black in either mode, one-line buttons. */
.hp-vid { position: relative; background: #000; }
.hp-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hp-vid img:not([src]), .hp-vid img[src=""] { display: none; }
.hp-vid video { position: relative; background: transparent; }
.hp-acts button { white-space: nowrap; }
@media (max-width: 760px) {
  .hp-vid { border-radius: 12px; }
  .hp-acts button { min-height: 48px; font-size: 1rem; }
}

/* ================= The share window on phones: the whole video as a card (user-picked comp A, 2026-11-14) =================
   reports/Uncropped player comps.png. Full screen and always dark; the video uncropped as a rounded 9:16 card, playing
   at once, muted, with "Tap for sound" at the top right and ✕ at the top left; under it the title and length on the
   left, a download icon and the red Share on the right; the places (which decide wide or square) behind "Need it wide
   or square?". Computers keep the window as it was. */
.hp-sound, .hp-dl, .hp-sizes, .hp-len { display: none; }
@media (max-width: 760px) {
  .hl-pop { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border-radius: 0; background: #000 !important; color: #fff; box-shadow: none; }
  .hl-pop[open] { display: flex; flex-direction: column; align-items: center; gap: 0; padding: calc(env(safe-area-inset-top) + 58px) 16px calc(env(safe-area-inset-bottom) + 16px); box-sizing: border-box; overflow-y: auto; }
  .hp-x { top: calc(env(safe-area-inset-top) + 12px); left: 14px; right: auto; background: rgba(255, 255, 255, 0.14) !important; color: #fff !important; }
  .hp-sound { display: inline-flex; position: absolute; top: calc(env(safe-area-inset-top) + 15px); right: 14px; z-index: 2; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 15px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 0.8rem var(--body); cursor: pointer; }
  .hp-sound[hidden] { display: none; }
  .hp-vid { flex: none; width: auto; height: min(calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; max-width: 100%; max-height: none; border-radius: 14px; }
  .hp-side { width: 100%; max-width: 420px; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 12px; padding: 14px 2px 0; }
  .hp-head { min-width: 0; }
  .hp-side h2 { margin: 0; padding: 0; font-size: 1.15rem; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hp-len { display: block; margin: 2px 0 0; color: #a6a6a6; font-size: 0.85rem; }
  .hp-acts { display: flex; gap: 8px; align-items: center; }
  .hp-acts #hpCopy { display: none; }
  .hp-dl { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
  .hp-dl:disabled { opacity: 0.4; }
  .hp-acts #hpDownload { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; height: 44px; padding: 0 18px; border-radius: 22px; font-size: 0.95rem; white-space: nowrap; }
  .hp-places { display: none; grid-column: 1 / -1; }
  .hl-pop.sizes .hp-places { display: block; }
  .hl-pop.sizes .hp-lbl { color: #a6a6a6; margin: 0 0 8px; }
  .hp-places .hp-dest { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
  .hp-places .hp-dest.on { box-shadow: inset 0 0 0 2px #fff !important; }
}
@media (max-width: 760px) {
  .hp-head { order: 0; }
  .hp-acts { order: 1; }
  .hp-sizes { order: 2; }
  .hp-places { order: 3; padding-bottom: 8px; }
  .hp-places .hp-dest .hp-ico, .hp-places .hp-dest .hp-ico svg { color: #fff !important; fill: currentColor; }
  .hp-places .hp-dest .hp-ico svg[fill="none"] { fill: none; }
}

/* The place sheet on phones (2026-11-14, reports/Share to Instagram path comps.png): the red key opens "Where are you
   posting it?" over the dimmed video; the place picked decides the size; the key in it names the place. Nothing about
   sizes is said. */
.hp-go, .hp-gonote { display: none; }
@media (max-width: 760px) {
  .hp-places { display: none !important; }
  .hl-pop.picking::before { content: ""; position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, 0.6); }
  .hl-pop.picking .hp-places { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 20px 18px calc(env(safe-area-inset-bottom) + 20px); border-radius: 22px 22px 0 0; background: #1a1a1a; }
  .hl-pop.picking .hp-lbl { margin: 0 0 14px; color: #fff; font: 800 1.15rem/1.2 var(--body); }
  .hp-places .hp-grid { margin-bottom: 16px; }
  .hp-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 12px; font-size: 1rem; }
  .hp-go:disabled { opacity: 0.55; }
  .hp-gonote { display: block; margin: 10px 0 0; text-align: center; color: #a6a6a6; font-size: 0.82rem; min-height: 1em; }
  .hp-gonote:empty { display: none; }
  .hp-dl[hidden] { display: none; }
}

/* Opening a highlight slides its window up (user-asked 2026-11-14): from the bottom of the screen on phones, a short
   lift with a fade on computers; the place sheet slides up the same way. None with reduced motion. */
@keyframes hpSlideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hpLift { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hl-pop[open] { animation: hpLift 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .hl-pop[open]::backdrop { animation: hpFade 0.3s ease; }
  @media (max-width: 760px) {
    .hl-pop[open] { animation: hpSlideUp 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .hl-pop.picking .hp-places { animation: hpSlideUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .hl-pop.picking::before { animation: hpFade 0.28s ease; }
  }
}

/* The share window on phones, filling the screen (user-asked 2026-11-14): a sheet that slides up and stops under the
   site's logo bar (--hp-top, set on opening), the video card as big as the space allows, ✕ and Tap for sound on the
   card's top corners, no Safari controls (a tap pauses or plays, a thin white line shows how far it's got). */
.hp-prog, .hp-paused { display: none; }
@media (max-width: 760px) {
  .hl-pop {
    --hp-top: 56px;
    --hp-h: min(calc(100dvh - var(--hp-top) - 112px - env(safe-area-inset-bottom)), calc((100vw - 32px) * 16 / 9));
    --hp-w: calc(var(--hp-h) * 9 / 16);
    position: fixed; inset: var(--hp-top) 0 0 0; top: var(--hp-top); width: 100vw; height: calc(100dvh - var(--hp-top)); max-height: none; margin: 0; border-radius: 18px 18px 0 0;
  }
  .hl-pop[open] { padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); justify-content: flex-start; }
  .hl-pop::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hp-vid { height: var(--hp-h); width: var(--hp-w); }
  .hp-x { top: 22px; left: calc((100vw - var(--hp-w)) / 2 + 10px); width: 36px; height: 36px; background: rgba(0, 0, 0, 0.45) !important; }
  .hp-sound { top: 24px; right: calc((100vw - var(--hp-w)) / 2 + 10px); background: rgba(0, 0, 0, 0.45); }
  .hp-side { padding-top: 12px; }
  .hp-prog { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.25); z-index: 1; }
  .hp-prog i { display: block; height: 100%; width: 0; background: #fff; }
  .hp-paused:not([hidden]) { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); z-index: 1; pointer-events: none; }
  .hp-paused::before { content: ""; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
}

/* The free highlight's 8 boxes (user-asked 2026-11-14, reports/Free highlight clip slots comps.png): four across, the
   empty ones in the shaded style of the team color squares, a count beside the step's title. */
#gsStep1 .gs-body { position: relative; }
.gs-count { position: absolute; top: 5px; right: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gs-count[hidden] { display: none; }
#gsStep1 .gs-body:has(.gs-count:not([hidden])) > b { padding-right: 56px; }
.gs-thumbs.slots:not([hidden]) { display: grid; grid-template-columns: repeat(4, 72px); gap: 8px; width: auto; }
@media (min-width: 1000px) { .gs-thumbs.slots:not([hidden]) { grid-template-columns: repeat(4, 84px); } }
@media (max-width: 380px) { .gs-thumbs.slots:not([hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .gs-thumbs.slots .gs-thumb { width: auto; } }
.gs-slot { display: block; padding: 0; border: 0; background: none; }
.gs-slot .ed3-hatch { position: absolute; inset: 0; border-radius: inherit; }
.gs-slot .ed3-plus2 { font-size: 24px; }
.gs-slot:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gs-slotnote { margin: 8px 0 0; max-width: 312px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.gs-slotnote[hidden] { display: none; }
@media (min-width: 1000px) { .gs-slotnote { max-width: 360px; } }
/* The count sits over the boxes' right edge at every width. */
#gsStep1 .gs-body:has(.gs-thumbs.slots:not([hidden])) { max-width: 312px; }
@media (min-width: 1000px) { #gsStep1 .gs-body:has(.gs-thumbs.slots:not([hidden])) { max-width: 360px; } }
@media (max-width: 380px) { #gsStep1 .gs-body:has(.gs-thumbs.slots:not([hidden])) { max-width: none; } }

/* Highlight Setup on a first highlight: "Who did they play?" over the Name (2026-11-14). */
.gp-namefields { flex: 1; min-width: 0; }
.gp-namefields .gp-field[hidden] { display: none; }
.gp-opt { font-style: normal; font-weight: 500; color: #7a7a7a; margin-left: 4px; }

/* Subscription: picking a plan (user-picked 2026-11-15, comp 2 of reports/Subscription five presentations.png): a
   This season / All year switch on top, a Solo and a Family card under it, each with its own button. */
.pc-hero[hidden], .pc-pick[hidden] { display: none; }
.pc-pick { display: grid; gap: 20px; padding: 26px 24px; border-radius: 14px; background: var(--surface, #1a1a1a); margin-bottom: 16px; }
.pp-toggle { justify-self: center; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 380px); gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2, #242424); }
.pp-toggle.three { grid-template-columns: 1fr 1fr 1fr; width: min(100%, 500px); }
.pp-term { min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #a6a6a6; font: 600 0.92rem/1 var(--body); cursor: pointer; white-space: nowrap; }
.pp-term.on { background: #fff; color: #000; }
.pp-term i { margin-left: 7px; font-style: normal; font-size: 0.72rem; font-weight: 700; color: #8d8d8d; }
.pp-term.on i { color: #6c6c6c; }
.pp-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .pp-cards { grid-template-columns: 1fr 1fr; } }
.pp-card { display: flex; flex-direction: column; padding: 22px; border-radius: 14px; background: var(--surface-2, #242424); box-shadow: inset 0 0 0 1.5px transparent; }
.pp-card.on { box-shadow: inset 0 0 0 2px #fff; }
.pp-top b { font-size: 1.25rem; font-weight: 800; }
.pp-who { color: #a6a6a6; font-size: 0.88rem; margin-top: 2px; }
.pp-price { margin-top: 14px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pp-price small { margin-left: 6px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: #a6a6a6; }
.pp-sub { color: #8d8d8d; font-size: 0.82rem; margin-top: 6px; }
.pp-feat { margin: 14px 0 18px; padding-left: 18px; color: #d6d6d6; font-size: 0.9rem; line-height: 1.75; }
.pp-buy { width: 100%; min-height: 48px; margin-top: auto; }
.pp-buy:disabled { opacity: 0.4; cursor: default; }

/* ---- Subscription: the Annual saving in green (comp E, user-picked 2026-11-15) ----
   The done tick's green (#1fa34a), its one other use: "Save 32%" as green words in the switch, and on Annual each card's
   three season passes struck through and "You save $28" with the green tick. */
.pp-term i, .pp-term.on i { color: #1fa34a; font-weight: 800; font-size: 0.78rem; }
.pp-was { margin-right: 8px; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; color: #8d8d8d; text-decoration: line-through; }
.pp-save { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #1fa34a; font-size: 0.9rem; font-weight: 700; }
.pp-save::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #1fa34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---- Subscription on a phone: pick, then buy (user-picked 2026-11-15, reports/Plan pick then buy plain counts comp.png) ----
   Under 640px the two full cards give way to two tiles side by side (name, bold price, the Annual saving) and only
   the picked plan's list and one red button, so both plans and the button sit above the fold. */
.pp-phone { display: none; }
@media (max-width: 639px) {
  .pp-cards { display: none; }
  .pp-phone { display: grid; gap: 14px; }
  .pp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; border: 0; border-radius: 12px; background: var(--surface-2, #242424); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; }
  .pp-tile.on { box-shadow: inset 0 0 0 2px #fff; }
  .pp-tile b { font-size: 1rem; font-weight: 800; }
  .pp-dot { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6c6c6c; }
  .pp-tile.on .pp-dot { border: 6px solid #fff; }
  .pp-tp { margin-top: 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
  .pp-tu { margin-top: 4px; color: #a6a6a6; font-size: 0.78rem; }
  .pp-ts { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #1fa34a; font-size: 0.78rem; font-weight: 800; }
  .pp-ts::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: #1fa34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
  .pp-phone .pp-feat { margin: 0; }
  .pp-phone .pp-buy { margin-top: 0; }
}
/* The picker's trial line: "Not sure yet? Try a month from $8.99", then "Cancel any time." on a line of its own. */
#pcPick .pc-fine2 { display: block; }
/* With Monthly showing, the switch has three halves; on a phone they share the width and Annual's saving sits under its
   name, so the switch never runs off the screen. */
@media (max-width: 639px) {
  .pp-toggle.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-toggle.three .pp-term { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 4px; font-size: 0.86rem; line-height: 1.15; white-space: normal; }
  .pp-toggle.three .pp-term i { margin: 1px 0 0; font-size: 0.7rem; }
}
@media (min-width: 640px) { #pcPick .pc-fine2 { display: inline; } #pcPick .pc-fine2::before { content: ". "; } }
/* Subscription picker, critique fixes (2026-11-15): on a computer it keeps to the pages' 720-ish column instead of the
   full 1200px; the trial price is "from $8.99" there and the picked plan's own price on a phone; Season pass tiles keep
   an empty line where Annual's saving goes, so the button doesn't jump when the term changes. */
#plan.plan-c > #pcPick { max-width: 760px; }
.pp-ph { display: none; }
@media (max-width: 639px) { .pp-dk { display: none; } .pp-ph { display: inline; } }
.pp-ts.pp-keep { visibility: hidden; }

/* ---- The funnel after the free highlight (user-picked 2026-11-15) ----
   The plan tiles are drawn the same everywhere; a "mini" picker (.pp-mini) is always the phone layout (tiles, the
   picked plan's list, one red Start), for the free-highlight prompt and the highlight window. */
.pp-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; border: 0; border-radius: 12px; background: var(--surface-2, #242424); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; }
.pp-tile.on { box-shadow: inset 0 0 0 2px #fff; }
.pp-tile b { font-size: 1rem; font-weight: 800; }
.pp-dot { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6c6c6c; box-sizing: border-box; }
.pp-tile.on .pp-dot { border: 6px solid #fff; }
.pp-tp { margin-top: 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pp-tu { margin-top: 4px; color: #a6a6a6; font-size: 0.78rem; }
.pp-ts { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #1fa34a; font-size: 0.78rem; font-weight: 800; }
.pp-ts::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: #1fa34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.pp-ts.pp-keep { visibility: hidden; }
.pp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-mini { display: block; }
.pp-mini .pp-cards { display: none !important; }
.pp-mini .pp-phone { display: grid !important; gap: 14px; margin-top: 14px; }
.pp-mini .pp-toggle { width: 100%; margin-top: 16px; }
.pp-mini .pp-feat { margin: 0; }
.pp-mini .pp-buy { margin-top: 0; }
.pp-mini .pp-dk { display: none; }
.pp-mini .pp-ph { display: inline; }
.pp-mini .pc-fine { margin: 12px 0 0; text-align: center; }
.pp-mini .pc-fine2 { display: block; }
.pp-mini .pc-fine2::before { content: none; }
.pp-mh { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.pp-ml { display: block; margin-top: 6px; color: #a6a6a6; font-size: 0.95rem; line-height: 1.4; }
.pp-back { display: inline-flex; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: none; color: #a6a6a6; font: 600 0.9rem var(--body); cursor: pointer; }
.pp-done { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 0.95rem; font-weight: 700; }
.pp-again, .pw-not { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; color: #a6a6a6; font: 600 0.88rem var(--body); cursor: pointer; }
.hp-tick { flex: none; display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #1fa34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* The free-highlight prompt holds the picker. */
#paywall .pw-pick { padding: 22px var(--gutter) max(20px, env(safe-area-inset-bottom)); }

.hp-x { z-index: 6; }

/* The offer row: under Share and Copy link on computers, under the place sheet's key on phones. */
.hp-offer { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2, #242424); color: #fff; }
.hp-offer[hidden] { display: none; }
.hp-ot { flex: 1; min-width: 0; }
.hp-ot b { display: block; font-size: 1rem; font-weight: 800; }
.hp-ot small { display: block; margin-top: 3px; color: #a6a6a6; font-size: 0.82rem; }
.hp-ofb { flex: none; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: #000; font: 700 0.9rem var(--body); cursor: pointer; }
.hp-offer.hp-dk { grid-column: 1 / -1; }
@media (max-width: 760px) { .hp-offer.hp-dk { display: none !important; } }
@media (min-width: 761px) { .hp-offer.hp-ph { display: none !important; } }

/* The picker in the window: the share side (the sheet on a phone) becomes it. */
.hp-plans[hidden] { display: none; }
.hl-pop.hp-m-plans .hp-places > :not(#hpPlans) { display: none !important; }
@media (min-width: 761px) {
  .hl-pop.hp-m-plans .hp-acts, .hl-pop.hp-m-plans .hp-offer { display: none !important; }
  .hl-pop .hp-plans { margin-top: 4px; }
}
@media (max-width: 760px) {
  .hl-pop .hp-plans { color: #fff; }
  .hl-pop.picking .hp-places { max-height: calc(100dvh - 40px); overflow-y: auto; }
}

/* ---- The next game's card (user-picked 2026-11-15, comp A of reports/Next game card no bar comps.png) ----
   As tall as the highlight beside it, all of it the highlight page's empty tile (angled shading), with the plus and
   "Create Highlight" in the same grey and a View Plans button (white here, black in light mode; not red, so + Create
   Highlight stays the page's one red button) in the middle. The whole card is the button. */
.next-tile.nf-tile { display: flex; flex-direction: column; background: none !important; border: 0 !important; }
.nf-card { flex: 1; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.nf-pic { position: relative; display: block; flex: 1; width: 100%; min-height: 0; }
.nf-pic .ed3-hatch { position: absolute; inset: 0; transition: filter 0.15s; }
.nf-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.nf-in .ed3-plus2 { font-size: 40px; }
.nf-p { white-space: nowrap; color: #8a8a8a; font-size: 0.95rem; font-weight: 700; }
.nf-btn { margin-top: 0; padding: 6px 12px; background: #fff; color: #0d0d0d; font-size: 0.8rem; font-weight: 700; transition: background 0.15s; }
.nf-card:hover .ed3-hatch { filter: brightness(1.25); }
.nf-card:hover .nf-btn { background: #e6e6e6; }
@media (max-width: 999px) {
  .nf-in { gap: 8px; padding: 12px; }
  .nf-in .ed3-plus2 { font-size: 30px; }
  .nf-btn { padding: 5px 10px; font-size: 0.75rem; }
  .nf-p { font-size: 0.82rem; }
}

/* ================= Referral codes on the landing page (2026-11-17) ================= */
/* "Have a code?" under the email box: a quiet link that opens a small field; a kept code reads "Code X applied". */
#startForm .code-line:not([hidden]) { display: block; margin-top: -2px; }
#startForm .code-line .link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
#startForm #codeOk .link { margin-left: 4px; }
#startForm #codeOk b { color: var(--ink); letter-spacing: 0.02em; }
.code-box:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-box input { text-transform: uppercase; letter-spacing: 0.04em; }
.code-box .ghost { min-height: 0; }
.code-box .error { grid-column: 1 / -1; margin: 0; }

/* "Have a code?" on the Subscription page (2026-11-17): a quiet link under the picker, then a small field. */
.pc-code:not([hidden]) { display: block; margin: -4px 0 18px; font-size: 0.9rem; color: var(--muted); }
.pc-code .link { color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pc-code .code-box { max-width: 360px; }
