/* Streamer After Dark — plain CSS, no build step.
   Edit colors in :root. Layout is documented by section comments. */

:root {
  --bg: #100910;
  --bg-elevated: #1a121c;
  --bg-card: #221826;
  --bg-soft: #2a1f30;
  --text: #f6eef4;
  --muted: #c4b3c0;
  --faint: #8f7b8c;
  --accent: #e23d5c;
  --accent-hover: #ff5a76;
  --gold: #d4a054;
  --gold-dim: #9a7438;
  --line: rgba(212, 160, 84, 0.28);
  --danger: #f3c6ce;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 61, 92, 0.16), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(212, 160, 84, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #1a1208;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 9, 16, 0.86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--gold);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero / marketing copy (always in HTML for crawlers) */

.hero {
  padding: 36px 0 18px;
}

.chip {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--danger);
  background: rgba(226, 61, 92, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 18px;
}

.hero h1,
.legal-page h1,
.about-page h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 24px;
}

.disclosure,
.footer-note {
  color: var(--faint);
  font-size: 0.92rem;
  max-width: 40rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(226, 61, 92, 0.28);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid transparent;
}

.btn-ghost.is-on {
  background: var(--gold);
  color: #1a1208;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Live directory + age gate */

.directory {
  padding: 20px 0 72px;
  scroll-margin-top: 72px;
}

.directory h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.directory-intro {
  color: var(--muted);
  margin: 0 0 20px;
}

.age-gate {
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.age-gate h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.age-gate p {
  margin: 0 0 14px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 14px 16px;
}

.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--gold);
  font-size: 0.85rem;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.helper {
  font-size: 0.88rem;
  color: var(--faint);
  margin: 0;
}

.noscript {
  color: var(--muted);
  padding: 12px 0;
}

#directory-app[hidden],
#age-gate[hidden],
#streamer-detail[hidden],
#directory-browse[hidden] {
  display: none !important;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.filters {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.filters h2,
.filters h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.filters .filter-block {
  margin-bottom: 18px;
}

.filters input,
.filters select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status {
  color: var(--muted);
  min-height: 1.5em;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #0a060b;
  overflow: hidden;
}

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

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.meta {
  color: var(--faint);
  font-size: 0.85rem;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.card-helper {
  font-size: 0.78rem;
  color: var(--faint);
  margin: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.page-btn {
  min-width: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.page-btn.is-current {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}

.detail {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-top {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
}

.detail-top img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #0a060b;
}

.partner-offer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.partner-offer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.partner-offer a {
  display: inline-block;
}

.tag {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 6px 6px 0;
}

/* Legal / about pages */

.legal-page,
.about-page {
  padding: 40px 0 72px;
}

.legal-page .effective,
.about-page .effective {
  color: var(--faint);
  font-size: 0.9rem;
}

.legal-page section,
.about-page section {
  margin: 28px 0;
}

.legal-page h2,
.about-page h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.legal-page ul {
  padding-left: 1.2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 860px) {
  .directory-layout,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .hero {
    padding-top: 24px;
  }

  .site-header {
    position: static;
  }
}
