/* ==========================================================================
   StreamPornStar theme — main stylesheet (loaded async; tokens/base/header/grid/card live in
   critical.css and are inlined). Source: sp-revamp-1105/design/styles.css v3.2 (light palette,
   owner-approved). Vanilla CSS, mobile-first, no framework, no web fonts.
   Ad-slot classes are .slot-* on purpose (ad-blocker cosmetic filters hide .ad-*).
   ========================================================================== */

/* ---------- Motion & hover (pointer devices only) ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.dot { box-shadow: 0 0 0 0 rgba(46,230,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(46,230,107,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,107,0); } }
.thumb { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover .thumb, .card:focus-within .thumb { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bg); font-size: 2.25rem; font-weight: 900; letter-spacing: -.04em; pointer-events: none; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--overlay); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.thumb .play::after { content: ""; margin-left: 3px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@media (hover: hover) { .card:hover .play, .card:focus-within .play { opacity: 1; } }
.thumb .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .preview[hidden] { display: none; }
.card-t a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-t a:focus-visible { outline: none; }
.models a:hover { color: var(--accent); }
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.btn-live:hover { border-color: var(--accent); color: var(--text-strong); }
.nav-primary a:hover { background: var(--surface-3); color: var(--text-strong); }
.search-form button:hover { background: var(--accent); color: var(--accent-ink); }
.sec-head .more { font-size: var(--fs-0); font-weight: 600; color: var(--accent); white-space: nowrap; }
.lede { color: var(--text-2); max-width: 70ch; }
.lede p { margin: 0 0 var(--s-2); }
.lede.is-expanded { -webkit-line-clamp: unset; display: block; }
.lede-more { font-size: var(--fs-0); font-weight: 600; color: var(--accent); margin: var(--s-1) 0 0; min-height: 24px; }
.arch-head { margin: 0 0 var(--s-5); display: grid; gap: var(--s-2); }
.arch-head .sort { margin-top: var(--s-2); }

/* ---------- Chips & sort ---------- */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s-1); }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap-chips { flex-wrap: wrap; overflow: visible; }
.chips.center { justify-content: center; }
.chips.related-terms { margin-bottom: var(--s-5); }
.chip { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-4); border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: var(--fs-0); font-weight: 600; color: var(--text-1); white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--text-strong); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { color: var(--text-3); font-weight: 500; }
.chip[aria-pressed="true"] .n, .chip[aria-current] .n { color: var(--accent-ink); opacity: .8; }
.chip-tag { font-weight: 500; }
.sort { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.sort .lbl { font-size: var(--fs-0); color: var(--text-3); white-space: nowrap; }

/* ---------- Rails & tiles ---------- */
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: var(--grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--s-2); }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail-scroll { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); overflow: visible; } }
.tiles { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.tile { position: relative; display: grid; gap: var(--s-2); text-align: center; }
.tile .face { aspect-ratio: 3/4; border-radius: var(--r-m); background: linear-gradient(160deg, var(--soft), var(--line) 70%); border: 1px solid var(--line); display: grid; place-items: center; color: var(--bg); font-size: 1.75rem; font-weight: 900; transition: transform .25s var(--ease), border-color .2s; overflow: hidden; }
.tile .face img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .face { transform: translateY(-2px); border-color: var(--accent); }
.tile h3 { font-size: var(--fs-1); font-weight: 600; }
.tile .n { font-size: var(--fs-0); color: var(--text-3); }

/* ---------- Single video ---------- */
.player-wrap { width: 100%; min-width: 0; }
.player-wrap::before { content: ""; position: absolute; inset: -40px; z-index: -1; filter: blur(60px); opacity: .9; background: radial-gradient(60% 60% at 50% 50%, var(--soft), transparent 70%); }
.player-skel { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .1em; pointer-events: none; }
.player-fallback { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-0); color: var(--text-3); }
.player-fallback a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
.v-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); color: var(--text-2); font-size: var(--fs-0); font-variant-numeric: tabular-nums; }
.v-meta .hd { padding: 1px 7px; border-radius: 6px; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: .72rem; }
.v-meta .hd.k4 { background: var(--accent); color: var(--accent-ink); }
.v-meta .actions { display: flex; gap: var(--s-2); margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: var(--fs-0); color: var(--text); }
.btn:hover { background: var(--surface-2); color: var(--text-strong); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn .n { color: var(--text-3); font-weight: 500; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn svg { width: 18px; height: 18px; }
.v-chips { display: grid; gap: var(--s-3); }
.v-chips .row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.v-chips .lbl { font-size: var(--fs-0); color: var(--text-3); margin-right: var(--s-1); }
.actor-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3) 0 var(--s-1); border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: var(--fs-0); color: var(--text-1); }
.actor-chip:hover { border-color: var(--accent); color: var(--text-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(160deg, var(--soft), var(--line-2)); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.v-desc { color: var(--text-2); }
.v-desc summary { cursor: pointer; font-weight: 700; color: var(--text-strong); list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 24px; }
.v-desc summary::-webkit-details-marker { display: none; }
.v-desc summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.v-desc[open] summary::after { content: "–"; }
.v-desc p { margin: var(--s-2) 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3) var(--s-4); padding: var(--s-4); border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-0); }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--text); }
.facts dd a { color: var(--accent); }
.sec-related { margin: var(--s-2) 0 0; }
.adjacent { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.adjacent .btn { max-width: 100%; }
.adjacent .btn:first-child, .adjacent .btn:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 44px; }
/* Related: 12 cards on mobile, 24 on desktop (same DOM) */
@media (max-width: 767px) { .grid-related > .card:nth-child(n+13) { display: none; } }
.comments summary { font-weight: 700; cursor: pointer; min-height: 24px; }
.comments-area { margin-top: var(--s-4); }
.comment-list { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.comment-list .children { margin: var(--s-3) 0 0 var(--s-6); display: grid; gap: var(--s-3); }
.comment-body { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); font-size: var(--fs-0); }
.comment-body p { margin: var(--s-2) 0 0; }
.comment-meta { color: var(--text-3); display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.comment-meta img { border-radius: 50%; }
.comment-respond label { display: block; font-size: var(--fs-0); color: var(--text-2); margin-bottom: var(--s-1); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; max-width: 640px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-s); font: inherit; background: var(--surface); color: var(--text); }
.comment-reply-title { font-size: var(--fs-2); margin: var(--s-4) 0 var(--s-3); }
.rail-group { display: grid; gap: var(--s-6); }
.slot-a.inflow { margin: 0 auto; }

