/* community/community.css — ZeroScope Community Styles */

/* ── HERO & HEADERS ── */
.comm-hero {
  padding: 160px 0 60px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.comm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 50% at 30% 40%, rgba(240,32,46,0.08), transparent 60%),
              radial-gradient(ellipse 50% 40% at 85% 70%, rgba(88,101,242,0.07), transparent 60%);
  pointer-events: none;
}
.comm-hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: flex-end;
}
.page-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.88; letter-spacing: 0.005em;
  font-weight: 400; text-transform: uppercase;
  opacity: 0; animation: fadeUp .7s .2s var(--ease) forwards;
}
.hero-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .7s .35s var(--ease) forwards;
}
.stat-pill {
  background: var(--off-black);
  border: 1px solid var(--border);
  padding: 16px 22px; min-width: 120px;
}
.stat-pill-num {
  font-family: var(--font-display);
  font-size: 1.9rem; color: var(--white);
  line-height: 1; margin-bottom: 4px;
}
.stat-pill-lbl {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ── OFFICIAL HUBS BAR ── */
.official-hubs-wrap {
  padding: 36px 0;
  background: var(--off-black);
  border-bottom: 1px solid var(--border);
}
.official-hubs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.hub-card {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); background: var(--black);
  padding: 22px 26px; text-decoration: none; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.hub-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.hub-card-left { display: flex; align-items: center; gap: 18px; }
.hub-icon-box {
  width: 48px; height: 48px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--off-black); flex-shrink: 0;
}
.hub-tag {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.hub-name {
  font-family: var(--font-display); font-size: 1.35rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
}
.hub-name span.disc { color: #7983f5; }
.hub-name span.robl { color: var(--danger); }
.hub-arrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--off-white); border: 1px solid var(--border); padding: 8px 14px;
  text-transform: uppercase; transition: .2s;
}
.hub-card.discord:hover .hub-arrow { background: #5865F2; border-color: #5865F2; color: #fff; }
.hub-card.roblox:hover  .hub-arrow { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ── USER CONTROLS STRIP ── */
.controls-strip {
  padding: 28px 0 20px;
  background: var(--black);
  position: sticky; top: 74px; z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.controls-flex {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.controls-left { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 520px; }
.search-box { position: relative; width: 100%; }
.search-box input {
  width: 100%; background: var(--off-black); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-body); font-size: 0.85rem;
  padding: 10px 16px 10px 38px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--white); }
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: var(--muted); pointer-events: none;
}
.sort-select {
  background: var(--off-black); border: 1px solid var(--border);
  color: var(--off-white); font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px;
  outline: none; cursor: pointer;
}
.controls-right { display: flex; align-items: center; gap: 10px; }

/* User Profile Pill */
.user-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--off-black); border: 1px solid var(--border);
  padding: 5px 12px 5px 6px; text-decoration: none; transition: border-color .2s;
}
.user-pill:hover { border-color: var(--border-2); }
.user-pill-avatar {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--mid); object-fit: cover; border: 1px solid var(--border);
}
.user-pill-info { display: flex; flex-direction: column; }
.user-pill-name {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--white); display: flex; align-items: center; gap: 6px;
}
.rbx-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(240,32,46,0.15); color: #ff6b76; border: 1px solid rgba(240,32,46,0.35);
  padding: 2px 5px; border-radius: 2px;
}
.user-pill-sub { font-family: var(--font-mono); font-size: 0.56rem; color: var(--muted); }

.btn-action-sm {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--border);
  background: transparent; color: var(--white); cursor: pointer; transition: .2s;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn-action-sm:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-action-primary {
  background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600;
}
.btn-action-primary:hover { background: var(--off-white); }

