/* ============================================================================
   KJPTV — Watch Parties page furniture.
   The schedule itself is the shared .pty-* component from title-detail.css;
   everything here is what the POOLED view adds: which title a party belongs to,
   the Next Up rail, your own hosted parties, the share link, the tag-people
   picker and the daily host allowance.
   ========================================================================== */

/* ---- Next up rail --------------------------------------------------------- */
.wpx-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wpx-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 236px;
  padding: 20px; overflow: hidden; border: 1px solid var(--border-bevel-strong); border-radius: 18px;
  background: var(--color-surface-1); box-shadow: var(--shadow-matte);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.wpx-tile:hover { transform: translateY(-2px); border-color: var(--border-gold); }
.wpx-tile.is-official { border-color: var(--border-gold); box-shadow: var(--gold-glow); }
.wpx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5;
  transition: transform var(--dur-slow, 340ms) var(--ease-out); }
.wpx-tile:hover img { transform: scale(1.03); }
.wpx-tile::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.30) 0%, rgba(6,6,6,0.52) 52%, rgba(6,6,6,0.68) 100%); }
.wpx-tile > * { position: relative; z-index: 1; }
/* underlay: the text block sits on its own onyx panel so busy key art can never
   compete with it — fades in from transparent, so the art above stays open */
.wpx-tile-body { margin: 0 -20px -20px; padding: 26px 20px 20px;
  background: linear-gradient(180deg, rgba(6,6,6,0) 0%, rgba(6,6,6,0.74) 22%, rgba(6,6,6,0.94) 52%, rgba(6,6,6,0.985) 100%); }
.wpx-tile-body .wpx-tile-title { margin-top: 0; }
.wpx-when { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: auto;
  padding: 5px 11px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.9091); font-weight: 900; letter-spacing: 0.13em;
  text-transform: uppercase; color: #2a1e08; background: var(--gold-metallic-135); box-shadow: var(--bevel-highlight); }
.wpx-when.is-live { color: #ff6a5e; background: rgba(255,59,48,0.14); border: 1px solid rgba(255,59,48,0.38); box-shadow: none; }
.wpx-tile-title { margin-top: 16px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-mustard); }
.wpx-tile h3 { margin-top: 7px; font-size: calc(var(--size-subhead) * 1.1667); font-weight: 900; line-height: 1.12; letter-spacing: -0.028em; color: var(--text-heading); }
.wpx-tile-meta { margin-top: 9px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-body); }
.wpx-tile-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

/* ---- Which title a pooled party belongs to -------------------------------- */
.pty-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 11px;
  border-bottom: 1px solid var(--border-bevel); min-width: 0; }
.pty-title img { flex: none; width: 46px; height: 29px; object-fit: cover; border-radius: 5px;
  background: var(--color-surface-3); box-shadow: var(--well-inset); }
.pty-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(var(--size-meta) * 1.0455); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-heading);
  transition: color var(--dur-base) var(--ease-out); }
.pty-title:hover b { color: var(--gold-mustard); }
.pty-title em { flex: none; margin-left: auto; font-style: normal; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---- Your parties (members only) ------------------------------------------ */
.wpx-you { display: none; }
body.view-paid .wpx-you { display: block; }
.wpx-you-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.wpx-quota { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--border-bevel-strong); background: var(--color-surface-1);
  box-shadow: var(--bevel-highlight); font-size: var(--size-small); font-weight: 700; color: var(--text-body); }
.wpx-pips { display: flex; gap: 4px; }
.wpx-pips i { width: 16px; height: 5px; border-radius: 999px; background: var(--color-surface-3); box-shadow: var(--well-inset); }
.wpx-pips i.is-on { background: var(--gold-bar, var(--gold-metallic-135)); box-shadow: var(--bevel-highlight); }
.wpx-mine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wpx-row { display: grid; grid-template-columns: 68px 1fr; overflow: hidden; border: 1px solid var(--border-bevel-strong);
  border-radius: var(--radius-card); background: var(--color-surface-1); box-shadow: var(--bevel-highlight); }
