:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f4;
  color: #191917;
  --line: #dedbd2;
  --paper: #fffdfa;
  --muted: #68645b;
  --ink: #191917;
  --accent: #8b1f3d;
}

body {
  margin: 0;
  background: #f7f7f4;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 18px;
}

.site-header {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--line);
}

.site-header.compact {
  padding-top: 22px;
}

.breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.1;
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.header-actions a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: 30px 0 8px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.section-heading p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.tag-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.tag-label {
  font-weight: 700;
}

.tag-count,
.tag-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tag-total {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.actress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.actress-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.actress-thumb {
  display: block;
  align-self: start;
  aspect-ratio: 3 / 2;
  margin: 12px 0 0 12px;
  background: #ece8df;
}

.actress-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.actress-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.actress-body .item-tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
}

.item-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.item-image {
  display: block;
  aspect-ratio: 3 / 2;
  background: #ece8df;
}

.item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.item-body {
  padding: 12px;
}

.item-meta {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.meta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.score-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #d7b9c2;
  border-radius: 999px;
  color: var(--accent);
  background: #fff5f8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.item-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.item-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.item-summary {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-tags a {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 22px 0 8px;
}

.detail-media {
  display: grid;
  gap: 14px;
}

.detail-image,
.detail-video {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #ece8df;
}

.video-shell {
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.26));
  pointer-events: none;
}

.video-shell .detail-video {
  height: 100%;
  object-fit: cover;
}

.detail-image {
  max-height: 720px;
  object-fit: contain;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.video-play-overlay span {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 10px 32px rgb(0 0 0 / 0.28);
  position: relative;
}

.video-play-overlay span::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--accent);
}

.video-shell.is-playing .video-play-overlay,
.video-shell.is-failed .video-play-overlay {
  display: none;
}

.video-shell.is-playing::after,
.video-shell.is-failed::after {
  display: none;
}

.sample-movie-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.sample-movie-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.sample-movie-panel a {
  display: inline-block;
  width: fit-content;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.detail-panel {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.detail-panel h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.editorial-box {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.editorial-box p {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.editorial-box .x-hook {
  color: var(--accent);
  font-weight: 700;
}

.editorial-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.fact-list {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt,
.fact-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  font-weight: 700;
}

.reason-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.reason-cloud span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 11px;
}

.large-tags a {
  padding: 5px 10px;
  font-size: 13px;
}

.fanza-link {
  display: block;
  margin-top: 18px;
  padding: 11px 14px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.ad-disclosure {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 15, 13, 0.82);
}

.age-gate[hidden] {
  display: none;
}

.age-gate-dialog {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #d8c9bd;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.age-gate-dialog h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.age-gate-dialog p {
  color: var(--muted);
  line-height: 1.75;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.age-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.age-primary {
  background: var(--ink);
  color: #fff;
}

.age-secondary {
  background: #fff;
  color: var(--ink);
}

.has-age-gate body {
  overflow: hidden;
}

.legal-section {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
}

.legal-section h2 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.search-panel {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-row input,
.search-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  font: inherit;
}

.search-row input {
  padding: 0 12px;
  background: #fff;
}

.search-row button {
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 46px 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.compact-ranking .ranking-item {
  grid-template-columns: 38px 110px minmax(0, 1fr);
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d7b9c2;
  color: var(--accent);
  background: #fff5f8;
  font-weight: 800;
}

.rank-image {
  display: block;
  aspect-ratio: 3 / 2;
  background: #ece8df;
}

.rank-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.rank-body h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.rank-body h3 a,
.text-link {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .page {
    padding: 22px 12px;
  }

  h1 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .ranking-item,
  .compact-ranking .ranking-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .rank-image {
    grid-column: 1 / -1;
  }

  .actress-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}
