/* Records only. Keep the original artwork and leaderboard rows intact:
   place each metric's text beside its icon, with players immediately below. */
body[data-theme="glass"] #content .v5-metric-card > .v5-metric-heading{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%;
  min-width:0;
  margin:0 0 13px!important;
}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-heading > .v5-metric-icon{
  flex:0 0 auto!important;
  margin:0!important;
}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-heading-copy{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  gap:3px;
}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-heading-copy h3{
  margin:0!important;
  line-height:1.2;
  overflow-wrap:break-word;
}
body[data-theme="glass"] #content .v5-metric-card .v5-metric-heading-copy p{
  margin:0!important;
  line-height:1.35;
  overflow-wrap:break-word;
}

/* Remove the falsely highlighted background around *every* Records filter.
   Inactive options look flat, while only the selected item gets the original
   glass blue bubble. The choices still retain their full clickable area. */
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  box-sizing:border-box;
  min-height:39px;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#9cb4d2!important;
  box-shadow:none!important;
  transition:background-color .16s ease, border-color .16s ease, color .16s ease;
}
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button:not(.selected):hover{
  color:#f1f9ff!important;
  background:rgba(113,172,229,.09)!important;
}
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button.selected,
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button[aria-pressed="true"]{
  color:#f2f9ff!important;
  background:linear-gradient(140deg,rgba(136,210,254,.32),rgba(40,95,174,.45))!important;
  border-color:rgba(204,238,255,.58)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.4),0 0 12px rgba(92,183,252,.17)!important;
}
body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button:focus-visible{
  outline:2px solid #a4dfff!important;
  outline-offset:2px;
}
@media(max-width:860px){
  body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle{
    flex-wrap:wrap!important;
    max-width:100%;
  }
  body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button{
    min-height:42px!important;
    padding:8px 10px!important;
  }
  body[data-theme="glass"] #content .v5-metric-card > .v5-metric-heading{
    gap:10px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content .v5-record-toolbar .v5-toggle > button{
    transition:none!important;
  }
}
