/* REPPTRADE v4.4.6 - stability-first controls and reversible cast navigation.
   No overlay nodes are added to buttons. Every native event target remains intact.
   Iridescence lives on 1px EDGES, not as a saturated fill. */
:root{--rt446-pink:#eb83c5;--rt446-violet:#a998f5;--rt446-ice:#8ab8f1;--rt446-ink:#15243a}

body[data-ui-theme="modern"] .seg.rc444-glide::before{content:none!important;display:none!important}
/* Native selection states: drawn on each button, independent of DOM child order. */
body[data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle){
 background:#14243b!important;border:1px solid #364b66!important;border-radius:4px!important;
 box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;
}
body[data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle) > button,
body[data-ui-theme="modern"] .seg.rc444-glide>button{
 background:#14243b!important;border:1px solid transparent!important;border-radius:3px!important;
 box-shadow:none!important;color:#c9d6e5!important;
 transition:background-color .17s ease,color .17s ease,border-color .17s ease,box-shadow .24s ease!important;
 transform:none!important;cursor:pointer;
}
body[data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle)>button:is(.active,[aria-pressed="true"]),
body[data-ui-theme="modern"] .seg.rc444-glide>button:is(.active,[aria-pressed="true"]),
body[data-ui-theme="modern"] .tabbar>.subtab.active{
 background:linear-gradient(#17243c,#17243c) padding-box,
            linear-gradient(110deg,var(--rt446-pink),var(--rt446-violet) 53%,var(--rt446-ice)) border-box!important;
 border:1px solid transparent!important;border-radius:3px!important;
 color:#fff!important;text-shadow:none!important;
 box-shadow:0 0 11px rgba(184,99,226,.24),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
body[data-ui-theme="modern"] :is(.seg,.master-view-toggle,.rc443-mode-switch,.nft-style-toggle)>button:hover,
body[data-ui-theme="modern"] .seg.rc444-glide>button:hover,
body[data-ui-theme="modern"] .tabbar>.subtab:hover{
 transform:none!important;color:#fff!important;background:#22314b!important;border-color:#667da4!important;
}
body[data-ui-theme="modern"] .mainnav .navbtn.active{
 border:1px solid transparent!important;border-radius:4px!important;
 background:linear-gradient(#17243a,#17243a) padding-box,
  linear-gradient(110deg,var(--rt446-pink),var(--rt446-violet),var(--rt446-ice)) border-box!important;
 box-shadow:0 0 14px rgba(169,102,213,.21)!important;color:#fff!important;
}
body[data-ui-theme="modern"] .mainnav .navbtn:not(.active):hover{
 border-color:#485f81!important;background:#18283f!important;
}
body[data-ui-theme="modern"] .nft-style-toggle>.nft-style-label{
 border-radius:3px!important;background:#1b2d45!important;border-color:#324765!important;color:#baccdf!important;
}
/* Auxiliary UI remains blue-slate, not the retired bronze/mustard theme. */
body[data-ui-theme="modern"] .tabbar{border-bottom-color:#324966!important}
body[data-ui-theme="modern"] .tabbar>.subtab:not(.active){background:transparent!important;border-color:transparent!important;color:#bcd0e3!important}
body[data-ui-theme="modern"] .btn.gold:not(.danger){
 background:#1d2a40!important;border-color:#53648a!important;color:#f2e7ff!important;
}
body[data-ui-theme="modern"] .btn.gold:hover{border-color:var(--rt446-pink)!important;box-shadow:0 0 12px rgba(172,104,209,.18)!important}
body[data-ui-theme="modern"] :is(.filter-trigger,.subtab,.btn,.appearance-toggle,.navbtn):focus-visible{
 outline:2px solid #c690e7!important;outline-offset:2px!important;
}
body[data-ui-theme="modern"] :is(.filter-trigger[aria-expanded="true"],.filter-category.current){border-color:#b78adf!important}
body[data-ui-theme="modern"] .filter-cascade{border-top-color:#a48fe2!important;background:#101d30!important}
/* Light mode gets opaque ink and enough contrast, not white labels on gray glass. */
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.rc443-mode-switch,.nft-style-toggle){background:#e4ebf4!important;border-color:#9db0c4!important}
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.rc443-mode-switch,.nft-style-toggle)>button{
 background:#e4ebf4!important;color:#34445c!important;
}
body[data-surface="light"][data-ui-theme="modern"] :is(.seg,.rc443-mode-switch,.nft-style-toggle)>button:is(.active,[aria-pressed="true"]){
 color:#17243c!important;background:linear-gradient(#f8f7ff,#f8f7ff) padding-box,
 linear-gradient(120deg,#da7db6,#9e87ed,#7aaddc) border-box!important;
}
/* Active glows do NOT follow hovered controls, so nothing appears to activate before clicking. */

/* Consistent pointer zone on ALL show and performer tiles, no overlay swallowing a click. */
@media(hover:hover) and (pointer:fine){
 body[data-ui-theme="modern"] :is(#libraryTiles .showtile,#libraryRecent .recent-card,
 #libraryCast .rc440-actor-card,#libraryCast .rc443-role-card,.master-show-card){
   transform:scale(1)!important;transform-origin:center;
   transition:transform .24s ease,filter .24s ease,box-shadow .24s ease!important;
 }
 body[data-ui-theme="modern"] :is(#libraryTiles .showtile,#libraryRecent .recent-card,
 #libraryCast .rc440-actor-card,#libraryCast .rc443-role-card,.master-show-card):is(:hover,:focus-within){
   transform:translateY(-2px) scale(1.009)!important;z-index:3;position:relative;
   filter:brightness(1.045);box-shadow:0 9px 22px rgba(0,0,0,.22)!important;
 }
 body[data-ui-theme="modern"] :is(.showtile-hover-art,.recent-hover-art){transition:opacity .3s ease,transform .35s ease!important;pointer-events:none!important}
 body[data-ui-theme="modern"] :is(.showtile,.recent-card):is(:hover,:focus-within) :is(.showtile-hover-art,.recent-hover-art){transform:scale(1.025)!important}
}
/* Separate navigation targets for ACTOR and ROLE on a credited cast card. */
.rc440-cast-grid .rc440-cast-member{cursor:default!important;transform:none!important;outline:none!important}
.rc440-cast-grid .rc440-cast-member:is(:hover,:focus-within){transform:none!important;background:#1b324b!important}
.rc446-cast-actor,.rc446-cast-role{
 display:block;width:100%;padding:0;background:transparent!important;border:0!important;text-align:left;
 font-family:inherit;cursor:pointer;color:#f2f7ff!important;line-height:1.4;white-space:normal;
}
.rc446-cast-actor{font-size:12px;font-weight:700;margin-bottom:5px}
.rc446-cast-role{font-size:11px;color:#b9d4ed!important}
.rc446-cast-role span{color:#cc94e6!important;margin-left:5px}
.rc446-cast-actor:hover,.rc446-cast-role:hover{text-decoration:underline;text-decoration-color:#bc82d9}
.rc446-cast-actor:focus-visible,.rc446-cast-role:focus-visible,.rc446-actor-role-link:focus-visible{
 outline:2px solid #c58ce4;outline-offset:3px
}
.rc446-actor-role-link{display:inline-block;padding:2px 0;border:0;background:transparent;color:#ebf5ff;
 text-align:left;font:inherit;font-weight:inherit;cursor:pointer;line-height:inherit}
.rc446-actor-role-link:hover{color:#d1a8f4;text-decoration:underline}
body[data-surface="light"] .rc446-cast-actor{color:#f7fbff!important}
body[data-surface="light"] .rc446-cast-role{color:#d4e8f8!important}
@media(prefers-reduced-motion:reduce){
 body[data-ui-theme="modern"] :is(.showtile,.recent-card,.rc440-actor-card,.rc443-role-card,.navbtn,.subtab,.seg>button){
 transition:none!important;transform:none!important
 }
}