/* Roblox OAuth Button */
.btn-roblox-oauth {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #333;
  padding: 13px 20px; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-roblox-oauth:hover {
  background: #12141a; border-color: #f0202e;
  box-shadow: 0 0 20px rgba(240,32,46,0.25);
  transform: translateY(-1px);
}
.btn-roblox-oauth svg { width: 20px; height: 20px; fill: #fff; transition: transform .2s; }
.btn-roblox-oauth:hover svg { transform: scale(1.1); fill: #f0202e; }

.auth-divider {
  display: flex; align-items: center; text-align: center;
  margin: 18px 0; color: var(--muted); font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; border-bottom: 1px solid var(--border);
}
.auth-divider span { padding: 0 12px; }

/* ── FOLDER NAVIGATION TABS ── */
.folder-nav {
  padding: 22px 0 10px;
  background: var(--black);
}
.folder-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.folder-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--off-black); border: 1px solid var(--border);
  padding: 11px 18px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--off-white);
  cursor: pointer; white-space: nowrap; transition: all .2s; text-decoration: none;
}
.folder-tab:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.folder-tab.active {
  border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white);
  box-shadow: inset 0 -2px 0 var(--white);
}
.folder-tab-badge {
  font-size: 0.56rem; background: rgba(255,255,255,0.1); padding: 2px 6px;
  border-radius: 8px; color: var(--muted);
}
.folder-tab.active .folder-tab-badge { background: var(--white); color: var(--black); }

/* ── CONTENT GRID & POST CARDS ── */
.content-section {
  padding: 36px 0 100px;
  background: var(--black); min-height: 500px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.post-card {
  background: var(--off-black);
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative; text-decoration: none; color: inherit;
}
.post-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.post-media-wrap {
  position: relative; width: 100%; height: 210px;
  background: var(--dark); overflow: hidden;
}
.post-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.post-card:hover .post-img { transform: scale(1.04); }
.post-cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em;
  text-transform: uppercase; background: rgba(7,8,10,0.88);
  border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  padding: 4px 8px; color: var(--white);
}
.post-body {
  padding: 22px; display: flex; flex-direction: column; flex: 1;
}
.post-title {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1.2; color: var(--white);
  margin-bottom: 10px;
}
.post-desc {
  font-size: 0.84rem; color: var(--off-white); line-height: 1.6;
  margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto;
}
.post-author { display: flex; align-items: center; gap: 8px; }
.author-img {
  width: 26px; height: 26px; border-radius: 3px; background: var(--mid);
  object-fit: cover; border: 1px solid var(--border);
}
.author-name { font-family: var(--font-mono); font-size: 0.66rem; color: var(--white); }
.post-stats {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted);
}
.post-stat-item {
  display: flex; align-items: center; gap: 4px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; border: 1px dashed var(--border);
  background: var(--off-black);
}
.empty-icon { font-size: 2.8rem; margin-bottom: 14px; opacity: 0.6; }
.empty-title {
  font-family: var(--font-display); font-size: 1.5rem;
  text-transform: uppercase; margin-bottom: 6px; color: var(--white);
}
.empty-desc {
  font-size: 0.88rem; color: var(--muted); margin-bottom: 22px;
}

