/* milfchatlive: "after hours". Night plum, blush ivory, Bodoni captions.
   Champagne is for actions only, lipstick only for the live signal. Mobile first; wider screens add columns. */

@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/bodoni-moda-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("/fonts/bodoni-moda-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --night: #23121f;
  --velvet: #301a2b;
  --velvet-hi: #3e2338;
  --ink: #f4e7e2;
  --mauve: #b99baa;
  --line: rgba(244, 231, 226, .13);
  --champagne: #e8c893;
  --lipstick: #f0506e;

  /* Legacy names used by the admin pages. */
  --bg: var(--night);
  --fg: var(--ink);
  --muted: var(--mauve);
  --card: var(--velvet);
  --accent: var(--champagne);
  --accent-soft: var(--velvet-hi);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wide: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--night);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--champagne); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-style: italic; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-size: .9em; }

.muted { color: var(--mauve); font-size: .875rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.placeholder {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.placeholder h1 { font-size: 2rem; }

/* ---------- Site chrome ---------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wide); margin: 0 auto; padding: 14px var(--gutter) 10px;
}
.brand {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1;
  color: var(--ink); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; color: var(--champagne); }
.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-fav {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  font-size: .875rem; font-weight: 600; color: var(--ink);
}
.nav-fav:hover { text-decoration: none; color: var(--champagne); }
.nav-fav svg { width: 17px; height: 17px; fill: var(--champagne); }
.nav-fav-count {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
  font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--night); background: var(--champagne);
}
.nav-fav-count[hidden] { display: none; }
@media (max-width: 359px) {
  .nav-fav > span:not(.nav-fav-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.adult-badge {
  font-size: .75rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.disclosure {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 12px;
  font-size: .75rem; line-height: 1.4; color: var(--mauve);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  max-width: var(--wide); margin: 64px auto 0; padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line); font-size: .875rem; color: var(--mauve);
}
.site-footer p { margin: 0 0 8px; max-width: 65ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0; }
.footer-links a { color: var(--ink); }

/* ---------- Home / category ---------- */

.intro, .live, .about { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.intro { padding-top: 28px; padding-bottom: 8px; }
.intro h1 { font-size: clamp(2.6rem, 11vw, 5.5rem); line-height: .95; margin: 0 0 16px; }
.intro p { max-width: 60ch; color: var(--mauve); }

.live { margin-top: 12px; }
.live > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.about { margin-top: 48px; }
.about h2 { font-size: 1.5rem; margin-bottom: 10px; }
.about p { max-width: 65ch; color: var(--mauve); }

.notice {
  border-left: 2px solid var(--champagne); padding: 2px 0 2px 12px; margin: 0 0 20px;
  color: var(--mauve); font-size: .9375rem; max-width: 65ch;
}

/* Live count: the one moving thing on the page. */
.live-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; color: var(--mauve); font-size: .9375rem; }
.live-count strong {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--ink);
}
.live-count strong::before, .status-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lipstick); flex: none;
  box-shadow: 0 0 0 0 rgba(240, 80, 110, .6); animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 80, 110, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(240, 80, 110, 0); }
}
.live-status { color: var(--mauve); padding: 24px 0; }

/* Favorites page */
.empty { padding: 28px 0 8px; max-width: 46ch; }
.empty-title { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--ink); margin-bottom: 6px; }
.empty p { color: var(--mauve); }
.empty .cta { display: inline-block; margin-top: 8px; }
.link-button {
  font: inherit; font-size: .875rem; color: var(--mauve); background: none; border: 0; padding: 8px 0; margin-top: 28px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--ink); }
.link-button[hidden] { display: none; }

/* ---------- Live grid ---------- */

