/* [party-create] "New watch party" screen (party-create.js).
   Phone: full-screen sheet, Start party pinned at the bottom.
   Computer: centred dialog, with a summary column from 860px.
   Colours come from the admin theme tokens (--theme-*), like party-setup.css. */

html.vpc-open, html.vpc-open body { overflow: hidden; }

.vpc-ov {
  --pc-accent: var(--theme-accent, #8b5cf6);
  --pc-accent-rgb: var(--theme-accent-rgb, 139,92,246);
  --pc-surface: var(--theme-surface, #0e0b14);
  --pc-raised: var(--theme-surface2, #1b1830);
  --pc-text: var(--theme-text, #ede9f4);
  --pc-muted: var(--theme-muted, #8a86a0);
  --pc-line: rgba(var(--theme-overlay-rgb, 255,255,255), .10);
  --pc-line-strong: rgba(var(--theme-overlay-rgb, 255,255,255), .18);
  --pc-ok: var(--theme-success, #22c55e);
  --pc-bad: var(--theme-danger, #ef4444);
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,.6);
  display: flex; align-items: stretch; justify-content: center;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.vpc-ov *, .vpc-ov *::before, .vpc-ov *::after { box-sizing: border-box; }

.vpc {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--pc-surface); color: var(--pc-text); font-size: 14px; line-height: 1.5;
  padding-top: env(safe-area-inset-top, 0px);
}
#vpc-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.vpc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pc-line); flex-shrink: 0; }
.vpc-bar h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.vpc-x { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--pc-raised); color: var(--pc-text); font-size: 18px; line-height: 1; font-family: inherit; }

.vpc-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vpc-body { display: grid; gap: 24px; padding: 18px 16px 24px; }
.vpc-form { display: grid; gap: 26px; min-width: 0; }
.vpc-q { display: grid; gap: 10px; min-width: 0; }
.vpc-q h3 { margin: 0; font-size: 16px; font-weight: 800; }

.vpc-field { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 14px;
  background: var(--pc-raised); border: 1px solid var(--pc-line-strong); transition: border-color .15s, opacity .15s; }
.vpc-field:focus-within { border-color: var(--pc-accent); }
.vpc-field.dim { opacity: .55; }
.vpc-field input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; padding: 9px 0; outline: none; }
.vpc-field input::placeholder { color: var(--pc-muted); }
.vpc-paste { flex: none; border: 0; cursor: pointer; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800;
  background: rgba(var(--pc-accent-rgb), .2); color: var(--pc-text); }
.vpc-clear { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; background: none; color: var(--pc-muted); font-size: 22px; line-height: 1; }
.vpc-clear:hover { color: var(--pc-text); }

.vpc-hint { margin: 0; font-size: 12.5px; color: var(--pc-muted); }
.vpc-note { margin: 0; font-size: 13px; color: var(--pc-muted); padding: 10px 12px; border-radius: 12px; background: rgba(var(--theme-overlay-rgb,255,255,255), .04); }
.vpc-note a { color: var(--pc-text); }
.vpc-err { margin: 0; font-size: 13px; color: var(--pc-bad); font-weight: 600; }

.vpc-preview { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--pc-line); background: rgba(var(--theme-overlay-rgb,255,255,255), .03); min-width: 0; }
.vpc-preview.ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.06); }
.vpc-thumb { width: 96px; aspect-ratio: 16 / 9; flex: none; border-radius: 8px; background-size: cover; background-position: center; position: relative;
  background-color: #000; background-image: linear-gradient(135deg, rgba(var(--pc-accent-rgb), .45), rgba(0,0,0,.9)); }
.vpc-thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 11px solid rgba(255,255,255,.9); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vpc-pv-t { display: grid; min-width: 0; gap: 2px; }
.vpc-pv-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.vpc-pv-t small { font-size: 12px; color: var(--pc-muted); }
.vpc-preview.ok .vpc-pv-t small { color: var(--pc-ok); font-weight: 700; }

.vpc-or { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted); }
.vpc-or::before, .vpc-or::after { content: ""; flex: 1; height: 1px; background: var(--pc-line); }

.vpc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vpc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--pc-raised); border: 1px solid var(--pc-line); color: var(--pc-text); font: inherit; font-size: 13px; font-weight: 700; }
.vpc-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vpc-chip[aria-pressed="true"] { border-color: var(--pc-accent); background: rgba(var(--pc-accent-rgb), .2); }
.vpc-chip:disabled { opacity: .45; cursor: not-allowed; }
.vpc-detail:empty { display: none; }
.vpc-detail { display: grid; gap: 8px; }

