/* D:\projects\fanzanian\app\static\actress\app.css */
:root {
  color-scheme: dark;
  --bg: #070709;
  --surface: #111115;
  --text: #fff;
  --muted: rgba(255,255,255,.58);
  --line: rgba(255,255,255,.11);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bottom-nav-height: 62px;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom)); }
a, button { font: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #df9cff; outline-offset: 3px; }
.actress-directory-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.actress-directory-nav a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; text-decoration: none;
}
.actress-directory-nav a:hover { border-color: rgba(214,86,255,.45); color: #fff; }
.page-header {
  position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between;
  min-height: calc(54px + var(--safe-top)); padding: var(--safe-top) max(16px,var(--safe-right)) 0 max(16px,var(--safe-left));
  border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(7,7,9,.94); backdrop-filter: blur(16px);
}
.brand { color: #fff; font-size: 14px; font-weight: 950; letter-spacing: .1em; text-decoration: none; }
.back-link { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 750; text-decoration: none; }
.page-main { width: min(760px, 100%); margin: 0 auto; padding: 18px max(12px,var(--safe-right)) 48px max(12px,var(--safe-left)); }
.profile-card {
  display: grid; grid-template-columns: 118px minmax(0,1fr); align-items: center; gap: 18px; min-height: 160px;
  padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(circle at 12% 15%, rgba(203,76,255,.16), transparent 38%), #101014;
}
.profile-image, .profile-skeleton { width: 118px; height: 148px; border-radius: 14px; object-fit: cover; background: #19191f; }
.profile-skeleton { background: linear-gradient(110deg,#15151a 10%,#23232a 24%,#15151a 38%); background-size: 220% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }
.eyebrow { margin: 0 0 5px; color: rgba(255,255,255,.42); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(25px,7vw,38px); line-height: 1.18; }
.ruby, .product-count { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.profile-detail { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.73); font-size: 11px; }
.official-actress-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; margin-top: 12px; padding: 11px 15px; border: 1px solid rgba(234,157,255,.5); border-radius: 14px; background: linear-gradient(105deg,rgba(187,77,255,.2),rgba(255,69,157,.12)); color:#fff; font-size:13px; font-weight:850; text-decoration:none; }
.works-section { margin-top: 28px; }
.works-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
h2 { margin:0; font-size:22px; }
.loading-indicator { width:20px; height:20px; border:2px solid rgba(255,255,255,.18); border-top-color:#fff; border-radius:50%; animation:spin .72s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.works-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; }
.work-card { overflow:hidden; border:1px solid rgba(255,255,255,.075); border-radius:16px; background:#101014; }
.work-link { display:block; color:inherit; text-decoration:none; }
.work-image-wrap { display:grid; place-items:center; width:100%; aspect-ratio: 16 / 9; overflow:hidden; background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.055),transparent 58%),#111116; }
.work-image-wrap img { display:block; width:100%; height:100%; padding:8px; object-fit:contain; }
.work-placeholder { display:grid; place-items:center; width:100%; height:100%; color:var(--muted); font-size:12px; }
.work-copy { display:grid; gap:6px; padding:13px 15px 16px; }
.work-title { color:rgba(255,255,255,.94); font-size:15px; font-weight:820; line-height:1.48; }
.work-actresses { display:flex; flex-wrap:wrap; gap:5px 9px; color:rgba(255,255,255,.62); font-size:12px; }
.work-actresses a { color:inherit; text-decoration:none; }
.work-actresses a:hover { color:#fff; text-decoration:underline; }
.message-state { display:grid; place-items:center; gap:9px; min-height:220px; padding:28px; text-align:center; color:var(--muted); }
.message-state[hidden] { display:none; }
.message-state strong { color:#fff; }
.message-state p { margin:0; font-size:12px; line-height:1.6; }
.message-state button, #load-more { min-height:42px; padding:9px 16px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#09090b; font-weight:850; cursor:pointer; }
.load-more-wrap { display:flex; justify-content:center; padding:25px 0 0; }
#load-more[hidden] { display:none; }
.bottom-navigation { position:fixed; z-index:30; right:0; bottom:0; left:0; display:grid; grid-template-columns:repeat(5,1fr); min-height:calc(var(--bottom-nav-height) + var(--safe-bottom)); padding:8px max(10px,var(--safe-right)) var(--safe-bottom) max(10px,var(--safe-left)); border-top:1px solid rgba(255,255,255,.08); background:rgba(8,8,10,.95); }
.bottom-navigation a { display:grid; place-items:center; gap:2px; color:rgba(255,255,255,.52); font-size:10px; font-weight:750; text-decoration:none; }
.bottom-navigation a.is-active { color:#fff; }
.bottom-navigation a span:first-child { font-size:19px; }
.bottom-navigation .mylist-heart-icon { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
@media (min-width:760px) {
  .page-main { padding-top:28px; }
  .profile-card { grid-template-columns:160px minmax(0,1fr); min-height:210px; padding:22px; }
  .profile-image, .profile-skeleton { width:160px; height:200px; }
  .work-image-wrap { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }

/* Phase 5A14: avoid nested links and keep title navigation explicit */
.work-title { color: rgba(255,255,255,.94); text-decoration: none; }
.work-title:hover { text-decoration: underline; text-underline-offset: 4px; }


/* Phase 5A17: immediately useful actress page with resilient profile fallback */
.brand { display:inline-flex; align-items:center; gap:8px; }
.brand span {
  display:grid; place-items:center; width:30px; height:30px; border-radius:50%;
  background:#fff; color:#d40820; font-family:Arial Black,Impact,sans-serif;
  font-size:22px; font-weight:950; box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.brand b { color:#fff; font-size:12px; letter-spacing:.09em; }
.profile-fallback {
  display:grid; place-items:center; width:118px; height:148px; border-radius:14px;
  background:linear-gradient(145deg,#fff,#e8e8ec); color:#d40820;
  font-family:Arial Black,Impact,sans-serif; font-size:74px; font-weight:950;
  box-shadow:0 16px 42px rgba(0,0,0,.28);
}
.profile-status { margin:8px 0 0; color:rgba(255,255,255,.55); font-size:11px; line-height:1.55; }
.profile-retry {
  min-height:36px; margin-top:10px; padding:7px 13px; border:1px solid rgba(255,255,255,.2);
  border-radius:999px; background:rgba(255,255,255,.08); color:#fff; font-size:11px;
  font-weight:820; cursor:pointer;
}
.profile-retry[hidden] { display:none; }
@media (min-width:760px) { .profile-fallback { width:160px; height:200px; font-size:92px; } }


/* Phase 5A17B: text-only brand and verified actress asset delivery */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .095em;
  text-decoration: none;
}
.brand:hover { color: rgba(255,255,255,.82); }
.brand span,
.brand b { display: contents; }


/* Phase 5A19: red text brand and landscape actress work cards */
.brand,
.brand:hover {
  color: #e60012;
}
.work-image-wrap {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 56%),
    linear-gradient(135deg, #17171c, #09090c);
}
.work-image-wrap img {
  padding: 10px;
  object-fit: contain;
}

.settings-gear-icon { width:22px; height:22px; display:block; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }


/* 20260813B: unified public FANZANIAN wordmark. */
.brand,
.brand:hover,
.brand:focus-visible {
  color: #e60012;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .11em;
  text-decoration: none;
}


/* 20260813C: resilient actress profile geometry and non-redundant work cards. */
.profile-card > div:last-child { min-width: 0; }
.profile-card h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 6vw, 34px);
}
.profile-image, .profile-skeleton, .profile-fallback {
  align-self: start;
  max-width: 100%;
}
.work-copy { gap: 4px; }
.work-actresses { display: none !important; }
@media (max-width: 420px) {
  .profile-card { grid-template-columns: 96px minmax(0,1fr); gap: 13px; padding: 13px; }
  .profile-image, .profile-skeleton, .profile-fallback { width: 96px; height: 120px; }
  .profile-card h1 { font-size: clamp(20px, 7vw, 28px); }
}


/* 20260813C: transparent profile-facet discovery (age / hobby / cup / numeric range). */
.profile-detail.is-action {
  appearance: none;
  cursor: pointer;
  border-color: rgba(230,0,18,.42);
  color: rgba(255,255,255,.92);
}
.profile-detail.is-action::after { content: " ↗"; color: #e60012; }
.related-actresses {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: #0d0d11;
}
.related-actresses[hidden] { display: none; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.related-heading h2 { font-size: 17px; }
#related-actresses-close {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  background: rgba(255,255,255,.06); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.related-summary { margin: 8px 0 12px; color: rgba(255,255,255,.58); font-size: 11px; }
.related-actresses-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.related-actress-card {
  display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 9px;
  min-height: 60px; padding: 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.025);
}
.related-actress-card img { width: 48px; height: 56px; border-radius: 8px; object-fit: cover; }
.related-actress-card > span { min-width: 0; display: grid; gap: 3px; }
.related-actress-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.related-actress-card small { color: rgba(255,255,255,.5); font-size: 9px; }
.related-empty { grid-column: 1 / -1; color: rgba(255,255,255,.55); font-size: 11px; }
@media (min-width: 700px) { .related-actresses-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }


/* 20260816F1: explicit favorite actress control; storage reuses entity_preference_v1:actress. */
.actress-favorite {
  min-height: 38px; margin-top: 9px; padding: 8px 13px; border: 1px solid rgba(255,79,145,.42);
  border-radius: 999px; background: rgba(255,79,145,.08); color: rgba(255,255,255,.86);
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.actress-favorite.is-active { background: rgba(255,79,145,.22); border-color: rgba(255,79,145,.78); color: #fff; }
.actress-favorite:disabled { opacity: .56; cursor: default; }

/* 20260816 SEO-B: server-rendered entity landing primary CTA. */
.actress-player-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}
.actress-player-cta:hover { background: rgba(255,255,255,.9); }
.actress-share-cta { min-height:42px; margin:10px 0 0 8px; padding:9px 14px; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(255,255,255,.06); color:#fff; font:inherit; font-size:12px; font-weight:900; cursor:pointer; }
.actress-share-cta:hover { background:rgba(255,255,255,.12); }
.actress-share-cta:disabled { opacity:.62; cursor:wait; }
@media (max-width:520px) { .actress-share-cta { margin-left:0; width:100%; } }


/* 20260816 SEO-B1: bounded bottom-nav icons and branded real-404 surface. */
.bottom-navigation .settings-gear-icon { width:22px; height:22px; max-width:22px; max-height:22px; }
.not-found-page { min-height:100vh; padding-bottom:0; background:#070709; }
.not-found-main { display:grid; place-items:center; min-height:calc(100vh - 55px); padding:28px 16px 56px; }
.not-found-card { width:min(620px,100%); padding:34px 30px; border:1px solid rgba(255,255,255,.11); border-radius:20px; background:radial-gradient(circle at 12% 10%,rgba(203,76,255,.14),transparent 38%),#101014; text-align:center; }
.not-found-code { margin:0 0 8px; color:rgba(255,255,255,.42); font-size:11px; font-weight:900; letter-spacing:.16em; }
.not-found-title { margin:0; font-size:clamp(24px,5vw,34px); line-height:1.25; }
.not-found-copy { margin:14px auto 0; max-width:480px; color:rgba(255,255,255,.62); font-size:13px; line-height:1.75; }
.not-found-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:24px; }
.not-found-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:#fff; font-size:13px; font-weight:850; text-decoration:none; }
.not-found-action.is-primary { border-color:#fff; background:#fff; color:#09090b; }
.not-found-action:hover { filter:brightness(1.08); }
@media (max-width:520px) { .not-found-card { padding:28px 20px; } .not-found-actions { display:grid; } .not-found-action { width:100%; } }
