/* REPPTRADE v4.4.14 — Cast & Catalogue theme fidelity.
   Styling only. Uses the exact per-show tokens from showThemeVars(): primary ->
   secondary for the gradient border, accent as the separate inner rail.
   No additional elements on the action controls; no click interception. */

/* Actor profile: same solid/themed treatment as the main show tiles, not a
   generic slate fill accidentally introduced by earlier fallbacks. */
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show,
body[data-ui-theme="modern"] .rc447-master-card > summary {
  border:2px solid transparent!important;border-radius:3px!important;
  background:var(--show-tile-bg,var(--show-solid,#18283b)) padding-box,
             var(--show-easy-border,linear-gradient(135deg,#486889,#bd7ad4)) border-box!important;
  color:var(--show-title-ink,#fff)!important;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.28)!important;
  transition:transform .42s cubic-bezier(.18,1,.24,1),box-shadow .4s ease,filter .3s ease!important;
}
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show:is(:hover,:focus-visible),
body[data-ui-theme="modern"] .rc447-master-card > summary:is(:hover,:focus-visible) {
  transform:scale(1.015)!important;
  box-shadow:0 9px 25px rgba(0,0,0,.26),0 0 0 1px var(--show-accent,#75a8e0),inset 0 0 0 1px rgba(255,255,255,.25)!important;
}
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show :is(strong,small),
body[data-ui-theme="modern"] .rc447-master-card > summary :is(strong,small) {
  color:var(--show-title-ink,#fff)!important;
}
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show:is(:hover,:focus-visible) :is(strong,small),
body[data-ui-theme="modern"] .rc447-master-card > summary:is(:hover,:focus-visible) :is(strong,small) {
  color:#fff!important;
}
/* Do not bleach themed actor tiles in Light Mode. The surrounding profile is
   allowed to be light; these production tiles retain their own show artwork. */
body[data-surface="light"][data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show,
body[data-surface="light"][data-ui-theme="modern"] .rc447-master-card > summary {
  background:var(--show-tile-bg,var(--show-solid,#18283b)) padding-box,
             var(--show-easy-border,linear-gradient(135deg,#486889,#bd7ad4)) border-box!important;
}

/* Actor and Role profiles share the same non-navigating collapsed recording
   row and condensed detail panel. Real full Details is an explicit action. */
body[data-ui-theme="modern"] .rc450-record-item.rc451-record-item {
  display:block!important;min-width:0!important;
  border:2px solid transparent!important;border-radius:2px!important;
  background:linear-gradient(#0d1b2a,#0d1b2a) padding-box,
             var(--show-easy-border,linear-gradient(135deg,#557fa3,#bb7cd9)) border-box!important;
}
body[data-ui-theme="modern"] .rc451-record-item > summary {
  color:#fff!important;text-decoration:none!important;text-transform:uppercase!important;
}
body[data-ui-theme="modern"] .rc451-record-item .rc451-quick-detail {
  background:#0d1b2a!important;border-top:1px solid var(--show-accent,#6d9cce)!important;
}
body[data-ui-theme="modern"] .rc451-record-item .rc451-quick-field {
  background:#0f2033!important;border:1px solid #40556b!important;
  border-left:2px solid var(--show-accent,#6d9cce)!important;
  color:#f7faff!important;
}
body[data-ui-theme="modern"] .rc451-record-item .rc451-cast strong {
  color:#fff!important;font-weight:800!important;
}
body[data-ui-theme="modern"] .rc450-record-list .rc450-record-actions button {
  border:1px solid var(--show-accent,#7ca6d3)!important;
  border-radius:1px!important;
  background:#13263a!important;color:#fff!important;
}
body[data-surface="light"][data-ui-theme="modern"] .rc450-record-item.rc451-record-item {
  background:linear-gradient(#f5f8fc,#f5f8fc) padding-box,
             var(--show-easy-border,linear-gradient(135deg,#517ba5,#a87fd8)) border-box!important;
}
body[data-surface="light"][data-ui-theme="modern"] .rc450-record-item.rc451-record-item > summary,
body[data-surface="light"][data-ui-theme="modern"] .rc450-record-item.rc451-record-item .rc451-cast strong {color:#193750!important}
body[data-surface="light"][data-ui-theme="modern"] .rc451-record-item .rc451-quick-detail{background:#eaf1f9!important}
body[data-surface="light"][data-ui-theme="modern"] .rc451-record-item .rc451-quick-field{background:#fff!important;color:#203b53!important}
body[data-surface="light"][data-ui-theme="modern"] .rc450-record-list .rc450-record-actions button{background:#fff!important;color:#23425e!important}

/* Larger recording detail: accent rails around the title, metadata, notes,
   cast members and screenshot section. The outer primary-secondary outline
   remains owned by the previous fidelity layer. */
body[data-ui-theme="modern"] .rc451-record-detail :is(.rc440-field,.rc440-notes,.rc440-cast-member) {
  border:1px solid #354f67!important;
  border-left:3px solid var(--show-accent,#70a8d7)!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-section h3 {
  border-bottom:1px solid color-mix(in srgb,var(--show-accent,#70a8d7) 68%,transparent)!important;
  padding-bottom:9px!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-upload {
  border-top:1px solid color-mix(in srgb,var(--show-accent,#70a8d7) 56%,transparent)!important;
  padding-top:12px!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-upload button {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:37px!important;padding:9px 13px!important;
  font:700 11px/1.2 Consolas,"Courier New",monospace!important;
  text-transform:uppercase!important;
  border:1px solid var(--show-accent,#70a8d7)!important;
  border-radius:0!important;
  background:#122238!important;color:#f2f7fc!important;
  box-shadow:none!important;transition:filter .18s ease!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-upload button:hover{filter:brightness(1.16)!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail :is(.rc440-field,.rc440-notes,.rc440-cast-member){border-color:#bccdde!important;border-left:3px solid var(--show-accent,#70a8d7)!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-upload button{background:#fff!important;color:#23425e!important}

/* Catalogue details must be opaque and readable, including the cast section:
   previous transparent .showmodal-body exposed the blurred overlay behind it. */
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed {
  background:#102035!important;color:#f6f9fe!important;
  border:3px solid transparent!important;
  border-image:var(--show-easy-border,linear-gradient(135deg,#547daa,#9a78bd)) 1!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-body,
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed #catalogueDetailBody,
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .catalogue-detail-grid {
  background:#102035!important;color:#f6f9fe!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .rc440-section {
  background:#102035!important;color:#f6f9fe!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .rc440-section :is(.rc440-cast-member,.rc440-notes) {
  background:#10263b!important;color:#fff!important;
  border:1px solid #3d5973!important;
  border-left:3px solid var(--show-accent,#7ca1c7)!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .rc440-section :is(h3,.rc446-cast-actor,.rc446-cast-role) {color:#f7fbff!important}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .catalogue-detail-box {
  background:#10263b!important;
  border-left:3px solid var(--show-accent,#7ca1c7)!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-head {
  background:var(--show-solid,#152b43)!important;
}
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed,
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed :is(.showmodal-body,#catalogueDetailBody,.catalogue-detail-grid,.rc440-section){background:#f5f8fc!important;color:#1c364e!important}
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .rc440-section :is(.rc440-cast-member,.rc440-notes,.catalogue-detail-box){background:#fff!important;color:#19374e!important}
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .rc440-section :is(h3,.rc446-cast-actor,.rc446-cast-role){color:#19374e!important}

@media(max-width:650px){
  body[data-ui-theme="modern"] .rc450-show-wrap{max-width:100%;}
  body[data-ui-theme="modern"] .rc451-record-item .rc451-quick-detail{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show,
  body[data-ui-theme="modern"] .rc447-master-card > summary{transition:none!important;transform:none!important}
}

/* Actor profile show-text contrast follows its own computed card brightness,
   without mutating the user's configured Library title color. */
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show :is(strong,small),
body[data-ui-theme="modern"] .rc447-master-card > summary :is(strong,small),
body[data-surface="light"][data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show :is(strong,small),
body[data-surface="light"][data-ui-theme="modern"] .rc447-master-card > summary :is(strong,small){
 color:var(--profile-tile-ink,#fff)!important;
 text-shadow:0 1px 2px rgba(0,0,0,.24)!important;
}
/* Keep the accent rail on light-mode fields too, including normal themed view. */
body[data-surface="light"][data-ui-theme="modern"] .rc451-record-detail :is(.rc440-field,.rc440-notes,.rc440-cast-member){
 border-left:3px solid var(--show-accent,#70a8d7)!important;
}