.vpc-input { width: 100%; font: inherit; font-size: 15px; color: var(--pc-text); background: var(--pc-raised);
  border: 1px solid var(--pc-line-strong); border-radius: 12px; padding: 11px 13px; }
.vpc-input:focus { outline: none; border-color: var(--pc-accent); }
textarea.vpc-input { resize: vertical; min-height: 64px; }
select.vpc-input option { background: var(--pc-raised); color: var(--pc-text); }

.vpc-who { display: grid; gap: 8px; }
.vpc-opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--pc-raised); border: 1px solid var(--pc-line); color: var(--pc-text); font: inherit; }
.vpc-opt[aria-checked="true"] { border-color: var(--pc-accent); background: rgba(var(--pc-accent-rgb), .16); }
.vpc-opt:disabled { opacity: .45; cursor: not-allowed; }
.vpc-radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--pc-line-strong); }
.vpc-opt[aria-checked="true"] .vpc-radio { border-color: var(--pc-accent); background: var(--pc-accent); box-shadow: inset 0 0 0 3px var(--pc-raised); }
.vpc-opt-t { display: grid; gap: 1px; min-width: 0; }
.vpc-opt-t b { font-size: 14px; }
.vpc-opt-t small { font-size: 12px; color: var(--pc-muted); }

.vpc-share { display: flex; flex-wrap: wrap; gap: 6px; }
.vpc-share[hidden] { display: none; }
.vpc-sharechip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(var(--pc-accent-rgb), .18); }
.vpc-sharechip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 12px; opacity: .7; padding: 2px 5px; }

.vpc-more { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 13px 14px; border-radius: 14px;
  border: 1px dashed var(--pc-line-strong); background: none; color: var(--pc-text); font: inherit; }
.vpc-more span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.vpc-more b { font-size: 14px; }
.vpc-more small { font-size: 12px; color: var(--pc-muted); }
.vpc-more i { font-style: normal; font-size: 22px; color: var(--pc-muted); }

.vpc-sum { display: none; }

.vpc-foot { flex-shrink: 0; display: grid; gap: 8px; padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pc-line); background: var(--pc-surface); }
.vpc-cta { width: 100%; border: 0; cursor: pointer; border-radius: 14px; padding: 14px; font: inherit; font-size: 15.5px; font-weight: 800;
  background: var(--pc-accent); color: #fff; }
.vpc-cta:disabled { opacity: .6; cursor: default; }
.vpc-cta.ghost { background: var(--pc-raised); color: var(--pc-text); border: 1px solid var(--pc-line-strong); }
.vpc-foot-note { text-align: center; font-size: 12px; color: var(--pc-muted); }

/* More options */
.vpc-more-body { display: grid; gap: 26px; padding: 18px 16px 24px; }
.vpc-grp { display: grid; gap: 10px; }
.vpc-grp h4 { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted); }
.vpc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--pc-raised); }
.vpc-seg button { flex: 1; border: 0; cursor: pointer; border-radius: 9px; padding: 9px 8px; font: inherit; font-size: 13px; font-weight: 700;
  background: none; color: var(--pc-muted); }
.vpc-seg button[aria-checked="true"] { background: var(--pc-accent); color: #fff; }
.vpc-tg { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pc-line); cursor: pointer; }
.vpc-tg.sub { padding-left: 16px; }
.vpc-tg > span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.vpc-tg b { font-size: 14px; font-weight: 700; }
.vpc-tg small { font-size: 12px; color: var(--pc-muted); }
.vpc-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vpc-tg i { width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--pc-line-strong); position: relative; transition: background .15s; }
.vpc-tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.vpc-tg input:checked + i { background: var(--pc-ok); }
.vpc-tg input:checked + i::after { left: 19px; }
.vpc-tg input:disabled + i { opacity: .4; }
.vpc-tg input:focus-visible + i { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

/* Your party is ready */
.vpc-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 16px; max-width: 460px; margin: 0 auto; }
.vpc-done-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800;
  background: rgba(34,197,94,.16); color: var(--pc-ok); }