.cams {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px;
}
.cam { display: flex; flex-direction: column; min-width: 0; }
.cam-media { position: relative; }
.cam-go { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--velvet); }
.cam-go:hover { text-decoration: none; }
.cam img, .cam .thumb-none { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cam-go:hover img { filter: brightness(1.06); }

/* No preview (restricted region, before the 18+ click, crawlers): a monogram instead of an empty box. */
.thumb-none {
  display: flex !important; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 30% 20%, var(--velvet-hi), var(--velvet) 70%);
  font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1;
  font-size: clamp(2.8rem, 14vw, 4.5rem); color: var(--champagne);
}
.cam-go:hover .thumb-none { color: var(--ink); }

.cam-pill {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
  background: rgba(35, 18, 31, .78); border-radius: 999px; padding: 2px 8px;
}
.cam-pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lipstick); }

/* Save star: top-left over the picture. Outline when not saved, champagne when saved; readable on any photo. */
.fav {
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: none; border: 0; padding: 0;
}
.fav[hidden] { display: none; }
.fav svg {
  width: 28px; height: 28px; fill: rgba(35, 18, 31, .45); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); transition: transform .15s ease, fill .15s ease;
}
.fav[aria-pressed="true"] svg { fill: var(--champagne); stroke: var(--night); }
.fav:hover svg { transform: scale(1.08); }
.fav:active svg { transform: scale(.92); }
.cam .fav { position: absolute; top: 2px; left: 2px; width: 44px; height: 44px; }

.cam-body { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cam-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cam-info {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.375rem; line-height: 1;
  color: var(--night); background: var(--champagne);
}
.cam-info:hover { text-decoration: none; filter: brightness(1.08); }
.cam-name {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.125rem; line-height: 1.2;
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cam-name:hover { color: var(--champagne); }
.cam-meta { font-size: .8125rem; color: var(--mauve); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .cams { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 18px; }
  .disclosure { font-size: .8125rem; }
  .intro p { font-size: 1.0625rem; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .intro { padding-top: 48px; }
}

/* ---------- 18+ gate ---------- */

body.age-locked { overflow: hidden; }
body.age-locked > .site-header,
body.age-locked > .disclosure,
body.age-locked > main,
body.age-locked > .site-footer { filter: blur(14px); user-select: none; }
.age-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 9, 18, .55);
}
.age-dialog {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 480px; padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--velvet); color: var(--ink);
  border-radius: 16px 16px 0 0; box-shadow: 0 -12px 48px rgba(0, 0, 0, .45);
}
.age-dialog .adult-badge { align-self: flex-start; }
.age-dialog h2 { font-style: italic; font-size: 2.25rem; }
.age-dialog p { margin: 0; color: var(--mauve); }
.age-dialog button {
  font: inherit; font-weight: 600; font-size: 1.0625rem;
  color: var(--night); background: var(--champagne);
  border: 0; border-radius: 999px; padding: 14px 20px; cursor: pointer; width: 100%; margin-top: 6px;
}
.age-dialog button:hover { filter: brightness(1.06); }
.age-leave { align-self: center; font-size: .9375rem; color: var(--mauve); }
.age-legal { text-align: center; font-size: .8125rem; }
.age-legal a { color: var(--mauve); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 600px) {
  .age-overlay { align-items: center; padding: 16px; }
  .age-dialog { border-radius: 16px; padding: 36px 36px 28px; }
}

/* ---------- Performer page ---------- */

