:root {
  --bg: #07080c;
  --bg-elev: #12141c;
  --bg-soft: #1a1d28;
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --accent: #ff4d8d;
  --accent-2: #7c5cff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 77, 141, 0.14), transparent 50%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.age-wait { overflow: hidden; }
.age-wait .age-veil { display: flex; }
.age-veil {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
  padding: 1.25rem;
  background:
    linear-gradient(160deg, rgba(7, 8, 12, 0.92), rgba(18, 10, 24, 0.94)),
    url("https://img.ourdream.ai/thumb/a687791e-58fa-44da-b356-0c15f7f3a4f8?sig=oDAAduwtGZFb35Lv&exp=83941500") center/cover;
}
.age-panel {
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.age-brand {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #ff9ec2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.age-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd0e0;
  background: rgba(255, 77, 141, 0.2);
  border: 1px solid rgba(255, 77, 141, 0.35);
}
.age-panel h1 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.age-panel p { margin: 0 0 1rem; color: var(--muted); line-height: 1.45; }
.age-actions { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; }
.age-fine { margin-top: 1rem !important; font-size: 0.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff7aa8);
  color: #1a0610;
  border: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-chat {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.28);
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.topnav { display: flex; gap: 0.85rem; margin-right: auto; }
.topnav a { color: var(--muted); font-weight: 550; }
.topnav a:hover, .topnav a.is-active { color: var(--text); }
.top-cta { padding: 0.55rem 0.95rem; font-size: 0.92rem; }
.locale select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
}

.app { width: min(1240px, calc(100% - 2rem)); margin: 1.25rem auto 2.5rem; }
.muted { color: var(--muted); }
.page-title { margin: 0 0 0.35rem; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.page-sub { margin: 0 0 1.1rem; color: var(--muted); }

.filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 0 0 1rem;
}
.filters select, .filters input[type="search"] {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-height: 40px;
}
.filters input[type="search"] { min-width: min(240px, 100%); flex: 1; }

.chip-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.chip, .tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.chip:hover, .tag:hover, .chip.is-on { color: var(--text); border-color: rgba(255, 77, 141, 0.45); }
.chip.is-on { background: rgba(255, 77, 141, 0.16); }
.tag .count { opacity: 0.65; font-size: 0.8em; }

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

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 77, 141, 0.35); }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0c0e14;
  overflow: hidden;
}
.card-poster, .card-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-video { opacity: 0; transition: opacity 0.2s ease; }
.card.is-playing .card-video { opacity: 1; }
.card-body { padding: 0.75rem 0.8rem 0.95rem; }
.card-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  display: flex; gap: 0.35rem; align-items: baseline;
}
.card-age { color: var(--muted); font-weight: 500; font-size: 0.9em; }
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.load-more {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
}
.load-more:hover { border-color: rgba(255, 77, 141, 0.4); }
.load-more:disabled { opacity: 0.6; cursor: wait; }

.back { display: inline-block; margin-bottom: 0.85rem; color: var(--muted); }
.back:hover { color: var(--text); }

.model {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.gallery {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-main {
  aspect-ratio: 3 / 4;
  background: #000;
  position: relative;
}
.gallery-main img, .gallery-main video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.gallery-nav {
  display: flex; gap: 0.5rem; justify-content: space-between; padding: 0.65rem;
}
.gallery-nav button {
  flex: 1;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.4rem;
  padding: 0 0.65rem 0.65rem;
}
.thumbs button {
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 1;
}
.thumbs button.is-on { border-color: var(--accent); }
.thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }

.model-meta h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { color: var(--muted); line-height: 1.45; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.section { margin-top: 1.1rem; }
.section h2 { margin: 0 0 0.45rem; font-size: 1rem; color: var(--muted); font-weight: 650; }
.section pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.45;
  font-family: inherit;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.1rem 0 0.4rem; }
.error { color: #ff8fa8; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
}
.foot-inner { width: min(1240px, 100%); margin: 0 auto; color: var(--muted); }
.foot-inner p { margin: 0 0 0.4rem; }

@media (max-width: 860px) {
  .model { grid-template-columns: 1fr; }
  .top-cta { display: none; }
}
@media (max-width: 560px) {
  .topnav { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
}
