/* CamLily — single stylesheet, dark theme, mobile-first, no external assets. */
:root {
  --bg: #120e18;
  --bg-soft: #1b1526;
  --card: #201830;
  --border: #33254a;
  --text: #f2ecf9;
  --muted: #b3a6c9;
  --accent: #e75480;
  --accent-2: #9b5de5;
  --live: #ff3b5c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: 0.02em; }
.logo span, .footer-brand span, .age-gate-logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1280px; margin: 0 auto; padding: 1rem; }
.page-title { font-size: 1.4rem; margin: 0.5rem 0 1rem; }
.empty { color: var(--muted); }

/* Grid + cards */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 0.6rem 0.75rem 0.8rem; }
.card-name { color: var(--text); font-weight: 700; display: inline-block; margin-bottom: 0.35rem; }
.card-name:hover { color: var(--accent); text-decoration: none; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.card-viewers {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  background: rgba(0,0,0,0.72); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 0.15rem 0.45rem; border-radius: 999px;
}
.badge {
  position: absolute; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem; border-radius: 6px; color: #fff;
}
.badge-live { left: 0.5rem; top: 0.5rem; background: var(--live); }
.badge-hd { right: 0.5rem; top: 0.5rem; background: rgba(0,0,0,0.72); }
.tag {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
  padding: 0.1rem 0.45rem; border-radius: 999px;
}
.tag:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.tag::before { content: "#"; opacity: 0.6; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; border-radius: 10px;
  padding: 0.65rem 1.2rem; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); text-decoration: none; }

/* Model page */
.model { max-width: 860px; margin: 0 auto; }
.model-media { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.model-media img { width: 100%; height: auto; display: block; }
.model-media .badge-live { left: 0.75rem; top: 0.75rem; }
.btn-watch { display: block; margin: 1rem 0; font-size: 1.15rem; padding: 0.9rem 1.2rem; }
.model-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem; margin: 1rem 0;
}
.model-facts div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.75rem; }
.model-facts dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.model-facts dd { margin: 0.15rem 0 0; font-weight: 700; }
.model-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.model-note { color: var(--muted); font-size: 0.9rem; }

/* Static prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose p { color: #ddd3ee; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding: 1.25rem 1rem 2rem; margin-top: 2rem; text-align: center;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; margin: 0 0 0.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; margin-bottom: 0.75rem; }
.site-footer nav a { color: var(--muted); font-size: 0.9rem; }
.footer-fine { color: var(--muted); font-size: 0.8rem; max-width: 640px; margin: 0 auto; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 5, 14, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.age-gate[hidden] { display: none; }
.age-gate-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
  max-width: 420px; width: 100%; padding: 1.75rem; text-align: center;
}
.age-gate-logo { font-size: 2rem; font-weight: 800; }
.age-gate-title { font-size: 1.2rem; font-weight: 800; margin: 0.5rem 0; }
.age-gate-box p { color: var(--muted); }
.age-gate-box .btn { display: block; width: 100%; margin-top: 0.6rem; }
.age-gate-fine { font-size: 0.78rem; }

/* --- step 6: player embed + subjects --- */
.card-subject{margin:4px 0 2px;font-size:.8rem;line-height:1.35;opacity:.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.model-subject{font-size:1rem;line-height:1.45;opacity:.85;margin:10px 0 4px}
.model-embed{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
.model-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* --- step 7: SEO layer --- */
.crumbs{margin:0.25rem 0 0.75rem;font-size:.85rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--text)}
.badge-offline{left:.5rem;top:.5rem;background:rgba(0,0,0,.72)}
.model-media .badge-offline{left:.75rem;top:.75rem}
.section-title{font-size:1.15rem;margin:1.75rem 0 .9rem}
.intro{margin-bottom:1rem}
.home-about{margin-top:2rem}
.faq{max-width:760px;margin-top:1.5rem}
.faq details{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.7rem 1rem;margin-bottom:.6rem}
.faq summary{font-weight:700;cursor:pointer}
.faq details p{color:#ddd3ee;margin:.5rem 0 .2rem}
.offline-note{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.8rem 1rem;color:#ddd3ee}
.cat-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));margin:1rem 0}
.cat-card{display:block;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1rem;color:var(--text)}
.cat-card:hover{border-color:var(--accent);text-decoration:none}
.cat-card strong{display:block;font-size:1.05rem;margin-bottom:.25rem}
.cat-card span{color:var(--muted);font-size:.88rem}
.tag-cloud{display:flex;flex-wrap:wrap;gap:.45rem}
.tag-big{font-size:.85rem;padding:.25rem .6rem}

/* --- step 8: mobile-first swipe feed (homepage) --- */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.feed{max-width:560px;margin:0 auto}
.feed-card{position:relative;height:100vh;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#000}
@media (min-width:700px){.feed-card{border-left:1px solid var(--border);border-right:1px solid var(--border)}}
.feed-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(24px) brightness(.55);transform:scale(1.25)}
.feed-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.feed-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,6,16,.88) 0%,rgba(10,6,16,.25) 34%,rgba(10,6,16,0) 55%)}
.feed-info{position:absolute;left:0;right:0;bottom:0;padding:1rem 1rem 1.4rem}
.feed-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.feed-meta .badge{position:static}
.feed-viewers{font-size:.85rem;font-weight:600;color:#fff;background:rgba(0,0,0,.45);padding:.15rem .55rem;border-radius:999px}
.feed-name{display:inline-block;color:#fff;font-size:1.45rem;font-weight:800;line-height:1.2;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.feed-name:hover{color:#fff;text-decoration:none}
.feed-subject{margin:.35rem 0 .2rem;font-size:.92rem;line-height:1.4;color:#e9e2f5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feed-info .card-tags{margin:.45rem 0 .8rem}
.feed-actions{display:flex;gap:.6rem}
.feed-watch{flex:1;text-align:center;font-size:1.05rem;font-weight:700;padding:.85rem 1rem;border-radius:12px}
.feed-profile{text-align:center;padding:.85rem 1.1rem;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.35)}
.feed-end{display:flex;align-items:center;justify-content:center;background:var(--bg-soft);text-align:center}
.feed-end-inner{padding:2rem 1.2rem;display:flex;flex-direction:column;gap:.6rem;max-width:320px;width:100%}
.feed-end-title{font-size:1.3rem;font-weight:800;margin:0}
.feed-end-sub{color:var(--muted);margin:0 0 .6rem}
.feed-after{max-width:760px;margin:0 auto;padding:1.2rem 1rem 2rem}