/* ── MODALS ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7,8,10,0.85); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s var(--ease);
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal-card {
  background: var(--off-black); border: 1px solid var(--border-2);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  transform: translateY(16px); transition: transform .25s var(--ease);
}
.modal-backdrop.open .modal-card { transform: translateY(0); }
.modal-head {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--off-black); z-index: 10;
}
.modal-title {
  font-family: var(--font-display); font-size: 1.4rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
}
.modal-close {
  background: transparent; border: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; padding: 2px 6px; transition: color .2s;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 28px; }

/* Modal Form Fields */
.m-field { margin-bottom: 18px; }
.m-label {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.m-input, .m-textarea, .m-select {
  width: 100%; background: var(--black); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-body); font-size: 0.88rem;
  padding: 11px 14px; outline: none; transition: border-color .2s; box-sizing: border-box;
}
.m-input:focus, .m-textarea:focus, .m-select:focus { border-color: var(--white); }
.m-textarea { min-height: 110px; resize: vertical; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.m-tabs {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.m-tab-btn {
  flex: 1; padding: 12px; text-align: center; background: transparent;
  border: none; border-bottom: 2px solid transparent; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: .2s;
}
.m-tab-btn.active { color: var(--white); border-bottom-color: var(--white); }

/* OTP Screen */
.otp-display-box { text-align: center; padding: 16px 0; }
.otp-input-field {
  width: 220px; font-family: var(--font-mono); font-size: 1.8rem;
  letter-spacing: 0.35em; text-align: center; padding: 12px;
  background: var(--black); border: 2px solid var(--border-2);
  color: var(--white); outline: none; margin: 14px auto; display: block;
}
.otp-input-field:focus { border-color: var(--white); }

/* Ghost / Action Buttons */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141720;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background: #1e2230;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-ghost:active {
  transform: translateY(0);
}
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Click Ripple / Pulse Effect */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid var(--accent, #e3ff4a);
  box-shadow: 0 0 12px var(--accent, #e3ff4a);
  animation: clickRippleAnim 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 99999;
}

@keyframes clickRippleAnim {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Toast Notification */
.toast-container {
  position: fixed; bottom: 32px; right: 32px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--off-black); border: 1px solid var(--border-2);
  padding: 12px 20px; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  animation: slideIn .3s var(--ease) forwards;
}
.toast.success { border-left: 4px solid #00e676; }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid #5865F2; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── MULTI-MEDIA POST CARDS & ADAPTIVE COLLAGE GRIDS ── */
.post-media-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--dark);
  overflow: hidden;
}

.post-media-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2px;
  background: #000;
  position: relative;
}

/* 1 Media Layout */
.post-media-grid.media-layout-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* 2 Media Layout - 2 columns */
.post-media-grid.media-layout-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* 3 Media Layout - 1 big left, 2 stacked right */
.post-media-grid.media-layout-3 {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.post-media-grid.media-layout-3 .media-tile:first-child {
  grid-row: 1 / span 2;
}

/* 4 Media Layout - 2x2 Grid */
.post-media-grid.media-layout-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* 5+ Media Layout - 2x2 Grid with +N overlay on 4th tile */
.post-media-grid.media-layout-5plus {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.media-tile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07080a;
}

.media-tile-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}

.post-card:hover .media-tile-content {
  transform: scale(1.05);
}

/* Video badge overlay inside card tile */
.media-video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  pointer-events: none;
}

.media-video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  padding-left: 2px;
  pointer-events: none;
  transition: transform .2s, background .2s;
  z-index: 2;
}

.post-card:hover .media-video-play-btn {
  transform: scale(1.1);
  background: rgba(240, 32, 46, 0.85);
  border-color: #f0202e;
}

/* +N more overlay on 4th tile */
.media-tile-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  z-index: 3;
  transition: background .2s;
}

.post-card:hover .media-tile-more-overlay {
  background: rgba(240, 32, 46, 0.45);
}

.media-tile-more-sub {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-top: 2px;
}

/* Multi-media counter pill on top-right of card */
.post-multi-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  color: #fff;
  border-radius: 3px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── POST DETAIL: CINEMA STAGE & MULTI-MEDIA SHOWCASE ── */
.post-cinema-stage {
  background: #050608;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.cinema-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(12, 14, 18, 0.95);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--off-white);
}

.cinema-view-mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

.cinema-view-mode-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
}

.cinema-view-mode-btn.active, .cinema-view-mode-btn:hover {
  background: var(--white);
  color: var(--black);
  font-weight: 600;
}

.cinema-stage-viewport {
  position: relative;
  width: 100%;
  min-height: 380px;
  max-height: 600px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cinema-stage-viewport img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: opacity .25s ease;
}

.cinema-stage-viewport video {
  width: 100%;
  max-height: 560px;
  background: #000;
  display: block;
  outline: none;
}

/* Floating Navigation Arrows */
.cinema-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .2s var(--ease);
  z-index: 5;
}