.performer { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.crumbs { font-size: .875rem; color: var(--mauve); margin: 18px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--mauve); }
.performer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 14px 0 20px; }
.performer-head h1 { font-size: clamp(2.4rem, 12vw, 5rem); line-height: .95; overflow-wrap: anywhere; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.status-off { color: var(--mauve); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fav-labelled {
  gap: 7px; font-size: .875rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 13px 3px 9px; min-height: 32px;
}
.fav-labelled svg { width: 18px; height: 18px; filter: none; fill: none; }
.fav-labelled[aria-pressed="true"] { color: var(--champagne); border-color: var(--champagne); }
.fav-labelled[aria-pressed="true"] svg { fill: var(--champagne); stroke: var(--champagne); }
.fav-labelled .fav-on-text, .fav-labelled[aria-pressed="true"] .fav-off-text { display: none; }
.fav-labelled[aria-pressed="true"] .fav-on-text { display: inline; }

.performer-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.performer-media { display: block; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; background: var(--velvet); }
.performer-media:hover { text-decoration: none; }
.performer-media img, .performer-media .thumb-none { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.performer-media .thumb-none { font-size: clamp(5rem, 30vw, 9rem); }

.performer-facts > :first-child { margin-top: 0; }
.performer-facts > p { max-width: 60ch; }
.cta {
  display: block; text-align: center; font-weight: 600; font-size: 1.0625rem;
  color: var(--night); background: var(--champagne);
  border-radius: 999px; padding: 14px 22px; margin: 0 0 22px;
}
.cta:hover { text-decoration: none; filter: brightness(1.06); }
.cta-secondary { background: transparent; color: var(--champagne); box-shadow: inset 0 0 0 1px var(--champagne); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 20px; }
.facts dt { color: var(--mauve); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.subject { color: var(--mauve); font-family: var(--serif); font-style: italic; font-size: 1.0625rem; overflow-wrap: anywhere; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }

.schedule-section, .similar { margin-top: 48px; }
.schedule-section h2, .similar h2 { font-size: clamp(1.6rem, 6vw, 2.25rem); font-style: italic; margin-bottom: 16px; }
.schedule-section > p { max-width: 65ch; }
.usual { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.usual li {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--night);
  background: var(--champagne); border-radius: 999px; padding: 4px 12px; font-size: .9375rem;
}

.week { display: flex; flex-direction: column; gap: 3px; max-width: 760px; margin-bottom: 12px; }
.week-row, .week-hours { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.week-hours span { font-size: .6875rem; color: var(--mauve); }
.week-day { font-size: .75rem; color: var(--mauve); }
.week-cell {
  height: 18px; border-radius: 2px;
  background: color-mix(in srgb, var(--champagne) calc(var(--v, 0) * 100%), var(--velvet));
}
.week-cell[data-share=""] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

@media (min-width: 860px) {
  .performer-head { flex-direction: row; align-items: baseline; gap: 20px; }
  .performer-main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: start; }
  .performer-main:not(:has(.performer-media)) { grid-template-columns: minmax(0, 1fr); max-width: 65ch; }
  .performer-media { margin: 0; border-radius: 8px; }
  .cta { display: inline-block; }
}

/* ---------- Legal pages ---------- */

.legal { max-width: 68ch; margin: 0 auto; padding: 28px var(--gutter) 0; }
.legal h1 { font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1; margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 22px 0 6px; }
.legal p, .legal li { color: rgba(244, 231, 226, .86); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal code { background: var(--velvet); border-radius: 4px; padding: 1px 5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Admin reports (internal) ---------- */

.report { max-width: 1100px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.report h1 { margin: 0 0 16px; font-size: 2.25rem; }
.report h2 { font-size: 1.35rem; margin: 28px 0 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.card { background: var(--card); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.card .big { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 4px; }
.filters select, .filters button {
  font: inherit; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px;
}
.filters button { background: var(--accent); border-color: var(--accent); color: var(--night); font-weight: 600; cursor: pointer; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 8px; overflow: hidden; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: .8rem; color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.selected td { background: var(--accent-soft); }
td.meter { width: 30%; }
td.meter div { height: 8px; background: var(--accent); border-radius: 4px; min-width: 1px; }

.profile { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 160px; align-items: end; margin-bottom: 24px; }
.profile .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.profile .bar { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.profile span { font-size: .7rem; color: var(--muted); }

@media (max-width: 640px) {
  table { display: block; overflow-x: auto; }
  td.meter { display: none; }
  th:nth-child(3) { display: none; }
}