.vpc-done-name { margin: 0; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.vpc-code-row { display: grid; gap: 4px; justify-items: center; }
.vpc-code-l { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted); }
.vpc-code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: .2em;
  padding: 8px 16px; border-radius: 12px; background: var(--pc-raised); border: 1px solid var(--pc-line-strong); }
.vpc-linkrow { width: 100%; }
.vpc-linkrow input { font-size: 13.5px; }

.vpc-ov button:focus-visible, .vpc-ov a:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

/* Edit party: tabs, Cancel / Save, party code */
.vpc-bar .vpc-chip { padding: 7px 12px; }
.vpc-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--pc-line); overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.vpc-tabs::-webkit-scrollbar { display: none; }
.vpc-tabs button { flex: none; border: 0; background: none; cursor: pointer; padding: 12px 12px 11px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--pc-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vpc-tabs button[aria-selected="true"] { color: var(--pc-text); border-bottom-color: var(--pc-accent); }
.vpc-edit-body .vpc-q + .vpc-q { margin-top: 2px; }
.vpc-foot-row { display: flex; gap: 10px; }
.vpc-foot-row .vpc-cta { flex: 1; width: auto; min-width: 0; }
.vpc-foot-row .vpc-cta.ghost { flex: 0 0 auto; padding-inline: 20px; }
.vpc-coderow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(var(--theme-overlay-rgb,255,255,255), .04); }
.vpc-code.sm { font-size: 17px; padding: 5px 10px; letter-spacing: .15em; }

