/* 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: auto 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; }
.actress-romaji { margin-left:6px; color:rgba(255,255,255,.74); }
.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; }

.work-features {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(190,76,255,.08),rgba(255,255,255,.015));
}
.work-features-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; }
.work-features-note { margin:8px 0 14px; color:var(--muted); font-size:11px; line-height:1.65; }
.discovery-feature-group + .discovery-feature-group { margin-top:14px; }
.discovery-feature-group h3 { margin:0 0 7px; color:rgba(255,255,255,.68); font-size:11px; font-weight:850; }
.discovery-feature-chips { display:flex; flex-wrap:wrap; gap:7px; }
.discovery-feature-chip {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:#17171d;
  color:rgba(255,255,255,.9);
  font-size:12px;
}
.discovery-feature-chip { text-decoration:none; }
.discovery-feature-chip:hover { border-color:rgba(214,86,255,.45); background:#1d1922; }
.discovery-feature-chip strong { font-size:12px; }
.discovery-feature-chip small { color:rgba(255,255,255,.48); font-size:10px; }

.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:auto 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%; } }


.work-release-date {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  line-height: 1.45;
}


/* 20261007 Portrait R1 dual visual gallery: original URLs only, CSS framing only. */
.profile-visual-gallery {
  display: grid;
  grid-template-columns: 118px;
  gap: 8px;
  align-self: start;
}
.profile-visual-gallery.profile-visual-gallery-dual {
  display: flex;
  grid-template-columns: none;
  align-items: flex-end;
  gap: 8px;
}
.profile-visual-item {
  position: relative;
  overflow: hidden;
  width: 118px;
  height: 148px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #19191f;
  cursor: default;
  transition: width .18s ease,height .18s ease,flex-basis .18s ease,opacity .18s ease,border-color .18s ease;
}
.profile-visual-gallery-dual .profile-visual-item {
  cursor: pointer;
}
.profile-visual-gallery-dual .profile-visual-item:focus-visible {
  outline: 2px solid #df9cff;
  outline-offset: 3px;
}
.profile-visual-gallery-dual .profile-visual-item {
  order: 2;
  flex: 0 0 52px;
  width: 52px;
  height: 70px;
  opacity: .72;
}
.profile-visual-gallery-dual .profile-visual-item.is-primary {
  order: 1;
  flex-basis: 118px;
  width: 118px;
  height: 148px;
  opacity: 1;
  border-color: rgba(255,255,255,.32);
}
.profile-visual-item .profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
}
.profile-visual-item[data-profile-visual-source="package"] .profile-image {
  object-position: var(--profile-focus-x, 76%) var(--profile-focus-y, 34%);
  transform: scale(var(--profile-scale, 1.55));
  transform-origin: var(--profile-focus-x, 76%) var(--profile-focus-y, 34%);
}
.profile-visual-label { display:none; }
@media (min-width:760px) {
  .profile-visual-gallery { grid-template-columns: 160px; }
  .profile-visual-item {
    width: 160px;
    height: 200px;
  }
  .profile-visual-gallery-dual .profile-visual-item {
    flex-basis: 72px;
    width: 72px;
    height: 96px;
  }
  .profile-visual-gallery-dual .profile-visual-item.is-primary {
    flex-basis: 160px;
    width: 160px;
    height: 200px;
  }
}
@media (max-width:420px) {
  .profile-visual-gallery { grid-template-columns: 96px; }
  .profile-visual-item {
    width: 96px;
    height: 120px;
  }
  .profile-visual-gallery-dual .profile-visual-item {
    flex-basis: 44px;
    width: 44px;
    height: 60px;
  }
  .profile-visual-gallery-dual .profile-visual-item.is-primary {
    flex-basis: 96px;
    width: 96px;
    height: 120px;
  }
}


/* Portrait R1 layout override: accommodate one or two original-source visuals. */
.profile-card {
  grid-template-columns: max-content minmax(0,1fr);
}
@media (min-width:760px) {
  .profile-card {
    grid-template-columns: max-content minmax(0,1fr);
  }
}
@media (max-width:420px) {
  .profile-card {
    grid-template-columns: max-content minmax(0,1fr);
  }
}


/* Portrait R1 related actress card framing. */
.related-actress-visual {
  display:block;
  overflow:hidden;
  width:48px;
  height:56px;
  border-radius:8px;
  background:#19191f;
}
.related-actress-visual img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:none;
}

/* Portrait framing values are applied by app.js through CSSOM; no inline style attributes. */


/* 20261007 package portrait viewer: normal artwork stays primary; a compact
   secondary package preview sits beside it as a separate zoom affordance. */