.cinema-nav-arrow:hover {
  background: rgba(240, 32, 46, 0.9);
  border-color: #f0202e;
  transform: translateY(-50%) scale(1.1);
}

.cinema-nav-prev { left: 14px; }
.cinema-nav-next { right: 14px; }

/* Filmstrip Thumbnails */
.cinema-filmstrip {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  background: var(--off-black);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.filmstrip-item {
  width: 74px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--border);
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
}

.filmstrip-item:hover {
  opacity: 0.9;
  border-color: var(--border-2);
}

.filmstrip-item.active {
  border-color: var(--neon-green);
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.filmstrip-item img, .filmstrip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filmstrip-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.48rem;
  padding: 1px 4px;
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-mono);
}

/* ── POST DETAIL: MOSAIC / GALLERY VIEW ── */
.post-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--off-black);
}

.mosaic-card {
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
  transition: border-color .2s, transform .2s;
}

.mosaic-card:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.mosaic-card img, .mosaic-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  opacity: 0;
  transition: opacity .2s;
}

.mosaic-card:hover .mosaic-overlay {
  opacity: 1;
}

/* ── FULLSCREEN LIGHTBOX MODAL ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 12, 16, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.lightbox-media-container {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-container img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-media-container video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.lightbox-close-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 10;
}

.lightbox-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

/* ── FILE UPLOAD DROPZONE & ROBLOX ASSET BADGES ── */
.upload-dropzone {
  border: 2px dashed var(--border-2); background: var(--black);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all .25s var(--ease); position: relative;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--white); background: rgba(255,255,255,0.03);
}
.upload-icon-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--off-black);
  border: 1px solid var(--border); display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 12px;
}
.upload-title {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--white);
  text-transform: uppercase; margin-bottom: 4px;
}
.upload-sub {
  font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono);
}
.upload-ext-pills {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px;
}
.upload-ext-pill {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em;
  padding: 2px 7px; background: var(--off-black); border: 1px solid var(--border);
  color: var(--off-white); border-radius: 2px;
}
.upload-ext-pill.rbx { border-color: rgba(240,32,46,0.3); color: #ff6b76; }

.file-preview-card {
  background: var(--black); border: 1px solid var(--border);
  padding: 14px 18px; margin-top: 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
}
.file-preview-left { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.file-preview-icon { font-size: 1.8rem; flex-shrink: 0; }
.file-preview-name {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--white);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-preview-size {
  font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); margin-top: 2px;
}

.upload-progress-wrap {
  width: 100%; height: 4px; background: var(--border); margin-top: 10px; overflow: hidden;
}
.upload-progress-bar {
  height: 100%; width: 0%; background: var(--white); transition: width .2s;
}

/* Post Detail Asset Download Card */
.post-asset-box {
  background: var(--off-black); border: 1px solid rgba(255,255,255,0.15);
  padding: 20px 24px; margin-top: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.post-asset-box.rbxm { border-color: rgba(240,32,46,0.35); background: rgba(240,32,46,0.03); }
.post-asset-box.rbxl { border-color: rgba(0,230,118,0.35); background: rgba(0,230,118,0.03); }

.asset-box-info { display: flex; align-items: center; gap: 14px; }
.asset-box-icon { font-size: 2.2rem; }
.asset-box-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); text-transform: uppercase; }
.asset-box-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-top: 3px; }

.btn-asset-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--black); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; padding: 12px 20px; border: 1px solid var(--white);
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-asset-download:hover { background: var(--off-white); transform: translateY(-1px); }

/* Post Detail External / Project Link Box */
.post-external-link-card {
  background: var(--off-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.ext-link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ext-link-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b8fff;
  font-weight: 700;
}

.ext-link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: all .2s ease;
  word-break: break-all;
}

.ext-link-pill:hover {
  border-color: #7b8fff;
  background: rgba(123, 143, 255, 0.06);
  box-shadow: 0 0 16px rgba(123, 143, 255, 0.15);
  transform: translateY(-1px);
}

