/* 17.10 v2: Match statistics MOBILE heading only; desktop remains unchanged.
   Real count/action nodes are relocated to a bar above the monthly summary by JS,
   preserving live updates and action handlers. */
@media (max-width:650px) {
  html body .wapper .content .automix-stat-content #am-content > .am-native-title.am-match-stats-heading-v2 {
    display:flex!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:9px!important;
    box-sizing:border-box!important;
    min-height:55px!important;
    height:55px!important;
    padding:10px 14px!important;
  }
  html body .wapper .content .automix-stat-content #am-content > .am-native-title.am-match-stats-heading-v2 > .am-heading-icon {
    position:static!important;
    display:inline-block!important;
    flex:0 0 auto!important;
    width:auto!important;
    margin:0!important;
    font-size:18px!important;
    line-height:1!important;
  }
  html body .wapper .content .automix-stat-content #am-content > .am-native-title.am-match-stats-heading-v2 > .am-heading-label {
    display:inline-block!important;
    flex:0 1 auto!important;
    width:auto!important;
    margin:0!important;
    line-height:1.25!important;
    font-size:17px!important;
    white-space:nowrap!important;
  }
  html body .wapper .content .automix-stat-content #am-content .am-month-mobile-meta-v2 {
    display:flex!important;
    flex-flow:row wrap!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:7px 10px!important;
    box-sizing:border-box!important;
    min-width:0!important;
    margin:1px 0 13px!important;
    padding:0!important;
  }
  html body .wapper .content .automix-stat-content #am-content .am-month-mobile-meta-v2 > .am-heading-action {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-height:29px!important;
    height:auto!important;
    margin:0!important;
    padding:5px 9px!important;
    font-size:11px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
  html body .wapper .content .automix-stat-content #am-content .am-month-mobile-meta-v2 > .am-heading-total {
    display:block!important;
    flex:0 1 auto!important;
    position:static!important;
    justify-self:auto!important;
    align-self:center!important;
    margin:0 0 0 auto!important;
    padding:0!important;
    left:auto!important;
    max-width:100%!important;
    min-width:0!important;
    color:#d8e2ec!important;
    font-size:clamp(11px,3vw,14px)!important;
    font-weight:600!important;
    line-height:1.3!important;
    text-align:right!important;
    white-space:nowrap!important;
  }
  html body .wapper .content .automix-stat-content #am-content .am-month-mobile-meta-v2 > .am-heading-total :is(strong,b) {
    font-size:inherit!important;
    line-height:inherit!important;
  }
  html body .wapper .content .automix-stat-content #am-content .am-month-title-singleline-v2 {
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 12px!important;
    padding:0 0 8px!important;
    font-size:16px!important;
    line-height:1.35!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    letter-spacing:normal!important;
  }
}


/* 17.10 — mobile stats only. The theme also paints a fixed 60px header glow
   on the card itself. With shorter phone headings it sticks out underneath.
   Keep the gradient on the actual .block_head and remove only its duplicate
   from the enclosing card. Do not alter the page background or other blocks. */
@media (max-width: 991.98px) {
  html.am-mobile-layout body .wapper .content .block.stats-main-card:has(> .block_head),
  html.am-mobile-layout body .wapper .content .automix-stat-content #am-content.block:has(> .block_head.am-native-title) {
    background-image: none !important;
    background-size: auto !important;
    background-repeat: initial !important;
  }
}
