/* Sensitive media (library/SensitiveMedia.php::wrapHtml, assets/js/sb_sensitive.js):
   a post's photos and videos under one blurred cover until Show. The media
   stays in the page (its addresses held back), so the post keeps its height
   and nothing is downloaded until Show. */
.sb-sensitive { position: relative; display: block; isolation: isolate; }
.sb-sensitive.is-covered { min-height: 260px; overflow: hidden; background: #1b1e26; }
.sb-sensitive.is-covered .sb-sensitive-held { visibility: hidden; pointer-events: none; }
.sb-sensitive.is-covered .sb-sensitive-held video,
.sb-sensitive.is-covered .sb-sensitive-held img { min-height: 260px; }

.sb-sensitive-cover {
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background-color: #1b1e26;
    background-size: cover; background-position: center;
}
/* The blurred copy is already blurred; this softens its pixels further and darkens it for the text. */
.sb-sensitive-cover::before {
    content: ''; position: absolute; inset: 0;
    background: inherit; filter: blur(18px) saturate(1.1); transform: scale(1.15);
}
.sb-sensitive-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 18, .35), rgba(10, 12, 18, .6));
}
.sb-sensitive-box {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    max-width: 320px; text-align: center; color: #fff;
}
.sb-sensitive-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
    font-size: 22px; margin-bottom: 4px;
}
.sb-sensitive-title { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.sb-sensitive-line { font-size: 13px; opacity: .85; line-height: 1.4; }
.sb-sensitive-show {
    margin-top: 10px; padding: 8px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12);
    color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.sb-sensitive-show:hover, .sb-sensitive-show:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }
.sb-sensitive-show:active { transform: scale(.97); }

