/* REPPTRADE v4.4.33 — catalogue cast directory and targeted regression fixes.
   Retains sharp tile style, show palette and existing artwork/media model. */

/* Single-colour show cards: text ink for compact tiles is chosen by the real
   solid background's contrast, not by user-configurable *main title* ink. */
body[data-ui-theme="modern"] #rc440Overlay .rc450-show-wrap .rc450-show-row .rc440-actor-show,
body[data-ui-theme="modern"] #rc440Overlay .rc447-master-card>summary {
 background:var(--show-tile-bg,var(--show-solid,#152a40)) padding-box,
            var(--show-easy-border,var(--show-solid,#152a40)) border-box!important;
 color:var(--profile-tile-ink,#ffffff)!important;
}
body[data-ui-theme="modern"] #rc440Overlay .rc450-show-wrap .rc450-show-row .rc440-actor-show :is(strong,small),
body[data-ui-theme="modern"] #rc440Overlay .rc447-master-card>summary :is(strong,small),
body[data-surface="light"][data-ui-theme="modern"] #rc440Overlay .rc450-show-wrap .rc450-show-row .rc440-actor-show :is(strong,small),
body[data-surface="light"][data-ui-theme="modern"] #rc440Overlay .rc447-master-card>summary :is(strong,small){
 color:var(--profile-tile-ink,#ffffff)!important;
 -webkit-text-fill-color:var(--profile-tile-ink,#ffffff)!important;
}
body[data-ui-theme="modern"] #rc440Overlay .rc450-show-wrap .rc450-show-row .rc440-actor-show:hover :is(strong,small),
body[data-ui-theme="modern"] #rc440Overlay .rc447-master-card>summary:hover :is(strong,small){
 color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;
}
/* If there is no artwork image, do not wash an accessible light background
   with a dark hover overlay or force white ink on an unchanged pale tile. */
body[data-ui-theme="modern"] #rc440Overlay .rc450-show-wrap:not([style*="--role-image"]) .rc440-actor-show:hover :is(strong,small){
 color:var(--profile-tile-ink,#fff)!important;-webkit-text-fill-color:var(--profile-tile-ink,#fff)!important;
}

/* NFT Manager — breathing room between the colored NFT box and its letters. */
body[data-nft-style] #nftManagerList .nft-datebox{
 box-sizing:border-box!important;
 padding:11px 18px!important;
 min-width:0!important;
}
body[data-nft-style] #nftManagerList .nft-datebox :is(.label,.nft-date){
 padding-left:0!important;white-space:normal!important;
}

/* Recently Added: show-themed shadow artwork reveals on hover in Standard,
   Easy Readability and Artwork views without covering the recording details. */
body[data-ui-theme="modern"] #libraryRecent .recent-card .recent-hover-art{
 display:block!important;opacity:0!important;
 background-position:center center!important;background-size:cover!important;
 filter:grayscale(.12) brightness(.49) saturate(.90)!important;
 transition:opacity .36s ease,transform .38s ease!important;
 pointer-events:none!important;
}
body[data-ui-theme="modern"] #libraryRecent .recent-card:is(:hover,:focus-within) .recent-hover-art{
 opacity:.67!important;
}
body[data-ui-theme="modern"].rc419-artwork-view #libraryRecent .recent-card .recent-hover-art{opacity:.78!important}
body[data-ui-theme="modern"] #libraryRecent .recent-card :is(.recent-main,.recent-actions,.recent-added,.recent-logo){position:relative;z-index:2}
body[data-ui-theme="modern"] #libraryRecent .recent-card:is(:hover,:focus-within) :is(.recent-title,.recent-show,.recent-meta){
 color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.9)!important;
}

/* Original cast card cross-fade: the frontmost *visible* layer must win in
   every view, including Artwork view's old first-child image override. */
body[data-ui-theme="modern"] #libraryCast .rc440-actor-grid .rc442-actor-card .rc442-art-layer{
 opacity:0!important;
}
body[data-ui-theme="modern"] #libraryCast .rc440-actor-grid .rc442-actor-card:is(:hover,:focus-visible) .rc442-art-layer.rc442-visible{
 opacity:1!important;
}

