/* HentaiCreampied — dense adult gallery (nhentai / tube inspired) */
:root {
  --bg: #0b0b0f;
  --bg2: #121218;
  --panel: #16161f;
  --border: #2a2a38;
  --text: #f2f2f7;
  --muted: #9b9bb0;
  --accent: #ff4d6d;
  --accent2: #c9184a;
  --chip: #1e1e2a;
  --ok: #2dd4bf;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: #ff8fa3; text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(var(--max), 94vw); margin: 0 auto; }
.muted { color: var(--muted); }
.pill {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 4px 10px;
}

/* Age gate */
#ageGate {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#ageGate.hidden { display: none; }
.gate-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 440px;
  text-align: center;
}
.gate-card h1 { margin: 0 0 8px; font-size: 1.35rem; }
.gate-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  padding: 10px 16px; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  background: var(--chip); color: var(--text);
}
.btn:hover { border-color: var(--accent); }
.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

/* Nav */
.nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,15,0.92);
  backdrop-filter: blur(12px);
}
.logo {
  font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em;
  color: #fff !important;
}
.logo:hover { color: var(--accent) !important; }
.nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.nav a:hover, .nav a.active { color: #fff; }
.nav .nav-cat { display: none; }
@media (min-width: 900px) {
  .nav .nav-cat { display: inline; }
}
.nav .spacer { flex: 1; min-width: 8px; }

/* Hero */
.hero {
  padding: 36px 0 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: end;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero .lead { color: var(--muted); margin: 0 0 16px; max-width: 36em; }
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 10px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Category chips — tube style */
.cat-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px 0 20px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.88rem; font-weight: 700;
}
.cat-chip:hover { border-color: var(--accent); color: #fff; }
.cat-chip .cat-n {
  font-size: 11px; color: var(--muted); font-weight: 600;
  background: var(--bg); padding: 2px 7px; border-radius: 999px;
}

/* Sections */
section { padding: 24px 0 32px; }
section h2 { margin: 0 0 6px; font-size: 1.25rem; }
section .sub { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; }
h1.page-h1 { font-size: 1.5rem; margin: 20px 0 8px; }

/* Gallery grid — denser like popular boards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.g-item {
  position: relative;
  display: block;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  cursor: pointer;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 8px 8px;
  font-size: 11px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  color: #eee;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-item .tag-pill {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  background: rgba(255,77,109,0.9); color: #fff;
  padding: 2px 6px; border-radius: 4px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

/* Category cards index */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
  color: inherit;
}
.cat-card:hover { border-color: var(--accent); }
.cat-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.cat-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* Ads */
.ad-slot {
  margin: 16px 0;
  min-height: 70px;
  border: 1px dashed #333;
  border-radius: 8px;
  color: #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: #0e0e14;
}
.ad-slot.leader { min-height: 90px; }

/* Footer */
footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
footer a { display: inline-block; color: var(--muted); margin: 2px 0; }
.legal-line { color: var(--muted); font-size: 0.8rem; line-height: 1.5; margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
.lightbox img {
  max-width: 96vw; max-height: 92vh;
  border-radius: 8px; object-fit: contain;
}
.lightbox .lb-x {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: none; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* SEO article block on category pages */
.seo-block {
  margin-top: 28px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}
.seo-block h2 { color: var(--text); font-size: 1.05rem; margin: 0 0 8px; }
.seo-block p { margin: 0 0 10px; }
.seo-block p:last-child { margin: 0; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.feature h3 { margin: 0 0 4px; font-size: 0.95rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.85rem; }