.profile-visual-gallery {
  display: grid;
  grid-template-columns: 118px;
  align-items: center;
  gap: 8px;
  width: 118px;
  min-width: 118px;
}
.profile-visual-gallery.has-package-viewer {
  grid-template-columns: 118px 50px;
  width: 176px;
  min-width: 176px;
}
.profile-visual-item,
.profile-fallback {
  position: relative;
}
.profile-package-viewer-trigger {
  width: 50px;
  height: 90px;
  min-width: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: #0c0c10;
  cursor: zoom-in;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 8px 24px rgba(0,0,0,.28);
  transition:
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}
.profile-package-viewer-trigger:hover,
.profile-package-viewer-trigger:focus-visible {
  border-color: rgba(223,156,255,.46);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 10px 30px rgba(117,49,156,.20);
  transform: translateY(-1px);
}
.profile-package-viewer-trigger .package-portrait-viewer-icon {
  right: 5px;
  bottom: 5px;
  width: 28px;
  height: 28px;
}
.profile-package-viewer-trigger .package-portrait-viewer-icon svg {
  width: 16px;
  height: 16px;
}
@media (min-width:760px) {
  .profile-visual-gallery {
    grid-template-columns: 160px;
    width: 160px;
    min-width: 160px;
    gap: 10px;
  }
  .profile-visual-gallery.has-package-viewer {
    grid-template-columns: 160px 64px;
    width: 234px;
    min-width: 234px;
  }
  .profile-package-viewer-trigger {
    width: 64px;
    height: 118px;
    min-width: 64px;
    border-radius: 14px;
  }
  .profile-package-viewer-trigger .package-portrait-viewer-icon {
    width: 31px;
    height: 31px;
  }
}
@media (max-width:420px) {
  .profile-visual-gallery.has-package-viewer {
    grid-template-columns: 118px 44px;
    width: 170px;
    min-width: 170px;
    gap: 8px;
  }
  .profile-package-viewer-trigger {
    width: 44px;
    height: 82px;
    min-width: 44px;
    border-radius: 10px;
  }
}


/* 2026-10-09 Global Package Card R5 */

.page-main {
  width: min(1440px,calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: #0b0b0e;
}

.work-image-wrap {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  background: #07070a;
}

.work-image-wrap img[data-package-artwork] {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}

.work-copy {
  display: grid;
  min-width: 0;
  min-height: 86px;
  max-height: 86px;
  gap: 5px;
  padding: 11px 12px 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.work-title {
  display: -webkit-box;
  min-height: 33px;
  max-height: 33px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-release-date {
  overflow: hidden;
  color: rgba(255,255,255,.46);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width:620px) {
  .works-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap:10px; }
}

@media (min-width:900px) {
  .works-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap:12px; }
}


/* 2026-10-09 Package Geometry R6 */
.works-grid .work-media-link {
  display: block;
  width: 100%;
}

.works-grid .work-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden;
  background: #07070a;
}

.works-grid .work-image-wrap > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.works-grid .work-image-wrap > img:not([data-package-orientation]),
.works-grid .work-image-wrap > img[data-package-orientation="landscape"] {
  object-fit: cover !important;
  object-position: right center !important;
}

.works-grid .work-image-wrap > img[data-package-orientation="portrait"],
.works-grid .work-image-wrap > img[data-package-orientation="square"] {
  object-fit: contain !important;
  object-position: center !important;
}


/* 20261012 R39C Actress Profile Visual Refinement */

.profile-card {
  align-items: start;
  gap: 20px;
  padding: 18px;
  background:
    radial-gradient(
      circle at 9% 8%,
      rgba(188,75,255,.13),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #111116,
      #0d0d11
    );
}

.profile-card > div:last-child {
  min-width: 0;
  padding-top: 3px;
}

.profile-visual-gallery {
  align-self: start;
}

.profile-visual-item.is-primary {
  overflow: hidden;
  width: 132px;
  height: 166px;
  border-color: rgba(255,255,255,.13);
  border-radius: 18px;
  background: #111116;
  box-shadow:
    0 14px 34px rgba(0,0,0,.32),
    inset 0 0 0 1px rgba(255,255,255,.025);
}

.profile-visual-item.is-primary .profile-image {
  object-fit: cover;
  object-position: center center;
}

.profile-visual-gallery.has-package-viewer {
  grid-template-columns: 132px 68px;
  width: 208px;
  min-width: 208px;
  gap: 8px;
  align-items: center;
}

.profile-package-viewer-trigger {
  width: 68px;
  min-width: 68px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: #09090c;
  box-shadow:
    0 10px 28px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.025);
}

.profile-package-viewer-trigger
.package-portrait-viewer-preview {
  border-radius: inherit;
}

.profile-package-viewer-trigger
.package-portrait-viewer-preview::after {
  background:
    linear-gradient(
      180deg,
      transparent 45%,
      rgba(0,0,0,.52) 100%
    );
}

