/* REPPTRADE v4.4.13 — consistent show theme presentation.
   IMPORTANT: --show-easy-border is supplied by showThemeVars() and is the SAME
   primary-to-secondary gradient used by the compact Show Collection boot card.
   Never substitute --show-accent for this gradient: accent is a separate color. */

/* All-caps display ONLY. Original recording and catalogue titles remain untouched. */
body[data-ui-theme="modern"] :is(
  #rc440Title,.rc451-record-detail .rc440-record-top h3,
  #catalogueDetailTitle,#page-master .mastercard.v43-card.repp439-catalogue h4,
  #page-master .master-show-card .master-show-name,
  .rc450-show-wrap .rc440-actor-show strong,
  .rc447-master-card>summary strong,
  .rc451-record-title,.rc450-record-title
){text-transform:uppercase!important;}

/* By Show: titles live directly on the colored tile rather than in their own box.
   All Items deliberately retains the framed dark recording title. */
body[data-ui-theme="modern"] #page-master #masterShows .master-show-card .master-show-name,
body[data-surface="light"][data-ui-theme="modern"] #page-master #masterShows .master-show-card .master-show-name,
body[data-ui-theme="modern"] #page-master #masterShows .master-show-card:hover .master-show-name{
  display:block!important;width:auto!important;max-width:100%!important;
  margin:0!important;padding:0!important;border:0!important;
  box-shadow:none!important;background:transparent!important;
  color:var(--show-title-ink,#fff)!important;
  font:800 14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  text-shadow:0 1px 2px rgba(0,0,0,.20)!important;
}
body[data-ui-theme="modern"] #page-master #masterShows .master-show-card:hover .master-show-name{
  color:#fff!important;text-shadow:0 1px 3px #000!important;
}

/* Actor-profile show cards: rectangular, framed and visually related to Library cards. */
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-solid,#13243a) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#142d45),var(--show-secondary,#8c76bc))) border-box!important;
  box-shadow:inset 0 0 0 2px rgba(3,10,21,.35)!important;
  padding:12px 14px!important;
}
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show strong,
body[data-ui-theme="modern"] .rc447-master-card>summary strong{
  font:800 14px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  letter-spacing:.03em!important;
}
body[data-ui-theme="modern"] .rc450-show-wrap .rc450-show-row .rc440-actor-show:hover,
body[data-ui-theme="modern"] .rc447-master-card>summary:hover{
  box-shadow:0 8px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.14)!important;
}