.wpx-row.is-private { border-style: dashed; }
/* Official parties carry the same gold date block as the main calendar */
.wpx-row.is-official { border-color: var(--border-gold); box-shadow: var(--bevel-highlight), var(--gold-glow); }
.wpx-row.is-official .wpx-row-date { background: var(--gold-metallic-135); border-right-color: rgba(42,30,8,0.22);
  box-shadow: var(--bevel-highlight); }
.wpx-row.is-official .wpx-row-day { color: #2a1e08; }
.wpx-row.is-official .wpx-row-mon { color: rgba(42,30,8,0.72); }
.wpx-row-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 14px 6px; background: var(--color-surface-2); border-right: 1px solid var(--border-bevel-strong);
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.72); }
.wpx-row-day { font-size: calc(var(--size-heading) * 0.7813); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--gold-mustard); font-variant-numeric: tabular-nums; }
.wpx-row-mon { font-size: calc(var(--size-meta) * 0.8636); font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.wpx-row-body { padding: 14px 16px 15px; min-width: 0; }
.wpx-row-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wpx-row-head h4 { font-size: calc(var(--size-body) * 1.0714); font-weight: 800; letter-spacing: -0.015em; color: var(--text-heading); }
.wpx-row-meta { margin-top: 6px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-body); }
.wpx-row-meta a { color: var(--text-body); }
.wpx-row-meta a:hover { color: var(--gold-mustard); }
.wpx-row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.wpx-drop { padding: 0 2px; font-size: var(--size-small); font-weight: 600; color: var(--text-muted); background: none; border: 0; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out); }
.wpx-drop:hover { color: #ff6a5e; }
.wpx-empty { padding: 30px 24px; text-align: center; font-size: calc(var(--size-body) * 0.9643); color: var(--text-muted);
  border: 1px dashed var(--border-bevel-strong); border-radius: var(--radius-card); }

/* ---- Share link ----------------------------------------------------------- */
.wpx-link { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 14px;
  border-radius: 999px; background: var(--color-surface-2); border: 1px solid var(--border-bevel); box-shadow: var(--well-inset); }
.wpx-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: inherit; font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); letter-spacing: -0.005em; }
.wpx-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font: inherit; font-size: calc(var(--size-meta) * 1.0455); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #2a1e08; background: var(--gold-metallic-135); border: 0; cursor: pointer; box-shadow: var(--bevel-highlight);
  transition: filter var(--dur-fast) var(--ease-out); }
.wpx-copy:hover { filter: brightness(1.08); }
.wpx-copy svg { width: 13px; height: 13px; }

/* ---- Host form additions -------------------------------------------------- */
.wpx-form { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start;
  padding: 24px; border: 1px solid var(--border-bevel-strong); border-radius: 20px;
  background: var(--color-surface-1); box-shadow: var(--bevel-highlight), var(--shadow-matte); }
