/* AdultComixx layout — series shelves, overlay posters, split header */

.header-adult {
  position: sticky;
  top: 0;
  z-index: 1030;
}
.header-adult-top {
  background: #062026;
  border-bottom: 1px solid var(--comix-border);
}
.header-adult-top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.header-adult-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff !important;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.header-adult-search {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin: 0 auto;
}
.header-adult-search .form-control {
  background: #04161a;
  border: 1px solid var(--comix-border);
  color: var(--comix-text);
  border-radius: 999px 0 0 999px;
}
.header-adult-search-btn {
  background: var(--comix-accent);
  color: #04221f;
  border: 0;
  font-weight: 700;
  padding: 0 1.1rem;
  border-radius: 0 999px 999px 0;
}
.header-adult-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-adult-user .header-link {
  color: var(--comix-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 0.35rem;
}
.header-adult-nav {
  background: linear-gradient(90deg, var(--nav-from), var(--nav-to));
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
}
.header-adult-nav-inner {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.4rem 0;
}
.header-adult-nav-inner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-adult-nav-inner a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-adult {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(900px 280px at 12% 0%, rgba(45, 212, 191, 0.18), transparent 60%),
    var(--comix-bg);
}
.hero-adult-copy {
  max-width: 40rem;
  text-align: left;
}
.hero-adult-kicker {
  color: var(--comix-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.hero-adult h1 {
  text-align: left;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero-adult .lead {
  color: var(--comix-text-muted);
  margin-bottom: 1.25rem;
}
.hero-adult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-adult-primary,
.btn-adult-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.btn-adult-primary {
  background: var(--comix-accent);
  color: #04221f !important;
}
.btn-adult-ghost {
  border: 1px solid var(--comix-border);
  color: #fff !important;
}
.btn-adult-ghost:hover { border-color: var(--comix-accent); color: var(--comix-accent) !important; }

.shelf { padding: 1.25rem 0 0.5rem; }
.shelf-head,
.home-adult-genres .shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.shelf-head h2,
.home-adult-genres .shelf-head h2,
.porn-section-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-align: left;
}
.shelf-head a {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.shelf-track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}
.shelf-item {
  flex: 0 0 168px;
  scroll-snap-align: start;
}
.home-adult-genres { padding: 1.5rem 0 2.5rem; }

.cover-tile {
  background: var(--comix-bg-card);
  border: 1px solid var(--comix-border);
  border-radius: 8px;
  overflow: hidden;
}
.cover-tile-media img {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.cover-tile-body {
  position: relative;
  margin: 0;
  padding: 0.7rem 0.7rem 0.8rem;
}
.cover-tile-title { font-size: 0.88rem; }
.cover-tile-stats { color: var(--comix-accent); }

.cat-tile {
  border-radius: 8px;
  position: relative;
}
.cat-tile img { aspect-ratio: 4 / 3; }
.cat-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.75rem 0.7rem;
  background: linear-gradient(transparent, rgba(4, 22, 26, 0.94));
  text-align: left;
}
.cat-tile-title { color: #fff; font-size: 0.95rem; }
.cat-tile-count { color: var(--comix-accent); }

body.page-comix main h1 { text-align: left; }
body.page-comix .book-title,
body.page-comix .book-meta,
body.page-comix .book-categories,
body.page-comix .book-tags,
body.page-comix .book-intro {
  text-align: left;
  max-width: 52rem;
}
.series-nav {
  border-left: 4px solid var(--comix-accent);
  border-radius: 0 10px 10px 0;
}
body.page-comix .list-card { border-radius: 8px; }
body.page-comix footer.footer-comix { border-top: 2px solid var(--comix-accent); }

@media (max-width: 767.98px) {
  .header-adult-top-inner { flex-wrap: wrap; }
  .header-adult-search { display: flex; order: 3; max-width: none; width: 100%; }
  .shelf-item { flex-basis: 140px; }
}
