/* Shared public colour system. The current RXM theme is the source of truth by default. */
body{
  --rxmtm-bg:var(--rxm-bg,#f5f6fa);
  --rxmtm-surface:var(--rxm-surface,#fff);
  --rxmtm-surface-alt:var(--rxm-accent-soft,#eef2fb);
  --rxmtm-text:var(--rxm-text,#30384b);
  --rxmtm-muted:var(--rxm-text-muted,#727b8d);
  --rxmtm-border:var(--rxm-border,#d9dde7);
  --rxmtm-border-strong:var(--rxm-border-dark,#bbc3d3);
  --rxmtm-accent:var(--rxm-accent,#5271c4);
  --rxmtm-accent-dark:var(--rxm-accent-dark,#3d57a8);
  --rxmtm-accent-soft:var(--rxm-accent-soft,rgba(82,113,196,.10));
  --rxmtm-accent-softer:var(--rxm-accent-softer,rgba(82,113,196,.07));
  --rxmtm-accent-border:var(--rxm-accent-border,rgba(82,113,196,.28));
  --rxmtm-accent-shadow:var(--rxm-accent-shadow,rgba(82,113,196,.34));
  --rxmtm-shadow:var(--rxm-shadow,0 4px 18px rgba(39,49,73,.08));
  --rxmtm-shadow-md:var(--rxm-shadow-md,0 8px 30px rgba(39,49,73,.12));
}
body.rxmtm-appearance-light{--rxmtm-bg:#f5f6fa;--rxmtm-surface:#fff;--rxmtm-surface-alt:#eef2fb;--rxmtm-text:#30384b;--rxmtm-muted:#727b8d;--rxmtm-border:#d9dde7;--rxmtm-border-strong:#bbc3d3;--rxmtm-shadow:0 4px 18px rgba(39,49,73,.08);--rxmtm-shadow-md:0 8px 30px rgba(39,49,73,.12)}
body.rxmtm-appearance-dark{--rxmtm-bg:#0f1117;--rxmtm-surface:#181b23;--rxmtm-surface-alt:#202530;--rxmtm-text:#f1f3f7;--rxmtm-muted:#aab1c0;--rxmtm-border:#303746;--rxmtm-border-strong:#465064;--rxmtm-shadow:0 5px 20px rgba(0,0,0,.28);--rxmtm-shadow-md:0 10px 34px rgba(0,0,0,.38)}

/* Discovery, taxonomy profiles and search. */
.rxm-discovery-page{background:var(--rxmtm-bg);color:var(--rxmtm-text)}
.rxm-discovery-hero,.rxm-profile-hero,.rxm-highlight-card,.rxm-alpha,.rxm-entity-card,.rxm-related-list a,.rxm-scene-card,.rxm-discovery-empty,.rxm-search-results{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);color:var(--rxmtm-text);box-shadow:var(--rxmtm-shadow)}
.rxm-discovery-hero h1,.rxm-section-heading h2,.rxm-entity-card h3 a,.rxm-scene-card h3 a,.rxm-highlight-card,.rxm-related-list a,.rxm-search-results a{color:var(--rxmtm-text)}
.rxm-discovery-hero>p,.rxm-section-heading p,.rxm-highlight-card span,.rxm-search-results small,.rxm-search-results em,.rxm-entity-card p,.rxm-entity-card>span,.rxm-entity-card__body>span,.rxm-related-list span,.rxm-scene-card time,.rxm-discovery-empty p{color:var(--rxmtm-muted)}
.rxm-discovery-kicker,.rxm-text-link{color:var(--rxmtm-accent)}
.rxm-highlight-card{border-left-color:var(--rxmtm-accent)}
.rxm-discovery-search input{border-color:var(--rxmtm-border-strong);background:var(--rxmtm-surface);color:var(--rxmtm-text)}
.rxm-discovery-search button,.rxm-alpha a:hover,.rxm-alpha a.is-active,.rxm-profile-cta,.rxm-pagination .current{border-color:var(--rxmtm-accent);background:var(--rxmtm-accent);color:#fff}
.rxm-search-results a{border-bottom-color:var(--rxmtm-border)}
.rxm-search-results a:hover{background:var(--rxmtm-accent-soft)}
.rxm-alpha a,.rxm-pagination a,.rxm-pagination span{color:var(--rxmtm-text)}
.rxm-pagination a,.rxm-pagination span{border-color:var(--rxmtm-border);background:var(--rxmtm-surface)}
.rxm-entity-card__thumb,.rxm-scene-card__image{background:var(--rxmtm-surface-alt)}
.rxm-profile-hero{background:#1f2739;color:#fff}
.rxm-profile-hero h1,.rxm-profile-hero p,.rxm-profile-hero .rxm-bio p{color:#fff}
.rxm-profile-hero:not(.has-image) .rxm-bio{border-color:var(--rxmtm-accent-border);background:var(--rxmtm-accent-soft)}
.rxm-profile-hero:not(.has-image) .rxm-bio p{color:rgba(255,255,255,.84)}

/* Gallery index and galleries. */
.rxm-gallery-page{background:var(--rxmtm-bg);color:var(--rxmtm-text)}
.rxm-gallery-header{border-color:var(--rxmtm-border);background:linear-gradient(135deg,var(--rxmtm-surface),var(--rxmtm-surface-alt));color:var(--rxmtm-text)}
.rxm-gallery-header>span,.rxm-gallery-header a{color:var(--rxmtm-accent)}
.rxm-gallery-header p,.rxm-gallery-card small,.rxm-gallery-pagination .dots{color:var(--rxmtm-muted)}
.rxm-gallery-card,.rxm-gallery-empty{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);color:var(--rxmtm-text)!important;box-shadow:var(--rxmtm-shadow)}
.rxm-gallery-card__image,.rxm-gallery-masonry>a{background:var(--rxmtm-surface-alt)}
.rxm-gallery-alpha a,.rxm-gallery-pagination a,.rxm-gallery-pagination span{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);color:var(--rxmtm-text)}
.rxm-gallery-alpha a:hover{border-color:var(--rxmtm-accent);color:var(--rxmtm-accent)}
.rxm-gallery-alpha a.is-active,.rxm-gallery-pagination .current{border-color:var(--rxmtm-accent);background:var(--rxmtm-accent);color:#fff}

/* Homepage, deal cards and advertising surfaces. */
.rxm-homepage{background:var(--rxmtm-bg);color:var(--rxmtm-text)}
.rxm-home-intro>span,.rxm-home-section__heading a,.rxm-home-profile-picks span,.rxm-home-more{color:var(--rxmtm-accent)}
.rxm-home-intro h1,.rxm-home-heading h2,.rxm-home-section__heading h2,.rxm-home-profile-picks a,.rxm-home-portals a,.rxm-home-active a,.rxm-home-scene h3 a,.rxm-home-category-latest>a,.rxm-home-ad>a,.rxm-home-promo-card{color:var(--rxmtm-text)}
.rxm-home-intro p,.rxm-home-section__heading p,.rxm-home-profile-picks small,.rxm-home-ad__copy small{color:var(--rxmtm-muted)}
.rxm-home-profile-picks a,.rxm-home-portals a,.rxm-home-active a,.rxm-home-scene,.rxm-home-category-group,.rxm-home-ad{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);box-shadow:var(--rxmtm-shadow)}
.rxm-home-category-latest>a{border-bottom-color:var(--rxmtm-border)}
.rxm-home-scene>a{background:var(--rxmtm-surface-alt)}
.rxm-home-active a{border-left-color:var(--rxmtm-accent)}
.rxm-home-lead span,.rxm-home-small span,.rxm-home-main-promo>a,.rxm-home-ad__copy b{background:var(--rxmtm-accent)}
.rxm-home-more{border-color:var(--rxmtm-accent)}
.rxm-home-main-promo,.rxm-home-promo-card,.rxm-discovery-deals a{background:linear-gradient(135deg,var(--rxmtm-accent-soft),var(--rxmtm-surface));color:var(--rxmtm-text)}
.rxm-discovery-deals small{color:var(--rxmtm-muted)}
.rxm-deals{color:var(--rxmtm-text)}
.rxm-deals__eyebrow,.rxm-deal__scenes{color:var(--rxmtm-accent)}
.rxm-deals__header h1,.rxm-deal__studio{color:var(--rxmtm-text)}
.rxm-deals__header p,.rxm-deal__description,.rxm-deal__expires,.rxm-deals__empty p{color:var(--rxmtm-muted)}
.rxm-deal,.rxm-deals__empty{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);box-shadow:var(--rxmtm-shadow-md)}
.rxm-deal__media{border-color:var(--rxmtm-border);background:var(--rxmtm-surface-alt)}
.rxm-deal__button{background:var(--rxmtm-accent);box-shadow:0 5px 14px var(--rxmtm-accent-shadow)}
.rxm-deal__button:hover{background:var(--rxmtm-accent-dark);box-shadow:0 8px 18px var(--rxmtm-accent-shadow)}
.rxm-ad-slot{color:var(--rxmtm-text)}
.rxm-ad-creative,.rxm-ad-anchor .rxm-ad-creative,.rxm-ad-vignette .rxm-ad-creative{border-color:var(--rxmtm-border);background:var(--rxmtm-surface);color:var(--rxmtm-text)!important;box-shadow:var(--rxmtm-shadow)}
.rxm-ad-copy small{color:var(--rxmtm-muted)}
.rxm-ad-copy b{background:var(--rxmtm-accent)}

/* Scene information and the non-overlay parts of the player. */
.rxm-scene-meta,.rxm-native-promo{border-color:var(--rxmtm-border);background:var(--rxmtm-surface-alt);color:var(--rxmtm-text);box-shadow:var(--rxmtm-shadow)}
.rxm-scene-meta__chip{border-color:var(--rxmtm-border-strong);background:var(--rxmtm-surface)}
.rxm-scene-meta__button,.rxm-player-status button,.rxm-player-overlay__button,.rxm-native-promo__button,.rxm-player-end__button{border-color:var(--rxmtm-accent-dark);background:var(--rxmtm-accent)}
.rxm-native-promo__text{color:var(--rxmtm-muted)}

/* Keyboard focus follows the selected accent on every public control. */
.rxm-discovery-page :focus-visible,.rxm-gallery-page :focus-visible,.rxm-homepage :focus-visible,.rxm-deals :focus-visible,.rxm-scene-meta :focus-visible,.rxm-player-shell :focus-visible,.rxm-ad-slot :focus-visible{outline:3px solid var(--rxmtm-accent);outline-offset:2px}
