/* ufo115.com/<platform> social hub pages (server/views/social-hub.js): a curated, dated archive built from the
   Evidence Timeline's devices. Builds on et.css (tokens, .et-btn, .et-years rail, .et-cine__stats). */
.sh { padding: 0 16px 72px; overflow-x: clip; background: var(--et-bg); }

/* ── 1. hero: the platform's files, a fan of three of its own posts, never text over an image ── */
.sh-cine { position: relative; margin: 0 -16px; padding: 28px 16px 36px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 78% 38%, rgba(124,242,154,.13), transparent 70%), radial-gradient(60% 70% at 10% 0%, rgba(110,168,255,.14), transparent 70%), #04070e;
  border-bottom: 1px solid var(--et-line); display: grid; gap: 22px; }
.sh-cine::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .1; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sh-cine__ghost { position: absolute; z-index: -1; left: 50%; top: 6px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 900 clamp(84px, 22vw, 300px)/.8 Inter, system-ui, sans-serif; letter-spacing: -.04em; color: rgba(255,255,255,.035); }
.sh-fan { position: relative; height: 236px; margin: 4px auto 0; width: 100%; max-width: 420px; }
.sh-fan__ph { position: absolute; left: 50%; top: 0; width: 150px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #02040a;
  border: 5px solid #0b111d; outline: 1px solid var(--et-line2); box-shadow: 0 24px 60px rgba(0,0,0,.65); animation: sh-float 7s ease-in-out infinite alternate; }
.sh-fan__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-fan__ph--1 { z-index: 3; transform: translateX(-50%); box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(124,242,154,.45), 0 0 46px rgba(124,242,154,.28); }
.sh-fan__ph--2 { z-index: 2; transform: translateX(-112%) translateY(26px) rotate(-9deg); filter: brightness(.72); animation-delay: -2.3s; }
.sh-fan__ph--3 { z-index: 2; transform: translateX(12%) translateY(26px) rotate(9deg); filter: brightness(.72); animation-delay: -4.6s; }
@keyframes sh-float { to { translate: 0 -8px; } }
.sh-cine__copy { position: relative; max-width: 640px; }
.sh-cine__h { font: 900 clamp(42px, 8vw, 104px)/.9 Inter, system-ui, sans-serif; letter-spacing: -.025em; color: #fff; margin: 0 0 14px; }
.sh-cine__h em { font-style: normal; color: var(--et-acid); text-shadow: 0 0 34px rgba(124,242,154,.35); }
.sh-cine__lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: #d5dcea; margin: 0 0 20px; max-width: 46ch; }
.sh-cine__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.sh-cine__ctas .et-btn { min-height: 48px; padding: 0 20px; }
.sh-cine .et-cine__stats span { white-space: nowrap; }
/* the date strip: every post on one line, first to latest */
.sh-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 560px; }
.sh-strip__end { font: 700 10px var(--et-mono); letter-spacing: .14em; color: var(--et-muted); white-space: nowrap; }
.sh-strip__line { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; height: 28px; }
.sh-strip__line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--et-line2); }
.sh-strip__line li { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.sh-strip__line a { display: block; width: 18px; height: 28px; position: relative; }
.sh-strip__line a::before { content: ''; position: absolute; left: 5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--et-acid); box-shadow: 0 0 0 3px rgba(124,242,154,.14), 0 0 12px rgba(124,242,154,.6); }
.sh-strip__line a:hover::before, .sh-strip__line a:focus-visible::before { background: #fff; }

/* ── 2. the chapter rail (et-years) ── */
.sh-rail { z-index: 6; }
.sh-rail ol li { flex: none; }

/* ── 3. the feature block: the newest #NOMORESECRETS episode ── */
.sh-feat { max-width: 1120px; margin: 40px auto 0; }
.sh-feat__card { position: relative; display: grid; border: 1px solid rgba(124,242,154,.35); background: radial-gradient(90% 120% at 100% 0, rgba(124,242,154,.09), transparent 60%), var(--et-panel); }
.sh-feat__card { grid-template-areas: "pic" "body"; }
.sh-feat__body { grid-area: body; display: grid; gap: 8px; padding: 18px 16px 20px; align-content: start; grid-template-areas: "k" "ep" "h" "when" "log" "acts" "note"; }
/* a 9:16 poster (no still): poster beside the title block on the phone */
.sh-feat__card--tall { grid-template-columns: 124px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 16px;
  grid-template-areas: "pic k" "pic ep" "pic h" "pic when" "log log" "acts acts" "note note"; align-items: start; }
.sh-feat__card--tall .sh-feat__body { display: contents; }
.sh-feat__card--tall .sh-feat__pic { aspect-ratio: 9 / 16; }
.sh-feat__card::before, .sh-feat__card::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--et-acid); pointer-events: none; }
.sh-feat__card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.sh-feat__card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.sh-feat__pic { grid-area: pic; position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #02040a; }
.sh-feat__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.sh-feat__pic:hover img { transform: scale(1.04); }
.sh-feat__k { grid-area: k; margin: 0; display: flex; align-items: center; gap: 8px; font: 700 10px/1.4 var(--et-mono); letter-spacing: .16em; color: var(--et-acid); }
.sh-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--et-acid); box-shadow: 0 0 10px var(--et-acid); animation: sh-pulse 1.6s ease-in-out infinite; }
@keyframes sh-pulse { 50% { opacity: .35; } }
.sh-feat__ep { grid-area: ep; margin: 0; font: 900 44px/.9 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(124,242,154,.7); }
.sh-feat__h { grid-area: h; margin: 0; font: 900 clamp(24px, 3.6vw, 44px)/1 Inter, system-ui, sans-serif; color: #fff; letter-spacing: -.01em; }
.sh-feat__when { grid-area: when; margin: 0; font: 700 11px/1.5 var(--et-mono); letter-spacing: .12em; color: var(--et-blue); }
.sh-feat__log { grid-area: log; margin: 10px 0 4px; color: #c9d2e4; font-size: 15px; line-height: 1.55; max-width: 60ch; }
.sh-feat__acts { grid-area: acts; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sh-feat__acts .et-btn { min-height: 46px; }
.sh-feat__note { grid-area: note; margin: 6px 0 0; font-size: 13px; color: var(--et-muted); }
.sh-feat__note a { white-space: nowrap; }
.sh-play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 11px; color: #fff;
  background: rgba(2,4,10,.72); border: 1px solid var(--et-line2); border-radius: 50%; }
.sh-play--big { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 52px; height: 52px; font-size: 18px; border-color: rgba(124,242,154,.7); box-shadow: 0 0 24px rgba(124,242,154,.4); }

/* ── 4. chapters: a spine of dated case files ── */
.sh-ch { max-width: 1120px; margin: 64px auto 0; scroll-margin-top: 64px; }
.sh-ch__head { margin: 0 0 26px; padding-top: 18px; border-top: 1px solid var(--et-line); }
.sh-ch__no { margin: 0 0 8px; font: 800 11px var(--et-mono); letter-spacing: .24em; color: var(--et-acid); }
.sh-ch__h { margin: 0 0 8px; font: 900 clamp(30px, 5vw, 56px)/.95 Inter, system-ui, sans-serif; letter-spacing: -.015em; color: #fff; }
.sh-ch__meta { margin: 0 0 8px; font: 700 12px var(--et-mono); letter-spacing: .12em; color: var(--et-blue); }
.sh-ch__sub { margin: 0; color: var(--et-muted); font-size: 15px; max-width: 60ch; }
.sh-reel { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 26px; }
.sh-reel::before { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 1px; background: linear-gradient(180deg, var(--et-line2), var(--et-line2) 92%, transparent); }
.sh-file { position: relative; padding-left: 28px; scroll-margin-top: 70px; }
.sh-file__dot { position: absolute; left: 0; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--et-acid); box-shadow: 0 0 0 4px rgba(124,242,154,.15), 0 0 18px rgba(124,242,154,.7); z-index: 1; }
.sh-file__when { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: #fff; }
.sh-file__when b { font: 900 34px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.sh-file__when span { font: 700 11px var(--et-mono); letter-spacing: .16em; color: var(--et-acid); }
.sh-file__card { display: grid; border: 1px solid var(--et-line); background: var(--et-panel); transition: border-color .2s, transform .2s; }
.sh-file__card:hover { border-color: var(--et-blue); transform: translateY(-2px); }
.sh-file__pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #02040a; }
.sh-file__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.sh-file__card:hover .sh-file__pic img { transform: scale(1.04); }
.sh-file__body { display: grid; gap: 8px; padding: 16px; min-width: 0; align-content: start; }
.sh-file__code { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 11px var(--et-mono); letter-spacing: .14em; color: var(--et-muted); }
.sh-file__cls { font: 700 10px var(--et-mono); letter-spacing: .12em; color: var(--et-amber); border: 1px solid rgba(242,196,109,.5); padding: 3px 6px; }
.sh-file__t { margin: 0; font: 800 20px/1.2 Inter, system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.sh-file__date { margin: 0; font: 700 11px var(--et-mono); letter-spacing: .12em; color: var(--et-blue); }
.sh-file__acts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.sh-watch { min-height: 44px; padding: 0 14px; font-size: 12px; }
.sh-page { font: 700 12px var(--et-mono); letter-spacing: .06em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sh-page:hover { text-decoration: underline; }
.sh-file--ep .sh-file__card { border-color: rgba(124,242,154,.35); }

.sh-empty { padding: 24px 0; }
.sh-empty p + p { margin-top: 18px; }
.sh-more { max-width: 1120px; margin: 72px auto 0; padding-top: 18px; border-top: 1px solid var(--et-line); }
.sh-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--et-line2); font: 700 12px var(--et-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.sh-more a:hover { border-color: var(--et-blue); background: var(--et-blue-dim); }

@media (min-width: 760px) {
  .sh-cine { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding: 56px max(16px, calc(50% - 560px)) 56px; min-height: 560px; }
  .sh-cine__copy { order: -1; }
  .sh-cine__ghost { top: auto; bottom: -.08em; }
  .sh-fan { height: 400px; max-width: 520px; margin: 0; }
  .sh-fan__ph { width: 236px; border-radius: 22px; border-width: 7px; top: 20px; }
  .sh-fan__ph--2 { transform: translateX(-118%) translateY(36px) rotate(-8deg); }
  .sh-fan__ph--3 { transform: translateX(18%) translateY(36px) rotate(8deg); }
  .sh-feat__card { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "pic body"; }
  .sh-feat__card:not(.sh-feat__card--tall) .sh-feat__pic { aspect-ratio: auto; min-height: 100%; }
  .sh-feat__body { padding: 28px 30px; align-content: center; }
  .sh-feat__card--tall { grid-template-columns: 280px minmax(0, 1fr); column-gap: 36px; row-gap: 10px; padding: 28px; align-content: center;
    grid-template-areas: "pic k" "pic ep" "pic h" "pic when" "pic log" "pic acts" "pic note"; grid-template-rows: 1fr auto auto auto auto auto 1fr; }
  .sh-feat__card--tall .sh-feat__k { align-self: end; }
  .sh-feat__card--tall .sh-feat__note { align-self: start; }
  .sh-feat__ep { font-size: 80px; }
  /* the reel: a centre spine, files alternating, the date marker across the spine */
  .sh-reel { gap: 36px; }
  .sh-reel::before { left: 50%; }
  .sh-file { width: 50%; padding: 0 44px 0 0; }
  .sh-file--flip { margin-left: 50%; padding: 0 0 0 44px; }
  .sh-file__dot { left: auto; right: -7px; top: 34px; width: 14px; height: 14px; }
  .sh-file--flip .sh-file__dot { right: auto; left: -7px; }
  .sh-file__when { position: absolute; top: 14px; left: calc(100% + 36px); margin: 0; flex-direction: column; gap: 6px; align-items: flex-start; }
  .sh-file--flip .sh-file__when { left: auto; right: calc(100% + 36px); align-items: flex-end; }
  .sh-file__when b { font-size: 64px; }
  .sh-file__card { grid-template-columns: 210px minmax(0, 1fr); }
  .sh-file__body { padding: 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sh-fan__ph, .sh-live { animation: none; } .sh-file__card, .sh-file__pic img, .sh-feat__pic img { transition: none; } }
