/* v175 · Compact header and roster typography hardening */

/* The roster hero previously kept the editorial Fraunces face from base.css. */
#app-shell .player-hero,
#app-shell .player-hero .ph-info,
#app-shell .player-hero .ph-nombre,
#app-shell .player-hero .ph-meta,
#app-shell .player-hero .ph-dorsal,
#app-shell .player-hero .ph-stat .val,
#app-shell #tab-perfiles .player-card,
#app-shell #tab-perfiles .player-card * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
#app-shell .player-hero .ph-nombre {
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
}
#app-shell .player-hero .ph-dorsal,
#app-shell .player-hero .ph-stat .val { font-weight: 800 !important; }

/* Keep the active-team control compact even when browser zoom activates tablet CSS. */
#app-shell > .app-header .header-team-switcher {
  box-sizing: border-box !important;
  flex: 0 1 270px !important;
  width: min(270px, 34vw) !important;
  min-width: 190px !important;
  max-width: 270px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#app-shell > .app-header .header-team-icon {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}
#app-shell > .app-header .header-team-switcher label {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 5px 8px 4px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
#app-shell > .app-header .header-team-switcher label > span {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
#app-shell > .app-header #header-equipo-select {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 21px !important;
  width: 100% !important;
  max-width: none !important;
  height: 21px !important;
  min-height: 21px !important;
  margin: 0 !important;
  padding: 0 17px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: 13px !important;
  line-height: 21px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#app-shell > .app-header .header-team-manage {
  box-sizing: border-box !important;
  flex: 0 0 39px !important;
  width: 39px !important;
  height: 40px !important;
  min-width: 39px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 1050px) {
  #app-shell > .app-header .header-team-switcher {
    flex-basis: 230px !important;
    width: min(230px, 38vw) !important;
    min-width: 176px !important;
  }
  #app-shell > .app-header .header-team-switcher label > span { display: none !important; }
  #app-shell > .app-header .header-team-switcher label {
    justify-content: center !important;
    padding: 9px 7px !important;
  }
  #app-shell > .app-header #header-equipo-select {
    flex-basis: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
  }
}

@media (max-width: 620px) {
  #app-shell > .app-header .header-team-switcher {
    flex: 1 1 168px !important;
    width: auto !important;
    min-width: 145px !important;
    max-width: 210px !important;
  }
  #app-shell > .app-header .header-team-icon { display: none !important; }
}
