:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-2: #1a1a24;
  --surface-3: #22222e;
  --line: #24243a;
  --line-strong: #34344a;
  --ink: #f1f0f5;
  --muted: #9896a8;
  --faint: #66647a;
  --primary: #6e64c4;
  --primary-hover: #7d73d3;
  --primary-ink: #f4f2ff;
  --primary-soft: rgba(110, 100, 196, .16);
  --ok: #22c55e;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --maxw: 1240px;
  --bar-h: 60px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.45; min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }

/* ---------- 18+ gate ---------- */
body.gated { overflow: hidden; }
body.gated > :not(.gate) { visibility: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(900px 500px at 50% 0%, rgba(110,100,196,.22), transparent 70%), var(--bg);
}
body.gated .gate { display: flex; }
.gate-card {
  width: 100%; max-width: 420px; text-align: center; padding: 28px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.gate-logo { width: 68px; height: 68px; }
.gate-age {
  font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 3px 12px; border-radius: 999px;
  color: var(--primary-ink); background: var(--primary-soft); border: 1px solid rgba(110,100,196,.45);
}
.gate h1 { margin: 2px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.gate p { margin: 0; color: var(--muted); text-wrap: pretty; }
.gate .gate-small { font-size: 13px; color: var(--faint); }
.gate .btn { width: 100%; }
.gate .btn-main { margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-s { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-main { background: var(--primary); color: var(--primary-ink); }
.btn-main:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--muted); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.16); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, calc((100vw - var(--maxw)) / 2 + 16px));
  background: rgba(10,10,15,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -.01em; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-weight: 700; color: #a79ff0; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--primary); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.top-nav { margin-left: auto; display: flex; gap: 8px; }

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 28px; }

/* ---------- list page ---------- */
.hero { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.count { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.18); flex: none; }

.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.on { background: var(--primary-soft); border-color: rgba(110,100,196,.6); color: var(--primary-ink); }
.chip small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip.on small { color: #b9b3ee; }
.chips .sep { flex: none; width: 1px; margin: 6px 4px; background: var(--line-strong); }
.chips-label { flex: none; align-self: center; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-right: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); text-decoration: none; aspect-ratio: 4 / 3; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); z-index: 1; }
.badge { position: absolute; z-index: 2; top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.badge.l { left: 8px; }
.badge.r { right: 8px; border: 1px solid rgba(255,255,255,.24); }
.badge .dot { width: 7px; height: 7px; box-shadow: none; }
.tile-info { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 9px; color: #fff; }
.tile-name { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 15px; }
.tile-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-name .age { font-weight: 400; opacity: .85; }
.tile-name .flag { margin-left: auto; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.tile-sub { font-size: 12.5px; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.more { display: flex; justify-content: center; margin-top: 20px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.empty .btn { margin-top: 16px; }
.skeleton { aspect-ratio: 4 / 3; border-radius: var(--r-m); background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- room page ---------- */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.stage { position: relative; border-radius: var(--r-l); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.stage.full { aspect-ratio: auto; height: 560px; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-top { position: absolute; z-index: 3; left: 12px; top: 12px; display: flex; gap: 8px; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: #fff; text-decoration: none; background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
button.pill:hover, a.pill:hover { background: rgba(0,0,0,.55); }
.stage-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 56px 24px 24px; background: radial-gradient(600px 300px at 50% 20%, rgba(110,100,196,.25), transparent 70%), var(--surface); }
.stage-card svg { width: 72px; height: 72px; }
.stage-card h2 { margin: 0; font-size: 20px; }
.stage-card p { margin: 0; color: var(--muted); max-width: 36ch; }

.side { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.who h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.who p { margin: 1px 0 0; color: var(--muted); font-size: 14px; }
.subject { margin: 12px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--surface-2); border-radius: var(--r-s); padding: 8px 10px; }
.stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.cta { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cta-note { font-size: 12.5px; color: var(--faint); text-align: center; margin: 2px 0 0; }
.cta-note a { color: var(--muted); }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cta-row .btn { padding: 0 10px; }
.model-card { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-l); border: 1px solid var(--line);
  background: radial-gradient(500px 200px at 0% 0%, rgba(110,100,196,.2), transparent 70%), var(--surface); }
.model-card svg { width: 54px; height: 54px; flex: none; }
.model-card div { flex: 1; min-width: 0; }
.model-card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.model-card p { margin: 3px 0 0; color: var(--muted); text-wrap: pretty; }
.model-card .btn { flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .chip { height: 30px; padding: 0 11px; font-size: 13px; }
.card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 500; }
.section-title { margin: 26px 0 12px; font-size: 18px; font-weight: 600; }

/* ---------- footer + app bar ---------- */
.foot { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.foot p { margin: 0 0 6px; max-width: 90ch; }
.foot a { color: var(--muted); }
.foot b { color: var(--muted); font-weight: 600; }

.appbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .top { padding: 8px 12px; gap: 10px; }
  .brand span { display: none; }
  .top-nav { display: none; }
  .search { max-width: none; }
  main { padding: 14px 12px 22px; }
  .chips { margin: 0 -12px; padding-inline: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { aspect-ratio: 3 / 4; }
  .skeleton { aspect-ratio: 3 / 4; }
  .room { grid-template-columns: 1fr; gap: 12px; }
  .model-card { flex-wrap: wrap; }
  .model-card div { flex-basis: 60%; }
  .model-card .btn { width: 100%; }
  .stage { border-radius: var(--r-m); margin: 0 -4px; }
  .stage.full { height: 78dvh; }
  .appbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14,14,19,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .appbar a, .appbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: var(--faint); font-size: 11px; text-decoration: none; }
  .appbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .appbar .on { color: #a79ff0; }
}
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .tile img { transition: none; } }

/* "No nudity" switch: on by default, the first chip of the filters */
.chip.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chip.switch i { position: relative; flex: none; width: 30px; height: 17px; border-radius: 999px; background: #3a3a52; transition: background .15s; }
.chip.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .15s; }
.chip.switch.on i { background: var(--ok); }
.chip.switch.on i::after { left: 15px; }

/* the "other work online" picture strip: 728x90, on phones 320x100 */
.jobs-strip { display: flex; justify-content: center; padding: 12px 12px 0; }
.jobs-strip:empty { display: none; }
.jobs-strip-bottom { padding: 0 12px 16px; }
.jobs-strip a { display: block; width: min(728px, 100%); aspect-ratio: 728 / 90; border-radius: 10px; overflow: hidden; }
.jobs-strip img { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .jobs-strip a { width: min(320px, 100%); aspect-ratio: 320 / 100; } }