.wpx-art { position: relative; overflow: hidden; border-radius: 14px; background: var(--color-surface-3);
  box-shadow: var(--well-inset); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.wpx-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpx-art-empty { position: relative; z-index: 1; padding: 22px; text-align: center; font-size: var(--size-small); line-height: 1.55; color: var(--text-muted); }
.wpx-art-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(180deg, rgba(6,6,6,0) 0%, rgba(6,6,6,0.92) 100%); }
.wpx-art-cap b { display: block; font-size: calc(var(--size-small) * 1.0833); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-heading); }
.wpx-art-cap span { display: block; margin-top: 3px; font-size: calc(var(--size-meta) * 1.0455); color: var(--text-muted); }
.wpx-aside-note { margin-top: 14px; font-size: var(--size-small); line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.wpx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wpx-grid .dt-field.is-wide { grid-column: 1 / -1; }
.wpx-grid .dt-field.is-half { grid-column: span 2; }

/* ---- Tag people ----------------------------------------------------------- */
/* Members only. Owns its own gate — .cta-member forces display:inline-flex,
   which would turn this block container into a flex row. */
.wpx-tag { display: none; grid-column: 1 / -1; padding: 16px; border-radius: 14px; border: 1px solid var(--border-bevel);
  background: var(--color-surface-2); box-shadow: var(--well-inset); }
body.view-paid .wpx-tag { display: block; }
.wpx-tag-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wpx-tag-head label { font-size: calc(var(--size-meta) * 0.9545); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.wpx-tag-n { margin-left: auto; font-size: var(--size-small); font-weight: 700; color: var(--gold-mustard); font-variant-numeric: tabular-nums; }
.wpx-all { display: inline-flex; align-items: center; gap: 9px; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--size-meta); font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.wpx-all .gold-check { width: 20px; height: 20px; border-radius: 6px; }
.wpx-all .gold-check svg { width: 12px; height: 12px; }
.wpx-all:hover, .wpx-all[aria-checked="true"] { color: var(--gold-mustard); }
.wpx-tag-search { margin-top: 12px; }
.wpx-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px;
  max-height: 214px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin;
  scrollbar-color: var(--border-bevel-strong) transparent; }
.wpx-people::-webkit-scrollbar { width: 8px; }
.wpx-people::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--border-bevel-strong); }
.wpx-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 999px;
  text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--border-bevel-strong);
  background: var(--color-surface-1); box-shadow: var(--bevel-highlight);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.wpx-person:hover { border-color: var(--border-gold); }
.wpx-person.is-on { border-color: var(--border-gold); background: linear-gradient(180deg, rgba(214,157,56,0.14), rgba(214,157,56,0.03)); }
.wpx-face { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: calc(var(--size-meta) * 1.0455); font-weight: 800;
  color: var(--gold-mustard); background: var(--color-surface-3); box-shadow: var(--well-inset); }
.wpx-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.wpx-person > span { min-width: 0; }
.wpx-person-at { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); }
.wpx-person-rel { display: block; margin-top: 2px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); }
.wpx-person-tick { flex: none; margin-left: auto; width: 15px; height: 15px; color: var(--gold-mustard); opacity: 0; }
.wpx-person.is-on .wpx-person-tick { opacity: 1; }
.wpx-tag-empty { padding: 16px 4px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); }

/* ---- Submitted: the generated link ---------------------------------------- */
.wpx-done { grid-column: 1 / -1; padding: 18px 20px; border-radius: var(--radius-card);
  border: 1px solid var(--border-gold); background: var(--color-surface-2); box-shadow: var(--gold-glow); }
.wpx-done h4 { font-size: calc(var(--size-body) * 1.1429); font-weight: 800; letter-spacing: -0.015em; color: var(--text-heading); }
.wpx-done p { margin-top: 6px; font-size: calc(var(--size-small) * 1.0833); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.wpx-done-acts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

/* ---- How it works ----------------------------------------------------------
   The stepper itself is the shared .ap-steps connector-line walkthrough in
   site.css — nothing page-specific left here. */

@media (max-width: 1100px) {
  .wpx-next { grid-template-columns: 1fr 1fr; }
  .wpx-next > :nth-child(3) { display: none; }
  .wpx-form { grid-template-columns: 1fr; }
  .wpx-art { max-width: 320px; }
  .wpx-people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .wpx-mine { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wpx-next { grid-template-columns: 1fr; }
  .wpx-next > :nth-child(3) { display: flex; }
  .wpx-grid { grid-template-columns: 1fr; }
  .wpx-grid .dt-field.is-half { grid-column: 1 / -1; }
  .wpx-people { grid-template-columns: 1fr; max-height: 300px; }
  .wpx-quota { margin-left: 0; }
}

