/*
 * BMAP-MATCHES-R02.2 – Ratings Master Card Geometry, Semantic Analytics Binding & DICD Visual Closure.
 * PRESENTATION ONLY. Mirrors the frozen Matches Golden card geometry without altering native rating values/actions.
 */
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"]{
  --btc-r022-copy:#f5f9ff;
  --btc-r022-muted:#9eb3cf;
  --btc-r022-panel:rgba(12,20,30,.985);
  --btc-r022-panel2:rgba(16,25,37,.985);
}

/* Compact the analytics band to the same vertical rhythm as the Golden primary cards. */
@media (min-width:981px){
  .btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card]{
    box-sizing:border-box!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
    padding:18px 20px!important;
    border:1px solid rgba(var(--btc-r022-accent),.34)!important;
    border-left:4px solid rgb(var(--btc-r022-accent))!important;
    border-radius:14px!important;
    background:
      radial-gradient(520px 170px at 0 0,rgba(var(--btc-r022-accent),.065),transparent 62%),
      linear-gradient(180deg,var(--btc-r022-panel2),var(--btc-r022-panel))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.025),0 11px 28px rgba(0,0,0,.16)!important;
    overflow:hidden!important;
  }
}

.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card="elo"]{--btc-r022-accent:0,216,232!important;--btc-rating-accent:#00d8e8!important}
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card="fargo"]{--btc-r022-accent:65,151,255!important;--btc-rating-accent:#4197ff!important}
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card="btc"]{--btc-r022-accent:54,205,196!important;--btc-rating-accent:#36cdc4!important}

.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] h1,
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] h2,
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] h3,
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] h4{
  margin:0 0 10px!important;
  color:var(--btc-r022-copy)!important;
  font-size:clamp(20px,1.6vw,24px)!important;
  line-height:1.08!important;
  font-weight:760!important;
}
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] strong,
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card] [class*="value"]{
  color:var(--btc-r022-copy)!important;
  font-size:clamp(36px,3vw,46px)!important;
  line-height:1!important;
  font-weight:800!important;
}

/* Context action adopts Golden secondary CTA dimensions. */
.btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-action="1"]{
  min-height:42px!important;
  min-width:142px!important;
  padding:0 14px!important;
  border-radius:11px!important;
  border-color:rgba(0,216,232,.38)!important;
  background:rgba(0,216,232,.075)!important;
  color:#53edf5!important;
  font-size:15px!important;
  font-weight:780!important;
}

/* Keep tablet/mobile intrinsic and content-safe. */
@media(max-width:980px){
  .btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card]{
    height:auto!important;min-height:138px!important;max-height:none!important;padding:17px 18px!important;border-radius:14px!important;
  }
}
@media(max-width:680px){
  .btc977-page[data-btc-family="matches"][data-btc-subpage="ratings"] .btc-ratings-native-boundary [data-btc-bmap-rating-card]{min-height:0!important}
}
