/* DivineRevelations X feed page (xfeed). Every class is prefixed xf- because the
   site menu's expanding_menu.css styles the global classes .active, .content and .menu. */

:root {
  --xf-card: rgba(9, 17, 50, 0.9);
  --xf-card-2: rgba(255, 255, 255, 0.05);
  --xf-line: rgba(255, 255, 255, 0.13);
  --xf-line-2: rgba(255, 255, 255, 0.24);
  --xf-text: #f3f6ff;
  --xf-dim: #b4c0e0;
  --xf-link: #94cbff;
  --xf-gold: #f1c75b;
  --xf-gold-ink: #241a00;
  --xf-radius: 18px;
  --xf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
             "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body.xf-body { background-color: #000080; margin: 0; -webkit-text-size-adjust: 100%; }

.xf, .xf *, .xf *::before, .xf *::after { box-sizing: border-box; }
.xf [hidden] { display: none !important; }

.xf {
  max-width: 760px;
  margin: 10px auto 40px;
  padding: 0 14px;
  color: var(--xf-text);
  font: 400 17px/1.5 var(--xf-font);
  text-align: left;
}
.xf a { color: var(--xf-link); }
.xf button { font-family: inherit; }
.xf :focus-visible { outline: 3px solid var(--xf-gold); outline-offset: 2px; border-radius: 6px; }
.xf-x { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.13em; }
.xf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.xf-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid var(--xf-line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(25, 44, 112, 0.96), rgba(8, 14, 44, 0.96) 70%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.xf-hero::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(241, 199, 91, 0.22), transparent 65%);
  pointer-events: none;
}
.xf-hero-top { position: relative; display: flex; align-items: center; gap: 18px; }
.xf-hero-avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a0505;
  border: 3px solid var(--xf-gold);
  box-shadow: 0 0 0 5px rgba(241, 199, 91, 0.18), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.xf-hero-names { min-width: 0; }
.xf-title {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 5.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.xf-sub { margin: 6px 0 0; color: var(--xf-dim); font-size: 16px; }
.xf-sub strong { color: #fff; }
.xf-bio { position: relative; margin: 16px 0 0; color: #e8edff; font-size: 17px; }
.xf-meta, .xf-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--xf-dim);
  font-size: 15px;
}
.xf-meta a { text-decoration: none; }
.xf-meta a:hover { text-decoration: underline; }
.xf-stats strong { color: #fff; font-weight: 800; }
.xf-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.xf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--xf-line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}
.xf-btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.xf-btn-primary { background: #fff; border-color: #fff; color: #0f1419 !important; }
.xf-btn-primary:hover { background: #e7e9ee; }

/* ---------- search + hashtag chips ---------- */
.xf-tools { margin: 18px 0 0; }
.xf-search { position: relative; }
.xf-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: 0.75; }
.xf-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--xf-line-2);
  border-radius: 999px;
  background: rgba(6, 12, 38, 0.85);
  color: #fff;
  font: inherit;
  font-size: 17px;
}
.xf-search input::placeholder { color: #93a1c7; }
.xf-search input:focus { outline: none; border-color: var(--xf-gold); box-shadow: 0 0 0 3px rgba(241, 199, 91, 0.3); }
.xf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xf-chip {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--xf-line-2);
  border-radius: 999px;
  background: rgba(6, 12, 38, 0.8);
  color: #dfe7ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.xf-chip:hover { background: rgba(255, 255, 255, 0.14); }
.xf-chip.is-on { background: var(--xf-gold); border-color: var(--xf-gold); color: var(--xf-gold-ink); }
.xf-chip-n { margin-left: 2px; font-weight: 500; opacity: 0.72; }
.xf-count { min-height: 1.5em; margin: 14px 6px 10px; color: #dbe3ff; font-size: 14px; text-shadow: 0 1px 4px #000; }

/* ---------- post card ---------- */
.xf-feed { display: flex; flex-direction: column; gap: 14px; }
.xf-post {
  padding: 16px 18px 12px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: var(--xf-card);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  transition: border-color 0.15s;
  scroll-margin-top: 16px;
}
.xf-post:hover { border-color: var(--xf-line-2); }
.xf-post:target { border-color: var(--xf-gold); box-shadow: 0 0 0 3px rgba(241, 199, 91, 0.35); }
.xf-post.is-pinned { border-color: rgba(241, 199, 91, 0.55); }
.xf-flag { margin: 0 0 8px; color: var(--xf-dim); font-size: 13px; font-weight: 700; }
.xf-flag a { color: var(--xf-link); text-decoration: none; }

.xf-post-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 0 10px; }
.xf-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #1a0505; }
.xf-avatar-letter { display: grid; place-items: center; background: #2a4bb0; color: #fff; font-weight: 800; font-size: 18px; }
.xf-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xf-name { color: #fff; font-weight: 800; }
.xf-handle { color: var(--xf-dim); }
.xf-time { color: var(--xf-dim) !important; font-size: 14px; text-decoration: none; white-space: nowrap; }
.xf-time:hover { text-decoration: underline; }
.xf-xlink { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--xf-dim) !important; }
.xf-xlink:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
.xf-xlink .xf-x { width: 17px; height: 17px; }

.xf-text { margin: 10px 0 0; color: var(--xf-text); font-size: 17.5px; line-height: 1.55; overflow-wrap: anywhere; }
.xf-text a { text-decoration: none; }
.xf-text a:hover { text-decoration: underline; }
.xf-tag, .xf-mention { color: #a9d4ff !important; }

/* YouTube: a picture until clicked (fast, private), then the player */
.xf-yt { margin-top: 12px; }
.xf-yt-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--xf-line);
  border-radius: 14px;
  background: #000;
}
.xf-yt-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, filter 0.3s; }
.xf-yt-link:hover img { transform: scale(1.03); filter: brightness(1.08); }
.xf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.xf-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 48px;
  border-radius: 14px;
  background: rgba(230, 0, 0, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, background-color 0.15s;
}
.xf-play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.xf-yt-link:hover .xf-play, .xf-media-item:hover .xf-play { transform: translate(-50%, -50%) scale(1.08); background: #f00; }
.xf-yt-cap { margin: 8px 2px 0; color: #e6ecff; font-size: 15px; font-weight: 600; line-height: 1.35; }
.xf-yt-cap a { color: inherit !important; text-decoration: none; }
.xf-yt-cap a:hover { text-decoration: underline; }
.xf-yt-badge { display: inline-block; padding: 0 6px; border-radius: 4px; background: #e00; color: #fff; font-size: 11px; vertical-align: 2px; }

.xf-card {
  display: flex;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--xf-line);
  border-radius: 14px;
  background: var(--xf-card-2);
  color: inherit !important;
  text-decoration: none;
}
.xf-card:hover { border-color: var(--xf-line-2); background: rgba(255, 255, 255, 0.08); }
.xf-card img { flex: none; width: 128px; object-fit: cover; }
.xf-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 14px; }
.xf-card-domain { color: var(--xf-dim); font-size: 13px; }
.xf-card-title { color: #fff; font-size: 15px; }
.xf-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--xf-dim);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.xf-quote {
  display: block;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--xf-line);
  border-radius: 14px;
  color: inherit !important;
  text-decoration: none;
}
.xf-quote:hover { background: rgba(255, 255, 255, 0.05); }
.xf-quote-who { display: block; color: var(--xf-dim); font-size: 14px; font-weight: 700; }
.xf-quote-text { display: block; margin-top: 2px; font-size: 15px; }

