:root {
  --bg: #0f0f12;
  --surface: #1a1a20;
  --surface-2: #24242c;
  --text: #e8e8ec;
  --muted: #9a9aa5;
  --accent: #e0245e;
  --accent-hover: #c01e50;
  --border: #2e2e38;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* age gate */
#age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
/* hidden属性を確実に優先（IDセレクタより高詳細度で display:none を効かせる） */
#age-gate[hidden] { display: none; }
.age-box {
  background: var(--surface); padding: 2rem; border-radius: 12px;
  max-width: 420px; text-align: center; border: 1px solid var(--border);
}
.age-box h1 { margin-top: 0; color: var(--accent); }
.age-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }

/* header/footer */
.site-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 10;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.site-footer { text-align: center; color: var(--muted); padding: 2rem; font-size: .85rem; }
.page-title { font-size: 1.4rem; margin: 0 0 1.25rem; }
.empty { color: var(--muted); }

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.card { background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.thumb { aspect-ratio: 16/9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; background: var(--surface-2); }
.card-title { padding: .6rem .75rem; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* video page */
.video-page { max-width: 900px; margin: 0 auto; }
.video-title { font-size: 1.3rem; }
.player { background: #000; border-radius: 10px; overflow: hidden; }
.player video { width: 100%; display: block; max-height: 70vh; }
.embed-wrap { position: relative; padding-top: 56.25%; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.fanza-cta { display: block; position: relative; text-align: center; }
.fanza-cta img { width: 100%; display: block; }
.fanza-cta span { display: block; padding: 1rem; background: var(--accent); font-weight: 700; }
.description { margin-top: 1rem; color: var(--text); }
.tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: var(--surface-2); padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; color: var(--muted); }

/* pager & buttons */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-link { padding: .4rem .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.page-link.active { background: var(--accent); border-color: var(--accent); }
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); cursor: pointer; font-size: .95rem; text-align: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