/* Computer: centred dialog */
@media (min-width: 700px) {
  .vpc-ov { align-items: center; padding: 24px; }
  .vpc { height: auto; max-height: min(880px, calc(100vh - 48px)); max-width: 620px; border-radius: 20px; border: 1px solid var(--pc-line);
    box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; padding-top: 0; }
  .vpc-foot { padding-bottom: 16px; }
  .vpc-foot .vpc-cta { width: auto; justify-self: end; padding: 12px 30px; }
  .vpc-foot-row { justify-content: flex-end; }
  .vpc-foot-row .vpc-cta { flex: 0 0 auto; }
  .vpc-foot-note { text-align: right; }
}
@media (min-width: 860px) {
  .vpc { max-width: 900px; }
  .vpc.vpc-edit { max-width: 640px; }
  .vpc-body { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; padding: 22px 24px 26px; }
  .vpc-sum { display: grid; gap: 10px; align-content: start; position: sticky; top: 0; padding: 16px; border-radius: 16px;
    background: rgba(var(--theme-overlay-rgb,255,255,255), .03); border: 1px solid var(--pc-line); }
  .vpc-sum-t { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted); }
  .vpc-sum dl { margin: 0; display: grid; gap: 0; }
  .vpc-sum dl div { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--pc-line); }
  .vpc-sum dl div:last-child { border-bottom: 0; }
  .vpc-sum dt { font-size: 11.5px; color: var(--pc-muted); }
  .vpc-sum dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
  .vpc-more-body { padding: 22px 24px 26px; max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { .vpc-ov * { transition: none !important; } }

/* the preview box appears only once a link is entered */
.vpc-preview[hidden], .vpc-clear[hidden], .vpc-paste[hidden]{display:none !important}
/* party name: field with a clear button and a character count */
.vpc-namefield{padding-right:5px}
.vpc-count{text-align:right; font-variant-numeric:tabular-nums; margin-top:-4px}
.vpc-count.full{color:var(--pc-bad)}

/* [repeat-party] Repeated party schedule */
.vpc-tg.vpc-hide { display: none; }
.vpc-repeat { padding: 10px 0 4px; display: grid; gap: 10px; border-bottom: 1px solid var(--pc-line); }
.vpc-repeat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.vpc-repeat-row .vpc-input { flex: 1; min-width: 130px; }
.vpc-days { gap: 6px; }
.vpc-days .vpc-day { min-width: 38px; justify-content: center; }
.vpc-repeat .vpc-hint { margin: 0; }

/* [repeat-party] quick checkbox on the main form (after Party name) + its popup */
.vpc-quick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(var(--pc-accent-rgb), .08); border: 1px solid rgba(var(--pc-accent-rgb), .22); }
.vpc-quick-l { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.vpc-quick-l input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--pc-accent); cursor: pointer; }
.vpc-quick-l span { display: grid; gap: 1px; min-width: 0; }
.vpc-quick-l b { font-size: 14px; font-weight: 700; }
.vpc-quick-l small { font-size: 12px; color: var(--pc-muted); }
.vpc-quick-edit { flex: none; border: 0; background: none; color: var(--pc-accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.vpc-quick-off { background: transparent; border-style: dashed; border-color: var(--pc-line-strong); }
.vpc-quick-off .vpc-quick-l, .vpc-quick-off .vpc-quick-l input { cursor: not-allowed; }
.vpc-quick-off .vpc-quick-l b { color: var(--pc-muted); }
.vpc-tg-off { cursor: not-allowed; opacity: .6; }
.vpc { position: relative; }
.vpc-pop { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.vpc-pop-card { width: 100%; max-width: 460px; max-height: 90%; display: flex; flex-direction: column; background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong); border-radius: 18px 18px 0 0; overflow: hidden; }
.vpc-pop-body { padding: 4px 16px 8px; overflow-y: auto; }
.vpc-pop-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pc-line); }
@media (min-width: 700px) {
  .vpc-pop { align-items: center; }
  .vpc-pop-card { border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .vpc-pop-card { animation: vpc-pop-in .18s ease-out; }
  @keyframes vpc-pop-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* [party-moments] Party moments: welcome message + host's moment */
.vpc-moments .vpc-mom { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px;
  background: rgba(var(--theme-overlay-rgb, 255, 255, 255), .03); border: 1px solid rgba(var(--theme-overlay-rgb, 255, 255, 255), .08); }
.vpc-moments h5 { margin: 0; font-size: 14px; font-weight: 800; color: var(--pc-text); }
.vpc-moments .vpc-mom-lbl { font-size: 12.5px; font-weight: 700; color: var(--pc-muted); margin-top: 2px; }
.vpc-moments .vpc-chips[hidden] { display: none; }
/* [/party-moments] */

/* ── [video-search] "What are we watching?": Search a video · Paste a link · Other options ── */
.vpc-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(var(--theme-overlay-rgb,255,255,255), .06); }
.vpc-how-b { min-height: 40px; padding: 0 6px; border: 0; border-radius: 11px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; color: inherit; background: transparent; line-height: 1.15; }
.vpc-how-b[aria-selected="true"] { background: var(--pc-text, #f4f2fb); color: var(--pc-bg, #14111c); }
.vpc-how-b:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
.vpc-how-p { display: grid; gap: 10px; min-width: 0; }
.vpc-how-p[hidden], #vpc-picked[hidden], #vpc-find-box[hidden], .vpc-rest[hidden] { display: none !important; }
.vpc-rest { display: grid; gap: inherit; min-width: 0; }
.vpc-find svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; opacity: .7; }
.vpc-find input::-webkit-search-cancel-button { display: none; }
.vpc-find-go { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13.5px; color: #fff; background: var(--pc-accent); }
#vpc-find-box { display: grid; gap: 10px; min-width: 0; }
.vpc-ideas { margin-top: 2px; }
.vpc-ideas a.vpc-chip { text-decoration: none; color: inherit; }
.vpc-res-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(var(--theme-overlay-rgb,255,255,255), .06); overflow-x: auto; scrollbar-width: none; }
.vpc-res-tabs::-webkit-scrollbar { display: none; }
.vpc-res-tabs button { flex: 1 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; color: inherit; background: transparent; }
.vpc-res-tabs button[aria-selected="true"] { background: var(--pc-text, #f4f2fb); color: var(--pc-bg, #14111c); }
.vpc-res-lens { flex-wrap: wrap; gap: 8px 10px; padding: 4px 0 2px; }
.vpc-res-lens .vpc-chip { flex: none; padding: 7px 14px; font-size: 12.5px; }
.vpc-res-sec { display: grid; gap: 8px; min-width: 0; margin-top: 4px; }
.vpc-res-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vpc-res-h b { font-size: 14px; }
.vpc-res-sp { flex: 1; }
.vpc-res-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.vpc-res-sync { padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.16); color: #86efac; font-size: 11px; font-weight: 800; }
.vpc-res-more { border: 0; background: transparent; color: var(--theme-accent-light, #fca5a5); font: inherit; font-size: 12.5px; font-weight: 800; padding: 6px 2px; cursor: pointer; }
.vpc-res-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
@media (min-width: 1000px) { .vpc-res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; } }
.vpc-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; min-width: 0; }
.vpc-res-pick { display: flex; gap: 10px; align-items: flex-start; min-width: 0; width: 100%; padding: 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vpc-res-pick:hover { background: rgba(var(--theme-overlay-rgb,255,255,255), .05); }
.vpc-res-pick:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 1px; }
.vpc-res-th { position: relative; flex: none; width: 116px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: rgba(var(--theme-overlay-rgb,255,255,255), .08); }
.vpc-res-th.big { width: 100%; border-radius: 12px; }
.vpc-res-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vpc-res-th .dur, .vpc-res-th .live { position: absolute; bottom: 4px; padding: 1px 5px; border-radius: 4px; font-size: 10.5px; font-weight: 800; color: #fff; }
.vpc-res-th .dur { right: 4px; background: rgba(0,0,0,.78); }
.vpc-res-th .live { left: 4px; background: #e11d2e; }
.vpc-res-poster { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 6px 8px; color: #fff; overflow: hidden; }
.vpc-res-poster .sh.circle { position: absolute; right: -14px; top: -6px; width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--ac); }
.vpc-res-poster .sh.bar { position: absolute; left: 0; right: 0; top: 12px; height: 7px; background: var(--ac); }
.vpc-res-poster b { position: relative; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.vpc-res-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vpc-res-t .ttl { font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vpc-res-t .meta { font-size: 12px; color: var(--pc-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpc-res-t .ok { font-size: 12px; font-weight: 800; color: var(--pc-ok, #86efac); margin-top: 2px; }
.vpc-res-t .own { font-size: 12px; font-weight: 700; color: var(--pc-muted); margin-top: 2px; }
.vpc-res-eye { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--pc-line); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.vpc-res-eye[aria-expanded="true"] { border-color: var(--pc-accent); background: rgba(var(--pc-accent-rgb), .18); }
.vpc-res-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vpc-res-prev { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vpc-res-prev iframe, .vpc-res-prev video, .vpc-res-prev img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vpc-skel { height: 66px; border-radius: 12px; background: linear-gradient(90deg, rgba(var(--theme-overlay-rgb,255,255,255),.05), rgba(var(--theme-overlay-rgb,255,255,255),.10), rgba(var(--theme-overlay-rgb,255,255,255),.05)); background-size: 200% 100%; animation: vpcSk 1.2s linear infinite; }
@keyframes vpcSk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .vpc-skel { animation: none; } }
.vpc-picked { display: grid; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.07); min-width: 0; }
.vpc-picked-row { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
@media (min-width: 700px) { .vpc-picked { grid-template-columns: 200px minmax(0, 1fr); align-items: center; } }

/* [video-search] search box clear button, spacing, and the breathing Change button */
.vpc-find-clear[hidden] { display: none; }
#vpc-find-box { gap: 12px; }
.vpc-change { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f59e0b, var(--pc-accent) 55%, #ec4899);
  box-shadow: 0 0 0 0 rgba(var(--pc-accent-rgb), .55); animation: vpcBreathe 2.4s ease-in-out infinite; }
.vpc-change svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vpc-change:hover { filter: brightness(1.1); }
.vpc-change:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes vpcBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--pc-accent-rgb), .5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(var(--pc-accent-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) { .vpc-change { animation: none; } }

/* never wider than the sheet, even on 320 px phones */
.vpc-how-p, #vpc-find-box, #vpc-find-out { grid-template-columns: minmax(0, 1fr); min-width: 0; }
#vpc-find-out { display: grid; gap: 10px; }
.vpc-find input { width: 0; }
@media (max-width: 360px) { .vpc-find-go { padding: 0 10px; } .vpc-how-b { font-size: 12px; } }