.profile-package-viewer-trigger
.package-portrait-viewer-preview img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  opacity: 1;
  filter:
    saturate(.96)
    brightness(.98)
    contrast(1.02);
  will-change: transform;
}

.profile-package-viewer-trigger:hover
.package-portrait-viewer-preview img,
.profile-package-viewer-trigger:focus-visible
.package-portrait-viewer-preview img {
  opacity: 1;
  filter:
    saturate(1)
    brightness(1)
    contrast(1.03);
}




.profile-package-viewer-trigger
.package-portrait-viewer-icon {
  top: 5px;
  right: 5px;
  bottom: auto;
  width: 25px;
  height: 25px;
  border-color: rgba(255,255,255,.52);
  background: rgba(8,8,12,.65);
  box-shadow:
    0 3px 12px rgba(0,0,0,.35);
}

.profile-package-viewer-trigger
.package-portrait-viewer-icon svg {
  width: 13px;
  height: 13px;
}

#actress-name {
  margin-top: 0;
  font-size: clamp(25px,6vw,36px);
  letter-spacing: -.02em;
}

.ruby {
  margin-top: 5px;
}

.product-count {
  margin-top: 8px;
  color: rgba(255,255,255,.52);
}

.actress-favorite,
.actress-player-cta,
.actress-share-cta {
  min-height: 42px;
  border-radius: 12px;
}

.actress-favorite {
  margin-top: 15px;
  padding: 9px 14px;
  border-color: rgba(255,93,151,.38);
  background: rgba(255,73,137,.075);
}

.actress-favorite:hover {
  border-color: rgba(255,111,164,.65);
  background: rgba(255,73,137,.13);
}

.actress-favorite.is-active {
  border-color: rgba(255,105,160,.78);
  background: rgba(255,73,137,.21);
}

.actress-player-cta {
  margin-top: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
}

.actress-share-cta {
  margin-top: 8px;
  padding: 9px 14px;
  border-color: rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.profile-status {
  margin-top: 10px;
  color: rgba(255,255,255,.38);
  font-size: 10px;
}

.profile-details {
  gap: 6px;
  margin-top: 10px;
}

.profile-detail {
  padding: 6px 9px;
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.66);
  font-size: 10px;
}

@media (min-width:760px) {
  .profile-card {
    gap: 24px;
    padding: 22px;
  }

  .profile-visual-item.is-primary {
    width: 174px;
    height: 218px;
    border-radius: 20px;
  }

  .profile-visual-gallery.has-package-viewer {
    grid-template-columns: 174px 82px;
    width: 266px;
    min-width: 266px;
    gap: 10px;
  }

  .profile-package-viewer-trigger {
    width: 82px;
    min-width: 82px;
    height: 126px;
    border-radius: 16px;
  }
}

@media (max-width:520px) {
  .profile-card {
    gap: 13px;
    padding: 14px;
  }

  .profile-visual-item.is-primary {
    width: 112px;
    height: 142px;
    border-radius: 15px;
  }

  .profile-visual-gallery {
    width: 112px;
    min-width: 112px;
  }

  .profile-visual-gallery.has-package-viewer {
    grid-template-columns: 112px 54px;
    width: 174px;
    min-width: 174px;
    gap: 8px;
  }

  .profile-package-viewer-trigger {
    width: 54px;
    min-width: 54px;
    height: 84px;
    border-radius: 12px;
  }


  .profile-package-viewer-trigger
  .package-portrait-viewer-icon {
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
  }

  #actress-name {
    font-size: clamp(22px,6vw,29px);
  }

  .actress-favorite,
  .actress-player-cta,
  .actress-share-cta {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width:390px) {
  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-visual-gallery.has-package-viewer {
    grid-template-columns: 122px 58px;
    width: 188px;
    min-width: 188px;
  }

  .profile-visual-item.is-primary {
    width: 122px;
    height: 154px;
  }

  .profile-package-viewer-trigger {
    width: 58px;
    min-width: 58px;
    height: 90px;
  }
}


/* WORK_DETAIL_LINK_R1 */
.work-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
}

.work-title-row .work-title {
  min-width: 0;
  flex: 1 1 auto;
}

.work-detail-link {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 999px;
  color: rgba(255,255,255,.54);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.work-detail-link:hover,
.work-detail-link:focus-visible {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* R8-58E: dedicated actress-page sort radio group. */
.actress-work-sort{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 15px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:#15151b}
.actress-work-sort legend{padding:0 5px;font-size:11px;color:rgba(255,255,255,.62);font-weight:750}
.actress-work-sort label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:770;cursor:pointer;color:rgba(255,255,255,.78);min-height:30px}
.actress-work-sort input{accent-color:#efb977;width:16px;height:16px;margin:0}
.actress-work-sort label:has(input:checked){color:#ffd3a0}