/* After Show: a small "Hide" to put the cover back. */
.sb-sensitive.is-shown .sb-sensitive-cover { display: none; }
.sb-sensitive-hide {
    position: absolute; top: 10px; left: 10px; z-index: 6;
    padding: 4px 12px; border-radius: 999px; border: 0;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
.sb-sensitive-hide:hover { background: rgba(0, 0, 0, .75); }

/* The poster's own post: shown, with a note that others see a cover. */
.sb-sensitive-chip {
    position: absolute; top: 10px; left: 10px; z-index: 6;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .sb-sensitive-show { transition: none; }
}

/* The composer's "Sensitive?" chips (post/partials/inc/for_album_form.php). */
.sbs-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 2px 2px; }
.sbs-pick-label { font-size: 13px; font-weight: 600; color: var(--sb-text-soft, #444); margin-right: 2px; }
.sbs-pick-chip { margin: 0; cursor: pointer; font-weight: 500; }
.sbs-pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sbs-pick-chip span {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px;
    border: 1px solid var(--sb-border-strong, #d8dce3); color: var(--sb-text-soft, #444); background: var(--sb-surface, #fff);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sbs-pick-chip input:checked + span { background: #2b2f3a; border-color: #2b2f3a; color: #fff; }
.sbs-pick-chip input:focus-visible + span { outline: 2px solid var(--sb-accent, #0073b7); outline-offset: 2px; }
.sbs-pick-hint { font-size: 12px; color: var(--sb-text-muted, #888); flex-basis: 100%; padding-left: 2px; }
body.theme-dark .sbs-pick-chip input:checked + span { background: #e9ebf0; border-color: #e9ebf0; color: #161922; }
/* Edit post: a label from the check, a report or an admin stays ticked. */
.sbs-pick-chip.is-fixed { cursor: default; }
.sbs-pick-chip.is-fixed span { opacity: .7; }
.sbs-pick-chip.is-fixed span::before { content: "\1F512\00a0"; font-size: 11px; }
.sbs-pick.in-edit { padding: 12px 0 0; margin-top: 10px; border-top: 1px solid var(--sb-border, #e6e8ec); }

/* Watch (watch/partials/watch_area.php): the cover fills the player, above its overlays. */
.video-wrapper > .sb-sensitive { position: absolute; inset: 0; min-height: 0; z-index: 30; }
.video-wrapper > .sb-sensitive.is-shown { z-index: auto; position: static; }
.video-wrapper > .sb-sensitive.is-shown .sb-sensitive-hide { top: 70px; }
.video-wrapper > .sb-sensitive .sb-sensitive-held { position: absolute; inset: 0; }

/* Grid tiles (library/SensitiveMedia.php wrapTile: Watch's Explore, channels,
   history and the home strip; mini on playlist rows and a profile's Photos &
   videos): the feed's cover, sized to the tile. It fills the tile; a tap
   outside Show opens the item. Words drop out as the tile gets small. */
.sb-sensitive.is-tile { position: absolute; inset: 0; z-index: 1; min-height: 0; background: #1b1e26; cursor: pointer; container-type: size; }
.sb-sensitive.is-tile .sb-sensitive-held { position: absolute; inset: 0; }
.sb-sensitive.is-tile.is-covered .sb-sensitive-held img,
.sb-sensitive.is-tile.is-covered .sb-sensitive-held video { min-height: 0; }
.sb-sensitive.is-tile .sb-sensitive-held img,
.sb-sensitive.is-tile .sb-sensitive-held video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-sensitive.is-tile .sb-sensitive-cover { padding: 12px 10px 34px; }
.sb-sensitive.is-tile .sb-sensitive-box { gap: 4px; max-width: 100%; }
.sb-sensitive.is-tile .sb-sensitive-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 2px; }
.sb-sensitive.is-tile .sb-sensitive-title { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-sensitive.is-tile .sb-sensitive-line { font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-sensitive.is-tile .sb-sensitive-show { margin-top: 6px; padding: 6px 18px; font-size: 13px; }
.sb-sensitive.is-tile .sb-sensitive-age { margin-top: 4px; font-size: 11px; line-height: 1.3; }
.sb-sensitive.is-tile .sb-sensitive-minor { margin-top: 6px; padding: 5px 10px; font-size: 11.5px; }
.sb-sensitive.is-tile .sb-sensitive-hide { top: 8px; left: 8px; padding: 3px 10px; font-size: 11.5px; }
@container (max-width: 150px) {
    .sb-sensitive.is-tile .sb-sensitive-line, .sb-sensitive.is-tile .sb-sensitive-age { display: none; }
    .sb-sensitive.is-tile .sb-sensitive-icon { width: 34px; height: 34px; font-size: 15px; }
}
@container (max-height: 210px) {
    .sb-sensitive.is-tile .sb-sensitive-line, .sb-sensitive.is-tile .sb-sensitive-age { display: none; }
}
/* The tile's own play button would sit on Show (or on the eye). */
.video-item:has(> .sb-sensitive.is-covered) .play-btn,
.sbpm-tile:has(.sb-sensitive.is-covered) .sbpm-badge { display: none; }
/* Mini: the blurred copy, the eye and what it may show. */
.sb-sensitive.is-mini { display: block; }
.sb-sensitive.is-mini .sb-sensitive-cover { flex-direction: column; gap: 5px; padding: 6px; }
.sb-sensitive.is-mini .sb-sensitive-icon { position: relative; z-index: 1; width: 32px; height: 32px; font-size: 14px; margin: 0; }
.sb-sensitive.is-mini .sb-sensitive-name { position: relative; z-index: 1; max-width: 100%; color: #fff; font-size: 11.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
@container (max-width: 100px) { .sb-sensitive.is-mini .sb-sensitive-name { display: none; } }
/* Show for a visitor (a link), a member confirming their age, someone under 18 (migration 203). */
a.sb-sensitive-show.is-link { display: inline-block; text-decoration: none !important; color: #fff; }
.sb-sensitive-age { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.sb-sensitive-minor { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; }
/* The "Confirm your age" sheet (assets/js/sb_sensitive.js sbConfirmAge). */
.sbs-age-lead { margin: 0 0 4px; color: var(--sbd-text, #050505); font-size: .93rem; line-height: 1.45; }
.sbs-age-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.sbs-age-row .sbd-select { padding-right: 8px; }
