html, body { min-height: 100%; background: #0b0b0d; }
body { --xp-xbook-bottom-nav-core: 64px; --xp-xbook-bottom-nav-height: calc(var(--xp-xbook-bottom-nav-core) + env(safe-area-inset-bottom, 0px)); padding-bottom:var(--xp-xbook-bottom-nav-height); }
.xporn-forum-shell {
  width:min(100%,1120px);min-height:0;
  margin:0 auto;display: grid; place-items: start center;
  padding: 32px max(18px, env(safe-area-inset-right, 0px)) 96px max(18px, env(safe-area-inset-left, 0px));
  color: #fff; overflow-x: clip;
}
.xporn-forum-shell__empty {
  width: 100%; min-height: 320px;
  display: grid; place-items: center; padding: 40px 24px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
  background: radial-gradient(circle at 50% 0, rgba(255,23,68,.2), transparent 55%), #151519;
  text-align: center;
}
.xporn-forum-shell__eyebrow { color:#ff315c; font-size:12px; font-weight:800; letter-spacing:.16em; }
.xporn-forum-shell h1 { margin:10px 0 8px; font-size:clamp(30px,7vw,54px); }
.xporn-forum-shell p { margin:0; color:#c9c9ce; font-size:16px; }
.xporn-forum-ad-gate{position:relative;width:100%;min-height:clamp(520px,72vh,760px);overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:var(--xporn-forum-gate-fallback,#000);color:#fff}.xporn-forum-ad-gate__media,.xporn-forum-ad-gate__shade{position:absolute;inset:0}.xporn-forum-ad-gate__media{background:var(--xporn-forum-gate-fallback,#000)}.xporn-forum-ad-gate__media video,.xporn-forum-ad-gate__media img,.xporn-forum-ad-gate__media-empty{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.xporn-forum-ad-gate__media-empty{background:var(--xporn-forum-gate-fallback,#000)}.xporn-forum-ad-gate__shade{pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.82) 72%,rgba(0,0,0,.94))}.xporn-forum-ad-gate__content{pointer-events:none;position:relative;z-index:1;min-height:inherit;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:40px 24px 48px;text-align:center}.xporn-forum-ad-gate__content p{max-width:620px}.xporn-forum-ad-gate__actions{pointer-events:auto;width:min(100%,760px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:26px}.xporn-forum-ad-gate__actions a{display:flex;min-height:54px;align-items:center;justify-content:center;padding:12px;border:1px solid #ff315c;border-radius:999px;background:linear-gradient(135deg,#ff315c,#a50028);color:#fff;font-weight:900;letter-spacing:.04em;text-decoration:none;box-shadow:0 12px 28px rgba(255,23,68,.24)}.xporn-forum-ad-gate__actions a:hover{background:#ff315c;color:#fff;text-decoration:none}.xporn-forum-ad-gate__actions a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.xporn-forum-nav {
  position:fixed; right:0; bottom:0; left:0; z-index:1000;
  min-height:var(--xp-xbook-bottom-nav-height);
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  padding:4px max(4px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px));
  border-top:1px solid rgba(255,255,255,.1); background:rgba(15,15,18,.97); backdrop-filter:blur(18px);
}
.xporn-forum-nav__item {
  min-width:0; min-height:56px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  border-radius:10px; color:#a9a9b0; font-size:clamp(10px,2.7vw,12px); font-weight:600; line-height:1.1;
  text-decoration:none; white-space:nowrap;
}
.xporn-forum-nav__item svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.xporn-forum-nav__item:hover, .xporn-forum-nav__item.is-active { color:#ff315c; text-decoration:none; }
.xporn-forum-nav__item:focus-visible { outline:2px solid #fff; outline-offset:-3px; }

/* Keep the original XCALL navigation surface; WordPress/global nav styles must not turn it white. */
html body .xporn-forum-nav[data-xbook-bottom-nav] {
  border-top-color:rgba(255,255,255,.1)!important;
  background-color:rgba(15,15,18,.98)!important;
  background-image:none!important;
  color-scheme:dark;
  box-shadow:0 -10px 35px rgba(0,0,0,.35)!important;
}
html body .xporn-forum-nav[data-xbook-bottom-nav] .xporn-forum-nav__item {
  border:0!important;
  background:transparent!important;
  color:#a9a9b0;
}
html body .xporn-forum-nav[data-xbook-bottom-nav] .xporn-forum-nav__item:is(:hover,.is-active) { color:#ff315c; }
@media (max-width:359px) {
  .xporn-forum-nav__item { font-size:10px; letter-spacing:-.02em; }
  .xporn-forum-nav__item svg { width:21px; height:21px; }
}
@media (max-width:767px) {
  /* The forum owns its fixed bottom nav; remove legacy container/footer spacers. */
  .container { min-height:0!important; padding-bottom:0!important; }
  .xhub-site-footer { margin-bottom:0!important; border-top:0!important; }
  html body .xporn-forum-nav[data-xbook-bottom-nav] {
    border-top:0!important;
    box-shadow:none!important;
  }
  .xporn-forum-directory,.xporn-checker-feed,.xporn-checker-write,.xporn-checker-detail,.xporn-forum-profile,.xporn-partnership,.xbook-creator,.xporn-forum-shell { padding-bottom:16px!important; }
  body.xporn-forum-ad-gate-page{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100vh;height:100dvh;overflow:hidden!important;overscroll-behavior:none;padding-top:var(--xp-mobile-header-height)!important;padding-bottom:var(--xp-xbook-bottom-nav-height)!important}
  body.xporn-forum-ad-gate-page .container{height:100%;overflow:hidden}
  body.xporn-forum-ad-gate-page .xporn-forum-shell{box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:12px 16px;overflow:hidden;place-items:stretch}
  .xporn-forum-shell { min-height:calc(100vh - 128px - env(safe-area-inset-bottom,0px)); min-height:calc(100dvh - 128px - env(safe-area-inset-bottom,0px)); padding-top:20px; padding-bottom:90px; }
  .xporn-forum-shell__empty { min-height:0; padding:28px 16px; }
  .xporn-forum-ad-gate{height:100%;min-height:0;border-radius:16px}.xporn-forum-ad-gate__content{box-sizing:border-box;height:100%;min-height:0;padding:24px 14px 30px}.xporn-forum-ad-gate__actions{grid-template-columns:1fr;gap:9px;margin-top:18px}.xporn-forum-ad-gate__actions a{min-height:48px}
}

/* Advertising media fills the complete gate; all copy and actions stay above it. */
.xporn-forum-ad-gate__media img { z-index: 0; }
.xporn-forum-ad-gate__media video { z-index: 1; background: transparent; }
.xporn-forum-ad-gate__shade { z-index: 2; }
.xporn-forum-ad-gate__content { position: absolute; inset: 0; z-index: 3; width: 100%; }

@media (max-width:767px) {
  body.xporn-forum-ad-gate-page .xporn-forum-shell { padding: 0; }
  .xporn-forum-ad-gate { width: 100%; height: 100%; border-radius: 0; }
  .xporn-forum-ad-gate__content { padding: 22px 20px max(28px, env(safe-area-inset-bottom, 0px)); }
}
