/* ========================================
   TPSG Redesign — Base Styles
   Mood: CRT Arcade Glow + PS1 Low-Poly mix
   Clean modern structure + heavy retro soul
   ======================================== */

:root {
  /* Core palette — CRT + PS1 hybrid */
  --bg-deep: #0a0b0f;
  --bg-panel: #12141c;
  --bg-card: #1a1d28;
  --border: #2a2e3d;

  --text: #e8e6f0;
  --text-muted: #9b9aad;
  --text-dim: #6b6a7a;

  /* Neon / accent */
  --cyan: #00f0ff;
  --magenta: #ff2d95;
  --yellow: #ffe566;
  --green: #5cff9d;

  /* Soft pastels for PS1 influence */
  --pastel-mint: #7dffc3;
  --pastel-pink: #ff9ec7;
  --pastel-lilac: #c9b6ff;

  --radius: 6px;
  --header-height: 72px;
  --max-width: 1120px;

  --font-pixel: 'Press Start 2P', system-ui, monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========== CRT Overlay ========== */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.45;
  mix-blend-mode: multiply;
}

/* Soft vignette */
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.35));
}

.logo-text {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-account {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  transition: all 0.2s;
}

.btn-account:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-title .pixel {
  color: var(--text);
}

.hero-title .glow {
  color: var(--cyan);
  text-shadow:
    0 0 12px rgba(0, 240, 255, 0.7),
    0 0 30px rgba(0, 240, 255, 0.35);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  background: #33f4ff;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.pixel-small {
  color: var(--cyan);
  font-size: 0.85em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  transition: text-shadow 0.2s;
}

.card-link:hover {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Quick links */
.hub-preview {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.25rem;
  transition: all 0.2s;
}

.quick-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.quick-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.quick-card strong {
  font-size: 1.05rem;
  color: var(--text);
}

.quick-card span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.25));
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom p + p {
  margin-top: 0.35rem;
}

.footer-note {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 11, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
    var(--bg-deep);
}

.page-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.page-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== GAMING HUB ========== */
.hub-filters-wrap {
  padding-top: 2.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.game-art {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  background: linear-gradient(160deg, #1c2233 0%, #0e1016 100%);
}

.game-art-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg-deep);
  background: var(--cyan);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.art-thrack { background: linear-gradient(160deg, #3d2a4a 0%, #1a1020 55%, #0e1016 100%); }
.art-cyber { background: linear-gradient(160deg, #123a3a 0%, #0d1a22 55%, #0e1016 100%); }
.art-tank { background: linear-gradient(160deg, #3a2a12 0%, #1a140c 55%, #0e1016 100%); }
.art-zombie { background: linear-gradient(160deg, #2a3a12 0%, #12180c 55%, #0e1016 100%); }
.art-asher { background: linear-gradient(160deg, #1a2a4a 0%, #0c1422 55%, #0e1016 100%); }
.art-soon { background: linear-gradient(160deg, #1a1a28 0%, #101018 100%); }

.game-body {
  padding: 1.4rem 1.5rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tag-muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.game-body h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.game-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.game-platforms {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.game-actions .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .game-card {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 120px;
  }
}

/* ========== SHOP ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.product-art {
  height: 120px;
  background: linear-gradient(160deg, #1c2233 0%, #0e1016 100%);
}

.art-disc {
  background: linear-gradient(160deg, #1a3a4a 0%, #0c1418 55%, #0e1016 100%);
}

.art-merch {
  background: linear-gradient(160deg, #2a1a3a 0%, #141018 55%, #0e1016 100%);
}

.product-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 1.1rem;
  margin: 0.6rem 0 0.4rem;
}

.product-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  flex: 1;
}

.product-price {
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.product-btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.shop-note {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ========== INDIVIDUAL GAME PAGE ========== */
.game-hero-art {
  height: 180px;
  border-radius: 10px;
  margin: 0 auto 1.75rem;
  max-width: 720px;
  border: 1px solid var(--border);
}

.game-status {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.panel h2 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.panel p + p {
  margin-top: 0.75rem;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.side-stack {
  display: grid;
  gap: 1.25rem;
}

.side-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.side-row:last-child {
  border-bottom: none;
}

.side-row span:first-child {
  color: var(--text-dim);
}

.side-actions {
  display: grid;
  gap: 0.65rem;
}

.side-actions .btn {
  justify-content: center;
}

@media (max-width: 800px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

.about-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* ========== ONLINE / ACCOUNT / FORUM ========== */
.board {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.4fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  align-items: center;
}

.board-head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.board-row {
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.board-row:hover {
  background: rgba(0, 240, 255, 0.04);
}

.rank {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--cyan);
}

.score {
  color: var(--cyan);
  font-weight: 700;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 880px;
}

.auth-form h2 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.auth-form .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.forum-list {
  display: grid;
  gap: 0.75rem;
}

.forum-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.3rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.forum-cat:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

.forum-cat strong {
  display: block;
  margin-bottom: 0.2rem;
}

.forum-cat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.forum-cat em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

@media (max-width: 720px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .board-head,
  .board-row {
    grid-template-columns: 48px 1fr 1fr;
  }

  .board-head span:nth-child(3),
  .board-row span:nth-child(3) {
    display: none;
  }
}

.admin-thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.admin-gallery figure {
  margin: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.admin-gallery img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-gallery figcaption {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0.35rem 0;
}

.admin-gallery .btn,
.auth-form .admin-gallery .btn {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.hidden-form {
  display: none;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sort-row input {
  width: 70px;
  margin: 0;
}

.sort-row .btn {
  width: auto;
  padding: 0.35rem 0.6rem;
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-heading {
  margin: 1.5rem 0 0.85rem;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.gallery-item span {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

a.filter-btn {
  text-decoration: none;
}

.coming-soon {
  pointer-events: none;
  opacity: 0.7;
  cursor: default;
}

.avatar,
.avatar-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  font-weight: 700;
  color: #0a0b0f;
  flex-shrink: 0;
}

.post-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.post-body {
  margin-top: 1rem;
}

.post-embed-img,
.forum-video {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.6rem 0;
  display: block;
}

.avatar-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
}

.avatar-pick input {
  position: absolute;
  opacity: 0;
}

.avatar-pick input:checked + .avatar {
  box-shadow: 0 0 0 3px var(--cyan);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.post-actions{margin-top:.85rem;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;}

.quoted-post{border-left:3px solid var(--cyan);padding:.6rem .9rem;margin:0.8rem 0;background:rgba(0,240,255,.05);border-radius:0 8px 8px 0;}
.thread-embed,.file-link{display:inline-block;margin:.35rem 0;}
