/* ===================================================================
   Collections (#256) — shared across the fleet (dark-background themes).
   Loaded by default.twig on collections-enabled sites, AFTER the theme sheet.

   Colour is driven by CSS variables each theme sets in its own :root:
     --col-accent       primary accent (the theme's .button colour)
     --col-accent-2     darker accent for the saved gradient bottom
     --col-accent-lite  lighter accent for small highlights
     --col-ink          text ON the filled accent (picked by luminance)
     --col-line         ghost/outline colour (accent, or light for near-black)
     --col-surface      popup surface (toast / nudge)
     --col-surface-hi   modal surface
   Unset vars fall back to camgirlrips' orange, so an un-tuned dark theme still
   renders correctly. Light-background themes need a separate variant (not here).
   Semantic colours (red NEW badge, grey/green download tracker, amber warning)
   are fixed — they read on any theme.
   =================================================================== */

/* Base: accent-outline (unsaved) → solid-accent fill (saved). */
.col-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid var(--col-line, var(--col-accent, #f97316));
  background: transparent;
  color: var(--col-line, var(--col-accent, #f97316));
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.col-save:hover { background: color-mix(in srgb, var(--col-accent, #f97316) 15%, transparent); }
.col-save .col-ico {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}
.col-save.saved {
  background: linear-gradient(var(--col-accent, #f97316), var(--col-accent-2, color-mix(in srgb, var(--col-accent, #f97316) 82%, #000)));
  border-color: var(--col-accent, #f97316);
  color: var(--col-ink, #fff);
}
.col-save.saved .col-ico { fill: currentColor; stroke: none; }

/* Card variant: slim bar between the tall More/Download buttons. */
.content .post-container .col-save-card {
  display: flex;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 10px;
  height: 48px;
  font-size: 19px;
}

/* Header variant: performer-page pill. */
.col-header-actions { text-align: center; margin: 6px 0 14px; }
.col-save-header { padding: 11px 20px; font-size: 15px; }

/* Watch Later split control (watch-later page only): [Watch Later | status]. */
.content .post-container .col-split {
  display: flex;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 10px;
}
.content .post-container .col-split .col-half {
  flex: 1 1 50%;
  min-width: 0;
  height: 48px;
  font-size: 17px;
  margin: 0;
  border-radius: 0;
}
.content .post-container .col-split .col-half:first-child { border-radius: 4px 0 0 4px; border-right-width: 1px; }
.content .post-container .col-split .col-half:last-child  { border-radius: 0 4px 4px 0; }
/* right half: download-status tracker — grey "Pending" -> green "Downloaded" (fixed). */
.col-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  cursor: pointer;
  border: 2px solid #6b7280;
  border-left-width: 1px;
  background: transparent;
  color: #d1d5db;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.col-dl:hover { background: rgba(255, 255, 255, 0.08); }
.col-dl .col-ico { flex: none; width: 1.05em; height: 1.05em; fill: currentColor; }
.col-dl .col-ico-check { display: none; }
.col-dl.col-done { background: #16a34a; border-color: #16a34a; color: #fff; }
.col-dl.col-done .col-ico-dl { display: none; }
.col-dl.col-done .col-ico-check { display: inline-block; }

/* New-content dot (header pill only; tiles use the NEW badge). */
.col-dot {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}
.col-save-perf.col-has-new .col-dot { display: inline-block; }
.col-save-card .col-dot { display: none !important; }

/* "NEW" badge — top-right corner of a watchlisted performer's tile (fixed red). */
.content .post-container.performer-tile .post-content { position: relative; }
.col-new-badge {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font: 700 11px/1 "Roboto", sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.col-new-badge.col-on { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .col-new-badge.col-on { animation: colNewPulse 1.9s ease-in-out infinite; }
}
@keyframes colNewPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.09); }
}

/* Nav "Saved" — count badges + aggregate dot (icons inherit nav colour). */
.cat-nav-saved .col-nav-badges { display: inline-flex; gap: 8px; margin: 0 2px 0 6px; vertical-align: middle; }
.cat-nav-saved .col-nav-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; }
.cat-nav-saved .col-nav-badge[hidden] { display: none; }
.cat-nav-saved .col-nav-badge .col-ico { width: 13px; height: 13px; fill: currentColor; }
.cat-nav-saved .col-nav-badge b { font-variant-numeric: tabular-nums; }
.cat-nav-saved .col-nav-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  vertical-align: top;
  margin-left: 4px;
}
.cat-nav-saved.col-has-new > a .col-nav-dot { display: inline-block; }

/* Toast. */
#col-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--col-surface, #1c1917);
  border: 1px solid var(--col-accent, #f97316);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  max-width: 80vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
#col-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Saved-list pages: dim a card the instant it's un-saved. */
[data-col-list] .post-container { transition: opacity 0.18s; }
[data-col-list] .post-container:has(.col-save:not(.saved)) { opacity: 0.4; }

.col-empty-lead {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 22px;
  opacity: 0.92;
  color: var(--col-fg, #fff);
}
.col-count { opacity: 0.6; font-weight: 400; }

/* "Secure your list" notice — a quiet accent-tinted bar on the saved-list pages
   for visitors without a recovery phrase. No animation; clicking opens the
   create-phrase flow. collections.js toggles [hidden]. */
.col-secure { max-width: 900px; margin: 0 auto 20px; }
.col-secure[hidden] { display: none; }
.col-secure-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  background: color-mix(in srgb, var(--col-accent, #f97316) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--col-accent, #f97316) 40%, transparent);
  color: var(--col-fg, #fff);
  font: 400 14px/1.4 "Roboto", sans-serif;
  transition: background 0.12s;
}
.col-secure-btn:hover { background: color-mix(in srgb, var(--col-accent, #f97316) 20%, transparent); }
.col-secure-btn .col-ico { width: 18px; height: 18px; flex: none; fill: var(--col-accent, #f97316); }
.col-secure-btn strong { color: var(--col-accent-lite, #fb923c); font-weight: 600; }

/* Saved-list pagination. */
.col-pager {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 26px auto 10px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
}
.col-pager a {
  display: inline-block;
  min-width: 40px;
  padding: 9px 12px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  color: var(--col-fg, #fff);
  background: var(--col-panel-bg, rgba(0, 0, 0, 0.28));
  border: 1px solid var(--col-panel-line, rgba(255, 255, 255, 0.12));
}
.col-pager a:hover { background: color-mix(in srgb, var(--col-accent, #f97316) 22%, transparent); border-color: var(--col-accent, #f97316); }
.col-pager .col-pg-cur {
  display: inline-block;
  min-width: 40px;
  padding: 9px 12px;
  text-align: center;
  border-radius: 4px;
  background: linear-gradient(var(--col-accent, #f97316), var(--col-accent-2, color-mix(in srgb, var(--col-accent, #f97316) 82%, #000)));
  border: 1px solid var(--col-accent, #f97316);
  color: var(--col-ink, #fff);
}
.col-pager .col-pg-gap { opacity: 0.6; padding: 0 2px; }
.col-pager .col-pg-jump { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.col-pager .col-pg-jump input {
  width: 68px;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid var(--col-panel-line, rgba(255, 255, 255, 0.18));
  background: var(--col-panel-bg, rgba(0, 0, 0, 0.28));
  color: var(--col-fg, #fff);
  font: 400 15px/1 "Roboto", sans-serif;
  text-align: center;
  -moz-appearance: textfield;
}
.col-pager .col-pg-jump input::-webkit-outer-spin-button,
.col-pager .col-pg-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.col-pager .col-pg-jump input:focus { outline: none; border-color: var(--col-accent, #f97316); }
.col-pager .col-pg-go {
  min-width: 44px;
  padding: 9px 15px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--col-accent, #f97316);
  background: linear-gradient(var(--col-accent, #f97316), var(--col-accent-2, color-mix(in srgb, var(--col-accent, #f97316) 82%, #000)));
  color: var(--col-ink, #fff);
  font: 600 15px/1 "Roboto", sans-serif;
}

/* Explainer block (Info page + zero-entries state). */
.col-help { font-family: "Roboto", sans-serif; max-width: 860px; margin: 0 auto 40px; padding: 0 20px; }
.col-help-lists { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.col-help-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--col-panel-bg, rgba(0, 0, 0, 0.22));
  border: 1px solid var(--col-panel-line, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  padding: 22px 22px 18px;
  text-align: center;
}
.col-help-ico { width: 34px; height: 34px; fill: var(--col-accent, #f97316); margin-bottom: 6px; }
.col-help-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--col-fg, #fff); }
.col-help-card p { margin: 0; font-size: 14.5px; line-height: 1.55; opacity: 0.9; color: var(--col-fg, #fff); }
.col-help-card strong { color: var(--col-accent-lite, #fb923c); font-weight: 600; }
.col-help-notes { max-width: 640px; margin: 24px auto 0; text-align: center; font-size: 14px; line-height: 1.6; opacity: 0.86; color: var(--col-fg, #fff); }
.col-help-notes p { margin: 0 0 8px; }
.col-help-notes strong { color: var(--col-accent-lite, #fb923c); }
.col-help-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
/* Normalise the giant theme .button down inside the explainer. */
.col-help .button {
  display: inline-block; width: auto; height: auto; max-width: none; margin: 0;
  padding: 12px 24px; font-size: 16px; line-height: 1.2; border-radius: 4px;
  color: var(--col-ink, #fff); background: var(--col-accent, #f97316); background-color: var(--col-accent, #f97316);
  text-decoration: none; cursor: pointer; border: 2px solid var(--col-accent, #f97316);
}
.col-help .button:hover { background-color: var(--col-accent-2, color-mix(in srgb, var(--col-accent, #f97316) 82%, #000)); border-color: var(--col-accent-2, #ea580c); }
.col-help .button.col-btn-ghost { background: transparent; background-color: transparent; color: var(--col-line, var(--col-accent, #f97316)); }
.col-help .button.col-btn-ghost:hover { background-color: color-mix(in srgb, var(--col-accent, #f97316) 15%, transparent); color: var(--col-line, var(--col-accent, #f97316)); }

/* Seed-phrase persistence block. */
.col-help-persist {
  max-width: 640px; margin: 26px auto 0; padding: 20px 22px; text-align: center;
  background: var(--col-panel-bg, rgba(0, 0, 0, 0.24));
  border: 1px solid color-mix(in srgb, var(--col-accent, #f97316) 35%, transparent);
  border-radius: 6px;
}
.col-help-persist h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--col-fg, #fff); }
.col-help-persist p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; opacity: 0.9; color: var(--col-fg, #fff); }
.col-help-persist strong { color: var(--col-accent-lite, #fb923c); }
.col-persist-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.col-restore-form { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.col-restore-form label { flex-basis: 100%; font-size: 13px; opacity: 0.85; color: var(--col-fg, #fff); }
.col-restore-form input {
  flex: 1 1 320px; min-width: 0; padding: 11px 14px; font-size: 15px; border-radius: 4px;
  border: 1px solid var(--col-panel-line, rgba(255, 255, 255, 0.25)); background: var(--col-panel-bg, rgba(0, 0, 0, 0.3)); color: var(--col-fg, #fff);
}
.col-restore-form input:focus { outline: none; border-color: var(--col-accent, #f97316); }
.col-restore-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--col-accent-lite, #fb923c); min-height: 1em; }

/* Phrase modal. */
.col-modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.66);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 3000;
}
.col-modal {
  background: var(--col-surface-hi, #26201d);
  border: 1px solid color-mix(in srgb, var(--col-accent, #f97316) 50%, transparent);
  border-radius: 8px; max-width: 460px; width: 100%; padding: 26px 26px 22px;
  text-align: center; font-family: "Roboto", sans-serif; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.col-modal h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; color: #fff; }
.col-phrase { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.col-word {
  background: linear-gradient(var(--col-accent, #f97316), var(--col-accent-2, color-mix(in srgb, var(--col-accent, #f97316) 82%, #000)));
  color: var(--col-ink, #fff); font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 5px; letter-spacing: 0.3px;
}
.col-modal-warn { font-size: 13.5px; line-height: 1.55; color: #fde68a; margin: 0 0 18px; }
.col-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.col-modal .button {
  display: inline-block; width: auto; height: auto; max-width: none; margin: 0;
  padding: 11px 22px; font-size: 15px; line-height: 1.2; border-radius: 4px;
  color: var(--col-ink, #fff); background: var(--col-accent, #f97316); background-color: var(--col-accent, #f97316);
  border: 2px solid var(--col-accent, #f97316); cursor: pointer; text-decoration: none;
}
.col-modal .button:hover { background-color: var(--col-accent-2, #ea580c); border-color: var(--col-accent-2, #ea580c); }
.col-modal .button.col-btn-ghost { background: transparent; background-color: transparent; color: var(--col-line, var(--col-accent, #f97316)); }
.col-modal .button.col-btn-ghost:hover { background-color: color-mix(in srgb, var(--col-accent, #f97316) 15%, transparent); }

/* After-X-saves nudge banner. */
#col-nudge {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(24px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  max-width: min(720px, 94vw);
  background: var(--col-surface, #1c1917);
  border: 1px solid var(--col-accent, #f97316);
  border-radius: 8px; padding: 14px 18px; font-family: "Roboto", sans-serif; font-size: 14px; color: #fff;
  opacity: 0; transition: opacity 0.22s, transform 0.22s; z-index: 2500; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#col-nudge.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#col-nudge .button {
  display: inline-block; width: auto; height: auto; max-width: none; margin: 0;
  padding: 9px 18px; font-size: 14px; line-height: 1.2; border-radius: 4px;
  color: var(--col-ink, #fff); background: var(--col-accent, #f97316); background-color: var(--col-accent, #f97316); border: none; cursor: pointer;
}
#col-nudge .button:hover { background-color: var(--col-accent-2, #ea580c); }
.col-nudge-x { background: none; border: none; color: rgba(255, 255, 255, 0.7); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 6px; }
.col-nudge-x:hover { color: #fff; }