@media (min-width: 1024px) {
  /* Grid lives on .v-main (not .single + display:contents) — contents was collapsing the player in Chromium */
  .v-main {
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
    column-gap: var(--s-8);
    align-items: start;
  }
  .v-main > *:not(.rail-only):not(.rail-group) { grid-column: 1; min-width: 0; }
  .r1 { grid-row: 1; } .r2 { grid-row: 2; } .r3 { grid-row: 3; } .r4 { grid-row: 4; } .r5 { grid-row: 5; }
  .r6 { grid-row: 6; } .r7 { grid-row: 7; } .r8 { grid-row: 8; } .r9 { grid-row: 9; }
  .rail-only { display: block; }
  .v-main > .rail-only,
  .v-main > .rail-group { grid-column: 2; align-self: start; position: sticky; top: calc(var(--header-h) + var(--s-4)); }
  .v-main > .rail-only.slot-a { grid-row: 1 / 6; margin: 0; max-width: none; min-height: 600px; width: var(--rail-w); }
  .v-main > .rail-group { grid-row: 6 / 10; width: var(--rail-w); }
  .rail-group .slot-b { margin: 0; max-width: none; min-height: 250px; }
  .rail-group .grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .rail-group .card { grid-template-columns: 120px 1fr; gap: var(--s-1) var(--s-3); }
  .rail-group .thumb { grid-row: 1 / span 2; border-radius: var(--r-s); }
  .rail-group .card-t { font-size: var(--fs-0); }
  .rail-group .meta, .rail-group .models { grid-column: 2; }
  .slot-a.inflow { display: none; }
}