.ext-link-pill .ext-link-url {
  color: #ffffff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ext-link-pill .ext-link-action-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b8fff;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(123, 143, 255, 0.12);
  border: 1px solid rgba(123, 143, 255, 0.3);
  padding: 4px 10px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}

.ext-link-pill:hover .ext-link-action-tag {
  background: #7b8fff;
  color: #000;
}

@media (max-width: 860px) {
  .comm-hero-inner { grid-template-columns: 1fr; }
  .official-hubs-grid { grid-template-columns: 1fr; }
  .controls-flex { flex-direction: column; align-items: stretch; }
  .controls-left { max-width: 100%; }
  .m-row { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .cinema-stage-viewport { min-height: 260px; }
  .cinema-nav-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .lightbox-btn { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ── NSFW & 18+ MATURE CONTENT STYLES ── */
.folder-tab.nsfw {
  border-color: rgba(240, 32, 46, 0.35);
  color: #ff5252;
}
.folder-tab.nsfw:hover, .folder-tab.nsfw.active {
  background: rgba(240, 32, 46, 0.14);
  border-color: #f0202e;
  color: #fff;
}
.folder-tab.nsfw .folder-tab-badge {
  background: rgba(240, 32, 46, 0.25);
  color: #ff6b76;
}
.folder-tab.nsfw.active .folder-tab-badge {
  background: #f0202e;
  color: #fff;
}

.post-cat-badge.nsfw {
  background: rgba(240, 32, 46, 0.88);
  border: 1px solid rgba(255, 82, 82, 0.5);
  color: #ffffff;
  font-weight: 700;
}

.is-nsfw-card {
  border-color: rgba(240, 32, 46, 0.25);
}
.is-nsfw-card:hover {
  border-color: rgba(240, 32, 46, 0.6);
  box-shadow: 0 10px 30px rgba(240, 32, 46, 0.12);
}

/* ── 18+ NSFW ADVISORY MODAL ── */
.nsfw-warning-backdrop {
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nsfw-warning-card {
  max-width: 520px;
  background: #0d0f14;
  border: 1px solid rgba(240, 32, 46, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(240, 32, 46, 0.18);
  text-align: center;
  padding: 36px 30px;
}
.nsfw-warning-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.nsfw-warning-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.nsfw-warning-desc {
  font-size: 0.88rem;
  color: var(--off-white);
  line-height: 1.65;
  margin-bottom: 20px;
}
.nsfw-warning-points {
  background: rgba(240, 32, 46, 0.05);
  border: 1px solid rgba(240, 32, 46, 0.2);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.nsfw-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #e0e0e0;
}
.nsfw-point span:first-child {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.nsfw-warning-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nsfw-btn-accept {
  width: 100%;
  justify-content: center;
  background: #f0202e;
  color: #fff;
  border-color: #f0202e;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.82rem;
}
.nsfw-btn-accept:hover {
  background: #d61825;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240, 32, 46, 0.4);
}
.nsfw-btn-decline {
  width: 100%;
  justify-content: center;
  font-size: 0.76rem;
  padding: 12px;
  color: var(--muted);
}
.nsfw-btn-decline:hover {
  color: var(--white);
  border-color: var(--border-2);
}

/* ── MEMBER-ONLY ACCESS GATE CARD ── */
.nsfw-gate-card {
  background: #0d0f14;
  border: 1px solid rgba(240, 32, 46, 0.35);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  max-width: 640px;
  margin: 40px auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}
.nsfw-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.nsfw-gate-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.nsfw-gate-desc {
  font-size: 0.92rem;
  color: var(--off-white);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 24px;
}
.nsfw-gate-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── PENDING REVIEW BANNER ── */
.pending-review-banner {
  background: rgba(255, 170, 51, 0.08);
  border: 1px solid rgba(255, 170, 51, 0.35);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffd27d;
  line-height: 1.5;
}
.pending-review-banner strong {
  color: #ffaa33;
}
