:root {
  --bg: #15171c; --panel: #1e2128; --line: #2e323c; --text: #e7e9ee; --muted: #9aa0ad;
  --accent: #e8466b; --accent-ink: #fff; --price: #ffb347;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.7 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* age gate: shown until the head script adds .age-ok */
#age-gate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 11, 14, .97); padding: 16px; }
.age-ok #age-gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
.age-box { max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 24px; text-align: center; }
.age-mark { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--accent);
  font: 700 26px/56px sans-serif; color: var(--accent); }
.age-box h2 { margin: 0 0 8px; border: 0; padding: 0; }
.age-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.age-actions button, .age-actions a { padding: 10px 22px; border-radius: 8px; font-size: 15px; cursor: pointer;
  text-decoration: none; border: 1px solid var(--line); }
#age-yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#age-no { background: transparent; color: var(--muted); }

.pr-bar { margin: 0; padding: 6px 16px; font-size: 12px; color: var(--muted); background: #0f1014;
  border-bottom: 1px solid var(--line); text-align: center; }
.site-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
  padding: 14px 16px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--accent); }
.tagline { color: var(--muted); font-size: 13px; }
.header-search { margin-left: auto; display: flex; gap: 6px; flex: 1 1 260px; max-width: 420px; }
input, select, button { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; }
.header-search input { flex: 1; min-width: 0; }
button { cursor: pointer; }

.hero { padding: 24px 0 8px; }
.hero h1 { margin: 0; font-size: 26px; }
h2 { font-size: 18px; border-left: 4px solid var(--accent); padding-left: 10px; margin: 32px 0 14px; }
.lead { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card a { text-decoration: none; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #2a2d36; }
.card h3 { font-size: 13px; line-height: 1.5; margin: 8px 10px 4px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; color: var(--muted); margin: 0 10px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.card .price { font-size: 13px; color: var(--price); font-weight: 700; margin: 2px 10px 10px; }

.tag { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.tag:hover { border-color: var(--accent); }
.buy { display: inline-block; padding: 12px 26px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.center { text-align: center; margin: 32px 0; }

.work h1 { font-size: 22px; line-height: 1.5; }
.work-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.package { width: 100%; border-radius: 8px; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 8em; white-space: nowrap; }
.spec .tag { margin-bottom: 4px; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.samples img { border-radius: 6px; }
.movie { position: relative; aspect-ratio: 16 / 10; }
.movie iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 10px;
  margin-top: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input { flex: 1 1 240px; }
.term-list { list-style: none; padding: 0; columns: 3 220px; }
.term-list li { padding: 3px 0; }
.term-list span { color: var(--muted); font-size: 12px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.pager a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager .current { background: var(--accent); border-color: var(--accent); }
.prose { max-width: 760px; }
.ad-slot { max-width: 1200px; margin: 16px auto; padding: 0 16px; text-align: center; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 16px; text-align: center;
  font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.credit { font-size: 12px; }

@media (max-width: 720px) {
  .work-top { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .header-search { margin-left: 0; max-width: none; }
}