/* ---------- Performer hero ---------- */
.actor-hero { display: grid; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-l); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); margin-top: var(--s-2); grid-template-columns: 96px 1fr; align-items: start; }
@media (min-width: 768px) { .actor-hero { grid-template-columns: 180px 1fr; padding: var(--s-6); gap: var(--s-6); } }
.actor-hero .portrait { aspect-ratio: 3/4; border-radius: var(--r-m); background: linear-gradient(160deg, var(--soft), var(--line-2)); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--bg); font-size: 2rem; font-weight: 900; overflow: hidden; }
.actor-hero .portrait img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-3); }
.stat { display: grid; }
.stat b { font-size: var(--fs-2); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.stat span { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.aliases { font-size: var(--fs-0); color: var(--text-2); margin: var(--s-2) 0 0; }
.bio { margin-top: var(--s-3); font-size: var(--fs-0); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s-1); margin: var(--s-10) 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 var(--s-3); display: inline-grid; place-items: center; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: var(--fs-0); color: var(--text-1); }
.pagination a:hover { border-color: var(--accent); color: var(--text-strong); }
.pagination [aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination .dots { border: 0; background: none; color: var(--text-3); min-width: 24px; }
.pagination .sm { display: none; }
@media (min-width: 640px) { .pagination .sm { display: inline-grid; } }

/* ---------- Search, empty state, A–Z hub ---------- */
.search-hero { padding: var(--s-4) 0 var(--s-2); }
.search-hero .search-form { max-width: 720px; font-size: var(--fs-2); margin-top: var(--s-4); }
.search-hero .search-form input { padding: var(--s-3) 0; }
.empty { text-align: center; padding: var(--s-12) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-l); color: var(--text-2); }
.empty h2 { font-size: var(--fs-3); margin-bottom: var(--s-2); color: var(--text-strong); }
.az { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-6); position: sticky; top: calc(var(--header-h) + var(--s-2)); z-index: 5; background: rgba(255,255,255,.95); padding: var(--s-2) 0; }
.az a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line-2); font-size: var(--fs-0); font-weight: 700; color: var(--text-1); }
.az a:hover { border-color: var(--accent); color: var(--text-strong); }
.hub { display: grid; gap: var(--s-8); }
.hub-group h2 { font-size: var(--fs-3); font-weight: 800; margin-bottom: var(--s-3); scroll-margin-top: calc(var(--header-h) + 64px); }
.hub-list { columns: 2; column-gap: var(--s-6); }
@media (min-width: 640px) { .hub-list { columns: 3; } }
@media (min-width: 1024px) { .hub-list { columns: 4; } }
.hub-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: var(--s-2); min-height: 32px; align-items: center; border-bottom: 1px solid var(--line); font-size: var(--fs-0); }
.hub-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-1); font-weight: 500; }
.hub-list li a:hover { color: var(--accent-2); }
.hub-list .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.link-list { display: grid; gap: var(--s-2); columns: unset; }
.link-list li { display: flex; justify-content: space-between; gap: var(--s-3); border-bottom: 1px solid var(--line); min-height: 32px; align-items: center; font-size: var(--fs-0); }
.months { margin-bottom: var(--s-5); }

/* ---------- Static pages ---------- */
.prose .entry { max-width: 70ch; color: var(--text-1); }
.prose .entry p, .prose .entry ul, .prose .entry ol { margin: 0 0 var(--s-4); }
.prose .entry ul { list-style: disc; padding-left: 1.2em; }
.prose .entry ol { list-style: decimal; padding-left: 1.2em; }
.prose .entry h2 { font-size: var(--fs-3); margin: var(--s-8) 0 var(--s-3); }
.prose .entry h3 { font-size: var(--fs-2); margin: var(--s-6) 0 var(--s-2); }
.prose .entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .entry blockquote { margin: 0 0 var(--s-4); padding-left: var(--s-4); border-left: 3px solid var(--line-2); color: var(--text-2); }
.prose .entry img { border-radius: var(--r-m); }

/* ---------- Boxes ---------- */
.box { padding: var(--s-5); border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.box h2 { font-size: var(--fs-2); color: var(--text-strong); margin-bottom: var(--s-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s-16); border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--s-10) 0 var(--s-8); color: var(--text-2); font-size: var(--fs-0); }
.foot-grid { display: grid; gap: var(--s-8) var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1.6fr 1fr 1fr; } }
.site-footer h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: var(--s-3); }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer .cols-2 { columns: 2; column-gap: var(--s-4); }
.site-footer a:hover { color: var(--accent-2); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { max-width: 42ch; }
.foot-blurb { margin-top: var(--s-3); }
.legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--text-3); }
.legal li { display: contents; }
.rta { font-size: .72rem; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; }

/* ---------- Age gate ---------- */
.agegate { border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--surface); color: var(--text); padding: var(--s-6); width: min(92vw, 420px); box-shadow: var(--shadow); }
.agegate::backdrop { background: var(--overlay-2); backdrop-filter: blur(6px); }
.agegate h2 { font-size: var(--fs-3); margin-bottom: var(--s-2); }
.agegate p { color: var(--text-2); font-size: var(--fs-0); }
.agegate .row { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.agegate .btn { flex: 1; justify-content: center; }

/* ---------- Rendering ---------- */
.sec.lazy { content-visibility: auto; contain-intrinsic-size: auto 500px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