/* Master Catalogue: two child destinations, without replacing Recordings. */
.repp-master-subnav{
 display:flex;flex-direction:column;align-items:stretch;
 gap:3px;padding:3px 0 10px 18px;
}
.repp-master-subnav[hidden]{display:none!important}
.repp-master-subnav button{
 border:0;border-left:2px solid #4a607e;background:transparent;
 color:#b5c5d8;text-align:left;padding:9px 12px;cursor:pointer;
 font:750 12px/1.3 system-ui,sans-serif;
}
.repp-master-subnav button:is(:hover,.active){
 color:#fff;background:#192b43;border-left-color:#d088e5;
}
#page-master.repp-master-cast-view > :not(.hero):not(#reppMasterCastPage){display:none!important}
#page-master:not(.repp-master-cast-view) #reppMasterCastPage{display:none!important}
#reppMasterCastPage{padding:10px 0 28px;min-height:300px}
.repp4433-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid #435e79;padding:12px 0 17px}
.repp4433-heading h3{margin:0 0 6px;color:#f1f6fc;font:800 19px/1.2 system-ui,sans-serif;letter-spacing:.04em}
.repp4433-heading p,.repp4433-description{margin:0;color:#aabdd0;font:500 12px/1.55 system-ui,sans-serif}
#repp4433Count{color:#c2d2df;font:650 11px/1.3 system-ui,sans-serif}
.repp4433-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 0 16px}
.repp4433-tools .field{width:auto!important;min-height:38px!important;margin:0!important}
.repp4433-tools input{flex:1 1 220px;max-width:460px}
.repp4433-tools label{display:flex;align-items:center;gap:8px;color:#c1d0e0;font:700 11px system-ui,sans-serif}
.repp4433-modes{display:flex;gap:4px}
.repp4433-modes button{background:#112339;border:1px solid #44627e;color:#deeafb;cursor:pointer;padding:10px 15px;font:700 11px system-ui,sans-serif}
.repp4433-modes button.active{background:#233856;border-color:#bd81d9;color:#fff}
.repp4433-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:11px;align-items:stretch}
.repp4433-actor-card,.repp4433-role-card{
 display:grid;grid-template-columns:85px minmax(0,1fr);align-items:stretch;gap:15px;
 padding:0 12px 0 0;min-height:110px;overflow:hidden;position:relative;
 background:#0e1b2a;border:1px solid #56768e;border-radius:1px;
 color:#fff;text-align:left;cursor:pointer;
 transition:transform .25s ease,box-shadow .25s ease;
}
.repp4433-actor-card .rc440-actor-portrait{
 width:85px!important;height:100%!important;min-height:109px!important;max-width:none!important;
 border:0!important;border-radius:0!important;border-right:1px solid #668baa!important;
 background-position:center;background-size:cover;align-self:stretch!important;aspect-ratio:auto!important;
}
.repp4433-card-copy,.repp4433-role-card>span:last-child{min-width:0;display:flex;flex-direction:column;gap:6px;justify-content:center;padding:9px 0}
.repp4433-card-copy strong,.repp4433-role-card strong{color:#f3f7ff;font:800 13px/1.25 system-ui,sans-serif;text-transform:uppercase;overflow-wrap:anywhere}
.repp4433-card-copy small,.repp4433-role-card small,.repp4433-role-card>span:last-child>span{color:#b5c9dc;font:550 11px/1.4 system-ui,sans-serif}
.repp4433-role-card{border-color:var(--show-accent,#678bb8)!important;background:var(--show-tile-bg,var(--show-solid,#11263e))!important}
.repp4433-role-art{display:block;background:center/cover no-repeat;background-color:rgba(12,20,32,.48);min-height:109px}
.repp4433-role-card :is(strong,small){color:var(--show-title-ink,#fff)}
@media(hover:hover) and (pointer:fine){
 .repp4433-actor-card:hover,.repp4433-role-card:hover{transform:translateY(-2px) scale(1.015);box-shadow:0 12px 24px #0006;z-index:2}
 .repp4433-actor-card:hover .rc440-actor-portrait{transform:scale(1.05)}
}
#repp4433More{margin:18px auto 0;display:block}
#repp4433More[hidden]{display:none}
.repp4433-overlay{position:fixed;inset:0;z-index:11000;background:#030810ba;display:grid;place-items:center;padding:20px}
.repp4433-overlay.hidden{display:none!important}
.repp4433-dialog{width:min(1060px,100%);max-height:95vh;display:flex;flex-direction:column;background:#14263d;border:1px solid #6385a6;color:#fff;box-shadow:0 15px 60px #0008}
.repp4433-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 22px;background:#10283c;border-bottom:1px solid #345a75}
#repp4433DetailsKicker{font:750 10px system-ui,sans-serif;letter-spacing:.16em;color:#95c6dd}
#repp4433DetailsTitle{font:800 22px/1.25 system-ui,sans-serif;margin:7px 0 0;color:#f6f8ff}
#repp4433Close{border:1px solid #b8c6d9;border-radius:1px;color:#fff;background:#071b2a;cursor:pointer;padding:8px 12px}
.repp4433-detail-body{padding:21px 25px;overflow:auto;display:flex;flex-direction:column;gap:14px}
.repp4433-detail-heading{display:flex;gap:20px;align-items:center;border-bottom:1px solid #465b74;padding-bottom:15px}
.repp4433-detail-heading .rc440-actor-portrait.large{width:160px!important;height:auto!important;aspect-ratio:239 / 303!important;flex:0 0 160px!important;background-position:center;background-size:cover}
.repp4433-detail-heading h3{font:800 22px system-ui,sans-serif;margin:0 0 8px}.repp4433-detail-heading p{color:#b6c8db;font-size:12px;margin-bottom:12px}
.repp4433-credit{padding:14px;border:1px solid #47617b;border-left:3px solid var(--credit-accent,#78a2c9);background:#0f1e2f}
.repp4433-credit-context{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}
.repp4433-credit-context strong{font:800 13px system-ui,sans-serif;color:#fff}.repp4433-credit-context small{font:550 11px system-ui,sans-serif;color:#9bb4c9}
.repp4433-credit-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.repp4433-credit-fields label{color:#aabfd4;font-size:10px;font-weight:750;letter-spacing:.07em}
.repp4433-credit-fields input{width:100%!important;margin-top:6px;box-sizing:border-box}
.repp4433-credit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.repp4433-credit-actions small{color:#a8d6c0}
.repp4433-role-person{display:grid;grid-template-columns:66px 1fr;gap:14px;align-items:center;text-align:left;border:1px solid #3c5877;background:#101e2f;padding:7px 14px 7px 7px;color:#fff;cursor:pointer}
.repp4433-role-person .rc440-actor-portrait{width:66px!important;height:85px!important;flex:none!important;aspect-ratio:239/303!important}
.repp4433-role-person span:last-child{display:flex;flex-direction:column;gap:6px}.repp4433-role-person strong{font-size:14px}.repp4433-role-person small{color:#bdcfe1}
@media(max-width:700px){.repp4433-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.repp4433-actor-card,.repp4433-role-card{grid-template-columns:65px minmax(0,1fr);gap:9px;min-height:91px}.repp4433-actor-card .rc440-actor-portrait,.repp4433-role-art{width:65px!important;min-height:90px!important}.repp4433-detail-heading .rc440-actor-portrait.large{width:116px!important;flex-basis:116px!important}.repp4433-credit-fields{grid-template-columns:1fr}}
@media(max-width:430px){.repp4433-grid{grid-template-columns:1fr}.repp4433-overlay{padding:4px}.repp4433-detail-body{padding:12px}.repp4433-dialog>header{padding:12px}}
@media(prefers-reduced-motion:reduce){.repp4433-actor-card,.repp4433-role-card,.repp4433-actor-card .rc440-actor-portrait{transition:none!important;transform:none!important}}
