/* Blur-first: while a show is protected, every feed item's contents stay blurred until judged safe.
   Children are blurred, not the item, so our notice card (.pa-ov) on top stays sharp. */
html.ss-on :is(ytd-rich-item-renderer, ytd-video-renderer, ytd-compact-video-renderer, ytd-reel-item-renderer,
  ytd-grid-video-renderer, ytd-playlist-renderer, yt-lockup-view-model, ytm-shorts-lockup-view-model, ytd-comment-view-model,
  article:has(> shreddit-post), shreddit-post, shreddit-comment > div[slot="comment"], reddit-pdp-right-rail-post,
  search-telemetry-tracker[view-events="search/view/post"], search-telemetry-tracker[view-events="search/view/comment"], .search-answers-preview-section,
  .thing.link, .search-result-link, .thing.comment > .entry,
  article[data-testid="tweet"], article[data-testid="notification"], [data-testid="trend"], [data-testid^="news_sidebar_article_"],
  [data-ss-item]):not([data-ss="safe"], [data-ss="revealed"]) > :not(.pa-ov, .pa-by) {
  filter: blur(10px) saturate(0.4);
  transition: filter 0.25s ease;
}
html.ss-on [data-ss="spoiler"] > :not(.pa-ov, .pa-by) { filter: blur(18px) grayscale(0.7) !important; }
html.ss-on :is([data-ss="spoiler"], [data-ss="pending"]) { position: relative; overflow: clip; border-radius: 12px; }

.pa-ov {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; border-radius: 12px; text-align: center; cursor: default;
  background: rgba(24, 25, 23, 0.86); color: #fff; font: 500 13px/1.4 system-ui, sans-serif;
}
[data-ss="pending"] > .pa-ov { background: rgba(24, 25, 23, 0.45); }
.pa-ov [data-label]::after { content: attr(data-label); }
.pa-title { font-weight: 700; font-size: 14px; }
[data-ss="spoiler"] > .pa-ov:not(.pa-compact, .pa-short)::before {
  content: ""; width: 26px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='28 54 72 40'%3E%3Cg fill='none' stroke='%23bbf453' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M34 60C46 76 82 76 94 60M44 75l-6 11M64 79v12M84 75l6 11'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.pa-why { opacity: 0.85; }
.pa-src { opacity: 0.7; font-size: 11px; margin-top: 2px; }
[data-ss="pending"] .pa-title { opacity: 0.8; animation: pa-pulse 1.2s ease-in-out infinite; }
@keyframes pa-pulse { 50% { opacity: 0.35; } }
.pa-row { display: flex; gap: 8px; margin-top: 4px; }
.pa-btn {
  font: 600 12px system-ui, sans-serif; cursor: pointer; border-radius: 99px; padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff;
}
.pa-show { background: #bbf453; color: #191a17; border-color: #bbf453; }
.pa-btn:hover { filter: brightness(1.1); }

/* "Label posts": where each post was decided. */
html.ss-on [data-ss]:has(> .pa-by) { position: relative; }
.pa-by { position: absolute; left: 8px; top: 8px; z-index: 21; padding: 2px 9px; border-radius: 99px; pointer-events: none; font: 600 11.5px/1.55 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.pa-by::after { content: attr(data-label); }
.pa-by-none { background: #f3f4f1; color: #33352f; } .pa-by-dev { background: #39d98a; color: #06281a; } .pa-by-cloud { background: #ffc46b; color: #3a2503; }

/* Small tiles (Shorts, compact rows): a single chip. */
.pa-compact { gap: 6px; padding: 6px; }
.pa-compact :is(.pa-why, .pa-src, .pa-safe) { display: none; }
.pa-compact .pa-title { font-size: 12px; }
.pa-compact .pa-row { margin: 0; }

/* Shadow hosts (Reddit's shreddit-post on a post page): label drawn by the host itself. */
html.ss-on shreddit-post[data-ss-show]:is([data-ss="spoiler"], [data-ss="pending"])::before {
  content: attr(data-ss-show);
  display: block; margin-bottom: 6px; padding: 6px 10px; border-radius: 8px;
  background: #1b1f29; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; cursor: pointer;
}
