/* JTG — dark, fast, zero webfonts (perf is an SEO feature). Palette:
   bg #0D0E12 · surface #171922 · line #262936 · text #EAE8E4 · muted #9B98A3 · accent #E8A33D */
:root {
  --bg: #0D0E12; --surface: #171922; --line: #262936;
  --text: #EAE8E4; --muted: #9B98A3; --accent: #E8A33D; --accent-hi: #F5BE63;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0.75rem 0 0.35rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; color: var(--text); }
h2::before { content: "— "; color: var(--accent); } /* signature: amber dash section marks */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

/* Header */
.site-header {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 14px 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--text);
  border-bottom: 3px solid var(--accent); line-height: 1.1; padding-bottom: 3px;
}
.brand:hover { color: var(--accent-hi); }
/* Explicit box: the global `img { height: auto }` would otherwise let the SVG
   reflow the header row while the stylesheet is still parsing. */
.brand-mark { flex: none; width: 26px; height: 26px; }
.search-form { display: flex; flex: 1; min-width: 220px; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-right: 0; color: var(--text); padding: 9px 12px; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
  background: var(--accent); color: #16130B; border: 0; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem;
}
.search-form button:hover { background: var(--accent-hi); }

/* Grid + cards */
:root { --card-aspect: 9/16; } /* portrait-first catalog; flip to 16/9 if landscape content arrives */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; }
.card-link { display: block; color: var(--text); }
.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: var(--card-aspect); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card-link:hover .thumb img { transform: scale(1.04); }
.badge {
  position: absolute; right: 6px; bottom: 6px; background: rgba(10,10,12,0.85);
  color: var(--text); font-size: 0.75rem; font-weight: 600; padding: 2px 6px; border-radius: 5px;
}
.card-title {
  font-size: 0.95rem; font-weight: 600; margin: 8px 0 2px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link:hover .card-title { color: var(--accent-hi); }
.card-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Video page — player shell. The partner script injects its own container div with a
   hardcoded padding-top:56.25%; we override it per-video via --aspect so portrait
   (1080x1920) content renders at its true ratio instead of letterboxed 16:9. */
.player-shell { width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.player-shell > div { padding-top: var(--aspect, 56.25%) !important; position: relative; }
.player-shell iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.player-shell.portrait { max-width: min(100%, 480px); margin-left: auto; margin-right: auto; }
.video-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.performers { margin: 4px 0 10px; }
.performer-link {
  display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.performer-link:hover { border-color: var(--accent); color: var(--accent-hi); }
.video-desc { color: var(--text); max-width: 75ch; }
.tags { margin-top: 6px; }
.tag { display: inline-block; margin: 0 6px 6px 0; font-size: 0.82rem; color: var(--muted); }
.tag::before { content: "#"; color: var(--accent); }
.tag:hover { color: var(--accent-hi); }

/* Page furniture */
.page-head { margin-top: 12px; }
.page-sub { color: var(--muted); margin: 0 0 8px; }
.performer-desc { max-width: 75ch; }
.sorts { display: flex; gap: 6px; margin: 12px 0 16px; flex-wrap: wrap; }
.sort { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.sort:hover { color: var(--text); border-color: var(--muted); }
.sort.on { background: var(--accent); border-color: var(--accent); color: #16130B; font-weight: 700; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 6px; }
.pager a { padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager { gap: 8px; flex-wrap: wrap; }
.pager-num { min-width: 40px; text-align: center; padding: 7px 10px !important; }
.pager-num.on { background: var(--accent); color: #16130B; border-radius: var(--radius); padding: 7px 10px; font-weight: 700; min-width: 40px; text-align: center; }
.pager-gap { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
.ad-slot { margin: 14px 0; border-radius: var(--radius); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 32px; padding: 22px 16px 34px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  color: var(--muted); font-size: 0.82rem;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-links a { color: var(--text); font-weight: 600; }
.foot-links a:hover { color: var(--accent-hi); }

/* Legal pages */
.legal { max-width: 78ch; }
.legal h2::before { content: ""; }
.legal-updated, .legal-small { color: var(--muted); font-size: 0.85rem; }

/* Removal form */
.removal-form { display: grid; gap: 6px; margin: 18px 0; }
.removal-form label { font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.removal-form input, .removal-form select, .removal-form textarea {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 9px 12px; border-radius: 8px; font: inherit;
}
.removal-form button {
  margin-top: 16px; justify-self: start; background: var(--accent); color: #16130B;
  border: 0; font-weight: 700; padding: 11px 22px; border-radius: var(--radius); cursor: pointer; font-size: 1rem;
}
.removal-form button:hover { background: var(--accent-hi); }
.removal-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-errors { border: 1px solid #B4462F; background: #2A1512; border-radius: var(--radius); padding: 4px 16px; margin: 14px 0; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 8, 11, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate-box {
  max-width: 480px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
}
.age-gate-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: 0.04em; color: var(--accent); margin: 0 0 8px;
}
.age-gate-brand .brand-mark { width: 22px; height: 22px; }
.age-gate-box h2 { margin: 0 0 10px; font-size: 1.3rem; }
.age-gate-box h2::before { content: ""; }
.age-gate-box p { font-size: 0.92rem; color: var(--text); }
.age-gate-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.btn-enter {
  background: var(--accent); color: #16130B; border: 0; font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius); cursor: pointer; font-size: 1rem;
}
.btn-enter:hover { background: var(--accent-hi); }
.btn-leave { padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 600; }
.age-gate-small { font-size: 0.78rem !important; color: var(--muted) !important; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px 10px; }
  h1 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
}