.xf-media { display: grid; gap: 4px; overflow: hidden; margin-top: 12px; border: 1px solid var(--xf-line); border-radius: 14px; }
.xf-media.n2, .xf-media.n3, .xf-media.n4 { grid-template-columns: 1fr 1fr; }
.xf-media-item { position: relative; display: block; background: #000; }
.xf-media img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.xf-media.n2 img, .xf-media.n3 img, .xf-media.n4 img { aspect-ratio: 4 / 3; }

.xf-post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.xf-metrics { display: flex; flex-wrap: wrap; gap: 14px; color: var(--xf-dim); }
.xf-post-actions { display: flex; gap: 8px; margin-left: auto; }
.xf-view, .xf-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--xf-line-2);
  border-radius: 999px;
  background: transparent;
  color: #dfe7ff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.xf-view:hover, .xf-share:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- below the feed ---------- */
.xf-nomatch { margin: 6px 0 0; padding: 18px; border: 1px dashed var(--xf-line-2); border-radius: var(--xf-radius); background: var(--xf-card); text-align: center; }
.xf-linkbtn { padding: 0; border: 0; background: none; color: var(--xf-link); font-size: inherit; text-decoration: underline; cursor: pointer; }
.xf-empty-feed { padding: 24px; border-radius: var(--xf-radius); background: var(--xf-card); text-align: center; }
.xf-more-wrap { display: flex; justify-content: center; margin: 18px 0 0; }
.xf-btn-more { min-width: 240px; border-color: var(--xf-gold); background: rgba(241, 199, 91, 0.16); color: #ffe7a6 !important; }
.xf-btn-more:hover { background: rgba(241, 199, 91, 0.28); }

.xf-live { margin: 22px 0 0; padding: 0 18px; border: 1px solid var(--xf-line); border-radius: var(--xf-radius); background: var(--xf-card); }
.xf-live summary { padding: 14px 0; color: #fff; font-weight: 700; cursor: pointer; }
.xf-live-note { margin: 0 0 12px; color: var(--xf-dim); font-size: 14px; }
#xf-live-slot { padding-bottom: 16px; }

.xf-foot { margin: 26px 0 0; color: #dbe3ff; font-size: 14px; text-align: center; text-shadow: 0 1px 4px #000; }
.xf-foot p { margin: 6px 0; }
.xf-totop { font-weight: 700; }

/* ---------- small screens: the site menu button floats bottom-left, keep clear of it ---------- */
@media (max-width: 978px) {
  .xf { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .xf { padding-left: 8px; padding-right: 8px; font-size: 16px; }
  .xf-hero { padding: 18px 16px; border-radius: 20px; }
  .xf-hero-avatar { width: 72px; height: 72px; }
  .xf-hero-top { gap: 14px; }
  .xf-post { padding: 14px 14px 10px; }
  .xf-post-head { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 0 8px; }
  .xf-avatar { width: 40px; height: 40px; }
  .xf-handle { display: none; }
  .xf-text { font-size: 16.5px; }
  .xf-card img { width: 96px; }
  .xf-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .xf *, .xf *::before, .xf *::after { transition: none !important; }
  .xf-yt-link:hover img { transform: none; }
}

@media print {
  body.xf-body { background: #fff; }
  .xf { color: #000; }
  .xf-hero, .xf-post { background: #fff; box-shadow: none; border-color: #999; }
  .xf-tools, .xf-more-wrap, .xf-live, .xf-post-actions, .xf-play { display: none !important; }
  .xf-title, .xf-name, .xf-text, .xf-bio { color: #000; text-shadow: none; }
}
