/* NEXO PLAY — Tamaños estables de avatares seleccionados.
   Las insignias SVG, retratos y escudos deben respetar el MISMO espacio
   que una foto habitual; nunca ocupar el 100% de una columna o cabecera.
   Esta hoja va al final del <head> para neutralizar estilos anteriores. */

/* Tamaño seguro por defecto para stickers en zonas de perfil.
   Mantener igual especificidad que las antiguas reglas width:100%!important. */
.nx-shell .nx-premium-badge.nx-sticker,
.nx-shell .nx-media-avatar.nx-sticker,
.nx-m1-dialog .nx-premium-badge.nx-sticker,
.nx-m1-dialog .nx-media-avatar.nx-sticker,
.nx-account-settings-dialog .nx-premium-badge.nx-sticker,
.nx-account-settings-dialog .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:40px;
 display:inline-grid!important;
 place-items:center!important;
 box-sizing:border-box!important;
 width:var(--nx-avatar-slot)!important;
 height:var(--nx-avatar-slot)!important;
 min-width:var(--nx-avatar-slot)!important;
 max-width:var(--nx-avatar-slot)!important;
 min-height:var(--nx-avatar-slot)!important;
 max-height:var(--nx-avatar-slot)!important;
 flex:0 0 var(--nx-avatar-slot)!important;
 aspect-ratio:1 / 1!important;
 border-radius:50%!important;
 overflow:hidden!important;
 align-self:center!important;
 vertical-align:middle!important;
}

/* SVG y fotografías nunca pueden extenderse fuera de su avatar. */
.nx-shell .nx-premium-badge.nx-sticker > svg,
.nx-m1-dialog .nx-premium-badge.nx-sticker > svg,
.nx-account-settings-dialog .nx-premium-badge.nx-sticker > svg,
.nx-shell .nx-media-avatar.nx-sticker > img,
.nx-m1-dialog .nx-media-avatar.nx-sticker > img,
.nx-account-settings-dialog .nx-media-avatar.nx-sticker > img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 max-width:100%!important;
 max-height:100%!important;
 aspect-ratio:1 / 1!important;
}

/* Cabecera: 31 px (móvil 28 px) en lugar de escudo gigante. */
.nx-shell .nx-header .nx-account-menu > summary .nx-premium-badge.nx-sticker,
.nx-shell .nx-header .nx-account-menu > summary .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:31px;
}

/* Panel principal Mis pronósticos: no alteres las tarjetas ni las estadísticas. */
.nx-shell .nx-profile-user > .nx-premium-badge.nx-sticker,
.nx-shell .nx-profile-user > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:52px;
}

/* Ranking: cada avatar del tamaño de una foto normal. */
.nx-shell .nx-rank-person .nx-premium-badge.nx-sticker,
.nx-shell .nx-rank-person .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:36px;
}
.nx-shell .nx-rank-board.nx-rank-compact .nx-rank-person .nx-premium-badge.nx-sticker,
.nx-shell .nx-rank-board.nx-rank-compact .nx-rank-person .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:30px;
}

/* Comunidad, conversaciones y vistas previas. */
.nx-shell .nx-preview-pick > .nx-premium-badge.nx-sticker,
.nx-shell .nx-preview-pick > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:36px;
}
.nx-shell .nx-detail-author > .nx-premium-badge.nx-sticker,
.nx-shell .nx-detail-author > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:38px;
}
.nx-shell .nx-comment-header > .nx-premium-badge.nx-sticker,
.nx-shell .nx-comment-header > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:28px;
}

/* Ajustes de cuenta y ventana de perfil ampliado. */
.nx-account-settings-dialog .nx-settings-profile > .nx-premium-badge.nx-sticker,
.nx-account-settings-dialog .nx-settings-profile > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:43px;
}
.nx-m1-dialog .nx-m1-avatar-wrap > .nx-premium-badge.nx-sticker,
.nx-m1-dialog .nx-m1-avatar-wrap > .nx-media-avatar.nx-sticker{
 --nx-avatar-slot:70px;
}

/* El texto de usuario debe conservar su espacio y jamás salir del panel. */
.nx-shell .nx-profile-user{max-width:100%!important;min-width:0!important;}
.nx-shell .nx-profile-user .nx-profile-user-text{
 min-width:0!important;max-width:calc(100% - 65px)!important;overflow:hidden!important;
}
.nx-shell .nx-header .nx-my-photo-button{
 max-height:46px!important;min-width:0!important;
}
.nx-shell .nx-header .nx-account-menu{
 min-width:0!important;flex:0 0 auto!important;
}

@media(max-width:700px){
 .nx-shell .nx-header .nx-account-menu > summary .nx-premium-badge.nx-sticker,
 .nx-shell .nx-header .nx-account-menu > summary .nx-media-avatar.nx-sticker{
  --nx-avatar-slot:28px;
 }
 .nx-shell .nx-profile-user > .nx-premium-badge.nx-sticker,
 .nx-shell .nx-profile-user > .nx-media-avatar.nx-sticker{
  --nx-avatar-slot:40px;
 }
 .nx-shell .nx-my-predictions-page .nx-profile-user > .nx-premium-badge.nx-sticker,
 .nx-shell .nx-my-predictions-page .nx-profile-user > .nx-media-avatar.nx-sticker{
  --nx-avatar-slot:34px;
 }
 .nx-shell .nx-profile-user .nx-profile-user-text{
  max-width:calc(100% - 44px)!important;
 }
 .nx-m1-dialog .nx-m1-avatar-wrap > .nx-premium-badge.nx-sticker,
 .nx-m1-dialog .nx-m1-avatar-wrap > .nx-media-avatar.nx-sticker{
  --nx-avatar-slot:61px;
 }
}