/* Recording rows under actors and roles: exactly the same thematic gradient. */
body[data-ui-theme="modern"] :is(.rc450-record-item,.rc451-record-item){
  border:2px solid transparent!important;border-radius:2px!important;
  background:linear-gradient(#101b29,#101b29) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#263750),var(--show-secondary,#7d94ba))) border-box!important;
}
body[data-ui-theme="modern"] :is(.rc450-record-actions,.rc451-quick-detail .rc450-record-actions) button{
  border:1px solid var(--show-accent,#689cce)!important;
  background:#112238!important;color:#f4f8ff!important;border-radius:2px!important;
  font:700 10px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  text-transform:uppercase!important;
}
body[data-ui-theme="modern"] :is(.rc450-record-actions,.rc451-quick-detail .rc450-record-actions) button:hover{
  filter:brightness(1.18)!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.rc450-record-item,.rc451-record-item){
  background:linear-gradient(#f7faff,#f7faff) padding-box,
             var(--show-easy-border,linear-gradient(135deg,#5375a1,#c69ed3)) border-box!important;
}
body[data-surface="light"][data-ui-theme="modern"] .rc450-record-actions button{
  background:#fff!important;color:#1d3e58!important;
}

/* Expanded recording = the large incarnation of the *same* compact boot.
   --show-easy-border (PRIMARY -> SECONDARY, 135deg, identical stops) is critical. */
body[data-ui-theme="modern"] .rc451-record-detail{
  border:3px solid transparent!important;border-radius:5px!important;
  background:var(--show-boot-bg,var(--show-solid,#14273e)) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#173047),var(--show-secondary,#7d8eba))) border-box!important;
  padding:13px!important;
}
body[data-ui-theme="modern"].easy-readability .rc451-record-detail{
  background:linear-gradient(#141b26,#141b26) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#173047),var(--show-secondary,#7d8eba))) border-box!important;
  box-shadow:0 7px 19px rgba(0,0,0,.17)!important;
}
/* Keep compact boot's thin accent rail and dark inset title. */
body[data-ui-theme="modern"] .rc451-record-detail .rc440-record-top{
  border-left:5px solid var(--show-accent,#64a2df)!important;
  background:#0a111a!important;padding:16px 18px!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-record-top h3{
  background:transparent!important;color:#fff!important;
  font:800 19px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
}
body[data-ui-theme="modern"] .rc451-record-detail :is(.rc440-field,.rc440-notes,.rc440-cast-member){
  background:#0e1621!important;border:1px solid #36475c!important;color:#fff!important;
  border-radius:2px!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-field span{color:#b2c4d6!important}
body[data-ui-theme="modern"] .rc451-record-detail :is(.rc440-field strong,.rc440-notes,.rc440-cast-member .rc446-cast-actor){color:#fff!important}

/* Same footer face, height, font and color variants as the compact .bootactions. */
body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer{
  display:flex!important;flex-wrap:wrap!important;gap:7px!important;
  background:#111b27!important;border-top:1px solid #344358!important;
  padding:12px 15px!important;margin:16px -13px -13px!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer :is(a,button){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #67849f!important;border-radius:0!important;
  min-height:37px!important;padding:9px 13px!important;
  font:700 11px/1.2 Consolas,"Courier New",monospace!important;
  letter-spacing:.12px!important;text-transform:uppercase!important;
  background:transparent!important;color:#eef4fb!important;
  text-decoration:none!important;box-shadow:none!important;
  transition:background-color .15s,color .15s,border-color .15s!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer a{
  background:var(--show-accent,#6ea8d8)!important;
  border-color:var(--show-accent,#6ea8d8)!important;
  color:var(--show-accent-ink,#0e1929)!important;
  font-weight:760!important;
}
body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer :is(a,button):hover{
  filter:brightness(1.15)!important;
}

/* Light Easy Readability tracks the LIGHT version of the compact card while
   maintaining precisely the same primary-to-secondary thematic outer edge. */
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail{
  background:linear-gradient(#fff,#fff) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#52749c),var(--show-secondary,#bd9de1))) border-box!important;
  color:#203951!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-record-top{
  background:#f3f7fc!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-record-top h3{
  color:#152e48!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail :is(.rc440-field,.rc440-notes,.rc440-cast-member){
  background:#f6f9fe!important;border-color:#cad7e4!important;color:#213b54!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail :is(.rc440-field strong,.rc440-notes,.rc440-cast-member .rc446-cast-actor){color:#172f47!important}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-footer{
  background:#f0f5fb!important;border-top-color:#c8d8e4!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-footer button{
  color:#25445e!important;background:#fff!important;border-color:#abbfd2!important;
}
body[data-surface="light"][data-ui-theme="modern"].easy-readability .rc451-record-detail .rc440-footer a{
  color:var(--show-accent-ink,#12283f)!important;background:var(--show-accent,#70a7d0)!important;
}

/* Catalogue details use the chosen show palette, not generic blue panels.
   The JS decorates this modal only when the existing detail view opens. */
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed{
  border:3px solid transparent!important;border-radius:5px!important;
  background:var(--show-boot-bg,var(--show-solid,#152a3f)) padding-box,
             var(--show-easy-border,linear-gradient(135deg,var(--show-solid,#16334b),var(--show-secondary,#88a0c2))) border-box!important;
  color:#fff!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-head{
  background:var(--show-solid,#162a40)!important;
  border-bottom:2px solid var(--show-accent,#668fbb)!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed #catalogueDetailTitle{
  color:#fff!important;background:#0b1624!important;
  border:1px solid #496681!important;border-radius:2px!important;
  text-transform:uppercase!important;font-weight:800!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-body{
  background:transparent!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .catalogue-detail-box{
  background:#0e1b2c!important;border:1px solid #426078!important;
  border-radius:2px!important;color:#fff!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .catalogue-detail-box .label{color:#b9cee1!important}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .catalogue-detail-box .value{color:#fff!important}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-actions{
  background:#0b1928!important;border-top:1px solid #455e79!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-actions .btn{
  background:#101f32!important;color:#fff!important;border:1px solid var(--show-accent,#6a9ac8)!important;
  border-radius:2px!important;text-transform:uppercase!important;
}
body[data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed .showmodal-actions .btn.primary{
  background:var(--show-accent,#6a9ac8)!important;color:var(--show-accent-ink,#152a42)!important;
}
/* Recording titles in all item previews and modal windows. */
body[data-ui-theme="modern"] .mastercard.v43-card.repp439-catalogue h4,
body[data-ui-theme="modern"] .catalogue-item-modal .catalogue-title-preview{
  text-transform:uppercase!important;
}
@media(max-width:600px){
 body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer{margin:12px -13px -13px!important;padding:12px!important}
 body[data-ui-theme="modern"] .rc451-record-detail .rc440-footer :is(a,button){flex:1 1 auto!important}
}
